@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/README.md +2 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/theme.css +718 -10
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ media library, fonts, and storage backend via simple provider interfaces.
|
|
|
15
15
|
- Background removal (via optional `@imgly/background-removal` peer dep)
|
|
16
16
|
- Undo / redo, zoom / pan, autosave
|
|
17
17
|
- Themable via CSS variables — bring your own colors
|
|
18
|
+
- Zero-conflict CSS — styles are securely scoped to `[data-de-root]`, guaranteeing no interference with your host app's Bootstrap or Tailwind classes.
|
|
19
|
+
- Fully flexible UI — optional `onBack` prop (hides the back button automatically if omitted).
|
|
18
20
|
- TypeScript-first, strict types
|
|
19
21
|
- Next.js App Router compatible (components ship with `'use client'`)
|
|
20
22
|
- ~150 KB gzipped (excluding React and Fabric.js)
|
package/dist/index.cjs
CHANGED
|
@@ -12601,7 +12601,7 @@ function Toolbar({
|
|
|
12601
12601
|
WebkitBackdropFilter: "blur(20px)"
|
|
12602
12602
|
},
|
|
12603
12603
|
children: [
|
|
12604
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12604
|
+
onBack && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12605
12605
|
"button",
|
|
12606
12606
|
{
|
|
12607
12607
|
onClick: () => antd.Modal.confirm({
|
|
@@ -15318,7 +15318,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
|
|
|
15318
15318
|
const { setHasUnsavedChanges } = useAutoSave(editor, canvasBg, workspaceBg, sceneKey);
|
|
15319
15319
|
const handleBack = React.useCallback(() => {
|
|
15320
15320
|
clearAutosave(sceneKey);
|
|
15321
|
-
onBack();
|
|
15321
|
+
if (onBack) onBack();
|
|
15322
15322
|
}, [onBack, sceneKey]);
|
|
15323
15323
|
const [settings, setSettings] = React.useState(() => {
|
|
15324
15324
|
return getStorageSafe("studio_settings", { showGrid: false, snapGrid: false, railSide: "left" });
|
|
@@ -15513,7 +15513,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
|
|
|
15513
15513
|
onExport: handleExport,
|
|
15514
15514
|
settings,
|
|
15515
15515
|
onSettings: handleSettings,
|
|
15516
|
-
onBack: handleBack,
|
|
15516
|
+
onBack: onBack ? handleBack : void 0,
|
|
15517
15517
|
canvasBg,
|
|
15518
15518
|
onBgChange: setCanvasBg,
|
|
15519
15519
|
workspaceBg,
|
|
@@ -15529,7 +15529,7 @@ function DesignEditorInner({ onBack, initialScene, className, libraryPanel, titl
|
|
|
15529
15529
|
onTogglePanel: setActivePanel
|
|
15530
15530
|
}
|
|
15531
15531
|
),
|
|
15532
|
-
activePanel && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: 320, background: "
|
|
15532
|
+
activePanel && /* @__PURE__ */ jsxRuntime.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: [
|
|
15533
15533
|
activePanel === "library" && (libraryPanel ? typeof libraryPanel === "function" ? libraryPanel({ onAddMedia: handleAddMedia }) : libraryPanel : /* @__PURE__ */ jsxRuntime.jsx(LibraryPanel, {})),
|
|
15534
15534
|
activePanel === "text" && /* @__PURE__ */ jsxRuntime.jsx(TextPanel, { onAddText: handleAddText }),
|
|
15535
15535
|
activePanel === "shapes" && /* @__PURE__ */ jsxRuntime.jsx(ShapesPanel, { onAddShape: (src) => addImageToCanvas(src) }),
|
|
@@ -15612,7 +15612,7 @@ function DesignEditor({
|
|
|
15612
15612
|
}
|
|
15613
15613
|
|
|
15614
15614
|
// src/index.ts
|
|
15615
|
-
var VERSION = "0.0.
|
|
15615
|
+
var VERSION = "1.0.0-beta.3";
|
|
15616
15616
|
/*! Bundled license information:
|
|
15617
15617
|
|
|
15618
15618
|
lodash/lodash.js:
|