diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
| commit | f06956efd2dc4bf77244a9fcce2b883a00b925af (patch) | |
| tree | 0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/postcss-place | |
| parent | 8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff) | |
updated node modules
Diffstat (limited to 'node_modules/postcss-place')
| -rw-r--r-- | node_modules/postcss-place/CHANGELOG.md | 106 | ||||
| -rw-r--r-- | node_modules/postcss-place/README.md | 4 | ||||
| -rw-r--r-- | node_modules/postcss-place/dist/index.cjs | 2 | ||||
| -rw-r--r-- | node_modules/postcss-place/dist/index.d.ts | 10 | ||||
| -rw-r--r-- | node_modules/postcss-place/dist/index.mjs | 2 | ||||
| -rw-r--r-- | node_modules/postcss-place/dist/onCSSDeclaration.d.ts | 5 | ||||
| -rw-r--r-- | node_modules/postcss-place/package.json | 37 |
7 files changed, 30 insertions, 136 deletions
diff --git a/node_modules/postcss-place/CHANGELOG.md b/node_modules/postcss-place/CHANGELOG.md index 0211c486..7214388b 100644 --- a/node_modules/postcss-place/CHANGELOG.md +++ b/node_modules/postcss-place/CHANGELOG.md @@ -1,5 +1,11 @@ # Changes to PostCSS Place Properties +### 9.0.1 + +_December 15, 2023_ + +- Fix type definitions + ### 9.0.0 _July 3, 2023_ @@ -12,102 +18,4 @@ _January 28, 2023_ - Improve `types` declaration in `package.json` -### 8.0.0 - -_January 24, 2023_ - -- Updated: Support for Node v14+ (major). -- Added: TypeScript support. - -### 7.0.5 - -_July 8, 2022_ - -- Fix case insensitive matching. - -### 7.0.4 - -_February 5, 2022_ - -- Improved `es module` and `commonjs` compatibility - -### 7.0.3 - -_January 2, 2022_ - -- Removed Sourcemaps from package tarball. -- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121). - -### 7.0.2 - -_December 13, 2021_ - -- Changed: now uses `postcss-value-parser` for parsing. -- Updated: documentation - -## 7.0.1 (November 18, 2021) - -- Added: Safeguards against postcss-values-parser potentially throwing an error. -- Updated: postcss-value-parser to 6.0.1 (patch) - -## 7.0.0 (September 17, 2021) - -- Updated: Support for PostCS 8+ (major). -- Updated: Support for Node 12+ (major). - -## 6.0.0 (January 12, 2021) - -- Updated: Support for PostCSS v8+ -- Updated: PostCSS Values Parser to 4.x - -## 5.0.0 (April 26, 2020) - -- Updated: PostCSS to 7.0.27 (patch) -- Updated: PostCSS Values Parser to 3.2.1 (major) -- Updated: Support for Node v10+ - -### 4.0.1 - -_September 18, 2018_ - -- Updated: PostCSS Values Parser 2 (patch for this project) - -### 4.0.0 - -_September 17, 2018_ - -- Updated: Support for PostCSS v7+ -- Updated: Support for Node v6+ - -### 3.0.1 - -_May 8, 2018_ - -- Updated: `postcss-values-parser` to v1.5.0 (major) -- Updated: `postcss` to v6.0.22 (patch) - -### 2.0.0 - -_June 30, 2017_ - -- Added: Node 4+ compatibility -- Added: PostCSS 6+ compatibility - -### 1.0.2 - -_December 8, 2016_ - -- Updated: Use destructing assignment on plugin options -- Updated: Use template literals - -### 1.0.1 - -_December 6, 2016_ - -- Updated: boilerplate conventions (`postcss-tape`) - -### 1.0.0 - -_November 25, 2016_ - -- Initial version +[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-place/CHANGELOG.md) diff --git a/node_modules/postcss-place/README.md b/node_modules/postcss-place/README.md index 0130f175..6a75e94a 100644 --- a/node_modules/postcss-place/README.md +++ b/node_modules/postcss-place/README.md @@ -2,6 +2,10 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-place.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/place-properties.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord] +```bash +npm install postcss-place --save-dev +``` + [PostCSS Place Properties] lets you use `place-*` properties as shorthands for `align-*` and `justify-*`, following the [CSS Box Alignment] specification. diff --git a/node_modules/postcss-place/dist/index.cjs b/node_modules/postcss-place/dist/index.cjs index 01b920a1..753f4b66 100644 --- a/node_modules/postcss-place/dist/index.cjs +++ b/node_modules/postcss-place/dist/index.cjs @@ -1 +1 @@ -"use strict";var e=require("postcss-value-parser");function onCSSDeclaration(r,o,s){var n;const a=null==(n=r.prop.toLowerCase().match(t))?void 0:n[1];if(!a)return;let l;try{l=e(r.value)}catch(e){r.warn(o,`Failed to parse value '${r.value}'. Leaving the original value intact.`)}if(void 0===l)return;let i=[];i=l.nodes.length?l.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(l.nodes)],r.cloneBefore({prop:`align-${a}`,value:i[0]}),r.cloneBefore({prop:`justify-${a}`,value:i[1]||i[0]}),s.preserve||r.remove()}const t=/^place-(content|items|self)/,creator=e=>{const r=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:o})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,o,r)}}};creator.postcss=!0,module.exports=creator; +"use strict";var e=require("postcss-value-parser");function onCSSDeclaration(r,o,s){const n=r.prop.toLowerCase().match(t)?.[1];if(!n)return;let a;try{a=e(r.value)}catch(e){r.warn(o,`Failed to parse value '${r.value}'. Leaving the original value intact.`)}if(void 0===a)return;let i=[];i=a.nodes.length?a.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(a.nodes)],r.cloneBefore({prop:`align-${n}`,value:i[0]}),r.cloneBefore({prop:`justify-${n}`,value:i[1]||i[0]}),s.preserve||r.remove()}const t=/^place-(content|items|self)/,creator=e=>{const r=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:o})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,o,r)}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/postcss-place/dist/index.d.ts b/node_modules/postcss-place/dist/index.d.ts index aaac93c5..381ddc13 100644 --- a/node_modules/postcss-place/dist/index.d.ts +++ b/node_modules/postcss-place/dist/index.d.ts @@ -1,8 +1,12 @@ import type { PluginCreator } from 'postcss'; + +declare const creator: PluginCreator<pluginOptions>; +export default creator; + /** postcss-place plugin options */ -export type pluginOptions = { +export declare type pluginOptions = { /** Preserve the original notation. default: true */ preserve?: boolean; }; -declare const creator: PluginCreator<pluginOptions>; -export default creator; + +export { } diff --git a/node_modules/postcss-place/dist/index.mjs b/node_modules/postcss-place/dist/index.mjs index 62f83b13..c39ede40 100644 --- a/node_modules/postcss-place/dist/index.mjs +++ b/node_modules/postcss-place/dist/index.mjs @@ -1 +1 @@ -import e from"postcss-value-parser";function onCSSDeclaration(o,r,s){var n;const a=null==(n=o.prop.toLowerCase().match(t))?void 0:n[1];if(!a)return;let l;try{l=e(o.value)}catch(e){o.warn(r,`Failed to parse value '${o.value}'. Leaving the original value intact.`)}if(void 0===l)return;let i=[];i=l.nodes.length?l.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(l.nodes)],o.cloneBefore({prop:`align-${a}`,value:i[0]}),o.cloneBefore({prop:`justify-${a}`,value:i[1]||i[0]}),s.preserve||o.remove()}const t=/^place-(content|items|self)/,creator=e=>{const o=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:r})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,r,o)}}};creator.postcss=!0;export{creator as default}; +import e from"postcss-value-parser";function onCSSDeclaration(o,r,s){const n=o.prop.toLowerCase().match(t)?.[1];if(!n)return;let a;try{a=e(o.value)}catch(e){o.warn(r,`Failed to parse value '${o.value}'. Leaving the original value intact.`)}if(void 0===a)return;let l=[];l=a.nodes.length?a.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(a.nodes)],o.cloneBefore({prop:`align-${n}`,value:l[0]}),o.cloneBefore({prop:`justify-${n}`,value:l[1]||l[0]}),s.preserve||o.remove()}const t=/^place-(content|items|self)/,creator=e=>{const o=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:r})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,r,o)}}};creator.postcss=!0;export{creator as default}; diff --git a/node_modules/postcss-place/dist/onCSSDeclaration.d.ts b/node_modules/postcss-place/dist/onCSSDeclaration.d.ts deleted file mode 100644 index e1e7aa08..00000000 --- a/node_modules/postcss-place/dist/onCSSDeclaration.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Declaration, Result } from 'postcss'; -export declare function onCSSDeclaration(decl: Declaration, result: Result, options: { - preserve: boolean; -}): void; -export declare const placeMatch: RegExp; diff --git a/node_modules/postcss-place/package.json b/node_modules/postcss-place/package.json index 1081abcb..a0c2c592 100644 --- a/node_modules/postcss-place/package.json +++ b/node_modules/postcss-place/package.json @@ -1,7 +1,7 @@ { "name": "postcss-place", "description": "Use a place-* shorthand for align-* and justify-* in CSS", - "version": "9.0.0", + "version": "9.0.1", "contributors": [ { "name": "Antonio Laguna", @@ -31,15 +31,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": [ @@ -54,17 +57,6 @@ "peerDependencies": { "postcss": "^8.4" }, - "devDependencies": { - "@csstools/postcss-tape": "*" - }, - "scripts": { - "build": "rollup -c ../../rollup/default.mjs", - "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.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" - }, "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-place#readme", "repository": { "type": "git", @@ -83,14 +75,5 @@ "postcss-plugin", "selfs", "shorthands" - ], - "csstools": { - "cssdbId": "place-properties", - "exportName": "postcssPlace", - "humanReadableName": "PostCSS Place Properties", - "specUrl": "https://www.w3.org/TR/css-align-3/#place-content" - }, - "volta": { - "extends": "../../package.json" - } + ] } |
