@fastlabai/design-editor 1.0.0-beta.2 → 1.0.0-beta.3

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/dist/index.d.cts CHANGED
@@ -381,6 +381,6 @@ declare function DesignEditor({ initialScene, sceneKey, onBack, onExport, mediaP
381
381
  * @packageDocumentation
382
382
  */
383
383
  /** Current package version. */
384
- declare const VERSION = "0.0.0";
384
+ declare const VERSION = "1.0.0-beta.3";
385
385
 
386
386
  export { type BackgroundRemovalProvider, DesignEditor, type DesignEditorProps, type FontDescriptor, type FontProvider, type ILayer, type IScene, type MediaItem, type MediaListResult, type MediaProvider, type PersistenceProvider, VERSION, createGoogleFontsProvider, createImglyBackgroundRemoval, createLocalStoragePersistence, createNullMediaProvider };
package/dist/index.d.ts CHANGED
@@ -381,6 +381,6 @@ declare function DesignEditor({ initialScene, sceneKey, onBack, onExport, mediaP
381
381
  * @packageDocumentation
382
382
  */
383
383
  /** Current package version. */
384
- declare const VERSION = "0.0.0";
384
+ declare const VERSION = "1.0.0-beta.3";
385
385
 
386
386
  export { type BackgroundRemovalProvider, DesignEditor, type DesignEditorProps, type FontDescriptor, type FontProvider, type ILayer, type IScene, type MediaItem, type MediaListResult, type MediaProvider, type PersistenceProvider, VERSION, createGoogleFontsProvider, createImglyBackgroundRemoval, createLocalStoragePersistence, createNullMediaProvider };
package/dist/index.js CHANGED
@@ -12577,7 +12577,7 @@ function Toolbar({
12577
12577
  WebkitBackdropFilter: "blur(20px)"
12578
12578
  },
12579
12579
  children: [
12580
- /* @__PURE__ */ jsxs(
12580
+ onBack && /* @__PURE__ */ jsxs(
12581
12581
  "button",
12582
12582
  {
12583
12583
  onClick: () => Modal.confirm({
@@ -15294,7 +15294,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
15294
15294
  const { setHasUnsavedChanges } = useAutoSave(editor, canvasBg, workspaceBg, sceneKey);
15295
15295
  const handleBack = useCallback(() => {
15296
15296
  clearAutosave(sceneKey);
15297
- onBack();
15297
+ if (onBack) onBack();
15298
15298
  }, [onBack, sceneKey]);
15299
15299
  const [settings, setSettings] = useState(() => {
15300
15300
  return getStorageSafe("studio_settings", { showGrid: false, snapGrid: false, railSide: "left" });
@@ -15489,7 +15489,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
15489
15489
  onExport: handleExport,
15490
15490
  settings,
15491
15491
  onSettings: handleSettings,
15492
- onBack: handleBack,
15492
+ onBack: onBack ? handleBack : void 0,
15493
15493
  canvasBg,
15494
15494
  onBgChange: setCanvasBg,
15495
15495
  workspaceBg,
@@ -15505,7 +15505,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
15505
15505
  onTogglePanel: setActivePanel
15506
15506
  }
15507
15507
  ),
15508
- activePanel && /* @__PURE__ */ jsxs("div", { style: { width: 320, background: "#16213e", borderRight: "1px solid #0f3460", display: "flex", flexDirection: "column", zIndex: 10 }, children: [
15508
+ activePanel && /* @__PURE__ */ jsxs("div", { style: { width: 320, background: "var(--color-surface, var(--de-color-bg-elevated))", borderRight: "1px solid var(--color-border, var(--de-color-border))", display: "flex", flexDirection: "column", zIndex: 10 }, children: [
15509
15509
  activePanel === "library" && (libraryPanel ? typeof libraryPanel === "function" ? libraryPanel({ onAddMedia: handleAddMedia }) : libraryPanel : /* @__PURE__ */ jsx(LibraryPanel, {})),
15510
15510
  activePanel === "text" && /* @__PURE__ */ jsx(TextPanel, { onAddText: handleAddText }),
15511
15511
  activePanel === "shapes" && /* @__PURE__ */ jsx(ShapesPanel, { onAddShape: (src) => addImageToCanvas(src) }),
@@ -15588,7 +15588,7 @@ function DesignEditor({
15588
15588
  }
15589
15589
 
15590
15590
  // src/index.ts
15591
- var VERSION = "0.0.0";
15591
+ var VERSION = "1.0.0-beta.3";
15592
15592
  /*! Bundled license information:
15593
15593
 
15594
15594
  lodash/lodash.js: