@weapp-tailwindcss/postcss 3.1.3 → 3.1.4
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/compat/mini-program-css/at-rules.d.ts +1 -0
- package/dist/compat/mini-program-css/finalize-options.d.ts +2 -1
- package/dist/compat/mini-program-css/index.d.ts +1 -1
- package/dist/compat/mini-program-css/preflight.d.ts +2 -1
- package/dist/compat/mini-program-css/selectors.d.ts +2 -0
- package/dist/compat/mini-program-css/theme.d.ts +1 -1
- package/dist/css-macro/auto.d.ts +4 -0
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/generator-plugin/apply-only.d.ts +5 -0
- package/dist/generator-plugin/directives.d.ts +24 -1
- package/dist/generator-plugin/local-imports.d.ts +25 -0
- package/dist/generator-plugin/source-files.d.ts +8 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +11486 -4725
- package/dist/index.mjs +12421 -5713
- package/dist/{postcss-BebUgs5n.mjs → postcss-BNPP2oxO.mjs} +3 -1
- package/dist/{postcss-by-0mwIg.js → postcss-DAEMn9OL.js} +14 -0
- package/dist/selectorParser/utils.d.ts +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
//#region src/css-macro/constants.ts
|
|
2
2
|
const queryKey = "weapp-tw-platform";
|
|
3
|
+
const ifdefAtRule = "weapp-tw-ifdef";
|
|
4
|
+
const ifndefAtRule = "weapp-tw-ifndef";
|
|
3
5
|
const UNESCAPED_UNDERSCORE_RE = /(?<!\\)_/g;
|
|
4
6
|
const WHITESPACE_RE = /\s+/g;
|
|
5
7
|
const LOGICAL_OPERATOR_RE = /\s*(\|\||&&)\s*/g;
|
|
@@ -155,4 +157,4 @@ const creator = () => {
|
|
|
155
157
|
};
|
|
156
158
|
creator.postcss = true;
|
|
157
159
|
//#endregion
|
|
158
|
-
export { creator
|
|
160
|
+
export { CSS_MACRO_POSTCSS_PLUGIN_NAME, creator, ifdefAtRule, ifndefAtRule };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
//#region src/css-macro/constants.ts
|
|
2
2
|
const queryKey = "weapp-tw-platform";
|
|
3
|
+
const ifdefAtRule = "weapp-tw-ifdef";
|
|
4
|
+
const ifndefAtRule = "weapp-tw-ifndef";
|
|
3
5
|
const UNESCAPED_UNDERSCORE_RE = /(?<!\\)_/g;
|
|
4
6
|
const WHITESPACE_RE = /\s+/g;
|
|
5
7
|
const LOGICAL_OPERATOR_RE = /\s*(\|\||&&)\s*/g;
|
|
@@ -167,3 +169,15 @@ Object.defineProperty(exports, "creator", {
|
|
|
167
169
|
return creator;
|
|
168
170
|
}
|
|
169
171
|
});
|
|
172
|
+
Object.defineProperty(exports, "ifdefAtRule", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function() {
|
|
175
|
+
return ifdefAtRule;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "ifndefAtRule", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function() {
|
|
181
|
+
return ifndefAtRule;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
@@ -8,4 +8,4 @@ export type ParserTransformOptions = Partial<{
|
|
|
8
8
|
export declare function normalizeTransformOptions(options?: ParserTransformOptions): ParserTransformOptions;
|
|
9
9
|
export declare function mklist(node: Node): Node[];
|
|
10
10
|
export declare function composeIsPseudoAst(strs: string | string[]): Node[];
|
|
11
|
-
export declare function getCombinatorSelectorAst(options: IStyleHandlerOptions): (psp.Pseudo | psp.Selector | psp.String | psp.
|
|
11
|
+
export declare function getCombinatorSelectorAst(options: IStyleHandlerOptions): (psp.Pseudo | psp.Selector | psp.String | psp.Root | psp.Tag | psp.Nesting | psp.Identifier | psp.Comment | psp.Combinator | psp.ClassName | psp.Attribute | psp.Universal)[];
|
package/dist/types.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export interface WebCssCompatFeatures {
|
|
|
67
67
|
theme?: boolean | undefined;
|
|
68
68
|
layer?: boolean | undefined;
|
|
69
69
|
property?: boolean | undefined;
|
|
70
|
+
nesting?: boolean | undefined;
|
|
70
71
|
oklch?: boolean | undefined;
|
|
71
72
|
colorFunctions?: boolean | undefined;
|
|
72
73
|
supports?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "@weapp-tailwindcss/postcss",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"postcss-selector-parser": "~7.1.4",
|
|
78
78
|
"postcss-value-parser": "^4.2.0",
|
|
79
79
|
"@weapp-tailwindcss/postcss-calc": "^1.0.2",
|
|
80
|
-
"
|
|
81
|
-
"tailwindcss
|
|
80
|
+
"tailwindcss-config": "2.0.1",
|
|
81
|
+
"@weapp-tailwindcss/shared": "2.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@csstools/css-color-parser": "^4.1.9",
|