@roblawn/devtool-runtime 0.1.0-alpha.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.
Files changed (161) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +7 -0
  3. package/dist/ak/ak.cssState.transform.d.ts +2 -0
  4. package/dist/ak/ak.cssState.transform.js +60 -0
  5. package/dist/ak/ak.cssState.types.d.ts +2 -0
  6. package/dist/ak/ak.cssState.types.js +1 -0
  7. package/dist/ak/ak.responsive.types.d.ts +18 -0
  8. package/dist/ak/ak.responsive.types.js +1 -0
  9. package/dist/ak/ak.tokens.d.ts +10 -0
  10. package/dist/ak/ak.tokens.js +10 -0
  11. package/dist/ak/ak.tokens.registry.d.ts +10 -0
  12. package/dist/ak/ak.tokens.registry.js +45 -0
  13. package/dist/ak/authoring-surface.shared.d.ts +31 -0
  14. package/dist/ak/authoring-surface.shared.js +185 -0
  15. package/dist/ak/configured-core.shared.d.ts +7 -0
  16. package/dist/ak/configured-core.shared.js +16 -0
  17. package/dist/ak/configured-surfaces.shared.d.ts +67 -0
  18. package/dist/ak/configured-surfaces.shared.js +144 -0
  19. package/dist/ak/index.d.ts +16 -0
  20. package/dist/ak/index.js +16 -0
  21. package/dist/ak/project-entry.d.ts +57 -0
  22. package/dist/ak/project-entry.js +260 -0
  23. package/dist/ak/project-surface-adapters.shared.d.ts +33 -0
  24. package/dist/ak/project-surface-adapters.shared.js +83 -0
  25. package/dist/ak/public-entry.shared.d.ts +16 -0
  26. package/dist/ak/public-entry.shared.js +18 -0
  27. package/dist/ak/resolved-layout-marker.shared.d.ts +3 -0
  28. package/dist/ak/resolved-layout-marker.shared.js +19 -0
  29. package/dist/ak/runtime-surface.shared.d.ts +31 -0
  30. package/dist/ak/runtime-surface.shared.js +221 -0
  31. package/dist/ak/style-execution.d.ts +13 -0
  32. package/dist/ak/style-execution.js +91 -0
  33. package/dist/ak/style-schema.d.ts +16 -0
  34. package/dist/ak/style-schema.js +6 -0
  35. package/dist/ak/useAk.shared.d.ts +3 -0
  36. package/dist/ak/useAk.shared.js +36 -0
  37. package/dist/authoring/authoringEffectKinds.d.ts +2 -0
  38. package/dist/authoring/authoringEffectKinds.js +48 -0
  39. package/dist/authoring/index.d.ts +1 -0
  40. package/dist/authoring/index.js +1 -0
  41. package/dist/cms/CMSPresenterSchemaTypes.d.ts +108 -0
  42. package/dist/cms/CMSPresenterSchemaTypes.js +6 -0
  43. package/dist/cms/CMSSchema.d.ts +27 -0
  44. package/dist/cms/CMSSchema.js +89 -0
  45. package/dist/cms/CMSSchemaTypes.d.ts +141 -0
  46. package/dist/cms/CMSSchemaTypes.js +1 -0
  47. package/dist/cms/index.d.ts +3 -0
  48. package/dist/cms/index.js +1 -0
  49. package/dist/design-system/DesignSystemSnapshotFactory.d.ts +34 -0
  50. package/dist/design-system/DesignSystemSnapshotFactory.js +38 -0
  51. package/dist/design-system/ProjectDesignSystemFactory.d.ts +39 -0
  52. package/dist/design-system/ProjectDesignSystemFactory.js +32 -0
  53. package/dist/design-system/index.d.ts +8 -0
  54. package/dist/design-system/index.js +7 -0
  55. package/dist/design-system/ops/ops.types.d.ts +22 -0
  56. package/dist/design-system/ops/ops.types.js +1 -0
  57. package/dist/design-system/resolvers/ds.resolvers.d.ts +3 -0
  58. package/dist/design-system/resolvers/ds.resolvers.js +24 -0
  59. package/dist/design-system/resolvers/ds.responsive.d.ts +12 -0
  60. package/dist/design-system/resolvers/ds.responsive.js +28 -0
  61. package/dist/design-system/tokens/TokenSchemas.types.d.ts +48 -0
  62. package/dist/design-system/tokens/TokenSchemas.types.js +3 -0
  63. package/dist/design-system/tokens/coreTokenFamilies.types.d.ts +2 -0
  64. package/dist/design-system/tokens/coreTokenFamilies.types.js +1 -0
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +1 -0
  67. package/dist/layout/index.d.ts +1 -0
  68. package/dist/layout/index.js +1 -0
  69. package/dist/layout/layoutRuntime.d.ts +12 -0
  70. package/dist/layout/layoutRuntime.js +88 -0
  71. package/dist/schema/LayoutBindingEditorPolicyMetadata.d.ts +7 -0
  72. package/dist/schema/LayoutBindingEditorPolicyMetadata.js +19 -0
  73. package/dist/schema/LayoutBindingEditorSectionMetadata.d.ts +7 -0
  74. package/dist/schema/LayoutBindingEditorSectionMetadata.js +19 -0
  75. package/dist/schema/LayoutDefinitionMeta.d.ts +54 -0
  76. package/dist/schema/LayoutDefinitionMeta.js +1 -0
  77. package/dist/schema/LayoutFieldIntentMetadata.d.ts +22 -0
  78. package/dist/schema/LayoutFieldIntentMetadata.js +38 -0
  79. package/dist/schema/LayoutFieldUiMetadata.d.ts +30 -0
  80. package/dist/schema/LayoutFieldUiMetadata.js +19 -0
  81. package/dist/schema/LayoutSchema.d.ts +39 -0
  82. package/dist/schema/LayoutSchema.js +53 -0
  83. package/dist/schema/LayoutVariantBindings.d.ts +55 -0
  84. package/dist/schema/LayoutVariantBindings.js +107 -0
  85. package/dist/schema/SlotSchema.d.ts +10 -0
  86. package/dist/schema/SlotSchema.js +3 -0
  87. package/dist/schema/StyleSchema.d.ts +16 -0
  88. package/dist/schema/StyleSchema.js +6 -0
  89. package/dist/schema/index.d.ts +9 -0
  90. package/dist/schema/index.js +9 -0
  91. package/dist/theme-contract/CompositeFieldOpByFamily.d.ts +126 -0
  92. package/dist/theme-contract/CompositeFieldOpByFamily.js +126 -0
  93. package/dist/theme-contract/index.d.ts +7 -0
  94. package/dist/theme-contract/index.js +7 -0
  95. package/dist/theme-contract/ops/coreOps.d.ts +697 -0
  96. package/dist/theme-contract/ops/coreOps.js +748 -0
  97. package/dist/theme-contract/ops/delegateValidation.types.d.ts +46 -0
  98. package/dist/theme-contract/ops/delegateValidation.types.js +4 -0
  99. package/dist/theme-contract/ops/emitters.d.ts +24 -0
  100. package/dist/theme-contract/ops/emitters.js +151 -0
  101. package/dist/theme-contract/ops/op.config.d.ts +711 -0
  102. package/dist/theme-contract/ops/op.config.js +15 -0
  103. package/dist/theme-contract/tokens/coreTokenFamilies.d.ts +9 -0
  104. package/dist/theme-contract/tokens/coreTokenFamilies.js +6 -0
  105. package/dist/theme-contract/tokens/cssLengthConversion.d.ts +2 -0
  106. package/dist/theme-contract/tokens/cssLengthConversion.js +39 -0
  107. package/dist/theme-contract/tokens/defineProjectTokenFamilySchema.d.ts +1 -0
  108. package/dist/theme-contract/tokens/defineProjectTokenFamilySchema.js +1 -0
  109. package/dist/theme-contract/tokens/defineTokenFamilySchema.d.ts +3 -0
  110. package/dist/theme-contract/tokens/defineTokenFamilySchema.js +5 -0
  111. package/dist/theme-contract/tokens/runtimeTokenFamilies.types.d.ts +5 -0
  112. package/dist/theme-contract/tokens/runtimeTokenFamilies.types.js +1 -0
  113. package/dist/theme-contract/tokens/schemas/aspect.token.schema.d.ts +20 -0
  114. package/dist/theme-contract/tokens/schemas/aspect.token.schema.js +19 -0
  115. package/dist/theme-contract/tokens/schemas/blur.token.schema.d.ts +21 -0
  116. package/dist/theme-contract/tokens/schemas/blur.token.schema.js +19 -0
  117. package/dist/theme-contract/tokens/schemas/border.token.schema.d.ts +54 -0
  118. package/dist/theme-contract/tokens/schemas/border.token.schema.js +43 -0
  119. package/dist/theme-contract/tokens/schemas/breakpoint.token.schema.d.ts +19 -0
  120. package/dist/theme-contract/tokens/schemas/breakpoint.token.schema.js +18 -0
  121. package/dist/theme-contract/tokens/schemas/color.token.schema.d.ts +24 -0
  122. package/dist/theme-contract/tokens/schemas/color.token.schema.js +23 -0
  123. package/dist/theme-contract/tokens/schemas/container.token.schema.d.ts +26 -0
  124. package/dist/theme-contract/tokens/schemas/container.token.schema.js +30 -0
  125. package/dist/theme-contract/tokens/schemas/font.token.schema.d.ts +17 -0
  126. package/dist/theme-contract/tokens/schemas/font.token.schema.js +15 -0
  127. package/dist/theme-contract/tokens/schemas/fontWeight.token.schema.d.ts +24 -0
  128. package/dist/theme-contract/tokens/schemas/fontWeight.token.schema.js +22 -0
  129. package/dist/theme-contract/tokens/schemas/leading.token.schema.d.ts +20 -0
  130. package/dist/theme-contract/tokens/schemas/leading.token.schema.js +18 -0
  131. package/dist/theme-contract/tokens/schemas/radius.token.schema.d.ts +23 -0
  132. package/dist/theme-contract/tokens/schemas/radius.token.schema.js +22 -0
  133. package/dist/theme-contract/tokens/schemas/shadow.token.schema.d.ts +108 -0
  134. package/dist/theme-contract/tokens/schemas/shadow.token.schema.js +73 -0
  135. package/dist/theme-contract/tokens/schemas/size.token.schema.d.ts +20 -0
  136. package/dist/theme-contract/tokens/schemas/size.token.schema.js +19 -0
  137. package/dist/theme-contract/tokens/schemas/spacing.token.schema.d.ts +21 -0
  138. package/dist/theme-contract/tokens/schemas/spacing.token.schema.js +20 -0
  139. package/dist/theme-contract/tokens/schemas/text.token.schema.d.ts +87 -0
  140. package/dist/theme-contract/tokens/schemas/text.token.schema.js +30 -0
  141. package/dist/theme-contract/tokens/schemas/textSize.token.schema.d.ts +28 -0
  142. package/dist/theme-contract/tokens/schemas/textSize.token.schema.js +27 -0
  143. package/dist/theme-contract/tokens/schemas/title.token.schema.d.ts +85 -0
  144. package/dist/theme-contract/tokens/schemas/title.token.schema.js +30 -0
  145. package/dist/theme-contract/tokens/schemas/tracking.token.schema.d.ts +20 -0
  146. package/dist/theme-contract/tokens/schemas/tracking.token.schema.js +18 -0
  147. package/dist/theme-contract/tokens/schemas/zIndex.token.schema.d.ts +18 -0
  148. package/dist/theme-contract/tokens/schemas/zIndex.token.schema.js +17 -0
  149. package/dist/theme-contract/tokens/tokens.schema.d.ts +531 -0
  150. package/dist/theme-contract/tokens/tokens.schema.js +32 -0
  151. package/dist/types/LayoutResolvedTs.types.d.ts +18 -0
  152. package/dist/types/LayoutResolvedTs.types.js +1 -0
  153. package/dist/types/authoredTree.types.d.ts +112 -0
  154. package/dist/types/authoredTree.types.js +1 -0
  155. package/dist/types/blockRegistry.types.d.ts +37 -0
  156. package/dist/types/blockRegistry.types.js +1 -0
  157. package/dist/types/index.d.ts +4 -0
  158. package/dist/types/index.js +1 -0
  159. package/dist/types/layout.types.d.ts +30 -0
  160. package/dist/types/layout.types.js +1 -0
  161. package/package.json +65 -0
@@ -0,0 +1,531 @@
1
+ export declare const TOKEN_SCHEMAS: readonly [{
2
+ readonly name: "aspect";
3
+ readonly description: "Aspect ratio presets.";
4
+ readonly semanticType: "aspect-ratio";
5
+ readonly responsive: false;
6
+ readonly order: {
7
+ readonly type: "custom";
8
+ };
9
+ readonly initialTokens: {
10
+ readonly auto: "auto";
11
+ readonly square: "1 / 1";
12
+ readonly video: "16 / 9";
13
+ readonly '16-9': "16 / 9";
14
+ readonly '4-3': "4 / 3";
15
+ readonly '3-2': "3 / 2";
16
+ readonly '1-1': "1 / 1";
17
+ };
18
+ readonly toCssVarName: (tokenKey: string) => string;
19
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
20
+ }, {
21
+ readonly name: "borderStyle";
22
+ readonly description: "border style tokens.";
23
+ readonly semanticType: "string";
24
+ readonly responsive: false;
25
+ readonly editorVisible: false;
26
+ readonly order: {
27
+ readonly type: "custom";
28
+ };
29
+ readonly initialTokens: {
30
+ readonly none: "none";
31
+ readonly solid: "solid";
32
+ readonly dashed: "dashed";
33
+ readonly dotted: "dotted";
34
+ readonly double: "double";
35
+ readonly hidden: "hidden";
36
+ };
37
+ readonly toCssVarName: (tokenKey: string) => string;
38
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
39
+ }, {
40
+ readonly name: "border";
41
+ readonly description: "Border composite tokens (color + width + style).";
42
+ readonly semanticType: "composite";
43
+ readonly responsive: false;
44
+ readonly order: {
45
+ readonly type: "custom";
46
+ };
47
+ readonly fields: readonly [{
48
+ readonly key: "color";
49
+ readonly op: "borderColor";
50
+ readonly description: "Border color token";
51
+ }, {
52
+ readonly key: "width";
53
+ readonly op: "borderWidth";
54
+ readonly description: "Border width token";
55
+ }, {
56
+ readonly key: "style";
57
+ readonly op: "borderStyle";
58
+ readonly description: "Border style token";
59
+ }];
60
+ readonly defaults: {
61
+ readonly color: "primary";
62
+ readonly width: 2;
63
+ readonly style: "solid";
64
+ };
65
+ readonly initialTokens: {
66
+ readonly default: {
67
+ readonly color: "primary";
68
+ readonly width: 2;
69
+ readonly style: "solid";
70
+ };
71
+ };
72
+ }, {
73
+ readonly name: "breakpoint";
74
+ readonly description: "Tailwind responsive breakpoints (min-width).";
75
+ readonly semanticType: "px";
76
+ readonly responsive: false;
77
+ readonly order: {
78
+ readonly type: "numeric";
79
+ readonly direction: "asc";
80
+ };
81
+ readonly initialTokens: {
82
+ readonly sm: "640px";
83
+ readonly md: "768px";
84
+ readonly lg: "1024px";
85
+ readonly xl: "1280px";
86
+ readonly '2xl': "1536px";
87
+ };
88
+ readonly toCssVarName: (tokenKey: string) => string;
89
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
90
+ }, {
91
+ readonly name: "color";
92
+ readonly description: "Design system color tokens.";
93
+ readonly semanticType: "css-color";
94
+ readonly responsive: false;
95
+ readonly tokenDescriptions: true;
96
+ readonly order: {
97
+ readonly type: "custom";
98
+ };
99
+ readonly initialTokens: {
100
+ readonly primary: "#000000";
101
+ readonly secondary: "#ffffff";
102
+ readonly muted: "#ffffff";
103
+ readonly accent: "#ffffff";
104
+ readonly success: "#ffffff";
105
+ readonly warning: "#fbf9f9";
106
+ readonly destructive: "#e63946";
107
+ readonly foreground: "#101010";
108
+ readonly background: "#ffffff";
109
+ readonly subtle: "#fcfcfd";
110
+ };
111
+ readonly toCssVarName: (tokenKey: string) => string;
112
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
113
+ }, {
114
+ readonly name: "container";
115
+ readonly description: "Named size tokens used for w/h/min*/max* (container scale + specials).";
116
+ readonly semanticType: "px";
117
+ readonly responsive: true;
118
+ readonly order: {
119
+ readonly type: "numeric";
120
+ readonly direction: "asc";
121
+ };
122
+ readonly initialTokens: {
123
+ readonly full: "full";
124
+ readonly screen: "screen";
125
+ readonly fit: "fit";
126
+ readonly min: "min";
127
+ readonly max: "max";
128
+ readonly xs: "320px";
129
+ readonly sm: "384px";
130
+ readonly md: "448px";
131
+ readonly lg: "512px";
132
+ readonly xl: "576px";
133
+ readonly '2xl': "672px";
134
+ };
135
+ readonly toCssVarName: (tokenKey: string) => string | null;
136
+ readonly toCssVarAliases: (tokenKey: string) => string[];
137
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
138
+ }, {
139
+ readonly name: "font";
140
+ readonly description: "Font family tokens.";
141
+ readonly semanticType: "string";
142
+ readonly responsive: true;
143
+ readonly order: {
144
+ readonly type: "alpha";
145
+ readonly direction: "asc";
146
+ };
147
+ readonly initialTokens: {
148
+ readonly body: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif";
149
+ readonly display: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif";
150
+ readonly mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace";
151
+ };
152
+ readonly toCssVarName: (tokenKey: string) => string;
153
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
154
+ }, {
155
+ readonly name: "fontWeight";
156
+ readonly description: "Font weight scale.";
157
+ readonly semanticType: "number";
158
+ readonly responsive: true;
159
+ readonly editorVisible: false;
160
+ readonly order: {
161
+ readonly type: "numeric";
162
+ readonly direction: "asc";
163
+ };
164
+ readonly initialTokens: {
165
+ readonly thin: "100";
166
+ readonly extralight: "200";
167
+ readonly light: "300";
168
+ readonly normal: "400";
169
+ readonly medium: "500";
170
+ readonly semibold: "600";
171
+ readonly bold: "700";
172
+ readonly extrabold: "800";
173
+ readonly black: "900";
174
+ };
175
+ readonly toCssVarName: (tokenKey: string) => string;
176
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
177
+ }, {
178
+ readonly name: "radius";
179
+ readonly description: "Border radius tokens.";
180
+ readonly semanticType: "px";
181
+ readonly responsive: true;
182
+ readonly order: {
183
+ readonly type: "numeric";
184
+ readonly direction: "asc";
185
+ };
186
+ readonly initialTokens: {
187
+ readonly none: "0px";
188
+ readonly xs: "2px";
189
+ readonly sm: "4px";
190
+ readonly md: "6px";
191
+ readonly lg: "8px";
192
+ readonly xl: "12px";
193
+ readonly '2xl': "16px";
194
+ readonly '3xl': "24px";
195
+ readonly '4xl': "32px";
196
+ };
197
+ readonly toCssVarName: (tokenKey: string) => string;
198
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
199
+ }, {
200
+ readonly name: "shadow";
201
+ readonly description: "Box-shadow presets.";
202
+ readonly semanticType: "composite";
203
+ readonly responsive: false;
204
+ readonly order: {
205
+ readonly type: "custom";
206
+ };
207
+ readonly fields: readonly [{
208
+ readonly key: "compose";
209
+ readonly op: "shadowCompose";
210
+ readonly description: "Shadow composition mode";
211
+ }, {
212
+ readonly key: "offsetX1";
213
+ readonly op: "shadowX1";
214
+ readonly description: "Layer 1 horizontal offset token";
215
+ }, {
216
+ readonly key: "offsetY1";
217
+ readonly op: "shadowY1";
218
+ readonly description: "Layer 1 vertical offset token";
219
+ }, {
220
+ readonly key: "blur1";
221
+ readonly op: "shadowBlur1";
222
+ readonly description: "Layer 1 blur token";
223
+ }, {
224
+ readonly key: "spread1";
225
+ readonly op: "shadowSpread1";
226
+ readonly description: "Layer 1 spread token";
227
+ }, {
228
+ readonly key: "opacity1";
229
+ readonly op: "shadowOpacity1";
230
+ readonly description: "Layer 1 opacity token";
231
+ }, {
232
+ readonly key: "offsetX2";
233
+ readonly op: "shadowX2";
234
+ readonly description: "Layer 2 horizontal offset token";
235
+ }, {
236
+ readonly key: "offsetY2";
237
+ readonly op: "shadowY2";
238
+ readonly description: "Layer 2 vertical offset token";
239
+ }, {
240
+ readonly key: "blur2";
241
+ readonly op: "shadowBlur2";
242
+ readonly description: "Layer 2 blur token";
243
+ }, {
244
+ readonly key: "spread2";
245
+ readonly op: "shadowSpread2";
246
+ readonly description: "Layer 2 spread token";
247
+ }, {
248
+ readonly key: "opacity2";
249
+ readonly op: "shadowOpacity2";
250
+ readonly description: "Layer 2 opacity token";
251
+ }];
252
+ readonly defaults: {
253
+ readonly compose: "single";
254
+ readonly offsetX1: 0;
255
+ readonly offsetY1: 1;
256
+ readonly blur1: 2;
257
+ readonly spread1: 0;
258
+ readonly opacity1: 10;
259
+ readonly offsetX2: 0;
260
+ readonly offsetY2: 0;
261
+ readonly blur2: 0;
262
+ readonly spread2: 0;
263
+ readonly opacity2: 0;
264
+ };
265
+ readonly initialTokens: {
266
+ readonly light: {
267
+ readonly compose: "double";
268
+ readonly offsetY1: 4;
269
+ readonly blur1: 6;
270
+ readonly spread1: -1;
271
+ readonly opacity1: 10;
272
+ readonly offsetY2: 2;
273
+ readonly blur2: 4;
274
+ readonly spread2: -2;
275
+ readonly opacity2: 10;
276
+ };
277
+ readonly strong: {
278
+ readonly compose: "double";
279
+ readonly offsetY1: 20;
280
+ readonly blur1: 25;
281
+ readonly spread1: -5;
282
+ readonly opacity1: 10;
283
+ readonly offsetY2: 8;
284
+ readonly blur2: 10;
285
+ readonly spread2: -6;
286
+ readonly opacity2: 10;
287
+ };
288
+ };
289
+ }, {
290
+ readonly name: "shadowCompose";
291
+ readonly description: "Shadow composition mode tokens.";
292
+ readonly semanticType: "string";
293
+ readonly responsive: false;
294
+ readonly editorVisible: false;
295
+ readonly order: {
296
+ readonly type: "custom";
297
+ };
298
+ readonly initialTokens: {
299
+ readonly none: "none";
300
+ readonly single: "single";
301
+ readonly double: "double";
302
+ };
303
+ readonly toCssVarName: (tokenKey: string) => string;
304
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
305
+ }, {
306
+ readonly name: "size";
307
+ readonly description: "Component sizing scale (used for width/height/min/max via CSS vars).";
308
+ readonly semanticType: "px";
309
+ readonly responsive: true;
310
+ readonly order: {
311
+ readonly type: "numeric";
312
+ readonly direction: "asc";
313
+ };
314
+ readonly initialTokens: {
315
+ readonly xs: "320px";
316
+ readonly sm: "384px";
317
+ readonly md: "448px";
318
+ readonly lg: "512px";
319
+ readonly xl: "576px";
320
+ readonly '2xl': "672px";
321
+ };
322
+ readonly toCssVarName: (tokenKey: string) => string;
323
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
324
+ }, {
325
+ readonly name: "spacing";
326
+ readonly description: "Spacing scale.";
327
+ readonly semanticType: "px";
328
+ readonly responsive: true;
329
+ readonly order: {
330
+ readonly type: "numeric";
331
+ readonly direction: "asc";
332
+ };
333
+ readonly initialTokens: {
334
+ readonly zero: "0px";
335
+ readonly '2xs': "2px";
336
+ readonly xs: "4px";
337
+ readonly sm: "8px";
338
+ readonly md: "12px";
339
+ readonly lg: "16px";
340
+ readonly xl: "24px";
341
+ };
342
+ readonly toCssVarName: (tokenKey: string) => string;
343
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
344
+ }, {
345
+ readonly name: "text";
346
+ readonly description: "Text composite tokens (font family, size, weight, line height, and letter spacing).";
347
+ readonly semanticType: "composite";
348
+ readonly responsive: true;
349
+ readonly order: {
350
+ readonly type: "custom";
351
+ };
352
+ readonly fields: readonly [{
353
+ readonly key: "family";
354
+ readonly op: "fontFamily";
355
+ readonly description: "Font family token";
356
+ }, {
357
+ readonly key: "size";
358
+ readonly op: "textSize";
359
+ readonly description: "Font size value";
360
+ }, {
361
+ readonly key: "weight";
362
+ readonly op: "fontWeight";
363
+ readonly description: "Font weight token";
364
+ }, {
365
+ readonly key: "leading";
366
+ readonly op: "leading";
367
+ readonly description: "Line height value";
368
+ }, {
369
+ readonly key: "tracking";
370
+ readonly op: "tracking";
371
+ readonly description: "Letter spacing value";
372
+ }];
373
+ readonly defaults: {
374
+ readonly family: "body";
375
+ readonly weight: "normal";
376
+ readonly leading: 1.5;
377
+ readonly tracking: 0;
378
+ };
379
+ readonly initialTokens: {
380
+ readonly 'subtitle-1': {
381
+ readonly family: "body";
382
+ readonly size: 20;
383
+ readonly weight: "semibold";
384
+ readonly leading: 1.375;
385
+ readonly tracking: 0;
386
+ };
387
+ readonly 'subtitle-2': {
388
+ readonly family: "body";
389
+ readonly size: 18;
390
+ readonly weight: "semibold";
391
+ readonly leading: 1.375;
392
+ readonly tracking: 0;
393
+ };
394
+ readonly 'body-1': {
395
+ readonly family: "body";
396
+ readonly size: 16;
397
+ readonly weight: "normal";
398
+ readonly leading: 1.375;
399
+ readonly tracking: 0;
400
+ };
401
+ readonly 'body-2': {
402
+ readonly family: "body";
403
+ readonly size: 14;
404
+ readonly weight: "normal";
405
+ readonly leading: 1.375;
406
+ readonly tracking: 0;
407
+ };
408
+ readonly caption: {
409
+ readonly family: "body";
410
+ readonly size: 12;
411
+ readonly weight: "medium";
412
+ readonly leading: 1.375;
413
+ readonly tracking: 0;
414
+ };
415
+ readonly button: {
416
+ readonly family: "body";
417
+ readonly size: 12;
418
+ readonly weight: "medium";
419
+ readonly leading: 1.12;
420
+ readonly tracking: 0;
421
+ };
422
+ readonly tiny: {
423
+ readonly family: "body";
424
+ readonly size: 10;
425
+ readonly weight: "normal";
426
+ readonly leading: 1.12;
427
+ readonly tracking: 0;
428
+ };
429
+ };
430
+ }, {
431
+ readonly name: "title";
432
+ readonly description: "Title composite tokens (font family, size, weight, line height, and letter spacing).";
433
+ readonly semanticType: "composite";
434
+ readonly responsive: true;
435
+ readonly order: {
436
+ readonly type: "alpha";
437
+ readonly direction: "asc";
438
+ };
439
+ readonly fields: readonly [{
440
+ readonly key: "family";
441
+ readonly op: "fontFamily";
442
+ readonly description: "Font family token";
443
+ }, {
444
+ readonly key: "size";
445
+ readonly op: "textSize";
446
+ readonly description: "Font size value";
447
+ }, {
448
+ readonly key: "weight";
449
+ readonly op: "fontWeight";
450
+ readonly description: "Font weight token";
451
+ }, {
452
+ readonly key: "leading";
453
+ readonly op: "leading";
454
+ readonly description: "Line height value";
455
+ }, {
456
+ readonly key: "tracking";
457
+ readonly op: "tracking";
458
+ readonly description: "Letter spacing value";
459
+ }, {
460
+ readonly key: "transform";
461
+ readonly op: "textTransform";
462
+ readonly description: "Text capitalisation";
463
+ }];
464
+ readonly defaults: {
465
+ readonly family: "display";
466
+ readonly weight: "bold";
467
+ readonly leading: 1.375;
468
+ readonly tracking: -0.025;
469
+ };
470
+ readonly initialTokens: {
471
+ readonly h1: {
472
+ readonly family: "display";
473
+ readonly size: 56;
474
+ readonly weight: "bold";
475
+ readonly leading: 1;
476
+ readonly tracking: -0.025;
477
+ };
478
+ readonly h2: {
479
+ readonly family: "display";
480
+ readonly size: 48;
481
+ readonly weight: "semibold";
482
+ readonly leading: 1;
483
+ readonly tracking: -0.025;
484
+ };
485
+ readonly h3: {
486
+ readonly family: "display";
487
+ readonly size: 32;
488
+ readonly weight: "bold";
489
+ readonly leading: 1.12;
490
+ readonly tracking: -0.025;
491
+ };
492
+ readonly h4: {
493
+ readonly family: "display";
494
+ readonly size: 24;
495
+ readonly weight: "bold";
496
+ readonly leading: 1.12;
497
+ readonly tracking: 0;
498
+ };
499
+ readonly h5: {
500
+ readonly family: "display";
501
+ readonly size: 20;
502
+ readonly weight: "semibold";
503
+ readonly leading: 1.12;
504
+ readonly tracking: 0;
505
+ };
506
+ readonly h6: {
507
+ readonly family: "display";
508
+ readonly size: 18;
509
+ readonly weight: "semibold";
510
+ readonly leading: 1.12;
511
+ readonly tracking: 0;
512
+ };
513
+ };
514
+ }, {
515
+ readonly name: "zIndex";
516
+ readonly description: "Z-Index presets.";
517
+ readonly semanticType: "number";
518
+ readonly responsive: false;
519
+ readonly order: {
520
+ readonly type: "numeric";
521
+ };
522
+ readonly initialTokens: {
523
+ readonly default: "1";
524
+ readonly raised: "10";
525
+ readonly overlay: "100";
526
+ readonly modal: "200";
527
+ readonly topmost: "1000";
528
+ };
529
+ readonly toCssVarName: (tokenKey: string) => string;
530
+ readonly toCssVarValue: (_tokenKey: string, tokenValue: string) => string;
531
+ }];
@@ -0,0 +1,32 @@
1
+ import { aspectTokenSchema } from './schemas/aspect.token.schema.js';
2
+ import { borderStyleTokenSchema, borderTokenSchema } from './schemas/border.token.schema.js';
3
+ import { breakpointTokenSchema } from './schemas/breakpoint.token.schema.js';
4
+ import { colorTokenSchema } from './schemas/color.token.schema.js';
5
+ import { containerTokenSchema } from './schemas/container.token.schema.js';
6
+ import { fontTokenSchema } from './schemas/font.token.schema.js';
7
+ import { fontWeightTokenSchema } from './schemas/fontWeight.token.schema.js';
8
+ import { radiusTokenSchema } from './schemas/radius.token.schema.js';
9
+ import { shadowComposeTokenSchema, shadowTokenSchema } from './schemas/shadow.token.schema.js';
10
+ import { sizeTokenSchema } from './schemas/size.token.schema.js';
11
+ import { spacingTokenSchema } from './schemas/spacing.token.schema.js';
12
+ import { textTokenSchema } from './schemas/text.token.schema.js';
13
+ import { zIndexTokenSchema } from './schemas/zIndex.token.schema.js';
14
+ import { titleTokenSchema } from './schemas/title.token.schema.js';
15
+ export const TOKEN_SCHEMAS = [
16
+ aspectTokenSchema,
17
+ borderStyleTokenSchema,
18
+ borderTokenSchema,
19
+ breakpointTokenSchema,
20
+ colorTokenSchema,
21
+ containerTokenSchema,
22
+ fontTokenSchema,
23
+ fontWeightTokenSchema,
24
+ radiusTokenSchema,
25
+ shadowTokenSchema,
26
+ shadowComposeTokenSchema,
27
+ sizeTokenSchema,
28
+ spacingTokenSchema,
29
+ textTokenSchema,
30
+ titleTokenSchema,
31
+ zIndexTokenSchema,
32
+ ];
@@ -0,0 +1,18 @@
1
+ export type ResolvedLeaf = string;
2
+ export interface ResolvedObject {
3
+ [key: string]: ResolvedValue;
4
+ }
5
+ export type ResolvedValue = ResolvedLeaf | ResolvedObject;
6
+ export type ResolvedVariantOutput = ResolvedObject;
7
+ export type LayoutDefinitionLike = {
8
+ resolve?: Record<string, unknown>;
9
+ resolvers?: Record<string, unknown>;
10
+ };
11
+ export type ResolverKeyMap<TLayout extends LayoutDefinitionLike> = TLayout extends {
12
+ resolve: infer R extends Record<string, unknown>;
13
+ } ? R : TLayout extends {
14
+ resolvers: infer R extends Record<string, unknown>;
15
+ } ? R : Record<string, never>;
16
+ export type ResolvedFromLayout<TLayout extends LayoutDefinitionLike> = {
17
+ [K in keyof ResolverKeyMap<TLayout>]: string;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,112 @@
1
+ export type ModuleSubType = 'layout' | 'collectionItem' | 'global';
2
+ type LayoutPropsRecord = Record<string, unknown>;
3
+ type LayoutPropsByDefinitionName = Record<string, LayoutPropsRecord>;
4
+ export type AuthoredLayoutPropsByKind = {
5
+ pageLayout: LayoutPropsByDefinitionName;
6
+ layout: LayoutPropsByDefinitionName;
7
+ block: LayoutPropsByDefinitionName;
8
+ };
9
+ export type DefaultAuthoredLayoutPropsByKind = {
10
+ pageLayout: LayoutPropsByDefinitionName;
11
+ layout: LayoutPropsByDefinitionName;
12
+ block: LayoutPropsByDefinitionName;
13
+ };
14
+ type RootBindingKind = 'pageLayout' | 'layout' | 'block';
15
+ type NestedBindingKind = RootBindingKind | 'wrapper' | 'style';
16
+ export type NestedLayoutBinding = {
17
+ kind: NestedBindingKind;
18
+ name: string;
19
+ props: Record<string, unknown>;
20
+ variant?: undefined;
21
+ } | {
22
+ kind: NestedBindingKind;
23
+ name: string;
24
+ variant: string;
25
+ props?: never;
26
+ };
27
+ type LocalRootBinding<TKind extends RootBindingKind, TName extends string, TProps extends LayoutPropsRecord> = {
28
+ kind: TKind;
29
+ name: TName;
30
+ props: TProps;
31
+ resolved?: never;
32
+ variant?: undefined;
33
+ };
34
+ type VariantRootBinding<TKind extends RootBindingKind, TName extends string> = {
35
+ kind: TKind;
36
+ name: TName;
37
+ variant: string;
38
+ props?: never;
39
+ resolved?: never;
40
+ };
41
+ type RootBindingFromMap<TKind extends RootBindingKind, TMap extends LayoutPropsByDefinitionName> = {
42
+ [TName in keyof TMap & string]: LocalRootBinding<TKind, TName, TMap[TName]> | VariantRootBinding<TKind, TName>;
43
+ }[keyof TMap & string];
44
+ type AuthoredPageLayoutBinding<TMap extends AuthoredLayoutPropsByKind> = RootBindingFromMap<'pageLayout', TMap['pageLayout']>;
45
+ type AuthoredLayoutBinding<TMap extends AuthoredLayoutPropsByKind> = RootBindingFromMap<'layout', TMap['layout']>;
46
+ type AuthoredBlockBinding<TMap extends AuthoredLayoutPropsByKind> = RootBindingFromMap<'block', TMap['block']>;
47
+ type BaseNode = {
48
+ id: string;
49
+ stableId: string;
50
+ label: string;
51
+ origin?: unknown;
52
+ };
53
+ export type ModuleRefNode = {
54
+ id: string;
55
+ type: 'moduleRef';
56
+ label: string;
57
+ slug: string;
58
+ subType: ModuleSubType;
59
+ instanceId: string;
60
+ moduleName?: string;
61
+ contentOverrides?: Record<string, Record<string, unknown>>;
62
+ };
63
+ export type AuthoredSlotChild<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = AuthoredEditorNode<TMap> | ModuleRefNode;
64
+ export type AuthoredPageNode<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = BaseNode & {
65
+ type: 'page';
66
+ slug: string;
67
+ props: Record<string, unknown>;
68
+ def: {
69
+ kind: 'pageLayout';
70
+ name: string;
71
+ };
72
+ layout: AuthoredPageLayoutBinding<TMap>;
73
+ composition?: Record<string, unknown>;
74
+ slots: Record<string, AuthoredSlotChild<TMap>[]>;
75
+ };
76
+ export type AuthoredModuleNode<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = BaseNode & {
77
+ type: 'module';
78
+ subType: ModuleSubType;
79
+ slug: string;
80
+ props?: Record<string, unknown>;
81
+ def: {
82
+ kind: 'layout';
83
+ name: string;
84
+ };
85
+ layout: AuthoredLayoutBinding<TMap>;
86
+ identity?: {
87
+ instanceId: string;
88
+ };
89
+ composition?: Record<string, unknown>;
90
+ slots: Record<string, AuthoredSlotChild<TMap>[]>;
91
+ };
92
+ export type AuthoredLayoutNode<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = BaseNode & {
93
+ type: 'layout';
94
+ def: {
95
+ kind: 'layout';
96
+ name: string;
97
+ };
98
+ layout: AuthoredLayoutBinding<TMap>;
99
+ composition?: Record<string, unknown>;
100
+ slots: Record<string, AuthoredSlotChild<TMap>[]>;
101
+ };
102
+ export type AuthoredBlockNode<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = BaseNode & {
103
+ type: 'block';
104
+ def: {
105
+ kind: 'block';
106
+ name: string;
107
+ };
108
+ layout: AuthoredBlockBinding<TMap>;
109
+ contentProps: Record<string, unknown>;
110
+ };
111
+ export type AuthoredEditorNode<TMap extends AuthoredLayoutPropsByKind = DefaultAuthoredLayoutPropsByKind> = AuthoredPageNode<TMap> | AuthoredModuleNode<TMap> | AuthoredLayoutNode<TMap> | AuthoredBlockNode<TMap>;
112
+ export {};
@@ -0,0 +1 @@
1
+ export {};