@projectwallace/css-parser 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{css-node-CbNQbD4P.js → css-node-DwKXZuNm.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{node-types-Dt096ytO.d.ts → node-types-De9R2IIL.d.ts} +24 -18
- package/dist/parse-anplusb.d.ts +1 -1
- package/dist/parse-anplusb.js +1 -1
- package/dist/parse-atrule-prelude.d.ts +1 -1
- package/dist/parse-atrule-prelude.js +1 -1
- package/dist/parse-declaration.d.ts +1 -1
- package/dist/parse-declaration.js +1 -1
- package/dist/parse-selector.d.ts +1 -1
- package/dist/parse-selector.js +1 -1
- package/dist/parse-value.d.ts +1 -1
- package/dist/parse-value.js +1 -1
- package/dist/parse.d.ts +1 -1
- package/dist/parse.js +1 -1
- package/dist/walk.d.ts +1 -1
- package/package.json +1 -1
|
@@ -113,7 +113,7 @@ var CSSNode = class CSSNode {
|
|
|
113
113
|
return this.get_content();
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Get the value text (for declarations: "blue" in "
|
|
116
|
+
* Get the value text (for declarations: "1px solid blue" in "border: 1px solid blue")
|
|
117
117
|
* For dimension/number nodes: returns the numeric value as a number
|
|
118
118
|
* For string nodes: returns the string content without quotes
|
|
119
119
|
* For URL nodes with quoted string: returns the string with quotes (consistent with STRING node)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as TYPE_SELECTOR, C as NESTING_SELECTOR, D as OPERATOR, E as NUMBER, F as SELECTOR_LIST, H as UNIVERSAL_SELECTOR, I as STRING, L as STYLESHEET, M as PSEUDO_ELEMENT_SELECTOR, N as RAW, O as PARENTHESIS, P as SELECTOR, R as STYLE_RULE, S as MEDIA_TYPE, T as NTH_SELECTOR, U as URL, V as UNICODE_RANGE, W as VALUE, _ as ID_SELECTOR, a as CLASS_SELECTOR, b as MEDIA_FEATURE, c as CONTAINER_QUERY, d as DIMENSION, f as FEATURE_RANGE, g as IDENTIFIER, h as HASH, i as BLOCK, j as PSEUDO_CLASS_SELECTOR, k as PRELUDE_OPERATOR, m as FUNCTION, n as AT_RULE, o as COMBINATOR, p as FLAG_IMPORTANT, r as AT_RULE_PRELUDE, s as COMMENT, t as ATTRIBUTE_SELECTOR, u as DECLARATION, v as LANG_SELECTOR, w as NTH_OF_SELECTOR, x as MEDIA_QUERY, y as LAYER_NAME, z as SUPPORTS_QUERY } from "./arena-D6TANE5e.js";
|
|
2
2
|
import { NODE_TYPES } from "./constants.js";
|
|
3
3
|
import { A as TOKEN_URL, C as TOKEN_PERCENTAGE, D as TOKEN_SEMICOLON, E as TOKEN_RIGHT_PAREN, M as Token, N as TokenType, O as TOKEN_STRING, S as TOKEN_NUMBER, T as TOKEN_RIGHT_BRACKET, _ as TOKEN_HASH, a as TOKEN_AT_KEYWORD, b as TOKEN_LEFT_BRACKET, c as TOKEN_CDC, d as TOKEN_COMMA, f as TOKEN_COMMENT, g as TOKEN_FUNCTION, h as TOKEN_EOF, i as tokenize, j as TOKEN_WHITESPACE, k as TOKEN_UNICODE_RANGE, l as TOKEN_CDO, m as TOKEN_DIMENSION, o as TOKEN_BAD_STRING, p as TOKEN_DELIM, r as LexerPosition, s as TOKEN_BAD_URL, t as CommentInfo, u as TOKEN_COLON, v as TOKEN_IDENT, w as TOKEN_RIGHT_BRACE, x as TOKEN_LEFT_PAREN, y as TOKEN_LEFT_BRACE } from "./tokenize-CyiJelQC.js";
|
|
4
|
-
import { $ as is_comment, A as PreludeSelectorList, At as is_type_selector, B as ToPlain, C as NestingSelector, Ct as is_raw, D as Operator, Dt as is_string, E as Number, Et as is_selector_list, F as Selector, Ft as CloneOptions, G as Value, H as UnicodeRange, I as SelectorList, It as TYPE_NAMES, J as is_atrule_prelude, K as WithChildren, L as String, M as PseudoElementSelector, Mt as is_universal_selector, N as Raw, Nt as is_url, O as Parenthesis, Ot as is_stylesheet, P as Rule, Pt as is_value, Q as is_combinator, R as StyleSheet, S as MediaType, St as is_pseudo_element_selector, T as NthSelector, Tt as is_selector, U as UniversalSelector, V as TypeSelector, W as Url, X as is_block, Y as is_attribute_selector, Z as is_class_selector, _ as Identifier, _t as is_operator, a as Block, at as is_hash, b as MediaFeature, bt as is_prelude_selectorlist, c as Combinator, ct as is_lang_selector, d as Declaration, dt as is_media_query, et as is_container_query, f as Dimension, ft as is_media_type, g as IdSelector, gt as is_number, h as Hash, ht as is_nth_selector, i as AttributeSelector, it as is_function, j as PseudoClassSelector, jt as is_unicode_range, k as PreludeOperator, kt as is_supports_query, l as Comment, lt as is_layer_name, m as Function, mt as is_nth_of_selector, n as Atrule, nt as is_dimension, o as CSSNode, ot as is_id_selector, p as FeatureRange, pt as is_nesting_selector, q as is_atrule, r as AtrulePrelude, rt as is_feature_range, s as ClassSelector, st as is_identifier, t as AnyNode, tt as is_declaration, u as ContainerQuery, ut as is_media_feature, v as LangSelector, vt as is_parenthesis, w as NthOfSelector, wt as is_rule, x as MediaQuery, xt as is_pseudo_class_selector, y as LayerName, yt as is_prelude_operator, z as SupportsQuery } from "./node-types-
|
|
4
|
+
import { $ as is_comment, A as PreludeSelectorList, At as is_type_selector, B as ToPlain, C as NestingSelector, Ct as is_raw, D as Operator, Dt as is_string, E as Number, Et as is_selector_list, F as Selector, Ft as CloneOptions, G as Value, H as UnicodeRange, I as SelectorList, It as TYPE_NAMES, J as is_atrule_prelude, K as WithChildren, L as String, M as PseudoElementSelector, Mt as is_universal_selector, N as Raw, Nt as is_url, O as Parenthesis, Ot as is_stylesheet, P as Rule, Pt as is_value, Q as is_combinator, R as StyleSheet, S as MediaType, St as is_pseudo_element_selector, T as NthSelector, Tt as is_selector, U as UniversalSelector, V as TypeSelector, W as Url, X as is_block, Y as is_attribute_selector, Z as is_class_selector, _ as Identifier, _t as is_operator, a as Block, at as is_hash, b as MediaFeature, bt as is_prelude_selectorlist, c as Combinator, ct as is_lang_selector, d as Declaration, dt as is_media_query, et as is_container_query, f as Dimension, ft as is_media_type, g as IdSelector, gt as is_number, h as Hash, ht as is_nth_selector, i as AttributeSelector, it as is_function, j as PseudoClassSelector, jt as is_unicode_range, k as PreludeOperator, kt as is_supports_query, l as Comment, lt as is_layer_name, m as Function, mt as is_nth_of_selector, n as Atrule, nt as is_dimension, o as CSSNode, ot as is_id_selector, p as FeatureRange, pt as is_nesting_selector, q as is_atrule, r as AtrulePrelude, rt as is_feature_range, s as ClassSelector, st as is_identifier, t as AnyNode, tt as is_declaration, u as ContainerQuery, ut as is_media_feature, v as LangSelector, vt as is_parenthesis, w as NthOfSelector, wt as is_rule, x as MediaQuery, xt as is_pseudo_class_selector, y as LayerName, yt as is_prelude_operator, z as SupportsQuery } from "./node-types-De9R2IIL.js";
|
|
5
5
|
import { ParserOptions, parse } from "./parse.js";
|
|
6
6
|
import { parse_selector } from "./parse-selector.js";
|
|
7
7
|
import { parse_atrule_prelude } from "./parse-atrule-prelude.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as TOKEN_RIGHT_BRACKET, D as TOKEN_UNICODE_RANGE, E as TOKEN_STRING, O as TOKEN_URL, S as TOKEN_RIGHT_BRACE, T as TOKEN_SEMICOLON, _ as TOKEN_LEFT_BRACE, a as TOKEN_BAD_URL, b as TOKEN_NUMBER, c as TOKEN_COLON, d as TOKEN_DELIM, f as TOKEN_DIMENSION, g as TOKEN_IDENT, h as TOKEN_HASH, i as TOKEN_BAD_STRING, k as TOKEN_WHITESPACE, l as TOKEN_COMMA, m as TOKEN_FUNCTION, n as tokenize, o as TOKEN_CDC, p as TOKEN_EOF, r as TOKEN_AT_KEYWORD, s as TOKEN_CDO, u as TOKEN_COMMENT, v as TOKEN_LEFT_BRACKET, w as TOKEN_RIGHT_PAREN, x as TOKEN_PERCENTAGE, y as TOKEN_LEFT_PAREN } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { A as PSEUDO_CLASS_SELECTOR, B as UNICODE_RANGE, C as NESTING_SELECTOR, D as OPERATOR, E as NUMBER, F as STRING, H as URL, I as STYLESHEET, L as STYLE_RULE, M as RAW, N as SELECTOR, O as PARENTHESIS, P as SELECTOR_LIST, R as SUPPORTS_QUERY, S as MEDIA_TYPE, T as NTH_SELECTOR, U as VALUE, V as UNIVERSAL_SELECTOR, _ as ID_SELECTOR, a as CLASS_SELECTOR, b as MEDIA_FEATURE, c as CONTAINER_QUERY, d as DIMENSION, f as FEATURE_RANGE, g as IDENTIFIER, h as HASH, i as BLOCK, j as PSEUDO_ELEMENT_SELECTOR, k as PRELUDE_OPERATOR, m as FUNCTION, n as AT_RULE, o as COMBINATOR, p as FLAG_IMPORTANT, r as AT_RULE_PRELUDE, s as COMMENT, t as ATTRIBUTE_SELECTOR, u as DECLARATION, v as LANG_SELECTOR, w as NTH_OF_SELECTOR, x as MEDIA_QUERY, y as LAYER_NAME, z as TYPE_SELECTOR } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { c as str_starts_with, i as is_vendor_prefixed, o as str_equals, r as is_custom, s as str_index_of, t as parse_dimension } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { n as TYPE_NAMES } from "./css-node-
|
|
4
|
+
import { n as TYPE_NAMES } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
import { parse_selector } from "./parse-selector.js";
|
|
6
6
|
import { parse_atrule_prelude } from "./parse-atrule-prelude.js";
|
|
7
7
|
import { parse_value } from "./parse-value.js";
|
|
@@ -113,11 +113,11 @@ interface CSSNode {
|
|
|
113
113
|
* (Identifier, Number, Dimension, …) do not extend WithChildren, reflecting
|
|
114
114
|
* that they never carry child nodes in a well-formed tree.
|
|
115
115
|
*/
|
|
116
|
-
interface WithChildren {
|
|
116
|
+
interface WithChildren<T = AnyNode> {
|
|
117
117
|
readonly has_children: boolean;
|
|
118
118
|
readonly child_count: number;
|
|
119
|
-
readonly children:
|
|
120
|
-
[Symbol.iterator](): Iterator<
|
|
119
|
+
readonly children: T[];
|
|
120
|
+
[Symbol.iterator](): Iterator<T>;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* Maps a CssNodeCommon subtype interface to its plain-object equivalent,
|
|
@@ -189,15 +189,16 @@ interface Declaration extends CSSNode {
|
|
|
189
189
|
readonly is_browserhack: boolean;
|
|
190
190
|
clone(options?: CloneOptions): ToPlain<Declaration>;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
type SelectorNode = TypeSelector | IdSelector | ClassSelector | NthSelector | NthOfSelector | LangSelector | NestingSelector | AttributeSelector | UniversalSelector | PseudoClassSelector | PseudoElementSelector;
|
|
193
|
+
interface Selector extends CSSNode, WithChildren<SelectorNode> {
|
|
193
194
|
readonly type: typeof SELECTOR;
|
|
194
195
|
clone(options?: CloneOptions): ToPlain<Selector>;
|
|
195
196
|
}
|
|
196
|
-
interface SelectorList extends CSSNode, WithChildren {
|
|
197
|
+
interface SelectorList extends CSSNode, WithChildren<Selector> {
|
|
197
198
|
readonly type: typeof SELECTOR_LIST;
|
|
198
199
|
clone(options?: CloneOptions): ToPlain<SelectorList>;
|
|
199
200
|
}
|
|
200
|
-
interface Block extends CSSNode, WithChildren {
|
|
201
|
+
interface Block extends CSSNode, WithChildren<Raw | Declaration | Atrule | Rule> {
|
|
201
202
|
readonly type: typeof BLOCK;
|
|
202
203
|
readonly is_empty: boolean;
|
|
203
204
|
clone(options?: CloneOptions): ToPlain<Block>;
|
|
@@ -210,6 +211,7 @@ interface Raw extends CSSNode {
|
|
|
210
211
|
readonly type: typeof RAW;
|
|
211
212
|
clone(options?: CloneOptions): ToPlain<Raw>;
|
|
212
213
|
}
|
|
214
|
+
type ValueLike = Function | Identifier | Operator | Parenthesis | Url | UnicodeRange | String | Hash | Dimension | Number;
|
|
213
215
|
interface Identifier extends CSSNode {
|
|
214
216
|
readonly type: typeof IDENTIFIER;
|
|
215
217
|
readonly name: string;
|
|
@@ -235,7 +237,7 @@ interface Hash extends CSSNode {
|
|
|
235
237
|
readonly type: typeof HASH;
|
|
236
238
|
clone(options?: CloneOptions): ToPlain<Hash>;
|
|
237
239
|
}
|
|
238
|
-
interface Function extends CSSNode, WithChildren {
|
|
240
|
+
interface Function extends CSSNode, WithChildren<ValueLike> {
|
|
239
241
|
readonly type: typeof FUNCTION;
|
|
240
242
|
/** Function name, e.g. "rgb", "calc" */
|
|
241
243
|
readonly name: string;
|
|
@@ -263,7 +265,7 @@ interface UnicodeRange extends CSSNode {
|
|
|
263
265
|
readonly type: typeof UNICODE_RANGE;
|
|
264
266
|
clone(options?: CloneOptions): ToPlain<UnicodeRange>;
|
|
265
267
|
}
|
|
266
|
-
interface Value extends CSSNode, WithChildren {
|
|
268
|
+
interface Value extends CSSNode, WithChildren<ValueLike> {
|
|
267
269
|
readonly type: typeof VALUE;
|
|
268
270
|
clone(options?: CloneOptions): ToPlain<Value>;
|
|
269
271
|
}
|
|
@@ -293,15 +295,17 @@ interface AttributeSelector extends CSSNode {
|
|
|
293
295
|
readonly attr_operator: string | null;
|
|
294
296
|
/** Flag character, e.g. "i", "s"; null if no flag */
|
|
295
297
|
readonly attr_flags: string | null;
|
|
298
|
+
/** Attribute value, e.g. "external" from [rel="external"] */
|
|
299
|
+
readonly value: string | null;
|
|
296
300
|
clone(options?: CloneOptions): ToPlain<AttributeSelector>;
|
|
297
301
|
}
|
|
298
|
-
interface PseudoClassSelector extends CSSNode, WithChildren {
|
|
302
|
+
interface PseudoClassSelector extends CSSNode, WithChildren<SelectorNode> {
|
|
299
303
|
readonly type: typeof PSEUDO_CLASS_SELECTOR;
|
|
300
304
|
/** Pseudo-class name without colon, e.g. "hover" */
|
|
301
305
|
readonly name: string;
|
|
302
306
|
clone(options?: CloneOptions): ToPlain<PseudoClassSelector>;
|
|
303
307
|
}
|
|
304
|
-
interface PseudoElementSelector extends CSSNode, WithChildren {
|
|
308
|
+
interface PseudoElementSelector extends CSSNode, WithChildren<SelectorNode> {
|
|
305
309
|
readonly type: typeof PSEUDO_ELEMENT_SELECTOR;
|
|
306
310
|
/** Pseudo-element name without colons, e.g. "before" */
|
|
307
311
|
readonly name: string;
|
|
@@ -315,8 +319,8 @@ interface Combinator extends CSSNode {
|
|
|
315
319
|
}
|
|
316
320
|
interface UniversalSelector extends CSSNode {
|
|
317
321
|
readonly type: typeof UNIVERSAL_SELECTOR;
|
|
318
|
-
/** Namespace qualifier (e.g. 'ns' in 'ns|*'),
|
|
319
|
-
readonly name: string |
|
|
322
|
+
/** Namespace qualifier (e.g. 'ns' in 'ns|*'), null if no namespace */
|
|
323
|
+
readonly name: string | null;
|
|
320
324
|
clone(options?: CloneOptions): ToPlain<UniversalSelector>;
|
|
321
325
|
}
|
|
322
326
|
interface NestingSelector extends CSSNode {
|
|
@@ -325,8 +329,10 @@ interface NestingSelector extends CSSNode {
|
|
|
325
329
|
}
|
|
326
330
|
interface NthSelector extends CSSNode {
|
|
327
331
|
readonly type: typeof NTH_SELECTOR;
|
|
328
|
-
|
|
329
|
-
readonly
|
|
332
|
+
/** The `An` part of the An+B formula, including keywords `odd`/`even`. Null when only a B value is present (e.g. `:nth-child(3)`). */
|
|
333
|
+
readonly nth_a: string | null;
|
|
334
|
+
/** The `+B` part of the An+B formula. Null when only an A value is present (e.g. `:nth-child(2n)` or `:nth-child(odd)`). */
|
|
335
|
+
readonly nth_b: string | null;
|
|
330
336
|
clone(options?: CloneOptions): ToPlain<NthSelector>;
|
|
331
337
|
}
|
|
332
338
|
interface NthOfSelector extends CSSNode {
|
|
@@ -341,11 +347,11 @@ interface LangSelector extends CSSNode {
|
|
|
341
347
|
readonly type: typeof LANG_SELECTOR;
|
|
342
348
|
clone(options?: CloneOptions): ToPlain<LangSelector>;
|
|
343
349
|
}
|
|
344
|
-
interface AtrulePrelude extends CSSNode, WithChildren {
|
|
350
|
+
interface AtrulePrelude extends CSSNode, WithChildren<Raw | MediaQuery | MediaType | ContainerQuery | SupportsQuery | LayerName | PreludeOperator | PreludeSelectorList | Parenthesis> {
|
|
345
351
|
readonly type: typeof AT_RULE_PRELUDE;
|
|
346
352
|
clone(options?: CloneOptions): ToPlain<AtrulePrelude>;
|
|
347
353
|
}
|
|
348
|
-
interface MediaQuery extends CSSNode, WithChildren {
|
|
354
|
+
interface MediaQuery extends CSSNode, WithChildren<MediaFeature | PreludeOperator | MediaType | FeatureRange> {
|
|
349
355
|
readonly type: typeof MEDIA_QUERY;
|
|
350
356
|
clone(options?: CloneOptions): ToPlain<MediaQuery>;
|
|
351
357
|
}
|
|
@@ -361,7 +367,7 @@ interface MediaType extends CSSNode {
|
|
|
361
367
|
readonly value: string;
|
|
362
368
|
clone(options?: CloneOptions): ToPlain<MediaType>;
|
|
363
369
|
}
|
|
364
|
-
interface ContainerQuery extends CSSNode, WithChildren {
|
|
370
|
+
interface ContainerQuery extends CSSNode, WithChildren<Identifier | MediaFeature | Function> {
|
|
365
371
|
readonly type: typeof CONTAINER_QUERY;
|
|
366
372
|
clone(options?: CloneOptions): ToPlain<ContainerQuery>;
|
|
367
373
|
}
|
|
@@ -403,7 +409,7 @@ interface PreludeOperator extends CSSNode {
|
|
|
403
409
|
readonly type: typeof PRELUDE_OPERATOR;
|
|
404
410
|
clone(options?: CloneOptions): ToPlain<PreludeOperator>;
|
|
405
411
|
}
|
|
406
|
-
interface FeatureRange extends CSSNode, WithChildren {
|
|
412
|
+
interface FeatureRange extends CSSNode, WithChildren<Dimension | Operator> {
|
|
407
413
|
readonly type: typeof FEATURE_RANGE;
|
|
408
414
|
/** The feature name in a range comparison, e.g. "width" from "(width >= 400px)" */
|
|
409
415
|
readonly name: string;
|
package/dist/parse-anplusb.d.ts
CHANGED
package/dist/parse-anplusb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { o as str_equals, s as str_index_of } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { t as CSSNode } from "./css-node-
|
|
4
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
//#region src/parse-anplusb.ts
|
|
6
6
|
/** @internal */
|
|
7
7
|
var ANplusBParser = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { a as is_whitespace, l as strip_vendor_prefix, o as str_equals } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { t as CSSNode } from "./css-node-
|
|
4
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
import { i as trim_boundaries, n as skip_whitespace_and_comments_forward } from "./parse-utils-BxrmqJxI.js";
|
|
6
6
|
//#region src/parse-atrule-prelude.ts
|
|
7
7
|
/** @internal */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as CSSDataArena } from "./arena-D6TANE5e.js";
|
|
2
2
|
import { n as Lexer } from "./tokenize-CyiJelQC.js";
|
|
3
|
-
import { d as Declaration } from "./node-types-
|
|
3
|
+
import { d as Declaration } from "./node-types-De9R2IIL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/parse-declaration.d.ts
|
|
6
6
|
/** @internal */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { i as is_vendor_prefixed } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { t as CSSNode } from "./css-node-
|
|
4
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
import { i as trim_boundaries } from "./parse-utils-BxrmqJxI.js";
|
|
6
6
|
import { ValueParser } from "./parse-value.js";
|
|
7
7
|
//#region src/parse-declaration.ts
|
package/dist/parse-selector.d.ts
CHANGED
package/dist/parse-selector.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { a as is_whitespace, n as is_combinator, o as str_equals } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { t as CSSNode } from "./css-node-
|
|
4
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
import { n as skip_whitespace_and_comments_forward, r as skip_whitespace_forward, t as skip_whitespace_and_comments_backward } from "./parse-utils-BxrmqJxI.js";
|
|
6
6
|
import { ANplusBParser } from "./parse-anplusb.js";
|
|
7
7
|
//#region src/parse-selector.ts
|
package/dist/parse-value.d.ts
CHANGED
package/dist/parse-value.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
3
|
import { a as is_whitespace, o as str_equals } from "./parse-dimension-CCn_XRDe.js";
|
|
4
|
-
import { t as CSSNode } from "./css-node-
|
|
4
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
5
5
|
//#region src/parse-value.ts
|
|
6
6
|
/** @internal */
|
|
7
7
|
var ValueParser = class {
|
package/dist/parse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as CSSDataArena } from "./arena-D6TANE5e.js";
|
|
2
2
|
import { t as CommentInfo } from "./tokenize-CyiJelQC.js";
|
|
3
|
-
import { R as StyleSheet } from "./node-types-
|
|
3
|
+
import { R as StyleSheet } from "./node-types-De9R2IIL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/parse.d.ts
|
|
6
6
|
interface ParserOptions {
|
package/dist/parse.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Lexer } from "./tokenize-BSycRGm0.js";
|
|
2
2
|
import { l as CSSDataArena } from "./arena-CveFYH2l.js";
|
|
3
|
-
import { t as CSSNode } from "./css-node-
|
|
3
|
+
import { t as CSSNode } from "./css-node-DwKXZuNm.js";
|
|
4
4
|
import { i as trim_boundaries } from "./parse-utils-BxrmqJxI.js";
|
|
5
5
|
import { SelectorParser } from "./parse-selector.js";
|
|
6
6
|
import { AtRulePreludeParser } from "./parse-atrule-prelude.js";
|
package/dist/walk.d.ts
CHANGED