Bump @justinribeiro/lite-youtube from 0.9.0 to 0.9.1 in /build/javascript (#273)
* Commit updated Javascript packages * Bump preact from 10.5.4 to 10.5.5 in /build/javascript (#265) * Trying a new github workflow to install javascript packages * Bump tailwindcss from 1.9.2 to 1.9.4 in /build/javascript (#266) Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 1.9.2 to 1.9.4. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v1.9.2...v1.9.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Commit updated Javascript packages * Bump preact from 10.5.4 to 10.5.5 in /build/javascript Bumps [preact](https://github.com/preactjs/preact) from 10.5.4 to 10.5.5. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.5.4...10.5.5) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owncast <owncast@owncast.online> * Bump @justinribeiro/lite-youtube in /build/javascript Bumps [@justinribeiro/lite-youtube](https://github.com/justinribeiro/lite-youtube) from 0.9.0 to 0.9.1. - [Release notes](https://github.com/justinribeiro/lite-youtube/releases) - [Commits](https://github.com/justinribeiro/lite-youtube/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Owncast <owncast@owncast.online> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
40
build/javascript/node_modules/postcss-js/CHANGELOG.md
generated
vendored
Normal file
40
build/javascript/node_modules/postcss-js/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# Change Log
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## 2.0.3
|
||||
* Fix `from` option warning.
|
||||
|
||||
## 2.0.2
|
||||
* Fix `!important` support (by Adam Wathan).
|
||||
|
||||
## 2.0.1
|
||||
* Improve objectifier performance.
|
||||
* Do not change source `Root` in objectifier.
|
||||
|
||||
## 2.0.0
|
||||
* Remove Node.js 9 and Node.js 4 support.
|
||||
* Use PostCSS 7.0.
|
||||
|
||||
## 1.0.1
|
||||
* Ignore nodes with `undefined` value.
|
||||
|
||||
## 1.0
|
||||
* Use PostCSS 6.0.
|
||||
|
||||
## 0.3
|
||||
* Add support for at-rules with same name (like `@font-face`).
|
||||
|
||||
## 0.2
|
||||
* Add `!important` support (by Dan Lynch).
|
||||
|
||||
## 0.1.3
|
||||
* Fix rules merge with at-rules.
|
||||
|
||||
## 0.1.2
|
||||
* Add `cssFloat` alias support.
|
||||
|
||||
## 0.1.1
|
||||
* Fix losing rules in parser on same selector (by Bogdan Chadkin).
|
||||
|
||||
## 0.1
|
||||
* Initial release.
|
||||
20
build/javascript/node_modules/postcss-js/LICENSE
generated
vendored
Normal file
20
build/javascript/node_modules/postcss-js/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2015 Andrey Sitnik <andrey@sitnik.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
138
build/javascript/node_modules/postcss-js/README.md
generated
vendored
Normal file
138
build/javascript/node_modules/postcss-js/README.md
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
# PostCSS JS [![Build Status][ci-img]][ci]
|
||||
|
||||
<img align="right" width="95" height="95"
|
||||
title="Philosopher’s stone, logo of PostCSS"
|
||||
src="http://postcss.github.io/postcss/logo.svg">
|
||||
|
||||
[PostCSS] for React Inline Styles, Radium, JSS and other CSS-in-JS.
|
||||
|
||||
For example, to use [Stylelint], [RTLCSS] or [postcss-write-svg] plugins
|
||||
in your workflow.
|
||||
|
||||
[postcss-write-svg]: https://github.com/jonathantneal/postcss-write-svg
|
||||
[Stylelint]: https://github.com/stylelint/stylelint
|
||||
[PostCSS]: https://github.com/postcss/postcss
|
||||
[RTLCSS]: https://github.com/MohammadYounes/rtlcss
|
||||
[ci-img]: https://travis-ci.org/postcss/postcss-js.svg
|
||||
[ci]: https://travis-ci.org/postcss/postcss-js
|
||||
|
||||
## Usage
|
||||
|
||||
### Installation
|
||||
|
||||
```sh
|
||||
npm i postcss-js
|
||||
```
|
||||
|
||||
### Processing
|
||||
|
||||
```js
|
||||
const postcssJs = require('postcss-js')
|
||||
const autoprefixer = require('autoprefixer')
|
||||
|
||||
const prefixer = postcssJs.sync([ autoprefixer ]);
|
||||
|
||||
const style = prefixer({
|
||||
userSelect: 'none'
|
||||
});
|
||||
|
||||
style //=> {
|
||||
// WebkitUserSelect: 'none',
|
||||
// MozUserSelect: 'none',
|
||||
// msUserSelect: 'none',
|
||||
// userSelect: 'none'
|
||||
// }
|
||||
```
|
||||
|
||||
### Compile CSS-in-JS to CSS
|
||||
|
||||
```js
|
||||
const postcss = require('postcss')
|
||||
const postcssJs = require('postcss-js')
|
||||
|
||||
const style = {
|
||||
top: 10,
|
||||
'&:hover': {
|
||||
top: 5
|
||||
}
|
||||
};
|
||||
|
||||
postcss().process(style, { parser: postcssJs }).then( (result) => {
|
||||
result.css //=> top: 10px;
|
||||
// &:hover { top: 5px; }
|
||||
})
|
||||
```
|
||||
|
||||
### Compile CSS to CSS-in-JS
|
||||
|
||||
```js
|
||||
const postcss = require('postcss')
|
||||
const postcssJs = require('postcss-js')
|
||||
|
||||
const css = '@media screen { z-index: 1 }'
|
||||
const root = postcss.parse(css);
|
||||
|
||||
postcssJs.objectify(root) //=> { '@media screen': { zIndex: '1' } }
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `sync(plugins): function`
|
||||
|
||||
Create PostCSS processor with simple API, but with only sync PostCSS plugins
|
||||
support.
|
||||
|
||||
Processor is just a function, which takes one style object and return other.
|
||||
|
||||
### `async(plugins): function`
|
||||
|
||||
Same as `sync`, but also support async plugins.
|
||||
|
||||
Returned processor will return Promise.
|
||||
|
||||
### `parse(obj): Root`
|
||||
|
||||
Parse CSS-in-JS style object to PostCSS `Root` instance.
|
||||
|
||||
It converts numbers to pixels and parses
|
||||
[Free Style] like selectors and at-rules:
|
||||
|
||||
```js
|
||||
{
|
||||
'@media screen': {
|
||||
'&:hover': {
|
||||
top: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This methods use Custom Syntax name convention, so you can use it like this:
|
||||
|
||||
```js
|
||||
postcss().process(obj, { parser: postcssJs })
|
||||
```
|
||||
|
||||
### `objectify(root): object`
|
||||
|
||||
Convert PostCSS `Root` instance to CSS-in-JS style object.
|
||||
|
||||
## Troubleshoot
|
||||
|
||||
Webpack may need some extra config for some PostCSS plugins.
|
||||
|
||||
### `Module parse failed`
|
||||
|
||||
Autoprefixer and some other plugins
|
||||
need a [json-loader](https://github.com/webpack/json-loader) to import data.
|
||||
|
||||
So, please install this loader and add to webpack config:
|
||||
|
||||
```js
|
||||
loaders: [
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: "json-loader"
|
||||
}
|
||||
]
|
||||
```
|
||||
14
build/javascript/node_modules/postcss-js/async.js
generated
vendored
Normal file
14
build/javascript/node_modules/postcss-js/async.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var postcss = require('postcss')
|
||||
|
||||
var processResult = require('./process-result')
|
||||
var parse = require('./parser')
|
||||
|
||||
module.exports = function (plugins) {
|
||||
var processor = postcss(plugins)
|
||||
return function (input) {
|
||||
return processor.process(input, {
|
||||
parser: parse,
|
||||
from: undefined
|
||||
}).then(processResult)
|
||||
}
|
||||
}
|
||||
11
build/javascript/node_modules/postcss-js/index.js
generated
vendored
Normal file
11
build/javascript/node_modules/postcss-js/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var objectify = require('./objectifier')
|
||||
var parse = require('./parser')
|
||||
var async = require('./async')
|
||||
var sync = require('./sync')
|
||||
|
||||
module.exports = {
|
||||
objectify: objectify,
|
||||
parse: parse,
|
||||
async: async,
|
||||
sync: sync
|
||||
}
|
||||
51
build/javascript/node_modules/postcss-js/objectifier.js
generated
vendored
Normal file
51
build/javascript/node_modules/postcss-js/objectifier.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
var camelcase = require('camelcase-css')
|
||||
|
||||
function atRule (node) {
|
||||
if (typeof node.nodes === 'undefined') {
|
||||
return true
|
||||
} else {
|
||||
return process(node)
|
||||
}
|
||||
}
|
||||
|
||||
function process (node) {
|
||||
var name
|
||||
var result = { }
|
||||
|
||||
node.each(function (child) {
|
||||
if (child.type === 'atrule') {
|
||||
name = '@' + child.name
|
||||
if (child.params) name += ' ' + child.params
|
||||
if (typeof result[name] === 'undefined') {
|
||||
result[name] = atRule(child)
|
||||
} else if (Array.isArray(result[name])) {
|
||||
result[name].push(atRule(child))
|
||||
} else {
|
||||
result[name] = [result[name], atRule(child)]
|
||||
}
|
||||
} else if (child.type === 'rule') {
|
||||
var body = process(child)
|
||||
if (result[child.selector]) {
|
||||
for (var i in body) {
|
||||
result[child.selector][i] = body[i]
|
||||
}
|
||||
} else {
|
||||
result[child.selector] = body
|
||||
}
|
||||
} else if (child.type === 'decl') {
|
||||
name = camelcase(child.prop)
|
||||
var value = child.value
|
||||
if (child.important) value += ' !important'
|
||||
if (typeof result[name] === 'undefined') {
|
||||
result[name] = value
|
||||
} else if (Array.isArray(result[name])) {
|
||||
result[name].push(value)
|
||||
} else {
|
||||
result[name] = [result[name], value]
|
||||
}
|
||||
}
|
||||
})
|
||||
return result
|
||||
}
|
||||
|
||||
module.exports = process
|
||||
59
build/javascript/node_modules/postcss-js/package.json
generated
vendored
Normal file
59
build/javascript/node_modules/postcss-js/package.json
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"postcss-js@2.0.3",
|
||||
"/home/runner/work/owncast/owncast/build/javascript"
|
||||
]
|
||||
],
|
||||
"_from": "postcss-js@2.0.3",
|
||||
"_id": "postcss-js@2.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-zS59pAk3deu6dVHyrGqmC3oDXBdNdajk4k1RyxeVXCrcEDBUBHoIhE4QTsmhxgzXxsaqFDAkUZfmMa5f/N/79w==",
|
||||
"_location": "/postcss-js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "postcss-js@2.0.3",
|
||||
"name": "postcss-js",
|
||||
"escapedName": "postcss-js",
|
||||
"rawSpec": "2.0.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/tailwindcss"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-2.0.3.tgz",
|
||||
"_spec": "2.0.3",
|
||||
"_where": "/home/runner/work/owncast/owncast/build/javascript",
|
||||
"author": {
|
||||
"name": "Andrey Sitnik",
|
||||
"email": "andrey@sitnik.ru"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/postcss/postcss-js/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase-css": "^2.0.1",
|
||||
"postcss": "^7.0.18"
|
||||
},
|
||||
"description": "PostCSS for React Inline Styles, Radium, Free Style and other CSS-in-JS",
|
||||
"homepage": "https://github.com/postcss/postcss-js#readme",
|
||||
"keywords": [
|
||||
"postcss",
|
||||
"postcss-runner",
|
||||
"js",
|
||||
"inline",
|
||||
"react",
|
||||
"css",
|
||||
"cssinjs"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "postcss-js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/postcss/postcss-js.git"
|
||||
},
|
||||
"version": "2.0.3"
|
||||
}
|
||||
103
build/javascript/node_modules/postcss-js/parser.js
generated
vendored
Normal file
103
build/javascript/node_modules/postcss-js/parser.js
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
var postcss = require('postcss')
|
||||
|
||||
var IMPORTANT = /\s*!important\s*$/i
|
||||
|
||||
var unitless = {
|
||||
'box-flex': true,
|
||||
'box-flex-group': true,
|
||||
'column-count': true,
|
||||
'flex': true,
|
||||
'flex-grow': true,
|
||||
'flex-positive': true,
|
||||
'flex-shrink': true,
|
||||
'flex-negative': true,
|
||||
'font-weight': true,
|
||||
'line-clamp': true,
|
||||
'line-height': true,
|
||||
'opacity': true,
|
||||
'order': true,
|
||||
'orphans': true,
|
||||
'tab-size': true,
|
||||
'widows': true,
|
||||
'z-index': true,
|
||||
'zoom': true,
|
||||
'fill-opacity': true,
|
||||
'stroke-dashoffset': true,
|
||||
'stroke-opacity': true,
|
||||
'stroke-width': true
|
||||
}
|
||||
|
||||
function dashify (str) {
|
||||
return str
|
||||
.replace(/([A-Z])/g, '-$1')
|
||||
.replace(/^ms-/, '-ms-')
|
||||
.toLowerCase()
|
||||
}
|
||||
|
||||
function decl (parent, name, value) {
|
||||
if (value === false || value === null) return
|
||||
|
||||
name = dashify(name)
|
||||
if (typeof value === 'number') {
|
||||
if (value === 0 || unitless[name]) {
|
||||
value = value.toString()
|
||||
} else {
|
||||
value += 'px'
|
||||
}
|
||||
}
|
||||
|
||||
if (name === 'css-float') name = 'float'
|
||||
|
||||
if (IMPORTANT.test(value)) {
|
||||
value = value.replace(IMPORTANT, '')
|
||||
parent.push(postcss.decl({ prop: name, value: value, important: true }))
|
||||
} else {
|
||||
parent.push(postcss.decl({ prop: name, value: value }))
|
||||
}
|
||||
}
|
||||
|
||||
function atRule (parent, parts, value) {
|
||||
var node = postcss.atRule({ name: parts[1], params: parts[3] || '' })
|
||||
if (typeof value === 'object') {
|
||||
node.nodes = []
|
||||
parse(value, node)
|
||||
}
|
||||
parent.push(node)
|
||||
}
|
||||
|
||||
function parse (obj, parent) {
|
||||
var name, value, node, i
|
||||
for (name in obj) {
|
||||
if (obj.hasOwnProperty(name)) {
|
||||
value = obj[name]
|
||||
if (value === null || typeof value === 'undefined') {
|
||||
continue
|
||||
} else if (name[0] === '@') {
|
||||
var parts = name.match(/@([^\s]+)(\s+([\w\W]*)\s*)?/)
|
||||
if (Array.isArray(value)) {
|
||||
for (i = 0; i < value.length; i++) {
|
||||
atRule(parent, parts, value[i])
|
||||
}
|
||||
} else {
|
||||
atRule(parent, parts, value)
|
||||
}
|
||||
} else if (Array.isArray(value)) {
|
||||
for (i = 0; i < value.length; i++) {
|
||||
decl(parent, name, value[i])
|
||||
}
|
||||
} else if (typeof value === 'object') {
|
||||
node = postcss.rule({ selector: name })
|
||||
parse(value, node)
|
||||
parent.push(node)
|
||||
} else {
|
||||
decl(parent, name, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function (obj) {
|
||||
var root = postcss.root()
|
||||
parse(obj, root)
|
||||
return root
|
||||
}
|
||||
11
build/javascript/node_modules/postcss-js/process-result.js
generated
vendored
Normal file
11
build/javascript/node_modules/postcss-js/process-result.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var objectify = require('./objectifier')
|
||||
|
||||
module.exports = function (result) {
|
||||
if (console && console.warn) {
|
||||
result.warnings().forEach(function (warn) {
|
||||
var source = warn.plugin || 'PostCSS'
|
||||
console.warn(source + ': ' + warn.text)
|
||||
})
|
||||
}
|
||||
return objectify(result.root)
|
||||
}
|
||||
12
build/javascript/node_modules/postcss-js/sync.js
generated
vendored
Normal file
12
build/javascript/node_modules/postcss-js/sync.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
var postcss = require('postcss')
|
||||
|
||||
var processResult = require('./process-result')
|
||||
var parse = require('./parser')
|
||||
|
||||
module.exports = function (plugins) {
|
||||
var processor = postcss(plugins)
|
||||
return function (input) {
|
||||
var result = processor.process(input, { parser: parse, from: undefined })
|
||||
return processResult(result)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user