@weapp-tailwindcss/experimental 0.0.52 → 0.0.54
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/{index-DRm95hGG.d.ts → index-D6M-XpNw.d.cts} +2 -4
- package/dist/{index-DgmspOJt.d.ts → index-_-UW8xVG.d.ts} +2 -4
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -2
- package/dist/lightningcss/index.cjs +1 -2
- package/dist/lightningcss/index.d.cts +2 -0
- package/dist/lightningcss/index.d.ts +1 -1
- package/dist/lightningcss/index.mjs +1 -2
- package/dist/{lightningcss-Dt-baC0L.mjs → lightningcss-De19-T9o.mjs} +1 -2
- package/package.json +19 -9
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IStyleHandlerOptions } from "@weapp-tailwindcss/postcss";
|
|
2
2
|
import { TransformOptions, Warning } from "lightningcss";
|
|
3
|
+
import { Buffer } from "node:buffer";
|
|
3
4
|
import { SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, trimCombinators } from "@weapp-tailwindcss/postcss/experimental/lightningcss";
|
|
4
|
-
import { IStyleHandlerOptions } from "@weapp-tailwindcss/postcss";
|
|
5
|
-
//#region src/lightningcss/index.d.ts
|
|
6
5
|
type CustomAtRules = Record<string, never>;
|
|
7
6
|
interface LightningcssStyleHandlerResult {
|
|
8
7
|
code: string;
|
|
@@ -22,5 +21,4 @@ declare function transformCss(css?: string | Buffer): Promise<{
|
|
|
22
21
|
map: Buffer<ArrayBuffer> | undefined;
|
|
23
22
|
warnings: Warning[];
|
|
24
23
|
}>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { assignNestedSelectors as a, createTypeSelector as c, trimCombinators as d, SelectorTransformContext as f, prepareStyleOptions as g, createRootSpecificityReplacer as h, transformCss as i, matchesHiddenNot as l, createVisitor as m, LightningcssTransformConfig as n, cloneComponent as o, buildChildCombinatorReplacement as p, createLightningcssStyleHandler as r, cloneComponents as s, LightningcssStyleHandlerResult as t, normalizeNestedSelectors as u };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IStyleHandlerOptions } from "@weapp-tailwindcss/postcss";
|
|
2
|
-
import { TransformOptions, Warning } from "lightningcss";
|
|
3
1
|
import { Buffer } from "node:buffer";
|
|
2
|
+
import { TransformOptions, Warning } from "lightningcss";
|
|
4
3
|
import { SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, trimCombinators } from "@weapp-tailwindcss/postcss/experimental/lightningcss";
|
|
5
|
-
|
|
4
|
+
import { IStyleHandlerOptions } from "@weapp-tailwindcss/postcss";
|
|
6
5
|
type CustomAtRules = Record<string, never>;
|
|
7
6
|
interface LightningcssStyleHandlerResult {
|
|
8
7
|
code: string;
|
|
@@ -22,5 +21,4 @@ declare function transformCss(css?: string | Buffer): Promise<{
|
|
|
22
21
|
map: Buffer<ArrayBuffer> | undefined;
|
|
23
22
|
warnings: Warning[];
|
|
24
23
|
}>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { assignNestedSelectors as a, createTypeSelector as c, trimCombinators as d, SelectorTransformContext as f, prepareStyleOptions as g, createRootSpecificityReplacer as h, transformCss as i, matchesHiddenNot as l, createVisitor as m, LightningcssTransformConfig as n, cloneComponent as o, buildChildCombinatorReplacement as p, createLightningcssStyleHandler as r, cloneComponents as s, LightningcssStyleHandlerResult as t, normalizeNestedSelectors as u };
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "./index-D6M-XpNw.cjs";
|
|
2
|
+
export { LightningcssStyleHandlerResult, LightningcssTransformConfig, type SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "./index-
|
|
1
|
+
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "./index-_-UW8xVG.js";
|
|
2
2
|
export { LightningcssStyleHandlerResult, LightningcssTransformConfig, type SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
|
1
|
+
export { r as assignNestedSelectors, u as buildChildCombinatorReplacement, i as cloneComponent, a as cloneComponents, t as createLightningcssStyleHandler, f as createRootSpecificityReplacer, o as createTypeSelector, d as createVisitor, s as matchesHiddenNot, c as normalizeNestedSelectors, p as prepareStyleOptions, n as transformCss, l as trimCombinators } from "./lightningcss-De19-T9o.mjs";
|
|
@@ -3,7 +3,7 @@ let node_buffer = require("node:buffer");
|
|
|
3
3
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
4
|
let lightningcss = require("lightningcss");
|
|
5
5
|
let _weapp_tailwindcss_postcss_experimental_lightningcss = require("@weapp-tailwindcss/postcss/experimental/lightningcss");
|
|
6
|
-
|
|
6
|
+
// src/lightningcss/index.ts
|
|
7
7
|
const textDecoder = new TextDecoder();
|
|
8
8
|
const defaultLightningFilename = "inline.css";
|
|
9
9
|
function omitUndefined(value) {
|
|
@@ -53,7 +53,6 @@ async function transformCss(css = ".foo { color: red }") {
|
|
|
53
53
|
map: result.map ? node_buffer.Buffer.from(result.map) : void 0
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
Object.defineProperty(exports, "assignNestedSelectors", {
|
|
58
57
|
enumerable: true,
|
|
59
58
|
get: function() {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "../index-D6M-XpNw.cjs";
|
|
2
|
+
export { LightningcssStyleHandlerResult, LightningcssTransformConfig, type SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "../index-
|
|
1
|
+
import { a as assignNestedSelectors, c as createTypeSelector, d as trimCombinators, f as SelectorTransformContext, g as prepareStyleOptions, h as createRootSpecificityReplacer, i as transformCss, l as matchesHiddenNot, m as createVisitor, n as LightningcssTransformConfig, o as cloneComponent, p as buildChildCombinatorReplacement, r as createLightningcssStyleHandler, s as cloneComponents, t as LightningcssStyleHandlerResult, u as normalizeNestedSelectors } from "../index-_-UW8xVG.js";
|
|
2
2
|
export { LightningcssStyleHandlerResult, LightningcssTransformConfig, type SelectorTransformContext, assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createLightningcssStyleHandler, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, transformCss, trimCombinators };
|
|
1
|
+
export { r as assignNestedSelectors, u as buildChildCombinatorReplacement, i as cloneComponent, a as cloneComponents, t as createLightningcssStyleHandler, f as createRootSpecificityReplacer, o as createTypeSelector, d as createVisitor, s as matchesHiddenNot, c as normalizeNestedSelectors, p as prepareStyleOptions, n as transformCss, l as trimCombinators } from "../lightningcss-De19-T9o.mjs";
|
|
@@ -2,7 +2,7 @@ import { Buffer } from "node:buffer";
|
|
|
2
2
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
3
3
|
import { transform } from "lightningcss";
|
|
4
4
|
import { assignNestedSelectors, buildChildCombinatorReplacement, cloneComponent, cloneComponents, createRootSpecificityReplacer, createTypeSelector, createVisitor, matchesHiddenNot, normalizeNestedSelectors, prepareStyleOptions, trimCombinators } from "@weapp-tailwindcss/postcss/experimental/lightningcss";
|
|
5
|
-
|
|
5
|
+
// src/lightningcss/index.ts
|
|
6
6
|
const textDecoder = new TextDecoder();
|
|
7
7
|
const defaultLightningFilename = "inline.css";
|
|
8
8
|
function omitUndefined(value) {
|
|
@@ -52,5 +52,4 @@ async function transformCss(css = ".foo { color: red }") {
|
|
|
52
52
|
map: result.map ? Buffer.from(result.map) : void 0
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { cloneComponents as a, normalizeNestedSelectors as c, createVisitor as d, createRootSpecificityReplacer as f, cloneComponent as i, trimCombinators as l, transformCss as n, createTypeSelector as o, prepareStyleOptions as p, assignNestedSelectors as r, matchesHiddenNot as s, createLightningcssStyleHandler as t, buildChildCombinatorReplacement as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/experimental",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.54",
|
|
5
5
|
"description": "Experimental integrations for cross-platform Tailwind CSS. 跨端 Tailwind CSS 实验性集成能力。",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "ISC",
|
|
@@ -18,14 +18,24 @@
|
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"default": "./dist/index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/index.d.cts",
|
|
27
|
+
"default": "./dist/index.cjs"
|
|
28
|
+
}
|
|
24
29
|
},
|
|
25
30
|
"./lightningcss": {
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/lightningcss/index.d.ts",
|
|
33
|
+
"default": "./dist/lightningcss/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/lightningcss/index.d.cts",
|
|
37
|
+
"default": "./dist/lightningcss/index.cjs"
|
|
38
|
+
}
|
|
29
39
|
}
|
|
30
40
|
},
|
|
31
41
|
"main": "./dist/index.cjs",
|
|
@@ -38,8 +48,8 @@
|
|
|
38
48
|
"node": "^20.19.0 || >=22.12.0"
|
|
39
49
|
},
|
|
40
50
|
"dependencies": {
|
|
41
|
-
"@weapp-tailwindcss/postcss": "
|
|
42
|
-
"@weapp-tailwindcss/shared": "2.0.
|
|
51
|
+
"@weapp-tailwindcss/postcss": "4.0.1",
|
|
52
|
+
"@weapp-tailwindcss/shared": "2.0.5",
|
|
43
53
|
"lightningcss": "^1.33.0"
|
|
44
54
|
},
|
|
45
55
|
"scripts": {
|