@servicetitan/json-render-react 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog/context/catalog-prompt.md +229 -0
- package/dist/catalog/context/schema.json +56 -0
- package/dist/catalog/core/catalog-prompt.md +103 -87
- package/dist/catalog/core/schema.json +1 -1
- package/dist/catalog/marketing/catalog-prompt.md +103 -87
- package/dist/catalog/marketing/schema.json +1 -1
- package/dist/context/catalog/catalog-def.d.ts +50 -0
- package/dist/context/catalog/context-card.catalog.d.ts +19 -0
- package/dist/context/catalog/context-card.d.ts +8 -0
- package/dist/context/catalog/context-data-table.catalog.d.ts +34 -0
- package/dist/context/catalog/context-data-table.css.d.ts +2 -0
- package/dist/context/catalog/context-data-table.d.ts +6 -0
- package/dist/context/catalog/context-file-list.catalog.d.ts +11 -0
- package/dist/context/catalog/context-file-list.css.d.ts +16 -0
- package/dist/context/catalog/context-file-list.d.ts +6 -0
- package/dist/context/catalog/context-list.catalog.d.ts +48 -0
- package/dist/context/catalog/context-list.css.d.ts +16 -0
- package/dist/context/catalog/context-list.d.ts +6 -0
- package/dist/context/catalog/context-metric-grid.catalog.d.ts +22 -0
- package/dist/context/catalog/context-metric-grid.css.d.ts +13 -0
- package/dist/context/catalog/context-metric-grid.d.ts +6 -0
- package/dist/context/catalog/context-note-list.catalog.d.ts +15 -0
- package/dist/context/catalog/context-note-list.d.ts +6 -0
- package/dist/context/catalog/context-overview.catalog.d.ts +8 -0
- package/dist/context/catalog/context-overview.css.d.ts +2 -0
- package/dist/context/catalog/context-overview.d.ts +6 -0
- package/dist/context/catalog/context-panel.catalog.d.ts +6 -0
- package/dist/context/catalog/context-panel.css.d.ts +1 -0
- package/dist/context/catalog/context-panel.d.ts +6 -0
- package/dist/context/catalog/context-tabular-list.catalog.d.ts +19 -0
- package/dist/context/catalog/context-tabular-list.css.d.ts +17 -0
- package/dist/context/catalog/context-tabular-list.d.ts +6 -0
- package/dist/context/catalog/index.d.ts +10 -0
- package/dist/context/catalog/schemas.d.ts +151 -0
- package/dist/context/components/collapsible-card.css.d.ts +41 -0
- package/dist/context/components/collapsible-card.d.ts +14 -0
- package/dist/context/components/context-ai-summary.css.d.ts +5 -0
- package/dist/context/components/context-ai-summary.d.ts +4 -0
- package/dist/context/components/context-chip-tone.d.ts +10 -0
- package/dist/context/components/context-note-list.css.d.ts +10 -0
- package/dist/context/components/context-render-error-boundary.d.ts +21 -0
- package/dist/context/constants.d.ts +6 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/validate-context-spec-deep.d.ts +9 -0
- package/dist/context/validate-context-spec.d.ts +11 -0
- package/dist/core/actions.d.ts +8 -0
- package/dist/core/catalog/alert.catalog.d.ts +2 -0
- package/dist/core/catalog/button.catalog.d.ts +3 -0
- package/dist/core/catalog/card.catalog.d.ts +2 -0
- package/dist/core/catalog/catalog-def.d.ts +53 -19
- package/dist/core/catalog/chart.css.d.ts +1 -0
- package/dist/core/catalog/checkbox.catalog.d.ts +1 -0
- package/dist/core/catalog/chip.catalog.d.ts +1 -0
- package/dist/core/catalog/flex.catalog.d.ts +13 -0
- package/dist/core/catalog/grid.catalog.d.ts +4 -0
- package/dist/core/catalog/grid.css.d.ts +4 -0
- package/dist/core/catalog/input.catalog.d.ts +1 -0
- package/dist/core/catalog/link.catalog.d.ts +2 -0
- package/dist/core/catalog/listbox.catalog.d.ts +1 -0
- package/dist/core/catalog/listbox.css.d.ts +9 -0
- package/dist/core/catalog/radio-group.catalog.d.ts +1 -0
- package/dist/core/catalog/schemas.d.ts +46 -19
- package/dist/core/catalog/switch.catalog.d.ts +1 -0
- package/dist/core/catalog/text.catalog.d.ts +0 -8
- package/dist/core/catalog/textarea.catalog.d.ts +15 -0
- package/dist/core/catalog/textarea.d.ts +8 -0
- package/dist/generate.d.ts +4 -4
- package/dist/index.d.ts +7 -4
- package/dist/json-render-react.js +1913 -10747
- package/dist/json-render-react.js.map +1 -1
- package/dist/marketing/catalog/catalog.d.ts +1 -1
- package/dist/marketing/catalog/components/revenue-card.css.d.ts +15 -0
- package/dist/marketing/catalog/index.d.ts +1 -1
- package/dist/marketing/catalog/scoped-catalogs.d.ts +4 -0
- package/dist/registry-utils.d.ts +1 -1
- package/dist/registry.d.ts +1 -0
- package/dist/renderers/context-spec-renderer.d.ts +6 -0
- package/dist/renderers/sectioned-context-renderer.css.d.ts +1 -0
- package/dist/renderers/sectioned-context-renderer.d.ts +36 -0
- package/dist/renderers/spec-renderer.d.ts +21 -6
- package/dist/renderers/types.d.ts +2 -1
- package/dist/renderers/wrap-context-registry.d.ts +3 -0
- package/dist/scoped-catalog.d.ts +64 -0
- package/dist/styles.css +2 -0
- package/dist/test/setup-dom.d.ts +1 -0
- package/dist/types.d.ts +6 -3
- package/package.json +14 -3
- package/dist/core/catalog/badge.catalog.d.ts +0 -12
- package/dist/core/catalog/badge.d.ts +0 -8
- package/dist/marketing/catalog/teams.d.ts +0 -4
- package/dist/team-catalog.d.ts +0 -26
|
@@ -39,20 +39,14 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
39
39
|
xlarge: "xlarge";
|
|
40
40
|
}>>;
|
|
41
41
|
subdued: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
42
|
-
el: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
43
|
-
h1: "h1";
|
|
44
|
-
h2: "h2";
|
|
45
|
-
h3: "h3";
|
|
46
|
-
h4: "h4";
|
|
47
|
-
h5: "h5";
|
|
48
|
-
h6: "h6";
|
|
49
|
-
}>>;
|
|
50
42
|
}, import('zod/v4/core').$strip>;
|
|
51
43
|
slots: never[];
|
|
52
44
|
description: string;
|
|
53
45
|
};
|
|
54
46
|
Card: {
|
|
55
47
|
props: import('zod').ZodObject<{
|
|
48
|
+
title: import('zod').ZodOptional<import('zod').ZodString>;
|
|
49
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
56
50
|
background: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
57
51
|
strong: "strong";
|
|
58
52
|
stronger: "stronger";
|
|
@@ -75,12 +69,16 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
75
69
|
column: "column";
|
|
76
70
|
}>>;
|
|
77
71
|
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
72
|
+
0: "0";
|
|
78
73
|
1: "1";
|
|
79
74
|
2: "2";
|
|
80
75
|
3: "3";
|
|
81
76
|
4: "4";
|
|
77
|
+
half: "half";
|
|
82
78
|
5: "5";
|
|
83
79
|
6: "6";
|
|
80
|
+
8: "8";
|
|
81
|
+
12: "12";
|
|
84
82
|
}>>;
|
|
85
83
|
alignItems: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
86
84
|
center: "center";
|
|
@@ -97,6 +95,14 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
97
95
|
"space-around": "space-around";
|
|
98
96
|
"space-evenly": "space-evenly";
|
|
99
97
|
}>>;
|
|
98
|
+
alignSelf: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
99
|
+
center: "center";
|
|
100
|
+
"flex-start": "flex-start";
|
|
101
|
+
"flex-end": "flex-end";
|
|
102
|
+
stretch: "stretch";
|
|
103
|
+
baseline: "baseline";
|
|
104
|
+
auto: "auto";
|
|
105
|
+
}>>;
|
|
100
106
|
wrap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
101
107
|
wrap: "wrap";
|
|
102
108
|
nowrap: "nowrap";
|
|
@@ -104,6 +110,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
104
110
|
}>>;
|
|
105
111
|
grow: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
106
112
|
shrink: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
113
|
+
basis: import('zod').ZodOptional<import('zod').ZodString>;
|
|
107
114
|
inline: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
108
115
|
}, import('zod/v4/core').$strip>;
|
|
109
116
|
slots: string[];
|
|
@@ -113,12 +120,16 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
113
120
|
props: import('zod').ZodObject<{
|
|
114
121
|
templateColumns: import('zod').ZodOptional<import('zod').ZodString>;
|
|
115
122
|
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
123
|
+
0: "0";
|
|
116
124
|
1: "1";
|
|
117
125
|
2: "2";
|
|
118
126
|
3: "3";
|
|
119
127
|
4: "4";
|
|
128
|
+
half: "half";
|
|
120
129
|
5: "5";
|
|
121
130
|
6: "6";
|
|
131
|
+
8: "8";
|
|
132
|
+
12: "12";
|
|
122
133
|
}>>;
|
|
123
134
|
bordered: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
124
135
|
}, import('zod/v4/core').$strip>;
|
|
@@ -135,8 +146,10 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
135
146
|
danger: "danger";
|
|
136
147
|
}>>;
|
|
137
148
|
dismissible: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
149
|
+
aiMark: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
138
150
|
}, import('zod/v4/core').$strip>;
|
|
139
151
|
slots: string[];
|
|
152
|
+
events: string[];
|
|
140
153
|
description: string;
|
|
141
154
|
};
|
|
142
155
|
Divider: {
|
|
@@ -181,17 +194,6 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
181
194
|
slots: never[];
|
|
182
195
|
description: string;
|
|
183
196
|
};
|
|
184
|
-
Badge: {
|
|
185
|
-
props: import('zod').ZodObject<{
|
|
186
|
-
content: import('zod').ZodOptional<import('zod').ZodString>;
|
|
187
|
-
offset: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
188
|
-
x: import('zod').ZodOptional<import('zod').ZodString>;
|
|
189
|
-
y: import('zod').ZodOptional<import('zod').ZodString>;
|
|
190
|
-
}, import('zod/v4/core').$strip>>;
|
|
191
|
-
}, import('zod/v4/core').$strip>;
|
|
192
|
-
slots: string[];
|
|
193
|
-
description: string;
|
|
194
|
-
};
|
|
195
197
|
Chip: {
|
|
196
198
|
props: import('zod').ZodObject<{
|
|
197
199
|
label: import('zod').ZodString;
|
|
@@ -208,6 +210,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
208
210
|
removable: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
209
211
|
}, import('zod/v4/core').$strip>;
|
|
210
212
|
slots: never[];
|
|
213
|
+
events: string[];
|
|
211
214
|
description: string;
|
|
212
215
|
};
|
|
213
216
|
Link: {
|
|
@@ -223,8 +226,10 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
223
226
|
_self: "_self";
|
|
224
227
|
}>>;
|
|
225
228
|
ghost: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
229
|
+
badge: import('zod').ZodOptional<import('zod').ZodString>;
|
|
226
230
|
}, import('zod/v4/core').$strip>;
|
|
227
231
|
slots: never[];
|
|
232
|
+
events: string[];
|
|
228
233
|
description: string;
|
|
229
234
|
};
|
|
230
235
|
ProgressBar: {
|
|
@@ -297,6 +302,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
297
302
|
props: import('zod').ZodObject<{
|
|
298
303
|
label: import('zod').ZodString;
|
|
299
304
|
appearance: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
305
|
+
danger: "danger";
|
|
300
306
|
primary: "primary";
|
|
301
307
|
secondary: "secondary";
|
|
302
308
|
ghost: "ghost";
|
|
@@ -309,8 +315,10 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
309
315
|
}>>;
|
|
310
316
|
loading: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
311
317
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
318
|
+
badge: import('zod').ZodOptional<import('zod').ZodString>;
|
|
312
319
|
}, import('zod/v4/core').$strip>;
|
|
313
320
|
slots: never[];
|
|
321
|
+
events: string[];
|
|
314
322
|
description: string;
|
|
315
323
|
};
|
|
316
324
|
Checkbox: {
|
|
@@ -320,6 +328,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
320
328
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
321
329
|
}, import('zod/v4/core').$strip>;
|
|
322
330
|
slots: never[];
|
|
331
|
+
events: string[];
|
|
323
332
|
description: string;
|
|
324
333
|
};
|
|
325
334
|
Input: {
|
|
@@ -338,6 +347,21 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
338
347
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
339
348
|
}, import('zod/v4/core').$strip>;
|
|
340
349
|
slots: never[];
|
|
350
|
+
events: string[];
|
|
351
|
+
description: string;
|
|
352
|
+
};
|
|
353
|
+
Textarea: {
|
|
354
|
+
props: import('zod').ZodObject<{
|
|
355
|
+
label: import('zod').ZodString;
|
|
356
|
+
placeholder: import('zod').ZodOptional<import('zod').ZodString>;
|
|
357
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
358
|
+
moreInfo: import('zod').ZodOptional<import('zod').ZodString>;
|
|
359
|
+
value: import('zod').ZodOptional<import('zod').ZodString>;
|
|
360
|
+
rows: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
361
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
362
|
+
}, import('zod/v4/core').$strip>;
|
|
363
|
+
slots: never[];
|
|
364
|
+
events: string[];
|
|
341
365
|
description: string;
|
|
342
366
|
};
|
|
343
367
|
Listbox: {
|
|
@@ -351,6 +375,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
351
375
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
352
376
|
}, import('zod/v4/core').$strip>;
|
|
353
377
|
slots: never[];
|
|
378
|
+
events: string[];
|
|
354
379
|
description: string;
|
|
355
380
|
};
|
|
356
381
|
RadioGroup: {
|
|
@@ -364,6 +389,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
364
389
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
365
390
|
}, import('zod/v4/core').$strip>;
|
|
366
391
|
slots: never[];
|
|
392
|
+
events: string[];
|
|
367
393
|
description: string;
|
|
368
394
|
};
|
|
369
395
|
Switch: {
|
|
@@ -373,6 +399,7 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
373
399
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
374
400
|
}, import('zod/v4/core').$strip>;
|
|
375
401
|
slots: never[];
|
|
402
|
+
events: string[];
|
|
376
403
|
description: string;
|
|
377
404
|
};
|
|
378
405
|
};
|
|
@@ -390,5 +417,12 @@ export declare const catalog: import('@json-render/core').Catalog<{
|
|
|
390
417
|
}, import('zod/v4/core').$strip>;
|
|
391
418
|
description: string;
|
|
392
419
|
};
|
|
420
|
+
"atlas.toolCall": {
|
|
421
|
+
params: import('zod').ZodObject<{
|
|
422
|
+
tool: import('zod').ZodString;
|
|
423
|
+
args: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
424
|
+
}, import('zod/v4/core').$strip>;
|
|
425
|
+
description: string;
|
|
426
|
+
};
|
|
393
427
|
};
|
|
394
428
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chartContainer: string;
|
|
@@ -6,12 +6,16 @@ export declare const flexCatalog: {
|
|
|
6
6
|
column: "column";
|
|
7
7
|
}>>;
|
|
8
8
|
gap: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
0: "0";
|
|
9
10
|
1: "1";
|
|
10
11
|
2: "2";
|
|
11
12
|
3: "3";
|
|
12
13
|
4: "4";
|
|
14
|
+
half: "half";
|
|
13
15
|
5: "5";
|
|
14
16
|
6: "6";
|
|
17
|
+
8: "8";
|
|
18
|
+
12: "12";
|
|
15
19
|
}>>;
|
|
16
20
|
alignItems: z.ZodOptional<z.ZodEnum<{
|
|
17
21
|
center: "center";
|
|
@@ -28,6 +32,14 @@ export declare const flexCatalog: {
|
|
|
28
32
|
"space-around": "space-around";
|
|
29
33
|
"space-evenly": "space-evenly";
|
|
30
34
|
}>>;
|
|
35
|
+
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
center: "center";
|
|
37
|
+
"flex-start": "flex-start";
|
|
38
|
+
"flex-end": "flex-end";
|
|
39
|
+
stretch: "stretch";
|
|
40
|
+
baseline: "baseline";
|
|
41
|
+
auto: "auto";
|
|
42
|
+
}>>;
|
|
31
43
|
wrap: z.ZodOptional<z.ZodEnum<{
|
|
32
44
|
wrap: "wrap";
|
|
33
45
|
nowrap: "nowrap";
|
|
@@ -35,6 +47,7 @@ export declare const flexCatalog: {
|
|
|
35
47
|
}>>;
|
|
36
48
|
grow: z.ZodOptional<z.ZodNumber>;
|
|
37
49
|
shrink: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
basis: z.ZodOptional<z.ZodString>;
|
|
38
51
|
inline: z.ZodOptional<z.ZodBoolean>;
|
|
39
52
|
}, z.core.$strip>;
|
|
40
53
|
slots: string[];
|
|
@@ -3,12 +3,16 @@ export declare const gridCatalog: {
|
|
|
3
3
|
props: z.ZodObject<{
|
|
4
4
|
templateColumns: z.ZodOptional<z.ZodString>;
|
|
5
5
|
gap: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
0: "0";
|
|
6
7
|
1: "1";
|
|
7
8
|
2: "2";
|
|
8
9
|
3: "3";
|
|
9
10
|
4: "4";
|
|
11
|
+
half: "half";
|
|
10
12
|
5: "5";
|
|
11
13
|
6: "6";
|
|
14
|
+
8: "8";
|
|
15
|
+
12: "12";
|
|
12
16
|
}>>;
|
|
13
17
|
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
14
18
|
}, z.core.$strip>;
|
|
@@ -14,20 +14,14 @@ export declare const baseComponents: {
|
|
|
14
14
|
xlarge: "xlarge";
|
|
15
15
|
}>>;
|
|
16
16
|
subdued: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
17
|
-
el: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
18
|
-
h1: "h1";
|
|
19
|
-
h2: "h2";
|
|
20
|
-
h3: "h3";
|
|
21
|
-
h4: "h4";
|
|
22
|
-
h5: "h5";
|
|
23
|
-
h6: "h6";
|
|
24
|
-
}>>;
|
|
25
17
|
}, import('zod/v4/core').$strip>;
|
|
26
18
|
slots: never[];
|
|
27
19
|
description: string;
|
|
28
20
|
};
|
|
29
21
|
Card: {
|
|
30
22
|
props: import('zod').ZodObject<{
|
|
23
|
+
title: import('zod').ZodOptional<import('zod').ZodString>;
|
|
24
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
31
25
|
background: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
32
26
|
strong: "strong";
|
|
33
27
|
stronger: "stronger";
|
|
@@ -50,12 +44,16 @@ export declare const baseComponents: {
|
|
|
50
44
|
column: "column";
|
|
51
45
|
}>>;
|
|
52
46
|
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
47
|
+
0: "0";
|
|
53
48
|
1: "1";
|
|
54
49
|
2: "2";
|
|
55
50
|
3: "3";
|
|
56
51
|
4: "4";
|
|
52
|
+
half: "half";
|
|
57
53
|
5: "5";
|
|
58
54
|
6: "6";
|
|
55
|
+
8: "8";
|
|
56
|
+
12: "12";
|
|
59
57
|
}>>;
|
|
60
58
|
alignItems: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
61
59
|
center: "center";
|
|
@@ -72,6 +70,14 @@ export declare const baseComponents: {
|
|
|
72
70
|
"space-around": "space-around";
|
|
73
71
|
"space-evenly": "space-evenly";
|
|
74
72
|
}>>;
|
|
73
|
+
alignSelf: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
74
|
+
center: "center";
|
|
75
|
+
"flex-start": "flex-start";
|
|
76
|
+
"flex-end": "flex-end";
|
|
77
|
+
stretch: "stretch";
|
|
78
|
+
baseline: "baseline";
|
|
79
|
+
auto: "auto";
|
|
80
|
+
}>>;
|
|
75
81
|
wrap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
76
82
|
wrap: "wrap";
|
|
77
83
|
nowrap: "nowrap";
|
|
@@ -79,6 +85,7 @@ export declare const baseComponents: {
|
|
|
79
85
|
}>>;
|
|
80
86
|
grow: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
81
87
|
shrink: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
88
|
+
basis: import('zod').ZodOptional<import('zod').ZodString>;
|
|
82
89
|
inline: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
83
90
|
}, import('zod/v4/core').$strip>;
|
|
84
91
|
slots: string[];
|
|
@@ -88,12 +95,16 @@ export declare const baseComponents: {
|
|
|
88
95
|
props: import('zod').ZodObject<{
|
|
89
96
|
templateColumns: import('zod').ZodOptional<import('zod').ZodString>;
|
|
90
97
|
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
98
|
+
0: "0";
|
|
91
99
|
1: "1";
|
|
92
100
|
2: "2";
|
|
93
101
|
3: "3";
|
|
94
102
|
4: "4";
|
|
103
|
+
half: "half";
|
|
95
104
|
5: "5";
|
|
96
105
|
6: "6";
|
|
106
|
+
8: "8";
|
|
107
|
+
12: "12";
|
|
97
108
|
}>>;
|
|
98
109
|
bordered: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
99
110
|
}, import('zod/v4/core').$strip>;
|
|
@@ -110,8 +121,10 @@ export declare const baseComponents: {
|
|
|
110
121
|
danger: "danger";
|
|
111
122
|
}>>;
|
|
112
123
|
dismissible: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
124
|
+
aiMark: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
113
125
|
}, import('zod/v4/core').$strip>;
|
|
114
126
|
slots: string[];
|
|
127
|
+
events: string[];
|
|
115
128
|
description: string;
|
|
116
129
|
};
|
|
117
130
|
Divider: {
|
|
@@ -156,17 +169,6 @@ export declare const baseComponents: {
|
|
|
156
169
|
slots: never[];
|
|
157
170
|
description: string;
|
|
158
171
|
};
|
|
159
|
-
Badge: {
|
|
160
|
-
props: import('zod').ZodObject<{
|
|
161
|
-
content: import('zod').ZodOptional<import('zod').ZodString>;
|
|
162
|
-
offset: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
163
|
-
x: import('zod').ZodOptional<import('zod').ZodString>;
|
|
164
|
-
y: import('zod').ZodOptional<import('zod').ZodString>;
|
|
165
|
-
}, import('zod/v4/core').$strip>>;
|
|
166
|
-
}, import('zod/v4/core').$strip>;
|
|
167
|
-
slots: string[];
|
|
168
|
-
description: string;
|
|
169
|
-
};
|
|
170
172
|
Chip: {
|
|
171
173
|
props: import('zod').ZodObject<{
|
|
172
174
|
label: import('zod').ZodString;
|
|
@@ -183,6 +185,7 @@ export declare const baseComponents: {
|
|
|
183
185
|
removable: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
184
186
|
}, import('zod/v4/core').$strip>;
|
|
185
187
|
slots: never[];
|
|
188
|
+
events: string[];
|
|
186
189
|
description: string;
|
|
187
190
|
};
|
|
188
191
|
Link: {
|
|
@@ -198,8 +201,10 @@ export declare const baseComponents: {
|
|
|
198
201
|
_self: "_self";
|
|
199
202
|
}>>;
|
|
200
203
|
ghost: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
204
|
+
badge: import('zod').ZodOptional<import('zod').ZodString>;
|
|
201
205
|
}, import('zod/v4/core').$strip>;
|
|
202
206
|
slots: never[];
|
|
207
|
+
events: string[];
|
|
203
208
|
description: string;
|
|
204
209
|
};
|
|
205
210
|
ProgressBar: {
|
|
@@ -272,6 +277,7 @@ export declare const baseComponents: {
|
|
|
272
277
|
props: import('zod').ZodObject<{
|
|
273
278
|
label: import('zod').ZodString;
|
|
274
279
|
appearance: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
280
|
+
danger: "danger";
|
|
275
281
|
primary: "primary";
|
|
276
282
|
secondary: "secondary";
|
|
277
283
|
ghost: "ghost";
|
|
@@ -284,8 +290,10 @@ export declare const baseComponents: {
|
|
|
284
290
|
}>>;
|
|
285
291
|
loading: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
286
292
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
293
|
+
badge: import('zod').ZodOptional<import('zod').ZodString>;
|
|
287
294
|
}, import('zod/v4/core').$strip>;
|
|
288
295
|
slots: never[];
|
|
296
|
+
events: string[];
|
|
289
297
|
description: string;
|
|
290
298
|
};
|
|
291
299
|
Checkbox: {
|
|
@@ -295,6 +303,7 @@ export declare const baseComponents: {
|
|
|
295
303
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
296
304
|
}, import('zod/v4/core').$strip>;
|
|
297
305
|
slots: never[];
|
|
306
|
+
events: string[];
|
|
298
307
|
description: string;
|
|
299
308
|
};
|
|
300
309
|
Input: {
|
|
@@ -313,6 +322,21 @@ export declare const baseComponents: {
|
|
|
313
322
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
314
323
|
}, import('zod/v4/core').$strip>;
|
|
315
324
|
slots: never[];
|
|
325
|
+
events: string[];
|
|
326
|
+
description: string;
|
|
327
|
+
};
|
|
328
|
+
Textarea: {
|
|
329
|
+
props: import('zod').ZodObject<{
|
|
330
|
+
label: import('zod').ZodString;
|
|
331
|
+
placeholder: import('zod').ZodOptional<import('zod').ZodString>;
|
|
332
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
333
|
+
moreInfo: import('zod').ZodOptional<import('zod').ZodString>;
|
|
334
|
+
value: import('zod').ZodOptional<import('zod').ZodString>;
|
|
335
|
+
rows: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
336
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
337
|
+
}, import('zod/v4/core').$strip>;
|
|
338
|
+
slots: never[];
|
|
339
|
+
events: string[];
|
|
316
340
|
description: string;
|
|
317
341
|
};
|
|
318
342
|
Listbox: {
|
|
@@ -326,6 +350,7 @@ export declare const baseComponents: {
|
|
|
326
350
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
327
351
|
}, import('zod/v4/core').$strip>;
|
|
328
352
|
slots: never[];
|
|
353
|
+
events: string[];
|
|
329
354
|
description: string;
|
|
330
355
|
};
|
|
331
356
|
RadioGroup: {
|
|
@@ -339,6 +364,7 @@ export declare const baseComponents: {
|
|
|
339
364
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
340
365
|
}, import('zod/v4/core').$strip>;
|
|
341
366
|
slots: never[];
|
|
367
|
+
events: string[];
|
|
342
368
|
description: string;
|
|
343
369
|
};
|
|
344
370
|
Switch: {
|
|
@@ -348,6 +374,7 @@ export declare const baseComponents: {
|
|
|
348
374
|
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
349
375
|
}, import('zod/v4/core').$strip>;
|
|
350
376
|
slots: never[];
|
|
377
|
+
events: string[];
|
|
351
378
|
description: string;
|
|
352
379
|
};
|
|
353
380
|
};
|
|
@@ -14,14 +14,6 @@ export declare const textCatalog: {
|
|
|
14
14
|
xlarge: "xlarge";
|
|
15
15
|
}>>;
|
|
16
16
|
subdued: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
el: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
h1: "h1";
|
|
19
|
-
h2: "h2";
|
|
20
|
-
h3: "h3";
|
|
21
|
-
h4: "h4";
|
|
22
|
-
h5: "h5";
|
|
23
|
-
h6: "h6";
|
|
24
|
-
}>>;
|
|
25
17
|
}, z.core.$strip>;
|
|
26
18
|
slots: never[];
|
|
27
19
|
description: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const textareaCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
moreInfo: z.ZodOptional<z.ZodString>;
|
|
8
|
+
value: z.ZodOptional<z.ZodString>;
|
|
9
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
slots: never[];
|
|
13
|
+
events: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { textareaCatalog } from './textarea.catalog';
|
|
3
|
+
export { textareaCatalog };
|
|
4
|
+
export declare const TextareaRenderer: ({ props, bindings, emit, }: {
|
|
5
|
+
props: z.infer<typeof textareaCatalog.props>;
|
|
6
|
+
bindings?: Record<string, string>;
|
|
7
|
+
emit: (event: string) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/generate.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MergedCatalog } from './
|
|
2
|
-
export { mergeCatalogs } from './
|
|
1
|
+
import { MergedCatalog } from './scoped-catalog';
|
|
2
|
+
export { mergeCatalogs } from './scoped-catalog';
|
|
3
3
|
export interface GenerateArtifactsOptions {
|
|
4
|
-
|
|
4
|
+
scopedName: string;
|
|
5
5
|
catalog: MergedCatalog;
|
|
6
6
|
baseRules: string;
|
|
7
7
|
outDir: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function generateArtifacts({
|
|
9
|
+
export declare function generateArtifacts({ scopedName, catalog, baseRules, outDir, }: GenerateArtifactsOptions): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type { Catalog, Spec } from '@json-render/core';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
2
|
+
export { type ContextSpecIssue, type ContextSpecIssueSeverity, contextCatalog, formatContextRenderReport, formatContextSpecIssues, hasContextSpecErrors, postProcessContextSpec, validateContextSpec, validateContextSpecDeep, } from './context';
|
|
3
|
+
export { catalog, executeAction, getContextRegistry, getRegistry, handlers, registry, } from './registry';
|
|
4
|
+
export { ContextSpecRenderer, type ContextSpecRendererProps, } from './renderers/context-spec-renderer';
|
|
5
|
+
export { type ContextSection, type ContextSectionStatus, extractSectionSpec, SectionedContextRenderer, type SectionedContextRendererProps, } from './renderers/sectioned-context-renderer';
|
|
6
|
+
export { type SpecActionHandler, type SpecActionHelpers, type SpecActionsFactory, SpecRenderer, type SpecRendererProps, } from './renderers/spec-renderer';
|
|
7
|
+
export type { ActionCatalogDef, ComponentCatalogDef, ComposeCatalogComponentsOptions, CoreComponentName, DescriptionOverride, MergedCatalog, ScopedCatalogDef, } from './scoped-catalog';
|
|
8
|
+
export { composeCatalogComponents, createScopedCatalog, mergeCatalogs } from './scoped-catalog';
|
|
6
9
|
export type { RendererContext } from './types';
|