@floegence/floe-webapp-core 0.36.27 → 0.36.30
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/components/workbench/WorkbenchContextMenu.js +25 -25
- package/dist/components/workbench/WorkbenchWidget.js +234 -182
- package/dist/components/workbench/index.d.ts +1 -1
- package/dist/components/workbench/types.d.ts +2 -0
- package/dist/components/workbench/useWorkbenchModel.js +131 -115
- package/dist/components/workbench/workbenchHelpers.d.ts +2 -1
- package/dist/components/workbench/workbenchHelpers.js +87 -83
- package/dist/styles.css +1 -1
- package/dist/workbench.css +30 -0
- package/dist/workbench.js +13 -12
- package/package.json +1 -1
package/dist/workbench.css
CHANGED
|
@@ -281,10 +281,25 @@
|
|
|
281
281
|
transform-origin: 0 0;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
.workbench-widget__surface {
|
|
285
|
+
position: relative;
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
width: 100%;
|
|
289
|
+
height: 100%;
|
|
290
|
+
transform-origin: 0 0;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
}
|
|
293
|
+
|
|
284
294
|
.workbench-widget.is-dragging {
|
|
295
|
+
will-change: transform;
|
|
285
296
|
transition: none;
|
|
286
297
|
}
|
|
287
298
|
|
|
299
|
+
.workbench-widget.is-resizing {
|
|
300
|
+
will-change: transform;
|
|
301
|
+
}
|
|
302
|
+
|
|
288
303
|
.workbench-widget:hover {
|
|
289
304
|
box-shadow:
|
|
290
305
|
0 1px 2px color-mix(in srgb, var(--foreground, #000) 5%, transparent),
|
|
@@ -648,6 +663,21 @@
|
|
|
648
663
|
text-align: left;
|
|
649
664
|
}
|
|
650
665
|
|
|
666
|
+
.workbench-context-menu__icon {
|
|
667
|
+
display: inline-flex;
|
|
668
|
+
align-items: center;
|
|
669
|
+
justify-content: center;
|
|
670
|
+
width: 14px;
|
|
671
|
+
height: 14px;
|
|
672
|
+
flex-shrink: 0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.workbench-context-menu__icon-svg {
|
|
676
|
+
width: 14px;
|
|
677
|
+
height: 14px;
|
|
678
|
+
flex-shrink: 0;
|
|
679
|
+
}
|
|
680
|
+
|
|
651
681
|
.workbench-context-menu__item:hover {
|
|
652
682
|
background: var(--accent, #f2f2f2);
|
|
653
683
|
}
|
package/dist/workbench.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DEFAULT_WORKBENCH_THEME as o, WORKBENCH_THEMES as t, WORKBENCH_THEME_IDS as c, isWorkbenchThemeId as W, workbenchThemeMeta as n } from "./components/workbench/workbenchThemes.js";
|
|
2
2
|
import { DEFAULT_WORKBENCH_VIEWPORT as a, WORKBENCH_WIDGET_TYPES as i } from "./components/workbench/types.js";
|
|
3
|
-
import { WIDGET_REGISTRY as k, createWorkbenchFilterState as E, getWidgetEntry as d, isValidWorkbenchWidgetType as
|
|
3
|
+
import { WIDGET_REGISTRY as k, createWorkbenchFilterState as E, getWidgetEntry as d, isValidWorkbenchWidgetType as f, resolveWorkbenchWidgetDefinitions as T } from "./components/workbench/widgets/widgetRegistry.js";
|
|
4
4
|
import { WorkbenchContextMenu as m } from "./components/workbench/WorkbenchContextMenu.js";
|
|
5
|
-
import { WorkbenchOverlay as
|
|
6
|
-
import { WorkbenchSurface as
|
|
7
|
-
import { WorkbenchThemeSelector as
|
|
8
|
-
import { createDefaultWorkbenchState as
|
|
5
|
+
import { WorkbenchOverlay as R } from "./components/workbench/WorkbenchOverlay.js";
|
|
6
|
+
import { WorkbenchSurface as x } from "./components/workbench/WorkbenchSurface.js";
|
|
7
|
+
import { WorkbenchThemeSelector as s } from "./components/workbench/WorkbenchThemeSelector.js";
|
|
8
|
+
import { createDefaultWorkbenchState as g, createWorkbenchId as H, createWorkbenchProjectedRect as O, createWorkbenchRenderLayerMap as C, createWorkbenchViewportCenteredOnWidget as D, createWorkbenchViewportFitForWidget as I, createWorkbenchWidgetSurfaceMetrics as u, resolveWorkbenchProjectedSurfaceScaleBehavior as B, resolveWorkbenchWidgetRenderMode as v, sanitizeWorkbenchState as F } from "./components/workbench/workbenchHelpers.js";
|
|
9
9
|
import { useWorkbenchModel as N } from "./components/workbench/useWorkbenchModel.js";
|
|
10
10
|
export {
|
|
11
11
|
o as DEFAULT_WORKBENCH_THEME,
|
|
@@ -15,10 +15,10 @@ export {
|
|
|
15
15
|
c as WORKBENCH_THEME_IDS,
|
|
16
16
|
i as WORKBENCH_WIDGET_TYPES,
|
|
17
17
|
m as WorkbenchContextMenu,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
R as WorkbenchOverlay,
|
|
19
|
+
x as WorkbenchSurface,
|
|
20
|
+
s as WorkbenchThemeSelector,
|
|
21
|
+
g as createDefaultWorkbenchState,
|
|
22
22
|
E as createWorkbenchFilterState,
|
|
23
23
|
H as createWorkbenchId,
|
|
24
24
|
O as createWorkbenchProjectedRect,
|
|
@@ -27,10 +27,11 @@ export {
|
|
|
27
27
|
I as createWorkbenchViewportFitForWidget,
|
|
28
28
|
u as createWorkbenchWidgetSurfaceMetrics,
|
|
29
29
|
d as getWidgetEntry,
|
|
30
|
-
|
|
30
|
+
f as isValidWorkbenchWidgetType,
|
|
31
31
|
W as isWorkbenchThemeId,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
B as resolveWorkbenchProjectedSurfaceScaleBehavior,
|
|
33
|
+
T as resolveWorkbenchWidgetDefinitions,
|
|
34
|
+
v as resolveWorkbenchWidgetRenderMode,
|
|
34
35
|
F as sanitizeWorkbenchState,
|
|
35
36
|
N as useWorkbenchModel,
|
|
36
37
|
n as workbenchThemeMeta
|