@copilotkit/shared 1.85.0 → 1.86.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/event-transforms/recorded-events.cjs +7 -1
- package/dist/event-transforms/recorded-events.cjs.map +1 -1
- package/dist/event-transforms/recorded-events.mjs +8 -2
- package/dist/event-transforms/recorded-events.mjs.map +1 -1
- package/dist/generative-ui/clone-value.cjs +364 -0
- package/dist/generative-ui/clone-value.cjs.map +1 -0
- package/dist/generative-ui/clone-value.d.cts +51 -0
- package/dist/generative-ui/clone-value.d.cts.map +1 -0
- package/dist/generative-ui/clone-value.d.mts +51 -0
- package/dist/generative-ui/clone-value.d.mts.map +1 -0
- package/dist/generative-ui/clone-value.mjs +363 -0
- package/dist/generative-ui/clone-value.mjs.map +1 -0
- package/dist/generative-ui/index.cjs +39 -0
- package/dist/generative-ui/index.d.cts +8 -2
- package/dist/generative-ui/index.d.mts +8 -2
- package/dist/generative-ui/index.mjs +8 -2
- package/dist/generative-ui/is-record.d.cts +3 -1
- package/dist/generative-ui/is-record.d.cts.map +1 -1
- package/dist/generative-ui/is-record.d.mts +3 -1
- package/dist/generative-ui/is-record.d.mts.map +1 -1
- package/dist/generative-ui/schema-render.cjs +2 -1
- package/dist/generative-ui/schema-render.cjs.map +1 -1
- package/dist/generative-ui/schema-render.d.cts.map +1 -1
- package/dist/generative-ui/schema-render.d.mts.map +1 -1
- package/dist/generative-ui/schema-render.mjs +2 -1
- package/dist/generative-ui/schema-render.mjs.map +1 -1
- package/dist/generative-ui/standard/chart-config.cjs +347 -0
- package/dist/generative-ui/standard/chart-config.cjs.map +1 -0
- package/dist/generative-ui/standard/chart-config.d.cts +97 -0
- package/dist/generative-ui/standard/chart-config.d.cts.map +1 -0
- package/dist/generative-ui/standard/chart-config.d.mts +97 -0
- package/dist/generative-ui/standard/chart-config.d.mts.map +1 -0
- package/dist/generative-ui/standard/chart-config.mjs +342 -0
- package/dist/generative-ui/standard/chart-config.mjs.map +1 -0
- package/dist/generative-ui/standard/chart.d.cts +10 -10
- package/dist/generative-ui/standard/chart.d.mts +10 -10
- package/dist/generative-ui/standard/composites.d.cts +46 -46
- package/dist/generative-ui/standard/composites.d.mts +46 -46
- package/dist/generative-ui/standard/data.d.cts +42 -42
- package/dist/generative-ui/standard/data.d.mts +42 -42
- package/dist/generative-ui/standard/declarations.d.cts +226 -226
- package/dist/generative-ui/standard/declarations.d.mts +226 -226
- package/dist/generative-ui/standard/feedback.d.cts +4 -4
- package/dist/generative-ui/standard/feedback.d.mts +4 -4
- package/dist/generative-ui/standard/index.d.mts +5 -1
- package/dist/generative-ui/standard/inputs.d.cts +72 -72
- package/dist/generative-ui/standard/inputs.d.mts +72 -72
- package/dist/generative-ui/standard/layout.d.cts +156 -156
- package/dist/generative-ui/standard/layout.d.mts +156 -156
- package/dist/generative-ui/standard/map-helpers.cjs +104 -0
- package/dist/generative-ui/standard/map-helpers.cjs.map +1 -0
- package/dist/generative-ui/standard/map-helpers.d.cts +88 -0
- package/dist/generative-ui/standard/map-helpers.d.cts.map +1 -0
- package/dist/generative-ui/standard/map-helpers.d.mts +88 -0
- package/dist/generative-ui/standard/map-helpers.d.mts.map +1 -0
- package/dist/generative-ui/standard/map-helpers.mjs +95 -0
- package/dist/generative-ui/standard/map-helpers.mjs.map +1 -0
- package/dist/generative-ui/standard/map.d.cts +10 -10
- package/dist/generative-ui/standard/map.d.mts +10 -10
- package/dist/generative-ui/standard/media.d.cts +76 -76
- package/dist/generative-ui/standard/media.d.mts +76 -76
- package/dist/generative-ui/standard/style-helpers.cjs +151 -0
- package/dist/generative-ui/standard/style-helpers.cjs.map +1 -0
- package/dist/generative-ui/standard/style-helpers.d.cts +56 -0
- package/dist/generative-ui/standard/style-helpers.d.cts.map +1 -0
- package/dist/generative-ui/standard/style-helpers.d.mts +56 -0
- package/dist/generative-ui/standard/style-helpers.d.mts.map +1 -0
- package/dist/generative-ui/standard/style-helpers.mjs +142 -0
- package/dist/generative-ui/standard/style-helpers.mjs.map +1 -0
- package/dist/generative-ui/standard/text.d.cts +28 -28
- package/dist/generative-ui/standard/text.d.mts +28 -28
- package/dist/generative-ui/standard/url.cjs +54 -0
- package/dist/generative-ui/standard/url.cjs.map +1 -0
- package/dist/generative-ui/standard/url.d.cts +32 -0
- package/dist/generative-ui/standard/url.d.cts.map +1 -0
- package/dist/generative-ui/standard/url.d.mts +32 -0
- package/dist/generative-ui/standard/url.d.mts.map +1 -0
- package/dist/generative-ui/standard/url.mjs +50 -0
- package/dist/generative-ui/standard/url.mjs.map +1 -0
- package/dist/generative-ui/thrown.cjs +69 -0
- package/dist/generative-ui/thrown.cjs.map +1 -0
- package/dist/generative-ui/thrown.d.cts +21 -0
- package/dist/generative-ui/thrown.d.cts.map +1 -0
- package/dist/generative-ui/thrown.d.mts +21 -0
- package/dist/generative-ui/thrown.d.mts.map +1 -0
- package/dist/generative-ui/thrown.mjs +67 -0
- package/dist/generative-ui/thrown.mjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +368 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +2 -2
- package/src/__tests__/schema-render.test.ts +78 -0
- package/src/event-transforms/recorded-events.test.ts +35 -3
- package/src/event-transforms/recorded-events.ts +15 -2
- package/src/generative-ui/__tests__/clone-value-differential.test.ts +480 -0
- package/src/generative-ui/__tests__/clone-value.test.ts +226 -0
- package/src/generative-ui/clone-value.ts +511 -0
- package/src/generative-ui/index.ts +6 -2
- package/src/generative-ui/schema-render.ts +2 -1
- package/src/generative-ui/standard/__tests__/standard-helpers.test.ts +407 -0
- package/src/generative-ui/standard/chart-config.ts +434 -0
- package/src/generative-ui/standard/index.ts +36 -0
- package/src/generative-ui/standard/map-helpers.ts +155 -0
- package/src/generative-ui/standard/style-helpers.ts +170 -0
- package/src/generative-ui/standard/url.ts +51 -0
- package/src/generative-ui/thrown.ts +90 -0
- package/src/index.ts +5 -0
|
@@ -93,12 +93,12 @@ declare const cardAction: z.ZodObject<{
|
|
|
93
93
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
label: string;
|
|
96
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
97
96
|
href?: string | undefined;
|
|
97
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
label: string;
|
|
100
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
101
100
|
href?: string | undefined;
|
|
101
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
declare const entityCardSchema: z.ZodObject<{
|
|
104
104
|
title: z.ZodString;
|
|
@@ -112,10 +112,10 @@ declare const entityCardSchema: z.ZodObject<{
|
|
|
112
112
|
color: z.ZodOptional<z.ZodEnum<["secondary", "success", "danger", "warning", "info", "discovery"]>>;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
label: string;
|
|
115
|
-
color?: "
|
|
115
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
label: string;
|
|
118
|
-
color?: "
|
|
118
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
119
119
|
}>>;
|
|
120
120
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
121
121
|
ratingCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -126,57 +126,57 @@ declare const entityCardSchema: z.ZodObject<{
|
|
|
126
126
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
label: string;
|
|
129
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
130
129
|
href?: string | undefined;
|
|
130
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
label: string;
|
|
133
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
134
133
|
href?: string | undefined;
|
|
134
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
135
135
|
}>, "many">>;
|
|
136
136
|
layout: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
137
137
|
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
title: string;
|
|
140
140
|
description?: string | undefined;
|
|
141
|
+
href?: string | undefined;
|
|
142
|
+
actions?: {
|
|
143
|
+
label: string;
|
|
144
|
+
href?: string | undefined;
|
|
145
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
146
|
+
}[] | undefined;
|
|
141
147
|
width?: string | number | undefined;
|
|
142
148
|
layout?: "horizontal" | "vertical" | undefined;
|
|
143
|
-
href?: string | undefined;
|
|
144
149
|
image?: string | undefined;
|
|
145
150
|
subtitle?: string | undefined;
|
|
146
151
|
imageAspectRatio?: string | undefined;
|
|
147
152
|
meta?: string | undefined;
|
|
148
153
|
badge?: {
|
|
149
154
|
label: string;
|
|
150
|
-
color?: "
|
|
155
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
151
156
|
} | undefined;
|
|
152
157
|
rating?: number | undefined;
|
|
153
158
|
ratingCount?: number | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
title: string;
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
href?: string | undefined;
|
|
154
163
|
actions?: {
|
|
155
164
|
label: string;
|
|
156
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
157
165
|
href?: string | undefined;
|
|
166
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
158
167
|
}[] | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
title: string;
|
|
161
|
-
description?: string | undefined;
|
|
162
168
|
width?: string | number | undefined;
|
|
163
169
|
layout?: "horizontal" | "vertical" | undefined;
|
|
164
|
-
href?: string | undefined;
|
|
165
170
|
image?: string | undefined;
|
|
166
171
|
subtitle?: string | undefined;
|
|
167
172
|
imageAspectRatio?: string | undefined;
|
|
168
173
|
meta?: string | undefined;
|
|
169
174
|
badge?: {
|
|
170
175
|
label: string;
|
|
171
|
-
color?: "
|
|
176
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
172
177
|
} | undefined;
|
|
173
178
|
rating?: number | undefined;
|
|
174
179
|
ratingCount?: number | undefined;
|
|
175
|
-
actions?: {
|
|
176
|
-
label: string;
|
|
177
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
178
|
-
href?: string | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
declare const entityActionArgs: z.ZodObject<{
|
|
182
182
|
label: z.ZodString;
|
|
@@ -223,27 +223,27 @@ declare const imageGridSchema: z.ZodObject<{
|
|
|
223
223
|
gap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
224
224
|
layout: z.ZodOptional<z.ZodEnum<["grid", "bento"]>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
gap?: string | number | undefined;
|
|
227
|
-
aspectRatio?: string | undefined;
|
|
228
226
|
columns?: number | undefined;
|
|
229
|
-
layout?: "grid" | "bento" | undefined;
|
|
230
227
|
images?: {
|
|
231
228
|
url: string;
|
|
232
229
|
description?: string | undefined;
|
|
233
230
|
href?: string | undefined;
|
|
234
231
|
caption?: string | undefined;
|
|
235
232
|
}[] | undefined;
|
|
236
|
-
}, {
|
|
237
233
|
gap?: string | number | undefined;
|
|
238
234
|
aspectRatio?: string | undefined;
|
|
239
|
-
columns?: number | undefined;
|
|
240
235
|
layout?: "grid" | "bento" | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
columns?: number | undefined;
|
|
241
238
|
images?: {
|
|
242
239
|
url: string;
|
|
243
240
|
description?: string | undefined;
|
|
244
241
|
href?: string | undefined;
|
|
245
242
|
caption?: string | undefined;
|
|
246
243
|
}[] | undefined;
|
|
244
|
+
gap?: string | number | undefined;
|
|
245
|
+
aspectRatio?: string | undefined;
|
|
246
|
+
layout?: "grid" | "bento" | undefined;
|
|
247
247
|
}>;
|
|
248
248
|
/**
|
|
249
249
|
* The standard composite components, without their framework components.
|
|
@@ -364,10 +364,10 @@ declare const compositeDeclarations: {
|
|
|
364
364
|
color: z.ZodOptional<z.ZodEnum<["secondary", "success", "danger", "warning", "info", "discovery"]>>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
366
|
label: string;
|
|
367
|
-
color?: "
|
|
367
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
368
368
|
}, {
|
|
369
369
|
label: string;
|
|
370
|
-
color?: "
|
|
370
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
371
371
|
}>>;
|
|
372
372
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
373
373
|
ratingCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -378,57 +378,57 @@ declare const compositeDeclarations: {
|
|
|
378
378
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
380
|
label: string;
|
|
381
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
382
381
|
href?: string | undefined;
|
|
382
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
label: string;
|
|
385
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
386
385
|
href?: string | undefined;
|
|
386
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
387
387
|
}>, "many">>;
|
|
388
388
|
layout: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
389
389
|
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
title: string;
|
|
392
392
|
description?: string | undefined;
|
|
393
|
+
href?: string | undefined;
|
|
394
|
+
actions?: {
|
|
395
|
+
label: string;
|
|
396
|
+
href?: string | undefined;
|
|
397
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
398
|
+
}[] | undefined;
|
|
393
399
|
width?: string | number | undefined;
|
|
394
400
|
layout?: "horizontal" | "vertical" | undefined;
|
|
395
|
-
href?: string | undefined;
|
|
396
401
|
image?: string | undefined;
|
|
397
402
|
subtitle?: string | undefined;
|
|
398
403
|
imageAspectRatio?: string | undefined;
|
|
399
404
|
meta?: string | undefined;
|
|
400
405
|
badge?: {
|
|
401
406
|
label: string;
|
|
402
|
-
color?: "
|
|
407
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
403
408
|
} | undefined;
|
|
404
409
|
rating?: number | undefined;
|
|
405
410
|
ratingCount?: number | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
title: string;
|
|
413
|
+
description?: string | undefined;
|
|
414
|
+
href?: string | undefined;
|
|
406
415
|
actions?: {
|
|
407
416
|
label: string;
|
|
408
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
409
417
|
href?: string | undefined;
|
|
418
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
410
419
|
}[] | undefined;
|
|
411
|
-
}, {
|
|
412
|
-
title: string;
|
|
413
|
-
description?: string | undefined;
|
|
414
420
|
width?: string | number | undefined;
|
|
415
421
|
layout?: "horizontal" | "vertical" | undefined;
|
|
416
|
-
href?: string | undefined;
|
|
417
422
|
image?: string | undefined;
|
|
418
423
|
subtitle?: string | undefined;
|
|
419
424
|
imageAspectRatio?: string | undefined;
|
|
420
425
|
meta?: string | undefined;
|
|
421
426
|
badge?: {
|
|
422
427
|
label: string;
|
|
423
|
-
color?: "
|
|
428
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
424
429
|
} | undefined;
|
|
425
430
|
rating?: number | undefined;
|
|
426
431
|
ratingCount?: number | undefined;
|
|
427
|
-
actions?: {
|
|
428
|
-
label: string;
|
|
429
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
430
|
-
href?: string | undefined;
|
|
431
|
-
}[] | undefined;
|
|
432
432
|
}>;
|
|
433
433
|
events: {
|
|
434
434
|
onClick: {
|
|
@@ -471,27 +471,27 @@ declare const compositeDeclarations: {
|
|
|
471
471
|
gap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
472
472
|
layout: z.ZodOptional<z.ZodEnum<["grid", "bento"]>>;
|
|
473
473
|
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
gap?: string | number | undefined;
|
|
475
|
-
aspectRatio?: string | undefined;
|
|
476
474
|
columns?: number | undefined;
|
|
477
|
-
layout?: "grid" | "bento" | undefined;
|
|
478
475
|
images?: {
|
|
479
476
|
url: string;
|
|
480
477
|
description?: string | undefined;
|
|
481
478
|
href?: string | undefined;
|
|
482
479
|
caption?: string | undefined;
|
|
483
480
|
}[] | undefined;
|
|
484
|
-
}, {
|
|
485
481
|
gap?: string | number | undefined;
|
|
486
482
|
aspectRatio?: string | undefined;
|
|
487
|
-
columns?: number | undefined;
|
|
488
483
|
layout?: "grid" | "bento" | undefined;
|
|
484
|
+
}, {
|
|
485
|
+
columns?: number | undefined;
|
|
489
486
|
images?: {
|
|
490
487
|
url: string;
|
|
491
488
|
description?: string | undefined;
|
|
492
489
|
href?: string | undefined;
|
|
493
490
|
caption?: string | undefined;
|
|
494
491
|
}[] | undefined;
|
|
492
|
+
gap?: string | number | undefined;
|
|
493
|
+
aspectRatio?: string | undefined;
|
|
494
|
+
layout?: "grid" | "bento" | undefined;
|
|
495
495
|
}>;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
@@ -93,12 +93,12 @@ declare const cardAction: z.ZodObject<{
|
|
|
93
93
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
label: string;
|
|
96
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
97
96
|
href?: string | undefined;
|
|
97
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
label: string;
|
|
100
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
101
100
|
href?: string | undefined;
|
|
101
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
declare const entityCardSchema: z.ZodObject<{
|
|
104
104
|
title: z.ZodString;
|
|
@@ -112,10 +112,10 @@ declare const entityCardSchema: z.ZodObject<{
|
|
|
112
112
|
color: z.ZodOptional<z.ZodEnum<["secondary", "success", "danger", "warning", "info", "discovery"]>>;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
label: string;
|
|
115
|
-
color?: "
|
|
115
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
label: string;
|
|
118
|
-
color?: "
|
|
118
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
119
119
|
}>>;
|
|
120
120
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
121
121
|
ratingCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -126,57 +126,57 @@ declare const entityCardSchema: z.ZodObject<{
|
|
|
126
126
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
label: string;
|
|
129
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
130
129
|
href?: string | undefined;
|
|
130
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
label: string;
|
|
133
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
134
133
|
href?: string | undefined;
|
|
134
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
135
135
|
}>, "many">>;
|
|
136
136
|
layout: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
137
137
|
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
title: string;
|
|
140
140
|
description?: string | undefined;
|
|
141
|
+
href?: string | undefined;
|
|
142
|
+
actions?: {
|
|
143
|
+
label: string;
|
|
144
|
+
href?: string | undefined;
|
|
145
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
146
|
+
}[] | undefined;
|
|
141
147
|
width?: string | number | undefined;
|
|
142
148
|
layout?: "horizontal" | "vertical" | undefined;
|
|
143
|
-
href?: string | undefined;
|
|
144
149
|
image?: string | undefined;
|
|
145
150
|
subtitle?: string | undefined;
|
|
146
151
|
imageAspectRatio?: string | undefined;
|
|
147
152
|
meta?: string | undefined;
|
|
148
153
|
badge?: {
|
|
149
154
|
label: string;
|
|
150
|
-
color?: "
|
|
155
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
151
156
|
} | undefined;
|
|
152
157
|
rating?: number | undefined;
|
|
153
158
|
ratingCount?: number | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
title: string;
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
href?: string | undefined;
|
|
154
163
|
actions?: {
|
|
155
164
|
label: string;
|
|
156
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
157
165
|
href?: string | undefined;
|
|
166
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
158
167
|
}[] | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
title: string;
|
|
161
|
-
description?: string | undefined;
|
|
162
168
|
width?: string | number | undefined;
|
|
163
169
|
layout?: "horizontal" | "vertical" | undefined;
|
|
164
|
-
href?: string | undefined;
|
|
165
170
|
image?: string | undefined;
|
|
166
171
|
subtitle?: string | undefined;
|
|
167
172
|
imageAspectRatio?: string | undefined;
|
|
168
173
|
meta?: string | undefined;
|
|
169
174
|
badge?: {
|
|
170
175
|
label: string;
|
|
171
|
-
color?: "
|
|
176
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
172
177
|
} | undefined;
|
|
173
178
|
rating?: number | undefined;
|
|
174
179
|
ratingCount?: number | undefined;
|
|
175
|
-
actions?: {
|
|
176
|
-
label: string;
|
|
177
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
178
|
-
href?: string | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
declare const entityActionArgs: z.ZodObject<{
|
|
182
182
|
label: z.ZodString;
|
|
@@ -223,27 +223,27 @@ declare const imageGridSchema: z.ZodObject<{
|
|
|
223
223
|
gap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
224
224
|
layout: z.ZodOptional<z.ZodEnum<["grid", "bento"]>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
gap?: string | number | undefined;
|
|
227
|
-
aspectRatio?: string | undefined;
|
|
228
226
|
columns?: number | undefined;
|
|
229
|
-
layout?: "grid" | "bento" | undefined;
|
|
230
227
|
images?: {
|
|
231
228
|
url: string;
|
|
232
229
|
description?: string | undefined;
|
|
233
230
|
href?: string | undefined;
|
|
234
231
|
caption?: string | undefined;
|
|
235
232
|
}[] | undefined;
|
|
236
|
-
}, {
|
|
237
233
|
gap?: string | number | undefined;
|
|
238
234
|
aspectRatio?: string | undefined;
|
|
239
|
-
columns?: number | undefined;
|
|
240
235
|
layout?: "grid" | "bento" | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
columns?: number | undefined;
|
|
241
238
|
images?: {
|
|
242
239
|
url: string;
|
|
243
240
|
description?: string | undefined;
|
|
244
241
|
href?: string | undefined;
|
|
245
242
|
caption?: string | undefined;
|
|
246
243
|
}[] | undefined;
|
|
244
|
+
gap?: string | number | undefined;
|
|
245
|
+
aspectRatio?: string | undefined;
|
|
246
|
+
layout?: "grid" | "bento" | undefined;
|
|
247
247
|
}>;
|
|
248
248
|
/**
|
|
249
249
|
* The standard composite components, without their framework components.
|
|
@@ -364,10 +364,10 @@ declare const compositeDeclarations: {
|
|
|
364
364
|
color: z.ZodOptional<z.ZodEnum<["secondary", "success", "danger", "warning", "info", "discovery"]>>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
366
|
label: string;
|
|
367
|
-
color?: "
|
|
367
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
368
368
|
}, {
|
|
369
369
|
label: string;
|
|
370
|
-
color?: "
|
|
370
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
371
371
|
}>>;
|
|
372
372
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
373
373
|
ratingCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -378,57 +378,57 @@ declare const compositeDeclarations: {
|
|
|
378
378
|
variant: z.ZodOptional<z.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
380
|
label: string;
|
|
381
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
382
381
|
href?: string | undefined;
|
|
382
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
label: string;
|
|
385
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
386
385
|
href?: string | undefined;
|
|
386
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
387
387
|
}>, "many">>;
|
|
388
388
|
layout: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
389
389
|
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
title: string;
|
|
392
392
|
description?: string | undefined;
|
|
393
|
+
href?: string | undefined;
|
|
394
|
+
actions?: {
|
|
395
|
+
label: string;
|
|
396
|
+
href?: string | undefined;
|
|
397
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
398
|
+
}[] | undefined;
|
|
393
399
|
width?: string | number | undefined;
|
|
394
400
|
layout?: "horizontal" | "vertical" | undefined;
|
|
395
|
-
href?: string | undefined;
|
|
396
401
|
image?: string | undefined;
|
|
397
402
|
subtitle?: string | undefined;
|
|
398
403
|
imageAspectRatio?: string | undefined;
|
|
399
404
|
meta?: string | undefined;
|
|
400
405
|
badge?: {
|
|
401
406
|
label: string;
|
|
402
|
-
color?: "
|
|
407
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
403
408
|
} | undefined;
|
|
404
409
|
rating?: number | undefined;
|
|
405
410
|
ratingCount?: number | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
title: string;
|
|
413
|
+
description?: string | undefined;
|
|
414
|
+
href?: string | undefined;
|
|
406
415
|
actions?: {
|
|
407
416
|
label: string;
|
|
408
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
409
417
|
href?: string | undefined;
|
|
418
|
+
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
410
419
|
}[] | undefined;
|
|
411
|
-
}, {
|
|
412
|
-
title: string;
|
|
413
|
-
description?: string | undefined;
|
|
414
420
|
width?: string | number | undefined;
|
|
415
421
|
layout?: "horizontal" | "vertical" | undefined;
|
|
416
|
-
href?: string | undefined;
|
|
417
422
|
image?: string | undefined;
|
|
418
423
|
subtitle?: string | undefined;
|
|
419
424
|
imageAspectRatio?: string | undefined;
|
|
420
425
|
meta?: string | undefined;
|
|
421
426
|
badge?: {
|
|
422
427
|
label: string;
|
|
423
|
-
color?: "
|
|
428
|
+
color?: "secondary" | "success" | "info" | "warning" | "danger" | "discovery" | undefined;
|
|
424
429
|
} | undefined;
|
|
425
430
|
rating?: number | undefined;
|
|
426
431
|
ratingCount?: number | undefined;
|
|
427
|
-
actions?: {
|
|
428
|
-
label: string;
|
|
429
|
-
variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
|
|
430
|
-
href?: string | undefined;
|
|
431
|
-
}[] | undefined;
|
|
432
432
|
}>;
|
|
433
433
|
events: {
|
|
434
434
|
onClick: {
|
|
@@ -471,27 +471,27 @@ declare const compositeDeclarations: {
|
|
|
471
471
|
gap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
472
472
|
layout: z.ZodOptional<z.ZodEnum<["grid", "bento"]>>;
|
|
473
473
|
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
gap?: string | number | undefined;
|
|
475
|
-
aspectRatio?: string | undefined;
|
|
476
474
|
columns?: number | undefined;
|
|
477
|
-
layout?: "grid" | "bento" | undefined;
|
|
478
475
|
images?: {
|
|
479
476
|
url: string;
|
|
480
477
|
description?: string | undefined;
|
|
481
478
|
href?: string | undefined;
|
|
482
479
|
caption?: string | undefined;
|
|
483
480
|
}[] | undefined;
|
|
484
|
-
}, {
|
|
485
481
|
gap?: string | number | undefined;
|
|
486
482
|
aspectRatio?: string | undefined;
|
|
487
|
-
columns?: number | undefined;
|
|
488
483
|
layout?: "grid" | "bento" | undefined;
|
|
484
|
+
}, {
|
|
485
|
+
columns?: number | undefined;
|
|
489
486
|
images?: {
|
|
490
487
|
url: string;
|
|
491
488
|
description?: string | undefined;
|
|
492
489
|
href?: string | undefined;
|
|
493
490
|
caption?: string | undefined;
|
|
494
491
|
}[] | undefined;
|
|
492
|
+
gap?: string | number | undefined;
|
|
493
|
+
aspectRatio?: string | undefined;
|
|
494
|
+
layout?: "grid" | "bento" | undefined;
|
|
495
495
|
}>;
|
|
496
496
|
};
|
|
497
497
|
};
|