@tangle-network/agent-app 0.60.235 → 0.60.237
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/{DesignCanvas-SNE3H3TH.js → DesignCanvas-OW3W2QXW.js} +2 -2
- package/dist/{DesignCanvasEditor-G5O75CUT.js → DesignCanvasEditor-TCHZF25W.js} +3 -3
- package/dist/VaultPane-RXL3WLA2.js +7 -0
- package/dist/assistant/index.js +7 -7
- package/dist/chat-react/index.js +4 -4
- package/dist/{chunk-BNFUJNPS.js → chunk-A77IBQ7S.js} +456 -431
- package/dist/chunk-A77IBQ7S.js.map +1 -0
- package/dist/{chunk-JYIMW5U5.js → chunk-BGDQ7245.js} +3571 -3546
- package/dist/chunk-BGDQ7245.js.map +1 -0
- package/dist/{chunk-232KA6MR.js → chunk-CI53V6DD.js} +3 -3
- package/dist/{chunk-4JAXSEYW.js → chunk-DLVMKDFX.js} +3 -3
- package/dist/{chunk-I57SNMX4.js → chunk-EWOJATDS.js} +3 -3
- package/dist/{chunk-JYVUFRRV.js → chunk-FUZETA6Z.js} +2 -2
- package/dist/{chunk-P2NJIDLE.js → chunk-JH3CKHF4.js} +380 -366
- package/dist/chunk-JH3CKHF4.js.map +1 -0
- package/dist/{chunk-XIN7DOAB.js → chunk-R4X5474U.js} +35 -33
- package/dist/chunk-R4X5474U.js.map +1 -0
- package/dist/{chunk-IDQU36M5.js → chunk-RL3Z747H.js} +708 -659
- package/dist/chunk-RL3Z747H.js.map +1 -0
- package/dist/{chunk-3KXYYAY4.js → chunk-VBWYH7UZ.js} +243 -232
- package/dist/chunk-VBWYH7UZ.js.map +1 -0
- package/dist/{chunk-5IZRAZEZ.js → chunk-ZDPUC6CM.js} +3 -3
- package/dist/design-canvas-react/components/Toolbar.d.ts +1 -2
- package/dist/design-canvas-react/components/toolbar-fields.d.ts +65 -0
- package/dist/design-canvas-react/components/toolbar-page-controls.d.ts +20 -0
- package/dist/design-canvas-react/components/toolbar-selection-controls.d.ts +22 -0
- package/dist/design-canvas-react/components/use-workspace-keyboard.d.ts +24 -0
- package/dist/design-canvas-react/components/use-workspace-viewport.d.ts +16 -0
- package/dist/design-canvas-react/components/workspace-gesture-state.d.ts +10 -0
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/{mention-editor-6FJ6HRSN.js → mention-editor-B23OMFT2.js} +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/settings-react/index.js +1 -1
- package/dist/studio-react/index.js +1 -1
- package/dist/vault/SourceEditor.d.ts +8 -0
- package/dist/vault/VaultCreateDialog.d.ts +14 -0
- package/dist/vault/VaultDocumentToolbar.d.ts +29 -0
- package/dist/vault/VaultPaneNavigation.d.ts +10 -0
- package/dist/vault/VaultPaneStates.d.ts +59 -0
- package/dist/vault/VaultTreePanel.d.ts +19 -0
- package/dist/vault/index.js +1 -1
- package/dist/vault/lazy.js +1 -1
- package/dist/vault/useVaultDockPlacement.d.ts +5 -0
- package/dist/vault/useVaultSearch.d.ts +13 -0
- package/dist/vault/vault-tree-paths.d.ts +12 -0
- package/dist/web-react/agent-profile-editor.js +4 -4
- package/dist/web-react/chat-composer-types.d.ts +301 -0
- package/dist/web-react/chat-composer.d.ts +2 -300
- package/dist/web-react/chat-empty-state.d.ts +27 -0
- package/dist/web-react/chat-message-body.d.ts +23 -0
- package/dist/web-react/chat-message-metrics.d.ts +6 -0
- package/dist/web-react/chat-message-types.d.ts +158 -0
- package/dist/web-react/chat-messages.d.ts +17 -0
- package/dist/web-react/chat-tool-call.d.ts +31 -0
- package/dist/web-react/composer-glyphs.d.ts +28 -0
- package/dist/web-react/index.d.ts +6 -245
- package/dist/web-react/index.js +7 -7
- package/dist/web-react/record-grid-editors.d.ts +31 -0
- package/dist/web-react/record-grid-review-actions.d.ts +13 -0
- package/dist/web-react/record-grid-source-marker.d.ts +27 -0
- package/dist/web-react/record-grid-types.d.ts +86 -0
- package/dist/web-react/record-grid.d.ts +2 -85
- package/dist/web-react/run-drill-in.d.ts +28 -0
- package/dist/web-react/use-composer-commands.d.ts +25 -0
- package/dist/web-react/use-composer-file-intake.d.ts +20 -0
- package/dist/web-react/use-composer-send.d.ts +34 -0
- package/dist/workspace-react/index.js +3 -3
- package/package.json +1 -1
- package/dist/VaultPane-QEG35UAZ.js +0 -7
- package/dist/chunk-3KXYYAY4.js.map +0 -1
- package/dist/chunk-BNFUJNPS.js.map +0 -1
- package/dist/chunk-IDQU36M5.js.map +0 -1
- package/dist/chunk-JYIMW5U5.js.map +0 -1
- package/dist/chunk-P2NJIDLE.js.map +0 -1
- package/dist/chunk-XIN7DOAB.js.map +0 -1
- /package/dist/{DesignCanvas-SNE3H3TH.js.map → DesignCanvas-OW3W2QXW.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-G5O75CUT.js.map → DesignCanvasEditor-TCHZF25W.js.map} +0 -0
- /package/dist/{VaultPane-QEG35UAZ.js.map → VaultPane-RXL3WLA2.js.map} +0 -0
- /package/dist/{chunk-232KA6MR.js.map → chunk-CI53V6DD.js.map} +0 -0
- /package/dist/{chunk-4JAXSEYW.js.map → chunk-DLVMKDFX.js.map} +0 -0
- /package/dist/{chunk-I57SNMX4.js.map → chunk-EWOJATDS.js.map} +0 -0
- /package/dist/{chunk-JYVUFRRV.js.map → chunk-FUZETA6Z.js.map} +0 -0
- /package/dist/{chunk-5IZRAZEZ.js.map → chunk-ZDPUC6CM.js.map} +0 -0
- /package/dist/{mention-editor-6FJ6HRSN.js.map → mention-editor-B23OMFT2.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-JK7R7BZQ.js";
|
|
23
23
|
|
|
24
24
|
// src/design-canvas-react/components/DesignCanvas.tsx
|
|
25
|
-
import { useCallback as useCallback2, useEffect as useEffect3, useMemo, useRef as useRef5, useState as
|
|
25
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useMemo, useRef as useRef5, useState as useState7, useSyncExternalStore } from "react";
|
|
26
26
|
|
|
27
27
|
// src/design-canvas-react/components/BrandKnot.tsx
|
|
28
28
|
import { lazy, Suspense } from "react";
|
|
@@ -836,9 +836,9 @@ function GuidesCanvasOverlay({ guides, zoom, scrollLeft, scrollTop }) {
|
|
|
836
836
|
);
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
-
// src/design-canvas-react/components/
|
|
839
|
+
// src/design-canvas-react/components/toolbar-fields.tsx
|
|
840
840
|
import { useEffect as useEffect2, useRef as useRef3, useState as useState3 } from "react";
|
|
841
|
-
import {
|
|
841
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
842
842
|
var FONT_FAMILIES = [
|
|
843
843
|
"Inter",
|
|
844
844
|
"Arial",
|
|
@@ -1087,106 +1087,10 @@ function ColorSwatch({ label, value, onCommit, disabled, none = false }) {
|
|
|
1087
1087
|
)
|
|
1088
1088
|
] });
|
|
1089
1089
|
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
mode = "edit",
|
|
1095
|
-
canUndo,
|
|
1096
|
-
canRedo,
|
|
1097
|
-
gridEnabled,
|
|
1098
|
-
snapEnabled,
|
|
1099
|
-
showRulers,
|
|
1100
|
-
showBleed,
|
|
1101
|
-
onUndo,
|
|
1102
|
-
onRedo,
|
|
1103
|
-
onToggleGrid,
|
|
1104
|
-
onToggleSnap,
|
|
1105
|
-
onToggleRulers,
|
|
1106
|
-
onToggleBleed,
|
|
1107
|
-
onSetAttrs,
|
|
1108
|
-
onSetPageProps,
|
|
1109
|
-
onSetPageGuides,
|
|
1110
|
-
onReorder,
|
|
1111
|
-
onGroup,
|
|
1112
|
-
onUngroup,
|
|
1113
|
-
onDelete,
|
|
1114
|
-
onBindSlot,
|
|
1115
|
-
pageSizeLabel = "Page size",
|
|
1116
|
-
enableBleedLabel = "Show print bleed"
|
|
1117
|
-
}) {
|
|
1118
|
-
const hasSelection = selectedElements.length > 0;
|
|
1119
|
-
const single = selectedElements.length === 1 ? selectedElements[0] : null;
|
|
1120
|
-
const allSameKind = selectedElements.length > 0 && selectedElements.every((e) => e.kind === selectedElements[0].kind);
|
|
1121
|
-
const firstKind = selectedElements[0]?.kind;
|
|
1122
|
-
function patchAll(attrs) {
|
|
1123
|
-
for (const el of selectedElements) onSetAttrs(el.id, attrs);
|
|
1124
|
-
}
|
|
1125
|
-
function reorderSingle(direction) {
|
|
1126
|
-
if (!single) return;
|
|
1127
|
-
onReorder(single.id, 0, page.elements.length, direction);
|
|
1128
|
-
}
|
|
1129
|
-
const selectedIds = selectedElements.map((e) => e.id);
|
|
1130
|
-
const isGroup = single?.kind === "group";
|
|
1131
|
-
const groupable = selectedElements.length >= 2;
|
|
1132
|
-
const review = mode === "review";
|
|
1133
|
-
return /* @__PURE__ */ jsxs5("div", { className: "flex min-h-11 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 border-b border-[var(--border-default)] bg-[var(--bg-input)] px-3 py-1", children: [
|
|
1134
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
1135
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-1", role: "group", "aria-label": "History", children: [
|
|
1136
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Undo", disabled: !canUndo || !canWrite, onClick: onUndo, className: BTN, children: /* @__PURE__ */ jsx7(UndoGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1137
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Redo", disabled: !canRedo || !canWrite, onClick: onRedo, className: BTN, children: /* @__PURE__ */ jsx7(RedoGlyph, { className: "h-3.5 w-3.5" }) })
|
|
1138
|
-
] }),
|
|
1139
|
-
!review ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1140
|
-
SEP,
|
|
1141
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-1", role: "group", "aria-label": "View", children: [
|
|
1142
|
-
/* @__PURE__ */ jsx7("span", { className: `${FIELD_LABEL} mr-0.5 hidden md:inline`, "aria-hidden": true, children: "View" }),
|
|
1143
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Toggle rulers", "aria-pressed": showRulers, onClick: onToggleRulers, className: showRulers ? BTN_ACTIVE : BTN, title: "Rulers", children: /* @__PURE__ */ jsx7(RulerGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1144
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Toggle grid", "aria-pressed": gridEnabled, onClick: onToggleGrid, className: gridEnabled ? BTN_ACTIVE : BTN, title: "Grid", children: /* @__PURE__ */ jsx7(GridGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1145
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Toggle snap", "aria-pressed": snapEnabled, onClick: onToggleSnap, className: snapEnabled ? BTN_ACTIVE : BTN, title: "Snap to guides", children: /* @__PURE__ */ jsx7(MagnetGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1146
|
-
/* @__PURE__ */ jsx7("button", { type: "button", "aria-label": "Toggle bleed overlay", "aria-pressed": showBleed, onClick: onToggleBleed, className: showBleed ? BTN_ACTIVE : BTN, disabled: !page.bleed, title: "Show print bleed", children: /* @__PURE__ */ jsx7(BleedGlyph, { className: "h-3.5 w-3.5" }) })
|
|
1147
|
-
] })
|
|
1148
|
-
] }) : null
|
|
1149
|
-
] }),
|
|
1150
|
-
/* @__PURE__ */ jsx7("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: hasSelection ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1151
|
-
SEP,
|
|
1152
|
-
/* @__PURE__ */ jsx7(
|
|
1153
|
-
SelectionControls,
|
|
1154
|
-
{
|
|
1155
|
-
elements: selectedElements,
|
|
1156
|
-
single,
|
|
1157
|
-
isGroup,
|
|
1158
|
-
groupable,
|
|
1159
|
-
allSameKind,
|
|
1160
|
-
firstKind,
|
|
1161
|
-
canWrite,
|
|
1162
|
-
review,
|
|
1163
|
-
patchAll,
|
|
1164
|
-
reorderSingle,
|
|
1165
|
-
onGroup: () => onGroup(selectedIds),
|
|
1166
|
-
onUngroup: () => {
|
|
1167
|
-
if (single) onUngroup(single.id);
|
|
1168
|
-
},
|
|
1169
|
-
onDelete: () => onDelete(selectedIds),
|
|
1170
|
-
onBindSlot: single ? (slot) => onBindSlot(single.id, slot) : void 0,
|
|
1171
|
-
currentSlot: single?.slot ?? null
|
|
1172
|
-
}
|
|
1173
|
-
)
|
|
1174
|
-
] }) : !review ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1175
|
-
SEP,
|
|
1176
|
-
/* @__PURE__ */ jsx7(
|
|
1177
|
-
PagePropsControls,
|
|
1178
|
-
{
|
|
1179
|
-
page,
|
|
1180
|
-
canWrite,
|
|
1181
|
-
onSetPageProps,
|
|
1182
|
-
onSetPageGuides,
|
|
1183
|
-
pageSizeLabel,
|
|
1184
|
-
enableBleedLabel
|
|
1185
|
-
}
|
|
1186
|
-
)
|
|
1187
|
-
] }) : null })
|
|
1188
|
-
] });
|
|
1189
|
-
}
|
|
1090
|
+
|
|
1091
|
+
// src/design-canvas-react/components/toolbar-selection-controls.tsx
|
|
1092
|
+
import { useState as useState4 } from "react";
|
|
1093
|
+
import { Fragment as Fragment4, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1190
1094
|
function SelectionControls({
|
|
1191
1095
|
elements,
|
|
1192
1096
|
single,
|
|
@@ -1204,16 +1108,16 @@ function SelectionControls({
|
|
|
1204
1108
|
onBindSlot,
|
|
1205
1109
|
currentSlot
|
|
1206
1110
|
}) {
|
|
1207
|
-
const [slotPopoverOpen, setSlotPopoverOpen] =
|
|
1208
|
-
const [slotInput, setSlotInput] =
|
|
1111
|
+
const [slotPopoverOpen, setSlotPopoverOpen] = useState4(false);
|
|
1112
|
+
const [slotInput, setSlotInput] = useState4("");
|
|
1209
1113
|
const firstEl = elements[0];
|
|
1210
|
-
return /* @__PURE__ */
|
|
1211
|
-
allSameKind && firstKind === "text" && single ? /* @__PURE__ */
|
|
1212
|
-
allSameKind && firstKind === "rect" && single ? /* @__PURE__ */
|
|
1213
|
-
allSameKind && firstKind === "ellipse" && single ? /* @__PURE__ */
|
|
1214
|
-
allSameKind && firstKind === "image" && single ? /* @__PURE__ */
|
|
1114
|
+
return /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1115
|
+
allSameKind && firstKind === "text" && single ? /* @__PURE__ */ jsx8(TextControls, { element: single, canWrite, onPatch: (attrs) => patchAll(attrs) }) : null,
|
|
1116
|
+
allSameKind && firstKind === "rect" && single ? /* @__PURE__ */ jsx8(ShapeControls, { element: single, canWrite, onPatch: (attrs) => patchAll(attrs), showCornerRadius: true }) : null,
|
|
1117
|
+
allSameKind && firstKind === "ellipse" && single ? /* @__PURE__ */ jsx8(ShapeControls, { element: single, canWrite, onPatch: (attrs) => patchAll(attrs), showCornerRadius: false }) : null,
|
|
1118
|
+
allSameKind && firstKind === "image" && single ? /* @__PURE__ */ jsx8(ImageControls, { element: single, canWrite, onPatch: (attrs) => patchAll(attrs) }) : null,
|
|
1215
1119
|
SEP,
|
|
1216
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ jsx8(
|
|
1217
1121
|
NumberInput,
|
|
1218
1122
|
{
|
|
1219
1123
|
label: "Opacity",
|
|
@@ -1223,7 +1127,7 @@ function SelectionControls({
|
|
|
1223
1127
|
className: "w-14"
|
|
1224
1128
|
}
|
|
1225
1129
|
),
|
|
1226
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ jsx8(
|
|
1227
1131
|
NumberInput,
|
|
1228
1132
|
{
|
|
1229
1133
|
label: "Rotation",
|
|
@@ -1232,16 +1136,16 @@ function SelectionControls({
|
|
|
1232
1136
|
className: "w-14"
|
|
1233
1137
|
}
|
|
1234
1138
|
),
|
|
1235
|
-
review ? null : /* @__PURE__ */
|
|
1139
|
+
review ? null : /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1236
1140
|
SEP,
|
|
1237
|
-
single ? /* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */
|
|
1141
|
+
single ? /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1142
|
+
/* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "Bring to front", disabled: !canWrite, onClick: () => reorderSingle("front"), className: BTN, children: /* @__PURE__ */ jsx8(BringFrontGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1143
|
+
/* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "Send to back", disabled: !canWrite, onClick: () => reorderSingle("back"), className: BTN, children: /* @__PURE__ */ jsx8(SendBackGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1240
1144
|
SEP
|
|
1241
1145
|
] }) : null,
|
|
1242
|
-
groupable ? /* @__PURE__ */
|
|
1243
|
-
isGroup ? /* @__PURE__ */
|
|
1244
|
-
single ? /* @__PURE__ */
|
|
1146
|
+
groupable ? /* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "Group elements", disabled: !canWrite, onClick: onGroup, className: BTN, children: /* @__PURE__ */ jsx8(GroupGlyph, { className: "h-3.5 w-3.5" }) }) : null,
|
|
1147
|
+
isGroup ? /* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "Ungroup", disabled: !canWrite, onClick: onUngroup, className: BTN, children: /* @__PURE__ */ jsx8(UngroupGlyph, { className: "h-3.5 w-3.5" }) }) : null,
|
|
1148
|
+
single ? /* @__PURE__ */ jsx8(
|
|
1245
1149
|
"button",
|
|
1246
1150
|
{
|
|
1247
1151
|
type: "button",
|
|
@@ -1250,15 +1154,15 @@ function SelectionControls({
|
|
|
1250
1154
|
disabled: !canWrite,
|
|
1251
1155
|
onClick: () => patchAll({ locked: !single.locked }),
|
|
1252
1156
|
className: single.locked ? BTN_ACTIVE : BTN,
|
|
1253
|
-
children: single.locked ? /* @__PURE__ */
|
|
1157
|
+
children: single.locked ? /* @__PURE__ */ jsx8(LockGlyph, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ jsx8(UnlockGlyph, { className: "h-3.5 w-3.5" })
|
|
1254
1158
|
}
|
|
1255
1159
|
) : null,
|
|
1256
|
-
single && onBindSlot ? /* @__PURE__ */
|
|
1160
|
+
single && onBindSlot ? /* @__PURE__ */ jsx8(
|
|
1257
1161
|
Popover,
|
|
1258
1162
|
{
|
|
1259
1163
|
open: slotPopoverOpen,
|
|
1260
1164
|
onClose: () => setSlotPopoverOpen(false),
|
|
1261
|
-
trigger: /* @__PURE__ */
|
|
1165
|
+
trigger: /* @__PURE__ */ jsx8(
|
|
1262
1166
|
"button",
|
|
1263
1167
|
{
|
|
1264
1168
|
type: "button",
|
|
@@ -1272,11 +1176,11 @@ function SelectionControls({
|
|
|
1272
1176
|
},
|
|
1273
1177
|
className: currentSlot ? BTN_ACTIVE : BTN,
|
|
1274
1178
|
title: currentSlot ? `Slot: ${currentSlot}` : "Bind slot",
|
|
1275
|
-
children: /* @__PURE__ */
|
|
1179
|
+
children: /* @__PURE__ */ jsx8(SlotGlyph, { className: "h-3.5 w-3.5" })
|
|
1276
1180
|
}
|
|
1277
1181
|
),
|
|
1278
|
-
children: /* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1182
|
+
children: /* @__PURE__ */ jsxs6("div", { className: `${POPOVER_PANEL} w-48 gap-2 p-2`, children: [
|
|
1183
|
+
/* @__PURE__ */ jsx8(
|
|
1280
1184
|
"input",
|
|
1281
1185
|
{
|
|
1282
1186
|
autoFocus: true,
|
|
@@ -1286,8 +1190,8 @@ function SelectionControls({
|
|
|
1286
1190
|
className: "rounded border border-[var(--border-default)] bg-transparent px-2 py-1 text-xs text-[var(--text-primary)] focus:border-[var(--brand-primary)]"
|
|
1287
1191
|
}
|
|
1288
1192
|
),
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex gap-2", children: [
|
|
1194
|
+
/* @__PURE__ */ jsx8(
|
|
1291
1195
|
"button",
|
|
1292
1196
|
{
|
|
1293
1197
|
type: "button",
|
|
@@ -1299,7 +1203,7 @@ function SelectionControls({
|
|
|
1299
1203
|
children: slotInput.trim() ? "Bind" : "Unbind"
|
|
1300
1204
|
}
|
|
1301
1205
|
),
|
|
1302
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ jsx8(
|
|
1303
1207
|
"button",
|
|
1304
1208
|
{
|
|
1305
1209
|
type: "button",
|
|
@@ -1313,7 +1217,7 @@ function SelectionControls({
|
|
|
1313
1217
|
}
|
|
1314
1218
|
) : null,
|
|
1315
1219
|
SEP,
|
|
1316
|
-
/* @__PURE__ */
|
|
1220
|
+
/* @__PURE__ */ jsx8(
|
|
1317
1221
|
"button",
|
|
1318
1222
|
{
|
|
1319
1223
|
type: "button",
|
|
@@ -1321,17 +1225,17 @@ function SelectionControls({
|
|
|
1321
1225
|
disabled: !canWrite,
|
|
1322
1226
|
onClick: onDelete,
|
|
1323
1227
|
className: `${BTN} text-[var(--text-danger)] hover:border-[var(--text-danger)] hover:text-[var(--text-danger)]`,
|
|
1324
|
-
children: /* @__PURE__ */
|
|
1228
|
+
children: /* @__PURE__ */ jsx8(TrashGlyph, { className: "h-3.5 w-3.5" })
|
|
1325
1229
|
}
|
|
1326
1230
|
)
|
|
1327
1231
|
] })
|
|
1328
1232
|
] });
|
|
1329
1233
|
}
|
|
1330
1234
|
function TextControls({ element, canWrite, onPatch }) {
|
|
1331
|
-
return /* @__PURE__ */
|
|
1332
|
-
/* @__PURE__ */
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */
|
|
1235
|
+
return /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1236
|
+
/* @__PURE__ */ jsx8(FontPicker, { value: element.fontFamily, disabled: !canWrite, onChange: (fontFamily) => onPatch({ fontFamily }) }),
|
|
1237
|
+
/* @__PURE__ */ jsx8(NumberInput, { label: "Size", value: element.fontSize, min: 1, onCommit: (v) => onPatch({ fontSize: v }), className: "w-12" }),
|
|
1238
|
+
/* @__PURE__ */ jsx8(
|
|
1335
1239
|
"button",
|
|
1336
1240
|
{
|
|
1337
1241
|
type: "button",
|
|
@@ -1340,10 +1244,10 @@ function TextControls({ element, canWrite, onPatch }) {
|
|
|
1340
1244
|
disabled: !canWrite,
|
|
1341
1245
|
onClick: () => onPatch({ fontStyle: element.fontStyle === "bold" || element.fontStyle === "bold italic" ? element.fontStyle === "bold italic" ? "italic" : "normal" : element.fontStyle === "italic" ? "bold italic" : "bold" }),
|
|
1342
1246
|
className: element.fontStyle?.includes("bold") ? BTN_ACTIVE : BTN,
|
|
1343
|
-
children: /* @__PURE__ */
|
|
1247
|
+
children: /* @__PURE__ */ jsx8(BoldGlyph, { className: "h-3.5 w-3.5" })
|
|
1344
1248
|
}
|
|
1345
1249
|
),
|
|
1346
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ jsx8(
|
|
1347
1251
|
"button",
|
|
1348
1252
|
{
|
|
1349
1253
|
type: "button",
|
|
@@ -1352,10 +1256,10 @@ function TextControls({ element, canWrite, onPatch }) {
|
|
|
1352
1256
|
disabled: !canWrite,
|
|
1353
1257
|
onClick: () => onPatch({ fontStyle: element.fontStyle === "italic" || element.fontStyle === "bold italic" ? element.fontStyle === "bold italic" ? "bold" : "normal" : element.fontStyle === "bold" ? "bold italic" : "italic" }),
|
|
1354
1258
|
className: element.fontStyle?.includes("italic") ? BTN_ACTIVE : BTN,
|
|
1355
|
-
children: /* @__PURE__ */
|
|
1259
|
+
children: /* @__PURE__ */ jsx8(ItalicGlyph, { className: "h-3.5 w-3.5" })
|
|
1356
1260
|
}
|
|
1357
1261
|
),
|
|
1358
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ jsx8("div", { role: "radiogroup", "aria-label": "Text alignment", className: "flex items-center gap-2", children: ["left", "center", "right"].map((align) => /* @__PURE__ */ jsx8(
|
|
1359
1263
|
"button",
|
|
1360
1264
|
{
|
|
1361
1265
|
type: "button",
|
|
@@ -1365,28 +1269,28 @@ function TextControls({ element, canWrite, onPatch }) {
|
|
|
1365
1269
|
disabled: !canWrite,
|
|
1366
1270
|
onClick: () => onPatch({ align }),
|
|
1367
1271
|
className: element.align === align ? BTN_ACTIVE : BTN,
|
|
1368
|
-
children: align === "left" ? /* @__PURE__ */
|
|
1272
|
+
children: align === "left" ? /* @__PURE__ */ jsx8(AlignLeftGlyph, { className: "h-3.5 w-3.5" }) : align === "center" ? /* @__PURE__ */ jsx8(AlignCenterGlyph, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ jsx8(AlignRightGlyph, { className: "h-3.5 w-3.5" })
|
|
1369
1273
|
},
|
|
1370
1274
|
align
|
|
1371
1275
|
)) }),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ jsx8(NumberInput, { label: "Line H", value: element.lineHeight, step: 0.1, min: 0.5, onCommit: (v) => onPatch({ lineHeight: v }), className: "w-12" }),
|
|
1277
|
+
/* @__PURE__ */ jsx8(NumberInput, { label: "Spacing", value: element.letterSpacing, step: 0.5, onCommit: (v) => onPatch({ letterSpacing: v }), className: "w-14" }),
|
|
1278
|
+
/* @__PURE__ */ jsx8(ColorSwatch, { label: "Fill", value: element.fill, onCommit: (v) => onPatch({ fill: v }), disabled: !canWrite })
|
|
1375
1279
|
] });
|
|
1376
1280
|
}
|
|
1377
1281
|
function ShapeControls({ element, canWrite, onPatch, showCornerRadius }) {
|
|
1378
|
-
return /* @__PURE__ */
|
|
1379
|
-
/* @__PURE__ */
|
|
1380
|
-
/* @__PURE__ */
|
|
1381
|
-
/* @__PURE__ */
|
|
1382
|
-
showCornerRadius && "cornerRadius" in element ? /* @__PURE__ */
|
|
1282
|
+
return /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1283
|
+
/* @__PURE__ */ jsx8(ColorSwatch, { label: "Fill", value: element.fill, onCommit: (v) => onPatch({ fill: v }), disabled: !canWrite }),
|
|
1284
|
+
/* @__PURE__ */ jsx8(ColorSwatch, { label: "Stroke", value: element.stroke ?? "#000000", onCommit: (v) => onPatch({ stroke: v }), disabled: !canWrite, none: (element.strokeWidth ?? 0) === 0 }),
|
|
1285
|
+
/* @__PURE__ */ jsx8(NumberInput, { label: "Stroke W", value: element.strokeWidth ?? 0, min: 0, onCommit: (v) => onPatch({ strokeWidth: v }), className: "w-14" }),
|
|
1286
|
+
showCornerRadius && "cornerRadius" in element ? /* @__PURE__ */ jsx8(NumberInput, { label: "Corner R", value: element.cornerRadius ?? 0, min: 0, onCommit: (v) => onPatch({ cornerRadius: v }), className: "w-14" }) : null
|
|
1383
1287
|
] });
|
|
1384
1288
|
}
|
|
1385
1289
|
function ImageControls({ element, canWrite, onPatch }) {
|
|
1386
|
-
const [swapOpen, setSwapOpen] =
|
|
1387
|
-
const [swapUrl, setSwapUrl] =
|
|
1388
|
-
return /* @__PURE__ */
|
|
1389
|
-
/* @__PURE__ */
|
|
1290
|
+
const [swapOpen, setSwapOpen] = useState4(false);
|
|
1291
|
+
const [swapUrl, setSwapUrl] = useState4("");
|
|
1292
|
+
return /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
1293
|
+
/* @__PURE__ */ jsx8(
|
|
1390
1294
|
SelectControl,
|
|
1391
1295
|
{
|
|
1392
1296
|
label: "Fit",
|
|
@@ -1401,12 +1305,12 @@ function ImageControls({ element, canWrite, onPatch }) {
|
|
|
1401
1305
|
]
|
|
1402
1306
|
}
|
|
1403
1307
|
),
|
|
1404
|
-
/* @__PURE__ */
|
|
1308
|
+
/* @__PURE__ */ jsx8(
|
|
1405
1309
|
Popover,
|
|
1406
1310
|
{
|
|
1407
1311
|
open: swapOpen,
|
|
1408
1312
|
onClose: () => setSwapOpen(false),
|
|
1409
|
-
trigger: /* @__PURE__ */
|
|
1313
|
+
trigger: /* @__PURE__ */ jsx8(
|
|
1410
1314
|
"button",
|
|
1411
1315
|
{
|
|
1412
1316
|
type: "button",
|
|
@@ -1418,11 +1322,11 @@ function ImageControls({ element, canWrite, onPatch }) {
|
|
|
1418
1322
|
},
|
|
1419
1323
|
className: BTN,
|
|
1420
1324
|
title: "Replace image",
|
|
1421
|
-
children: /* @__PURE__ */
|
|
1325
|
+
children: /* @__PURE__ */ jsx8(SwapGlyph, { className: "h-3.5 w-3.5" })
|
|
1422
1326
|
}
|
|
1423
1327
|
),
|
|
1424
|
-
children: /* @__PURE__ */
|
|
1425
|
-
/* @__PURE__ */
|
|
1328
|
+
children: /* @__PURE__ */ jsxs6("div", { className: `${POPOVER_PANEL} w-64 gap-2 p-2`, children: [
|
|
1329
|
+
/* @__PURE__ */ jsx8(
|
|
1426
1330
|
"input",
|
|
1427
1331
|
{
|
|
1428
1332
|
autoFocus: true,
|
|
@@ -1433,8 +1337,8 @@ function ImageControls({ element, canWrite, onPatch }) {
|
|
|
1433
1337
|
className: "rounded border border-[var(--border-default)] bg-transparent px-2 py-1 text-xs text-[var(--text-primary)] focus:border-[var(--brand-primary)]"
|
|
1434
1338
|
}
|
|
1435
1339
|
),
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex gap-2", children: [
|
|
1341
|
+
/* @__PURE__ */ jsx8(
|
|
1438
1342
|
"button",
|
|
1439
1343
|
{
|
|
1440
1344
|
type: "button",
|
|
@@ -1447,7 +1351,7 @@ function ImageControls({ element, canWrite, onPatch }) {
|
|
|
1447
1351
|
children: "Replace"
|
|
1448
1352
|
}
|
|
1449
1353
|
),
|
|
1450
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ jsx8(
|
|
1451
1355
|
"button",
|
|
1452
1356
|
{
|
|
1453
1357
|
type: "button",
|
|
@@ -1462,10 +1366,14 @@ function ImageControls({ element, canWrite, onPatch }) {
|
|
|
1462
1366
|
)
|
|
1463
1367
|
] });
|
|
1464
1368
|
}
|
|
1369
|
+
|
|
1370
|
+
// src/design-canvas-react/components/toolbar-page-controls.tsx
|
|
1371
|
+
import { useState as useState5 } from "react";
|
|
1372
|
+
import { Fragment as Fragment5, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1465
1373
|
function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pageSizeLabel = "Page size", enableBleedLabel = "Show print bleed" }) {
|
|
1466
1374
|
const matchedPreset = matchPreset(page.width, page.height);
|
|
1467
|
-
const [customW, setCustomW] =
|
|
1468
|
-
const [customH, setCustomH] =
|
|
1375
|
+
const [customW, setCustomW] = useState5(null);
|
|
1376
|
+
const [customH, setCustomH] = useState5(null);
|
|
1469
1377
|
function commitDimension(dim, raw) {
|
|
1470
1378
|
const v = parseFloat(raw);
|
|
1471
1379
|
if (Number.isFinite(v) && v > 0) onSetPageProps({ [dim]: v });
|
|
@@ -1476,8 +1384,8 @@ function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pa
|
|
|
1476
1384
|
{ value: "custom", label: "Custom" },
|
|
1477
1385
|
...SIZE_PRESETS.map((p) => ({ value: p.id, label: p.label }))
|
|
1478
1386
|
];
|
|
1479
|
-
return /* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
1388
|
+
/* @__PURE__ */ jsx9(
|
|
1481
1389
|
"input",
|
|
1482
1390
|
{
|
|
1483
1391
|
type: "text",
|
|
@@ -1489,7 +1397,7 @@ function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pa
|
|
|
1489
1397
|
}
|
|
1490
1398
|
),
|
|
1491
1399
|
SEP,
|
|
1492
|
-
/* @__PURE__ */
|
|
1400
|
+
/* @__PURE__ */ jsx9(
|
|
1493
1401
|
SelectControl,
|
|
1494
1402
|
{
|
|
1495
1403
|
label: pageSizeLabel,
|
|
@@ -1503,9 +1411,9 @@ function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pa
|
|
|
1503
1411
|
buttonClassName: "w-44"
|
|
1504
1412
|
}
|
|
1505
1413
|
),
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ jsxs7("label", { className: "flex flex-col items-center gap-0.5", children: [
|
|
1415
|
+
/* @__PURE__ */ jsx9("span", { className: FIELD_LABEL, children: "W" }),
|
|
1416
|
+
/* @__PURE__ */ jsx9(
|
|
1509
1417
|
"input",
|
|
1510
1418
|
{
|
|
1511
1419
|
type: "number",
|
|
@@ -1522,10 +1430,10 @@ function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pa
|
|
|
1522
1430
|
}
|
|
1523
1431
|
)
|
|
1524
1432
|
] }),
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1527
|
-
/* @__PURE__ */
|
|
1528
|
-
/* @__PURE__ */
|
|
1433
|
+
/* @__PURE__ */ jsx9("span", { className: "text-[var(--text-muted)]", children: "\xD7" }),
|
|
1434
|
+
/* @__PURE__ */ jsxs7("label", { className: "flex flex-col items-center gap-0.5", children: [
|
|
1435
|
+
/* @__PURE__ */ jsx9("span", { className: FIELD_LABEL, children: "H" }),
|
|
1436
|
+
/* @__PURE__ */ jsx9(
|
|
1529
1437
|
"input",
|
|
1530
1438
|
{
|
|
1531
1439
|
type: "number",
|
|
@@ -1543,9 +1451,9 @@ function PagePropsControls({ page, canWrite, onSetPageProps, onSetPageGuides, pa
|
|
|
1543
1451
|
)
|
|
1544
1452
|
] }),
|
|
1545
1453
|
SEP,
|
|
1546
|
-
/* @__PURE__ */
|
|
1454
|
+
/* @__PURE__ */ jsx9(ColorSwatch, { label: "BG", value: page.background, onCommit: (v) => onSetPageProps({ background: v }), disabled: !canWrite }),
|
|
1547
1455
|
SEP,
|
|
1548
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ jsx9(BleedControls, { page, canWrite, onSetPageProps, enableBleedLabel })
|
|
1549
1457
|
] });
|
|
1550
1458
|
}
|
|
1551
1459
|
function BleedControls({ page, canWrite, onSetPageProps, enableBleedLabel = "Show print bleed" }) {
|
|
@@ -1555,7 +1463,7 @@ function BleedControls({ page, canWrite, onSetPageProps, enableBleedLabel = "Sho
|
|
|
1555
1463
|
onSetPageProps({ bleed: { ...current, [side]: value } });
|
|
1556
1464
|
}
|
|
1557
1465
|
if (!bleed) {
|
|
1558
|
-
return /* @__PURE__ */
|
|
1466
|
+
return /* @__PURE__ */ jsx9(
|
|
1559
1467
|
"button",
|
|
1560
1468
|
{
|
|
1561
1469
|
type: "button",
|
|
@@ -1564,12 +1472,12 @@ function BleedControls({ page, canWrite, onSetPageProps, enableBleedLabel = "Sho
|
|
|
1564
1472
|
onClick: () => onSetPageProps({ bleed: { top: 3, right: 3, bottom: 3, left: 3 } }),
|
|
1565
1473
|
className: BTN,
|
|
1566
1474
|
title: enableBleedLabel,
|
|
1567
|
-
children: /* @__PURE__ */
|
|
1475
|
+
children: /* @__PURE__ */ jsx9(BleedGlyph, { className: "h-3.5 w-3.5" })
|
|
1568
1476
|
}
|
|
1569
1477
|
);
|
|
1570
1478
|
}
|
|
1571
|
-
return /* @__PURE__ */
|
|
1572
|
-
["top", "right", "bottom", "left"].map((side) => /* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
1480
|
+
["top", "right", "bottom", "left"].map((side) => /* @__PURE__ */ jsx9(
|
|
1573
1481
|
NumberInput,
|
|
1574
1482
|
{
|
|
1575
1483
|
label: side[0].toUpperCase() + side.slice(1),
|
|
@@ -1580,7 +1488,7 @@ function BleedControls({ page, canWrite, onSetPageProps, enableBleedLabel = "Sho
|
|
|
1580
1488
|
},
|
|
1581
1489
|
side
|
|
1582
1490
|
)),
|
|
1583
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ jsx9(
|
|
1584
1492
|
"button",
|
|
1585
1493
|
{
|
|
1586
1494
|
type: "button",
|
|
@@ -1595,8 +1503,111 @@ function BleedControls({ page, canWrite, onSetPageProps, enableBleedLabel = "Sho
|
|
|
1595
1503
|
] });
|
|
1596
1504
|
}
|
|
1597
1505
|
|
|
1506
|
+
// src/design-canvas-react/components/Toolbar.tsx
|
|
1507
|
+
import { Fragment as Fragment6, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1508
|
+
function Toolbar({
|
|
1509
|
+
page,
|
|
1510
|
+
selectedElements,
|
|
1511
|
+
canWrite,
|
|
1512
|
+
mode = "edit",
|
|
1513
|
+
canUndo,
|
|
1514
|
+
canRedo,
|
|
1515
|
+
gridEnabled,
|
|
1516
|
+
snapEnabled,
|
|
1517
|
+
showRulers,
|
|
1518
|
+
showBleed,
|
|
1519
|
+
onUndo,
|
|
1520
|
+
onRedo,
|
|
1521
|
+
onToggleGrid,
|
|
1522
|
+
onToggleSnap,
|
|
1523
|
+
onToggleRulers,
|
|
1524
|
+
onToggleBleed,
|
|
1525
|
+
onSetAttrs,
|
|
1526
|
+
onSetPageProps,
|
|
1527
|
+
onSetPageGuides,
|
|
1528
|
+
onReorder,
|
|
1529
|
+
onGroup,
|
|
1530
|
+
onUngroup,
|
|
1531
|
+
onDelete,
|
|
1532
|
+
onBindSlot,
|
|
1533
|
+
pageSizeLabel = "Page size",
|
|
1534
|
+
enableBleedLabel = "Show print bleed"
|
|
1535
|
+
}) {
|
|
1536
|
+
const hasSelection = selectedElements.length > 0;
|
|
1537
|
+
const single = selectedElements.length === 1 ? selectedElements[0] : null;
|
|
1538
|
+
const allSameKind = selectedElements.length > 0 && selectedElements.every((e) => e.kind === selectedElements[0].kind);
|
|
1539
|
+
const firstKind = selectedElements[0]?.kind;
|
|
1540
|
+
function patchAll(attrs) {
|
|
1541
|
+
for (const el of selectedElements) onSetAttrs(el.id, attrs);
|
|
1542
|
+
}
|
|
1543
|
+
function reorderSingle(direction) {
|
|
1544
|
+
if (!single) return;
|
|
1545
|
+
onReorder(single.id, 0, page.elements.length, direction);
|
|
1546
|
+
}
|
|
1547
|
+
const selectedIds = selectedElements.map((e) => e.id);
|
|
1548
|
+
const isGroup = single?.kind === "group";
|
|
1549
|
+
const groupable = selectedElements.length >= 2;
|
|
1550
|
+
const review = mode === "review";
|
|
1551
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex min-h-11 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 border-b border-[var(--border-default)] bg-[var(--bg-input)] px-3 py-1", children: [
|
|
1552
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
1553
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1", role: "group", "aria-label": "History", children: [
|
|
1554
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Undo", disabled: !canUndo || !canWrite, onClick: onUndo, className: BTN, children: /* @__PURE__ */ jsx10(UndoGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1555
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Redo", disabled: !canRedo || !canWrite, onClick: onRedo, className: BTN, children: /* @__PURE__ */ jsx10(RedoGlyph, { className: "h-3.5 w-3.5" }) })
|
|
1556
|
+
] }),
|
|
1557
|
+
!review ? /* @__PURE__ */ jsxs8(Fragment6, { children: [
|
|
1558
|
+
SEP,
|
|
1559
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1", role: "group", "aria-label": "View", children: [
|
|
1560
|
+
/* @__PURE__ */ jsx10("span", { className: `${FIELD_LABEL} mr-0.5 hidden md:inline`, "aria-hidden": true, children: "View" }),
|
|
1561
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Toggle rulers", "aria-pressed": showRulers, onClick: onToggleRulers, className: showRulers ? BTN_ACTIVE : BTN, title: "Rulers", children: /* @__PURE__ */ jsx10(RulerGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1562
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Toggle grid", "aria-pressed": gridEnabled, onClick: onToggleGrid, className: gridEnabled ? BTN_ACTIVE : BTN, title: "Grid", children: /* @__PURE__ */ jsx10(GridGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1563
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Toggle snap", "aria-pressed": snapEnabled, onClick: onToggleSnap, className: snapEnabled ? BTN_ACTIVE : BTN, title: "Snap to guides", children: /* @__PURE__ */ jsx10(MagnetGlyph, { className: "h-3.5 w-3.5" }) }),
|
|
1564
|
+
/* @__PURE__ */ jsx10("button", { type: "button", "aria-label": "Toggle bleed overlay", "aria-pressed": showBleed, onClick: onToggleBleed, className: showBleed ? BTN_ACTIVE : BTN, disabled: !page.bleed, title: "Show print bleed", children: /* @__PURE__ */ jsx10(BleedGlyph, { className: "h-3.5 w-3.5" }) })
|
|
1565
|
+
] })
|
|
1566
|
+
] }) : null
|
|
1567
|
+
] }),
|
|
1568
|
+
/* @__PURE__ */ jsx10("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: hasSelection ? /* @__PURE__ */ jsxs8(Fragment6, { children: [
|
|
1569
|
+
SEP,
|
|
1570
|
+
/* @__PURE__ */ jsx10(
|
|
1571
|
+
SelectionControls,
|
|
1572
|
+
{
|
|
1573
|
+
elements: selectedElements,
|
|
1574
|
+
single,
|
|
1575
|
+
isGroup,
|
|
1576
|
+
groupable,
|
|
1577
|
+
allSameKind,
|
|
1578
|
+
firstKind,
|
|
1579
|
+
canWrite,
|
|
1580
|
+
review,
|
|
1581
|
+
patchAll,
|
|
1582
|
+
reorderSingle,
|
|
1583
|
+
onGroup: () => onGroup(selectedIds),
|
|
1584
|
+
onUngroup: () => {
|
|
1585
|
+
if (single) onUngroup(single.id);
|
|
1586
|
+
},
|
|
1587
|
+
onDelete: () => onDelete(selectedIds),
|
|
1588
|
+
onBindSlot: single ? (slot) => onBindSlot(single.id, slot) : void 0,
|
|
1589
|
+
currentSlot: single?.slot ?? null
|
|
1590
|
+
}
|
|
1591
|
+
)
|
|
1592
|
+
] }) : !review ? /* @__PURE__ */ jsxs8(Fragment6, { children: [
|
|
1593
|
+
SEP,
|
|
1594
|
+
/* @__PURE__ */ jsx10(
|
|
1595
|
+
PagePropsControls,
|
|
1596
|
+
{
|
|
1597
|
+
page,
|
|
1598
|
+
canWrite,
|
|
1599
|
+
onSetPageProps,
|
|
1600
|
+
onSetPageGuides,
|
|
1601
|
+
pageSizeLabel,
|
|
1602
|
+
enableBleedLabel
|
|
1603
|
+
}
|
|
1604
|
+
)
|
|
1605
|
+
] }) : null })
|
|
1606
|
+
] });
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1598
1609
|
// src/design-canvas-react/components/ZoomControls.tsx
|
|
1599
|
-
import { jsx as
|
|
1610
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1600
1611
|
var STEP = 0.1;
|
|
1601
1612
|
var MIN = 0.05;
|
|
1602
1613
|
var MAX = 32;
|
|
@@ -1610,8 +1621,8 @@ function ZoomControls({ zoom, onZoom, onFit, fitLabel = "Fit to screen" }) {
|
|
|
1610
1621
|
function resetHundred() {
|
|
1611
1622
|
onZoom(1);
|
|
1612
1623
|
}
|
|
1613
|
-
return /* @__PURE__ */
|
|
1614
|
-
/* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-1 px-2", children: [
|
|
1625
|
+
/* @__PURE__ */ jsx11(
|
|
1615
1626
|
"button",
|
|
1616
1627
|
{
|
|
1617
1628
|
type: "button",
|
|
@@ -1619,10 +1630,10 @@ function ZoomControls({ zoom, onZoom, onFit, fitLabel = "Fit to screen" }) {
|
|
|
1619
1630
|
onClick: onFit,
|
|
1620
1631
|
className: BTN_SM,
|
|
1621
1632
|
title: `${fitLabel} (F)`,
|
|
1622
|
-
children: /* @__PURE__ */
|
|
1633
|
+
children: /* @__PURE__ */ jsx11(ZoomFitGlyph, { className: "h-3.5 w-3.5" })
|
|
1623
1634
|
}
|
|
1624
1635
|
),
|
|
1625
|
-
/* @__PURE__ */
|
|
1636
|
+
/* @__PURE__ */ jsx11(
|
|
1626
1637
|
"button",
|
|
1627
1638
|
{
|
|
1628
1639
|
type: "button",
|
|
@@ -1630,10 +1641,10 @@ function ZoomControls({ zoom, onZoom, onFit, fitLabel = "Fit to screen" }) {
|
|
|
1630
1641
|
onClick: zoomOut,
|
|
1631
1642
|
disabled: zoom <= MIN,
|
|
1632
1643
|
className: BTN_SM,
|
|
1633
|
-
children: /* @__PURE__ */
|
|
1644
|
+
children: /* @__PURE__ */ jsx11(MinusGlyph, { className: "h-3.5 w-3.5" })
|
|
1634
1645
|
}
|
|
1635
1646
|
),
|
|
1636
|
-
/* @__PURE__ */
|
|
1647
|
+
/* @__PURE__ */ jsxs9(
|
|
1637
1648
|
"button",
|
|
1638
1649
|
{
|
|
1639
1650
|
type: "button",
|
|
@@ -1647,7 +1658,7 @@ function ZoomControls({ zoom, onZoom, onFit, fitLabel = "Fit to screen" }) {
|
|
|
1647
1658
|
]
|
|
1648
1659
|
}
|
|
1649
1660
|
),
|
|
1650
|
-
/* @__PURE__ */
|
|
1661
|
+
/* @__PURE__ */ jsx11(
|
|
1651
1662
|
"button",
|
|
1652
1663
|
{
|
|
1653
1664
|
type: "button",
|
|
@@ -1655,15 +1666,15 @@ function ZoomControls({ zoom, onZoom, onFit, fitLabel = "Fit to screen" }) {
|
|
|
1655
1666
|
onClick: zoomIn,
|
|
1656
1667
|
disabled: zoom >= MAX,
|
|
1657
1668
|
className: BTN_SM,
|
|
1658
|
-
children: /* @__PURE__ */
|
|
1669
|
+
children: /* @__PURE__ */ jsx11(PlusGlyph, { className: "h-3.5 w-3.5" })
|
|
1659
1670
|
}
|
|
1660
1671
|
)
|
|
1661
1672
|
] });
|
|
1662
1673
|
}
|
|
1663
1674
|
|
|
1664
1675
|
// src/design-canvas-react/components/ExportControl.tsx
|
|
1665
|
-
import { useRef as useRef4, useState as
|
|
1666
|
-
import { jsx as
|
|
1676
|
+
import { useRef as useRef4, useState as useState6 } from "react";
|
|
1677
|
+
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1667
1678
|
var FORMATS = [
|
|
1668
1679
|
{ id: "png", label: "PNG" },
|
|
1669
1680
|
{ id: "jpeg", label: "JPEG" }
|
|
@@ -1672,18 +1683,18 @@ var SCALES = [
|
|
|
1672
1683
|
{ value: 1, label: "1x" },
|
|
1673
1684
|
{ value: 2, label: "2x" }
|
|
1674
1685
|
];
|
|
1675
|
-
var
|
|
1686
|
+
var FIELD_LABEL3 = "text-xs font-semibold uppercase tracking-[0.05em] text-[var(--text-muted)]";
|
|
1676
1687
|
function ExportControl({ defaults, onExport, className }) {
|
|
1677
|
-
const [open, setOpen] =
|
|
1678
|
-
const [format, setFormat] =
|
|
1679
|
-
const [pixelRatio, setPixelRatio] =
|
|
1688
|
+
const [open, setOpen] = useState6(false);
|
|
1689
|
+
const [format, setFormat] = useState6(defaults?.format ?? "png");
|
|
1690
|
+
const [pixelRatio, setPixelRatio] = useState6(defaults?.pixelRatio ?? 1);
|
|
1680
1691
|
const containerRef = useRef4(null);
|
|
1681
1692
|
function confirm() {
|
|
1682
1693
|
onExport({ format, pixelRatio });
|
|
1683
1694
|
setOpen(false);
|
|
1684
1695
|
}
|
|
1685
|
-
return /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ jsxs10("div", { ref: containerRef, className: `relative ${className ?? ""}`, children: [
|
|
1697
|
+
/* @__PURE__ */ jsxs10(
|
|
1687
1698
|
"button",
|
|
1688
1699
|
{
|
|
1689
1700
|
type: "button",
|
|
@@ -1698,13 +1709,13 @@ function ExportControl({ defaults, onExport, className }) {
|
|
|
1698
1709
|
},
|
|
1699
1710
|
className: "flex h-8 items-center gap-1.5 rounded-md border border-[var(--border-default)] px-2.5 text-xs font-medium text-[var(--text-primary)] transition-colors hover:border-[color-mix(in_srgb,var(--brand-primary)_40%,transparent)]",
|
|
1700
1711
|
children: [
|
|
1701
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ jsx12(ExportGlyph, { className: "h-3.5 w-3.5" }),
|
|
1702
1713
|
"Export",
|
|
1703
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ jsx12(ChevronDownGlyph, { className: "h-3 w-3 text-[var(--text-muted)]" })
|
|
1704
1715
|
]
|
|
1705
1716
|
}
|
|
1706
1717
|
),
|
|
1707
|
-
open ? /* @__PURE__ */
|
|
1718
|
+
open ? /* @__PURE__ */ jsxs10(
|
|
1708
1719
|
"div",
|
|
1709
1720
|
{
|
|
1710
1721
|
role: "dialog",
|
|
@@ -1716,9 +1727,9 @@ function ExportControl({ defaults, onExport, className }) {
|
|
|
1716
1727
|
},
|
|
1717
1728
|
className: "absolute right-0 top-full z-50 mt-1 flex w-52 flex-col gap-3 rounded-md border border-[var(--card-edge)] bg-[hsl(var(--popover))] p-3 shadow-[var(--shadow-overlay)]",
|
|
1718
1729
|
children: [
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-1.5", children: [
|
|
1731
|
+
/* @__PURE__ */ jsx12("span", { className: FIELD_LABEL3, children: "Format" }),
|
|
1732
|
+
/* @__PURE__ */ jsx12("div", { className: "flex gap-1.5", children: FORMATS.map((f) => /* @__PURE__ */ jsx12(
|
|
1722
1733
|
"button",
|
|
1723
1734
|
{
|
|
1724
1735
|
type: "button",
|
|
@@ -1730,9 +1741,9 @@ function ExportControl({ defaults, onExport, className }) {
|
|
|
1730
1741
|
f.id
|
|
1731
1742
|
)) })
|
|
1732
1743
|
] }),
|
|
1733
|
-
/* @__PURE__ */
|
|
1734
|
-
/* @__PURE__ */
|
|
1735
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-1.5", children: [
|
|
1745
|
+
/* @__PURE__ */ jsx12("span", { className: FIELD_LABEL3, children: "Scale" }),
|
|
1746
|
+
/* @__PURE__ */ jsx12("div", { className: "flex gap-1.5", children: SCALES.map((s) => /* @__PURE__ */ jsx12(
|
|
1736
1747
|
"button",
|
|
1737
1748
|
{
|
|
1738
1749
|
type: "button",
|
|
@@ -1744,7 +1755,7 @@ function ExportControl({ defaults, onExport, className }) {
|
|
|
1744
1755
|
s.value
|
|
1745
1756
|
)) })
|
|
1746
1757
|
] }),
|
|
1747
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ jsx12(
|
|
1748
1759
|
"button",
|
|
1749
1760
|
{
|
|
1750
1761
|
type: "button",
|
|
@@ -1761,7 +1772,7 @@ function ExportControl({ defaults, onExport, className }) {
|
|
|
1761
1772
|
}
|
|
1762
1773
|
|
|
1763
1774
|
// src/design-canvas-react/components/DesignCanvas.tsx
|
|
1764
|
-
import { jsx as
|
|
1775
|
+
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1765
1776
|
function mintId() {
|
|
1766
1777
|
const uuid = globalThis.crypto && "randomUUID" in globalThis.crypto ? globalThis.crypto.randomUUID() : null;
|
|
1767
1778
|
return `local-${uuid ?? `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}`;
|
|
@@ -1827,7 +1838,7 @@ function DesignCanvas({
|
|
|
1827
1838
|
appliedDocumentRef.current = initialDocument;
|
|
1828
1839
|
stack.reset(initialDocument);
|
|
1829
1840
|
}, [initialDocument, stack]);
|
|
1830
|
-
const [commitError, setCommitError] =
|
|
1841
|
+
const [commitError, setCommitError] = useState7(null);
|
|
1831
1842
|
const commit = useCommitCommand(stack, onApplyOperations, canWrite, setCommitError);
|
|
1832
1843
|
const selectionChangeRef = useRef5(onSelectionChange);
|
|
1833
1844
|
selectionChangeRef.current = onSelectionChange;
|
|
@@ -2054,7 +2065,7 @@ function DesignCanvas({
|
|
|
2054
2065
|
}, [activePage, editorState.selectedElementIds]);
|
|
2055
2066
|
const review = mode === "review";
|
|
2056
2067
|
if (!activePage) {
|
|
2057
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx13("div", { className: `flex h-full items-center justify-center bg-[var(--bg-input)] ${className ?? ""}`, children: /* @__PURE__ */ jsx13("p", { className: "text-xs text-[var(--text-muted)]", children: "This document has no pages." }) });
|
|
2058
2069
|
}
|
|
2059
2070
|
const bleedScreen = editorState.showBleed && activePage.bleed ? {
|
|
2060
2071
|
top: activePage.bleed.top * editorState.zoom,
|
|
@@ -2062,11 +2073,11 @@ function DesignCanvas({
|
|
|
2062
2073
|
bottom: activePage.bleed.bottom * editorState.zoom,
|
|
2063
2074
|
left: activePage.bleed.left * editorState.zoom
|
|
2064
2075
|
} : null;
|
|
2065
|
-
return /* @__PURE__ */
|
|
2066
|
-
renderSidePanel && !review ? /* @__PURE__ */
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2076
|
+
return /* @__PURE__ */ jsxs11("div", { className: `flex h-full min-h-0 bg-[var(--bg-input)] text-[var(--text-primary)] ${className ?? ""}`, children: [
|
|
2077
|
+
renderSidePanel && !review ? /* @__PURE__ */ jsx13("aside", { className: "hidden w-64 shrink-0 flex-col overflow-hidden border-r border-[var(--border-default)] lg:flex", children: renderSidePanel({ selectedElements, activePageId: activePage.id, activePage }) }) : null,
|
|
2078
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2079
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex shrink-0 items-stretch", children: [
|
|
2080
|
+
/* @__PURE__ */ jsx13("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx13(
|
|
2070
2081
|
Toolbar,
|
|
2071
2082
|
{
|
|
2072
2083
|
page: activePage,
|
|
@@ -2097,7 +2108,7 @@ function DesignCanvas({
|
|
|
2097
2108
|
enableBleedLabel
|
|
2098
2109
|
}
|
|
2099
2110
|
) }),
|
|
2100
|
-
onExport ? /* @__PURE__ */
|
|
2111
|
+
onExport ? /* @__PURE__ */ jsx13("div", { className: "flex shrink-0 items-center border-b border-l border-[var(--border-default)] bg-[var(--bg-input)] px-2", children: /* @__PURE__ */ jsx13(
|
|
2101
2112
|
ExportControl,
|
|
2102
2113
|
{
|
|
2103
2114
|
defaults: exportDefaults,
|
|
@@ -2105,14 +2116,14 @@ function DesignCanvas({
|
|
|
2105
2116
|
}
|
|
2106
2117
|
) }) : null
|
|
2107
2118
|
] }),
|
|
2108
|
-
commitError ? /* @__PURE__ */
|
|
2119
|
+
commitError ? /* @__PURE__ */ jsxs11(
|
|
2109
2120
|
"div",
|
|
2110
2121
|
{
|
|
2111
2122
|
className: "flex shrink-0 items-center justify-between gap-3 border-b border-[hsl(var(--destructive)/0.3)] bg-[hsl(var(--destructive)/0.1)] px-3 py-1.5 text-xs text-[var(--text-danger)]",
|
|
2112
2123
|
role: "alert",
|
|
2113
2124
|
children: [
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ jsx13("span", { className: "min-w-0 truncate", children: commitError }),
|
|
2126
|
+
/* @__PURE__ */ jsx13(
|
|
2116
2127
|
"button",
|
|
2117
2128
|
{
|
|
2118
2129
|
type: "button",
|
|
@@ -2124,15 +2135,15 @@ function DesignCanvas({
|
|
|
2124
2135
|
]
|
|
2125
2136
|
}
|
|
2126
2137
|
) : null,
|
|
2127
|
-
/* @__PURE__ */
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
-
/* @__PURE__ */
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-6 text-center sm:hidden", children: [
|
|
2139
|
+
/* @__PURE__ */ jsx13(BrandKnot, { size: 32, className: "shrink-0" }),
|
|
2140
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-1", children: [
|
|
2141
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm font-semibold text-[var(--text-primary)]", children: "Best edited on a larger screen" }),
|
|
2142
|
+
/* @__PURE__ */ jsx13("p", { className: "text-xs leading-5 text-[var(--text-secondary)]", children: "Open this on a tablet or desktop to edit and export." })
|
|
2132
2143
|
] })
|
|
2133
2144
|
] }),
|
|
2134
|
-
/* @__PURE__ */
|
|
2135
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ jsxs11("div", { className: `relative hidden min-h-0 flex-1 sm:block ${editorState.showRulers ? "pl-[20px] pt-[20px]" : ""}`, children: [
|
|
2146
|
+
/* @__PURE__ */ jsx13(
|
|
2136
2147
|
Rulers,
|
|
2137
2148
|
{
|
|
2138
2149
|
pageWidth: activePage.width,
|
|
@@ -2145,12 +2156,12 @@ function DesignCanvas({
|
|
|
2145
2156
|
onGuidesChange: handleSetPageGuides
|
|
2146
2157
|
}
|
|
2147
2158
|
),
|
|
2148
|
-
bleedScreen && activePage.bleed ? /* @__PURE__ */
|
|
2159
|
+
bleedScreen && activePage.bleed ? /* @__PURE__ */ jsx13(
|
|
2149
2160
|
"div",
|
|
2150
2161
|
{
|
|
2151
2162
|
className: "pointer-events-none absolute inset-0 z-10 overflow-hidden",
|
|
2152
2163
|
"aria-hidden": true,
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2164
|
+
children: /* @__PURE__ */ jsx13(
|
|
2154
2165
|
"div",
|
|
2155
2166
|
{
|
|
2156
2167
|
style: {
|
|
@@ -2158,7 +2169,7 @@ function DesignCanvas({
|
|
|
2158
2169
|
left: editorState.panX + (editorState.showRulers ? 20 : 0),
|
|
2159
2170
|
top: editorState.panY + (editorState.showRulers ? 20 : 0)
|
|
2160
2171
|
},
|
|
2161
|
-
children: /* @__PURE__ */
|
|
2172
|
+
children: /* @__PURE__ */ jsx13(
|
|
2162
2173
|
BleedTrimOverlay,
|
|
2163
2174
|
{
|
|
2164
2175
|
pageWidthPx: activePage.width * editorState.zoom,
|
|
@@ -2198,8 +2209,8 @@ function DesignCanvas({
|
|
|
2198
2209
|
onSelectElements: setSelectedElements
|
|
2199
2210
|
})
|
|
2200
2211
|
] }),
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2212
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex shrink-0 items-stretch border-t border-[var(--border-default)]", children: [
|
|
2213
|
+
/* @__PURE__ */ jsx13("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsx13(
|
|
2203
2214
|
PagesStrip,
|
|
2204
2215
|
{
|
|
2205
2216
|
pages: editorState.document.pages,
|
|
@@ -2214,7 +2225,7 @@ function DesignCanvas({
|
|
|
2214
2225
|
onReorderPage: handleReorderPage
|
|
2215
2226
|
}
|
|
2216
2227
|
) }),
|
|
2217
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ jsx13("div", { className: "flex shrink-0 items-center border-l border-[var(--border-default)]", children: /* @__PURE__ */ jsx13(
|
|
2218
2229
|
ZoomControls,
|
|
2219
2230
|
{
|
|
2220
2231
|
zoom: editorState.zoom,
|
|
@@ -2225,7 +2236,7 @@ function DesignCanvas({
|
|
|
2225
2236
|
) })
|
|
2226
2237
|
] })
|
|
2227
2238
|
] }),
|
|
2228
|
-
renderAgentPanel ? /* @__PURE__ */
|
|
2239
|
+
renderAgentPanel ? /* @__PURE__ */ jsx13("aside", { className: "hidden w-80 shrink-0 flex-col overflow-hidden border-l border-[var(--border-default)] lg:flex", children: renderAgentPanel({ selectedElements, activePageId: editorState.activePageId }) }) : null
|
|
2229
2240
|
] });
|
|
2230
2241
|
}
|
|
2231
2242
|
|
|
@@ -2261,4 +2272,4 @@ export {
|
|
|
2261
2272
|
ExportControl,
|
|
2262
2273
|
DesignCanvas
|
|
2263
2274
|
};
|
|
2264
|
-
//# sourceMappingURL=chunk-
|
|
2275
|
+
//# sourceMappingURL=chunk-VBWYH7UZ.js.map
|