@floegence/floe-webapp-core 0.35.47 → 0.35.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/file-browser/FileBrowser.js +38 -37
- package/dist/components/file-browser/FileBrowserContext.js +359 -297
- package/dist/components/file-browser/FileGridView.js +190 -167
- package/dist/components/file-browser/FileListView.js +328 -307
- package/dist/components/file-browser/index.d.ts +1 -1
- package/dist/components/file-browser/longPressContextMenu.js +32 -33
- package/dist/components/file-browser/types.d.ts +10 -0
- package/dist/components/file-browser/useFileBrowserMarqueeSelection.d.ts +16 -0
- package/dist/components/file-browser/useFileBrowserMarqueeSelection.js +69 -0
- package/dist/floe.css +8 -0
- package/dist/full.js +66 -64
- package/dist/index.js +53 -51
- package/dist/styles.css +1 -1
- package/dist/utils/keybind.d.ts +2 -0
- package/dist/utils/keybind.js +24 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FloeProvider as r } from "./app/FloeProvider.js";
|
|
2
2
|
import { applyTheme as i, builtInThemes as s, getSystemTheme as n, mergeThemeTokenMaps as a, resolveThemeTokenOverrides as m, resolveThemeTokens as p, syncThemeTokenOverrides as l } from "./styles/themes/index.js";
|
|
3
3
|
import { floeColorTokenCategories as d, floeDesignTokens as g, floeFontFamilyTokens as T, floeMotionTokens as u, floeRadiusTokens as x, floeSharedCssVariables as c, floeSpacingTokens as C, floeThemeColorVariables as y, floeTypographyTokens as v, getFloeColorTokenValue as F } from "./styles/tokens.js";
|
|
4
|
-
import { CommandProvider as
|
|
5
|
-
import { ComponentRegistryProvider as
|
|
6
|
-
import { DEFAULT_FLOE_CONFIG as
|
|
7
|
-
import { DeckProvider as G, createDeckService as
|
|
8
|
-
import { FLOE_GEOMETRY_SURFACE_ATTR as
|
|
4
|
+
import { CommandProvider as h, createCommandService as P, useCommand as R } from "./context/CommandContext.js";
|
|
5
|
+
import { ComponentRegistryProvider as I, createComponentRegistry as S, hasComponentRegistryContext as b, useComponentContextFactory as O, useComponentRegistry as A, useOptionalComponentRegistry as E } from "./context/ComponentRegistry.js";
|
|
6
|
+
import { DEFAULT_FLOE_CONFIG as B, FloeConfigProvider as N, useFloeConfig as _, useResolvedFloeConfig as w } from "./context/FloeConfigContext.js";
|
|
7
|
+
import { DeckProvider as G, createDeckService as M, useDeck as V } from "./context/DeckContext.js";
|
|
8
|
+
import { FLOE_GEOMETRY_SURFACE_ATTR as z, FLOE_HOT_INTERACTION_ATTR as H, startHotInteraction as U } from "./utils/hotInteraction.js";
|
|
9
9
|
import { FileBrowserDragProvider as Y, hasFileBrowserDragContext as j, useFileBrowserDrag as q } from "./context/FileBrowserDragContext.js";
|
|
10
10
|
import { LayoutProvider as X, createLayoutService as Z, useLayout as $ } from "./context/LayoutContext.js";
|
|
11
11
|
import { NotificationContainer as oe, NotificationProvider as re, createNotificationService as te, useNotification as ie } from "./context/NotificationContext.js";
|
|
@@ -13,29 +13,29 @@ import { ThemeProvider as ne, createThemeService as ae, useTheme as me } from ".
|
|
|
13
13
|
import { ViewActivationProvider as le, useViewActivation as fe } from "./context/ViewActivationContext.js";
|
|
14
14
|
import { WidgetRegistryProvider as ge, createWidgetRegistry as Te, useWidgetRegistry as ue } from "./context/WidgetRegistry.js";
|
|
15
15
|
import { WidgetStateProvider as ce, useCurrentWidgetId as Ce, useWidgetState as ye, useWidgetStateContext as ve } from "./context/WidgetStateContext.js";
|
|
16
|
-
import { applyDragDelta as
|
|
16
|
+
import { applyDragDelta as ke, applyResizeDelta as he, getGridCellSize as Pe, pixelDeltaToGridDelta as Re, positionToGridArea as De, snapToGrid as Ie } from "./utils/gridLayout.js";
|
|
17
17
|
import { checkCollision as be, constrainPosition as Oe, findFreePosition as Ae, hasCollision as Ee } from "./utils/gridCollision.js";
|
|
18
|
-
import { cn as
|
|
18
|
+
import { cn as Be } from "./utils/cn.js";
|
|
19
19
|
import { createSimpleContext as _e } from "./context/createSimpleContext.js";
|
|
20
20
|
import { deferAfterPaint as We, deferNonBlocking as Ge } from "./utils/defer.js";
|
|
21
|
-
import { duration as
|
|
22
|
-
import { formatKeybind as ro,
|
|
23
|
-
import { isTypingElement as
|
|
24
|
-
import { lockBodyStyle as
|
|
25
|
-
import { registerCommandContributions as
|
|
26
|
-
import { useDebounce as
|
|
27
|
-
import { useDeckDrag as
|
|
28
|
-
import { useFileBrowserDropTarget as
|
|
29
|
-
import { useKeybind as
|
|
30
|
-
import { useMediaQuery as
|
|
31
|
-
import { usePersisted as
|
|
32
|
-
import { useResizeObserver as
|
|
21
|
+
import { duration as Ve, easing as Ke, fadeIn as ze, listContainer as He, listItem as Ue, panelResize as Qe, popIn as Ye, scaleIn as je, sidebarVariants as qe, slideInFromBottom as Je, slideInFromLeft as Xe, slideInFromRight as Ze, slideInFromTop as $e, springConfig as eo } from "./utils/animations.js";
|
|
22
|
+
import { formatKeybind as ro, isMacLikePlatform as to, isPrimaryModKeyPressed as io, matchKeybind as so, parseKeybind as no } from "./utils/keybind.js";
|
|
23
|
+
import { isTypingElement as mo, shouldIgnoreHotkeys as po } from "./utils/dom.js";
|
|
24
|
+
import { lockBodyStyle as fo } from "./utils/bodyStyleLock.js";
|
|
25
|
+
import { registerCommandContributions as To, useCommandContributions as uo } from "./hooks/useCommandContributions.js";
|
|
26
|
+
import { useDebounce as co } from "./hooks/useDebounce.js";
|
|
27
|
+
import { useDeckDrag as yo } from "./hooks/useDeckDrag.js";
|
|
28
|
+
import { useFileBrowserDropTarget as Fo, useFileBrowserItemDrag as ko } from "./hooks/useFileBrowserDrag.js";
|
|
29
|
+
import { useKeybind as Po } from "./hooks/useKeybind.js";
|
|
30
|
+
import { useMediaQuery as Do } from "./hooks/useMediaQuery.js";
|
|
31
|
+
import { usePersisted as So } from "./hooks/usePersisted.js";
|
|
32
|
+
import { useResizeObserver as Oo } from "./hooks/useResizeObserver.js";
|
|
33
33
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
h as CommandProvider,
|
|
35
|
+
I as ComponentRegistryProvider,
|
|
36
|
+
B as DEFAULT_FLOE_CONFIG,
|
|
37
37
|
G as DeckProvider,
|
|
38
|
-
|
|
38
|
+
z as FLOE_GEOMETRY_SURFACE_ATTR,
|
|
39
39
|
H as FLOE_HOT_INTERACTION_ATTR,
|
|
40
40
|
Y as FileBrowserDragProvider,
|
|
41
41
|
N as FloeConfigProvider,
|
|
@@ -47,16 +47,16 @@ export {
|
|
|
47
47
|
le as ViewActivationProvider,
|
|
48
48
|
ge as WidgetRegistryProvider,
|
|
49
49
|
ce as WidgetStateProvider,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
ke as applyDragDelta,
|
|
51
|
+
he as applyResizeDelta,
|
|
52
52
|
i as applyTheme,
|
|
53
53
|
s as builtInThemes,
|
|
54
54
|
be as checkCollision,
|
|
55
|
-
|
|
55
|
+
Be as cn,
|
|
56
56
|
Oe as constrainPosition,
|
|
57
|
-
|
|
57
|
+
P as createCommandService,
|
|
58
58
|
S as createComponentRegistry,
|
|
59
|
-
|
|
59
|
+
M as createDeckService,
|
|
60
60
|
Z as createLayoutService,
|
|
61
61
|
te as createNotificationService,
|
|
62
62
|
_e as createSimpleContext,
|
|
@@ -64,9 +64,9 @@ export {
|
|
|
64
64
|
Te as createWidgetRegistry,
|
|
65
65
|
We as deferAfterPaint,
|
|
66
66
|
Ge as deferNonBlocking,
|
|
67
|
-
|
|
67
|
+
Ve as duration,
|
|
68
68
|
Ke as easing,
|
|
69
|
-
|
|
69
|
+
ze as fadeIn,
|
|
70
70
|
Ae as findFreePosition,
|
|
71
71
|
d as floeColorTokenCategories,
|
|
72
72
|
g as floeDesignTokens,
|
|
@@ -79,55 +79,57 @@ export {
|
|
|
79
79
|
v as floeTypographyTokens,
|
|
80
80
|
ro as formatKeybind,
|
|
81
81
|
F as getFloeColorTokenValue,
|
|
82
|
-
|
|
82
|
+
Pe as getGridCellSize,
|
|
83
83
|
n as getSystemTheme,
|
|
84
84
|
Ee as hasCollision,
|
|
85
85
|
b as hasComponentRegistryContext,
|
|
86
86
|
j as hasFileBrowserDragContext,
|
|
87
|
-
|
|
87
|
+
to as isMacLikePlatform,
|
|
88
|
+
io as isPrimaryModKeyPressed,
|
|
89
|
+
mo as isTypingElement,
|
|
88
90
|
He as listContainer,
|
|
89
91
|
Ue as listItem,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
fo as lockBodyStyle,
|
|
93
|
+
so as matchKeybind,
|
|
92
94
|
a as mergeThemeTokenMaps,
|
|
93
95
|
Qe as panelResize,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
no as parseKeybind,
|
|
97
|
+
Re as pixelDeltaToGridDelta,
|
|
96
98
|
Ye as popIn,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
De as positionToGridArea,
|
|
100
|
+
To as registerCommandContributions,
|
|
99
101
|
m as resolveThemeTokenOverrides,
|
|
100
102
|
p as resolveThemeTokens,
|
|
101
103
|
je as scaleIn,
|
|
102
|
-
|
|
104
|
+
po as shouldIgnoreHotkeys,
|
|
103
105
|
qe as sidebarVariants,
|
|
104
106
|
Je as slideInFromBottom,
|
|
105
107
|
Xe as slideInFromLeft,
|
|
106
108
|
Ze as slideInFromRight,
|
|
107
109
|
$e as slideInFromTop,
|
|
108
|
-
|
|
110
|
+
Ie as snapToGrid,
|
|
109
111
|
eo as springConfig,
|
|
110
112
|
U as startHotInteraction,
|
|
111
113
|
l as syncThemeTokenOverrides,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
R as useCommand,
|
|
115
|
+
uo as useCommandContributions,
|
|
114
116
|
O as useComponentContextFactory,
|
|
115
117
|
A as useComponentRegistry,
|
|
116
118
|
Ce as useCurrentWidgetId,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
co as useDebounce,
|
|
120
|
+
V as useDeck,
|
|
121
|
+
yo as useDeckDrag,
|
|
120
122
|
q as useFileBrowserDrag,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
Fo as useFileBrowserDropTarget,
|
|
124
|
+
ko as useFileBrowserItemDrag,
|
|
123
125
|
_ as useFloeConfig,
|
|
124
|
-
|
|
126
|
+
Po as useKeybind,
|
|
125
127
|
$ as useLayout,
|
|
126
|
-
|
|
128
|
+
Do as useMediaQuery,
|
|
127
129
|
ie as useNotification,
|
|
128
130
|
E as useOptionalComponentRegistry,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
So as usePersisted,
|
|
132
|
+
Oo as useResizeObserver,
|
|
131
133
|
w as useResolvedFloeConfig,
|
|
132
134
|
me as useTheme,
|
|
133
135
|
fe as useViewActivation,
|