zyzz 0.0.27 → 0.0.29
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/binding/wasi/wasi-worker.mjs +186 -0
- package/binding/wasi/zyzz.wasi.cjs +2302 -0
- package/binding/wasi/zyzz.wasm32-wasi.wasm +0 -0
- package/binding/zyzz.linux-x64-gnu.node +0 -0
- package/dist/babel/index.d.ts.map +1 -1
- package/dist/babel/index.js +2 -4
- package/dist/babel/index.js.map +1 -1
- package/dist/babel/internal/Compilation.d.ts +0 -1
- package/dist/babel/internal/Compilation.d.ts.map +1 -1
- package/dist/compiler/Graph.d.ts +14 -11
- package/dist/compiler/Graph.d.ts.map +1 -1
- package/dist/compiler/Graph.js +57 -1442
- package/dist/compiler/Graph.js.map +1 -1
- package/dist/compiler/Native.d.ts +7 -9
- package/dist/compiler/Native.d.ts.map +1 -1
- package/dist/compiler/Native.js +12 -716
- package/dist/compiler/Native.js.map +1 -1
- package/dist/compiler/Source.d.ts +122 -24
- package/dist/compiler/Source.d.ts.map +1 -1
- package/dist/compiler/Source.js +10 -1113
- package/dist/compiler/Source.js.map +1 -1
- package/dist/compiler/Transform.d.ts +4 -3
- package/dist/compiler/Transform.d.ts.map +1 -1
- package/dist/compiler/Transform.js +13 -958
- package/dist/compiler/Transform.js.map +1 -1
- package/dist/compiler/internal/AtRules.d.ts +5 -1
- package/dist/compiler/internal/AtRules.d.ts.map +1 -1
- package/dist/compiler/internal/AtRules.js +12 -106
- package/dist/compiler/internal/AtRules.js.map +1 -1
- package/dist/compiler/internal/Context.d.ts +11 -0
- package/dist/compiler/internal/Context.d.ts.map +1 -0
- package/dist/compiler/internal/Context.js +11 -0
- package/dist/compiler/internal/Context.js.map +1 -0
- package/dist/compiler/internal/Results.d.ts +148 -0
- package/dist/compiler/internal/Results.d.ts.map +1 -0
- package/dist/compiler/internal/Results.js +259 -0
- package/dist/compiler/internal/Results.js.map +1 -0
- package/dist/compiler/internal/Syntax.d.ts +0 -2
- package/dist/compiler/internal/Syntax.d.ts.map +1 -1
- package/dist/compiler/internal/Syntax.js +0 -2
- package/dist/compiler/internal/Syntax.js.map +1 -1
- package/dist/compiler/internal/Wire.d.ts +17 -0
- package/dist/compiler/internal/Wire.d.ts.map +1 -0
- package/dist/compiler/internal/Wire.js +795 -0
- package/dist/compiler/internal/Wire.js.map +1 -0
- package/dist/internal/Addon.d.ts +28 -0
- package/dist/internal/Addon.d.ts.map +1 -0
- package/dist/internal/Addon.js +87 -0
- package/dist/internal/Addon.js.map +1 -0
- package/dist/internal/Authoring.d.ts.map +1 -1
- package/dist/internal/Authoring.js +37 -7
- package/dist/internal/Authoring.js.map +1 -1
- package/dist/internal/Configuration.d.ts +6 -1
- package/dist/internal/Configuration.d.ts.map +1 -1
- package/dist/internal/Configuration.js.map +1 -1
- package/dist/internal/Literal.d.ts +5 -2
- package/dist/internal/Literal.d.ts.map +1 -1
- package/dist/internal/Literal.js +7 -2
- package/dist/internal/Literal.js.map +1 -1
- package/dist/internal/Theme.d.ts +4 -0
- package/dist/internal/Theme.d.ts.map +1 -1
- package/dist/internal/Theme.js.map +1 -1
- package/dist/internal/Token.d.ts +2 -1
- package/dist/internal/Token.d.ts.map +1 -1
- package/dist/internal/Token.js +2 -2
- package/dist/internal/Token.js.map +1 -1
- package/dist/internal/Vlq.d.ts +14 -0
- package/dist/internal/Vlq.d.ts.map +1 -0
- package/dist/internal/Vlq.js +47 -0
- package/dist/internal/Vlq.js.map +1 -0
- package/dist/internal/Wasm.d.ts +22 -0
- package/dist/internal/Wasm.d.ts.map +1 -0
- package/dist/internal/Wasm.js +83 -0
- package/dist/internal/Wasm.js.map +1 -0
- package/dist/metro/Graph.d.ts +0 -1
- package/dist/metro/Graph.d.ts.map +1 -1
- package/dist/metro/transformer.d.ts.map +1 -1
- package/dist/metro/transformer.js +0 -1
- package/dist/metro/transformer.js.map +1 -1
- package/dist/next/internal/Project.d.ts.map +1 -1
- package/dist/next/internal/Project.js +2 -5
- package/dist/next/internal/Project.js.map +1 -1
- package/dist/node/Host.d.ts.map +1 -1
- package/dist/node/Host.js +0 -2
- package/dist/node/Host.js.map +1 -1
- package/dist/node/internal/Contracts.d.ts.map +1 -1
- package/dist/node/internal/Contracts.js +3 -7
- package/dist/node/internal/Contracts.js.map +1 -1
- package/dist/node/internal/Snapshot.d.ts +0 -1
- package/dist/node/internal/Snapshot.d.ts.map +1 -1
- package/dist/node/internal/Snapshot.js +0 -6
- package/dist/node/internal/Snapshot.js.map +1 -1
- package/dist/runtime/Composition.d.ts +2 -3
- package/dist/runtime/Composition.d.ts.map +1 -1
- package/dist/runtime/Composition.js +51 -30
- package/dist/runtime/Composition.js.map +1 -1
- package/dist/runtime/Recipe.d.ts.map +1 -1
- package/dist/runtime/Recipe.js +16 -12
- package/dist/runtime/Recipe.js.map +1 -1
- package/dist/styleFunction.d.ts +11 -2
- package/dist/styleFunction.d.ts.map +1 -1
- package/dist/styleFunction.js +3 -1
- package/dist/styleFunction.js.map +1 -1
- package/dist/unplugin/index.d.ts.map +1 -1
- package/dist/unplugin/index.js +3 -6
- package/dist/unplugin/index.js.map +1 -1
- package/dist/vite/index.d.ts +7 -0
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +862 -216
- package/dist/vite/index.js.map +1 -1
- package/dist/web/Css.d.ts +8 -3
- package/dist/web/Css.d.ts.map +1 -1
- package/dist/web/Css.js +5 -721
- package/dist/web/Css.js.map +1 -1
- package/dist/web/internal/Block.d.ts +0 -2
- package/dist/web/internal/Block.d.ts.map +1 -1
- package/dist/web/internal/Block.js +1 -12
- package/dist/web/internal/Block.js.map +1 -1
- package/dist/web/internal/ClassName.d.ts +23 -18
- package/dist/web/internal/ClassName.d.ts.map +1 -1
- package/dist/web/internal/ClassName.js +26 -55
- package/dist/web/internal/ClassName.js.map +1 -1
- package/dist/web/internal/Contributions.d.ts +3 -5
- package/dist/web/internal/Contributions.d.ts.map +1 -1
- package/dist/web/internal/Contributions.js +0 -45
- package/dist/web/internal/Contributions.js.map +1 -1
- package/dist/web/internal/Engine.browser.d.ts +8 -0
- package/dist/web/internal/Engine.browser.d.ts.map +1 -0
- package/dist/web/internal/Engine.browser.js +42 -0
- package/dist/web/internal/Engine.browser.js.map +1 -0
- package/dist/web/internal/Engine.d.ts +9 -0
- package/dist/web/internal/Engine.d.ts.map +1 -0
- package/dist/web/internal/Engine.js +14 -0
- package/dist/web/internal/Engine.js.map +1 -0
- package/dist/web/internal/Themes.d.ts +1 -9
- package/dist/web/internal/Themes.d.ts.map +1 -1
- package/dist/web/internal/Themes.js +3 -221
- package/dist/web/internal/Themes.js.map +1 -1
- package/dist/web/internal/Wasm.generated.d.ts +4 -0
- package/dist/web/internal/Wasm.generated.d.ts.map +1 -0
- package/dist/web/internal/Wasm.generated.js +4 -0
- package/dist/web/internal/Wasm.generated.js.map +1 -0
- package/dist/web/internal/Wire.d.ts +19 -0
- package/dist/web/internal/Wire.d.ts.map +1 -0
- package/dist/web/internal/Wire.js +387 -0
- package/dist/web/internal/Wire.js.map +1 -0
- package/package.json +20 -1
- package/src/babel/index.ts +2 -5
- package/src/babel/internal/Compilation.ts +0 -1
- package/src/compiler/Graph.ts +89 -1930
- package/src/compiler/Native.ts +18 -871
- package/src/compiler/Source.ts +144 -1579
- package/src/compiler/Transform.ts +16 -1312
- package/src/compiler/internal/AtRules.ts +27 -115
- package/src/compiler/internal/Context.ts +11 -0
- package/src/compiler/internal/Results.ts +406 -0
- package/src/compiler/internal/Syntax.ts +0 -3
- package/src/compiler/internal/Wire.ts +1045 -0
- package/src/internal/Addon.ts +118 -0
- package/src/internal/Authoring.ts +53 -18
- package/src/internal/Configuration.ts +38 -1
- package/src/internal/Literal.ts +7 -2
- package/src/internal/Theme.ts +15 -0
- package/src/internal/Token.ts +2 -2
- package/src/internal/Vlq.ts +59 -0
- package/src/internal/Wasm.ts +111 -0
- package/src/metro/transformer.ts +0 -1
- package/src/next/internal/Project.ts +2 -9
- package/src/node/Host.ts +0 -2
- package/src/node/internal/Contracts.ts +3 -7
- package/src/node/internal/Snapshot.ts +0 -8
- package/src/runtime/Composition.ts +48 -25
- package/src/runtime/Recipe.ts +21 -14
- package/src/styleFunction.ts +31 -2
- package/src/unplugin/index.ts +6 -6
- package/src/vite/index.ts +1157 -241
- package/src/web/Css.ts +12 -908
- package/src/web/internal/Block.ts +0 -14
- package/src/web/internal/ClassName.ts +52 -85
- package/src/web/internal/Contributions.ts +3 -59
- package/src/web/internal/Engine.browser.ts +51 -0
- package/src/web/internal/Engine.ts +17 -0
- package/src/web/internal/Themes.ts +3 -279
- package/src/web/internal/Wasm.generated.ts +3 -0
- package/src/web/internal/Wire.ts +466 -0
- package/src/web/internal/wasm.d.ts +9 -0
- package/dist/compiler/internal/Applications.d.ts +0 -55
- package/dist/compiler/internal/Applications.d.ts.map +0 -1
- package/dist/compiler/internal/Applications.js +0 -352
- package/dist/compiler/internal/Applications.js.map +0 -1
- package/dist/compiler/internal/ColorProfiles.d.ts +0 -3
- package/dist/compiler/internal/ColorProfiles.d.ts.map +0 -1
- package/dist/compiler/internal/ColorProfiles.js +0 -84
- package/dist/compiler/internal/ColorProfiles.js.map +0 -1
- package/dist/compiler/internal/CompositionBindings.d.ts +0 -16
- package/dist/compiler/internal/CompositionBindings.d.ts.map +0 -1
- package/dist/compiler/internal/CompositionBindings.js +0 -89
- package/dist/compiler/internal/CompositionBindings.js.map +0 -1
- package/dist/compiler/internal/Compositions.d.ts +0 -37
- package/dist/compiler/internal/Compositions.d.ts.map +0 -1
- package/dist/compiler/internal/Compositions.js +0 -494
- package/dist/compiler/internal/Compositions.js.map +0 -1
- package/dist/compiler/internal/Configurations.d.ts +0 -26
- package/dist/compiler/internal/Configurations.d.ts.map +0 -1
- package/dist/compiler/internal/Configurations.js +0 -259
- package/dist/compiler/internal/Configurations.js.map +0 -1
- package/dist/compiler/internal/Contract.d.ts +0 -30
- package/dist/compiler/internal/Contract.d.ts.map +0 -1
- package/dist/compiler/internal/Contract.js +0 -753
- package/dist/compiler/internal/Contract.js.map +0 -1
- package/dist/compiler/internal/Contributions.d.ts +0 -54
- package/dist/compiler/internal/Contributions.d.ts.map +0 -1
- package/dist/compiler/internal/Contributions.js +0 -1151
- package/dist/compiler/internal/Contributions.js.map +0 -1
- package/dist/compiler/internal/Descriptors.d.ts +0 -15
- package/dist/compiler/internal/Descriptors.d.ts.map +0 -1
- package/dist/compiler/internal/Descriptors.js +0 -192
- package/dist/compiler/internal/Descriptors.js.map +0 -1
- package/dist/compiler/internal/Dynamic.d.ts +0 -14
- package/dist/compiler/internal/Dynamic.d.ts.map +0 -1
- package/dist/compiler/internal/Dynamic.js +0 -175
- package/dist/compiler/internal/Dynamic.js.map +0 -1
- package/dist/compiler/internal/Expression.d.ts +0 -19
- package/dist/compiler/internal/Expression.d.ts.map +0 -1
- package/dist/compiler/internal/Expression.js +0 -164
- package/dist/compiler/internal/Expression.js.map +0 -1
- package/dist/compiler/internal/Functions.d.ts +0 -5
- package/dist/compiler/internal/Functions.d.ts.map +0 -1
- package/dist/compiler/internal/Functions.js +0 -191
- package/dist/compiler/internal/Functions.js.map +0 -1
- package/dist/compiler/internal/Keyframes.d.ts +0 -5
- package/dist/compiler/internal/Keyframes.d.ts.map +0 -1
- package/dist/compiler/internal/Keyframes.js +0 -51
- package/dist/compiler/internal/Keyframes.js.map +0 -1
- package/dist/compiler/internal/Names.d.ts +0 -5
- package/dist/compiler/internal/Names.d.ts.map +0 -1
- package/dist/compiler/internal/Names.js +0 -37
- package/dist/compiler/internal/Names.js.map +0 -1
- package/dist/compiler/internal/NativeBindings.d.ts +0 -72
- package/dist/compiler/internal/NativeBindings.d.ts.map +0 -1
- package/dist/compiler/internal/NativeBindings.js +0 -171
- package/dist/compiler/internal/NativeBindings.js.map +0 -1
- package/dist/compiler/internal/NativeMedia.d.ts +0 -14
- package/dist/compiler/internal/NativeMedia.d.ts.map +0 -1
- package/dist/compiler/internal/NativeMedia.js +0 -287
- package/dist/compiler/internal/NativeMedia.js.map +0 -1
- package/dist/compiler/internal/NativeVars.d.ts +0 -28
- package/dist/compiler/internal/NativeVars.d.ts.map +0 -1
- package/dist/compiler/internal/NativeVars.js +0 -160
- package/dist/compiler/internal/NativeVars.js.map +0 -1
- package/dist/compiler/internal/PackedStyles.d.ts +0 -37
- package/dist/compiler/internal/PackedStyles.d.ts.map +0 -1
- package/dist/compiler/internal/PackedStyles.js +0 -344
- package/dist/compiler/internal/PackedStyles.js.map +0 -1
- package/dist/compiler/internal/Properties.d.ts +0 -5
- package/dist/compiler/internal/Properties.d.ts.map +0 -1
- package/dist/compiler/internal/Properties.js +0 -82
- package/dist/compiler/internal/Properties.js.map +0 -1
- package/dist/compiler/internal/RecipeConditions.d.ts +0 -41
- package/dist/compiler/internal/RecipeConditions.d.ts.map +0 -1
- package/dist/compiler/internal/RecipeConditions.js +0 -82
- package/dist/compiler/internal/RecipeConditions.js.map +0 -1
- package/dist/compiler/internal/RecipePayloads.d.ts +0 -31
- package/dist/compiler/internal/RecipePayloads.d.ts.map +0 -1
- package/dist/compiler/internal/RecipePayloads.js +0 -99
- package/dist/compiler/internal/RecipePayloads.js.map +0 -1
- package/dist/compiler/internal/Recipes.d.ts +0 -32
- package/dist/compiler/internal/Recipes.d.ts.map +0 -1
- package/dist/compiler/internal/Recipes.js +0 -339
- package/dist/compiler/internal/Recipes.js.map +0 -1
- package/dist/compiler/internal/Selectors.d.ts +0 -12
- package/dist/compiler/internal/Selectors.d.ts.map +0 -1
- package/dist/compiler/internal/Selectors.js +0 -268
- package/dist/compiler/internal/Selectors.js.map +0 -1
- package/dist/compiler/internal/Static.d.ts +0 -39
- package/dist/compiler/internal/Static.d.ts.map +0 -1
- package/dist/compiler/internal/Static.js +0 -534
- package/dist/compiler/internal/Static.js.map +0 -1
- package/dist/compiler/internal/Themes.d.ts +0 -190
- package/dist/compiler/internal/Themes.d.ts.map +0 -1
- package/dist/compiler/internal/Themes.js +0 -1577
- package/dist/compiler/internal/Themes.js.map +0 -1
- package/dist/compiler/internal/Vars.d.ts +0 -33
- package/dist/compiler/internal/Vars.d.ts.map +0 -1
- package/dist/compiler/internal/Vars.js +0 -387
- package/dist/compiler/internal/Vars.js.map +0 -1
- package/dist/compiler/internal/ViewTransitions.d.ts +0 -3
- package/dist/compiler/internal/ViewTransitions.d.ts.map +0 -1
- package/dist/compiler/internal/ViewTransitions.js +0 -68
- package/dist/compiler/internal/ViewTransitions.js.map +0 -1
- package/dist/internal/Cascade.d.ts +0 -74
- package/dist/internal/Cascade.d.ts.map +0 -1
- package/dist/internal/Cascade.js +0 -210
- package/dist/internal/Cascade.js.map +0 -1
- package/src/compiler/internal/Applications.ts +0 -554
- package/src/compiler/internal/ColorProfiles.ts +0 -93
- package/src/compiler/internal/CompositionBindings.ts +0 -120
- package/src/compiler/internal/Compositions.ts +0 -678
- package/src/compiler/internal/Configurations.ts +0 -349
- package/src/compiler/internal/Contract.ts +0 -1028
- package/src/compiler/internal/Contributions.ts +0 -1561
- package/src/compiler/internal/Descriptors.ts +0 -242
- package/src/compiler/internal/Dynamic.ts +0 -275
- package/src/compiler/internal/Expression.ts +0 -218
- package/src/compiler/internal/Functions.ts +0 -206
- package/src/compiler/internal/Keyframes.ts +0 -62
- package/src/compiler/internal/Names.ts +0 -48
- package/src/compiler/internal/NativeBindings.ts +0 -235
- package/src/compiler/internal/NativeMedia.ts +0 -342
- package/src/compiler/internal/NativeVars.ts +0 -231
- package/src/compiler/internal/PackedStyles.ts +0 -473
- package/src/compiler/internal/Properties.ts +0 -121
- package/src/compiler/internal/RecipeConditions.ts +0 -139
- package/src/compiler/internal/RecipePayloads.ts +0 -132
- package/src/compiler/internal/Recipes.ts +0 -531
- package/src/compiler/internal/Selectors.ts +0 -339
- package/src/compiler/internal/Static.ts +0 -784
- package/src/compiler/internal/Themes.ts +0 -2398
- package/src/compiler/internal/Vars.ts +0 -516
- package/src/compiler/internal/ViewTransitions.ts +0 -82
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts local theme data and validates its lexical source references.
|
|
3
|
-
* @module
|
|
4
|
-
*/
|
|
5
|
-
import type * as Syntax from './Syntax.js';
|
|
6
|
-
import type { cssFunction } from '../../web/cssFunction.js';
|
|
7
|
-
import type * as RuleReference from '../../internal/RuleReference.js';
|
|
8
|
-
import type * as Ast from '@oxc-project/types';
|
|
9
|
-
import type * as Walker from 'oxc-walker';
|
|
10
|
-
import type * as Binding from '../../internal/Binding.js';
|
|
11
|
-
import * as Token from '../../internal/Token.js';
|
|
12
|
-
import * as Theme from '../../internal/Theme.js';
|
|
13
|
-
import * as Vars from '../../Vars.js';
|
|
14
|
-
import type * as Source from '../Source.js';
|
|
15
|
-
import type * as PackedStyles from './PackedStyles.js';
|
|
16
|
-
/** Local bound-authoring initializer replaced while retaining its inferred type. */
|
|
17
|
-
export type Alias = Call & {
|
|
18
|
-
/** Ordered authoring members replaced in a shared destructuring initializer. */
|
|
19
|
-
readonly bindings?: readonly ('style' | 'variants')[] | undefined;
|
|
20
|
-
/** Whether the initializer supplies destructured authoring bindings. */
|
|
21
|
-
readonly destructured: boolean;
|
|
22
|
-
/** Retains an immutable theme/configuration alias value with an explicit type. */
|
|
23
|
-
readonly retained?: boolean | undefined;
|
|
24
|
-
};
|
|
25
|
-
/** Theme factory span and generated scope key. */
|
|
26
|
-
export type Call = {
|
|
27
|
-
/** Whether native defineConfig retains a typed React Provider. */
|
|
28
|
-
readonly nativeProvider?: boolean | undefined;
|
|
29
|
-
readonly variableSet?: boolean | undefined;
|
|
30
|
-
readonly directVariables?: boolean | undefined;
|
|
31
|
-
readonly variableConfig?: boolean | undefined;
|
|
32
|
-
readonly variableMappings?: Vars.Mappings | false | undefined;
|
|
33
|
-
/** Whether this bound authoring alias declares recipes. */
|
|
34
|
-
readonly recipe?: boolean | undefined;
|
|
35
|
-
/** Static CSS function signature shared during extraction and packed serialization. */
|
|
36
|
-
readonly function?: {
|
|
37
|
-
parameters: readonly cssFunction.Parameter[];
|
|
38
|
-
returns: cssFunction.Syntax;
|
|
39
|
-
} | undefined;
|
|
40
|
-
/** Named stylesheet identity domain. */
|
|
41
|
-
readonly reference?: RuleReference.Kind | undefined;
|
|
42
|
-
/** Canonical defining module for multi-entry variable contracts. */
|
|
43
|
-
readonly variableOwner?: string | undefined;
|
|
44
|
-
readonly output?: 'html' | undefined;
|
|
45
|
-
/** Portable explicit variable references. */
|
|
46
|
-
readonly variables?: Readonly<Record<string, Binding.Reference>> | undefined;
|
|
47
|
-
/** Whether the compiled configuration supplies root controls. */
|
|
48
|
-
readonly appearance?: boolean | undefined;
|
|
49
|
-
/** Whether the compiled configuration supplies initialization. */
|
|
50
|
-
readonly script?: boolean | undefined;
|
|
51
|
-
/** Bound root initialization script export. */
|
|
52
|
-
readonly initialization?: boolean | undefined;
|
|
53
|
-
/** Bound root controls export. */
|
|
54
|
-
readonly root?: boolean | undefined;
|
|
55
|
-
/** Config helper represented by this linked binding. */
|
|
56
|
-
readonly selection?: boolean | undefined;
|
|
57
|
-
/** Legacy packed catalogs have static members but are not callable. */
|
|
58
|
-
/** Legacy packed catalog exposes members but lacks callable-selection capability. */
|
|
59
|
-
readonly catalogOnly?: boolean | undefined;
|
|
60
|
-
/** Validated inline configuration options retained for packed declarations. */
|
|
61
|
-
readonly options?: Readonly<Record<string, unknown>> | undefined;
|
|
62
|
-
/** JSON-encoded member path tuples and their compiled scope keys. */
|
|
63
|
-
readonly members?: Readonly<Record<string, string>> | undefined;
|
|
64
|
-
/** Complete authoring type retained for configuration declarations. */
|
|
65
|
-
readonly type?: string | undefined;
|
|
66
|
-
/** Exclusive source offset. */
|
|
67
|
-
readonly end: number;
|
|
68
|
-
/** Stable module/binding scope key. */
|
|
69
|
-
readonly name: string;
|
|
70
|
-
/** Inclusive source offset. */
|
|
71
|
-
readonly start: number;
|
|
72
|
-
/** Literal token contract retained in rewritten TypeScript type assertions. */
|
|
73
|
-
readonly tokenType: string;
|
|
74
|
-
};
|
|
75
|
-
/** Internal context passed between graph extraction and module rewriting. */
|
|
76
|
-
export declare const context: unique symbol;
|
|
77
|
-
/** Resolved authoring contract within a supplied source graph. */
|
|
78
|
-
export type Link = {
|
|
79
|
-
/** Complete callable style and ownership data for cross-module composition. */
|
|
80
|
-
readonly style?: PackedStyles.Definition | undefined;
|
|
81
|
-
readonly binding: string;
|
|
82
|
-
readonly call: Call;
|
|
83
|
-
readonly definition: Theme.Definition;
|
|
84
|
-
readonly kind: 'config' | 'style' | 'theme' | 'style-reference' | 'animation' | 'rule-reference' | 'variables';
|
|
85
|
-
readonly members?: Readonly<Record<string, Link>> | undefined;
|
|
86
|
-
};
|
|
87
|
-
/** A readonly variable argument consumed by a native React hook. */
|
|
88
|
-
export type VarsRead = {
|
|
89
|
-
/** Owning configuration fallback. */
|
|
90
|
-
readonly defaultVars: string;
|
|
91
|
-
/** Exclusive source offset. */
|
|
92
|
-
readonly end: number;
|
|
93
|
-
/** Stable configuration identity for graph-owned native profiles. */
|
|
94
|
-
readonly owner: string;
|
|
95
|
-
/** Inclusive source offset. */
|
|
96
|
-
readonly start: number;
|
|
97
|
-
/** A standalone definition that does not select a named catalog entry. */
|
|
98
|
-
readonly unnamed: boolean;
|
|
99
|
-
/** Complete compatible variable alternatives. */
|
|
100
|
-
readonly vars: Readonly<Record<string, Theme.Definition>>;
|
|
101
|
-
};
|
|
102
|
-
/** Resolves the variable alternatives a linked configuration or variable set exposes to native hooks. */
|
|
103
|
-
export declare function varsRead(link: Pick<Link, 'call' | 'definition' | 'members'>): Omit<VarsRead, 'end' | 'start'>;
|
|
104
|
-
/** Shared graph data; no filesystem or runtime evaluation is involved. */
|
|
105
|
-
export type Context = {
|
|
106
|
-
/** Canonical identifier names collected during graph validation. */
|
|
107
|
-
readonly identifiers?: ReadonlySet<string> | undefined;
|
|
108
|
-
/** Syntax owned by the current graph compilation. */
|
|
109
|
-
readonly parsed?: ReturnType<typeof Syntax.parse> | undefined;
|
|
110
|
-
/** Packed exports indexed by the importing module's source specifier. */
|
|
111
|
-
readonly libraries?: Readonly<Record<string, Readonly<Record<string, Link>>>> | undefined;
|
|
112
|
-
/** Immutable literal imports resolved from supplied source modules. */
|
|
113
|
-
readonly constants?: Readonly<Record<string, Ast.Node>> | undefined;
|
|
114
|
-
/** Published class lists of imported callable definitions. */
|
|
115
|
-
readonly styleClasses?: Readonly<Record<string, string>> | undefined;
|
|
116
|
-
/** Locally imported stylesheet factories resolved through source barrels. */
|
|
117
|
-
readonly factories?: Readonly<Record<string, string>> | undefined;
|
|
118
|
-
readonly extracted?: Source.extract.ReturnType | undefined;
|
|
119
|
-
readonly links: Readonly<Record<string, Link>>;
|
|
120
|
-
readonly owners?: Readonly<Record<string, {
|
|
121
|
-
call: Call;
|
|
122
|
-
moduleId: string;
|
|
123
|
-
source: string;
|
|
124
|
-
}>> | undefined;
|
|
125
|
-
};
|
|
126
|
-
/** Collects immutable module-level themes without evaluating source. */
|
|
127
|
-
export declare function collect(program: Ast.Program, options: collect.Options): {
|
|
128
|
-
nativeContext(start: number, end: number): Readonly<{
|
|
129
|
-
defaultVars: string;
|
|
130
|
-
vars: Readonly<{
|
|
131
|
-
[k: string]: Theme.Definition<Theme.Tokens, Theme.StyleFactory<Theme.Tokens>, import("../../variants.js").variants.Bound<Theme.Tokens, "react", never, {}>>;
|
|
132
|
-
}>;
|
|
133
|
-
}> | undefined;
|
|
134
|
-
aliases: Alias[];
|
|
135
|
-
appearances: Set<string>;
|
|
136
|
-
calls: Call[];
|
|
137
|
-
exports: Readonly<Record<string, Link>>;
|
|
138
|
-
reference: (node: Extract<Ast.Node, {
|
|
139
|
-
type: 'Identifier' | 'JSXIdentifier';
|
|
140
|
-
}>, parent: Ast.Node, ancestors: readonly Ast.Node[], binding: Walker.ScopeTrackerNode | null, lookup: (name: string) => Walker.ScopeTrackerNode | null) => boolean;
|
|
141
|
-
references: Reference[];
|
|
142
|
-
scopeApplications: Map<number, {
|
|
143
|
-
end: number;
|
|
144
|
-
output: 'html' | undefined;
|
|
145
|
-
}>;
|
|
146
|
-
scripts: Set<string>;
|
|
147
|
-
selections: Set<string>;
|
|
148
|
-
selectionUses: Set<string>;
|
|
149
|
-
staticTokens: Ast.Node[];
|
|
150
|
-
styles: Map<number, {
|
|
151
|
-
call: Ast.CallExpression;
|
|
152
|
-
recipe?: boolean | undefined;
|
|
153
|
-
output?: 'html' | undefined;
|
|
154
|
-
theme: Theme.Definition;
|
|
155
|
-
}>;
|
|
156
|
-
themes: Readonly<Record<string, Theme.Definition<Theme.Tokens, Theme.StyleFactory<Theme.Tokens>, import("../../variants.js").variants.Bound<Theme.Tokens, "react", never, {}>>>>;
|
|
157
|
-
tokens: Map<number, {
|
|
158
|
-
end: number;
|
|
159
|
-
reference: Token.Reference;
|
|
160
|
-
}>;
|
|
161
|
-
varsReads: VarsRead[];
|
|
162
|
-
} | undefined;
|
|
163
|
-
/** Inputs supplied by the source adapter. */
|
|
164
|
-
export declare namespace collect {
|
|
165
|
-
/** Stable module namespace, independent of token values and call offsets. */
|
|
166
|
-
type Options = {
|
|
167
|
-
/** Captures readonly variable arguments for native React hooks. */
|
|
168
|
-
readonly native?: boolean | undefined;
|
|
169
|
-
/** Encoded package/module identity from the source adapter. */
|
|
170
|
-
readonly staticBindings?: ReadonlySet<number> | undefined;
|
|
171
|
-
readonly contributionCalls?: ReadonlySet<number> | undefined;
|
|
172
|
-
readonly namespace: string;
|
|
173
|
-
readonly linked?: boolean | undefined;
|
|
174
|
-
readonly links?: Readonly<Record<string, Link>> | undefined;
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
/** Located failure from unsupported or invalid local theme syntax. */
|
|
178
|
-
export declare class InvalidError extends Error {
|
|
179
|
-
/** Retains a source span for the public extractor diagnostic. */
|
|
180
|
-
constructor(message: string, node: Pick<Ast.Node, 'end' | 'start'>);
|
|
181
|
-
/** Exclusive source offset. */
|
|
182
|
-
readonly end: number;
|
|
183
|
-
/** Namespaced diagnostic identity. */
|
|
184
|
-
name: string;
|
|
185
|
-
/** Inclusive source offset. */
|
|
186
|
-
readonly start: number;
|
|
187
|
-
}
|
|
188
|
-
/** Scope property read replaced with a compiled constant. */
|
|
189
|
-
export type Reference = Pick<Call, 'end' | 'name' | 'start'>;
|
|
190
|
-
//# sourceMappingURL=Themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Themes.d.ts","sourceRoot":"","sources":["../../../src/compiler/internal/Themes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,KAAK,aAAa,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,KAAK,GAAG,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,KAAK,OAAO,MAAM,2BAA2B,CAAA;AAIzD,OAAO,KAAK,KAAK,MAAM,yBAAyB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,yBAAyB,CAAA;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAEtD,oFAAoF;AACpF,MAAM,MAAM,KAAK,GAAG,IAAI,GAAG;IACzB,gFAAgF;IAChF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,UAAU,CAAC,EAAE,GAAG,SAAS,CAAA;IACjE,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACxC,CAAA;AAED,kDAAkD;AAClD,MAAM,MAAM,IAAI,GAAG;IACjB,kEAAkE;IAClE,QAAQ,CAAC,cAAc,CAAC,EA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