@floegence/floe-webapp-core 0.94.1 → 0.95.0

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.
@@ -1,22 +1,23 @@
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";
1
+ import { createComponent as l, use as ut, spread as lt, mergeProps as gt, insert as C, Portal as ft, addEventListener as wt, template as P, delegateEvents as mt } from "solid-js/web";
2
+ import { useContextMenuActions as kt } from "../ui/ContextMenuActions.js";
3
+ import { WorkbenchCompositionActionsContext as vt, WorkbenchCompositionMessagesContext as yt } from "./workbenchCompositionMessages.js";
4
+ import { createMemo as g, createSignal as I, untrack as b, createEffect as h, onCleanup as W, Show as At } from "solid-js";
4
5
  import { clientToCanvasWorld as E } from "../ui/canvasGeometry.js";
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>"), Ot = /* @__PURE__ */ P("<div><div class=workbench-surface__body data-floe-workbench-canvas-frame=true>");
19
- const Et = "F1";
6
+ import { createUIFirstSelection as Ct } from "../../utils/uiFirstSelection.js";
7
+ import { WorkbenchCanvas as bt } from "./WorkbenchCanvas.js";
8
+ import { WorkbenchContextMenu as ht } from "./WorkbenchContextMenu.js";
9
+ import { WorkbenchDock as Wt } from "./WorkbenchFilterBar.js";
10
+ import { WorkbenchHud as pt } from "./WorkbenchHud.js";
11
+ import { WorkbenchLockButton as St } from "./WorkbenchLockButton.js";
12
+ import { installWorkbenchContextMenuDismissListeners as xt } from "./workbenchContextMenuDismiss.js";
13
+ import { createContextMenuPosition as It, WORKBENCH_CONTEXT_MENU_WIDTH_PX as Mt, estimateContextMenuHeight as Dt } from "./workbenchHelpers.js";
14
+ import { resolveWorkbenchWidgetPlacementPreview as Lt, resolveWorkbenchToolPlacementPreview as Ft } from "./workbenchPlacement.js";
15
+ import { useWorkbenchModel as Tt } from "./useWorkbenchModel.js";
16
+ import { sortWorkbenchDockFocusCandidates as Bt, workbenchDockFocusCandidateKey as R, resolveWorkbenchDockFocusCycle as _t } from "./workbenchDockFocusCycle.js";
17
+ import { resolveWorkbenchInteractionAdapter as Ot } from "./workbenchInteractionAdapter.js";
18
+ import { SURFACE_PORTAL_LAYER_ATTR as Et, DIALOG_SURFACE_HOST_ATTR as Rt } from "../ui/dialogSurfaceScope.js";
19
+ var Nt = /* @__PURE__ */ P("<div class=workbench-menu-backdrop data-floe-workbench-boundary=true>"), Pt = /* @__PURE__ */ P("<div><div class=workbench-surface__body data-floe-workbench-canvas-frame=true>");
20
+ const Xt = "F1";
20
21
  function N(c) {
21
22
  if (c)
22
23
  try {
@@ -27,8 +28,8 @@ function N(c) {
27
28
  c.focus();
28
29
  }
29
30
  }
30
- function ee(c) {
31
- const X = k(() => c.compositionMessages), e = Dt({
31
+ function ce(c) {
32
+ const X = g(() => c.compositionMessages), e = Tt({
32
33
  state: () => c.state(),
33
34
  setState: (t) => c.setState(t),
34
35
  widgetDefinitions: () => c.widgetDefinitions,
@@ -36,7 +37,7 @@ function ee(c) {
36
37
  backgroundLayerDefaults: () => c.backgroundLayerDefaults,
37
38
  onClose: () => {
38
39
  }
39
- }), u = mt({
40
+ }), u = Ct({
40
41
  committed: e.selectedWidgetId,
41
42
  commitEqualRequests: !0,
42
43
  commit: (t, n) => {
@@ -64,7 +65,7 @@ function ee(c) {
64
65
  return;
65
66
  }
66
67
  e.canvas.selectWidget(t);
67
- }, D = (t) => {
68
+ }, M = (t) => {
68
69
  if (c.widgetActivationMode === "after-paint") {
69
70
  if (u.pending() && u.visual() === t) return;
70
71
  u.request(t, {
@@ -73,13 +74,22 @@ function ee(c) {
73
74
  return;
74
75
  }
75
76
  e.canvas.selectWidget(t), e.canvas.commitFront(t);
76
- }, [g, z] = I(null), [V, H] = I(null), d = k(() => Ft(c.interactionAdapter)), [M, w] = I(h(() => d().createInitialInputOwner())), L = k(() => {
77
+ }, [f, z] = I(null), [V, H] = I(null), d = g(() => Ot(c.interactionAdapter)), [D, m] = I(b(() => d().createInitialInputOwner())), L = g(() => {
77
78
  const t = c.launcherWidgetTypes;
78
79
  return !t || t.length <= 0 ? null : new Set(t);
79
- }), U = k(() => {
80
+ }), U = g(() => {
80
81
  const t = e.widgetDefinitions(), n = L();
81
82
  return n ? t.filter((o) => n.has(o.type)) : t;
82
- }), F = k(() => {
83
+ }), $ = kt(), j = g(() => e.contextMenu.state() ? $?.claim()?.actions.map((t) => ({
84
+ id: t.id,
85
+ kind: "action",
86
+ label: t.label,
87
+ icon: () => t.icon?.(),
88
+ disabled: t.disabled,
89
+ onSelect: () => {
90
+ e.contextMenu.close(), t.onSelect();
91
+ }
92
+ })) ?? [] : []), K = g(() => {
83
93
  const t = e.contextMenu.state(), n = e.contextMenu.items(), o = L(), r = o ? n.filter((s) => {
84
94
  if (s.kind !== "action")
85
95
  return !0;
@@ -96,31 +106,31 @@ function ee(c) {
96
106
  widget: a,
97
107
  closeMenu: e.contextMenu.close
98
108
  });
99
- }), T = k(() => {
109
+ }), F = g(() => [...j(), ...K()]), T = g(() => {
100
110
  const t = e.contextMenu.state();
101
111
  if (!t) return;
102
112
  const n = F(), o = n.filter((i) => i.kind === "action").length, r = n.filter((i) => i.kind === "separator").length;
103
- return Wt({
113
+ return It({
104
114
  clientX: t.clientX,
105
115
  clientY: t.clientY,
106
- menuWidth: pt,
107
- menuHeight: St(o, r)
116
+ menuWidth: Mt,
117
+ menuHeight: Dt(o, r)
108
118
  });
109
119
  }), B = (t, n, o) => {
110
120
  const r = d(), i = r.findWidgetRoot(t), a = r.readWidgetId(i);
111
121
  if (a) {
112
122
  if (e.queries.findStickyNoteById(a)) {
113
- w(r.createCanvasInputOwner(n === "focus" ? "background_focus" : "background_pointer"));
123
+ m(r.createCanvasInputOwner(n === "focus" ? "background_focus" : "background_pointer"));
114
124
  return;
115
125
  }
116
- w(r.createWidgetInputOwner(a, n));
126
+ m(r.createWidgetInputOwner(a, n));
117
127
  return;
118
128
  }
119
- const s = g();
120
- s && t instanceof Node && s.contains(t) && w(r.createCanvasInputOwner(o));
129
+ const s = f();
130
+ s && t instanceof Node && s.contains(t) && m(r.createCanvasInputOwner(o));
121
131
  }, _ = (t = "selection_cleared") => {
122
- const n = d(), o = g();
123
- e.selection.clear(), w(n.createCanvasInputOwner(t)), queueMicrotask(() => {
132
+ const n = d(), o = f();
133
+ e.selection.clear(), m(n.createCanvasInputOwner(t)), queueMicrotask(() => {
124
134
  if (!o || typeof document > "u") return;
125
135
  const r = document.activeElement;
126
136
  if (!(r instanceof HTMLElement) || !o.contains(r)) {
@@ -131,19 +141,19 @@ function ee(c) {
131
141
  N(o), i && document.activeElement === r && r.isConnected && r.blur();
132
142
  });
133
143
  }, v = () => {
134
- const t = g()?.querySelector('[data-floe-workbench-canvas-frame="true"]'), n = e.viewport(), o = t?.getBoundingClientRect(), r = o?.width ?? 0, i = o?.height ?? 0;
144
+ const t = f()?.querySelector('[data-floe-workbench-canvas-frame="true"]'), n = e.viewport(), o = t?.getBoundingClientRect(), r = o?.width ?? 0, i = o?.height ?? 0;
135
145
  return {
136
146
  worldX: r > 0 ? (r / 2 - n.x) / n.scale : 240,
137
147
  worldY: i > 0 ? (i / 2 - n.y) / n.scale : 180
138
148
  };
139
- }, m = (t) => {
140
- const n = h(d), o = h(g);
149
+ }, k = (t) => {
150
+ const n = b(d), o = b(f);
141
151
  queueMicrotask(() => {
142
- n.focusWidgetElement(o, t), w(n.createWidgetInputOwner(t, "activation"));
152
+ n.focusWidgetElement(o, t), m(n.createWidgetInputOwner(t, "activation"));
143
153
  });
144
154
  };
145
155
  let y = null;
146
- const $ = (t) => `${t.kind}:${String(t.id)}`, f = (t, n) => ({
156
+ const G = (t) => `${t.kind}:${String(t.id)}`, w = (t, n) => ({
147
157
  kind: t,
148
158
  id: n.id,
149
159
  x: n.x,
@@ -151,8 +161,8 @@ function ee(c) {
151
161
  width: n.width,
152
162
  height: n.height,
153
163
  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)) : [], j = (t) => {
155
- const n = h(g);
164
+ }), S = (t) => t.kind === "widget" ? e.widgets().filter((n) => n.type === t.id).map((n) => w("widget", n)) : t.id === "sticky-note" ? e.stickyNotes().map((n) => w("sticky_note", n)) : t.id === "text" ? e.annotations().map((n) => w("annotation", n)) : t.id === "background-region" ? e.backgroundLayers().map((n) => w("background_layer", n)) : [], Z = (t) => {
165
+ const n = b(f);
156
166
  queueMicrotask(() => {
157
167
  if (!n) return;
158
168
  const o = t.kind === "sticky_note" ? "sticky" : t.kind === "annotation" ? "text" : t.kind === "background_layer" ? "region" : null;
@@ -168,9 +178,9 @@ function ee(c) {
168
178
  } catch {
169
179
  s.focus();
170
180
  }
171
- w(h(d).createCanvasInputOwner("background_focus"));
181
+ m(b(d).createCanvasInputOwner("background_focus"));
172
182
  });
173
- }, K = (t) => {
183
+ }, J = (t) => {
174
184
  e.navigation.centerOnWidget({
175
185
  id: t.id,
176
186
  type: "dock-focus-target",
@@ -182,25 +192,25 @@ function ee(c) {
182
192
  z_index: 0,
183
193
  created_at_unix_ms: t.createdAtUnixMs
184
194
  });
185
- }, G = (t) => {
195
+ }, Q = (t) => {
186
196
  if (t.kind === "widget") {
187
197
  const n = e.queries.findWidgetById(t.id);
188
198
  if (!n) return;
189
- D(n.id), e.navigation.centerOnWidget(n), m(n.id);
199
+ M(n.id), e.navigation.centerOnWidget(n), k(n.id);
190
200
  return;
191
201
  }
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) => {
202
+ t.kind === "sticky_note" ? e.canvas.selectStickyNote(t.id) : t.kind === "annotation" ? e.canvas.selectAnnotation(t.id) : e.canvas.selectBackgroundLayer(t.id), J(t), Z(t);
203
+ }, tt = (t) => {
194
204
  const n = v();
195
205
  if (t.kind === "widget") {
196
206
  const o = e.widgetActions.addWidgetAtWorldCenter(t.id, n.worldX, n.worldY);
197
- return o ? f("widget", o) : null;
207
+ return o ? w("widget", o) : null;
198
208
  }
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
- }, J = (t) => {
209
+ return t.id === "sticky-note" ? w("sticky_note", e.widgetActions.addStickyNoteAtCursor(n.worldX, n.worldY)) : t.id === "text" ? w("annotation", e.widgetActions.addTextAnnotationAtCursor(n.worldX, n.worldY)) : t.id === "background-region" ? w("background_layer", e.widgetActions.addBackgroundLayerAtCursor(n.worldX, n.worldY)) : null;
210
+ }, et = (t) => {
201
211
  let n = S(t), o = p();
202
212
  if (n.length === 0) {
203
- const i = Z(t);
213
+ const i = tt(t);
204
214
  if (!i) {
205
215
  y = null;
206
216
  return;
@@ -210,30 +220,30 @@ function ee(c) {
210
220
  id: i.id
211
221
  };
212
222
  }
213
- const r = Lt({
214
- dockItemKey: $(t),
223
+ const r = _t({
224
+ dockItemKey: G(t),
215
225
  candidates: n,
216
226
  selectedObject: o,
217
227
  session: y
218
228
  });
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;
229
+ y = r.session, r.target && Q(r.target);
230
+ }, nt = (t) => {
231
+ const n = Bt(S(t)), o = p(), r = o ? R(o) : null, i = r ? n.findIndex((a) => R(a) === r) : -1;
222
232
  return {
223
233
  count: n.length,
224
234
  currentIndex: i >= 0 ? i : null,
225
235
  active: i >= 0
226
236
  };
227
- }, tt = (t) => {
237
+ }, ot = (t) => {
228
238
  y?.dockItemKey !== `${t.kind}:${t.id}` && (y = null);
229
- }, et = (t) => {
239
+ }, rt = (t) => {
230
240
  const n = e.navigation.fitWidget(t);
231
- m(n.id);
232
- }, nt = (t) => {
241
+ k(n.id);
242
+ }, it = (t) => {
233
243
  const n = e.navigation.overviewWidget(t);
234
- m(n.id);
244
+ k(n.id);
235
245
  };
236
- b(() => {
246
+ h(() => {
237
247
  c.onApiReady?.({
238
248
  ensureWidget: (t, n) => e.widgetActions.ensureWidget(t, n) ?? null,
239
249
  createWidget: (t, n) => {
@@ -255,15 +265,15 @@ function ee(c) {
255
265
  clearSelection: () => _("selection_cleared"),
256
266
  focusWidget: (t, n) => {
257
267
  const o = e.navigation.focusWidget(t, n);
258
- return m(o.id), o;
268
+ return k(o.id), o;
259
269
  },
260
270
  fitWidget: (t) => {
261
271
  const n = e.navigation.fitWidget(t);
262
- return m(n.id), n;
272
+ return k(n.id), n;
263
273
  },
264
274
  overviewWidget: (t) => {
265
275
  const n = e.navigation.overviewWidget(t);
266
- return m(n.id), n;
276
+ return k(n.id), n;
267
277
  },
268
278
  findWidgetByType: (t) => e.queries.findWidgetByType(t),
269
279
  findWidgetById: (t) => e.queries.findWidgetById(t),
@@ -290,20 +300,20 @@ function ee(c) {
290
300
  c.onApiReady?.(null);
291
301
  });
292
302
  });
293
- const O = () => c.lockShortcut === void 0 ? Et : c.lockShortcut;
294
- b(() => {
303
+ const O = () => c.lockShortcut === void 0 ? Xt : c.lockShortcut;
304
+ h(() => {
295
305
  if (typeof window > "u" || !e.contextMenu.state()) return;
296
- const t = bt({
306
+ const t = xt({
297
307
  ownerWindow: window,
298
308
  onDismiss: e.contextMenu.close
299
309
  });
300
310
  W(() => t());
301
- }), b(() => {
302
- const t = M();
311
+ }), h(() => {
312
+ const t = D();
303
313
  if (t.kind !== "widget") return;
304
- e.widgets().some((o) => o.id === t.widgetId) || w(d().createCanvasInputOwner("widget_removed"));
305
- }), b(() => {
306
- const t = g();
314
+ e.widgets().some((o) => o.id === t.widgetId) || m(d().createCanvasInputOwner("widget_removed"));
315
+ }), h(() => {
316
+ const t = f();
307
317
  if (!t) return;
308
318
  const n = (r) => {
309
319
  B(r.target, "pointer", "background_pointer");
@@ -313,7 +323,7 @@ function ee(c) {
313
323
  t.addEventListener("pointerdown", n, !0), t.addEventListener("focusin", o), W(() => {
314
324
  t.removeEventListener("pointerdown", n, !0), t.removeEventListener("focusin", o);
315
325
  });
316
- }), b(() => {
326
+ }), h(() => {
317
327
  if (c.enableKeyboard === !1 || typeof document > "u") return;
318
328
  const t = O(), n = (o) => {
319
329
  if (!(o.defaultPrevented || o.isComposing)) {
@@ -322,9 +332,9 @@ function ee(c) {
322
332
  return;
323
333
  }
324
334
  if (!d().shouldBypassGlobalHotkeys({
325
- root: g(),
335
+ root: f(),
326
336
  target: o.target,
327
- owner: M(),
337
+ owner: D(),
328
338
  interactiveSelector: d().interactiveSelector
329
339
  }))
330
340
  switch (o.key) {
@@ -357,17 +367,17 @@ function ee(c) {
357
367
  clientX: t,
358
368
  clientY: n
359
369
  });
360
- const r = g()?.querySelector('[data-floe-workbench-canvas-frame="true"]');
370
+ const r = f()?.querySelector('[data-floe-workbench-canvas-frame="true"]');
361
371
  if (!r) return null;
362
372
  const i = r.getBoundingClientRect();
363
373
  return E(i, e.viewport(), {
364
374
  clientX: t,
365
375
  clientY: n
366
376
  });
367
- }, ot = (t, n, o, r) => {
377
+ }, ct = (t, n, o, r) => {
368
378
  const i = x(n, o, r);
369
379
  i && e.widgetActions.addWidgetAtWorldCenter(t, i.worldX, i.worldY);
370
- }, rt = (t, n, o, r) => {
380
+ }, at = (t, n, o, r) => {
371
381
  const i = x(n, o, r);
372
382
  if (i) {
373
383
  if (t === "sticky-note") {
@@ -380,19 +390,19 @@ function ee(c) {
380
390
  }
381
391
  t === "background-region" && e.widgetActions.addBackgroundLayerAtCursor(i.worldX, i.worldY);
382
392
  }
383
- }, it = (t) => {
393
+ }, dt = (t) => {
384
394
  t.button === 0 && (d().findWidgetRoot(t.target) || _("background_pointer"));
385
- }, ct = k(() => {
395
+ }, st = g(() => {
386
396
  const t = V();
387
397
  if (!t) return null;
388
398
  const n = x(t.clientX, t.clientY, t);
389
- return n ? t.kind === "widget" ? xt({
399
+ return n ? t.kind === "widget" ? Lt({
390
400
  type: t.id,
391
401
  widgetDefinitions: e.widgetDefinitions(),
392
402
  worldX: n.worldX,
393
403
  worldY: n.worldY,
394
404
  dropAllowed: t.dropAllowed
395
- }) : It({
405
+ }) : Ft({
396
406
  tool: t.id,
397
407
  label: t.label,
398
408
  worldX: n.worldX,
@@ -402,7 +412,7 @@ function ee(c) {
402
412
  backgroundDefaults: c.backgroundLayerDefaults
403
413
  }) : null;
404
414
  });
405
- return l(ft.Provider, {
415
+ return l(vt.Provider, {
406
416
  value: {
407
417
  duplicate: (t) => {
408
418
  if (t.kind === "sticky_note") {
@@ -420,19 +430,19 @@ function ee(c) {
420
430
  }
421
431
  },
422
432
  get children() {
423
- return l(wt.Provider, {
433
+ return l(yt.Provider, {
424
434
  value: X,
425
435
  get children() {
426
- var t = Ot(), n = t.firstChild;
427
- return at(z, t), dt(t, st({
436
+ var t = Pt(), n = t.firstChild;
437
+ return ut(z, t), lt(t, gt({
428
438
  get class() {
429
439
  return `workbench-surface${c.class ? ` ${c.class}` : ""}`;
430
440
  }
431
441
  }, () => ({
432
442
  [d().surfaceRootAttr]: "true",
433
443
  [d().dialogSurfaceHostAttr]: "true",
434
- [Bt]: "true",
435
- [Tt]: "true"
444
+ [Rt]: "true",
445
+ [Et]: "true"
436
446
  }), {
437
447
  get "data-workbench-theme"() {
438
448
  return e.theme();
@@ -441,7 +451,7 @@ function ee(c) {
441
451
  return e.mode();
442
452
  },
443
453
  tabIndex: -1
444
- }), !1, !0), C(n, l(vt, {
454
+ }), !1, !0), C(n, l(bt, {
445
455
  get widgetDefinitions() {
446
456
  return e.widgetDefinitions();
447
457
  },
@@ -458,7 +468,7 @@ function ee(c) {
458
468
  return e.backgroundLayers();
459
469
  },
460
470
  get placementPreview() {
461
- return ct();
471
+ return st();
462
472
  },
463
473
  get viewport() {
464
474
  return e.viewport();
@@ -499,9 +509,9 @@ function ee(c) {
499
509
  get onCanvasContextMenu() {
500
510
  return e.canvas.openCanvasContextMenu;
501
511
  },
502
- onCanvasPointerDown: it,
512
+ onCanvasPointerDown: dt,
503
513
  onSelectWidget: Y,
504
- onActivateWidget: D,
514
+ onActivateWidget: M,
505
515
  get onWidgetContextMenu() {
506
516
  return e.canvas.openWidgetContextMenu;
507
517
  },
@@ -577,8 +587,8 @@ function ee(c) {
577
587
  get onDeleteBackgroundLayer() {
578
588
  return e.widgetActions.deleteBackgroundLayer;
579
589
  },
580
- onRequestOverview: nt,
581
- onRequestFit: et,
590
+ onRequestOverview: it,
591
+ onRequestFit: rt,
582
592
  get onRequestDelete() {
583
593
  return c.onRequestDelete ?? e.widgetActions.deleteWidget;
584
594
  },
@@ -588,7 +598,7 @@ function ee(c) {
588
598
  get onLayoutInteractionEnd() {
589
599
  return c.onLayoutInteractionEnd;
590
600
  }
591
- })), C(t, l(ht, {
601
+ })), C(t, l(St, {
592
602
  get locked() {
593
603
  return e.locked();
594
604
  },
@@ -598,7 +608,7 @@ function ee(c) {
598
608
  get shortcutLabel() {
599
609
  return O() ?? void 0;
600
610
  }
601
- }), null), C(t, l(At, {
611
+ }), null), C(t, l(Wt, {
602
612
  get widgetDefinitions() {
603
613
  return U();
604
614
  },
@@ -620,9 +630,9 @@ function ee(c) {
620
630
  get onSoloFilter() {
621
631
  return e.filter.solo;
622
632
  },
623
- onFocusCycleItem: J,
624
- resolveItemPresentation: Q,
625
- onDockActivation: tt,
633
+ onFocusCycleItem: et,
634
+ resolveItemPresentation: nt,
635
+ onDockActivation: ot,
626
636
  get onSelectMode() {
627
637
  return e.modes.setMode;
628
638
  },
@@ -630,8 +640,8 @@ function ee(c) {
630
640
  return e.canvas.commitViewport;
631
641
  },
632
642
  onViewportInteractionStart: () => e.canvas.cancelViewportNavigation(),
633
- onCreateAt: ot,
634
- onCreateToolAt: rt,
643
+ onCreateAt: ct,
644
+ onCreateToolAt: at,
635
645
  get onItemClick() {
636
646
  return c.onDockItemClick;
637
647
  },
@@ -651,7 +661,7 @@ function ee(c) {
651
661
  return c.registerExternalDockDragController;
652
662
  },
653
663
  onDragPreviewChange: H
654
- }), null), C(t, l(Ct, {
664
+ }), null), C(t, l(pt, {
655
665
  get scaleLabel() {
656
666
  return e.scaleLabel();
657
667
  },
@@ -665,17 +675,17 @@ function ee(c) {
665
675
  return e.theme();
666
676
  },
667
677
  onSelectTheme: (o) => e.appearance.setTheme(o)
668
- }), null), C(t, l(kt, {
678
+ }), null), C(t, l(At, {
669
679
  get when() {
670
680
  return e.contextMenu.state();
671
681
  },
672
682
  get children() {
673
- return l(ut, {
683
+ return l(ft, {
674
684
  get children() {
675
685
  return [(() => {
676
- var o = _t();
677
- return lt(o, "contextmenu", e.contextMenu.retarget, !0), o;
678
- })(), l(yt, {
686
+ var o = Nt();
687
+ return wt(o, "contextmenu", e.contextMenu.retarget, !0), o;
688
+ })(), l(ht, {
679
689
  get x() {
680
690
  return T()?.left ?? 0;
681
691
  },
@@ -695,7 +705,7 @@ function ee(c) {
695
705
  }
696
706
  });
697
707
  }
698
- gt(["contextmenu"]);
708
+ mt(["contextmenu"]);
699
709
  export {
700
- ee as WorkbenchSurface
710
+ ce as WorkbenchSurface
701
711
  };