@tangle-network/agent-app 2.0.13 → 3.0.1

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.
Files changed (55) hide show
  1. package/dist/{DesignCanvasEditor-CYFFF2LZ.js → DesignCanvasEditor-OQ467KSH.js} +3 -3
  2. package/dist/agent-profiles/d1.js +3 -3
  3. package/dist/agent-profiles/index.js +3 -3
  4. package/dist/assistant/index.js +3 -3
  5. package/dist/chat-react/index.js +1 -1
  6. package/dist/chat-routes/index.js +4 -4
  7. package/dist/{chunk-MVTLHM74.js → chunk-5V3NHVM3.js} +5 -5
  8. package/dist/{chunk-MVTLHM74.js.map → chunk-5V3NHVM3.js.map} +1 -1
  9. package/dist/{chunk-KWF4NL6R.js → chunk-5WQ77MPN.js} +2 -2
  10. package/dist/{chunk-ZOS3D26Z.js → chunk-ELPNBEXJ.js} +1 -3
  11. package/dist/{chunk-ZOS3D26Z.js.map → chunk-ELPNBEXJ.js.map} +1 -1
  12. package/dist/{chunk-2V7YCTYU.js → chunk-HQTTCCYE.js} +2 -2
  13. package/dist/{chunk-STGV7DXB.js → chunk-LS65AEPX.js} +3 -3
  14. package/dist/{chunk-NHOQ5TMH.js → chunk-O23ED5XC.js} +2 -2
  15. package/dist/{chunk-6GN2E5KT.js → chunk-PCFVN6KV.js} +2 -2
  16. package/dist/{chunk-HFCPHY5D.js → chunk-S6HCSAO6.js} +2 -2
  17. package/dist/{chunk-CVOEGD3Y.js → chunk-UTQ2FPDG.js} +2 -2
  18. package/dist/{chunk-IUAPYE37.js → chunk-W4FW3RUM.js} +2 -2
  19. package/dist/{chunk-XU6A5NT2.js → chunk-WKXESHF6.js} +2 -2
  20. package/dist/{chunk-27QO3AXJ.js → chunk-YFBL7BT2.js} +1 -1
  21. package/dist/{chunk-27QO3AXJ.js.map → chunk-YFBL7BT2.js.map} +1 -1
  22. package/dist/design-canvas-react/index.js +3 -3
  23. package/dist/design-canvas-react/lazy.js +1 -1
  24. package/dist/journeys/index.js.map +1 -1
  25. package/dist/journeys/journey.d.ts +2 -1
  26. package/dist/{mention-editor-XB4LGO3X.js → mention-editor-UHGJXXUC.js} +1 -2
  27. package/dist/mention-editor-UHGJXXUC.js.map +1 -0
  28. package/dist/preset-cloudflare/index.js +2 -2
  29. package/dist/public-consultation/index.d.ts +1 -1
  30. package/dist/public-consultation/index.js +4 -4
  31. package/dist/sandbox/index.js +4 -4
  32. package/dist/theme/brand.generated.d.ts +1 -1
  33. package/dist/theme/dom.js +2 -2
  34. package/dist/theme/index.js +1 -1
  35. package/dist/theme/tokens.css +165 -267
  36. package/dist/tools/index.js +4 -4
  37. package/dist/trace/index.d.ts +5 -14
  38. package/dist/trace/index.js +13 -9
  39. package/dist/trace/index.js.map +1 -1
  40. package/dist/web-react/document.js +2 -2
  41. package/dist/web-react/index.js +3 -3
  42. package/dist/web-react/mention-editor.d.ts +0 -13
  43. package/dist/work-product/index.js +2 -2
  44. package/package.json +15 -15
  45. package/dist/mention-editor-XB4LGO3X.js.map +0 -1
  46. /package/dist/{DesignCanvasEditor-CYFFF2LZ.js.map → DesignCanvasEditor-OQ467KSH.js.map} +0 -0
  47. /package/dist/{chunk-KWF4NL6R.js.map → chunk-5WQ77MPN.js.map} +0 -0
  48. /package/dist/{chunk-2V7YCTYU.js.map → chunk-HQTTCCYE.js.map} +0 -0
  49. /package/dist/{chunk-STGV7DXB.js.map → chunk-LS65AEPX.js.map} +0 -0
  50. /package/dist/{chunk-NHOQ5TMH.js.map → chunk-O23ED5XC.js.map} +0 -0
  51. /package/dist/{chunk-6GN2E5KT.js.map → chunk-PCFVN6KV.js.map} +0 -0
  52. /package/dist/{chunk-HFCPHY5D.js.map → chunk-S6HCSAO6.js.map} +0 -0
  53. /package/dist/{chunk-CVOEGD3Y.js.map → chunk-UTQ2FPDG.js.map} +0 -0
  54. /package/dist/{chunk-IUAPYE37.js.map → chunk-W4FW3RUM.js.map} +0 -0
  55. /package/dist/{chunk-XU6A5NT2.js.map → chunk-WKXESHF6.js.map} +0 -0
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-7PULOECS.js";
15
15
  import {
16
16
  stepActivityFlowTrace
17
- } from "./chunk-ZOS3D26Z.js";
17
+ } from "./chunk-ELPNBEXJ.js";
18
18
  import {
19
19
  WorkProductCard,
20
20
  workProductPartsFromMessageParts
@@ -8765,4 +8765,4 @@ export {
8765
8765
  AgentProfileChoices,
8766
8766
  ComposerProfilePill
8767
8767
  };
8768
- //# sourceMappingURL=chunk-KWF4NL6R.js.map
8768
+ //# sourceMappingURL=chunk-5WQ77MPN.js.map
@@ -58,8 +58,6 @@ function stepActivityFlowTrace(activity, opts) {
58
58
  return {
59
59
  spans,
60
60
  totalMs: spans.reduce((max, s) => Math.max(max, s.endMs), 0),
61
- promptTokens: 0,
62
- completionTokens: 0,
63
61
  ...costUsd !== void 0 ? { costUsd } : {},
64
62
  toolCalls: spans.length
65
63
  };
@@ -69,4 +67,4 @@ export {
69
67
  delegationActivityToFlowSpans,
70
68
  stepActivityFlowTrace
71
69
  };
72
- //# sourceMappingURL=chunk-ZOS3D26Z.js.map
70
+ //# sourceMappingURL=chunk-ELPNBEXJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/trace/mission-flow.ts"],"sourcesContent":["/** Convert journaled step delegations into the flow trace shown by the mission activity lane. */\n\nimport type { StepAgentActivity } from '../missions/agent-activity'\nimport type { FlowSpan, FlowTrace } from '@tangle-network/charts'\n\nconst num = (v: unknown): number | undefined =>\n typeof v === 'number' && Number.isFinite(v) ? v : undefined\nconst rec = (v: unknown): Record<string, unknown> =>\n v && typeof v === 'object' ? (v as Record<string, unknown>) : {}\n\n/** Statuses that mean the delegation is still producing wall time. */\nconst LIVE_DELEGATION_STATUSES = new Set(['pending', 'running'])\nconst ERROR_STATUSES = new Set(['failed', 'error', 'cancelled', 'aborted', 'down'])\n\n/** Interpret domain wire status at the producer boundary, never in the chart. */\nfunction flowStatus(status?: string): NonNullable<FlowSpan['status']> {\n const normalized = String(status ?? '').toLowerCase()\n return ERROR_STATUSES.has(normalized) ? 'failed'\n : LIVE_DELEGATION_STATUSES.has(normalized) ? 'running' : 'done'\n}\n\n/**\n * One 'tool' FlowSpan per delegation, positioned relative to `turnStartMs`\n * (the epoch-ms origin of the trace — usually the step or mission start).\n * A row whose `startedAt` does not parse cannot be placed on a timeline and\n * is omitted from the WATERFALL (it stays in the lane itself). A run without\n * `durationMs` is still in flight: its span extends to `opts.nowMs` when\n * given, else renders as a point — `approx` flags both.\n */\nexport function delegationActivityToFlowSpans(\n activity: StepAgentActivity[],\n turnStartMs: number,\n opts?: { nowMs?: number },\n): FlowSpan[] {\n const spans: FlowSpan[] = []\n for (const run of activity) {\n const startedAt = Date.parse(run.startedAt)\n if (!Number.isFinite(startedAt)) continue\n const startMs = startedAt - turnStartMs\n const status = flowStatus(run.status)\n const live = status === 'running'\n const endMs =\n run.durationMs !== undefined\n ? startMs + run.durationMs\n : live && opts?.nowMs !== undefined\n ? opts.nowMs - turnStartMs\n : startMs\n spans.push({\n id: run.taskId,\n status,\n kind: 'tool',\n name: `${run.tool} — ${run.detail}`,\n startMs,\n endMs: Math.max(endMs, startMs),\n ...(run.durationMs === undefined ? { approx: true } : {}),\n meta: {\n taskId: run.taskId,\n status: run.status,\n ...(run.costUsd !== undefined ? { costUsd: run.costUsd } : {}),\n ...(run.iteration !== undefined ? { iteration: run.iteration } : {}),\n ...(run.phase !== undefined ? { phase: run.phase } : {}),\n ...(run.traceId !== undefined ? { traceId: run.traceId } : {}),\n ...(run.spanId !== undefined ? { spanId: run.spanId } : {}),\n },\n })\n }\n return spans\n}\n\n/**\n * A single step's activity lane as its own FlowTrace — what a per-step\n * drill-in renders. Origin defaults to the earliest delegation start so the\n * waterfall begins at the lane's first run.\n */\nexport function stepActivityFlowTrace(\n activity: StepAgentActivity[],\n opts?: { startedAt?: number; nowMs?: number },\n): FlowTrace {\n let origin = opts?.startedAt\n if (origin === undefined) {\n for (const run of activity) {\n const parsed = Date.parse(run.startedAt)\n if (Number.isFinite(parsed) && (origin === undefined || parsed < origin)) origin = parsed\n }\n }\n const spans = delegationActivityToFlowSpans(\n activity,\n origin ?? 0,\n opts?.nowMs !== undefined ? { nowMs: opts.nowMs } : undefined,\n )\n let costUsd: number | undefined\n for (const span of spans) {\n const c = num(rec(span.meta).costUsd)\n if (c !== undefined) costUsd = (costUsd ?? 0) + c\n }\n return {\n spans,\n totalMs: spans.reduce((max, s) => Math.max(max, s.endMs), 0),\n promptTokens: 0,\n completionTokens: 0,\n ...(costUsd !== undefined ? { costUsd } : {}),\n toolCalls: spans.length,\n }\n}\n"],"mappings":";AAKA,IAAM,MAAM,CAAC,MACX,OAAO,MAAM,YAAY,OAAO,SAAS,CAAC,IAAI,IAAI;AACpD,IAAM,MAAM,CAAC,MACX,KAAK,OAAO,MAAM,WAAY,IAAgC,CAAC;AAGjE,IAAM,2BAA2B,oBAAI,IAAI,CAAC,WAAW,SAAS,CAAC;AAC/D,IAAM,iBAAiB,oBAAI,IAAI,CAAC,UAAU,SAAS,aAAa,WAAW,MAAM,CAAC;AAGlF,SAAS,WAAW,QAAkD;AACpE,QAAM,aAAa,OAAO,UAAU,EAAE,EAAE,YAAY;AACpD,SAAO,eAAe,IAAI,UAAU,IAAI,WACpC,yBAAyB,IAAI,UAAU,IAAI,YAAY;AAC7D;AAUO,SAAS,8BACd,UACA,aACA,MACY;AACZ,QAAM,QAAoB,CAAC;AAC3B,aAAW,OAAO,UAAU;AAC1B,UAAM,YAAY,KAAK,MAAM,IAAI,SAAS;AAC1C,QAAI,CAAC,OAAO,SAAS,SAAS,EAAG;AACjC,UAAM,UAAU,YAAY;AAC5B,UAAM,SAAS,WAAW,IAAI,MAAM;AACpC,UAAM,OAAO,WAAW;AACxB,UAAM,QACJ,IAAI,eAAe,SACf,UAAU,IAAI,aACd,QAAQ,MAAM,UAAU,SACtB,KAAK,QAAQ,cACb;AACR,UAAM,KAAK;AAAA,MACT,IAAI,IAAI;AAAA,MACR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C,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,KAAK,GAAG,CAAC;AAAA,IAC3D,cAAc;AAAA,IACd,kBAAkB;AAAA,IAClB,GAAI,YAAY,SAAY,EAAE,QAAQ,IAAI,CAAC;AAAA,IAC3C,WAAW,MAAM;AAAA,EACnB;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/trace/mission-flow.ts"],"sourcesContent":["/** Convert journaled step delegations into the flow trace shown by the mission activity lane. */\n\nimport type { StepAgentActivity } from '../missions/agent-activity'\nimport type { FlowSpan, FlowTrace } from '@tangle-network/charts'\n\nconst num = (v: unknown): number | undefined =>\n typeof v === 'number' && Number.isFinite(v) ? v : undefined\nconst rec = (v: unknown): Record<string, unknown> =>\n v && typeof v === 'object' ? (v as Record<string, unknown>) : {}\n\n/** Statuses that mean the delegation is still producing wall time. */\nconst LIVE_DELEGATION_STATUSES = new Set(['pending', 'running'])\nconst ERROR_STATUSES = new Set(['failed', 'error', 'cancelled', 'aborted', 'down'])\n\n/** Interpret domain wire status at the producer boundary, never in the chart. */\nfunction flowStatus(status?: string): NonNullable<FlowSpan['status']> {\n const normalized = String(status ?? '').toLowerCase()\n return ERROR_STATUSES.has(normalized) ? 'failed'\n : LIVE_DELEGATION_STATUSES.has(normalized) ? 'running' : 'done'\n}\n\n/**\n * One 'tool' FlowSpan per delegation, positioned relative to `turnStartMs`\n * (the epoch-ms origin of the trace — usually the step or mission start).\n * A row whose `startedAt` does not parse cannot be placed on a timeline and\n * is omitted from the WATERFALL (it stays in the lane itself). A run without\n * `durationMs` is still in flight: its span extends to `opts.nowMs` when\n * given, else renders as a point — `approx` flags both.\n */\nexport function delegationActivityToFlowSpans(\n activity: StepAgentActivity[],\n turnStartMs: number,\n opts?: { nowMs?: number },\n): FlowSpan[] {\n const spans: FlowSpan[] = []\n for (const run of activity) {\n const startedAt = Date.parse(run.startedAt)\n if (!Number.isFinite(startedAt)) continue\n const startMs = startedAt - turnStartMs\n const status = flowStatus(run.status)\n const live = status === 'running'\n const endMs =\n run.durationMs !== undefined\n ? startMs + run.durationMs\n : live && opts?.nowMs !== undefined\n ? opts.nowMs - turnStartMs\n : startMs\n spans.push({\n id: run.taskId,\n status,\n kind: 'tool',\n name: `${run.tool} — ${run.detail}`,\n startMs,\n endMs: Math.max(endMs, startMs),\n ...(run.durationMs === undefined ? { approx: true } : {}),\n meta: {\n taskId: run.taskId,\n status: run.status,\n ...(run.costUsd !== undefined ? { costUsd: run.costUsd } : {}),\n ...(run.iteration !== undefined ? { iteration: run.iteration } : {}),\n ...(run.phase !== undefined ? { phase: run.phase } : {}),\n ...(run.traceId !== undefined ? { traceId: run.traceId } : {}),\n ...(run.spanId !== undefined ? { spanId: run.spanId } : {}),\n },\n })\n }\n return spans\n}\n\n/**\n * A single step's activity lane as its own FlowTrace — what a per-step\n * drill-in renders. Origin defaults to the earliest delegation start so the\n * waterfall begins at the lane's first run.\n */\nexport function stepActivityFlowTrace(\n activity: StepAgentActivity[],\n opts?: { startedAt?: number; nowMs?: number },\n): FlowTrace {\n let origin = opts?.startedAt\n if (origin === undefined) {\n for (const run of activity) {\n const parsed = Date.parse(run.startedAt)\n if (Number.isFinite(parsed) && (origin === undefined || parsed < origin)) origin = parsed\n }\n }\n const spans = delegationActivityToFlowSpans(\n activity,\n origin ?? 0,\n opts?.nowMs !== undefined ? { nowMs: opts.nowMs } : undefined,\n )\n let costUsd: number | undefined\n for (const span of spans) {\n const c = num(rec(span.meta).costUsd)\n if (c !== undefined) costUsd = (costUsd ?? 0) + c\n }\n return {\n spans,\n totalMs: spans.reduce((max, s) => Math.max(max, s.endMs), 0),\n ...(costUsd !== undefined ? { costUsd } : {}),\n toolCalls: spans.length,\n }\n}\n"],"mappings":";AAKA,IAAM,MAAM,CAAC,MACX,OAAO,MAAM,YAAY,OAAO,SAAS,CAAC,IAAI,IAAI;AACpD,IAAM,MAAM,CAAC,MACX,KAAK,OAAO,MAAM,WAAY,IAAgC,CAAC;AAGjE,IAAM,2BAA2B,oBAAI,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AI,IAAI,WAAW,SAAY,EAAE,QAAQ,IAAI,OAAO,IAAI,CAAC;AAAA,MAC3D;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAOO,SAAS,sBACd,UACA,MACW;AACX,MAAI,SAAS,MAAM;AACnB,MAAI,WAAW,QAAW;AACxB,eAAW,OAAO,UAAU;AAC1B,YAAM,SAAS,KAAK,MAAM,IAAI,SAAS;AACvC,UAAI,OAAO,SAAS,MAAM,MAAM,WAAW,UAAa,SAAS,QAAS,UAAS;AAAA,IACrF;AAAA,EACF;AACA,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,IACV,MAAM,UAAU,SAAY,EAAE,OAAO,KAAK,MAAM,IAAI;AAAA,EACtD;AACA,MAAI;AACJ,aAAW,QAAQ,OAAO;AACxB,UAAM,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE,OAAO;AACpC,QAAI,MAAM,OAAW,YAAW,WAAW,KAAK;AAAA,EAClD;AACA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,MAAM,OAAO,CAAC,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,KAAK,GAAG,CAAC;AAAA,IAC3D,GAAI,YAAY,SAAY,EAAE,QAAQ,IAAI,CAAC;AAAA,IAC3C,WAAW,MAAM;AAAA,EACnB;AACF;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  darkTheme,
3
3
  lightTheme,
4
4
  themeColor
5
- } from "./chunk-27QO3AXJ.js";
5
+ } from "./chunk-YFBL7BT2.js";
6
6
 
7
7
  // src/theme/dom.ts
8
8
  var LIGHT_THEME_COLOR = themeColor(lightTheme.background);
@@ -49,4 +49,4 @@ export {
49
49
  syncThemePreference,
50
50
  THEME_BOOTSTRAP_SCRIPT
51
51
  };
52
- //# sourceMappingURL=chunk-2V7YCTYU.js.map
52
+ //# sourceMappingURL=chunk-HQTTCCYE.js.map
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-OY7A6M7S.js";
5
5
  import {
6
6
  parseRenderUiSchema
7
- } from "./chunk-CVOEGD3Y.js";
7
+ } from "./chunk-UTQ2FPDG.js";
8
8
  import {
9
9
  buildAppToolOpenAITools,
10
10
  findCustomTool,
11
11
  isAppToolName
12
- } from "./chunk-NHOQ5TMH.js";
12
+ } from "./chunk-O23ED5XC.js";
13
13
  import {
14
14
  ToolInputError
15
15
  } from "./chunk-F4XBNR5L.js";
@@ -212,4 +212,4 @@ export {
212
212
  createAppToolRuntimeExecutor,
213
213
  handleAppToolRequest
214
214
  };
215
- //# sourceMappingURL=chunk-STGV7DXB.js.map
215
+ //# sourceMappingURL=chunk-LS65AEPX.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  OPENUI_NODE_JSON_SCHEMA,
6
6
  OPENUI_NODE_TYPES
7
- } from "./chunk-MVTLHM74.js";
7
+ } from "./chunk-5V3NHVM3.js";
8
8
 
9
9
  // src/tools/openai.ts
10
10
  var APP_TOOL_NAMES = ["submit_proposal", "schedule_followup", "render_ui", "add_citation"];
@@ -117,4 +117,4 @@ export {
117
117
  customToolToOpenAI,
118
118
  findCustomTool
119
119
  };
120
- //# sourceMappingURL=chunk-NHOQ5TMH.js.map
120
+ //# sourceMappingURL=chunk-O23ED5XC.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-3CI35I4X.js";
5
5
  import {
6
6
  defineAppTool
7
- } from "./chunk-NHOQ5TMH.js";
7
+ } from "./chunk-O23ED5XC.js";
8
8
  import {
9
9
  ToolInputError
10
10
  } from "./chunk-F4XBNR5L.js";
@@ -672,4 +672,4 @@ export {
672
672
  PROFILE_MEMORY_PREFIX,
673
673
  profileTools
674
674
  };
675
- //# sourceMappingURL=chunk-6GN2E5KT.js.map
675
+ //# sourceMappingURL=chunk-PCFVN6KV.js.map
@@ -615,7 +615,7 @@ function MicGlyph({ className }) {
615
615
  // src/web-react/chat-composer.tsx
616
616
  import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
617
617
  function createLazyMentionEditor() {
618
- return lazy2(() => import("./mention-editor-XB4LGO3X.js").then((m) => m.loadMentionEditor()));
618
+ return lazy2(() => import("./mention-editor-UHGJXXUC.js").then((m) => m.loadMentionEditor()));
619
619
  }
620
620
  var IS_APPLE_PLATFORM = typeof navigator !== "undefined" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
621
621
  var DEFAULT_MAX_HEIGHT = 168;
@@ -1853,4 +1853,4 @@ export {
1853
1853
  ComposerModeControls,
1854
1854
  EntryComposer
1855
1855
  };
1856
- //# sourceMappingURL=chunk-HFCPHY5D.js.map
1856
+ //# sourceMappingURL=chunk-S6HCSAO6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  validateOpenUIJsonNode
3
- } from "./chunk-MVTLHM74.js";
3
+ } from "./chunk-5V3NHVM3.js";
4
4
  import {
5
5
  ToolInputError
6
6
  } from "./chunk-F4XBNR5L.js";
@@ -27,4 +27,4 @@ function parseRenderUiSchema(value) {
27
27
  export {
28
28
  parseRenderUiSchema
29
29
  };
30
- //# sourceMappingURL=chunk-CVOEGD3Y.js.map
30
+ //# sourceMappingURL=chunk-UTQ2FPDG.js.map
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-VCG4DQC4.js";
39
39
  import {
40
40
  lightTheme
41
- } from "./chunk-27QO3AXJ.js";
41
+ } from "./chunk-YFBL7BT2.js";
42
42
 
43
43
  // src/design-canvas-react/components/Workspace.tsx
44
44
  import {
@@ -2123,4 +2123,4 @@ export {
2123
2123
  Workspace,
2124
2124
  DesignCanvasEditor
2125
2125
  };
2126
- //# sourceMappingURL=chunk-IUAPYE37.js.map
2126
+ //# sourceMappingURL=chunk-W4FW3RUM.js.map
@@ -1,7 +1,7 @@
1
1
  // src/design-canvas-react/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var DesignCanvasLazy = lazy(
4
- () => import("./DesignCanvasEditor-CYFFF2LZ.js").then((m) => ({ default: m.DesignCanvasEditor }))
4
+ () => import("./DesignCanvasEditor-OQ467KSH.js").then((m) => ({ default: m.DesignCanvasEditor }))
5
5
  );
6
6
  var DesignCanvasChromeLazy = lazy(
7
7
  () => import("./DesignCanvas-JA5O6Y6C.js").then((m) => ({ default: m.DesignCanvas }))
@@ -11,4 +11,4 @@ export {
11
11
  DesignCanvasLazy,
12
12
  DesignCanvasChromeLazy
13
13
  };
14
- //# sourceMappingURL=chunk-XU6A5NT2.js.map
14
+ //# sourceMappingURL=chunk-WKXESHF6.js.map
@@ -147,4 +147,4 @@ export {
147
147
  themeColor,
148
148
  themeToCssVars
149
149
  };
150
- //# sourceMappingURL=chunk-27QO3AXJ.js.map
150
+ //# sourceMappingURL=chunk-YFBL7BT2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: 8cff6457f4410070d3fcd2ee9384bb5444b0d6fb632e7b8fb860eb42dd121be2\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"225 26.6667% 94.1176%\",\n \"foreground\": \"0 0% 24.7059%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 24.7059%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 24.7059%\",\n \"primary\": \"246.2264 92.1739% 54.902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"225 28.5714% 94.5098%\",\n \"secondaryForeground\": \"0 0% 24.7059%\",\n \"muted\": \"225 28.5714% 94.5098%\",\n \"mutedForeground\": \"0 0% 36.4706%\",\n \"accent\": \"225 28.5714% 94.5098%\",\n \"accentForeground\": \"0 0% 24.7059%\",\n \"destructive\": \"0 75.1244% 39.4118%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"222.8571 6.6667% 79.4118%\",\n \"input\": \"0 0% 36.4706%\",\n \"ring\": \"245.9504 54.2601% 56.2745%\",\n \"success\": \"154.8148 64.8% 24.5098%\",\n \"warning\": \"38.2979 65.2778% 28.2353%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 100%\",\n \"warningStrong\": \"38.2979 65.2778% 28.2353%\",\n \"inputFill\": \"hsl(231.4286 46.6667% 97.0588%)\",\n \"canvasBackdrop\": \"hsl(231.4286 11.4754% 88.0392%)\",\n \"borderSoft\": \"hsl(222.8571 6.6667% 79.4118%)\",\n \"cardEdge\": \"hsl(222.8571 6.6667% 79.4118%)\",\n \"canvasRender\": {\n \"grid\": \"#c7c9ce\",\n \"snapGrid\": \"#5d5d5d\",\n \"snapGuide\": \"#1c6085\",\n \"snapPage\": \"#775519\",\n \"snapElement\": \"#b01919\",\n \"selectionStroke\": \"#3822f6\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f4f5fb\",\n \"placeholderStroke\": \"#c7c9ce\",\n \"brokenFill\": \"#edeff5\",\n \"brokenStroke\": \"#5d5d5d\"\n }\n },\n \"dark\": {\n \"background\": \"246.6667 31.0345% 5.6863%\",\n \"foreground\": \"0 0% 84.3137%\",\n \"card\": \"244.2857 22.5806% 12.1569%\",\n \"cardForeground\": \"0 0% 84.3137%\",\n \"popover\": \"242.7273 18.9655% 22.7451%\",\n \"popoverForeground\": \"0 0% 84.3137%\",\n \"primary\": \"245.5556 93.1034% 88.6275%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"243.3333 20.4545% 17.2549%\",\n \"secondaryForeground\": \"0 0% 84.3137%\",\n \"muted\": \"243.3333 20.4545% 17.2549%\",\n \"mutedForeground\": \"0 0% 67.0588%\",\n \"accent\": \"243.3333 20.4545% 17.2549%\",\n \"accentForeground\": \"0 0% 84.3137%\",\n \"destructive\": \"0 74.4681% 90.7843%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"245 18.4615% 25.4902%\",\n \"input\": \"0 0% 67.0588%\",\n \"ring\": \"245.5556 93.1034% 88.6275%\",\n \"success\": \"155.1429 64.8148% 78.8235%\",\n \"warning\": \"38.5714 65.1163% 83.1373%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"38.5714 65.1163% 83.1373%\",\n \"inputFill\": \"hsl(245 26.087% 9.0196%)\",\n \"canvasBackdrop\": \"hsl(240 33.3333% 2.3529%)\",\n \"borderSoft\": \"hsl(245 18.4615% 25.4902%)\",\n \"cardEdge\": \"hsl(245 18.4615% 25.4902%)\",\n \"canvasRender\": {\n \"grid\": \"#37354d\",\n \"snapGrid\": \"#ababab\",\n \"snapGuide\": \"#c4e2f3\",\n \"snapPage\": \"#f0dcb8\",\n \"snapElement\": \"#f9d6d6\",\n \"selectionStroke\": \"#ccc7fd\",\n \"selectionAnchorFill\": \"#302f45\",\n \"placeholderFill\": \"#12111d\",\n \"placeholderStroke\": \"#37354d\",\n \"brokenFill\": \"#242335\",\n \"brokenStroke\": \"#ababab\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,IAAM,cAAc;AAAA,E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AO,MAAM,UAAU;AAAA,IACzC,oBAAoB,OAAO,MAAM,mBAAmB;AAAA,IACpD,gBAAgB,OAAO,MAAM,eAAe;AAAA,IAC5C,iBAAiB,OAAO,MAAM,WAAW;AAAA,IACzC,kBAAkB,OAAO,MAAM,iBAAiB,MAAM,iBAAiB;AAAA,IACvE,oBAAoB,OAAO,MAAM,MAAM;AAAA,IACvC,mBAAmB,OAAO,MAAM,OAAO;AAAA,IACvC,iCAAiC,OAAO,MAAM,OAAO;AAAA,IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: 0c7c651d8868f07bd4f7fd50788575cef2b0a5288a60fb0b656c8e28b73a9e0c\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"225 26.6667% 94.1176%\",\n \"foreground\": \"0 0% 24.7059%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 24.7059%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 24.7059%\",\n \"primary\": \"246.2264 92.1739% 54.902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"225 28.5714% 94.5098%\",\n \"secondaryForeground\": \"0 0% 24.7059%\",\n \"muted\": \"225 28.5714% 94.5098%\",\n \"mutedForeground\": \"0 0% 36.4706%\",\n \"accent\": \"225 28.5714% 94.5098%\",\n \"accentForeground\": \"0 0% 24.7059%\",\n \"destructive\": \"0 75.1244% 39.4118%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"222.8571 6.6667% 79.4118%\",\n \"input\": \"0 0% 36.4706%\",\n \"ring\": \"245.9504 54.2601% 56.2745%\",\n \"success\": \"154.8148 64.8% 24.5098%\",\n \"warning\": \"38.2979 65.2778% 28.2353%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 100%\",\n \"warningStrong\": \"38.2979 65.2778% 28.2353%\",\n \"inputFill\": \"hsl(231.4286 46.6667% 97.0588%)\",\n \"canvasBackdrop\": \"hsl(231.4286 11.4754% 88.0392%)\",\n \"borderSoft\": \"hsl(222.8571 6.6667% 79.4118%)\",\n \"cardEdge\": \"hsl(222.8571 6.6667% 79.4118%)\",\n \"canvasRender\": {\n \"grid\": \"#c7c9ce\",\n \"snapGrid\": \"#5d5d5d\",\n \"snapGuide\": \"#1c6085\",\n \"snapPage\": \"#775519\",\n \"snapElement\": \"#b01919\",\n \"selectionStroke\": \"#3822f6\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f4f5fb\",\n \"placeholderStroke\": \"#c7c9ce\",\n \"brokenFill\": \"#edeff5\",\n \"brokenStroke\": \"#5d5d5d\"\n }\n },\n \"dark\": {\n \"background\": \"246.6667 31.0345% 5.6863%\",\n \"foreground\": \"0 0% 84.3137%\",\n \"card\": \"244.2857 22.5806% 12.1569%\",\n \"cardForeground\": \"0 0% 84.3137%\",\n \"popover\": \"242.7273 18.9655% 22.7451%\",\n \"popoverForeground\": \"0 0% 84.3137%\",\n \"primary\": \"245.5556 93.1034% 88.6275%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"243.3333 20.4545% 17.2549%\",\n \"secondaryForeground\": \"0 0% 84.3137%\",\n \"muted\": \"243.3333 20.4545% 17.2549%\",\n \"mutedForeground\": \"0 0% 67.0588%\",\n \"accent\": \"243.3333 20.4545% 17.2549%\",\n \"accentForeground\": \"0 0% 84.3137%\",\n \"destructive\": \"0 74.4681% 90.7843%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"245 18.4615% 25.4902%\",\n \"input\": \"0 0% 67.0588%\",\n \"ring\": \"245.5556 93.1034% 88.6275%\",\n \"success\": \"155.1429 64.8148% 78.8235%\",\n \"warning\": \"38.5714 65.1163% 83.1373%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"38.5714 65.1163% 83.1373%\",\n \"inputFill\": \"hsl(245 26.087% 9.0196%)\",\n \"canvasBackdrop\": \"hsl(240 33.3333% 2.3529%)\",\n \"borderSoft\": \"hsl(245 18.4615% 25.4902%)\",\n \"cardEdge\": \"hsl(245 18.4615% 25.4902%)\",\n \"canvasRender\": {\n \"grid\": \"#37354d\",\n \"snapGrid\": \"#ababab\",\n \"snapGuide\": \"#c4e2f3\",\n \"snapPage\": \"#f0dcb8\",\n \"snapElement\": \"#f9d6d6\",\n \"selectionStroke\": \"#ccc7fd\",\n \"selectionAnchorFill\": \"#302f45\",\n \"placeholderFill\": \"#12111d\",\n \"placeholderStroke\": \"#37354d\",\n \"brokenFill\": \"#242335\",\n \"brokenStroke\": \"#ababab\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge 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jD,cAAc,MAAM,aAAa,OAAO,MAAM,IAAI;AAAA,IAClD,kBAAkB,OAAO,MAAM,UAAU;AAAA,IACzC,oBAAoB,OAAO,MAAM,mBAAmB;AAAA,IACpD,gBAAgB,OAAO,MAAM,eAAe;AAAA,IAC5C,iBAAiB,OAAO,MAAM,WAAW;AAAA,IACzC,kBAAkB,OAAO,MAAM,iBAAiB,MAAM,iBAAiB;AAAA,IACvE,oBAAoB,OAAO,MAAM,MAAM;AAAA,IACvC,mBAAmB,OAAO,MAAM,OAAO;AAAA,IACvC,iCAAiC,OAAO,MAAM,OAAO;AAAA,IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-IUAPYE37.js";
14
+ } from "../chunk-W4FW3RUM.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -85,7 +85,7 @@ import {
85
85
  import {
86
86
  DesignCanvasChromeLazy,
87
87
  DesignCanvasLazy
88
- } from "../chunk-XU6A5NT2.js";
88
+ } from "../chunk-WKXESHF6.js";
89
89
  import {
90
90
  LockGlyph
91
91
  } from "../chunk-P4RRC4AO.js";
@@ -100,7 +100,7 @@ import "../chunk-ALIWB2P3.js";
100
100
  import "../chunk-5VE4IDSU.js";
101
101
  import "../chunk-V42C72V5.js";
102
102
  import "../chunk-TXD5HXLE.js";
103
- import "../chunk-27QO3AXJ.js";
103
+ import "../chunk-YFBL7BT2.js";
104
104
 
105
105
  // src/design-canvas-react/components/CanvasInsertPanel.tsx
106
106
  import { useEffect, useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-XU6A5NT2.js";
4
+ } from "../chunk-WKXESHF6.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy