@weapp-tailwindcss/postcss 3.1.10 → 3.1.12
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/cascade-layers.d.ts +7 -0
- package/dist/compat/mini-program-css/index.d.ts +2 -1
- package/dist/compat/mini-program-css/prune-generated.d.ts +5 -0
- package/dist/compat/tailwindcss-v4/declarations.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/gradients.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/modern-syntax.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/variables.d.ts +30 -0
- package/dist/compat/tailwindcss-v4.d.ts +4 -21
- package/dist/generator-plugin/local-imports.d.ts +2 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +799 -520
- package/dist/index.mjs +781 -508
- package/dist/postcss-config.d.ts +4 -0
- package/dist/vite-css-rules/containment.d.ts +2 -0
- package/dist/vite-css-rules/coverage.d.ts +9 -0
- package/dist/vite-css-rules/mini-program.d.ts +10 -0
- package/dist/vite-css-rules/structure.d.ts +26 -0
- package/dist/vite-css-rules.d.ts +3 -17
- package/package.json +6 -6
package/dist/postcss-config.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import postcssrc from 'postcss-load-config';
|
|
2
2
|
export declare function getPostcssPluginName(plugin: unknown): string | undefined;
|
|
3
3
|
export declare function removeTailwindPostcssPlugins(plugins: unknown[]): number;
|
|
4
|
+
export declare function resolvePostcssConfig(root: string, ctx?: Record<string, unknown>): Promise<{
|
|
5
|
+
options: import("postcss").ProcessOptions<import("postcss").Document | import("postcss").Root>;
|
|
6
|
+
plugins: postcssrc.ResultPlugin[];
|
|
7
|
+
} | undefined>;
|
|
4
8
|
export declare function resolveFilteredPostcssConfig(root: string): Promise<{
|
|
5
9
|
options: import("postcss").ProcessOptions<import("postcss").Document | import("postcss").Root>;
|
|
6
10
|
plugins: postcssrc.ResultPlugin[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { postcss } from '../postcss-runtime';
|
|
2
|
+
export declare function isCssRuleCoveredByDeclarations(rule: postcss.Rule, baseRuleDeclarationKeys: Map<string, Set<string>>): boolean;
|
|
3
|
+
export declare function dedupeCoveredCssRules(css: string): string;
|
|
4
|
+
export declare function mergeCoveredCssRuleDeclarations(baseCss: string, css: string): {
|
|
5
|
+
baseCss: string;
|
|
6
|
+
css: string;
|
|
7
|
+
changed: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function removeEmptyAtRules(root: postcss.Root): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function mergeMiniProgramPreflightRuleDeclarations(baseCss: string, css: string): {
|
|
2
|
+
baseCss: string;
|
|
3
|
+
css: string;
|
|
4
|
+
changed: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function mergeMiniProgramThemeScopeRuleDeclarations(baseCss: string, css: string): {
|
|
7
|
+
baseCss: string;
|
|
8
|
+
css: string;
|
|
9
|
+
changed: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { postcss } from '../postcss-runtime';
|
|
2
|
+
export declare const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY = "view,text,::after,::before";
|
|
3
|
+
export declare const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS: Set<string>;
|
|
4
|
+
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY = ":host,page,.tw-root,wx-root-portal-content";
|
|
5
|
+
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS: Set<string>;
|
|
6
|
+
export declare function normalizeCssForContainment(css: string): string;
|
|
7
|
+
export declare function collectNormalizedCssNodes(css: string): string[];
|
|
8
|
+
export declare function getCssRuleStructuralKey(rule: postcss.Rule): string | undefined;
|
|
9
|
+
export declare function getCssRuleStructuralKeyWithSelectorKey(rule: postcss.Rule, selectorKey: string): string;
|
|
10
|
+
export declare function getCssRuleContentKey(rule: postcss.Rule): string | undefined;
|
|
11
|
+
export declare function collectCssRuleContentKeys(css: string): Set<string>;
|
|
12
|
+
export declare function normalizeCssDeclarationKey(decl: postcss.Declaration): string;
|
|
13
|
+
export declare function parseVarReferenceValue(value: string): string | undefined;
|
|
14
|
+
export declare function isEquivalentVarFallbackDeclaration(incoming: postcss.Declaration, baseDeclarations: Set<string>): boolean;
|
|
15
|
+
export declare function isCoveredByBaseVarFallbackDeclaration(incoming: postcss.Declaration, baseDeclarations: Set<string>): boolean;
|
|
16
|
+
export declare function collectCssRuleDeclarationKeys(rule: postcss.Rule): Set<string>;
|
|
17
|
+
export declare function collectCssRuleDeclarations(rule: postcss.Rule): postcss.Declaration[];
|
|
18
|
+
export declare function collectCssRuleDeclarationKeyMap(css: string): Map<string, Set<string>>;
|
|
19
|
+
interface CssRuleDeclarationRecord {
|
|
20
|
+
rule: postcss.Rule;
|
|
21
|
+
keys: Set<string>;
|
|
22
|
+
props: Set<string>;
|
|
23
|
+
}
|
|
24
|
+
type CssRuleKeyResolver = (rule: postcss.Rule) => string | undefined;
|
|
25
|
+
export declare function collectCssRuleDeclarationRecords(root: postcss.Root, resolveRuleKey?: CssRuleKeyResolver): Map<string, CssRuleDeclarationRecord[]>;
|
|
26
|
+
export {};
|
package/dist/vite-css-rules.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
changed: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare function mergeMiniProgramThemeScopeRuleDeclarations(baseCss: string, css: string): {
|
|
7
|
-
baseCss: string;
|
|
8
|
-
css: string;
|
|
9
|
-
changed: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function mergeCoveredCssRuleDeclarations(baseCss: string, css: string): {
|
|
12
|
-
baseCss: string;
|
|
13
|
-
css: string;
|
|
14
|
-
changed: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare function filterExistingCssRules(baseCss: string, css: string): string;
|
|
17
|
-
export declare function containsCssAfterMinify(baseCss: string, css: string): boolean;
|
|
1
|
+
export { containsCssAfterMinify, filterExistingCssRules } from './vite-css-rules/containment';
|
|
2
|
+
export { dedupeCoveredCssRules, mergeCoveredCssRuleDeclarations } from './vite-css-rules/coverage';
|
|
3
|
+
export { mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations } from './vite-css-rules/mini-program';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "@weapp-tailwindcss/postcss",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@tailwindcss-mangle/engine": "0.1.3",
|
|
68
68
|
"@weapp-core/escape": "~8.0.0",
|
|
69
|
-
"autoprefixer": "^10.5.
|
|
70
|
-
"lru-cache": "11.5.
|
|
69
|
+
"autoprefixer": "^10.5.3",
|
|
70
|
+
"lru-cache": "11.5.2",
|
|
71
71
|
"micromatch": "^4.0.8",
|
|
72
|
-
"postcss": "^8.5.
|
|
72
|
+
"postcss": "^8.5.19",
|
|
73
73
|
"postcss-load-config": "^6.0.1",
|
|
74
74
|
"postcss-pxtrans": "^1.0.4",
|
|
75
75
|
"postcss-rem-to-responsive-pixel": "^7.0.4",
|
|
76
76
|
"postcss-rule-unit-converter": "^0.2.2",
|
|
77
77
|
"postcss-selector-parser": "~7.1.4",
|
|
78
78
|
"postcss-value-parser": "^4.2.0",
|
|
79
|
-
"@weapp-tailwindcss/postcss-calc": "^1.0.2",
|
|
80
79
|
"tailwindcss-config": "2.0.1",
|
|
80
|
+
"@weapp-tailwindcss/postcss-calc": "^1.0.2",
|
|
81
81
|
"@weapp-tailwindcss/shared": "2.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@csstools/css-parser-algorithms": "^4.0.0",
|
|
86
86
|
"@csstools/css-tokenizer": "^4.0.0",
|
|
87
87
|
"@csstools/postcss-is-pseudo-class": "^6.0.0",
|
|
88
|
-
"fast-check": "^4.
|
|
88
|
+
"fast-check": "^4.9.0",
|
|
89
89
|
"postcss-calc": "link:packages/postcss-calc",
|
|
90
90
|
"postcss-custom-properties": "^15.0.1",
|
|
91
91
|
"postcss-preset-env": "^11.3.2"
|