@floegence/floe-webapp-core 0.35.37 → 0.35.39

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