eslint-plugin-better-tailwindcss 3.7.8 → 3.7.9
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/lib/cjs/parsers/es.js +0 -1
- package/lib/cjs/parsers/es.js.map +1 -1
- package/lib/cjs/parsers/svelte.js +0 -1
- package/lib/cjs/parsers/svelte.js.map +1 -1
- package/lib/cjs/parsers/vue.js +0 -1
- package/lib/cjs/parsers/vue.js.map +1 -1
- package/lib/cjs/utils/matchers.js +1 -1
- package/lib/cjs/utils/matchers.js.map +1 -1
- package/lib/esm/parsers/es.js +0 -1
- package/lib/esm/parsers/es.js.map +1 -1
- package/lib/esm/parsers/svelte.js +0 -1
- package/lib/esm/parsers/svelte.js.map +1 -1
- package/lib/esm/parsers/vue.js +0 -1
- package/lib/esm/parsers/vue.js.map +1 -1
- package/lib/esm/utils/matchers.js +1 -1
- package/lib/esm/utils/matchers.js.map +1 -1
- package/package.json +1 -1
- package/lib/cjs/async-utils/config.v3.d.ts +0 -2
- package/lib/cjs/async-utils/config.v3.d.ts.map +0 -1
- package/lib/cjs/async-utils/config.v3.js +0 -15
- package/lib/cjs/async-utils/config.v3.js.map +0 -1
- package/lib/cjs/async-utils/config.v4.d.ts +0 -3
- package/lib/cjs/async-utils/config.v4.d.ts.map +0 -1
- package/lib/cjs/async-utils/config.v4.js +0 -20
- package/lib/cjs/async-utils/config.v4.js.map +0 -1
- package/lib/cjs/async-utils/string.d.ts +0 -2
- package/lib/cjs/async-utils/string.d.ts.map +0 -1
- package/lib/cjs/async-utils/string.js +0 -10
- package/lib/cjs/async-utils/string.js.map +0 -1
- package/lib/cjs/async-utils/version.d.ts +0 -15
- package/lib/cjs/async-utils/version.d.ts.map +0 -1
- package/lib/cjs/async-utils/version.js +0 -38
- package/lib/cjs/async-utils/version.js.map +0 -1
- package/lib/cjs/options/schemas/attributes.d.ts +0 -104
- package/lib/cjs/options/schemas/attributes.d.ts.map +0 -1
- package/lib/cjs/options/schemas/attributes.js +0 -23
- package/lib/cjs/options/schemas/attributes.js.map +0 -1
- package/lib/cjs/options/schemas/callees.d.ts +0 -108
- package/lib/cjs/options/schemas/callees.d.ts.map +0 -1
- package/lib/cjs/options/schemas/callees.js +0 -23
- package/lib/cjs/options/schemas/callees.js.map +0 -1
- package/lib/cjs/options/schemas/common.d.ts +0 -14
- package/lib/cjs/options/schemas/common.d.ts.map +0 -1
- package/lib/cjs/options/schemas/common.js +0 -14
- package/lib/cjs/options/schemas/common.js.map +0 -1
- package/lib/cjs/options/schemas/matchers.d.ts +0 -13
- package/lib/cjs/options/schemas/matchers.d.ts.map +0 -1
- package/lib/cjs/options/schemas/matchers.js +0 -17
- package/lib/cjs/options/schemas/matchers.js.map +0 -1
- package/lib/cjs/options/schemas/tags.d.ts +0 -101
- package/lib/cjs/options/schemas/tags.d.ts.map +0 -1
- package/lib/cjs/options/schemas/tags.js +0 -23
- package/lib/cjs/options/schemas/tags.js.map +0 -1
- package/lib/cjs/options/schemas/variables.d.ts +0 -102
- package/lib/cjs/options/schemas/variables.d.ts.map +0 -1
- package/lib/cjs/options/schemas/variables.js +0 -23
- package/lib/cjs/options/schemas/variables.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/class-variants.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v3.js +0 -46
- package/lib/cjs/tailwindcss/class-variants.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/class-variants.async.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v4.js +0 -14
- package/lib/cjs/tailwindcss/class-variants.async.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.js +0 -10
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.d.ts +0 -2
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.js +0 -10
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.d.ts +0 -14
- package/lib/cjs/tailwindcss/class-variants.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.js +0 -24
- package/lib/cjs/tailwindcss/class-variants.js.map +0 -1
- package/lib/cjs/tailwindcss/config.d.ts +0 -16
- package/lib/cjs/tailwindcss/config.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.js +0 -51
- package/lib/cjs/tailwindcss/config.js.map +0 -1
- package/lib/cjs/tailwindcss/config.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/config.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.v3.js +0 -15
- package/lib/cjs/tailwindcss/config.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/config.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/config.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.v4.js +0 -20
- package/lib/cjs/tailwindcss/config.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.js +0 -7
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.d.ts +0 -4
- package/lib/cjs/tailwindcss/shorthand-classes.async.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.js +0 -129
- package/lib/cjs/tailwindcss/shorthand-classes.async.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.js +0 -54
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.js +0 -54
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.js +0 -10
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.d.ts +0 -2
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.js +0 -10
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.d.ts +0 -15
- package/lib/cjs/tailwindcss/shorthand-classes.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.js +0 -24
- package/lib/cjs/tailwindcss/shorthand-classes.js.map +0 -1
- package/lib/cjs/utils/ast.d.ts +0 -4
- package/lib/cjs/utils/ast.d.ts.map +0 -1
- package/lib/cjs/utils/ast.js +0 -12
- package/lib/cjs/utils/ast.js.map +0 -1
- package/lib/esm/async-utils/config.v3.d.ts +0 -2
- package/lib/esm/async-utils/config.v3.d.ts.map +0 -1
- package/lib/esm/async-utils/config.v3.js +0 -12
- package/lib/esm/async-utils/config.v3.js.map +0 -1
- package/lib/esm/async-utils/config.v4.d.ts +0 -3
- package/lib/esm/async-utils/config.v4.d.ts.map +0 -1
- package/lib/esm/async-utils/config.v4.js +0 -16
- package/lib/esm/async-utils/config.v4.js.map +0 -1
- package/lib/esm/async-utils/string.d.ts +0 -2
- package/lib/esm/async-utils/string.d.ts.map +0 -1
- package/lib/esm/async-utils/string.js +0 -7
- package/lib/esm/async-utils/string.js.map +0 -1
- package/lib/esm/async-utils/version.d.ts +0 -15
- package/lib/esm/async-utils/version.d.ts.map +0 -1
- package/lib/esm/async-utils/version.js +0 -37
- package/lib/esm/async-utils/version.js.map +0 -1
- package/lib/esm/options/schemas/attributes.d.ts +0 -104
- package/lib/esm/options/schemas/attributes.d.ts.map +0 -1
- package/lib/esm/options/schemas/attributes.js +0 -20
- package/lib/esm/options/schemas/attributes.js.map +0 -1
- package/lib/esm/options/schemas/callees.d.ts +0 -108
- package/lib/esm/options/schemas/callees.d.ts.map +0 -1
- package/lib/esm/options/schemas/callees.js +0 -20
- package/lib/esm/options/schemas/callees.js.map +0 -1
- package/lib/esm/options/schemas/common.d.ts +0 -14
- package/lib/esm/options/schemas/common.d.ts.map +0 -1
- package/lib/esm/options/schemas/common.js +0 -11
- package/lib/esm/options/schemas/common.js.map +0 -1
- package/lib/esm/options/schemas/matchers.d.ts +0 -13
- package/lib/esm/options/schemas/matchers.d.ts.map +0 -1
- package/lib/esm/options/schemas/matchers.js +0 -14
- package/lib/esm/options/schemas/matchers.js.map +0 -1
- package/lib/esm/options/schemas/tags.d.ts +0 -101
- package/lib/esm/options/schemas/tags.d.ts.map +0 -1
- package/lib/esm/options/schemas/tags.js +0 -20
- package/lib/esm/options/schemas/tags.js.map +0 -1
- package/lib/esm/options/schemas/variables.d.ts +0 -102
- package/lib/esm/options/schemas/variables.d.ts.map +0 -1
- package/lib/esm/options/schemas/variables.js +0 -20
- package/lib/esm/options/schemas/variables.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/class-variants.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v3.js +0 -10
- package/lib/esm/tailwindcss/class-variants.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/class-variants.async.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v4.js +0 -11
- package/lib/esm/tailwindcss/class-variants.async.v4.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.js +0 -8
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.d.ts +0 -2
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.js +0 -8
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.d.ts +0 -14
- package/lib/esm/tailwindcss/class-variants.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.js +0 -21
- package/lib/esm/tailwindcss/class-variants.js.map +0 -1
- package/lib/esm/tailwindcss/config.d.ts +0 -16
- package/lib/esm/tailwindcss/config.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.js +0 -47
- package/lib/esm/tailwindcss/config.js.map +0 -1
- package/lib/esm/tailwindcss/config.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/config.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.v3.js +0 -12
- package/lib/esm/tailwindcss/config.v3.js.map +0 -1
- package/lib/esm/tailwindcss/config.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/config.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.v4.js +0 -16
- package/lib/esm/tailwindcss/config.v4.js.map +0 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.js +0 -4
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.d.ts +0 -4
- package/lib/esm/tailwindcss/shorthand-classes.async.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.js +0 -125
- package/lib/esm/tailwindcss/shorthand-classes.async.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.js +0 -51
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.js +0 -51
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.js +0 -8
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.d.ts +0 -2
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.js +0 -8
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.d.ts +0 -15
- package/lib/esm/tailwindcss/shorthand-classes.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.js +0 -21
- package/lib/esm/tailwindcss/shorthand-classes.js.map +0 -1
- package/lib/esm/utils/ast.d.ts +0 -4
- package/lib/esm/utils/ast.d.ts.map +0 -1
- package/lib/esm/utils/ast.js +0 -9
- package/lib/esm/utils/ast.js.map +0 -1
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { InferOutput } from "valibot";
|
|
2
|
-
export declare const VARIABLE_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
4
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
5
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
6
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
7
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
9
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
10
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
11
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
12
|
-
} | {
|
|
13
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
14
|
-
pathPattern?: string | undefined;
|
|
15
|
-
} | {
|
|
16
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
17
|
-
pathPattern?: string | undefined;
|
|
18
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
19
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
20
|
-
} | {
|
|
21
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
22
|
-
pathPattern?: string | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
25
|
-
pathPattern?: string | undefined;
|
|
26
|
-
})[]], "List of matchers that will automatically be matched.">]>;
|
|
27
|
-
export type VariableMatchers = InferOutput<typeof VARIABLE_MATCHER_CONFIG>;
|
|
28
|
-
export declare const VARIABLE_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>;
|
|
29
|
-
export type VariableName = InferOutput<typeof VARIABLE_NAME_CONFIG>;
|
|
30
|
-
export declare const VARIABLES_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
31
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
32
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
33
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
34
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
35
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
36
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
37
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
38
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
39
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
40
|
-
} | {
|
|
41
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
42
|
-
pathPattern?: string | undefined;
|
|
43
|
-
} | {
|
|
44
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
45
|
-
pathPattern?: string | undefined;
|
|
46
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
47
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
48
|
-
} | {
|
|
49
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
50
|
-
pathPattern?: string | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
53
|
-
pathPattern?: string | undefined;
|
|
54
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
55
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
56
|
-
} | {
|
|
57
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
58
|
-
pathPattern?: string | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
61
|
-
pathPattern?: string | undefined;
|
|
62
|
-
})[]])[], "List of variable names which values should get linted.">]>;
|
|
63
|
-
export type Variables = InferOutput<typeof VARIABLES_SCHEMA>;
|
|
64
|
-
export declare const VARIABLES_OPTION_SCHEMA: import("valibot").ObjectSchema<{
|
|
65
|
-
readonly variables: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
66
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
67
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
69
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
70
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
72
|
-
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
73
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
74
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
75
|
-
} | {
|
|
76
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
77
|
-
pathPattern?: string | undefined;
|
|
78
|
-
} | {
|
|
79
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
80
|
-
pathPattern?: string | undefined;
|
|
81
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
82
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
83
|
-
} | {
|
|
84
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
85
|
-
pathPattern?: string | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
88
|
-
pathPattern?: string | undefined;
|
|
89
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
90
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
91
|
-
} | {
|
|
92
|
-
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
93
|
-
pathPattern?: string | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
96
|
-
pathPattern?: string | undefined;
|
|
97
|
-
})[]])[], "List of variable names which values should get linted.">]>, [string, {
|
|
98
|
-
match: import("../../types/rule.js").MatcherType.String;
|
|
99
|
-
}[]][]>;
|
|
100
|
-
}, undefined>;
|
|
101
|
-
export type VariablesOptions = InferOutput<typeof VARIABLES_OPTION_SCHEMA>;
|
|
102
|
-
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/variables.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,qLAGhC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAQ5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEI,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { array, description, object, optional, pipe, string, tuple, union } from "valibot";
|
|
2
|
-
import { DEFAULT_VARIABLE_NAMES } from "../default-options.js";
|
|
3
|
-
import { OBJECT_KEY_MATCHER_SCHEMA, OBJECT_VALUE_MATCHER_SCHEMA, STRING_MATCHER_SCHEMA } from "../schemas/matchers.js";
|
|
4
|
-
export const VARIABLE_MATCHER_CONFIG = pipe(tuple([
|
|
5
|
-
pipe(string(), description("Variable name for which children get linted if matched.")),
|
|
6
|
-
pipe(array(union([
|
|
7
|
-
STRING_MATCHER_SCHEMA,
|
|
8
|
-
OBJECT_KEY_MATCHER_SCHEMA,
|
|
9
|
-
OBJECT_VALUE_MATCHER_SCHEMA
|
|
10
|
-
])), description("List of matchers that will be applied."))
|
|
11
|
-
]), description("List of matchers that will automatically be matched."));
|
|
12
|
-
export const VARIABLE_NAME_CONFIG = pipe(string(), description("Variable name for which children get linted."));
|
|
13
|
-
export const VARIABLES_SCHEMA = pipe(array(union([
|
|
14
|
-
VARIABLE_MATCHER_CONFIG,
|
|
15
|
-
VARIABLE_NAME_CONFIG
|
|
16
|
-
])), description("List of variable names which values should get linted."));
|
|
17
|
-
export const VARIABLES_OPTION_SCHEMA = object({
|
|
18
|
-
variables: optional(VARIABLES_SCHEMA, DEFAULT_VARIABLE_NAMES)
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../src/options/schemas/variables.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,gDAAgD,CAAC;AAMxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CACzC,KAAK,CAAC;IACJ,IAAI,CACF,MAAM,EAAE,EACR,WAAW,CAAC,yDAAyD,CAAC,CACvE;IACD,IAAI,CACF,KAAK,CACH,KAAK,CAAC;QACJ,qBAAqB;QACrB,yBAAyB;QACzB,2BAA2B;KAC5B,CAAC,CACH,EACD,WAAW,CAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,WAAW,CAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CACtC,MAAM,EAAE,EACR,WAAW,CAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAClC,KAAK,CACH,KAAK,CAAC;IACJ,uBAAuB;IACvB,oBAAoB;CACrB,CAAC,CACH,EACD,WAAW,CAAC,wDAAwD,CAAC,CACtE,CAAC;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;IAC5C,SAAS,EAAE,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;CAC9D,CAAuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v3.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAQ1F"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as utils from "tailwindcss/lib/util/splitAtTopLevelOnly.js";
|
|
2
|
-
export function getClassVariants(context, classes) {
|
|
3
|
-
const separator = context.tailwindConfig.separator ?? ":";
|
|
4
|
-
return classes.map(className => {
|
|
5
|
-
const splitChunks = utils.splitAtTopLevelOnly?.(className, separator) ?? utils.default?.splitAtTopLevelOnly?.(className, separator);
|
|
6
|
-
const variants = splitChunks.slice(0, -1);
|
|
7
|
-
return [className, variants];
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=class-variants.async.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,8CAA8C,CAAC;AAKtE,MAAM,UAAU,gBAAgB,CAAC,OAAY,EAAE,OAAiB;IAC9D,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,IAAI,GAAG,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;QAC7B,MAAM,WAAW,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACpI,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1C,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAW1F"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function getClassVariants(context, classes) {
|
|
2
|
-
return classes.map(className => {
|
|
3
|
-
const [parsed] = context.parseCandidate(className);
|
|
4
|
-
if (!parsed?.variants) {
|
|
5
|
-
return [className, []];
|
|
6
|
-
}
|
|
7
|
-
const variants = parsed.variants.map(variant => context.printVariant(variant)).reverse();
|
|
8
|
-
return [className, variants];
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=class-variants.async.v4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v4.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v4.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,gBAAgB,CAAC,OAAY,EAAE,OAAiB;IAC9D,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;QAC7B,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAEnD,IAAG,CAAC,MAAM,EAAE,QAAQ,EAAC,CAAC;YACpB,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QACzB,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACzF,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v3.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { runAsWorker } from "synckit";
|
|
2
|
-
import { getClassVariants } from "./class-variants.async.v3.js";
|
|
3
|
-
import { createTailwindContext } from "./context.async.v3.js";
|
|
4
|
-
runAsWorker(async ({ classes, configPath }) => {
|
|
5
|
-
const context = await createTailwindContext(configPath);
|
|
6
|
-
return getClassVariants(context, classes);
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=class-variants.async.worker.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,WAAW,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAA2B,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,OAAO,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v4.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { runAsWorker } from "synckit";
|
|
2
|
-
import { getClassVariants } from "./class-variants.async.v4.js";
|
|
3
|
-
import { createTailwindContext } from "./context.async.v4.js";
|
|
4
|
-
runAsWorker(async ({ classes, configPath }) => {
|
|
5
|
-
const context = await createTailwindContext(configPath);
|
|
6
|
-
return getClassVariants(context, classes);
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=class-variants.async.worker.v4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v4.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,WAAW,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAA2B,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,OAAO,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface GetClassVariantsRequest {
|
|
2
|
-
classes: string[];
|
|
3
|
-
configPath: string;
|
|
4
|
-
}
|
|
5
|
-
export type GetClassVariantsResponse = [className: string, variants: string[]][];
|
|
6
|
-
export declare function getClassVariants({ classes, configPath, cwd }: {
|
|
7
|
-
classes: string[];
|
|
8
|
-
configPath: string | undefined;
|
|
9
|
-
cwd: string;
|
|
10
|
-
}): {
|
|
11
|
-
classVariants: GetClassVariantsResponse;
|
|
12
|
-
warnings: ((Omit<import("../utils/utils.js").Warning<Record<string, any>>, "url"> & Partial<Pick<import("../utils/utils.js").Warning<Record<string, any>>, "url">>) | undefined)[];
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=class-variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAEjF,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE;;;EAKjI"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { resolve } from "node:path";
|
|
2
|
-
import { createSyncFn } from "synckit";
|
|
3
|
-
import { getTailwindConfigPath } from "./config.js";
|
|
4
|
-
import { getTailwindcssVersion } from "../async-utils/version.js";
|
|
5
|
-
import { getWorkerOptions } from "../async-utils/worker.js";
|
|
6
|
-
export function getClassVariants({ classes, configPath, cwd }) {
|
|
7
|
-
const { path, warning } = getTailwindConfigPath({ configPath, cwd });
|
|
8
|
-
const classVariants = getClassVariantsSync({ classes, configPath: path });
|
|
9
|
-
return { classVariants, warnings: [warning] };
|
|
10
|
-
}
|
|
11
|
-
const getClassVariantsSync = createSyncFn(getWorkerPath(), getWorkerOptions());
|
|
12
|
-
function getWorkerPath() {
|
|
13
|
-
const { major } = getTailwindcssVersion();
|
|
14
|
-
return resolve(getCurrentDirectory(), `./class-variants.async.worker.v${major}.js`);
|
|
15
|
-
}
|
|
16
|
-
function getCurrentDirectory() {
|
|
17
|
-
// eslint-disable-next-line eslint-plugin-typescript/prefer-ts-expect-error
|
|
18
|
-
// @ts-ignore - `import.meta` doesn't exist in CommonJS -> will be transformed in build step
|
|
19
|
-
return import.meta.dirname;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=class-variants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAYtE,MAAM,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAuE;IAChI,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,oBAAoB,GAAG,YAAY,CAEvC,aAAa,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvC,SAAS,aAAa;IACpB,MAAM,EAAE,KAAK,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAC1C,OAAO,OAAO,CAAC,mBAAmB,EAAE,EAAE,kCAAkC,KAAK,KAAK,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,mBAAmB;IAC1B,2EAA2E;IAC3E,4FAA4F;IAC5F,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;AAC7B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Warning } from "../utils/utils.js";
|
|
2
|
-
export interface GetConfigRequest {
|
|
3
|
-
configPath: string | undefined;
|
|
4
|
-
cwd: string;
|
|
5
|
-
}
|
|
6
|
-
export interface GetConfigResponse {
|
|
7
|
-
path: string;
|
|
8
|
-
warning: ConfigWarning | undefined;
|
|
9
|
-
}
|
|
10
|
-
type ConfigWarning = Omit<Warning, "url"> & Partial<Pick<Warning, "url">>;
|
|
11
|
-
export declare const getTailwindConfigPath: ({ configPath, cwd }: {
|
|
12
|
-
configPath: string | undefined;
|
|
13
|
-
cwd: string;
|
|
14
|
-
}) => GetConfigResponse;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGjE,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;CACpC;AAED,KAAK,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB,GAAI,qBAAqB;IAAE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,sBAgBzG,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { resolve } from "node:path";
|
|
2
|
-
import { findTailwindConfigPath as findTailwindConfigPathV3 } from "./config.v3.js";
|
|
3
|
-
import { findDefaultConfigPath, findTailwindConfigPath as findTailwindConfigPathV4 } from "./config.v4.js";
|
|
4
|
-
import { withCache } from "../async-utils/cache.js";
|
|
5
|
-
import { getTailwindcssVersion, TailwindcssVersion } from "../async-utils/version.js";
|
|
6
|
-
export const getTailwindConfigPath = ({ configPath, cwd }) => withCache(configPath ?? "default", () => {
|
|
7
|
-
const version = getTailwindcssVersion();
|
|
8
|
-
if (version.major === TailwindcssVersion.V3) {
|
|
9
|
-
const foundConfigPath = findTailwindConfigPathV3(cwd, configPath);
|
|
10
|
-
return {
|
|
11
|
-
path: foundConfigPath ?? "default",
|
|
12
|
-
warning: getConfigPathWarning(configPath, foundConfigPath)
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
const foundConfigPath = findTailwindConfigPathV4(cwd, configPath);
|
|
17
|
-
return {
|
|
18
|
-
path: foundConfigPath ?? findDefaultConfigPath(cwd),
|
|
19
|
-
warning: getEntryPointWarning(configPath, foundConfigPath)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
function getConfigPathWarning(configPath, foundConfigPath) {
|
|
24
|
-
if (!configPath) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (foundConfigPath && resolve(configPath) === resolve(foundConfigPath)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
option: "tailwindConfig",
|
|
32
|
-
title: `No tailwind css config found at \`${configPath}\``
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function getEntryPointWarning(entryPoint, foundEntryPoint) {
|
|
36
|
-
if (!entryPoint) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (foundEntryPoint && resolve(entryPoint) === resolve(foundEntryPoint)) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
option: "entryPoint",
|
|
44
|
-
title: `No tailwind css entry point found at \`${entryPoint}\``
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tailwindcss/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACjH,OAAO,EACL,qBAAqB,EACrB,sBAAsB,IAAI,wBAAwB,EACnD,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAiBhG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAE,UAAU,EA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,0CAA0C,UAAU,IAAI;KAChE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.v3.ts"],"names":[],"mappings":"AAGA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU3F"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { findFileRecursive } from "../async-utils/fs.js";
|
|
2
|
-
export function findTailwindConfigPath(cwd, configPath) {
|
|
3
|
-
const potentialPaths = [
|
|
4
|
-
...configPath ? [configPath] : [],
|
|
5
|
-
"tailwind.config.js",
|
|
6
|
-
"tailwind.config.cjs",
|
|
7
|
-
"tailwind.config.mjs",
|
|
8
|
-
"tailwind.config.ts"
|
|
9
|
-
];
|
|
10
|
-
return findFileRecursive(cwd, potentialPaths);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=config.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/config.v3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,MAAM,UAAU,sBAAsB,CAAC,GAAW,EAAE,UAAmB;IACrE,MAAM,cAAc,GAAG;QACrB,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;QACjC,oBAAoB;QACpB,qBAAqB;QACrB,qBAAqB;QACrB,oBAAoB;KACrB,CAAC;IAEF,OAAO,iBAAiB,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.v4.ts"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM3F;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { findFileRecursive } from "../async-utils/fs.js";
|
|
2
|
-
import { cssResolver } from "../async-utils/resolvers.js";
|
|
3
|
-
export function findTailwindConfigPath(cwd, configPath) {
|
|
4
|
-
const potentialStylesheetPaths = [
|
|
5
|
-
...configPath ? [configPath] : []
|
|
6
|
-
];
|
|
7
|
-
return findFileRecursive(cwd, potentialStylesheetPaths);
|
|
8
|
-
}
|
|
9
|
-
export function findDefaultConfigPath(cwd) {
|
|
10
|
-
const defaultConfigPath = cssResolver.resolveSync({}, cwd, "tailwindcss/theme.css");
|
|
11
|
-
if (!defaultConfigPath) {
|
|
12
|
-
throw new Error("No default tailwind config found. Please ensure you have Tailwind CSS installed.");
|
|
13
|
-
}
|
|
14
|
-
return defaultConfigPath;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=config.v4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v4.js","sourceRoot":"","sources":["../../../src/tailwindcss/config.v4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGpE,MAAM,UAAU,sBAAsB,CAAC,GAAW,EAAE,UAAmB;IACrE,MAAM,wBAAwB,GAAG;QAC/B,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;KAClC,CAAC;IAEF,OAAO,iBAAiB,CAAC,GAAG,EAAE,wBAAwB,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,iBAAiB,GAAG,WAAW,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,uBAAuB,CAAC,CAAC;IAEpF,IAAG,CAAC,iBAAiB,EAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;IACtG,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conflicting-classes.async.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/conflicting-classes.async.v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAG9E,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,6BAA6B,CAAC,CAEpF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conflicting-classes.async.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/conflicting-classes.async.v3.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,KAAK,UAAU,qBAAqB;IACzC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { GetShorthandClassesResponse } from "./shorthand-classes.js";
|
|
2
|
-
export declare const shorthands: [string[], string[]][][];
|
|
3
|
-
export declare function getShorthands(classes: string[]): GetShorthandClassesResponse[];
|
|
4
|
-
//# sourceMappingURL=shorthand-classes.async.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shorthand-classes.async.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/shorthand-classes.async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAc,MAAM,wBAAwB,CAAC;AAGtF,eAAO,MAAM,UAAU,0BAmFD,CAAC;AAEvB,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,2BAA2B,EAAE,CAuD9E"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { replacePlaceholders } from "../async-utils/string.js";
|
|
2
|
-
export const shorthands = [
|
|
3
|
-
[
|
|
4
|
-
[["^w-(.*)", "^h-(.*)"], ["size-$1"]]
|
|
5
|
-
],
|
|
6
|
-
[
|
|
7
|
-
[["^ml-(.*)", "^mr-(.*)", "^mt-(.*)", "^mb-(.*)"], ["m-$1"]],
|
|
8
|
-
[["^mx-(.*)", "^my-(.*)"], ["m-$1"]],
|
|
9
|
-
[["^ms-(.*)", "^me-(.*)"], ["mx-$1"]],
|
|
10
|
-
[["^ml-(.*)", "^mr-(.*)"], ["mx-$1"]],
|
|
11
|
-
[["^mt-(.*)", "^mb-(.*)"], ["my-$1"]]
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
[["^pl-(.*)", "^pr-(.*)", "^pt-(.*)", "^pb-(.*)"], ["p-$1"]],
|
|
15
|
-
[["^px-(.*)", "^py-(.*)"], ["p-$1"]],
|
|
16
|
-
[["^ps-(.*)", "^pe-(.*)"], ["px-$1"]],
|
|
17
|
-
[["^pl-(.*)", "^pr-(.*)"], ["px-$1"]],
|
|
18
|
-
[["^pt-(.*)", "^pb-(.*)"], ["py-$1"]]
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
[["^border-t-(.*)", "^border-b-(.*)", "^border-l-(.*)", "^border-r-(.*)"], ["border-$1"]],
|
|
22
|
-
[["^border-x-(.*)", "^border-y-(.*)"], ["border-$1"]],
|
|
23
|
-
[["^border-s-(.*)", "^border-e-(.*)"], ["border-x-$1"]],
|
|
24
|
-
[["^border-l-(.*)", "^border-r-(.*)"], ["border-x-$1"]],
|
|
25
|
-
[["^border-t-(.*)", "^border-b-(.*)"], ["border-y-$1"]]
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
[["^border-spacing-x-(.*)", "^border-spacing-y-(.*)"], ["border-spacing-$1"]]
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
[["^rounded-tl-(.*)", "^rounded-tr-(.*)", "^rounded-bl-(.*)", "^rounded-br-(.*)"], ["rounded-$1"]],
|
|
32
|
-
[["^rounded-tl-(.*)", "^rounded-tr-(.*)"], ["rounded-t-$1"]],
|
|
33
|
-
[["^rounded-bl-(.*)", "^rounded-br-(.*)"], ["rounded-b-$1"]],
|
|
34
|
-
[["^rounded-tl-(.*)", "^rounded-bl-(.*)"], ["rounded-l-$1"]],
|
|
35
|
-
[["^rounded-tr-(.*)", "^rounded-br-(.*)"], ["rounded-r-$1"]]
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
[["^scroll-mt-(.*)", "^scroll-mb-(.*)", "^scroll-ml-(.*)", "^scroll-mr-(.*)"], ["scroll-m-$1"]],
|
|
39
|
-
[["^scroll-mx-(.*)", "^scroll-my-(.*)"], ["scroll-m-$1"]],
|
|
40
|
-
[["^scroll-ms-(.*)", "^scroll-me-(.*)"], ["scroll-mx-$1"]],
|
|
41
|
-
[["^scroll-ml-(.*)", "^scroll-mr-(.*)"], ["scroll-mx-$1"]],
|
|
42
|
-
[["^scroll-mt-(.*)", "^scroll-mb-(.*)"], ["scroll-my-$1"]]
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
[["^scroll-pt-(.*)", "^scroll-pb-(.*)", "^scroll-pl-(.*)", "^scroll-pr-(.*)"], ["scroll-p-$1"]],
|
|
46
|
-
[["^scroll-px-(.*)", "^scroll-py-(.*)"], ["scroll-p-$1"]],
|
|
47
|
-
[["^scroll-pl-(.*)", "^scroll-pr-(.*)"], ["scroll-px-$1"]],
|
|
48
|
-
[["^scroll-ps-(.*)", "^scroll-pe-(.*)"], ["scroll-px-$1"]],
|
|
49
|
-
[["^scroll-pt-(.*)", "^scroll-pb-(.*)"], ["scroll-py-$1"]]
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
[["^top-(.*)", "^right-(.*)", "^bottom-(.*)", "^left-(.*)"], ["inset-$1"]],
|
|
53
|
-
[["^inset-x-(.*)", "^inset-y-(.*)"], ["inset-$1"]]
|
|
54
|
-
],
|
|
55
|
-
[
|
|
56
|
-
[["^divide-x-(.*)", "^divide-y-(.*)"], ["divide-$1"]]
|
|
57
|
-
],
|
|
58
|
-
[
|
|
59
|
-
[["^space-x-(.*)", "^space-y-(.*)"], ["space-$1"]]
|
|
60
|
-
],
|
|
61
|
-
[
|
|
62
|
-
[["^gap-x-(.*)", "^gap-y-(.*)"], ["gap-$1"]]
|
|
63
|
-
],
|
|
64
|
-
[
|
|
65
|
-
[["^translate-x-(.*)", "^translate-y-(.*)"], ["translate-$1"]]
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
[["^rotate-x-(.*)", "^rotate-y-(.*)"], ["rotate-$1"]]
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
[["^skew-x-(.*)", "^skew-y-(.*)"], ["skew-$1"]]
|
|
72
|
-
],
|
|
73
|
-
[
|
|
74
|
-
[["^scale-x-(.*)", "^scale-y-(.*)", "^scale-z-(.*)"], ["scale-$1", "scale-3d"]],
|
|
75
|
-
[["^scale-x-(.*)", "^scale-y-(.*)"], ["scale-$1"]]
|
|
76
|
-
],
|
|
77
|
-
[
|
|
78
|
-
[["^content-(.*)", "^justify-content-(.*)"], ["place-content-$1"]],
|
|
79
|
-
[["^items-(.*)", "^justify-items-(.*)"], ["place-items-$1"]],
|
|
80
|
-
[["^self-(.*)", "^justify-self-(.*)"], ["place-self-$1"]]
|
|
81
|
-
],
|
|
82
|
-
[
|
|
83
|
-
[["^overflow-hidden", "^text-ellipsis", "^whitespace-nowrap"], ["truncate"]]
|
|
84
|
-
]
|
|
85
|
-
];
|
|
86
|
-
export function getShorthands(classes) {
|
|
87
|
-
const possibleShorthandClassesGroups = [];
|
|
88
|
-
for (const shorthandGroup of shorthands) {
|
|
89
|
-
const sortedShorthandGroup = shorthandGroup.sort((a, b) => b[0].length - a[0].length);
|
|
90
|
-
const possibleShorthandClasses = [];
|
|
91
|
-
shorthandLoop: for (const [classPatterns, substitutes] of sortedShorthandGroup) {
|
|
92
|
-
const longhands = [];
|
|
93
|
-
const groups = [];
|
|
94
|
-
for (const classPattern of classPatterns) {
|
|
95
|
-
classNameLoop: for (const className of classes) {
|
|
96
|
-
const match = className.match(new RegExp(classPattern));
|
|
97
|
-
if (!match) {
|
|
98
|
-
continue classNameLoop;
|
|
99
|
-
}
|
|
100
|
-
for (let m = 0; m < match.length; m++) {
|
|
101
|
-
if (groups[m] === undefined) {
|
|
102
|
-
groups[m] = match[m];
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if (m === 0) {
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
if (groups[m] !== match[m]) {
|
|
109
|
-
continue shorthandLoop;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
longhands.push(className);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (longhands.length === classPatterns.length) {
|
|
116
|
-
possibleShorthandClasses.push([longhands, substitutes.map(substitute => replacePlaceholders(substitute, groups))]);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (possibleShorthandClasses.length > 0) {
|
|
120
|
-
possibleShorthandClassesGroups.push(possibleShorthandClasses.sort((a, b) => b[0].length - a[0].length));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return possibleShorthandClassesGroups;
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=shorthand-classes.async.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shorthand-classes.async.js","sourceRoot":"","sources":["../../../src/tailwindcss/shorthand-classes.async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAK/D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;KACtC;IACD;QACE,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE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