From f06956efd2dc4bf77244a9fcce2b883a00b925af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 21 Dec 2023 22:46:53 +0800 Subject: updated node modules --- .../CHANGELOG.md | 86 ++-------------------- .../README.md | 5 +- .../dist/conditions-from-values.d.ts | 3 - .../dist/custom/double-position-gradients.d.ts | 2 - .../dist/index.cjs | 2 +- .../dist/index.d.ts | 5 +- .../dist/index.mjs | 2 +- .../dist/match.d.ts | 11 --- .../dist/matchers.d.ts | 33 --------- .../package.json | 35 +++------ 10 files changed, 26 insertions(+), 158 deletions(-) delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/conditions-from-values.d.ts delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/custom/double-position-gradients.d.ts delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/match.d.ts delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/matchers.d.ts (limited to 'node_modules/@csstools/postcss-progressive-custom-properties') diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md b/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md index ad87d81d..b7a01fef 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md +++ b/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md @@ -1,5 +1,11 @@ # Changes to PostCSS Progressive Custom Properties +### 3.0.3 + +_December 15, 2023_ + +- Fix type definitions + ### 3.0.2 _October 9, 2023_ @@ -14,82 +20,4 @@ _September 18, 2023_ - Improve performance -### 3.0.0 - -_July 3, 2023_ - -- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/)) - -### 2.3.0 - -_June 1, 2023_ - -- Add support for regular properties whose values contain `var()` - -```css -.property-with-var--1 { - color: rgba(87, 107, 149, var(--opacity)); - color: rgb(87 107 149 / var(--opacity)); -} - -/* becomes */ -.property-with-var--1 { - color: rgba(87, 107, 149, var(--opacity)); -} - -@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) { - .property-with-var--1 { - color: rgb(87 107 149 / var(--opacity)); - } -} -``` - -### 2.2.0 - -_May 19, 2023_ - -- Add relative color syntax support. -- Fix false positive matches for `rgb` and `hsl` modern function notations. - -### 2.1.1 - -_March 25, 2023_ - -- Smaller `@supports` check for `color-mix`. - -### 2.1.0 - -_February 2, 2023_ - -- Group support rules with the same params to reduce the output size. - -### 2.0.1 - -_January 28, 2023_ - -- Improve `types` declaration in `package.json` - -### 2.0.0 - -_January 24, 2023_ - -- Updated: Support for Node v14+ (major). - -## 1.3.0 (March 7, 2022) - -- Add matching rules for `color-mix` -- Fix matching rules for gradient functions -- Reduce matchers size - -## 1.2.0 (February 15, 2022) - -- More matching rules for [double position gradients](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients#readme). - -## 1.1.0 (February 12, 2022) - -- No longer uses custom properties in `@supports` rules. -- Implement AST matching for values and units and generate minimal `@supports` for select features. - -## 1.0.0 (February 6, 2022) - -Initial release +[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md) diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/README.md b/node_modules/@csstools/postcss-progressive-custom-properties/README.md index 1e59a3e4..9b3b68ab 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/README.md +++ b/node_modules/@csstools/postcss-progressive-custom-properties/README.md @@ -6,8 +6,9 @@ [PostCSS Progressive Custom Properties] is a utility plugin to correctly declare Custom Property fallbacks and enhancements. -⚠️ It is not intended to be used directly by stylesheet authors. -Meant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks. +> [!WARNING] +> It is not intended to be used directly by stylesheet authors. +> Meant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks. [Custom Properties are not discarded like regular declarations when invalid.](https://www.w3.org/TR/css-variables-1/#invalid-variables) This makes it tricky to provide fallback values for older browsers. diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/conditions-from-values.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/conditions-from-values.d.ts deleted file mode 100644 index 250b5e91..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/conditions-from-values.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function conditionsFromValue(value: string, mustContainVar?: boolean): { - support: Array; -}; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/custom/double-position-gradients.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/custom/double-position-gradients.d.ts deleted file mode 100644 index 6ca404c9..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/custom/double-position-gradients.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { Node } from 'postcss-value-parser'; -export declare function doublePositionGradients(node: Node): Array; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs index 35a10519..550926ab 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs +++ b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs @@ -1 +1 @@ -"use strict";var e=require("postcss-value-parser");const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oa.includes(e.sniff)));let s=!1;try{e(a).walk((a=>{"function"===a.type&&p.test(a.value)&&(s=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{OnceExit:(a,{postcss:r})=>{a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=!a.variable,l=conditionsFromValue(a.value,s).support.join(" and ");if(!l)return;if(p.lastConditionParams.support!==l&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(l&&y.push(r.atRule({name:"supports",params:l,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0,module.exports=creator; +"use strict";var e=require("postcss-value-parser");const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oa.includes(e.sniff)));let s=!1;try{e(a).walk((a=>{"function"===a.type&&p.test(a.value)&&(s=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{OnceExit:(a,{postcss:r})=>{a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=!a.variable,l=conditionsFromValue(a.value,s).support.join(" and ");if(!l)return;if(p.lastConditionParams.support!==l&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(l&&y.push(r.atRule({name:"supports",params:l,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0,module.exports=creator; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts index 5b5a74dd..240fc585 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts +++ b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts @@ -1,3 +1,6 @@ -import { type PluginCreator } from 'postcss'; +import { PluginCreator } from 'postcss'; + declare const creator: PluginCreator; export default creator; + +export { } diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs index 19ceb72e..4c343809 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs +++ b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs @@ -1 +1 @@ -import e from"postcss-value-parser";const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oa.includes(e.sniff)));let s=!1;try{e(a).walk((a=>{"function"===a.type&&p.test(a.value)&&(s=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{OnceExit:(a,{postcss:r})=>{a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=!a.variable,l=conditionsFromValue(a.value,s).support.join(" and ");if(!l)return;if(p.lastConditionParams.support!==l&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(l&&y.push(r.atRule({name:"supports",params:l,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0;export{creator as default}; +import e from"postcss-value-parser";const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oa.includes(e.sniff)));let s=!1;try{e(a).walk((a=>{"function"===a.type&&p.test(a.value)&&(s=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{OnceExit:(a,{postcss:r})=>{a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=!a.variable,l=conditionsFromValue(a.value,s).support.join(" and ");if(!l)return;if(p.lastConditionParams.support!==l&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(l&&y.push(r.atRule({name:"supports",params:l,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0;export{creator as default}; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/match.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/match.d.ts deleted file mode 100644 index 95a56e03..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/match.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -type MatcherNode = { - type: string; - value?: string; - nodes?: Array; - dimension?: { - unit?: string; - }; - isVariable?: boolean; -}; -export declare function matches(a: MatcherNode, b: MatcherNode): boolean; -export {}; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/matchers.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/matchers.d.ts deleted file mode 100644 index 746c0edb..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/matchers.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -export declare const matchers: ({ - supports: string; - property: string; - sniff: string; - matchers: { - type: string; - value: string; - nodes: ({ - type: string; - value: string; - isVariable?: undefined; - } | { - type: string; - value?: undefined; - isVariable?: undefined; - } | { - type: string; - isVariable: boolean; - value?: undefined; - })[]; - }[]; -} | { - supports: string; - property: string; - sniff: string; - matchers: { - type: string; - value: string; - dimension: { - unit: string; - }; - }[]; -})[]; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/package.json b/node_modules/@csstools/postcss-progressive-custom-properties/package.json index 6a30f654..e9dc0109 100644 --- a/node_modules/@csstools/postcss-progressive-custom-properties/package.json +++ b/node_modules/@csstools/postcss-progressive-custom-properties/package.json @@ -1,7 +1,7 @@ { "name": "@csstools/postcss-progressive-custom-properties", "description": "Correctly declare progressive enhancements for CSS Custom Properties.", - "version": "3.0.2", + "version": "3.0.3", "author": "Jonathan Neal ", "license": "MIT-0", "funding": [ @@ -17,15 +17,18 @@ "engines": { "node": "^14 || ^16 || >=18" }, + "type": "module", "main": "dist/index.cjs", "module": "dist/index.mjs", - "types": "dist/index.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", - "default": "./dist/index.mjs" + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": { + "default": "./dist/index.cjs" + } } }, "files": [ @@ -40,17 +43,6 @@ "peerDependencies": { "postcss": "^8.4" }, - "devDependencies": { - "@csstools/postcss-tape": "*" - }, - "scripts": { - "build": "node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && rollup -c ../../rollup/default.mjs", - "docs": "node ../../.github/bin/generate-docs/install.mjs", - "lint": "node ../../.github/bin/format-package-json.mjs", - "prepublishOnly": "npm run build && npm run test", - "test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs", - "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs" - }, "repository": { "type": "git", "url": "https://github.com/csstools/postcss-plugins.git", @@ -67,12 +59,5 @@ "utility", "variables", "vars" - ], - "csstools": { - "exportName": "postcssProgressiveCustomProperties", - "humanReadableName": "PostCSS Progressive Custom Properties" - }, - "volta": { - "extends": "../../package.json" - } + ] } -- cgit v1.2.3