@embeddable.com/sdk-react 3.8.2 → 3.8.4

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.
@@ -0,0 +1,14 @@
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);
package/lib/index.esm.js CHANGED
@@ -605,6 +605,7 @@ const componentMetaSchema = z
605
605
  type: embeddableTypeSchema,
606
606
  array: z.boolean().optional(),
607
607
  category: z.string().optional(),
608
+ required: z.boolean().optional(),
608
609
  })
609
610
  .strict()
610
611
  .array()