@floegence/floe-webapp-core 0.81.0 → 0.81.2

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 (31) hide show
  1. package/dist/assets/markdown.worker-DurayC72.js +59 -0
  2. package/dist/components/chat/diff/diffModel.js +1 -1
  3. package/dist/components/chat/hooks/useMarkdown.js +5 -5
  4. package/dist/components/chat/markdown/markdown.js +1 -1
  5. package/dist/components/editor/CodeEditor.js +4 -4
  6. package/dist/components/file-browser/DragPreview.js +1 -1
  7. package/dist/components/icons/DockIcons.js +118 -114
  8. package/dist/components/layout/BottomBarCompanion.js +29 -29
  9. package/dist/components/layout/Shell.js +1 -1
  10. package/dist/components/notes/NotesOverlay.js +1 -1
  11. package/dist/components/ui/FeedbackIndicator.js +109 -101
  12. package/dist/components/ui/picker/PickerNavigation.js +10 -9
  13. package/dist/components/workbench/WorkbenchFilterBar.js +226 -223
  14. package/dist/components/workbench/WorkbenchLockButton.js +1 -1
  15. package/dist/components/workbench/WorkbenchOverlay.js +1 -1
  16. package/dist/components/workbench/WorkbenchSurface.js +101 -101
  17. package/dist/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.js +1141 -0
  18. package/dist/node_modules/.pnpm/{solid-motionone@1.0.4_solid-js@1.9.11 → solid-motionone@1.0.4_solid-js@1.9.15}/node_modules/solid-motionone/dist/index.js +3 -3
  19. package/dist/node_modules/.pnpm/{tailwind-merge@3.4.0 → tailwind-merge@3.7.0}/node_modules/tailwind-merge/dist/bundle-mjs.js +653 -420
  20. package/dist/pdf/PdfDocumentSurface.js +1 -0
  21. package/dist/pdf/localization.js +2 -0
  22. package/dist/styles.css +1 -1
  23. package/dist/utils/cn.js +1 -1
  24. package/package.json +11 -11
  25. package/dist/assets/markdown.worker-xpdzahxf.js +0 -59
  26. package/dist/node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.js +0 -1114
  27. /package/dist/node_modules/.pnpm/{@solid-primitives_props@3.2.2_solid-js@1.9.11 → @solid-primitives_props@3.2.4_solid-js@1.9.15}/node_modules/@solid-primitives/props/dist/combineProps.js +0 -0
  28. /package/dist/node_modules/.pnpm/{@solid-primitives_refs@1.1.2_solid-js@1.9.11 → @solid-primitives_refs@1.1.4_solid-js@1.9.15}/node_modules/@solid-primitives/refs/dist/index.js +0 -0
  29. /package/dist/node_modules/.pnpm/{@solid-primitives_transition-group@1.1.2_solid-js@1.9.11 → @solid-primitives_transition-group@1.1.2_solid-js@1.9.15}/node_modules/@solid-primitives/transition-group/dist/index.js +0 -0
  30. /package/dist/node_modules/.pnpm/{diff@8.0.3 → diff@8.0.4}/node_modules/diff/libesm/diff/base.js +0 -0
  31. /package/dist/node_modules/.pnpm/{diff@8.0.3 → diff@8.0.4}/node_modules/diff/libesm/diff/line.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { insert as n, createComponent as c, memo as s, effect as d, setAttribute as u, template as k, delegateEvents as v } from "solid-js/web";
2
- import { Motion as m } from "../../node_modules/.pnpm/solid-motionone@1.0.4_solid-js@1.9.11/node_modules/solid-motionone/dist/index.js";
2
+ import { Motion as m } from "../../node_modules/.pnpm/solid-motionone@1.0.4_solid-js@1.9.15/node_modules/solid-motionone/dist/index.js";
3
3
  import { easing as f, duration as h } from "../../utils/animations.js";
4
4
  import { Lock as g, Unlock as _ } from "../icons/index.js";
5
5
  var L = /* @__PURE__ */ k("<button type=button class=workbench-lock-button data-floe-surface=floating data-floe-canvas-interactive=true><span class=workbench-lock-button__icon>"), w = /* @__PURE__ */ k("<span class=workbench-lock-button__kbd>");
@@ -1,6 +1,6 @@
1
1
  import { createComponent as r, insert as l, template as s, delegateEvents as y } from "solid-js/web";
2
2
  import { Show as f } from "solid-js";
3
- import { Motion as i } from "../../node_modules/.pnpm/solid-motionone@1.0.4_solid-js@1.9.11/node_modules/solid-motionone/dist/index.js";
3
+ import { Motion as i } from "../../node_modules/.pnpm/solid-motionone@1.0.4_solid-js@1.9.15/node_modules/solid-motionone/dist/index.js";
4
4
  import { easing as h, duration as c } from "../../utils/animations.js";
5
5
  import { useOverlayMask as b } from "../../hooks/useOverlayMask.js";
6
6
  import { X as v } from "../icons/index.js";
@@ -1,22 +1,22 @@
1
- import { createComponent as l, use as ct, spread as at, mergeProps as dt, insert as C, Portal as st, addEventListener as ut, template as P, delegateEvents as lt } from "solid-js/web";
2
- import { WorkbenchCompositionActionsContext as gt, WorkbenchCompositionMessagesContext as ft } from "./workbenchCompositionMessages.js";
3
- import { createSignal as I, createMemo as m, untrack as b, createEffect as h, onCleanup as W, Show as wt } from "solid-js";
1
+ import { createComponent as l, use as at, spread as dt, mergeProps as st, insert as C, Portal as ut, addEventListener as lt, template as P, delegateEvents as gt } from "solid-js/web";
2
+ import { WorkbenchCompositionActionsContext as ft, WorkbenchCompositionMessagesContext as wt } from "./workbenchCompositionMessages.js";
3
+ import { createMemo as k, createSignal as I, untrack as h, createEffect as b, onCleanup as W, Show as kt } from "solid-js";
4
4
  import { clientToCanvasWorld as O } from "../ui/canvasGeometry.js";
5
- import { createUIFirstSelection as kt } from "../../utils/uiFirstSelection.js";
6
- import { WorkbenchCanvas as mt } from "./WorkbenchCanvas.js";
7
- import { WorkbenchContextMenu as vt } from "./WorkbenchContextMenu.js";
8
- import { WorkbenchDock as yt } from "./WorkbenchFilterBar.js";
9
- import { WorkbenchHud as At } from "./WorkbenchHud.js";
10
- import { WorkbenchLockButton as Ct } from "./WorkbenchLockButton.js";
11
- import { installWorkbenchContextMenuDismissListeners as ht } from "./workbenchContextMenuDismiss.js";
12
- import { createContextMenuPosition as bt, WORKBENCH_CONTEXT_MENU_WIDTH_PX as Wt, estimateContextMenuHeight as pt } from "./workbenchHelpers.js";
13
- import { resolveWorkbenchWidgetPlacementPreview as St, resolveWorkbenchToolPlacementPreview as xt } from "./workbenchPlacement.js";
14
- import { useWorkbenchModel as It } from "./useWorkbenchModel.js";
15
- import { sortWorkbenchDockFocusCandidates as Dt, workbenchDockFocusCandidateKey as R, resolveWorkbenchDockFocusCycle as Mt } from "./workbenchDockFocusCycle.js";
16
- import { resolveWorkbenchInteractionAdapter as Lt } from "./workbenchInteractionAdapter.js";
17
- import { SURFACE_PORTAL_LAYER_ATTR as Ft, DIALOG_SURFACE_HOST_ATTR as Tt } from "../ui/dialogSurfaceScope.js";
18
- var Bt = /* @__PURE__ */ P("<div class=workbench-menu-backdrop data-floe-workbench-boundary=true>"), _t = /* @__PURE__ */ P("<div><div class=workbench-surface__body data-floe-workbench-canvas-frame=true>");
19
- const Et = "F1";
5
+ import { createUIFirstSelection as mt } from "../../utils/uiFirstSelection.js";
6
+ import { WorkbenchCanvas as vt } from "./WorkbenchCanvas.js";
7
+ import { WorkbenchContextMenu as yt } from "./WorkbenchContextMenu.js";
8
+ import { WorkbenchDock as At } from "./WorkbenchFilterBar.js";
9
+ import { WorkbenchHud as Ct } from "./WorkbenchHud.js";
10
+ import { WorkbenchLockButton as ht } from "./WorkbenchLockButton.js";
11
+ import { installWorkbenchContextMenuDismissListeners as bt } from "./workbenchContextMenuDismiss.js";
12
+ import { createContextMenuPosition as Wt, WORKBENCH_CONTEXT_MENU_WIDTH_PX as pt, estimateContextMenuHeight as St } from "./workbenchHelpers.js";
13
+ import { resolveWorkbenchWidgetPlacementPreview as xt, resolveWorkbenchToolPlacementPreview as It } from "./workbenchPlacement.js";
14
+ import { useWorkbenchModel as Dt } from "./useWorkbenchModel.js";
15
+ import { sortWorkbenchDockFocusCandidates as Mt, workbenchDockFocusCandidateKey as R, resolveWorkbenchDockFocusCycle as Lt } from "./workbenchDockFocusCycle.js";
16
+ import { resolveWorkbenchInteractionAdapter as Ft } from "./workbenchInteractionAdapter.js";
17
+ import { SURFACE_PORTAL_LAYER_ATTR as Tt, DIALOG_SURFACE_HOST_ATTR as Bt } from "../ui/dialogSurfaceScope.js";
18
+ var _t = /* @__PURE__ */ P("<div class=workbench-menu-backdrop data-floe-workbench-boundary=true>"), Et = /* @__PURE__ */ P("<div><div class=workbench-surface__body data-floe-workbench-canvas-frame=true>");
19
+ const Ot = "F1";
20
20
  function N(c) {
21
21
  if (c)
22
22
  try {
@@ -27,8 +27,8 @@ function N(c) {
27
27
  c.focus();
28
28
  }
29
29
  }
30
- function te(c) {
31
- const e = It({
30
+ function ee(c) {
31
+ const X = k(() => c.compositionMessages), e = Dt({
32
32
  state: () => c.state(),
33
33
  setState: (t) => c.setState(t),
34
34
  widgetDefinitions: () => c.widgetDefinitions,
@@ -36,7 +36,7 @@ function te(c) {
36
36
  backgroundLayerDefaults: () => c.backgroundLayerDefaults,
37
37
  onClose: () => {
38
38
  }
39
- }), u = kt({
39
+ }), u = mt({
40
40
  committed: e.selectedWidgetId,
41
41
  commitEqualRequests: !0,
42
42
  commit: (t, n) => {
@@ -47,7 +47,7 @@ function te(c) {
47
47
  e.canvas.selectWidget(t), n?.bringToFront && e.canvas.commitFront(t);
48
48
  },
49
49
  onEvent: (t) => c.onWidgetActivationEvent?.(t)
50
- }), X = () => c.widgetActivationMode === "after-paint" ? u.visual() : e.selectedWidgetId(), p = () => {
50
+ }), q = () => c.widgetActivationMode === "after-paint" ? u.visual() : e.selectedWidgetId(), p = () => {
51
51
  if (c.widgetActivationMode !== "after-paint" || !u.pending())
52
52
  return e.selectedObject();
53
53
  const t = u.visual();
@@ -55,7 +55,7 @@ function te(c) {
55
55
  kind: "widget",
56
56
  id: t
57
57
  } : null;
58
- }, q = (t) => {
58
+ }, Y = (t) => {
59
59
  if (c.widgetActivationMode === "after-paint") {
60
60
  if (u.pending() && u.visual() === t) return;
61
61
  u.request(t, {
@@ -73,13 +73,13 @@ function te(c) {
73
73
  return;
74
74
  }
75
75
  e.canvas.selectWidget(t), e.canvas.commitFront(t);
76
- }, [g, Y] = I(null), [z, V] = I(null), d = m(() => Lt(c.interactionAdapter)), [M, w] = I(b(() => d().createInitialInputOwner())), L = m(() => {
76
+ }, [g, z] = I(null), [V, H] = I(null), d = k(() => Ft(c.interactionAdapter)), [M, w] = I(h(() => d().createInitialInputOwner())), L = k(() => {
77
77
  const t = c.launcherWidgetTypes;
78
78
  return !t || t.length <= 0 ? null : new Set(t);
79
- }), H = m(() => {
79
+ }), U = k(() => {
80
80
  const t = e.widgetDefinitions(), n = L();
81
81
  return n ? t.filter((o) => n.has(o.type)) : t;
82
- }), F = m(() => {
82
+ }), F = k(() => {
83
83
  const t = e.contextMenu.state(), n = e.contextMenu.items(), o = L(), r = o ? n.filter((s) => {
84
84
  if (s.kind !== "action")
85
85
  return !0;
@@ -96,15 +96,15 @@ function te(c) {
96
96
  widget: a,
97
97
  closeMenu: e.contextMenu.close
98
98
  });
99
- }), T = m(() => {
99
+ }), T = k(() => {
100
100
  const t = e.contextMenu.state();
101
101
  if (!t) return;
102
102
  const n = F(), o = n.filter((i) => i.kind === "action").length, r = n.filter((i) => i.kind === "separator").length;
103
- return bt({
103
+ return Wt({
104
104
  clientX: t.clientX,
105
105
  clientY: t.clientY,
106
- menuWidth: Wt,
107
- menuHeight: pt(o, r)
106
+ menuWidth: pt,
107
+ menuHeight: St(o, r)
108
108
  });
109
109
  }), B = (t, n, o) => {
110
110
  const r = d(), i = r.findWidgetRoot(t), a = r.readWidgetId(i);
@@ -136,14 +136,14 @@ function te(c) {
136
136
  worldX: r > 0 ? (r / 2 - n.x) / n.scale : 240,
137
137
  worldY: i > 0 ? (i / 2 - n.y) / n.scale : 180
138
138
  };
139
- }, k = (t) => {
140
- const n = b(d), o = b(g);
139
+ }, m = (t) => {
140
+ const n = h(d), o = h(g);
141
141
  queueMicrotask(() => {
142
142
  n.focusWidgetElement(o, t), w(n.createWidgetInputOwner(t, "activation"));
143
143
  });
144
144
  };
145
145
  let y = null;
146
- const U = (t) => `${t.kind}:${String(t.id)}`, f = (t, n) => ({
146
+ const $ = (t) => `${t.kind}:${String(t.id)}`, f = (t, n) => ({
147
147
  kind: t,
148
148
  id: n.id,
149
149
  x: n.x,
@@ -151,8 +151,8 @@ function te(c) {
151
151
  width: n.width,
152
152
  height: n.height,
153
153
  createdAtUnixMs: n.created_at_unix_ms
154
- }), S = (t) => t.kind === "widget" ? e.widgets().filter((n) => n.type === t.id).map((n) => f("widget", n)) : t.id === "sticky-note" ? e.stickyNotes().map((n) => f("sticky_note", n)) : t.id === "text" ? e.annotations().map((n) => f("annotation", n)) : t.id === "background-region" ? e.backgroundLayers().map((n) => f("background_layer", n)) : [], $ = (t) => {
155
- const n = b(g);
154
+ }), S = (t) => t.kind === "widget" ? e.widgets().filter((n) => n.type === t.id).map((n) => f("widget", n)) : t.id === "sticky-note" ? e.stickyNotes().map((n) => f("sticky_note", n)) : t.id === "text" ? e.annotations().map((n) => f("annotation", n)) : t.id === "background-region" ? e.backgroundLayers().map((n) => f("background_layer", n)) : [], j = (t) => {
155
+ const n = h(g);
156
156
  queueMicrotask(() => {
157
157
  if (!n) return;
158
158
  const o = t.kind === "sticky_note" ? "sticky" : t.kind === "annotation" ? "text" : t.kind === "background_layer" ? "region" : null;
@@ -168,9 +168,9 @@ function te(c) {
168
168
  } catch {
169
169
  s.focus();
170
170
  }
171
- w(d().createCanvasInputOwner("background_focus"));
171
+ w(h(d).createCanvasInputOwner("background_focus"));
172
172
  });
173
- }, j = (t) => {
173
+ }, K = (t) => {
174
174
  e.navigation.centerOnWidget({
175
175
  id: t.id,
176
176
  type: "dock-focus-target",
@@ -182,25 +182,25 @@ function te(c) {
182
182
  z_index: 0,
183
183
  created_at_unix_ms: t.createdAtUnixMs
184
184
  });
185
- }, K = (t) => {
185
+ }, G = (t) => {
186
186
  if (t.kind === "widget") {
187
187
  const n = e.queries.findWidgetById(t.id);
188
188
  if (!n) return;
189
- D(n.id), e.navigation.centerOnWidget(n), k(n.id);
189
+ D(n.id), e.navigation.centerOnWidget(n), m(n.id);
190
190
  return;
191
191
  }
192
- t.kind === "sticky_note" ? e.canvas.selectStickyNote(t.id) : t.kind === "annotation" ? e.canvas.selectAnnotation(t.id) : e.canvas.selectBackgroundLayer(t.id), j(t), $(t);
193
- }, G = (t) => {
192
+ t.kind === "sticky_note" ? e.canvas.selectStickyNote(t.id) : t.kind === "annotation" ? e.canvas.selectAnnotation(t.id) : e.canvas.selectBackgroundLayer(t.id), K(t), j(t);
193
+ }, Z = (t) => {
194
194
  const n = v();
195
195
  if (t.kind === "widget") {
196
196
  const o = e.widgetActions.addWidgetAtWorldCenter(t.id, n.worldX, n.worldY);
197
197
  return o ? f("widget", o) : null;
198
198
  }
199
199
  return t.id === "sticky-note" ? f("sticky_note", e.widgetActions.addStickyNoteAtCursor(n.worldX, n.worldY)) : t.id === "text" ? f("annotation", e.widgetActions.addTextAnnotationAtCursor(n.worldX, n.worldY)) : t.id === "background-region" ? f("background_layer", e.widgetActions.addBackgroundLayerAtCursor(n.worldX, n.worldY)) : null;
200
- }, Z = (t) => {
200
+ }, J = (t) => {
201
201
  let n = S(t), o = p();
202
202
  if (n.length === 0) {
203
- const i = G(t);
203
+ const i = Z(t);
204
204
  if (!i) {
205
205
  y = null;
206
206
  return;
@@ -210,30 +210,30 @@ function te(c) {
210
210
  id: i.id
211
211
  };
212
212
  }
213
- const r = Mt({
214
- dockItemKey: U(t),
213
+ const r = Lt({
214
+ dockItemKey: $(t),
215
215
  candidates: n,
216
216
  selectedObject: o,
217
217
  session: y
218
218
  });
219
- y = r.session, r.target && K(r.target);
220
- }, J = (t) => {
221
- const n = Dt(S(t)), o = p(), r = o ? R(o) : null, i = r ? n.findIndex((a) => R(a) === r) : -1;
219
+ y = r.session, r.target && G(r.target);
220
+ }, Q = (t) => {
221
+ const n = Mt(S(t)), o = p(), r = o ? R(o) : null, i = r ? n.findIndex((a) => R(a) === r) : -1;
222
222
  return {
223
223
  count: n.length,
224
224
  currentIndex: i >= 0 ? i : null,
225
225
  active: i >= 0
226
226
  };
227
- }, Q = (t) => {
228
- y?.dockItemKey !== `${t.kind}:${t.id}` && (y = null);
229
227
  }, tt = (t) => {
230
- const n = e.navigation.fitWidget(t);
231
- k(n.id);
228
+ y?.dockItemKey !== `${t.kind}:${t.id}` && (y = null);
232
229
  }, et = (t) => {
230
+ const n = e.navigation.fitWidget(t);
231
+ m(n.id);
232
+ }, nt = (t) => {
233
233
  const n = e.navigation.overviewWidget(t);
234
- k(n.id);
234
+ m(n.id);
235
235
  };
236
- h(() => {
236
+ b(() => {
237
237
  c.onApiReady?.({
238
238
  ensureWidget: (t, n) => e.widgetActions.ensureWidget(t, n) ?? null,
239
239
  createWidget: (t, n) => {
@@ -255,15 +255,15 @@ function te(c) {
255
255
  clearSelection: () => _("selection_cleared"),
256
256
  focusWidget: (t, n) => {
257
257
  const o = e.navigation.focusWidget(t, n);
258
- return k(o.id), o;
258
+ return m(o.id), o;
259
259
  },
260
260
  fitWidget: (t) => {
261
261
  const n = e.navigation.fitWidget(t);
262
- return k(n.id), n;
262
+ return m(n.id), n;
263
263
  },
264
264
  overviewWidget: (t) => {
265
265
  const n = e.navigation.overviewWidget(t);
266
- return k(n.id), n;
266
+ return m(n.id), n;
267
267
  },
268
268
  findWidgetByType: (t) => e.queries.findWidgetByType(t),
269
269
  findWidgetById: (t) => e.queries.findWidgetById(t),
@@ -290,19 +290,19 @@ function te(c) {
290
290
  c.onApiReady?.(null);
291
291
  });
292
292
  });
293
- const E = () => c.lockShortcut === void 0 ? Et : c.lockShortcut;
294
- h(() => {
293
+ const E = () => c.lockShortcut === void 0 ? Ot : c.lockShortcut;
294
+ b(() => {
295
295
  if (typeof window > "u" || !e.contextMenu.state()) return;
296
- const t = ht({
296
+ const t = bt({
297
297
  ownerWindow: window,
298
298
  onDismiss: e.contextMenu.close
299
299
  });
300
300
  W(() => t());
301
- }), h(() => {
301
+ }), b(() => {
302
302
  const t = M();
303
303
  if (t.kind !== "widget") return;
304
304
  e.widgets().some((o) => o.id === t.widgetId) || w(d().createCanvasInputOwner("widget_removed"));
305
- }), h(() => {
305
+ }), b(() => {
306
306
  const t = g();
307
307
  if (!t) return;
308
308
  const n = (r) => {
@@ -313,7 +313,7 @@ function te(c) {
313
313
  t.addEventListener("pointerdown", n, !0), t.addEventListener("focusin", o), W(() => {
314
314
  t.removeEventListener("pointerdown", n, !0), t.removeEventListener("focusin", o);
315
315
  });
316
- }), h(() => {
316
+ }), b(() => {
317
317
  if (c.enableKeyboard === !1 || typeof document > "u") return;
318
318
  const t = E(), n = (o) => {
319
319
  if (!(o.defaultPrevented || o.isComposing)) {
@@ -364,10 +364,10 @@ function te(c) {
364
364
  clientX: t,
365
365
  clientY: n
366
366
  });
367
- }, nt = (t, n, o, r) => {
367
+ }, ot = (t, n, o, r) => {
368
368
  const i = x(n, o, r);
369
369
  i && e.widgetActions.addWidgetAtWorldCenter(t, i.worldX, i.worldY);
370
- }, ot = (t, n, o, r) => {
370
+ }, rt = (t, n, o, r) => {
371
371
  const i = x(n, o, r);
372
372
  if (i) {
373
373
  if (t === "sticky-note") {
@@ -380,19 +380,19 @@ function te(c) {
380
380
  }
381
381
  t === "background-region" && e.widgetActions.addBackgroundLayerAtCursor(i.worldX, i.worldY);
382
382
  }
383
- }, rt = (t) => {
383
+ }, it = (t) => {
384
384
  t.button === 0 && (d().findWidgetRoot(t.target) || _("background_pointer"));
385
- }, it = m(() => {
386
- const t = z();
385
+ }, ct = k(() => {
386
+ const t = V();
387
387
  if (!t) return null;
388
388
  const n = x(t.clientX, t.clientY, t);
389
- return n ? t.kind === "widget" ? St({
389
+ return n ? t.kind === "widget" ? xt({
390
390
  type: t.id,
391
391
  widgetDefinitions: e.widgetDefinitions(),
392
392
  worldX: n.worldX,
393
393
  worldY: n.worldY,
394
394
  dropAllowed: t.dropAllowed
395
- }) : xt({
395
+ }) : It({
396
396
  tool: t.id,
397
397
  label: t.label,
398
398
  worldX: n.worldX,
@@ -402,7 +402,7 @@ function te(c) {
402
402
  backgroundDefaults: c.backgroundLayerDefaults
403
403
  }) : null;
404
404
  });
405
- return l(gt.Provider, {
405
+ return l(ft.Provider, {
406
406
  value: {
407
407
  duplicate: (t) => {
408
408
  if (t.kind === "sticky_note") {
@@ -420,19 +420,19 @@ function te(c) {
420
420
  }
421
421
  },
422
422
  get children() {
423
- return l(ft.Provider, {
424
- value: () => c.compositionMessages,
423
+ return l(wt.Provider, {
424
+ value: X,
425
425
  get children() {
426
- var t = _t(), n = t.firstChild;
427
- return ct(Y, t), at(t, dt({
426
+ var t = Et(), n = t.firstChild;
427
+ return at(z, t), dt(t, st({
428
428
  get class() {
429
429
  return `workbench-surface${c.class ? ` ${c.class}` : ""}`;
430
430
  }
431
431
  }, () => ({
432
432
  [d().surfaceRootAttr]: "true",
433
433
  [d().dialogSurfaceHostAttr]: "true",
434
- [Tt]: "true",
435
- [Ft]: "true"
434
+ [Bt]: "true",
435
+ [Tt]: "true"
436
436
  }), {
437
437
  get "data-workbench-theme"() {
438
438
  return e.theme();
@@ -441,7 +441,7 @@ function te(c) {
441
441
  return e.mode();
442
442
  },
443
443
  tabIndex: -1
444
- }), !1, !0), C(n, l(mt, {
444
+ }), !1, !0), C(n, l(vt, {
445
445
  get widgetDefinitions() {
446
446
  return e.widgetDefinitions();
447
447
  },
@@ -458,7 +458,7 @@ function te(c) {
458
458
  return e.backgroundLayers();
459
459
  },
460
460
  get placementPreview() {
461
- return it();
461
+ return ct();
462
462
  },
463
463
  get viewport() {
464
464
  return e.viewport();
@@ -467,7 +467,7 @@ function te(c) {
467
467
  return e.canvasFrameSize();
468
468
  },
469
469
  get selectedWidgetId() {
470
- return X();
470
+ return q();
471
471
  },
472
472
  get selectedObject() {
473
473
  return p();
@@ -499,8 +499,8 @@ function te(c) {
499
499
  get onCanvasContextMenu() {
500
500
  return e.canvas.openCanvasContextMenu;
501
501
  },
502
- onCanvasPointerDown: rt,
503
- onSelectWidget: q,
502
+ onCanvasPointerDown: it,
503
+ onSelectWidget: Y,
504
504
  onActivateWidget: D,
505
505
  get onWidgetContextMenu() {
506
506
  return e.canvas.openWidgetContextMenu;
@@ -577,8 +577,8 @@ function te(c) {
577
577
  get onDeleteBackgroundLayer() {
578
578
  return e.widgetActions.deleteBackgroundLayer;
579
579
  },
580
- onRequestOverview: et,
581
- onRequestFit: tt,
580
+ onRequestOverview: nt,
581
+ onRequestFit: et,
582
582
  get onRequestDelete() {
583
583
  return c.onRequestDelete ?? e.widgetActions.deleteWidget;
584
584
  },
@@ -588,7 +588,7 @@ function te(c) {
588
588
  get onLayoutInteractionEnd() {
589
589
  return c.onLayoutInteractionEnd;
590
590
  }
591
- })), C(t, l(Ct, {
591
+ })), C(t, l(ht, {
592
592
  get locked() {
593
593
  return e.locked();
594
594
  },
@@ -598,9 +598,9 @@ function te(c) {
598
598
  get shortcutLabel() {
599
599
  return E() ?? void 0;
600
600
  }
601
- }), null), C(t, l(yt, {
601
+ }), null), C(t, l(At, {
602
602
  get widgetDefinitions() {
603
- return H();
603
+ return U();
604
604
  },
605
605
  get widgets() {
606
606
  return e.widgets();
@@ -620,9 +620,9 @@ function te(c) {
620
620
  get onSoloFilter() {
621
621
  return e.filter.solo;
622
622
  },
623
- onFocusCycleItem: Z,
624
- resolveItemPresentation: J,
625
- onDockActivation: Q,
623
+ onFocusCycleItem: J,
624
+ resolveItemPresentation: Q,
625
+ onDockActivation: tt,
626
626
  get onSelectMode() {
627
627
  return e.modes.setMode;
628
628
  },
@@ -630,8 +630,8 @@ function te(c) {
630
630
  return e.canvas.commitViewport;
631
631
  },
632
632
  onViewportInteractionStart: () => e.canvas.cancelViewportNavigation(),
633
- onCreateAt: nt,
634
- onCreateToolAt: ot,
633
+ onCreateAt: ot,
634
+ onCreateToolAt: rt,
635
635
  get onItemClick() {
636
636
  return c.onDockItemClick;
637
637
  },
@@ -647,8 +647,8 @@ function te(c) {
647
647
  get registerExternalDockDragController() {
648
648
  return c.registerExternalDockDragController;
649
649
  },
650
- onDragPreviewChange: V
651
- }), null), C(t, l(At, {
650
+ onDragPreviewChange: H
651
+ }), null), C(t, l(Ct, {
652
652
  get scaleLabel() {
653
653
  return e.scaleLabel();
654
654
  },
@@ -662,17 +662,17 @@ function te(c) {
662
662
  return e.theme();
663
663
  },
664
664
  onSelectTheme: (o) => e.appearance.setTheme(o)
665
- }), null), C(t, l(wt, {
665
+ }), null), C(t, l(kt, {
666
666
  get when() {
667
667
  return e.contextMenu.state();
668
668
  },
669
669
  get children() {
670
- return l(st, {
670
+ return l(ut, {
671
671
  get children() {
672
672
  return [(() => {
673
- var o = Bt();
674
- return ut(o, "contextmenu", e.contextMenu.retarget, !0), o;
675
- })(), l(vt, {
673
+ var o = _t();
674
+ return lt(o, "contextmenu", e.contextMenu.retarget, !0), o;
675
+ })(), l(yt, {
676
676
  get x() {
677
677
  return T()?.left ?? 0;
678
678
  },
@@ -692,7 +692,7 @@ function te(c) {
692
692
  }
693
693
  });
694
694
  }
695
- lt(["contextmenu"]);
695
+ gt(["contextmenu"]);
696
696
  export {
697
- te as WorkbenchSurface
697
+ ee as WorkbenchSurface
698
698
  };