@embeddable.com/sdk-core 4.1.3 → 4.1.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.
package/lib/index.esm.js CHANGED
@@ -572,7 +572,7 @@ async function generateTemporaryHookFile(ctx, libraryThemeImports, functionNames
572
572
  const templateContent = await fs.readFile(templatePath, "utf8");
573
573
  const newContent = templateContent
574
574
  .replace("{{LIBRARY_THEME_IMPORTS}}", libraryThemeImports.join("\n"))
575
- .replace("{{ARRAY_OF_LIBRARY_THEME_PROVIDERS}}", functionNames.join("\n"))
575
+ .replace("{{ARRAY_OF_LIBRARY_THEME_PROVIDERS}}", functionNames.join(",\n "))
576
576
  .replace("{{LOCAL_THEME_IMPORT}}", repoThemeImport);
577
577
  // Write to temporary hook file
578
578
  await fs.writeFile(getTempHookFilePath(ctx), newContent, "utf8");
@@ -5616,6 +5616,7 @@ const clientContextSchema = z.array(z
5616
5616
  .object({
5617
5617
  name: z.string(),
5618
5618
  clientContext: z.object({}), // can be any object
5619
+ variables: z.record(z.any()).optional(), // variables key-value pairs
5619
5620
  canvas: z.object({}).optional(),
5620
5621
  })
5621
5622
  .strict());