tailwindcss-patch 1.2.7 → 2.0.0
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/README.md +63 -6
- package/bin/tw-patch.js +3 -3
- package/dist/cli.cjs +115 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +107 -0
- package/dist/index.cjs +554 -0
- package/dist/index.d.ts +165 -0
- package/dist/index.mjs +519 -0
- package/package.json +34 -11
- package/dist/cli.js +0 -15
- package/dist/index.js +0 -191
- package/dist/patcher-a07f477f.js +0 -302
- package/dist/types/babel.d.ts +0 -3
- package/dist/types/cache.d.ts +0 -7
- package/dist/types/class.d.ts +0 -17
- package/dist/types/cli.d.ts +0 -1
- package/dist/types/constants.d.ts +0 -1
- package/dist/types/defaults.d.ts +0 -2
- package/dist/types/exposeContext.d.ts +0 -5
- package/dist/types/index.d.ts +0 -6
- package/dist/types/inspector.d.ts +0 -8
- package/dist/types/logger.d.ts +0 -1
- package/dist/types/patcher.d.ts +0 -9
- package/dist/types/type.d.ts +0 -72
- package/dist/types/utils.d.ts +0 -3
package/dist/types/type.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { Rule, Node } from 'postcss';
|
|
2
|
-
import type { Config } from 'tailwindcss';
|
|
3
|
-
export type CacheStrategy = 'merge' | 'overwrite';
|
|
4
|
-
export interface CacheOptions {
|
|
5
|
-
dir?: string;
|
|
6
|
-
cwd?: string;
|
|
7
|
-
file?: string;
|
|
8
|
-
strategy?: CacheStrategy;
|
|
9
|
-
}
|
|
10
|
-
export type InternalCacheOptions = CacheOptions & {
|
|
11
|
-
enable?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export interface PatchOptions {
|
|
14
|
-
overwrite?: boolean;
|
|
15
|
-
paths?: string[];
|
|
16
|
-
basedir?: string;
|
|
17
|
-
custom?: (dir: string, ctx: Record<string, any>) => void;
|
|
18
|
-
}
|
|
19
|
-
export interface InternalPatchOptions {
|
|
20
|
-
overwrite: boolean;
|
|
21
|
-
paths?: string[];
|
|
22
|
-
basedir?: string;
|
|
23
|
-
custom?: (dir: string, ctx: Record<string, any>) => void;
|
|
24
|
-
version?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface TailwindcssPatcherOptions {
|
|
27
|
-
cache?: CacheOptions | boolean;
|
|
28
|
-
patch?: PatchOptions;
|
|
29
|
-
}
|
|
30
|
-
export type TailwindcssClassCache = Map<string, ({
|
|
31
|
-
layer: string;
|
|
32
|
-
options: Record<string, any>;
|
|
33
|
-
sort: Record<string, any>;
|
|
34
|
-
} | Rule)[]>;
|
|
35
|
-
export type TailwindcssRuntimeContext = {
|
|
36
|
-
applyClassCache: Map<any, any>;
|
|
37
|
-
candidateRuleCache: Map<string | String, Set<[
|
|
38
|
-
{
|
|
39
|
-
arbitrary: any;
|
|
40
|
-
index: any;
|
|
41
|
-
layer: string;
|
|
42
|
-
options: any[];
|
|
43
|
-
parallelIndex: any;
|
|
44
|
-
parentLayer: string;
|
|
45
|
-
variants: any;
|
|
46
|
-
},
|
|
47
|
-
Node
|
|
48
|
-
]>>;
|
|
49
|
-
candidateRuleMap: Map<string | String, [object, Node][]>;
|
|
50
|
-
changedContent: any[];
|
|
51
|
-
classCache: TailwindcssClassCache;
|
|
52
|
-
disposables: any[];
|
|
53
|
-
getClassList: Function;
|
|
54
|
-
getClassOrder: Function;
|
|
55
|
-
getVariants: Function;
|
|
56
|
-
markInvalidUtilityCandidate: Function;
|
|
57
|
-
markInvalidUtilityNode: Function;
|
|
58
|
-
notClassCache: Set<String>;
|
|
59
|
-
offsets: {
|
|
60
|
-
layerPositions: object;
|
|
61
|
-
offsets: object;
|
|
62
|
-
reservedVariantBits: any;
|
|
63
|
-
variantOffsets: Map<string, any>;
|
|
64
|
-
};
|
|
65
|
-
postCssNodeCache: Map<object, [Node]>;
|
|
66
|
-
ruleCache: Set<[object, Node]>;
|
|
67
|
-
stylesheetCache: Record<string, Set<any>>;
|
|
68
|
-
tailwindConfig: Config;
|
|
69
|
-
userConfigPath: string | null;
|
|
70
|
-
variantMap: Map<string, [[object, Function]]>;
|
|
71
|
-
variantOptions: Map<string, object>;
|
|
72
|
-
};
|
package/dist/types/utils.d.ts
DELETED