@floegence/floe-webapp-core 0.54.1 → 0.55.1

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,5 +1,5 @@
1
1
  import { FloeProvider as r } from "./app/FloeProvider.js";
2
- import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as n, builtInThemes as a, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as u } from "./styles/themes/index.js";
2
+ import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as n, builtInThemes as a, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as c } from "./styles/themes/index.js";
3
3
  import { floeColorTokenCategories as g, floeDesignTokens as x, floeFontFamilyTokens as y, floeMotionTokens as C, floeRadiusTokens as h, floeSharedCssVariables as S, floeSpacingTokens as F, floeSurfaceTokens as v, floeThemeColorVariables as P, floeTypographyTokens as k, getFloeColorTokenValue as I } from "./styles/tokens.js";
4
4
  import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as b, builtInShellThemePresets as L, createShellThemePreset as _, getShellThemePresetsForMode as A, normalizeShellThemeSelection as N, presetSupportsMode as O, resolveShellThemePresetName as M } from "./styles/themes/presets.js";
5
5
  import { CommandProvider as U, createCommandService as w, useCommand as G } from "./context/CommandContext.js";
@@ -8,31 +8,32 @@ import { DEFAULT_FLOE_CONFIG as j, FloeConfigProvider as J, useFloeConfig as X,
8
8
  import { DeckProvider as ee, createDeckService as oe, useDeck as re } from "./context/DeckContext.js";
9
9
  import { FLOE_GEOMETRY_SURFACE_ATTR as ie, FLOE_HOT_INTERACTION_ATTR as se, startHotInteraction as ne } from "./utils/hotInteraction.js";
10
10
  import { FileBrowserDragProvider as me, hasFileBrowserDragContext as le, useFileBrowserDrag as pe } from "./context/FileBrowserDragContext.js";
11
- import { LayoutProvider as de, createLayoutService as Te, useLayout as ue } from "./context/LayoutContext.js";
11
+ import { LayoutProvider as de, createLayoutService as Te, useLayout as ce } from "./context/LayoutContext.js";
12
12
  import { NotificationContainer as ge, NotificationProvider as xe, createNotificationService as ye, useNotification as Ce } from "./context/NotificationContext.js";
13
13
  import { ThemeProvider as Se, createThemeService as Fe, useTheme as ve } from "./context/ThemeContext.js";
14
14
  import { ViewActivationProvider as ke, useViewActivation as Ie } from "./context/ViewActivationContext.js";
15
15
  import { WidgetRegistryProvider as De, createWidgetRegistry as Ee, useWidgetRegistry as be } from "./context/WidgetRegistry.js";
16
16
  import { WidgetStateProvider as _e, useCurrentWidgetId as Ae, useWidgetState as Ne, useWidgetStateContext as Oe } from "./context/WidgetStateContext.js";
17
17
  import { applyDragDelta as Be, applyResizeDelta as Ue, getGridCellSize as we, pixelDeltaToGridDelta as Ge, positionToGridArea as He, snapToGrid as We } from "./utils/gridLayout.js";
18
- import { checkCollision as Ve, constrainPosition as ze, findFreePosition as Qe, hasCollision as qe, sameGridPosition as Ye } from "./utils/gridCollision.js";
19
- import { cn as Je } from "./utils/cn.js";
20
- import { createSimpleContext as Ze } from "./context/createSimpleContext.js";
21
- import { createUIFirstSelection as eo } from "./utils/uiFirstSelection.js";
22
- import { deferAfterPaint as ro, deferNonBlocking as to } from "./utils/defer.js";
23
- import { duration as so, easing as no, fadeIn as ao, listContainer as mo, listItem as lo, panelResize as po, popIn as fo, scaleIn as To, sidebarVariants as uo, slideInFromBottom as co, slideInFromLeft as go, slideInFromRight as xo, slideInFromTop as yo, springConfig as Co } from "./utils/animations.js";
24
- import { formatKeybind as So, isMacLikePlatform as Fo, isPrimaryModKeyPressed as vo, matchKeybind as Po, parseKeybind as ko } from "./utils/keybind.js";
25
- import { isTypingElement as Ro, shouldIgnoreHotkeys as Do } from "./utils/dom.js";
26
- import { lockBodyStyle as bo } from "./utils/bodyStyleLock.js";
27
- import { registerCommandContributions as _o, useCommandContributions as Ao } from "./hooks/useCommandContributions.js";
28
- import { secureRandomUUID as Oo } from "./utils/secureRandom.js";
29
- import { useDebounce as Bo } from "./hooks/useDebounce.js";
30
- import { useDeckDrag as wo } from "./hooks/useDeckDrag.js";
31
- import { useFileBrowserDropTarget as Ho, useFileBrowserItemDrag as Wo } from "./hooks/useFileBrowserDrag.js";
32
- import { useKeybind as Vo } from "./hooks/useKeybind.js";
33
- import { useMediaQuery as Qo } from "./hooks/useMediaQuery.js";
34
- import { usePersisted as Yo } from "./hooks/usePersisted.js";
35
- import { useResizeObserver as Jo } from "./hooks/useResizeObserver.js";
18
+ import { calculateFitScale as Ve } from "./utils/fitScale.js";
19
+ import { checkCollision as Qe, constrainPosition as qe, findFreePosition as Ye, hasCollision as je, sameGridPosition as Je } from "./utils/gridCollision.js";
20
+ import { cn as Ze } from "./utils/cn.js";
21
+ import { createSimpleContext as eo } from "./context/createSimpleContext.js";
22
+ import { createUIFirstSelection as ro } from "./utils/uiFirstSelection.js";
23
+ import { deferAfterPaint as io, deferNonBlocking as so } from "./utils/defer.js";
24
+ import { duration as ao, easing as mo, fadeIn as lo, listContainer as po, listItem as fo, panelResize as To, popIn as co, scaleIn as uo, sidebarVariants as go, slideInFromBottom as xo, slideInFromLeft as yo, slideInFromRight as Co, slideInFromTop as ho, springConfig as So } from "./utils/animations.js";
25
+ import { formatKeybind as vo, isMacLikePlatform as Po, isPrimaryModKeyPressed as ko, matchKeybind as Io, parseKeybind as Ro } from "./utils/keybind.js";
26
+ import { isTypingElement as Eo, shouldIgnoreHotkeys as bo } from "./utils/dom.js";
27
+ import { lockBodyStyle as _o } from "./utils/bodyStyleLock.js";
28
+ import { registerCommandContributions as No, useCommandContributions as Oo } from "./hooks/useCommandContributions.js";
29
+ import { secureRandomUUID as Bo } from "./utils/secureRandom.js";
30
+ import { useDebounce as wo } from "./hooks/useDebounce.js";
31
+ import { useDeckDrag as Ho } from "./hooks/useDeckDrag.js";
32
+ import { useFileBrowserDropTarget as Ko, useFileBrowserItemDrag as Vo } from "./hooks/useFileBrowserDrag.js";
33
+ import { useKeybind as Qo } from "./hooks/useKeybind.js";
34
+ import { useMediaQuery as Yo } from "./hooks/useMediaQuery.js";
35
+ import { usePersisted as Jo } from "./hooks/usePersisted.js";
36
+ import { useResizeObserver as Zo } from "./hooks/useResizeObserver.js";
36
37
  export {
37
38
  D as BUILT_IN_SHELL_THEME_DEFAULTS,
38
39
  U as CommandProvider,
@@ -60,25 +61,26 @@ export {
60
61
  b as assertUniqueThemePresetNames,
61
62
  L as builtInShellThemePresets,
62
63
  a as builtInThemes,
63
- Ve as checkCollision,
64
- Je as cn,
65
- ze as constrainPosition,
64
+ Ve as calculateFitScale,
65
+ Qe as checkCollision,
66
+ Ze as cn,
67
+ qe as constrainPosition,
66
68
  w as createCommandService,
67
69
  K as createComponentRegistry,
68
70
  oe as createDeckService,
69
71
  Te as createLayoutService,
70
72
  ye as createNotificationService,
71
73
  _ as createShellThemePreset,
72
- Ze as createSimpleContext,
74
+ eo as createSimpleContext,
73
75
  Fe as createThemeService,
74
- eo as createUIFirstSelection,
76
+ ro as createUIFirstSelection,
75
77
  Ee as createWidgetRegistry,
76
- ro as deferAfterPaint,
77
- to as deferNonBlocking,
78
- so as duration,
79
- no as easing,
80
- ao as fadeIn,
81
- Qe as findFreePosition,
78
+ io as deferAfterPaint,
79
+ so as deferNonBlocking,
80
+ ao as duration,
81
+ mo as easing,
82
+ lo as fadeIn,
83
+ Ye as findFreePosition,
82
84
  g as floeColorTokenCategories,
83
85
  x as floeDesignTokens,
84
86
  y as floeFontFamilyTokens,
@@ -89,67 +91,67 @@ export {
89
91
  v as floeSurfaceTokens,
90
92
  P as floeThemeColorVariables,
91
93
  k as floeTypographyTokens,
92
- So as formatKeybind,
94
+ vo as formatKeybind,
93
95
  I as getFloeColorTokenValue,
94
96
  we as getGridCellSize,
95
97
  A as getShellThemePresetsForMode,
96
98
  m as getSystemTheme,
97
- qe as hasCollision,
99
+ je as hasCollision,
98
100
  V as hasComponentRegistryContext,
99
101
  le as hasFileBrowserDragContext,
100
102
  l as isFloeSurfaceStyle,
101
- Fo as isMacLikePlatform,
102
- vo as isPrimaryModKeyPressed,
103
+ Po as isMacLikePlatform,
104
+ ko as isPrimaryModKeyPressed,
103
105
  p as isThemeType,
104
- Ro as isTypingElement,
105
- mo as listContainer,
106
- lo as listItem,
107
- bo as lockBodyStyle,
108
- Po as matchKeybind,
106
+ Eo as isTypingElement,
107
+ po as listContainer,
108
+ fo as listItem,
109
+ _o as lockBodyStyle,
110
+ Io as matchKeybind,
109
111
  f as mergeThemeTokenMaps,
110
112
  N as normalizeShellThemeSelection,
111
- po as panelResize,
112
- ko as parseKeybind,
113
+ To as panelResize,
114
+ Ro as parseKeybind,
113
115
  Ge as pixelDeltaToGridDelta,
114
- fo as popIn,
116
+ co as popIn,
115
117
  He as positionToGridArea,
116
118
  O as presetSupportsMode,
117
- _o as registerCommandContributions,
119
+ No as registerCommandContributions,
118
120
  M as resolveShellThemePresetName,
119
121
  d as resolveThemeTokenOverrides,
120
122
  T as resolveThemeTokens,
121
- Ye as sameGridPosition,
122
- To as scaleIn,
123
- Oo as secureRandomUUID,
124
- Do as shouldIgnoreHotkeys,
125
- uo as sidebarVariants,
126
- co as slideInFromBottom,
127
- go as slideInFromLeft,
128
- xo as slideInFromRight,
129
- yo as slideInFromTop,
123
+ Je as sameGridPosition,
124
+ uo as scaleIn,
125
+ Bo as secureRandomUUID,
126
+ bo as shouldIgnoreHotkeys,
127
+ go as sidebarVariants,
128
+ xo as slideInFromBottom,
129
+ yo as slideInFromLeft,
130
+ Co as slideInFromRight,
131
+ ho as slideInFromTop,
130
132
  We as snapToGrid,
131
- Co as springConfig,
133
+ So as springConfig,
132
134
  ne as startHotInteraction,
133
- u as syncThemeTokenOverrides,
135
+ c as syncThemeTokenOverrides,
134
136
  G as useCommand,
135
- Ao as useCommandContributions,
137
+ Oo as useCommandContributions,
136
138
  z as useComponentContextFactory,
137
139
  Q as useComponentRegistry,
138
140
  Ae as useCurrentWidgetId,
139
- Bo as useDebounce,
141
+ wo as useDebounce,
140
142
  re as useDeck,
141
- wo as useDeckDrag,
143
+ Ho as useDeckDrag,
142
144
  pe as useFileBrowserDrag,
143
- Ho as useFileBrowserDropTarget,
144
- Wo as useFileBrowserItemDrag,
145
+ Ko as useFileBrowserDropTarget,
146
+ Vo as useFileBrowserItemDrag,
145
147
  X as useFloeConfig,
146
- Vo as useKeybind,
147
- ue as useLayout,
148
- Qo as useMediaQuery,
148
+ Qo as useKeybind,
149
+ ce as useLayout,
150
+ Yo as useMediaQuery,
149
151
  Ce as useNotification,
150
152
  q as useOptionalComponentRegistry,
151
- Yo as usePersisted,
152
- Jo as useResizeObserver,
153
+ Jo as usePersisted,
154
+ Zo as useResizeObserver,
153
155
  Z as useResolvedFloeConfig,
154
156
  ve as useTheme,
155
157
  Ie as useViewActivation,