@copilotkit/shared 2.0.0-rc.38 → 2.0.0-rc.39
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/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/composites.d.cts +2 -2
- package/dist/generative-ui/standard/composites.d.mts +2 -2
- package/dist/generative-ui/standard/declarations.d.cts +68 -68
- package/dist/generative-ui/standard/declarations.d.mts +68 -68
- package/dist/generative-ui/standard/index.d.mts +5 -1
- package/dist/generative-ui/standard/inputs.d.cts +22 -22
- package/dist/generative-ui/standard/inputs.d.mts +22 -22
- package/dist/generative-ui/standard/layout.d.cts +90 -90
- package/dist/generative-ui/standard/layout.d.mts +90 -90
- 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/media.d.cts +6 -6
- package/dist/generative-ui/standard/media.d.mts +6 -6
- 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 +14 -14
- package/dist/generative-ui/standard/text.d.mts +14 -14
- 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 +1 -1
- package/src/__tests__/schema-render.test.ts +78 -0
- 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
|
@@ -28,14 +28,14 @@ declare const buttonSchema: z.ZodObject<{
|
|
|
28
28
|
text: z.ZodOptional<z.ZodString>;
|
|
29
29
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
30
30
|
default: "default";
|
|
31
|
-
soft: "soft";
|
|
32
31
|
primary: "primary";
|
|
32
|
+
soft: "soft";
|
|
33
33
|
borderless: "borderless";
|
|
34
34
|
}>>;
|
|
35
35
|
color: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
danger: "danger";
|
|
37
|
-
secondary: "secondary";
|
|
38
36
|
primary: "primary";
|
|
37
|
+
secondary: "secondary";
|
|
38
|
+
danger: "danger";
|
|
39
39
|
}>>;
|
|
40
40
|
size: z.ZodOptional<z.ZodEnum<{
|
|
41
41
|
sm: "sm";
|
|
@@ -90,17 +90,15 @@ declare const pressableSchema: z.ZodObject<{
|
|
|
90
90
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
91
91
|
default: "default";
|
|
92
92
|
success: "success";
|
|
93
|
-
subtle: "subtle";
|
|
94
|
-
strong: "strong";
|
|
95
93
|
info: "info";
|
|
96
94
|
warning: "warning";
|
|
97
95
|
caution: "caution";
|
|
98
96
|
danger: "danger";
|
|
99
97
|
discovery: "discovery";
|
|
98
|
+
subtle: "subtle";
|
|
99
|
+
strong: "strong";
|
|
100
100
|
}>>;
|
|
101
101
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
102
|
-
"2xs": "2xs";
|
|
103
|
-
xs: "xs";
|
|
104
102
|
sm: "sm";
|
|
105
103
|
md: "md";
|
|
106
104
|
lg: "lg";
|
|
@@ -108,6 +106,8 @@ declare const pressableSchema: z.ZodObject<{
|
|
|
108
106
|
"2xl": "2xl";
|
|
109
107
|
"3xl": "3xl";
|
|
110
108
|
"4xl": "4xl";
|
|
109
|
+
"2xs": "2xs";
|
|
110
|
+
xs: "xs";
|
|
111
111
|
full: "full";
|
|
112
112
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
113
113
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -166,17 +166,15 @@ declare const formSchema: z.ZodObject<{
|
|
|
166
166
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
167
167
|
default: "default";
|
|
168
168
|
success: "success";
|
|
169
|
-
subtle: "subtle";
|
|
170
|
-
strong: "strong";
|
|
171
169
|
info: "info";
|
|
172
170
|
warning: "warning";
|
|
173
171
|
caution: "caution";
|
|
174
172
|
danger: "danger";
|
|
175
173
|
discovery: "discovery";
|
|
174
|
+
subtle: "subtle";
|
|
175
|
+
strong: "strong";
|
|
176
176
|
}>>;
|
|
177
177
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
178
|
-
"2xs": "2xs";
|
|
179
|
-
xs: "xs";
|
|
180
178
|
sm: "sm";
|
|
181
179
|
md: "md";
|
|
182
180
|
lg: "lg";
|
|
@@ -184,6 +182,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
184
182
|
"2xl": "2xl";
|
|
185
183
|
"3xl": "3xl";
|
|
186
184
|
"4xl": "4xl";
|
|
185
|
+
"2xs": "2xs";
|
|
186
|
+
xs: "xs";
|
|
187
187
|
full: "full";
|
|
188
188
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
189
189
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -553,14 +553,14 @@ declare const inputDeclarations: {
|
|
|
553
553
|
text: z.ZodOptional<z.ZodString>;
|
|
554
554
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
555
555
|
default: "default";
|
|
556
|
-
soft: "soft";
|
|
557
556
|
primary: "primary";
|
|
557
|
+
soft: "soft";
|
|
558
558
|
borderless: "borderless";
|
|
559
559
|
}>>;
|
|
560
560
|
color: z.ZodOptional<z.ZodEnum<{
|
|
561
|
-
danger: "danger";
|
|
562
|
-
secondary: "secondary";
|
|
563
561
|
primary: "primary";
|
|
562
|
+
secondary: "secondary";
|
|
563
|
+
danger: "danger";
|
|
564
564
|
}>>;
|
|
565
565
|
size: z.ZodOptional<z.ZodEnum<{
|
|
566
566
|
sm: "sm";
|
|
@@ -628,17 +628,15 @@ declare const inputDeclarations: {
|
|
|
628
628
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
629
629
|
default: "default";
|
|
630
630
|
success: "success";
|
|
631
|
-
subtle: "subtle";
|
|
632
|
-
strong: "strong";
|
|
633
631
|
info: "info";
|
|
634
632
|
warning: "warning";
|
|
635
633
|
caution: "caution";
|
|
636
634
|
danger: "danger";
|
|
637
635
|
discovery: "discovery";
|
|
636
|
+
subtle: "subtle";
|
|
637
|
+
strong: "strong";
|
|
638
638
|
}>>;
|
|
639
639
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
640
|
-
"2xs": "2xs";
|
|
641
|
-
xs: "xs";
|
|
642
640
|
sm: "sm";
|
|
643
641
|
md: "md";
|
|
644
642
|
lg: "lg";
|
|
@@ -646,6 +644,8 @@ declare const inputDeclarations: {
|
|
|
646
644
|
"2xl": "2xl";
|
|
647
645
|
"3xl": "3xl";
|
|
648
646
|
"4xl": "4xl";
|
|
647
|
+
"2xs": "2xs";
|
|
648
|
+
xs: "xs";
|
|
649
649
|
full: "full";
|
|
650
650
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
651
651
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -720,17 +720,15 @@ declare const inputDeclarations: {
|
|
|
720
720
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
721
721
|
default: "default";
|
|
722
722
|
success: "success";
|
|
723
|
-
subtle: "subtle";
|
|
724
|
-
strong: "strong";
|
|
725
723
|
info: "info";
|
|
726
724
|
warning: "warning";
|
|
727
725
|
caution: "caution";
|
|
728
726
|
danger: "danger";
|
|
729
727
|
discovery: "discovery";
|
|
728
|
+
subtle: "subtle";
|
|
729
|
+
strong: "strong";
|
|
730
730
|
}>>;
|
|
731
731
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
732
|
-
"2xs": "2xs";
|
|
733
|
-
xs: "xs";
|
|
734
732
|
sm: "sm";
|
|
735
733
|
md: "md";
|
|
736
734
|
lg: "lg";
|
|
@@ -738,6 +736,8 @@ declare const inputDeclarations: {
|
|
|
738
736
|
"2xl": "2xl";
|
|
739
737
|
"3xl": "3xl";
|
|
740
738
|
"4xl": "4xl";
|
|
739
|
+
"2xs": "2xs";
|
|
740
|
+
xs: "xs";
|
|
741
741
|
full: "full";
|
|
742
742
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
743
743
|
topLeft: z.ZodOptional<z.ZodString>;
|