From afa87af01c79a9baa539f2992d32154d2a4739bd Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 14:46:37 -0800 Subject: task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq --- .../css-tree/cjs/syntax/node/AnPlusB.cjs | 293 --------------------- .../css-tree/cjs/syntax/node/Atrule.cjs | 103 -------- .../css-tree/cjs/syntax/node/AtrulePrelude.cjs | 52 ---- .../css-tree/cjs/syntax/node/AttributeSelector.cjs | 148 ----------- .../css-tree/cjs/syntax/node/Block.cjs | 96 ------- .../css-tree/cjs/syntax/node/Brackets.cjs | 38 --- .../node_modules/css-tree/cjs/syntax/node/CDC.cjs | 26 -- .../node_modules/css-tree/cjs/syntax/node/CDO.cjs | 26 -- .../css-tree/cjs/syntax/node/ClassSelector.cjs | 31 --- .../css-tree/cjs/syntax/node/Combinator.cjs | 61 ----- .../css-tree/cjs/syntax/node/Comment.cjs | 40 --- .../css-tree/cjs/syntax/node/Condition.cjs | 120 --------- .../css-tree/cjs/syntax/node/Declaration.cjs | 166 ------------ .../css-tree/cjs/syntax/node/DeclarationList.cjs | 62 ----- .../css-tree/cjs/syntax/node/Dimension.cjs | 30 --- .../css-tree/cjs/syntax/node/Feature.cjs | 101 ------- .../css-tree/cjs/syntax/node/FeatureFunction.cjs | 67 ----- .../css-tree/cjs/syntax/node/FeatureRange.cjs | 133 ---------- .../css-tree/cjs/syntax/node/Function.cjs | 45 ---- .../css-tree/cjs/syntax/node/GeneralEnclosed.cjs | 68 ----- .../node_modules/css-tree/cjs/syntax/node/Hash.cjs | 30 --- .../css-tree/cjs/syntax/node/IdSelector.cjs | 33 --- .../css-tree/cjs/syntax/node/Identifier.cjs | 25 -- .../css-tree/cjs/syntax/node/Layer.cjs | 35 --- .../css-tree/cjs/syntax/node/LayerList.cjs | 43 --- .../css-tree/cjs/syntax/node/LayerName.cjs | 34 --- .../css-tree/cjs/syntax/node/LayerNameList.cjs | 42 --- .../css-tree/cjs/syntax/node/MediaCondition.cjs | 70 ----- .../css-tree/cjs/syntax/node/MediaFeature.cjs | 76 ------ .../css-tree/cjs/syntax/node/MediaFeatureRange.cjs | 11 - .../css-tree/cjs/syntax/node/MediaQuery.cjs | 100 ------- .../css-tree/cjs/syntax/node/MediaQueryList.cjs | 41 --- .../css-tree/cjs/syntax/node/NestingSelector.cjs | 29 -- .../node_modules/css-tree/cjs/syntax/node/Nth.cjs | 54 ---- .../css-tree/cjs/syntax/node/Number.cjs | 25 -- .../css-tree/cjs/syntax/node/Operator.cjs | 28 -- .../css-tree/cjs/syntax/node/Parentheses.cjs | 38 --- .../css-tree/cjs/syntax/node/Percentage.cjs | 25 -- .../cjs/syntax/node/PseudoClassSelector.cjs | 67 ----- .../cjs/syntax/node/PseudoElementSelector.cjs | 69 ----- .../css-tree/cjs/syntax/node/Ratio.cjs | 71 ----- .../node_modules/css-tree/cjs/syntax/node/Raw.cjs | 48 ---- .../node_modules/css-tree/cjs/syntax/node/Rule.cjs | 58 ---- .../css-tree/cjs/syntax/node/Scope.cjs | 69 ----- .../css-tree/cjs/syntax/node/Selector.cjs | 38 --- .../css-tree/cjs/syntax/node/SelectorList.cjs | 43 --- .../css-tree/cjs/syntax/node/String.cjs | 26 -- .../css-tree/cjs/syntax/node/StyleSheet.cjs | 83 ------ .../cjs/syntax/node/SupportsDeclaration.cjs | 38 --- .../css-tree/cjs/syntax/node/SupportsFeature.cjs | 69 ----- .../css-tree/cjs/syntax/node/TypeSelector.cjs | 59 ----- .../css-tree/cjs/syntax/node/UnicodeRange.cjs | 158 ----------- .../node_modules/css-tree/cjs/syntax/node/Url.cjs | 54 ---- .../css-tree/cjs/syntax/node/Value.cjs | 26 -- .../css-tree/cjs/syntax/node/WhiteSpace.cjs | 34 --- .../cjs/syntax/node/common/feature-range.cjs | 112 -------- .../css-tree/cjs/syntax/node/common/feature.cjs | 76 ------ .../css-tree/cjs/syntax/node/index-generate.cjs | 103 -------- .../cjs/syntax/node/index-parse-selector.cjs | 39 --- .../css-tree/cjs/syntax/node/index-parse.cjs | 103 -------- .../css-tree/cjs/syntax/node/index.cjs | 103 -------- 61 files changed, 3991 deletions(-) delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/AnPlusB.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Atrule.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/AtrulePrelude.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/AttributeSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Block.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Brackets.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/CDC.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/ClassSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Combinator.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Comment.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Condition.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Declaration.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/DeclarationList.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Dimension.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Feature.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/FeatureFunction.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/FeatureRange.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Function.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/GeneralEnclosed.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Hash.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/IdSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Identifier.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Layer.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/LayerList.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/LayerName.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/LayerNameList.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/MediaCondition.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/MediaFeature.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/MediaFeatureRange.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/MediaQuery.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/MediaQueryList.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/NestingSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Nth.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Number.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Operator.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Parentheses.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Percentage.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/PseudoClassSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/PseudoElementSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Ratio.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Raw.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Rule.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Scope.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Selector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/SelectorList.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/String.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/StyleSheet.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/SupportsDeclaration.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/SupportsFeature.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/TypeSelector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/UnicodeRange.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Url.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/Value.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/common/feature-range.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/common/feature.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/index-generate.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/index-parse-selector.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/index-parse.cjs delete mode 100644 vanilla/node_modules/css-tree/cjs/syntax/node/index.cjs (limited to 'vanilla/node_modules/css-tree/cjs/syntax/node') diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/AnPlusB.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/AnPlusB.cjs deleted file mode 100644 index cd59927..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/AnPlusB.cjs +++ /dev/null @@ -1,293 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); -const charCodeDefinitions = require('../../tokenizer/char-code-definitions.cjs'); - -const PLUSSIGN = 0x002B; // U+002B PLUS SIGN (+) -const HYPHENMINUS = 0x002D; // U+002D HYPHEN-MINUS (-) -const N = 0x006E; // U+006E LATIN SMALL LETTER N (n) -const DISALLOW_SIGN = true; -const ALLOW_SIGN = false; - -function checkInteger(offset, disallowSign) { - let pos = this.tokenStart + offset; - const code = this.charCodeAt(pos); - - if (code === PLUSSIGN || code === HYPHENMINUS) { - if (disallowSign) { - this.error('Number sign is not allowed'); - } - pos++; - } - - for (; pos < this.tokenEnd; pos++) { - if (!charCodeDefinitions.isDigit(this.charCodeAt(pos))) { - this.error('Integer is expected', pos); - } - } -} - -function checkTokenIsInteger(disallowSign) { - return checkInteger.call(this, 0, disallowSign); -} - -function expectCharCode(offset, code) { - if (!this.cmpChar(this.tokenStart + offset, code)) { - let msg = ''; - - switch (code) { - case N: - msg = 'N is expected'; - break; - case HYPHENMINUS: - msg = 'HyphenMinus is expected'; - break; - } - - this.error(msg, this.tokenStart + offset); - } -} - -// ... -// ... ['+' | '-'] -function consumeB() { - let offset = 0; - let sign = 0; - let type = this.tokenType; - - while (type === types.WhiteSpace || type === types.Comment) { - type = this.lookupType(++offset); - } - - if (type !== types.Number) { - if (this.isDelim(PLUSSIGN, offset) || - this.isDelim(HYPHENMINUS, offset)) { - sign = this.isDelim(PLUSSIGN, offset) ? PLUSSIGN : HYPHENMINUS; - - do { - type = this.lookupType(++offset); - } while (type === types.WhiteSpace || type === types.Comment); - - if (type !== types.Number) { - this.skip(offset); - checkTokenIsInteger.call(this, DISALLOW_SIGN); - } - } else { - return null; - } - } - - if (offset > 0) { - this.skip(offset); - } - - if (sign === 0) { - type = this.charCodeAt(this.tokenStart); - if (type !== PLUSSIGN && type !== HYPHENMINUS) { - this.error('Number sign is expected'); - } - } - - checkTokenIsInteger.call(this, sign !== 0); - return sign === HYPHENMINUS ? '-' + this.consume(types.Number) : this.consume(types.Number); -} - -// An+B microsyntax https://www.w3.org/TR/css-syntax-3/#anb -const name = 'AnPlusB'; -const structure = { - a: [String, null], - b: [String, null] -}; - -function parse() { - /* eslint-disable brace-style*/ - const start = this.tokenStart; - let a = null; - let b = null; - - // - if (this.tokenType === types.Number) { - checkTokenIsInteger.call(this, ALLOW_SIGN); - b = this.consume(types.Number); - } - - // -n - // -n - // -n ['+' | '-'] - // -n- - // - else if (this.tokenType === types.Ident && this.cmpChar(this.tokenStart, HYPHENMINUS)) { - a = '-1'; - - expectCharCode.call(this, 1, N); - - switch (this.tokenEnd - this.tokenStart) { - // -n - // -n - // -n ['+' | '-'] - case 2: - this.next(); - b = consumeB.call(this); - break; - - // -n- - case 3: - expectCharCode.call(this, 2, HYPHENMINUS); - - this.next(); - this.skipSC(); - - checkTokenIsInteger.call(this, DISALLOW_SIGN); - - b = '-' + this.consume(types.Number); - break; - - // - default: - expectCharCode.call(this, 2, HYPHENMINUS); - checkInteger.call(this, 3, DISALLOW_SIGN); - this.next(); - - b = this.substrToCursor(start + 2); - } - } - - // '+'? n - // '+'? n - // '+'? n ['+' | '-'] - // '+'? n- - // '+'? - else if (this.tokenType === types.Ident || (this.isDelim(PLUSSIGN) && this.lookupType(1) === types.Ident)) { - let sign = 0; - a = '1'; - - // just ignore a plus - if (this.isDelim(PLUSSIGN)) { - sign = 1; - this.next(); - } - - expectCharCode.call(this, 0, N); - - switch (this.tokenEnd - this.tokenStart) { - // '+'? n - // '+'? n - // '+'? n ['+' | '-'] - case 1: - this.next(); - b = consumeB.call(this); - break; - - // '+'? n- - case 2: - expectCharCode.call(this, 1, HYPHENMINUS); - - this.next(); - this.skipSC(); - - checkTokenIsInteger.call(this, DISALLOW_SIGN); - - b = '-' + this.consume(types.Number); - break; - - // '+'? - default: - expectCharCode.call(this, 1, HYPHENMINUS); - checkInteger.call(this, 2, DISALLOW_SIGN); - this.next(); - - b = this.substrToCursor(start + sign + 1); - } - } - - // - // - // - // - // ['+' | '-'] - else if (this.tokenType === types.Dimension) { - const code = this.charCodeAt(this.tokenStart); - const sign = code === PLUSSIGN || code === HYPHENMINUS; - let i = this.tokenStart + sign; - - for (; i < this.tokenEnd; i++) { - if (!charCodeDefinitions.isDigit(this.charCodeAt(i))) { - break; - } - } - - if (i === this.tokenStart + sign) { - this.error('Integer is expected', this.tokenStart + sign); - } - - expectCharCode.call(this, i - this.tokenStart, N); - a = this.substring(start, i); - - // - // - // ['+' | '-'] - if (i + 1 === this.tokenEnd) { - this.next(); - b = consumeB.call(this); - } else { - expectCharCode.call(this, i - this.tokenStart + 1, HYPHENMINUS); - - // - if (i + 2 === this.tokenEnd) { - this.next(); - this.skipSC(); - checkTokenIsInteger.call(this, DISALLOW_SIGN); - b = '-' + this.consume(types.Number); - } - // - else { - checkInteger.call(this, i - this.tokenStart + 2, DISALLOW_SIGN); - this.next(); - b = this.substrToCursor(i + 1); - } - } - } else { - this.error(); - } - - if (a !== null && a.charCodeAt(0) === PLUSSIGN) { - a = a.substr(1); - } - - if (b !== null && b.charCodeAt(0) === PLUSSIGN) { - b = b.substr(1); - } - - return { - type: 'AnPlusB', - loc: this.getLocation(start, this.tokenStart), - a, - b - }; -} - -function generate(node) { - if (node.a) { - const a = - node.a === '+1' && 'n' || - node.a === '1' && 'n' || - node.a === '-1' && '-n' || - node.a + 'n'; - - if (node.b) { - const b = node.b[0] === '-' || node.b[0] === '+' - ? node.b - : '+' + node.b; - this.tokenize(a + b); - } else { - this.tokenize(a); - } - } else { - this.tokenize(node.b); - } -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/Atrule.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/Atrule.cjs deleted file mode 100644 index b2e0598..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/Atrule.cjs +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -function consumeRaw() { - return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon, true); -} - -function isDeclarationBlockAtrule() { - for (let offset = 1, type; type = this.lookupType(offset); offset++) { - if (type === types.RightCurlyBracket) { - return true; - } - - if (type === types.LeftCurlyBracket || - type === types.AtKeyword) { - return false; - } - } - - return false; -} - - -const name = 'Atrule'; -const walkContext = 'atrule'; -const structure = { - name: String, - prelude: ['AtrulePrelude', 'Raw', null], - block: ['Block', null] -}; - -function parse(isDeclaration = false) { - const start = this.tokenStart; - let name; - let nameLowerCase; - let prelude = null; - let block = null; - - this.eat(types.AtKeyword); - - name = this.substrToCursor(start + 1); - nameLowerCase = name.toLowerCase(); - this.skipSC(); - - // parse prelude - if (this.eof === false && - this.tokenType !== types.LeftCurlyBracket && - this.tokenType !== types.Semicolon) { - if (this.parseAtrulePrelude) { - prelude = this.parseWithFallback(this.AtrulePrelude.bind(this, name, isDeclaration), consumeRaw); - } else { - prelude = consumeRaw.call(this, this.tokenIndex); - } - - this.skipSC(); - } - - switch (this.tokenType) { - case types.Semicolon: - this.next(); - break; - - case types.LeftCurlyBracket: - if (hasOwnProperty.call(this.atrule, nameLowerCase) && - typeof this.atrule[nameLowerCase].block === 'function') { - block = this.atrule[nameLowerCase].block.call(this, isDeclaration); - } else { - // TODO: should consume block content as Raw? - block = this.Block(isDeclarationBlockAtrule.call(this)); - } - - break; - } - - return { - type: 'Atrule', - loc: this.getLocation(start, this.tokenStart), - name, - prelude, - block - }; -} - -function generate(node) { - this.token(types.AtKeyword, '@' + node.name); - - if (node.prelude !== null) { - this.node(node.prelude); - } - - if (node.block) { - this.node(node.block); - } else { - this.token(types.Semicolon, ';'); - } -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; -exports.walkContext = walkContext; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/AtrulePrelude.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/AtrulePrelude.cjs deleted file mode 100644 index 0db69b6..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/AtrulePrelude.cjs +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'AtrulePrelude'; -const walkContext = 'atrulePrelude'; -const structure = { - children: [[]] -}; - -function parse(name) { - let children = null; - - if (name !== null) { - name = name.toLowerCase(); - } - - this.skipSC(); - - if (hasOwnProperty.call(this.atrule, name) && - typeof this.atrule[name].prelude === 'function') { - // custom consumer - children = this.atrule[name].prelude.call(this); - } else { - // default consumer - children = this.readSequence(this.scope.AtrulePrelude); - } - - this.skipSC(); - - if (this.eof !== true && - this.tokenType !== types.LeftCurlyBracket && - this.tokenType !== types.Semicolon) { - this.error('Semicolon or block is expected'); - } - - return { - type: 'AtrulePrelude', - loc: this.getLocationFromList(children), - children - }; -} - -function generate(node) { - this.children(node); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; -exports.walkContext = walkContext; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/AttributeSelector.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/AttributeSelector.cjs deleted file mode 100644 index 757d4eb..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/AttributeSelector.cjs +++ /dev/null @@ -1,148 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const DOLLARSIGN = 0x0024; // U+0024 DOLLAR SIGN ($) -const ASTERISK = 0x002A; // U+002A ASTERISK (*) -const EQUALSSIGN = 0x003D; // U+003D EQUALS SIGN (=) -const CIRCUMFLEXACCENT = 0x005E; // U+005E (^) -const VERTICALLINE = 0x007C; // U+007C VERTICAL LINE (|) -const TILDE = 0x007E; // U+007E TILDE (~) - -function getAttributeName() { - if (this.eof) { - this.error('Unexpected end of input'); - } - - const start = this.tokenStart; - let expectIdent = false; - - if (this.isDelim(ASTERISK)) { - expectIdent = true; - this.next(); - } else if (!this.isDelim(VERTICALLINE)) { - this.eat(types.Ident); - } - - if (this.isDelim(VERTICALLINE)) { - if (this.charCodeAt(this.tokenStart + 1) !== EQUALSSIGN) { - this.next(); - this.eat(types.Ident); - } else if (expectIdent) { - this.error('Identifier is expected', this.tokenEnd); - } - } else if (expectIdent) { - this.error('Vertical line is expected'); - } - - return { - type: 'Identifier', - loc: this.getLocation(start, this.tokenStart), - name: this.substrToCursor(start) - }; -} - -function getOperator() { - const start = this.tokenStart; - const code = this.charCodeAt(start); - - if (code !== EQUALSSIGN && // = - code !== TILDE && // ~= - code !== CIRCUMFLEXACCENT && // ^= - code !== DOLLARSIGN && // $= - code !== ASTERISK && // *= - code !== VERTICALLINE // |= - ) { - this.error('Attribute selector (=, ~=, ^=, $=, *=, |=) is expected'); - } - - this.next(); - - if (code !== EQUALSSIGN) { - if (!this.isDelim(EQUALSSIGN)) { - this.error('Equal sign is expected'); - } - - this.next(); - } - - return this.substrToCursor(start); -} - -// '[' ']' -// '[' [ | ] ? ']' -const name = 'AttributeSelector'; -const structure = { - name: 'Identifier', - matcher: [String, null], - value: ['String', 'Identifier', null], - flags: [String, null] -}; - -function parse() { - const start = this.tokenStart; - let name; - let matcher = null; - let value = null; - let flags = null; - - this.eat(types.LeftSquareBracket); - this.skipSC(); - - name = getAttributeName.call(this); - this.skipSC(); - - if (this.tokenType !== types.RightSquareBracket) { - // avoid case `[name i]` - if (this.tokenType !== types.Ident) { - matcher = getOperator.call(this); - - this.skipSC(); - - value = this.tokenType === types.String - ? this.String() - : this.Identifier(); - - this.skipSC(); - } - - // attribute flags - if (this.tokenType === types.Ident) { - flags = this.consume(types.Ident); - - this.skipSC(); - } - } - - this.eat(types.RightSquareBracket); - - return { - type: 'AttributeSelector', - loc: this.getLocation(start, this.tokenStart), - name, - matcher, - value, - flags - }; -} - -function generate(node) { - this.token(types.Delim, '['); - this.node(node.name); - - if (node.matcher !== null) { - this.tokenize(node.matcher); - this.node(node.value); - } - - if (node.flags !== null) { - this.token(types.Ident, node.flags); - } - - this.token(types.Delim, ']'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/Block.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/Block.cjs deleted file mode 100644 index 0e334f6..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/Block.cjs +++ /dev/null @@ -1,96 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const AMPERSAND = 0x0026; // U+0026 AMPERSAND (&) - -function consumeRaw() { - return this.Raw(null, true); -} -function consumeRule() { - return this.parseWithFallback(this.Rule, consumeRaw); -} -function consumeRawDeclaration() { - return this.Raw(this.consumeUntilSemicolonIncluded, true); -} -function consumeDeclaration() { - if (this.tokenType === types.Semicolon) { - return consumeRawDeclaration.call(this, this.tokenIndex); - } - - const node = this.parseWithFallback(this.Declaration, consumeRawDeclaration); - - if (this.tokenType === types.Semicolon) { - this.next(); - } - - return node; -} - -const name = 'Block'; -const walkContext = 'block'; -const structure = { - children: [[ - 'Atrule', - 'Rule', - 'Declaration' - ]] -}; - -function parse(isStyleBlock) { - const consumer = isStyleBlock ? consumeDeclaration : consumeRule; - const start = this.tokenStart; - let children = this.createList(); - - this.eat(types.LeftCurlyBracket); - - scan: - while (!this.eof) { - switch (this.tokenType) { - case types.RightCurlyBracket: - break scan; - - case types.WhiteSpace: - case types.Comment: - this.next(); - break; - - case types.AtKeyword: - children.push(this.parseWithFallback(this.Atrule.bind(this, isStyleBlock), consumeRaw)); - break; - - default: - if (isStyleBlock && this.isDelim(AMPERSAND)) { - children.push(consumeRule.call(this)); - } else { - children.push(consumer.call(this)); - } - } - } - - if (!this.eof) { - this.eat(types.RightCurlyBracket); - } - - return { - type: 'Block', - loc: this.getLocation(start, this.tokenStart), - children - }; -} - -function generate(node) { - this.token(types.LeftCurlyBracket, '{'); - this.children(node, prev => { - if (prev.type === 'Declaration') { - this.token(types.Semicolon, ';'); - } - }); - this.token(types.RightCurlyBracket, '}'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; -exports.walkContext = walkContext; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/Brackets.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/Brackets.cjs deleted file mode 100644 index eb18131..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/Brackets.cjs +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'Brackets'; -const structure = { - children: [[]] -}; - -function parse(readSequence, recognizer) { - const start = this.tokenStart; - let children = null; - - this.eat(types.LeftSquareBracket); - - children = readSequence.call(this, recognizer); - - if (!this.eof) { - this.eat(types.RightSquareBracket); - } - - return { - type: 'Brackets', - loc: this.getLocation(start, this.tokenStart), - children - }; -} - -function generate(node) { - this.token(types.Delim, '['); - this.children(node); - this.token(types.Delim, ']'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/CDC.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/CDC.cjs deleted file mode 100644 index aadf3ad..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/CDC.cjs +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'CDC'; -const structure = []; - -function parse() { - const start = this.tokenStart; - - this.eat(types.CDC); // --> - - return { - type: 'CDC', - loc: this.getLocation(start, this.tokenStart) - }; -} - -function generate() { - this.token(types.CDC, '-->'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs deleted file mode 100644 index 0e98217..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/CDO.cjs +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'CDO'; -const structure = []; - -function parse() { - const start = this.tokenStart; - - this.eat(types.CDO); // - child = this.CDC(); - break; - - // CSS Syntax Module Level 3 - // §2.2 Error handling - // At the "top level" of a stylesheet, an starts an at-rule. - case types.AtKeyword: - child = this.parseWithFallback(this.Atrule, consumeRaw); - break; - - // Anything else starts a qualified rule ... - default: - child = this.parseWithFallback(this.Rule, consumeRaw); - } - - children.push(child); - } - - return { - type: 'StyleSheet', - loc: this.getLocation(start, this.tokenStart), - children - }; -} - -function generate(node) { - this.children(node); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; -exports.walkContext = walkContext; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsDeclaration.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsDeclaration.cjs deleted file mode 100644 index fcac089..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsDeclaration.cjs +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'SupportsDeclaration'; -const structure = { - declaration: 'Declaration' -}; - -function parse() { - const start = this.tokenStart; - - this.eat(types.LeftParenthesis); - this.skipSC(); - - const declaration = this.Declaration(); - - if (!this.eof) { - this.eat(types.RightParenthesis); - } - - return { - type: 'SupportsDeclaration', - loc: this.getLocation(start, this.tokenStart), - declaration - }; -} - -function generate(node) { - this.token(types.LeftParenthesis, '('); - this.node(node.declaration); - this.token(types.RightParenthesis, ')'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsFeature.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsFeature.cjs deleted file mode 100644 index e569a5c..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/SupportsFeature.cjs +++ /dev/null @@ -1,69 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const name = 'SupportsDeclaration'; -const structure = { - feature: String, - value: 'Declaration' -}; - -function parse() { - const start = this.tokenStart; - let featureName = 'declaration'; - let valueParser = this.Declaration; - - if (this.tokenType === types.Function) { - featureName = this.consumeFunctionName(); - valueParser = this.supportsFeature[featureName.toLowerCase()]; - if (!valueParser) { - this.error(`Unknown supports feature ${featureName.toLowerCase()}()`); - } - } else { - this.eat(types.LeftParenthesis); - } - - this.skipSC(); - - const value = this.parseWithFallback( - () => { - const startValueToken = this.tokenIndex; - const value = valueParser.call(this); - - if (this.eof === false && - this.isBalanceEdge(startValueToken) === false) { - this.error(); - } - - return value; - }, - (startToken) => this.Raw(startToken, null, false) - ); - - if (!this.eof) { - this.eat(types.RightParenthesis); - } - - return { - type: 'SupportsDeclaration', - loc: this.getLocation(start, this.tokenStart), - feature: featureName, - value - }; -} - -function generate(node) { - if (node.feature !== 'declaration') { - this.token(types.Function, node.feature + '('); - } else { - this.token(types.LeftParenthesis, '('); - } - - this.node(node.value); - this.token(types.RightParenthesis, ')'); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/TypeSelector.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/TypeSelector.cjs deleted file mode 100644 index 1d15270..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/TypeSelector.cjs +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const ASTERISK = 0x002A; // U+002A ASTERISK (*) -const VERTICALLINE = 0x007C; // U+007C VERTICAL LINE (|) - -function eatIdentifierOrAsterisk() { - if (this.tokenType !== types.Ident && - this.isDelim(ASTERISK) === false) { - this.error('Identifier or asterisk is expected'); - } - - this.next(); -} - -const name = 'TypeSelector'; -const structure = { - name: String -}; - -// ident -// ident|ident -// ident|* -// * -// *|ident -// *|* -// |ident -// |* -function parse() { - const start = this.tokenStart; - - if (this.isDelim(VERTICALLINE)) { - this.next(); - eatIdentifierOrAsterisk.call(this); - } else { - eatIdentifierOrAsterisk.call(this); - - if (this.isDelim(VERTICALLINE)) { - this.next(); - eatIdentifierOrAsterisk.call(this); - } - } - - return { - type: 'TypeSelector', - loc: this.getLocation(start, this.tokenStart), - name: this.substrToCursor(start) - }; -} - -function generate(node) { - this.tokenize(node.name); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/UnicodeRange.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/UnicodeRange.cjs deleted file mode 100644 index 5585e8f..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/UnicodeRange.cjs +++ /dev/null @@ -1,158 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); -const charCodeDefinitions = require('../../tokenizer/char-code-definitions.cjs'); - -const PLUSSIGN = 0x002B; // U+002B PLUS SIGN (+) -const HYPHENMINUS = 0x002D; // U+002D HYPHEN-MINUS (-) -const QUESTIONMARK = 0x003F; // U+003F QUESTION MARK (?) - -function eatHexSequence(offset, allowDash) { - let len = 0; - - for (let pos = this.tokenStart + offset; pos < this.tokenEnd; pos++) { - const code = this.charCodeAt(pos); - - if (code === HYPHENMINUS && allowDash && len !== 0) { - eatHexSequence.call(this, offset + len + 1, false); - return -1; - } - - if (!charCodeDefinitions.isHexDigit(code)) { - this.error( - allowDash && len !== 0 - ? 'Hyphen minus' + (len < 6 ? ' or hex digit' : '') + ' is expected' - : (len < 6 ? 'Hex digit is expected' : 'Unexpected input'), - pos - ); - } - - if (++len > 6) { - this.error('Too many hex digits', pos); - } } - - this.next(); - return len; -} - -function eatQuestionMarkSequence(max) { - let count = 0; - - while (this.isDelim(QUESTIONMARK)) { - if (++count > max) { - this.error('Too many question marks'); - } - - this.next(); - } -} - -function startsWith(code) { - if (this.charCodeAt(this.tokenStart) !== code) { - this.error((code === PLUSSIGN ? 'Plus sign' : 'Hyphen minus') + ' is expected'); - } -} - -// https://drafts.csswg.org/css-syntax/#urange -// Informally, the production has three forms: -// U+0001 -// Defines a range consisting of a single code point, in this case the code point "1". -// U+0001-00ff -// Defines a range of codepoints between the first and the second value, in this case -// the range between "1" and "ff" (255 in decimal) inclusive. -// U+00?? -// Defines a range of codepoints where the "?" characters range over all hex digits, -// in this case defining the same as the value U+0000-00ff. -// In each form, a maximum of 6 digits is allowed for each hexadecimal number (if you treat "?" as a hexadecimal digit). -// -// = -// u '+' '?'* | -// u '?'* | -// u '?'* | -// u | -// u | -// u '+' '?'+ -function scanUnicodeRange() { - let hexLength = 0; - - switch (this.tokenType) { - case types.Number: - // u '?'* - // u - // u - hexLength = eatHexSequence.call(this, 1, true); - - if (this.isDelim(QUESTIONMARK)) { - eatQuestionMarkSequence.call(this, 6 - hexLength); - break; - } - - if (this.tokenType === types.Dimension || - this.tokenType === types.Number) { - startsWith.call(this, HYPHENMINUS); - eatHexSequence.call(this, 1, false); - break; - } - - break; - - case types.Dimension: - // u '?'* - hexLength = eatHexSequence.call(this, 1, true); - - if (hexLength > 0) { - eatQuestionMarkSequence.call(this, 6 - hexLength); - } - - break; - - default: - // u '+' '?'* - // u '+' '?'+ - this.eatDelim(PLUSSIGN); - - if (this.tokenType === types.Ident) { - hexLength = eatHexSequence.call(this, 0, true); - if (hexLength > 0) { - eatQuestionMarkSequence.call(this, 6 - hexLength); - } - break; - } - - if (this.isDelim(QUESTIONMARK)) { - this.next(); - eatQuestionMarkSequence.call(this, 5); - break; - } - - this.error('Hex digit or question mark is expected'); - } -} - -const name = 'UnicodeRange'; -const structure = { - value: String -}; - -function parse() { - const start = this.tokenStart; - - // U or u - this.eatIdent('u'); - scanUnicodeRange.call(this); - - return { - type: 'UnicodeRange', - loc: this.getLocation(start, this.tokenStart), - value: this.substrToCursor(start) - }; -} - -function generate(node) { - this.tokenize(node.value); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/Url.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/Url.cjs deleted file mode 100644 index 6a39457..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/Url.cjs +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - -const url = require('../../utils/url.cjs'); -const string = require('../../utils/string.cjs'); -const types = require('../../tokenizer/types.cjs'); - -const name = 'Url'; -const structure = { - value: String -}; - -// | ) -function parse() { - const start = this.tokenStart; - let value; - - switch (this.tokenType) { - case types.Url: - value = url.decode(this.consume(types.Url)); - break; - - case types.Function: - if (!this.cmpStr(this.tokenStart, this.tokenEnd, 'url(')) { - this.error('Function name must be `url`'); - } - - this.eat(types.Function); - this.skipSC(); - value = string.decode(this.consume(types.String)); - this.skipSC(); - if (!this.eof) { - this.eat(types.RightParenthesis); - } - break; - - default: - this.error('Url or Function is expected'); - } - - return { - type: 'Url', - loc: this.getLocation(start, this.tokenStart), - value - }; -} - -function generate(node) { - this.token(types.Url, url.encode(node.value)); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/Value.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/Value.cjs deleted file mode 100644 index bdb322e..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/Value.cjs +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -const name = 'Value'; -const structure = { - children: [[]] -}; - -function parse() { - const start = this.tokenStart; - const children = this.readSequence(this.scope.Value); - - return { - type: 'Value', - loc: this.getLocation(start, this.tokenStart), - children - }; -} - -function generate(node) { - this.children(node); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs deleted file mode 100644 index 50c1982..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/WhiteSpace.cjs +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const types = require('../../tokenizer/types.cjs'); - -const SPACE = Object.freeze({ - type: 'WhiteSpace', - loc: null, - value: ' ' -}); - -const name = 'WhiteSpace'; -const structure = { - value: String -}; - -function parse() { - this.eat(types.WhiteSpace); - return SPACE; - - // return { - // type: 'WhiteSpace', - // loc: this.getLocation(this.tokenStart, this.tokenEnd), - // value: this.consume(WHITESPACE) - // }; -} - -function generate(node) { - this.token(types.WhiteSpace, node.value); -} - -exports.generate = generate; -exports.name = name; -exports.parse = parse; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature-range.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature-range.cjs deleted file mode 100644 index 7589b56..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature-range.cjs +++ /dev/null @@ -1,112 +0,0 @@ -'use strict'; - -const types = require('../../../tokenizer/types.cjs'); - -const LESSTHANSIGN = 60; // < -const EQUALSIGN = 61; // = -const GREATERTHANSIGN = 62; // > - -const structure = { - left: ['Identifier', 'Number', 'Dimension', 'Ratio'], - leftComparison: String, - middle: ['Identifier', 'Number', 'Dimension', 'Ratio'], - rightComparison: [String, null], - right: ['Identifier', 'Number', 'Dimension', 'Ratio', null] -}; - -function readTerm() { - this.skipSC(); - - switch (this.tokenType) { - case types.Number: - if (this.lookupNonWSType(1) === types.Delim) { - return this.Ratio(); - } else { - return this.Number(); - } - - case types.Dimension: - return this.Dimension(); - - case types.Ident: - return this.Identifier(); - - default: - this.error('Number, dimension, ratio or identifier is expected'); - } -} - -function readComparison(expectColon) { - this.skipSC(); - - if (this.isDelim(LESSTHANSIGN) || - this.isDelim(GREATERTHANSIGN)) { - const value = this.source[this.tokenStart]; - - this.next(); - - if (this.isDelim(EQUALSIGN)) { - this.next(); - return value + '='; - } - - return value; - } - - if (this.isDelim(EQUALSIGN)) { - return '='; - } - - this.error(`Expected ${expectColon ? '":", ' : ''}"<", ">", "=" or ")"`); -} - -function createParse(type) { - return function parse() { - const start = this.tokenStart; - - this.skipSC(); - this.eat(types.LeftParenthesis); - - const left = readTerm.call(this); - const leftComparison = readComparison.call(this, left.type === 'Identifier'); - const middle = readTerm.call(this); - let rightComparison = null; - let right = null; - - if (this.lookupNonWSType(0) !== types.RightParenthesis) { - rightComparison = readComparison.call(this); - right = readTerm.call(this); - } - - this.skipSC(); - this.eat(types.RightParenthesis); - - return { - type, - loc: this.getLocation(start, this.tokenStart), - left, - leftComparison, - middle, - rightComparison, - right - }; - }; -} - -function generate(node) { - this.token(types.LeftParenthesis, '('); - this.node(node.left); - this.tokenize(node.leftComparison); - this.node(node.middle); - - if (node.right) { - this.tokenize(node.rightComparison); - this.node(node.right); - } - - this.token(types.RightParenthesis, ')'); -} - -exports.createParse = createParse; -exports.generate = generate; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature.cjs deleted file mode 100644 index fa5de4e..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/common/feature.cjs +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -const types = require('../../../tokenizer/types.cjs'); - -const structure = { - name: String, - value: ['Identifier', 'Number', 'Dimension', 'Ratio', null] -}; - -function createParse(type) { - return function parse() { - const start = this.tokenStart; - let name; - let value = null; - - this.eat(types.LeftParenthesis); - this.skipSC(); - - name = this.consume(types.Ident); - this.skipSC(); - - if (this.tokenType !== types.RightParenthesis) { - this.eat(types.Colon); - this.skipSC(); - - switch (this.tokenType) { - case types.Number: - if (this.lookupNonWSType(1) === types.Delim) { - value = this.Ratio(); - } else { - value = this.Number(); - } - - break; - - case types.Dimension: - value = this.Dimension(); - break; - - case types.Ident: - value = this.Identifier(); - break; - - default: - this.error('Number, dimension, ratio or identifier is expected'); - } - - this.skipSC(); - } - - this.eat(types.RightParenthesis); - - return { - type, - loc: this.getLocation(start, this.tokenStart), - name, - value - }; - }; -} - -function generate(node) { - this.token(types.LeftParenthesis, '('); - this.token(types.Ident, node.name); - - if (node.value !== null) { - this.token(types.Colon, ':'); - this.node(node.value); - } - - this.token(types.RightParenthesis, ')'); -} - -exports.createParse = createParse; -exports.generate = generate; -exports.structure = structure; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/index-generate.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/index-generate.cjs deleted file mode 100644 index 41a4ef1..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/index-generate.cjs +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; - -const AnPlusB = require('./AnPlusB.cjs'); -const Atrule = require('./Atrule.cjs'); -const AtrulePrelude = require('./AtrulePrelude.cjs'); -const AttributeSelector = require('./AttributeSelector.cjs'); -const Block = require('./Block.cjs'); -const Brackets = require('./Brackets.cjs'); -const CDC = require('./CDC.cjs'); -const CDO = require('./CDO.cjs'); -const ClassSelector = require('./ClassSelector.cjs'); -const Combinator = require('./Combinator.cjs'); -const Comment = require('./Comment.cjs'); -const Condition = require('./Condition.cjs'); -const Declaration = require('./Declaration.cjs'); -const DeclarationList = require('./DeclarationList.cjs'); -const Dimension = require('./Dimension.cjs'); -const Feature = require('./Feature.cjs'); -const FeatureFunction = require('./FeatureFunction.cjs'); -const FeatureRange = require('./FeatureRange.cjs'); -const Function = require('./Function.cjs'); -const GeneralEnclosed = require('./GeneralEnclosed.cjs'); -const Hash = require('./Hash.cjs'); -const Identifier = require('./Identifier.cjs'); -const IdSelector = require('./IdSelector.cjs'); -const Layer = require('./Layer.cjs'); -const LayerList = require('./LayerList.cjs'); -const MediaQuery = require('./MediaQuery.cjs'); -const MediaQueryList = require('./MediaQueryList.cjs'); -const NestingSelector = require('./NestingSelector.cjs'); -const Nth = require('./Nth.cjs'); -const Number = require('./Number.cjs'); -const Operator = require('./Operator.cjs'); -const Parentheses = require('./Parentheses.cjs'); -const Percentage = require('./Percentage.cjs'); -const PseudoClassSelector = require('./PseudoClassSelector.cjs'); -const PseudoElementSelector = require('./PseudoElementSelector.cjs'); -const Ratio = require('./Ratio.cjs'); -const Raw = require('./Raw.cjs'); -const Rule = require('./Rule.cjs'); -const Scope = require('./Scope.cjs'); -const Selector = require('./Selector.cjs'); -const SelectorList = require('./SelectorList.cjs'); -const String = require('./String.cjs'); -const StyleSheet = require('./StyleSheet.cjs'); -const SupportsDeclaration = require('./SupportsDeclaration.cjs'); -const TypeSelector = require('./TypeSelector.cjs'); -const UnicodeRange = require('./UnicodeRange.cjs'); -const Url = require('./Url.cjs'); -const Value = require('./Value.cjs'); -const WhiteSpace = require('./WhiteSpace.cjs'); - - - -exports.AnPlusB = AnPlusB.generate; -exports.Atrule = Atrule.generate; -exports.AtrulePrelude = AtrulePrelude.generate; -exports.AttributeSelector = AttributeSelector.generate; -exports.Block = Block.generate; -exports.Brackets = Brackets.generate; -exports.CDC = CDC.generate; -exports.CDO = CDO.generate; -exports.ClassSelector = ClassSelector.generate; -exports.Combinator = Combinator.generate; -exports.Comment = Comment.generate; -exports.Condition = Condition.generate; -exports.Declaration = Declaration.generate; -exports.DeclarationList = DeclarationList.generate; -exports.Dimension = Dimension.generate; -exports.Feature = Feature.generate; -exports.FeatureFunction = FeatureFunction.generate; -exports.FeatureRange = FeatureRange.generate; -exports.Function = Function.generate; -exports.GeneralEnclosed = GeneralEnclosed.generate; -exports.Hash = Hash.generate; -exports.Identifier = Identifier.generate; -exports.IdSelector = IdSelector.generate; -exports.Layer = Layer.generate; -exports.LayerList = LayerList.generate; -exports.MediaQuery = MediaQuery.generate; -exports.MediaQueryList = MediaQueryList.generate; -exports.NestingSelector = NestingSelector.generate; -exports.Nth = Nth.generate; -exports.Number = Number.generate; -exports.Operator = Operator.generate; -exports.Parentheses = Parentheses.generate; -exports.Percentage = Percentage.generate; -exports.PseudoClassSelector = PseudoClassSelector.generate; -exports.PseudoElementSelector = PseudoElementSelector.generate; -exports.Ratio = Ratio.generate; -exports.Raw = Raw.generate; -exports.Rule = Rule.generate; -exports.Scope = Scope.generate; -exports.Selector = Selector.generate; -exports.SelectorList = SelectorList.generate; -exports.String = String.generate; -exports.StyleSheet = StyleSheet.generate; -exports.SupportsDeclaration = SupportsDeclaration.generate; -exports.TypeSelector = TypeSelector.generate; -exports.UnicodeRange = UnicodeRange.generate; -exports.Url = Url.generate; -exports.Value = Value.generate; -exports.WhiteSpace = WhiteSpace.generate; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse-selector.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse-selector.cjs deleted file mode 100644 index 79caf05..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse-selector.cjs +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -const AnPlusB = require('./AnPlusB.cjs'); -const AttributeSelector = require('./AttributeSelector.cjs'); -const ClassSelector = require('./ClassSelector.cjs'); -const Combinator = require('./Combinator.cjs'); -const Identifier = require('./Identifier.cjs'); -const IdSelector = require('./IdSelector.cjs'); -const NestingSelector = require('./NestingSelector.cjs'); -const Nth = require('./Nth.cjs'); -const Operator = require('./Operator.cjs'); -const Percentage = require('./Percentage.cjs'); -const PseudoClassSelector = require('./PseudoClassSelector.cjs'); -const PseudoElementSelector = require('./PseudoElementSelector.cjs'); -const Raw = require('./Raw.cjs'); -const Selector = require('./Selector.cjs'); -const SelectorList = require('./SelectorList.cjs'); -const String = require('./String.cjs'); -const TypeSelector = require('./TypeSelector.cjs'); - - - -exports.AnPlusB = AnPlusB.parse; -exports.AttributeSelector = AttributeSelector.parse; -exports.ClassSelector = ClassSelector.parse; -exports.Combinator = Combinator.parse; -exports.Identifier = Identifier.parse; -exports.IdSelector = IdSelector.parse; -exports.NestingSelector = NestingSelector.parse; -exports.Nth = Nth.parse; -exports.Operator = Operator.parse; -exports.Percentage = Percentage.parse; -exports.PseudoClassSelector = PseudoClassSelector.parse; -exports.PseudoElementSelector = PseudoElementSelector.parse; -exports.Raw = Raw.parse; -exports.Selector = Selector.parse; -exports.SelectorList = SelectorList.parse; -exports.String = String.parse; -exports.TypeSelector = TypeSelector.parse; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse.cjs deleted file mode 100644 index 050bd17..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/index-parse.cjs +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; - -const AnPlusB = require('./AnPlusB.cjs'); -const Atrule = require('./Atrule.cjs'); -const AtrulePrelude = require('./AtrulePrelude.cjs'); -const AttributeSelector = require('./AttributeSelector.cjs'); -const Block = require('./Block.cjs'); -const Brackets = require('./Brackets.cjs'); -const CDC = require('./CDC.cjs'); -const CDO = require('./CDO.cjs'); -const ClassSelector = require('./ClassSelector.cjs'); -const Combinator = require('./Combinator.cjs'); -const Comment = require('./Comment.cjs'); -const Condition = require('./Condition.cjs'); -const Declaration = require('./Declaration.cjs'); -const DeclarationList = require('./DeclarationList.cjs'); -const Dimension = require('./Dimension.cjs'); -const Feature = require('./Feature.cjs'); -const FeatureFunction = require('./FeatureFunction.cjs'); -const FeatureRange = require('./FeatureRange.cjs'); -const Function = require('./Function.cjs'); -const GeneralEnclosed = require('./GeneralEnclosed.cjs'); -const Hash = require('./Hash.cjs'); -const Identifier = require('./Identifier.cjs'); -const IdSelector = require('./IdSelector.cjs'); -const Layer = require('./Layer.cjs'); -const LayerList = require('./LayerList.cjs'); -const MediaQuery = require('./MediaQuery.cjs'); -const MediaQueryList = require('./MediaQueryList.cjs'); -const NestingSelector = require('./NestingSelector.cjs'); -const Nth = require('./Nth.cjs'); -const Number = require('./Number.cjs'); -const Operator = require('./Operator.cjs'); -const Parentheses = require('./Parentheses.cjs'); -const Percentage = require('./Percentage.cjs'); -const PseudoClassSelector = require('./PseudoClassSelector.cjs'); -const PseudoElementSelector = require('./PseudoElementSelector.cjs'); -const Ratio = require('./Ratio.cjs'); -const Raw = require('./Raw.cjs'); -const Rule = require('./Rule.cjs'); -const Scope = require('./Scope.cjs'); -const Selector = require('./Selector.cjs'); -const SelectorList = require('./SelectorList.cjs'); -const String = require('./String.cjs'); -const StyleSheet = require('./StyleSheet.cjs'); -const SupportsDeclaration = require('./SupportsDeclaration.cjs'); -const TypeSelector = require('./TypeSelector.cjs'); -const UnicodeRange = require('./UnicodeRange.cjs'); -const Url = require('./Url.cjs'); -const Value = require('./Value.cjs'); -const WhiteSpace = require('./WhiteSpace.cjs'); - - - -exports.AnPlusB = AnPlusB.parse; -exports.Atrule = Atrule.parse; -exports.AtrulePrelude = AtrulePrelude.parse; -exports.AttributeSelector = AttributeSelector.parse; -exports.Block = Block.parse; -exports.Brackets = Brackets.parse; -exports.CDC = CDC.parse; -exports.CDO = CDO.parse; -exports.ClassSelector = ClassSelector.parse; -exports.Combinator = Combinator.parse; -exports.Comment = Comment.parse; -exports.Condition = Condition.parse; -exports.Declaration = Declaration.parse; -exports.DeclarationList = DeclarationList.parse; -exports.Dimension = Dimension.parse; -exports.Feature = Feature.parse; -exports.FeatureFunction = FeatureFunction.parse; -exports.FeatureRange = FeatureRange.parse; -exports.Function = Function.parse; -exports.GeneralEnclosed = GeneralEnclosed.parse; -exports.Hash = Hash.parse; -exports.Identifier = Identifier.parse; -exports.IdSelector = IdSelector.parse; -exports.Layer = Layer.parse; -exports.LayerList = LayerList.parse; -exports.MediaQuery = MediaQuery.parse; -exports.MediaQueryList = MediaQueryList.parse; -exports.NestingSelector = NestingSelector.parse; -exports.Nth = Nth.parse; -exports.Number = Number.parse; -exports.Operator = Operator.parse; -exports.Parentheses = Parentheses.parse; -exports.Percentage = Percentage.parse; -exports.PseudoClassSelector = PseudoClassSelector.parse; -exports.PseudoElementSelector = PseudoElementSelector.parse; -exports.Ratio = Ratio.parse; -exports.Raw = Raw.parse; -exports.Rule = Rule.parse; -exports.Scope = Scope.parse; -exports.Selector = Selector.parse; -exports.SelectorList = SelectorList.parse; -exports.String = String.parse; -exports.StyleSheet = StyleSheet.parse; -exports.SupportsDeclaration = SupportsDeclaration.parse; -exports.TypeSelector = TypeSelector.parse; -exports.UnicodeRange = UnicodeRange.parse; -exports.Url = Url.parse; -exports.Value = Value.parse; -exports.WhiteSpace = WhiteSpace.parse; diff --git a/vanilla/node_modules/css-tree/cjs/syntax/node/index.cjs b/vanilla/node_modules/css-tree/cjs/syntax/node/index.cjs deleted file mode 100644 index 57451f0..0000000 --- a/vanilla/node_modules/css-tree/cjs/syntax/node/index.cjs +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; - -const AnPlusB = require('./AnPlusB.cjs'); -const Atrule = require('./Atrule.cjs'); -const AtrulePrelude = require('./AtrulePrelude.cjs'); -const AttributeSelector = require('./AttributeSelector.cjs'); -const Block = require('./Block.cjs'); -const Brackets = require('./Brackets.cjs'); -const CDC = require('./CDC.cjs'); -const CDO = require('./CDO.cjs'); -const ClassSelector = require('./ClassSelector.cjs'); -const Combinator = require('./Combinator.cjs'); -const Comment = require('./Comment.cjs'); -const Condition = require('./Condition.cjs'); -const Declaration = require('./Declaration.cjs'); -const DeclarationList = require('./DeclarationList.cjs'); -const Dimension = require('./Dimension.cjs'); -const Feature = require('./Feature.cjs'); -const FeatureFunction = require('./FeatureFunction.cjs'); -const FeatureRange = require('./FeatureRange.cjs'); -const Function = require('./Function.cjs'); -const GeneralEnclosed = require('./GeneralEnclosed.cjs'); -const Hash = require('./Hash.cjs'); -const Identifier = require('./Identifier.cjs'); -const IdSelector = require('./IdSelector.cjs'); -const Layer = require('./Layer.cjs'); -const LayerList = require('./LayerList.cjs'); -const MediaQuery = require('./MediaQuery.cjs'); -const MediaQueryList = require('./MediaQueryList.cjs'); -const NestingSelector = require('./NestingSelector.cjs'); -const Nth = require('./Nth.cjs'); -const Number$1 = require('./Number.cjs'); -const Operator = require('./Operator.cjs'); -const Parentheses = require('./Parentheses.cjs'); -const Percentage = require('./Percentage.cjs'); -const PseudoClassSelector = require('./PseudoClassSelector.cjs'); -const PseudoElementSelector = require('./PseudoElementSelector.cjs'); -const Ratio = require('./Ratio.cjs'); -const Raw = require('./Raw.cjs'); -const Rule = require('./Rule.cjs'); -const Scope = require('./Scope.cjs'); -const Selector = require('./Selector.cjs'); -const SelectorList = require('./SelectorList.cjs'); -const String$1 = require('./String.cjs'); -const StyleSheet = require('./StyleSheet.cjs'); -const SupportsDeclaration = require('./SupportsDeclaration.cjs'); -const TypeSelector = require('./TypeSelector.cjs'); -const UnicodeRange = require('./UnicodeRange.cjs'); -const Url = require('./Url.cjs'); -const Value = require('./Value.cjs'); -const WhiteSpace = require('./WhiteSpace.cjs'); - - - -exports.AnPlusB = AnPlusB; -exports.Atrule = Atrule; -exports.AtrulePrelude = AtrulePrelude; -exports.AttributeSelector = AttributeSelector; -exports.Block = Block; -exports.Brackets = Brackets; -exports.CDC = CDC; -exports.CDO = CDO; -exports.ClassSelector = ClassSelector; -exports.Combinator = Combinator; -exports.Comment = Comment; -exports.Condition = Condition; -exports.Declaration = Declaration; -exports.DeclarationList = DeclarationList; -exports.Dimension = Dimension; -exports.Feature = Feature; -exports.FeatureFunction = FeatureFunction; -exports.FeatureRange = FeatureRange; -exports.Function = Function; -exports.GeneralEnclosed = GeneralEnclosed; -exports.Hash = Hash; -exports.Identifier = Identifier; -exports.IdSelector = IdSelector; -exports.Layer = Layer; -exports.LayerList = LayerList; -exports.MediaQuery = MediaQuery; -exports.MediaQueryList = MediaQueryList; -exports.NestingSelector = NestingSelector; -exports.Nth = Nth; -exports.Number = Number$1; -exports.Operator = Operator; -exports.Parentheses = Parentheses; -exports.Percentage = Percentage; -exports.PseudoClassSelector = PseudoClassSelector; -exports.PseudoElementSelector = PseudoElementSelector; -exports.Ratio = Ratio; -exports.Raw = Raw; -exports.Rule = Rule; -exports.Scope = Scope; -exports.Selector = Selector; -exports.SelectorList = SelectorList; -exports.String = String$1; -exports.StyleSheet = StyleSheet; -exports.SupportsDeclaration = SupportsDeclaration; -exports.TypeSelector = TypeSelector; -exports.UnicodeRange = UnicodeRange; -exports.Url = Url; -exports.Value = Value; -exports.WhiteSpace = WhiteSpace; -- cgit v1.2.3