@bluepic/embed 0.6.11 → 0.6.13

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.
@@ -12621,6 +12621,7 @@ export declare class BluepicEmbed extends EventTarget {
12621
12621
  id: string;
12622
12622
  private app?;
12623
12623
  private destroyed;
12624
+ private onClose?;
12624
12625
  constructor(elementOrSelector: string | HTMLElement, campaignId: number | string, opts?: {
12625
12626
  templateId?: string;
12626
12627
  initData?: {
@@ -12635,6 +12636,11 @@ export declare class BluepicEmbed extends EventTarget {
12635
12636
  customThemeVars?: Partial<z.infer<typeof EmbedV2.customStyleSchema>> | ThemeInput;
12636
12637
  bearerToken?: string;
12637
12638
  password?: string;
12639
+ /**
12640
+ * Show a close button in the editor's toolbar, right of Export, and call
12641
+ * this when it is pressed. Used by `openPopup` (the popup has no header).
12642
+ */
12643
+ onClose?: () => void;
12638
12644
  });
12639
12645
  private loadCampaign;
12640
12646
  /** Unmount the editor and free the element (e.g. when its popup closes). */