@eslint/css-tree 4.0.0 → 4.0.2
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/README.md +1 -1
- package/cjs/lexer/Lexer.cjs +6 -2
- package/data/patch.json +3 -0
- package/dist/csstree.esm.js +5 -5
- package/dist/csstree.js +5 -5
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/lib/index.d.ts +127 -12
- package/lib/lexer/Lexer.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -204,7 +204,7 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
|
|
|
204
204
|
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a></p><h3>Gold Sponsors</h3>
|
|
205
205
|
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a></p><h3>Silver Sponsors</h3>
|
|
206
206
|
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/d472863/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/2d6c3b6/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
|
|
207
|
-
<p><a href="https://
|
|
207
|
+
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://opensource.sap.com"><img src="https://avatars.githubusercontent.com/u/2531208" alt="SAP" height="32"></a> <a href="https://www.crawljobs.com/"><img src="https://images.opencollective.com/crawljobs-poland/fa43a17/logo.png" alt="CrawlJobs" height="32"></a> <a href="https://depot.dev"><img src="https://images.opencollective.com/depot/39125a1/logo.png" alt="Depot" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="TestMu AI Open Source Office (Formerly LambdaTest)" height="32"></a></p>
|
|
208
208
|
<h3>Technology Sponsors</h3>
|
|
209
209
|
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
|
|
210
210
|
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p>
|
package/cjs/lexer/Lexer.cjs
CHANGED
|
@@ -443,9 +443,13 @@ class Lexer {
|
|
|
443
443
|
return atrule && atrule.prelude || null;
|
|
444
444
|
}
|
|
445
445
|
getAtruleDescriptor(atruleName, name) {
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
const atrule = this.getAtrule(atruleName);
|
|
447
|
+
const descriptor = names.keyword(name);
|
|
448
|
+
const descriptorEntry = atrule && atrule.descriptors
|
|
449
|
+
? atrule.descriptors[descriptor.name] || atrule.descriptors[descriptor.basename]
|
|
448
450
|
: null;
|
|
451
|
+
|
|
452
|
+
return descriptorEntry || null;
|
|
449
453
|
}
|
|
450
454
|
getProperty(propertyName, fallbackBasename = true) {
|
|
451
455
|
const property = names.property(propertyName);
|
package/data/patch.json
CHANGED
|
@@ -581,6 +581,9 @@
|
|
|
581
581
|
"attr-fallback": {
|
|
582
582
|
"syntax": "<any-value>"
|
|
583
583
|
},
|
|
584
|
+
"attr-unit": {
|
|
585
|
+
"syntax": "'%' | cm | mm | q | in | pt | pc | px | em | rem | ex | rex | cap | rcap | ch | rch | ic | ric | lh | rlh | vw | svw | lvw | dvw | vh | svh | lvh | dvh | vi | svi | lvi | dvi | vb | svb | lvb | dvb | vmin | svmin | lvmin | dvmin | vmax | svmax | lvmax | dvmax | cqw | cqh | cqi | cqb | cqmin | cqmax | deg | grad | rad | turn | s | ms | hz | khz | dpi | dpcm | dppx | x | fr | db | st"
|
|
586
|
+
},
|
|
584
587
|
"autospace": {
|
|
585
588
|
"syntax": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]"
|
|
586
589
|
},
|