@embeddable.com/sdk-react 3.11.2-next.0 → 3.11.2-next.2

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.
@@ -37,6 +37,93 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
37
37
  array: z.ZodOptional<z.ZodBoolean>;
38
38
  category: z.ZodOptional<z.ZodString>;
39
39
  required: z.ZodOptional<z.ZodBoolean>;
40
+ inputs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
41
+ name: z.ZodString;
42
+ label: z.ZodString;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ defaultValue: z.ZodOptional<z.ZodAny>;
45
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
46
+ type: z.ZodUnion<[z.ZodObject<{
47
+ typeConfig: z.ZodObject<{
48
+ label: z.ZodString;
49
+ toString: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ toString: (...args: unknown[]) => unknown;
52
+ label: string;
53
+ }, {
54
+ toString: (...args: unknown[]) => unknown;
55
+ label: string;
56
+ }>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ typeConfig: {
59
+ toString: (...args: unknown[]) => unknown;
60
+ label: string;
61
+ };
62
+ }, {
63
+ typeConfig: {
64
+ toString: (...args: unknown[]) => unknown;
65
+ label: string;
66
+ };
67
+ }>, z.ZodEnum<["string", "number", "boolean", "time", "timeRange", "granularity"]>]>;
68
+ required: z.ZodOptional<z.ZodBoolean>;
69
+ supportedTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["string", "number", "boolean", "geo", "time"]>, z.ZodEnum<["string", "time", "boolean", "number", "count", "count_distinct", "count_distinct_approx", "sum", "avg", "min", "max"]>]>, "many">>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
72
+ typeConfig: {
73
+ toString: (...args: unknown[]) => unknown;
74
+ label: string;
75
+ };
76
+ };
77
+ label: string;
78
+ name: string;
79
+ config?: Record<string, any> | undefined;
80
+ description?: string | undefined;
81
+ defaultValue?: any;
82
+ required?: boolean | undefined;
83
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
84
+ }, {
85
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
86
+ typeConfig: {
87
+ toString: (...args: unknown[]) => unknown;
88
+ label: string;
89
+ };
90
+ };
91
+ label: string;
92
+ name: string;
93
+ config?: Record<string, any> | undefined;
94
+ description?: string | undefined;
95
+ defaultValue?: any;
96
+ required?: boolean | undefined;
97
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
98
+ }>, "many">, {
99
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
100
+ typeConfig: {
101
+ toString: (...args: unknown[]) => unknown;
102
+ label: string;
103
+ };
104
+ };
105
+ label: string;
106
+ name: string;
107
+ config?: Record<string, any> | undefined;
108
+ description?: string | undefined;
109
+ defaultValue?: any;
110
+ required?: boolean | undefined;
111
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
112
+ }[], {
113
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
114
+ typeConfig: {
115
+ toString: (...args: unknown[]) => unknown;
116
+ label: string;
117
+ };
118
+ };
119
+ label: string;
120
+ name: string;
121
+ config?: Record<string, any> | undefined;
122
+ description?: string | undefined;
123
+ defaultValue?: any;
124
+ required?: boolean | undefined;
125
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
126
+ }[]>>;
40
127
  }, "strict", z.ZodTypeAny, {
41
128
  type: "string" | "number" | "boolean" | {
42
129
  typeConfig: {
@@ -52,6 +139,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
52
139
  description?: string | undefined;
53
140
  defaultValue?: any;
54
141
  required?: boolean | undefined;
142
+ inputs?: {
143
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
144
+ typeConfig: {
145
+ toString: (...args: unknown[]) => unknown;
146
+ label: string;
147
+ };
148
+ };
149
+ label: string;
150
+ name: string;
151
+ config?: Record<string, any> | undefined;
152
+ description?: string | undefined;
153
+ defaultValue?: any;
154
+ required?: boolean | undefined;
155
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
156
+ }[] | undefined;
55
157
  }, {
56
158
  type: "string" | "number" | "boolean" | {
57
159
  typeConfig: {
@@ -67,6 +169,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
67
169
  description?: string | undefined;
68
170
  defaultValue?: any;
69
171
  required?: boolean | undefined;
172
+ inputs?: {
173
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
174
+ typeConfig: {
175
+ toString: (...args: unknown[]) => unknown;
176
+ label: string;
177
+ };
178
+ };
179
+ label: string;
180
+ name: string;
181
+ config?: Record<string, any> | undefined;
182
+ description?: string | undefined;
183
+ defaultValue?: any;
184
+ required?: boolean | undefined;
185
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
186
+ }[] | undefined;
70
187
  }>, "many">, {
71
188
  type: "string" | "number" | "boolean" | {
72
189
  typeConfig: {
@@ -82,6 +199,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
82
199
  description?: string | undefined;
83
200
  defaultValue?: any;
84
201
  required?: boolean | undefined;
202
+ inputs?: {
203
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
204
+ typeConfig: {
205
+ toString: (...args: unknown[]) => unknown;
206
+ label: string;
207
+ };
208
+ };
209
+ label: string;
210
+ name: string;
211
+ config?: Record<string, any> | undefined;
212
+ description?: string | undefined;
213
+ defaultValue?: any;
214
+ required?: boolean | undefined;
215
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
216
+ }[] | undefined;
85
217
  }[], {
86
218
  type: "string" | "number" | "boolean" | {
87
219
  typeConfig: {
@@ -97,6 +229,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
97
229
  description?: string | undefined;
98
230
  defaultValue?: any;
99
231
  required?: boolean | undefined;
232
+ inputs?: {
233
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
234
+ typeConfig: {
235
+ toString: (...args: unknown[]) => unknown;
236
+ label: string;
237
+ };
238
+ };
239
+ label: string;
240
+ name: string;
241
+ config?: Record<string, any> | undefined;
242
+ description?: string | undefined;
243
+ defaultValue?: any;
244
+ required?: boolean | undefined;
245
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
246
+ }[] | undefined;
100
247
  }[]>>;
101
248
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
249
  name: z.ZodString;
@@ -267,6 +414,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
267
414
  description?: string | undefined;
268
415
  defaultValue?: any;
269
416
  required?: boolean | undefined;
417
+ inputs?: {
418
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
419
+ typeConfig: {
420
+ toString: (...args: unknown[]) => unknown;
421
+ label: string;
422
+ };
423
+ };
424
+ label: string;
425
+ name: string;
426
+ config?: Record<string, any> | undefined;
427
+ description?: string | undefined;
428
+ defaultValue?: any;
429
+ required?: boolean | undefined;
430
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
431
+ }[] | undefined;
270
432
  }[] | undefined;
271
433
  events?: {
272
434
  label: string;
@@ -321,6 +483,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
321
483
  description?: string | undefined;
322
484
  defaultValue?: any;
323
485
  required?: boolean | undefined;
486
+ inputs?: {
487
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
488
+ typeConfig: {
489
+ toString: (...args: unknown[]) => unknown;
490
+ label: string;
491
+ };
492
+ };
493
+ label: string;
494
+ name: string;
495
+ config?: Record<string, any> | undefined;
496
+ description?: string | undefined;
497
+ defaultValue?: any;
498
+ required?: boolean | undefined;
499
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
500
+ }[] | undefined;
324
501
  }[] | undefined;
325
502
  events?: {
326
503
  label: string;
@@ -375,6 +552,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
375
552
  description?: string | undefined;
376
553
  defaultValue?: any;
377
554
  required?: boolean | undefined;
555
+ inputs?: {
556
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
557
+ typeConfig: {
558
+ toString: (...args: unknown[]) => unknown;
559
+ label: string;
560
+ };
561
+ };
562
+ label: string;
563
+ name: string;
564
+ config?: Record<string, any> | undefined;
565
+ description?: string | undefined;
566
+ defaultValue?: any;
567
+ required?: boolean | undefined;
568
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
569
+ }[] | undefined;
378
570
  }[] | undefined;
379
571
  events?: {
380
572
  label: string;
@@ -429,6 +621,21 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
429
621
  description?: string | undefined;
430
622
  defaultValue?: any;
431
623
  required?: boolean | undefined;
624
+ inputs?: {
625
+ type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
626
+ typeConfig: {
627
+ toString: (...args: unknown[]) => unknown;
628
+ label: string;
629
+ };
630
+ };
631
+ label: string;
632
+ name: string;
633
+ config?: Record<string, any> | undefined;
634
+ description?: string | undefined;
635
+ defaultValue?: any;
636
+ required?: boolean | undefined;
637
+ supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
638
+ }[] | undefined;
432
639
  }[] | undefined;
433
640
  events?: {
434
641
  label: string;
@@ -0,0 +1,2 @@
1
+ import { z } from "zod";
2
+ export declare const embeddableInputSupportedTypesSchema: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["string", "number", "boolean", "geo", "time"]>, z.ZodEnum<["string", "time", "boolean", "number", "count", "count_distinct", "count_distinct_approx", "sum", "avg", "min", "max"]>]>, "many">>;
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ export declare const embeddableInputTypeSchema: z.ZodUnion<[z.ZodObject<{
3
+ typeConfig: z.ZodObject<{
4
+ label: z.ZodString;
5
+ toString: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ toString: (...args: unknown[]) => unknown;
8
+ label: string;
9
+ }, {
10
+ toString: (...args: unknown[]) => unknown;
11
+ label: string;
12
+ }>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ typeConfig: {
15
+ toString: (...args: unknown[]) => unknown;
16
+ label: string;
17
+ };
18
+ }, {
19
+ typeConfig: {
20
+ toString: (...args: unknown[]) => unknown;
21
+ label: string;
22
+ };
23
+ }>, z.ZodEnum<["string", "number", "boolean", "time", "timeRange", "granularity"]>]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-react",
3
- "version": "3.11.2-next.0",
3
+ "version": "3.11.2-next.2",
4
4
  "description": "Embeddable SDK React plugin responsible for React components bundling.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -34,7 +34,7 @@
34
34
  "@babel/generator": "^7.23.0",
35
35
  "@babel/parser": "^7.26.2",
36
36
  "@babel/traverse": "^7.24.7",
37
- "@embeddable.com/sdk-core": "3.14.2-next.0",
37
+ "@embeddable.com/sdk-core": "3.14.2-next.2",
38
38
  "@embeddable.com/sdk-utils": "0.8.0",
39
39
  "@happy-dom/global-registrator": "^15.11.0",
40
40
  "@vitejs/plugin-react": "^4.3.2",