email-builder-online 4.1.15 → 4.1.16

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/README.md CHANGED
@@ -728,8 +728,8 @@ React Props (camelCase) and Web Component attributes (dash-case) map 1:1:
728
728
  | galleryImages | gallery-images | boolean | false | Enable image gallery |
729
729
  | locale | locale | string | - | UI language (en, es, it, en-US, es-419, it-IT). Falls back to dataLocale if not provided |
730
730
  | dataLocale | data-locale | string | - | Alternative locale prop (used as fallback if locale is not provided) |
731
- | htmlTab | html-tab | boolean | true | Show HTML tab |
732
- | jsonTab | json-tab | boolean | true | Show JSON tab |
731
+ | htmlTab | html-tab | boolean | false | Show HTML tab |
732
+ | jsonTab | json-tab | boolean | false | Show JSON tab |
733
733
  | imagePlaceholder | image-placeholder | string | - | Default placeholder for images |
734
734
  | imageUrlInput | image-url-input | boolean | true | Show the URL field in the Image block picker's Upload tab. When `false`, only the dropzone is rendered (subject to `imageUploadInput`). When both `imageUrlInput` and `imageUploadInput` are `false`, the Upload tab is hidden. |
735
735
  | imageUploadInput | image-upload-input | boolean | true | Show the drag & drop / file upload zone in the Image block picker's Upload tab. When `false`, only the URL field is rendered (subject to `imageUrlInput`). When both `imageUrlInput` and `imageUploadInput` are `false`, the Upload tab is hidden. |
@@ -741,8 +741,33 @@ React Props (camelCase) and Web Component attributes (dash-case) map 1:1:
741
741
  | unsplashEnabled | - | boolean | false | Show the built-in Unsplash picker tab (requires the backend proxy) |
742
742
  | unsplashBackendUrl | - | string | - | Override the backend URL used for Unsplash proxy calls |
743
743
  | portalContainer | - | HTMLElement | - | Container element for MUI portals (menus, dialogs); useful when mounting inside Shadow DOM |
744
- | showVersion | show-version | boolean | - | Show version indicator in the editor |
744
+ | showVersion | show-version | boolean | false | Show version indicator in the editor |
745
745
  | componentTree | component-tree | boolean | true | Show the component tree panel |
746
+ | componentsStorage | components-storage | 'backend' \| 'local' | backend | Storage backend for the Components Library Templates + Themes. `local` persists to `localStorage` (no backend required) and restricts the drawer to the Templates + Themes tabs. |
747
+ | templateSaving | template-saving | boolean | true | Show "Save as template" button and the Templates tab in the Components Library drawer |
748
+ | themeSaving | theme-saving | boolean | false | Show the "Save as theme" button in the root inspector panel |
749
+
750
+ ## Components Library Storage & Saving Flags
751
+
752
+ The Components Library drawer (Sections, Layouts, Templates, Themes, Primitives) can run against
753
+ two storage backends and exposes two independent flags to hide its "save" entry points:
754
+
755
+ ```tsx
756
+ <EmailBuilder
757
+ componentsStorage="local" // 'backend' (default) | 'local'
758
+ templateSaving={true} // default: true
759
+ themeSaving={true} // default: false
760
+ />
761
+ ```
762
+
763
+ - **`componentsStorage`** — `'backend'` (default) talks to the dev `/dev/*` HTTP API. `'local'`
764
+ persists to the browser's `localStorage` instead (no backend required) and restricts the
765
+ drawer to the Templates + Themes tabs.
766
+ - **`templateSaving`** — when `false`, hides the "Save as template" button in the root inspector
767
+ panel and the Templates tab in the Components Library drawer. Defaults to `true`.
768
+ - **`themeSaving`** — when `true`, shows the "Save as theme" button in the root inspector panel
769
+ (next to "Save as template"), letting users export the current theme to the gallery. Defaults
770
+ to `false` — pass `themeSaving={true}` to opt in.
746
771
 
747
772
  ## Internationalization (i18n)
748
773
 
@@ -69133,7 +69133,7 @@ function PUe() {
69133
69133
  return /* @__PURE__ */ m("pre", { children: JSON.stringify(e, null, " ") });
69134
69134
  }
69135
69135
  }
69136
- const MUe = wa(PUe), LUe = "email-builder-standalone", FUe = "4.1.15", Oh = {
69136
+ const MUe = wa(PUe), LUe = "email-builder-standalone", FUe = "4.1.16", Oh = {
69137
69137
  name: LUe,
69138
69138
  version: FUe
69139
69139
  };
@@ -139763,9 +139763,9 @@ function Wlt({
139763
139763
  let C = !1;
139764
139764
  return (async () => {
139765
139765
  try {
139766
- const { seedLocalLibrary: T } = await import("./seedLocalLibrary-Ct5I8GHM.js");
139766
+ const { seedLocalLibrary: T } = await import("./seedLocalLibrary-CDvbz4Dq.js");
139767
139767
  if (await T(), C) return;
139768
- const { generateMissingThumbnails: x } = await import("./lazyThumbnailGenerator-CPvTa1OS.js");
139768
+ const { generateMissingThumbnails: x } = await import("./lazyThumbnailGenerator-BSvGz0bi.js");
139769
139769
  x();
139770
139770
  } catch (T) {
139771
139771
  console.warn("[EmailBuilder] local library seeding failed", T);