@floegence/floe-webapp-core 0.36.47 → 0.36.49
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/WorkbenchCanvas.d.ts +2 -1
- package/dist/components/workbench/WorkbenchCanvas.js +108 -88
- package/dist/components/workbench/WorkbenchCanvasField.d.ts +2 -1
- package/dist/components/workbench/WorkbenchCanvasField.js +40 -34
- package/dist/components/workbench/WorkbenchContextMenu.d.ts +6 -1
- package/dist/components/workbench/WorkbenchContextMenu.js +31 -25
- package/dist/components/workbench/WorkbenchSurface.js +177 -177
- package/dist/components/workbench/WorkbenchWidget.d.ts +2 -1
- package/dist/components/workbench/WorkbenchWidget.js +175 -168
- package/dist/components/workbench/index.d.ts +1 -1
- package/dist/components/workbench/types.d.ts +7 -0
- package/dist/components/workbench/useWorkbenchModel.d.ts +2 -2
- package/dist/components/workbench/useWorkbenchModel.js +247 -220
- package/dist/components/workbench/workbenchHelpers.d.ts +12 -0
- package/dist/components/workbench/workbenchHelpers.js +68 -48
- package/dist/components/workbench/workbenchMotion.d.ts +3 -0
- package/dist/components/workbench/workbenchMotion.js +60 -0
- package/dist/styles.css +1 -1
- package/dist/workbench.css +25 -0
- package/dist/workbench.js +23 -22
- package/package.json +1 -1
package/dist/workbench.css
CHANGED
|
@@ -1290,6 +1290,31 @@
|
|
|
1290
1290
|
border-color 180ms ease;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
+
.workbench-widget.is-entering {
|
|
1294
|
+
animation: workbench-widget-enter 140ms cubic-bezier(0.33, 1, 0.68, 1) both;
|
|
1295
|
+
will-change: opacity, scale;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
@keyframes workbench-widget-enter {
|
|
1299
|
+
from {
|
|
1300
|
+
opacity: 0;
|
|
1301
|
+
scale: 0.985;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
to {
|
|
1305
|
+
opacity: 1;
|
|
1306
|
+
scale: 1;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1311
|
+
.workbench-widget.is-entering {
|
|
1312
|
+
animation: none;
|
|
1313
|
+
opacity: 1;
|
|
1314
|
+
scale: 1;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1293
1318
|
.workbench-canvas__projected-work-layer > .workbench-widget,
|
|
1294
1319
|
.workbench-canvas__projected-work-layer > .workbench-sticky {
|
|
1295
1320
|
pointer-events: auto;
|
package/dist/workbench.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { DEFAULT_WORKBENCH_THEME as E, WORKBENCH_THEMES as _, WORKBENCH_THEME_IDS as o, isWorkbenchThemeId as O, workbenchThemeMeta as t } from "./components/workbench/workbenchThemes.js";
|
|
2
|
-
import { DEFAULT_WORKBENCH_VIEWPORT as
|
|
3
|
-
import { WIDGET_REGISTRY as K, createWorkbenchFilterState as
|
|
4
|
-
import { WORKBENCH_BACKGROUND_MATERIALS as
|
|
2
|
+
import { DEFAULT_WORKBENCH_VIEWPORT as T, WORKBENCH_BACKGROUND_REGION_FILTER_ID as R, WORKBENCH_LAYER_COMPONENT_FILTER_IDS as c, WORKBENCH_STICKY_FILTER_ID as N, WORKBENCH_TEXT_FILTER_ID as C, WORKBENCH_WIDGET_TYPES as n } from "./components/workbench/types.js";
|
|
3
|
+
import { WIDGET_REGISTRY as K, createWorkbenchFilterState as a, getWidgetEntry as h, isValidWorkbenchWidgetType as B, resolveWorkbenchWidgetDefinitions as H } from "./components/workbench/widgets/widgetRegistry.js";
|
|
4
|
+
import { WORKBENCH_BACKGROUND_MATERIALS as i, WORKBENCH_DEFAULT_BACKGROUND_MATERIAL as S, WORKBENCH_DEFAULT_REGION_FILL as b, WORKBENCH_DEFAULT_STICKY_NOTE_COLOR as k, WORKBENCH_DEFAULT_TEXT_COLOR as D, WORKBENCH_DEFAULT_TEXT_FONT as F, WORKBENCH_REGION_FILL_OPTIONS as d, WORKBENCH_STICKY_NOTE_COLORS as f, WORKBENCH_TEXT_COLOR_OPTIONS as A, WORKBENCH_TEXT_EMOJI_OPTIONS as m, WORKBENCH_TEXT_FONT_OPTIONS as p } from "./components/workbench/workbenchOptions.js";
|
|
5
5
|
import { WorkbenchContextMenu as x } from "./components/workbench/WorkbenchContextMenu.js";
|
|
6
6
|
import { WorkbenchOverlay as U } from "./components/workbench/WorkbenchOverlay.js";
|
|
7
|
-
import { WorkbenchSurface as
|
|
8
|
-
import { WorkbenchThemeSelector as
|
|
9
|
-
import { createDefaultWorkbenchState as X, createWorkbenchId as Y, createWorkbenchProjectedRect as v, createWorkbenchRenderLayerMap as y, createWorkbenchViewportCenteredOnWidget as V, createWorkbenchViewportFitForWidget as w,
|
|
10
|
-
import { useWorkbenchModel as
|
|
7
|
+
import { WorkbenchSurface as s } from "./components/workbench/WorkbenchSurface.js";
|
|
8
|
+
import { WorkbenchThemeSelector as P } from "./components/workbench/WorkbenchThemeSelector.js";
|
|
9
|
+
import { createDefaultWorkbenchState as X, createWorkbenchId as Y, createWorkbenchProjectedRect as v, createWorkbenchRenderLayerMap as y, createWorkbenchViewportCenteredOnWidget as V, createWorkbenchViewportFitForWidget as w, createWorkbenchWidgetFrame as j, createWorkbenchWidgetSurfaceMetrics as z, resolveWorkbenchProjectedSurfaceScaleBehavior as J, resolveWorkbenchWidgetRenderMode as q, sanitizeWorkbenchState as Q } from "./components/workbench/workbenchHelpers.js";
|
|
10
|
+
import { useWorkbenchModel as $ } from "./components/workbench/useWorkbenchModel.js";
|
|
11
11
|
export {
|
|
12
12
|
E as DEFAULT_WORKBENCH_THEME,
|
|
13
|
-
|
|
13
|
+
T as DEFAULT_WORKBENCH_VIEWPORT,
|
|
14
14
|
K as WIDGET_REGISTRY,
|
|
15
|
-
|
|
15
|
+
i as WORKBENCH_BACKGROUND_MATERIALS,
|
|
16
16
|
R as WORKBENCH_BACKGROUND_REGION_FILTER_ID,
|
|
17
|
-
|
|
17
|
+
S as WORKBENCH_DEFAULT_BACKGROUND_MATERIAL,
|
|
18
18
|
b as WORKBENCH_DEFAULT_REGION_FILL,
|
|
19
19
|
k as WORKBENCH_DEFAULT_STICKY_NOTE_COLOR,
|
|
20
20
|
D as WORKBENCH_DEFAULT_TEXT_COLOR,
|
|
@@ -24,31 +24,32 @@ export {
|
|
|
24
24
|
N as WORKBENCH_STICKY_FILTER_ID,
|
|
25
25
|
f as WORKBENCH_STICKY_NOTE_COLORS,
|
|
26
26
|
A as WORKBENCH_TEXT_COLOR_OPTIONS,
|
|
27
|
-
|
|
27
|
+
m as WORKBENCH_TEXT_EMOJI_OPTIONS,
|
|
28
28
|
C as WORKBENCH_TEXT_FILTER_ID,
|
|
29
|
-
|
|
29
|
+
p as WORKBENCH_TEXT_FONT_OPTIONS,
|
|
30
30
|
_ as WORKBENCH_THEMES,
|
|
31
31
|
o as WORKBENCH_THEME_IDS,
|
|
32
32
|
n as WORKBENCH_WIDGET_TYPES,
|
|
33
33
|
x as WorkbenchContextMenu,
|
|
34
34
|
U as WorkbenchOverlay,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
s as WorkbenchSurface,
|
|
36
|
+
P as WorkbenchThemeSelector,
|
|
37
37
|
X as createDefaultWorkbenchState,
|
|
38
|
-
|
|
38
|
+
a as createWorkbenchFilterState,
|
|
39
39
|
Y as createWorkbenchId,
|
|
40
40
|
v as createWorkbenchProjectedRect,
|
|
41
41
|
y as createWorkbenchRenderLayerMap,
|
|
42
42
|
V as createWorkbenchViewportCenteredOnWidget,
|
|
43
43
|
w as createWorkbenchViewportFitForWidget,
|
|
44
|
-
j as
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
j as createWorkbenchWidgetFrame,
|
|
45
|
+
z as createWorkbenchWidgetSurfaceMetrics,
|
|
46
|
+
h as getWidgetEntry,
|
|
47
|
+
B as isValidWorkbenchWidgetType,
|
|
47
48
|
O as isWorkbenchThemeId,
|
|
48
|
-
|
|
49
|
+
J as resolveWorkbenchProjectedSurfaceScaleBehavior,
|
|
49
50
|
H as resolveWorkbenchWidgetDefinitions,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
q as resolveWorkbenchWidgetRenderMode,
|
|
52
|
+
Q as sanitizeWorkbenchState,
|
|
53
|
+
$ as useWorkbenchModel,
|
|
53
54
|
t as workbenchThemeMeta
|
|
54
55
|
};
|