@embeddable.com/sdk-react 3.11.4 → 3.11.5-next.1
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/lib/index.esm.js +75 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/validate/schema/componentMetaSchema.d.ts +90 -2
- package/lib/validate/schema/componentMetaSchema.test.d.ts +1 -0
- package/package.json +2 -2
- package/lib/dynamicImportHandler.js +0 -14
- package/lib/index.js +0 -1215
- package/lib/index.js.map +0 -1
- package/lib/plugin.d.ts +0 -21
- package/lib/proxyHandler.d.ts +0 -4
- package/lib/utils/modules.d.ts +0 -13
- package/lib/validate/errorFormatter.d.ts +0 -3
|
@@ -6,7 +6,7 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6
6
|
classNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
7
|
defaultWidth: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
defaultHeight: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
inputs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
9
|
+
inputs: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
10
10
|
name: z.ZodString;
|
|
11
11
|
label: z.ZodString;
|
|
12
12
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -37,7 +37,7 @@ 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<{
|
|
40
|
+
inputs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
label: z.ZodString;
|
|
43
43
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -95,6 +95,34 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
|
|
|
95
95
|
defaultValue?: any;
|
|
96
96
|
required?: boolean | undefined;
|
|
97
97
|
supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
|
|
98
|
+
}>, {
|
|
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;
|
|
98
126
|
}>, "many">, {
|
|
99
127
|
type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
|
|
100
128
|
typeConfig: {
|
|
@@ -244,6 +272,66 @@ export declare const componentMetaSchema: z.ZodEffects<z.ZodObject<{
|
|
|
244
272
|
required?: boolean | undefined;
|
|
245
273
|
supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
|
|
246
274
|
}[] | undefined;
|
|
275
|
+
}[]>, {
|
|
276
|
+
type: "string" | "number" | "boolean" | {
|
|
277
|
+
typeConfig: {
|
|
278
|
+
toString: (...args: unknown[]) => unknown;
|
|
279
|
+
label: string;
|
|
280
|
+
};
|
|
281
|
+
} | "time" | "timeRange" | "granularity" | "dataset" | "measure" | "dimension" | "dimensionOrMeasure";
|
|
282
|
+
label: string;
|
|
283
|
+
name: string;
|
|
284
|
+
array?: boolean | undefined;
|
|
285
|
+
config?: Record<string, any> | undefined;
|
|
286
|
+
category?: string | undefined;
|
|
287
|
+
description?: string | undefined;
|
|
288
|
+
defaultValue?: any;
|
|
289
|
+
required?: boolean | undefined;
|
|
290
|
+
inputs?: {
|
|
291
|
+
type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
|
|
292
|
+
typeConfig: {
|
|
293
|
+
toString: (...args: unknown[]) => unknown;
|
|
294
|
+
label: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
label: string;
|
|
298
|
+
name: string;
|
|
299
|
+
config?: Record<string, any> | undefined;
|
|
300
|
+
description?: string | undefined;
|
|
301
|
+
defaultValue?: any;
|
|
302
|
+
required?: boolean | undefined;
|
|
303
|
+
supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
|
|
304
|
+
}[] | undefined;
|
|
305
|
+
}[], {
|
|
306
|
+
type: "string" | "number" | "boolean" | {
|
|
307
|
+
typeConfig: {
|
|
308
|
+
toString: (...args: unknown[]) => unknown;
|
|
309
|
+
label: string;
|
|
310
|
+
};
|
|
311
|
+
} | "time" | "timeRange" | "granularity" | "dataset" | "measure" | "dimension" | "dimensionOrMeasure";
|
|
312
|
+
label: string;
|
|
313
|
+
name: string;
|
|
314
|
+
array?: boolean | undefined;
|
|
315
|
+
config?: Record<string, any> | undefined;
|
|
316
|
+
category?: string | undefined;
|
|
317
|
+
description?: string | undefined;
|
|
318
|
+
defaultValue?: any;
|
|
319
|
+
required?: boolean | undefined;
|
|
320
|
+
inputs?: {
|
|
321
|
+
type: "string" | "number" | "boolean" | "time" | "timeRange" | "granularity" | {
|
|
322
|
+
typeConfig: {
|
|
323
|
+
toString: (...args: unknown[]) => unknown;
|
|
324
|
+
label: string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
label: string;
|
|
328
|
+
name: string;
|
|
329
|
+
config?: Record<string, any> | undefined;
|
|
330
|
+
description?: string | undefined;
|
|
331
|
+
defaultValue?: any;
|
|
332
|
+
required?: boolean | undefined;
|
|
333
|
+
supportedTypes?: ("string" | "number" | "boolean" | "time" | "geo" | "count" | "count_distinct" | "count_distinct_approx" | "sum" | "avg" | "min" | "max")[] | undefined;
|
|
334
|
+
}[] | undefined;
|
|
247
335
|
}[]>>;
|
|
248
336
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
337
|
name: z.ZodString;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-react",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.5-next.1",
|
|
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.
|
|
37
|
+
"@embeddable.com/sdk-core": "3.14.5-next.1",
|
|
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",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { fileURLToPath, pathToFileURL } = require("url");
|
|
2
|
-
|
|
3
|
-
async function loadModule(modulePath) {
|
|
4
|
-
try {
|
|
5
|
-
const module = await import(pathToFileURL(modulePath).href);
|
|
6
|
-
process.stdout.write(JSON.stringify(module.meta));
|
|
7
|
-
} catch (error) {
|
|
8
|
-
console.error(`Failed to load module: ${error.message}`);
|
|
9
|
-
process.exit(1);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const modulePath = fileURLToPath(process.argv[2]);
|
|
14
|
-
loadModule(modulePath);
|