@floegence/floe-webapp-core 0.36.6 → 0.36.8
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/editor/CodeEditor.d.ts +2 -0
- package/dist/components/editor/CodeEditor.js +24 -24
- package/dist/components/editor/index.d.ts +1 -0
- package/dist/components/editor/monacoStandaloneRuntime.d.ts +15 -3
- package/dist/components/editor/monacoStandaloneRuntime.js +45 -17
- package/dist/components/ui/InfiniteCanvas.d.ts +2 -0
- package/dist/components/ui/InfiniteCanvas.js +85 -84
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/localInteractionSurface.d.ts +19 -0
- package/dist/components/ui/localInteractionSurface.js +38 -23
- package/dist/components/workbench/WorkbenchCanvas.d.ts +4 -0
- package/dist/components/workbench/WorkbenchCanvas.js +176 -11
- package/dist/components/workbench/WorkbenchSurface.js +9 -6
- package/dist/components/workbench/WorkbenchWidget.d.ts +4 -1
- package/dist/components/workbench/WorkbenchWidget.js +153 -120
- package/dist/components/workbench/index.d.ts +1 -1
- package/dist/components/workbench/types.d.ts +19 -0
- package/dist/components/workbench/useWorkbenchModel.d.ts +4 -0
- package/dist/components/workbench/useWorkbenchModel.js +33 -32
- package/dist/components/workbench/workbenchHelpers.d.ts +14 -1
- package/dist/components/workbench/workbenchHelpers.js +117 -90
- package/dist/editor.js +5 -2
- package/dist/full.js +519 -516
- package/dist/styles.css +1 -1
- package/dist/ui.js +97 -94
- package/dist/workbench.css +16 -0
- package/dist/workbench.js +17 -14
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -1,108 +1,111 @@
|
|
|
1
1
|
import { AffixInput as e, Input as t, NumberInput as a, Textarea as i } from "./components/ui/Input.js";
|
|
2
|
-
import { AnimatedBorderCard as
|
|
3
|
-
import { AreaChart as
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { DirectoryInput as
|
|
11
|
-
import { DirectoryPicker as
|
|
12
|
-
import { Dropdown as
|
|
13
|
-
import { ErrorBlock as
|
|
14
|
-
import { FileSavePicker as
|
|
15
|
-
import { FloatingWindow as
|
|
16
|
-
import { Form as
|
|
17
|
-
import { InfiniteCanvas as
|
|
18
|
-
import { MobileKeyboard as
|
|
19
|
-
import { Pagination as
|
|
20
|
-
import { ProcessingIndicator as
|
|
21
|
-
import { QuoteBlock as
|
|
22
|
-
import { RadioGroup as
|
|
23
|
-
import { SegmentedControl as
|
|
24
|
-
import { Stepper as
|
|
25
|
-
import { Switch as
|
|
26
|
-
import { TabPanel as
|
|
27
|
-
import { Tag as
|
|
28
|
-
import { Tooltip as
|
|
2
|
+
import { AnimatedBorderCard as m, Card as p, CardContent as C, CardDescription as f, CardFooter as c, CardHeader as x, CardTitle as T, Interactive3DCard as l, MorphCard as s, NeonCard as E } from "./components/ui/Card.js";
|
|
3
|
+
import { AreaChart as g, DataBarChart as A, DataPieChart as L, LineChart as S, MonitoringChart as _ } from "./components/ui/Charts.js";
|
|
4
|
+
import { Button as I } from "./components/ui/Button.js";
|
|
5
|
+
import { CANVAS_WHEEL_INTERACTIVE_ATTR as u, DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR as D, DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR as h, DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR as k, LOCAL_INTERACTION_SURFACE_ATTR as B, WORKBENCH_WIDGET_SHELL_ATTR as N, isLocalInteractionSurfaceTarget as W, resolveSurfaceInteractionTargetRole as b, resolveSurfaceWheelRouting as O, resolveWorkbenchWidgetEventOwnership as P } from "./components/ui/localInteractionSurface.js";
|
|
6
|
+
import { Checkbox as H, CheckboxGroup as w, CheckboxList as U } from "./components/ui/Checkbox.js";
|
|
7
|
+
import { CircularProgress as M, LinearProgress as V, SegmentedProgress as y, StepsProgress as K } from "./components/ui/Progress.js";
|
|
8
|
+
import { CommandPalette as Q } from "./components/ui/CommandPalette.js";
|
|
9
|
+
import { ConfirmDialog as q, Dialog as J } from "./components/ui/Dialog.js";
|
|
10
|
+
import { DirectoryInput as Y } from "./components/ui/DirectoryInput.js";
|
|
11
|
+
import { DirectoryPicker as $ } from "./components/ui/DirectoryPicker.js";
|
|
12
|
+
import { Dropdown as or, Select as er } from "./components/ui/Dropdown.js";
|
|
13
|
+
import { ErrorBlock as ar, HighlightBlock as ir, InfoBlock as nr, NoteBlock as mr, SuccessBlock as pr, TipBlock as Cr, WarningBlock as fr } from "./components/ui/HighlightBlock.js";
|
|
14
|
+
import { FileSavePicker as xr } from "./components/ui/FileSavePicker.js";
|
|
15
|
+
import { FloatingWindow as lr } from "./components/ui/FloatingWindow.js";
|
|
16
|
+
import { Form as Er, FormActions as dr, FormControl as gr, FormDescription as Ar, FormDivider as Lr, FormField as Sr, FormLabel as _r, FormMessage as Fr, FormRow as Ir, FormSection as Rr, useFormSubmitting as ur } from "./components/ui/Form.js";
|
|
17
|
+
import { InfiniteCanvas as hr } from "./components/ui/InfiniteCanvas.js";
|
|
18
|
+
import { MobileKeyboard as Br } from "./components/ui/MobileKeyboard.js";
|
|
19
|
+
import { Pagination as Wr } from "./components/ui/Pagination.js";
|
|
20
|
+
import { ProcessingIndicator as Or } from "./components/ui/ProcessingIndicator.js";
|
|
21
|
+
import { QuoteBlock as vr } from "./components/ui/QuoteBlock.js";
|
|
22
|
+
import { RadioGroup as wr, RadioList as Ur, RadioOption as Gr } from "./components/ui/Radio.js";
|
|
23
|
+
import { SegmentedControl as Vr } from "./components/ui/SegmentedControl.js";
|
|
24
|
+
import { Stepper as Kr, Wizard as zr, useWizard as Qr } from "./components/ui/Stepper.js";
|
|
25
|
+
import { Switch as qr } from "./components/ui/Switch.js";
|
|
26
|
+
import { TabPanel as Xr, Tabs as Yr } from "./components/ui/Tabs.js";
|
|
27
|
+
import { Tag as $r } from "./components/ui/Tag.js";
|
|
28
|
+
import { Tooltip as oo } from "./components/ui/Tooltip.js";
|
|
29
29
|
export {
|
|
30
30
|
e as AffixInput,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
m as AnimatedBorderCard,
|
|
32
|
+
g as AreaChart,
|
|
33
|
+
I as Button,
|
|
34
|
+
u as CANVAS_WHEEL_INTERACTIVE_ATTR,
|
|
34
35
|
p as Card,
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
C as CardContent,
|
|
37
|
+
f as CardDescription,
|
|
37
38
|
c as CardFooter,
|
|
38
39
|
x as CardHeader,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
T as CardTitle,
|
|
41
|
+
H as Checkbox,
|
|
42
|
+
w as CheckboxGroup,
|
|
43
|
+
U as CheckboxList,
|
|
44
|
+
M as CircularProgress,
|
|
45
|
+
Q as CommandPalette,
|
|
46
|
+
q as ConfirmDialog,
|
|
47
|
+
D as DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR,
|
|
48
|
+
h as DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR,
|
|
49
|
+
k as DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR,
|
|
50
|
+
A as DataBarChart,
|
|
49
51
|
L as DataPieChart,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
52
|
+
J as Dialog,
|
|
53
|
+
Y as DirectoryInput,
|
|
54
|
+
$ as DirectoryPicker,
|
|
55
|
+
or as Dropdown,
|
|
56
|
+
ar as ErrorBlock,
|
|
57
|
+
xr as FileSavePicker,
|
|
58
|
+
lr as FloatingWindow,
|
|
59
|
+
Er as Form,
|
|
60
|
+
dr as FormActions,
|
|
61
|
+
gr as FormControl,
|
|
62
|
+
Ar as FormDescription,
|
|
63
|
+
Lr as FormDivider,
|
|
64
|
+
Sr as FormField,
|
|
65
|
+
_r as FormLabel,
|
|
66
|
+
Fr as FormMessage,
|
|
67
|
+
Ir as FormRow,
|
|
68
|
+
Rr as FormSection,
|
|
69
|
+
ir as HighlightBlock,
|
|
70
|
+
hr as InfiniteCanvas,
|
|
71
|
+
nr as InfoBlock,
|
|
70
72
|
t as Input,
|
|
71
73
|
l as Interactive3DCard,
|
|
72
|
-
|
|
74
|
+
B as LOCAL_INTERACTION_SURFACE_ATTR,
|
|
73
75
|
S as LineChart,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
V as LinearProgress,
|
|
77
|
+
Br as MobileKeyboard,
|
|
78
|
+
_ as MonitoringChart,
|
|
77
79
|
s as MorphCard,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
E as NeonCard,
|
|
81
|
+
mr as NoteBlock,
|
|
80
82
|
a as NumberInput,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
83
|
+
Wr as Pagination,
|
|
84
|
+
Or as ProcessingIndicator,
|
|
85
|
+
vr as QuoteBlock,
|
|
86
|
+
wr as RadioGroup,
|
|
87
|
+
Ur as RadioList,
|
|
88
|
+
Gr as RadioOption,
|
|
89
|
+
Vr as SegmentedControl,
|
|
90
|
+
y as SegmentedProgress,
|
|
91
|
+
er as Select,
|
|
92
|
+
Kr as Stepper,
|
|
93
|
+
K as StepsProgress,
|
|
94
|
+
pr as SuccessBlock,
|
|
95
|
+
qr as Switch,
|
|
96
|
+
Xr as TabPanel,
|
|
97
|
+
Yr as Tabs,
|
|
98
|
+
$r as Tag,
|
|
97
99
|
i as Textarea,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
Cr as TipBlock,
|
|
101
|
+
oo as Tooltip,
|
|
102
|
+
N as WORKBENCH_WIDGET_SHELL_ATTR,
|
|
103
|
+
fr as WarningBlock,
|
|
104
|
+
zr as Wizard,
|
|
105
|
+
W as isLocalInteractionSurfaceTarget,
|
|
106
|
+
b as resolveSurfaceInteractionTargetRole,
|
|
107
|
+
O as resolveSurfaceWheelRouting,
|
|
108
|
+
P as resolveWorkbenchWidgetEventOwnership,
|
|
109
|
+
ur as useFormSubmitting,
|
|
110
|
+
Qr as useWizard
|
|
108
111
|
};
|
package/dist/workbench.css
CHANGED
|
@@ -151,6 +151,14 @@
|
|
|
151
151
|
height: 2600px;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
.workbench-canvas__projected-layer {
|
|
155
|
+
position: absolute;
|
|
156
|
+
inset: 0;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
z-index: 3;
|
|
160
|
+
}
|
|
161
|
+
|
|
154
162
|
.workbench-canvas__grid {
|
|
155
163
|
position: absolute;
|
|
156
164
|
inset: 0;
|
|
@@ -201,6 +209,14 @@
|
|
|
201
209
|
border-color 180ms ease;
|
|
202
210
|
}
|
|
203
211
|
|
|
212
|
+
.workbench-canvas__projected-layer > .workbench-widget {
|
|
213
|
+
pointer-events: auto;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.workbench-widget.is-projected-surface {
|
|
217
|
+
zoom: var(--floe-workbench-projected-scale, 1);
|
|
218
|
+
}
|
|
219
|
+
|
|
204
220
|
.workbench-widget.is-dragging {
|
|
205
221
|
transition: none;
|
|
206
222
|
}
|
package/dist/workbench.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { DEFAULT_WORKBENCH_VIEWPORT as o, WORKBENCH_WIDGET_TYPES as t } from "./components/workbench/types.js";
|
|
2
|
-
import { WIDGET_REGISTRY as
|
|
2
|
+
import { WIDGET_REGISTRY as W, createWorkbenchFilterState as n, getWidgetEntry as a, isValidWorkbenchWidgetType as b, resolveWorkbenchWidgetDefinitions as h } from "./components/workbench/widgets/widgetRegistry.js";
|
|
3
3
|
import { WorkbenchContextMenu as k } from "./components/workbench/WorkbenchContextMenu.js";
|
|
4
|
-
import { WorkbenchOverlay as
|
|
5
|
-
import { WorkbenchSurface as
|
|
6
|
-
import { createDefaultWorkbenchState as
|
|
7
|
-
import { useWorkbenchModel as
|
|
4
|
+
import { WorkbenchOverlay as f } from "./components/workbench/WorkbenchOverlay.js";
|
|
5
|
+
import { WorkbenchSurface as E } from "./components/workbench/WorkbenchSurface.js";
|
|
6
|
+
import { createDefaultWorkbenchState as R, createWorkbenchId as l, createWorkbenchProjectedRect as m, createWorkbenchRenderLayerMap as s, createWorkbenchWidgetSurfaceMetrics as S, resolveWorkbenchWidgetRenderMode as T, sanitizeWorkbenchState as g } from "./components/workbench/workbenchHelpers.js";
|
|
7
|
+
import { useWorkbenchModel as D } from "./components/workbench/useWorkbenchModel.js";
|
|
8
8
|
export {
|
|
9
9
|
o as DEFAULT_WORKBENCH_VIEWPORT,
|
|
10
|
-
|
|
10
|
+
W as WIDGET_REGISTRY,
|
|
11
11
|
t as WORKBENCH_WIDGET_TYPES,
|
|
12
12
|
k as WorkbenchContextMenu,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
f as WorkbenchOverlay,
|
|
14
|
+
E as WorkbenchSurface,
|
|
15
|
+
R as createDefaultWorkbenchState,
|
|
16
|
+
n as createWorkbenchFilterState,
|
|
17
|
+
l as createWorkbenchId,
|
|
18
|
+
m as createWorkbenchProjectedRect,
|
|
19
|
+
s as createWorkbenchRenderLayerMap,
|
|
20
|
+
S as createWorkbenchWidgetSurfaceMetrics,
|
|
19
21
|
a as getWidgetEntry,
|
|
20
22
|
b as isValidWorkbenchWidgetType,
|
|
21
23
|
h as resolveWorkbenchWidgetDefinitions,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
T as resolveWorkbenchWidgetRenderMode,
|
|
25
|
+
g as sanitizeWorkbenchState,
|
|
26
|
+
D as useWorkbenchModel
|
|
24
27
|
};
|