tailwindcss-patch 9.4.4 → 9.5.1
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/{cli-CLvyx3xl.mjs → cli-Bv15iTiT.mjs} +1 -1
- package/dist/{cli-srv0kRlt.js → cli-Db2YAbkN.js} +3 -2
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/commands/cli-runtime.d.mts +1 -1
- package/dist/commands/cli-runtime.d.ts +1 -1
- package/dist/commands/cli-runtime.js +2 -2
- package/dist/commands/cli-runtime.mjs +2 -2
- package/dist/{dist-Dn7cMVhi.js → dist-wp0o36Ns.js} +1 -1
- package/dist/index.d.mts +7 -149
- package/dist/index.d.ts +8 -150
- package/dist/index.js +294 -521
- package/dist/index.mjs +6 -471
- package/dist/{validate-oAkURzUC.d.mts → validate-B5-08lrU.d.ts} +8 -252
- package/dist/{validate-RpdgpjgT.js → validate-C8oLv32F.js} +79 -1705
- package/dist/{validate-BuqRodYI.d.ts → validate-CgrG4aAY.d.mts} +8 -252
- package/dist/{validate-CUNJFfHh.mjs → validate-Cu1G06lO.mjs} +5 -1402
- package/package.json +5 -7
- package/src/api/tailwindcss-patcher.ts +3 -2
- package/src/extraction/candidate-extractor.ts +17 -701
- package/src/extraction/split-candidate-tokens.ts +5 -101
- package/src/options/types.ts +1 -2
- package/src/style-candidates.ts +5 -35
- package/src/style-generator.ts +11 -80
- package/src/types.ts +21 -95
- package/src/v3/index.ts +2 -2
- package/src/v4/index.ts +104 -28
- package/src/v3/style-generator.ts +0 -384
- package/src/v4/bare-arbitrary-values.ts +0 -545
- package/src/v4/candidates.ts +0 -316
- package/src/v4/engine.ts +0 -112
- package/src/v4/node-adapter.ts +0 -207
- package/src/v4/source-scan.ts +0 -432
- package/src/v4/source.ts +0 -235
- package/src/v4/style-generator.ts +0 -44
- package/src/v4/types.ts +0 -103
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.1",
|
|
4
4
|
"description": "patch tailwindcss for exposing context and extract classes",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=22.13.0"
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://mangle.icebreaker.top/",
|
|
11
11
|
"repository": {
|
|
@@ -65,18 +65,16 @@
|
|
|
65
65
|
"@babel/parser": "^7.29.7",
|
|
66
66
|
"@babel/traverse": "^7.29.7",
|
|
67
67
|
"@babel/types": "^7.29.7",
|
|
68
|
-
"@tailwindcss/node": "^4.3.1",
|
|
69
|
-
"@tailwindcss/oxide": "^4.3.1",
|
|
70
68
|
"cac": "6.7.14",
|
|
71
69
|
"consola": "^3.4.2",
|
|
72
70
|
"fs-extra": "^11.3.5",
|
|
73
71
|
"local-pkg": "^1.2.1",
|
|
74
|
-
"micromatch": "^4.0.8",
|
|
75
72
|
"pathe": "^2.0.3",
|
|
76
73
|
"postcss": "^8.5.15",
|
|
77
|
-
"semver": "^7.8.
|
|
74
|
+
"semver": "^7.8.5",
|
|
78
75
|
"tailwindcss-config": "^2.0.0",
|
|
79
|
-
"@tailwindcss-mangle/config": "7.0.2"
|
|
76
|
+
"@tailwindcss-mangle/config": "7.0.2",
|
|
77
|
+
"@tailwindcss-mangle/engine": "0.1.1"
|
|
80
78
|
},
|
|
81
79
|
"devDependencies": {
|
|
82
80
|
"@tailwindcss/postcss": "^4.3.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceEntry } from '@tailwindcss/
|
|
1
|
+
import type { TailwindV4SourcePattern as SourceEntry } from '@tailwindcss-mangle/engine/v4'
|
|
2
2
|
import type { PackageInfo } from 'local-pkg'
|
|
3
3
|
import type { NormalizedTailwindCssPatchOptions } from '../config'
|
|
4
4
|
import type { PatchResult, TailwindCollector, TailwindMajorVersion } from '../runtime/collector'
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
CacheReadMeta,
|
|
10
10
|
ExtractResult,
|
|
11
11
|
TailwindCssPatchOptions,
|
|
12
|
+
TailwindcssRuntimeContext,
|
|
12
13
|
TailwindTokenByFileMap,
|
|
13
14
|
TailwindTokenFileKey,
|
|
14
15
|
TailwindTokenReport,
|
|
@@ -196,7 +197,7 @@ export class TailwindcssPatcher {
|
|
|
196
197
|
return this.collector.getPatchStatus()
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
getContexts() {
|
|
200
|
+
getContexts(): TailwindcssRuntimeContext[] {
|
|
200
201
|
return this.collector.getContexts()
|
|
201
202
|
}
|
|
202
203
|
|