@sheetxl/utils-react 0.8.0-beta.5 → 0.8.0-beta.6
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/browser/cjs/{fw5WNnhzqSBOfVql.cjs → YFvC9nIpxy3b5ZTk.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/wW5CllvkH2ZVrahP.cjs +1 -0
- package/browser/esm/{B4PJtIazZlYB6W9_.mjs → BOuCGM_ShKu1isoO.mjs} +1 -1
- package/browser/esm/{Deku7hTLCs4v0tqx.mjs → K8Q6fkeEl0Ll2hAD.mjs} +2 -2
- package/browser/esm/index.mjs +3 -3
- package/browser/esm/{CNYL4NlMcPAd1GD1.mjs → uwfuiZoEBqDf8BOV.mjs} +16 -2
- package/node/esm/{D36LxEXtaQioLHfh.mjs → CQHgXLAKZGPGgQvx.mjs} +1 -1
- package/node/esm/{C772PCaAJA8X5IgJ.mjs → DdbxsvNY1fzbSaA7.mjs} +15 -1
- package/node/esm/index.mjs +3 -3
- package/package.json +2 -2
- package/types/src/hooks/LanguageState.d.ts +1 -1
- package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
- package/types/src/persistence/Types.d.ts +5 -5
- package/types/src/persistence/_Context.d.ts +2 -2
- package/types/src/persistence/index.d.ts +2 -2
- package/types/src/persistence/{usePersistenceState.d.ts → usePersistentState.d.ts} +3 -3
- package/browser/cjs/DO0nIGKXa_DxYcn6.cjs +0 -1
- package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -277,7 +277,7 @@ function d() {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
var f = d();
|
|
280
|
-
f.register("base", () => import("./
|
|
280
|
+
f.register("base", () => import("./uwfuiZoEBqDf8BOV.mjs")), f.register("cf", () => import("./BOuCGM_ShKu1isoO.mjs"));
|
|
281
281
|
var p = (e) => a("svg", {
|
|
282
282
|
...e,
|
|
283
283
|
children: a("path", {})
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_csci8_1{max-width:100%;max-height:100%;display:flex}._float-popper-grow_csci8_7{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_csci8_7._entered_csci8_15{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_1f1r8_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);border-radius:4px;outline:none;display:flex;overflow:auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}._float-tooltip_1l6qz_1{box-sizing:border-box;max-width:300px;color:var(--sxl-color-base-100,#fff);background-color:color-mix(in srgb, var(--sxl-color-base-content,#464646) 92%, transparent);pointer-events:none;word-wrap:break-word;border-radius:4px;padding:2px 6px;font-size:.6875rem;font-weight:500;line-height:1.4}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_14aps_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_14aps_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_14aps_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_14aps_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_14aps_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_14aps_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{height:100%}}&.dragging{& ._thumb_14aps_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_14aps_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_14aps_131{cursor:grab;pointer-events:all;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
8
|
+
import { i as e, n as t, r as n, t as r } from "./K8Q6fkeEl0Ll2hAD.mjs";
|
|
9
9
|
import { CommonUtils as i, DefaultLanguagePackService as a, DefaultNotifier as o, ExpectedError as s, InternalClipboard as c, Notifier as l, TimerUtils as u, fetchLocaleResourceAll as d, formatMessage as f, loadPackageLocales as p, mergeMessageFiles as m, onResourceRootsChange as h, resolveLocaleChain as g } from "@sheetxl/utils";
|
|
10
10
|
import * as _ from "react";
|
|
11
11
|
import v, { Component as y, cloneElement as b, createContext as x, createElement as S, forwardRef as C, isValidElement as w, lazy as T, memo as E, useCallback as D, useContext as O, useEffect as k, useId as A, useImperativeHandle as j, useLayoutEffect as M, useMemo as N, useReducer as P, useRef as F, useState as I, useSyncExternalStore as L, version as R } from "react";
|
|
@@ -6272,4 +6272,4 @@ var _c = {
|
|
|
6272
6272
|
});
|
|
6273
6273
|
}
|
|
6274
6274
|
};
|
|
6275
|
-
export { pe as ACCUMULATE, cn as AnimationModeProvider, Os as AxisViewport, rn as Command, Ut as CommandAnchorProvider, Ce as CommandButtonEntryLabel, ye as CommandButtonRegistryContext, xe as CommandButtonRegistryProvider, fe as CommandButtonType, Mt as CommandChainContext, Gt as CommandFallbackContext, Jt as CommandFallbackProvider, Xt as CommandFocusProvider, Pt as CommandOrderContext, me as CommandRegistry, Le as CommandRegistryContext, jt as CommandResolver, Vt as CommandResolverContext, ze as CommandScope, It as CommandScopeContext, zt as CommandScopeProvider, He as ConstantActivation, ve as DefaultCommandButtonRegistry, Ie as DefaultCommandCatalogService, he as DefaultCommandRegistry, n as DefaultIconService, jn as DefaultReactNotifier, t as DynamicIcon, jo as EDGE_HOLD_INTERVAL_MS, Ja as FloatPanel, qa as FloatPanelSurface, Ua as FloatPopper, Qa as FloatProvider, $t as FloatStackProvider, Xa as FloatTooltip, Ue as FocusActivation, Sn as FocusKeyNavigation, Yr as INPUT_SELECTION_TINT, Jr as INPUT_SELECTION_VAR, so as InMemoryStore, Et as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, vr as LanguageStateKey, We as LayerActivation, yo as LocalStorageStore, Ve as ManualActivation, de as MouseButtonCodes, On as NotifierType, Mo as PAGE_INITIAL_DELAY_MS, No as PAGE_REPEAT_DELAY_MS, go as
|
|
6275
|
+
export { pe as ACCUMULATE, cn as AnimationModeProvider, Os as AxisViewport, rn as Command, Ut as CommandAnchorProvider, Ce as CommandButtonEntryLabel, ye as CommandButtonRegistryContext, xe as CommandButtonRegistryProvider, fe as CommandButtonType, Mt as CommandChainContext, Gt as CommandFallbackContext, Jt as CommandFallbackProvider, Xt as CommandFocusProvider, Pt as CommandOrderContext, me as CommandRegistry, Le as CommandRegistryContext, jt as CommandResolver, Vt as CommandResolverContext, ze as CommandScope, It as CommandScopeContext, zt as CommandScopeProvider, He as ConstantActivation, ve as DefaultCommandButtonRegistry, Ie as DefaultCommandCatalogService, he as DefaultCommandRegistry, n as DefaultIconService, jn as DefaultReactNotifier, t as DynamicIcon, jo as EDGE_HOLD_INTERVAL_MS, Ja as FloatPanel, qa as FloatPanelSurface, Ua as FloatPopper, Qa as FloatProvider, $t as FloatStackProvider, Xa as FloatTooltip, Ue as FocusActivation, Sn as FocusKeyNavigation, Yr as INPUT_SELECTION_TINT, Jr as INPUT_SELECTION_VAR, so as InMemoryStore, Et as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, vr as LanguageStateKey, We as LayerActivation, yo as LocalStorageStore, Ve as ManualActivation, de as MouseButtonCodes, On as NotifierType, Mo as PAGE_INITIAL_DELAY_MS, No as PAGE_REPEAT_DELAY_MS, go as PersistentStateProvider, we as QUICK_ACTION_TAG, Ir as ReactErrorBoundary, Nn as ReactNotifierProvider, ct as ReactUtils, vc as Resizable, yc as ResizableBox, wn as RoundedTab, bs as SCROLL_ANIMATION_MS, Hr as SERIES_COUNT, Zr as SXL_THEME_LAYERS, Qr as SXL_THEME_LAYER_ORDER, _s as ScrollPane, ss as ScrollUtils, Zo as Scrollbar, Z as ScrollbarOrientation, oo as SplitPane, to as SplitPaneResizer, ti as THEME_MODE_ATTR, ni as THEME_SURFACE_ATTR, Lo as TOUCH_THUMB_ASPECT, Ro as TOUCH_THUMB_MARGIN, Bo as TOUCH_THUMB_MARGIN_CROSS, Vo as TOUCH_THUMB_MARGIN_END, zo as TOUCH_THUMB_MARGIN_START, Io as TOUCH_THUMB_SIZE, ci as TokenThemeContext, ui as TokenThemeProvider, yn as ToolTipPlacement, Go as TouchThumbFrameProvider, Yo as TouchThumbHandle, Vr as UncaughtErrorBoundary, ys as Viewport, Ps as VirtualScrollbar, r as WalkingIcon, je as asCommandCatalog, Rt as attachWhenReady, ei as buildThemeCSS, Ne as chromeToPartial, Sr as composeCaretRect, kn as createBusyHandle, Fe as createCommandCatalogService, e as createDynamicIconService, An as createNoopBusyHandle, Ee as createResolvedCommand, ii as createThemeScopeClass, Po as createTrackDrag, Ga as defaultCreateFloatPopupPanel, Ao as defaultCreateScrollEdgeButton, ko as defaultCreateScrollEndButton, Oo as defaultCreateScrollStartButton, Za as defaultRenderFloatPanel, vs as defaultRenderScrollCorner, Ur as defaultTheme, Me as fetchCatalog, _i as floatThemeScopeProps, Vn as getDevicePixelRatio, Is as getScrollbarCssVariables, wr as getTextareaCaretRect, Tt as isCaretKey, Ot as keyEventCanonicals, Dt as keyStrokeToCanonical, Dn as lazyComponent, Pe as mergeChrome, ke as parseShortcutString, q as reduceDefinitions, Be as resolveAnchorSource, di as resolveToken, fi as resolveTokens, Fs as scrollbarThemedClassName, Ae as serializeShortcut, gr as setEditMode, ri as themeSurfaceProps, Kr as themeVars, Gr as toVars, Uo as touchThumbCornerReserve, Ho as touchThumbCrossInset, vn as useAnimatedMeasure, sn as useAnimationMode, Ln as useBoundSyncExternalStore, J as useCallbackRef, Se as useCommandButtonEntry, be as useCommandButtonRegistry, Nt as useCommandChain, Bt as useCommandElement, Wt as useCommandExecute, Kt as useCommandFallback, Zt as useCommandFocusRestore, Ft as useCommandOrder, Re as useCommandRegistry, Ht as useCommandResolver, Lt as useCommandScope, tn as useCommands, nn as useContributeCommands, Bn as useDevicePixelRatio, _r as useEditMode, en as useFloat, $a as useFloatStack, gi as useFloatSurface, Un as useFullscreen, Jn as useFullscreenPortal, Er as useGlobalClipboard, Mr as useId, Pr as useImperativeElement, yr as useLanguage, En as useLazyRetry, er as useMouseDownAndHoldListener, Pn as useNotifier, Hn as useOnClickOrFocusAway, zn as useOptionalBoundSyncExternalStore, In as useOptionalSyncExternalStore, mo as usePersistentState, ai as useResolvedThemeMode, $n as useSynchronizedPointerHandler, Qn as useTextSelectionDrag, Tr as useTextareaCaretRect, li as useTokenThemeContext, Ko as useTouchThumbFrame, Dr as useTraceUpdate, Fo as useTrackDrag, br as useTranslator };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./K8Q6fkeEl0Ll2hAD.mjs";
|
|
8
8
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
9
9
|
var r = {
|
|
10
10
|
meta: {
|
|
@@ -365,6 +365,20 @@ var r = {
|
|
|
365
365
|
className: "fill success"
|
|
366
366
|
}
|
|
367
367
|
] },
|
|
368
|
+
NoteInsert: { svg: [
|
|
369
|
+
{
|
|
370
|
+
d: "m 18.054853,10.379482 c -0.123748,0 -0.246135,0.0049 -0.368186,0.01221 V 5.2879282 c 0,-0.7768693 -0.632102,-1.4091874 -1.409014,-1.4091874 H 1.5183591 c -0.77686828,0 -1.40901288,0.6322755 -1.40901288,1.4091874 v 8.8826488 c 0,0.776696 0.63210098,1.408493 1.40901288,1.408493 h 0.2605437 v 4.201566 c 0,0.01458 0.00328,0.02798 0.00436,0.04221 0.00152,0.02255 0.00272,0.04476 0.00676,0.06663 0.0037,0.01967 0.0095,0.03847 0.015088,0.05713 0.00546,0.01898 0.010143,0.03764 0.017291,0.05594 0.0073,0.01865 0.016778,0.03627 0.025942,0.05424 0.00884,0.01696 0.016952,0.03458 0.027458,0.05086 0.011182,0.01729 0.024066,0.03306 0.03695,0.04881 0.011694,0.01475 0.022549,0.02967 0.035432,0.04357 0.01644,0.01696 0.035258,0.03205 0.053738,0.04747 0.010038,0.0079 0.018306,0.01779 0.028986,0.0256 0.00272,0.0019 0.00556,0.0031 0.0083,0.0051 0.010472,0.0073 0.021872,0.0134 0.03288,0.02 0.020684,0.01272 0.041531,0.02457 0.063229,0.03458 0.011694,0.0051 0.023564,0.01002 0.03577,0.01458 0.023728,0.009 0.04764,0.01628 0.07187,0.02237 0.011192,0.0028 0.022036,0.0055 0.033568,0.0077 0.036448,0.0067 0.073233,0.01119 0.1098429,0.01119 h 1.626e-4 1.625e-4 c 0.045764,0 0.089673,-0.0057 0.1322219,-0.01526 0.011694,-0.0027 0.02255,-0.0071 0.03407,-0.01048 0.03119,-0.009 0.0612,-0.01916 0.090175,-0.03255 0.014072,-0.0067 0.027294,-0.01458 0.040516,-0.02237 0.025254,-0.01441 0.049495,-0.02983 0.072382,-0.04747 0.012884,-0.01002 0.025254,-0.02 0.037124,-0.03085 0.024578,-0.02237 0.046614,-0.04661 0.067298,-0.0729 0.00556,-0.0071 0.013048,-0.01238 0.01848,-0.02 L 6.1699123,15.57889 H 12.06176 c -0.03984,0.279529 -0.06153,0.564838 -0.06153,0.855372 0,3.338254 2.716133,6.054128 6.05456,6.054128 3.338254,0 6.054562,-2.715962 6.054562,-6.054128 0,-3.3386 -2.716308,-6.054556 -6.054562,-6.054556 z M 5.859807,14.363718 c -0.01271,0 -0.02424,0.0028 -0.036611,0.004 -0.024752,0.0016 -0.049494,0.0028 -0.07391,0.0073 -0.017804,0.0033 -0.034244,0.0089 -0.051196,0.01356 -0.020684,0.0055 -0.041531,0.0112 -0.061538,0.01898 -0.016952,0.0068 -0.032891,0.01527 -0.049156,0.02356 -0.018982,0.0097 -0.037974,0.01898 -0.055942,0.03034 -0.015262,0.01002 -0.02916,0.02169 -0.04356,0.03289 -0.016778,0.01289 -0.033568,0.02525 -0.048818,0.04034 -0.014574,0.01408 -0.027294,0.02983 -0.040342,0.04542 -0.010472,0.01238 -0.022036,0.02255 -0.031866,0.03577 l -2.3728744,3.285875 1.625e-4,-2.930377 c 0,-0.33564 -0.271899,-0.607539 -0.6075391,-0.607539 H 1.5185303 c -0.106964,0 -0.1939271,-0.0868 -0.1939271,-0.193414 V 5.2881595 c 0,-0.106964 0.086956,-0.1940951 0.1939271,-0.1940951 H 16.277825 c 0.106964,0 0.193925,0.086956 0.193925,0.1940951 v 5.3029455 c -1.902801,0.51619 -3.436706,1.937872 -4.106475,3.772856 z m 12.195046,6.909456 c -2.668312,0 -4.839483,-2.170781 -4.839483,-4.839049 0,-2.668487 2.171127,-4.839481 4.839483,-4.839481 2.668311,0 4.839482,2.171126 4.839482,4.839481 0,2.668312 -2.171127,4.839049 -4.839482,4.839049 z",
|
|
371
|
+
className: "fill"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
d: "m 15.386715,9.0817687 c 0,-1.056852 -0.86001,-1.916861 -1.917397,-1.916861 -1.056851,0 -1.916862,0.859831 -1.916862,1.916861 0,1.0570293 0.859833,1.9172173 1.916862,1.9172173 1.057387,0 1.917397,-0.860188 1.917397,-1.9172173 z m -1.917219,0.668565 c -0.368602,0 -0.668208,-0.29997 -0.668208,-0.668565 0,-0.368594 0.299624,-0.668209 0.668208,-0.668209 0.368777,0 0.668744,0.299624 0.668744,0.668209 -1.67e-4,0.368602 -0.300145,0.668565 -0.668744,0.668565 z M 8.8865838,7.1650867 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.9168592,-0.86001 1.9168592,-1.9172163 0,-1.05685 -0.8598292,-1.91686 -1.9168592,-1.91686 z m 0,2.58547 c -0.368605,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299623,-0.668208 0.66821,-0.668208 0.368583,0 0.668207,0.299624 0.668207,0.668208 0,0.368586 -0.299798,0.668565 -0.668207,0.668565 z m -4.583006,-2.58547 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.916862,-0.86001 1.916862,-1.9172163 0,-1.05685 -0.859832,-1.91686 -1.916862,-1.91686 z m 0,2.58547 c -0.368602,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299626,-0.668208 0.66821,-0.668208 0.368603,0 0.668208,0.299624 0.668208,0.668208 0,0.368586 -0.299973,0.668565 -0.668208,0.668565 z",
|
|
375
|
+
className: "fill"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
d: "m 21.414868,15.755151 h -2.697203 v -2.697715 c 0,-0.359844 -0.291508,-0.651352 -0.651352,-0.651352 -0.359845,0 -0.651353,0.291508 -0.651353,0.651352 v 2.697529 l -2.697202,1.85e-4 c -0.359844,0 -0.651352,0.291508 -0.651352,0.651352 0,0.359844 0.291508,0.651352 0.651352,0.651352 h 2.697202 v 2.697203 c 0,0.359844 0.291508,0.651352 0.651353,0.651352 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 v -2.697202 h 2.697389 c 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 0,-0.359844 -0.291871,-0.651352 -0.651538,-0.651352 z",
|
|
379
|
+
className: "fill success"
|
|
380
|
+
}
|
|
381
|
+
] },
|
|
368
382
|
ContentCopy: { svg: [{
|
|
369
383
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z",
|
|
370
384
|
className: "fill"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -365,6 +365,20 @@ var a = {
|
|
|
365
365
|
className: "fill success"
|
|
366
366
|
}
|
|
367
367
|
] },
|
|
368
|
+
NoteInsert: { svg: [
|
|
369
|
+
{
|
|
370
|
+
d: "m 18.054853,10.379482 c -0.123748,0 -0.246135,0.0049 -0.368186,0.01221 V 5.2879282 c 0,-0.7768693 -0.632102,-1.4091874 -1.409014,-1.4091874 H 1.5183591 c -0.77686828,0 -1.40901288,0.6322755 -1.40901288,1.4091874 v 8.8826488 c 0,0.776696 0.63210098,1.408493 1.40901288,1.408493 h 0.2605437 v 4.201566 c 0,0.01458 0.00328,0.02798 0.00436,0.04221 0.00152,0.02255 0.00272,0.04476 0.00676,0.06663 0.0037,0.01967 0.0095,0.03847 0.015088,0.05713 0.00546,0.01898 0.010143,0.03764 0.017291,0.05594 0.0073,0.01865 0.016778,0.03627 0.025942,0.05424 0.00884,0.01696 0.016952,0.03458 0.027458,0.05086 0.011182,0.01729 0.024066,0.03306 0.03695,0.04881 0.011694,0.01475 0.022549,0.02967 0.035432,0.04357 0.01644,0.01696 0.035258,0.03205 0.053738,0.04747 0.010038,0.0079 0.018306,0.01779 0.028986,0.0256 0.00272,0.0019 0.00556,0.0031 0.0083,0.0051 0.010472,0.0073 0.021872,0.0134 0.03288,0.02 0.020684,0.01272 0.041531,0.02457 0.063229,0.03458 0.011694,0.0051 0.023564,0.01002 0.03577,0.01458 0.023728,0.009 0.04764,0.01628 0.07187,0.02237 0.011192,0.0028 0.022036,0.0055 0.033568,0.0077 0.036448,0.0067 0.073233,0.01119 0.1098429,0.01119 h 1.626e-4 1.625e-4 c 0.045764,0 0.089673,-0.0057 0.1322219,-0.01526 0.011694,-0.0027 0.02255,-0.0071 0.03407,-0.01048 0.03119,-0.009 0.0612,-0.01916 0.090175,-0.03255 0.014072,-0.0067 0.027294,-0.01458 0.040516,-0.02237 0.025254,-0.01441 0.049495,-0.02983 0.072382,-0.04747 0.012884,-0.01002 0.025254,-0.02 0.037124,-0.03085 0.024578,-0.02237 0.046614,-0.04661 0.067298,-0.0729 0.00556,-0.0071 0.013048,-0.01238 0.01848,-0.02 L 6.1699123,15.57889 H 12.06176 c -0.03984,0.279529 -0.06153,0.564838 -0.06153,0.855372 0,3.338254 2.716133,6.054128 6.05456,6.054128 3.338254,0 6.054562,-2.715962 6.054562,-6.054128 0,-3.3386 -2.716308,-6.054556 -6.054562,-6.054556 z M 5.859807,14.363718 c -0.01271,0 -0.02424,0.0028 -0.036611,0.004 -0.024752,0.0016 -0.049494,0.0028 -0.07391,0.0073 -0.017804,0.0033 -0.034244,0.0089 -0.051196,0.01356 -0.020684,0.0055 -0.041531,0.0112 -0.061538,0.01898 -0.016952,0.0068 -0.032891,0.01527 -0.049156,0.02356 -0.018982,0.0097 -0.037974,0.01898 -0.055942,0.03034 -0.015262,0.01002 -0.02916,0.02169 -0.04356,0.03289 -0.016778,0.01289 -0.033568,0.02525 -0.048818,0.04034 -0.014574,0.01408 -0.027294,0.02983 -0.040342,0.04542 -0.010472,0.01238 -0.022036,0.02255 -0.031866,0.03577 l -2.3728744,3.285875 1.625e-4,-2.930377 c 0,-0.33564 -0.271899,-0.607539 -0.6075391,-0.607539 H 1.5185303 c -0.106964,0 -0.1939271,-0.0868 -0.1939271,-0.193414 V 5.2881595 c 0,-0.106964 0.086956,-0.1940951 0.1939271,-0.1940951 H 16.277825 c 0.106964,0 0.193925,0.086956 0.193925,0.1940951 v 5.3029455 c -1.902801,0.51619 -3.436706,1.937872 -4.106475,3.772856 z m 12.195046,6.909456 c -2.668312,0 -4.839483,-2.170781 -4.839483,-4.839049 0,-2.668487 2.171127,-4.839481 4.839483,-4.839481 2.668311,0 4.839482,2.171126 4.839482,4.839481 0,2.668312 -2.171127,4.839049 -4.839482,4.839049 z",
|
|
371
|
+
className: "fill"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
d: "m 15.386715,9.0817687 c 0,-1.056852 -0.86001,-1.916861 -1.917397,-1.916861 -1.056851,0 -1.916862,0.859831 -1.916862,1.916861 0,1.0570293 0.859833,1.9172173 1.916862,1.9172173 1.057387,0 1.917397,-0.860188 1.917397,-1.9172173 z m -1.917219,0.668565 c -0.368602,0 -0.668208,-0.29997 -0.668208,-0.668565 0,-0.368594 0.299624,-0.668209 0.668208,-0.668209 0.368777,0 0.668744,0.299624 0.668744,0.668209 -1.67e-4,0.368602 -0.300145,0.668565 -0.668744,0.668565 z M 8.8865838,7.1650867 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.9168592,-0.86001 1.9168592,-1.9172163 0,-1.05685 -0.8598292,-1.91686 -1.9168592,-1.91686 z m 0,2.58547 c -0.368605,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299623,-0.668208 0.66821,-0.668208 0.368583,0 0.668207,0.299624 0.668207,0.668208 0,0.368586 -0.299798,0.668565 -0.668207,0.668565 z m -4.583006,-2.58547 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.916862,-0.86001 1.916862,-1.9172163 0,-1.05685 -0.859832,-1.91686 -1.916862,-1.91686 z m 0,2.58547 c -0.368602,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299626,-0.668208 0.66821,-0.668208 0.368603,0 0.668208,0.299624 0.668208,0.668208 0,0.368586 -0.299973,0.668565 -0.668208,0.668565 z",
|
|
375
|
+
className: "fill"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
d: "m 21.414868,15.755151 h -2.697203 v -2.697715 c 0,-0.359844 -0.291508,-0.651352 -0.651352,-0.651352 -0.359845,0 -0.651353,0.291508 -0.651353,0.651352 v 2.697529 l -2.697202,1.85e-4 c -0.359844,0 -0.651352,0.291508 -0.651352,0.651352 0,0.359844 0.291508,0.651352 0.651352,0.651352 h 2.697202 v 2.697203 c 0,0.359844 0.291508,0.651352 0.651353,0.651352 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 v -2.697202 h 2.697389 c 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 0,-0.359844 -0.291871,-0.651352 -0.651538,-0.651352 z",
|
|
379
|
+
className: "fill success"
|
|
380
|
+
}
|
|
381
|
+
] },
|
|
368
382
|
ContentCopy: { svg: [{
|
|
369
383
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z",
|
|
370
384
|
className: "fill"
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -3476,7 +3476,7 @@ function mr() {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
cr.displayName = "SplitPane";
|
|
3478
3478
|
var gr = mr();
|
|
3479
|
-
gr.register("base", () => import("./
|
|
3479
|
+
gr.register("base", () => import("./DdbxsvNY1fzbSaA7.mjs")), gr.register("cf", () => import("./CQHgXLAKZGPGgQvx.mjs"));
|
|
3480
3480
|
var _r = (e) => $("svg", {
|
|
3481
3481
|
...e,
|
|
3482
3482
|
children: $("path", {})
|
|
@@ -5287,4 +5287,4 @@ var Gi = {
|
|
|
5287
5287
|
});
|
|
5288
5288
|
}
|
|
5289
5289
|
};
|
|
5290
|
-
export { oe as ACCUMULATE, $t as AnimationModeProvider, Wi as AxisViewport, Pt as Command, _t as CommandAnchorProvider, pe as CommandButtonEntryLabel, he as CommandButtonRegistryContext, de as CommandButtonRegistryProvider, ne as CommandButtonType, st as CommandChainContext, yt as CommandFallbackContext, xt as CommandFallbackProvider, Ct as CommandFocusProvider, at as CommandOrderContext, ie as CommandRegistry, Te as CommandRegistryContext, it as CommandResolver, mt as CommandResolverContext, De as CommandScope, ht as CommandScopeContext, ft as CommandScopeProvider, ze as ConstantActivation, ce as DefaultCommandButtonRegistry, ke as DefaultCommandCatalogService, se as DefaultCommandRegistry, gr as DefaultIconService, Gt as DefaultReactNotifier, yr as DynamicIcon, jr as EDGE_HOLD_INTERVAL_MS, Go as FloatPanel, Zo as FloatPanelSurface, Yo as FloatPopper, tr as FloatProvider, kt as FloatStackProvider, Qo as FloatTooltip, Re as FocusActivation, Wt as FocusKeyNavigation, yo as INPUT_SELECTION_TINT, vo as INPUT_SELECTION_VAR, wr as InMemoryStore, et as KeyBindingDispatcher, ee as KeyCodes, Q as KeyModifiers, On as LanguageStateKey, $e as LayerActivation, Ar as LocalStorageStore, Ae as ManualActivation, te as MouseButtonCodes, Xt as NotifierType, Yr as PAGE_INITIAL_DELAY_MS, Ur as PAGE_REPEAT_DELAY_MS, Lr as
|
|
5290
|
+
export { oe as ACCUMULATE, $t as AnimationModeProvider, Wi as AxisViewport, Pt as Command, _t as CommandAnchorProvider, pe as CommandButtonEntryLabel, he as CommandButtonRegistryContext, de as CommandButtonRegistryProvider, ne as CommandButtonType, st as CommandChainContext, yt as CommandFallbackContext, xt as CommandFallbackProvider, Ct as CommandFocusProvider, at as CommandOrderContext, ie as CommandRegistry, Te as CommandRegistryContext, it as CommandResolver, mt as CommandResolverContext, De as CommandScope, ht as CommandScopeContext, ft as CommandScopeProvider, ze as ConstantActivation, ce as DefaultCommandButtonRegistry, ke as DefaultCommandCatalogService, se as DefaultCommandRegistry, gr as DefaultIconService, Gt as DefaultReactNotifier, yr as DynamicIcon, jr as EDGE_HOLD_INTERVAL_MS, Go as FloatPanel, Zo as FloatPanelSurface, Yo as FloatPopper, tr as FloatProvider, kt as FloatStackProvider, Qo as FloatTooltip, Re as FocusActivation, Wt as FocusKeyNavigation, yo as INPUT_SELECTION_TINT, vo as INPUT_SELECTION_VAR, wr as InMemoryStore, et as KeyBindingDispatcher, ee as KeyCodes, Q as KeyModifiers, On as LanguageStateKey, $e as LayerActivation, Ar as LocalStorageStore, Ae as ManualActivation, te as MouseButtonCodes, Xt as NotifierType, Yr as PAGE_INITIAL_DELAY_MS, Ur as PAGE_REPEAT_DELAY_MS, Lr as PersistentStateProvider, me as QUICK_ACTION_TAG, io as ReactErrorBoundary, Qt as ReactNotifierProvider, Be as ReactUtils, Ji as Resizable, Qi as ResizableBox, Vt as RoundedTab, Ri as SCROLL_ANIMATION_MS, uo as SERIES_COUNT, wo as SXL_THEME_LAYERS, xo as SXL_THEME_LAYER_ORDER, Pi as ScrollPane, wi as ScrollUtils, ui as Scrollbar, zr as ScrollbarOrientation, cr as SplitPane, rr as SplitPaneResizer, Mo as THEME_MODE_ATTR, Eo as THEME_SURFACE_ATTR, Gr as TOUCH_THUMB_ASPECT, Jr as TOUCH_THUMB_MARGIN, ei as TOUCH_THUMB_MARGIN_CROSS, ti as TOUCH_THUMB_MARGIN_END, Qr as TOUCH_THUMB_MARGIN_START, Zr as TOUCH_THUMB_SIZE, Ao as TokenThemeContext, Ro as TokenThemeProvider, Ft as ToolTipPlacement, ii as TouchThumbFrameProvider, ci as TouchThumbHandle, ho as UncaughtErrorBoundary, zi as Viewport, Xi as VirtualScrollbar, br as WalkingIcon, xe as asCommandCatalog, dt as attachWhenReady, Co as buildThemeCSS, Ce as chromeToPartial, Vn as composeCaretRect, qt as createBusyHandle, Ee as createCommandCatalogService, mr as createDynamicIconService, Zt as createNoopBusyHandle, _e as createResolvedCommand, To as createThemeScopeClass, Xr as createTrackDrag, Xo as defaultCreateFloatPopupPanel, Vr as defaultCreateScrollEdgeButton, Kr as defaultCreateScrollEndButton, Wr as defaultCreateScrollStartButton, er as defaultRenderFloatPanel, Ai as defaultRenderScrollCorner, fo as defaultTheme, Se as fetchCatalog, Fo as floatThemeScopeProps, cn as getDevicePixelRatio, Zi as getScrollbarCssVariables, Yn as getTextareaCaretRect, Qe as isCaretKey, nt as keyEventCanonicals, tt as keyStrokeToCanonical, Ut as lazyComponent, Me as mergeChrome, be as parseShortcutString, re as reduceDefinitions, Pe as resolveAnchorSource, $o as resolveToken, Bo as resolveTokens, qi as scrollbarThemedClassName, we as serializeShortcut, In as setEditMode, ko as themeSurfaceProps, go as themeVars, mo as toVars, oi as touchThumbCornerReserve, ni as touchThumbCrossInset, Ot as useAnimatedMeasure, Rt as useAnimationMode, rn as useBoundSyncExternalStore, tn as useCallbackRef, fe as useCommandButtonEntry, ue as useCommandButtonRegistry, lt as useCommandChain, pt as useCommandElement, vt as useCommandExecute, bt as useCommandFallback, Mt as useCommandFocusRestore, ct as useCommandOrder, Le as useCommandRegistry, gt as useCommandResolver, ut as useCommandScope, Lt as useCommands, Dt as useContributeCommands, an as useDevicePixelRatio, Nn as useEditMode, Tt as useFloat, nr as useFloatStack, Oo as useFloatSurface, un as useFullscreen, gn as useFullscreenPortal, Xn as useGlobalClipboard, to as useId, oo as useImperativeElement, Fn as useLanguage, Yt as useLazyRetry, xn as useMouseDownAndHoldListener, en as useNotifier, hn as useOnClickOrFocusAway, ln as useOptionalBoundSyncExternalStore, on as useOptionalSyncExternalStore, kr as usePersistentState, Lo as useResolvedThemeMode, wn as useSynchronizedPointerHandler, bn as useTextSelectionDrag, Un as useTextareaCaretRect, zo as useTokenThemeContext, si as useTouchThumbFrame, qn as useTraceUpdate, qr as useTrackDrag, Wn as useTranslator };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/utils-react",
|
|
3
3
|
"description": "Utils React - Utilities for React capabilities needed for all SheetXL components.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.6",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@floating-ui/react-dom": "^2.1.9",
|
|
44
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
44
|
+
"@sheetxl/utils": "^0.8.0-beta.6",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"detect-it": "^4.0.1",
|
|
47
47
|
"prop-types": "^15.8.1",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Persistence key for the user's UI-language preference.
|
|
3
3
|
*
|
|
4
4
|
* @remarks
|
|
5
|
-
* Owned via `
|
|
5
|
+
* Owned via `usePersistentState` against the surrounding `PersistentStateProvider` (Studio, or a
|
|
6
6
|
* standalone host) — the mirror of `ThemeStateKey` in `@sheetxl/react`. A host that wants to read
|
|
7
7
|
* or seed it (e.g. the VS Code extension, whose store bridges to the extension host's state) does
|
|
8
8
|
* so with the same key, or by supplying its own provider/store. The value is a BCP 47 tag; absent
|
|
@@ -45,7 +45,7 @@ export type PersistenceSerializer<T = any> = {
|
|
|
45
45
|
parse: (raw: string | null) => T;
|
|
46
46
|
stringify: (val: T) => string;
|
|
47
47
|
};
|
|
48
|
-
export type
|
|
48
|
+
export type PersistentStateOptions<T = any> = {
|
|
49
49
|
/**
|
|
50
50
|
* Convert the value to/from a string for storage
|
|
51
51
|
*
|
|
@@ -55,8 +55,8 @@ export type PersistenceStateOptions<T = any> = {
|
|
|
55
55
|
version?: number;
|
|
56
56
|
migrate?: (oldValue: unknown, oldVersion: number | undefined) => T;
|
|
57
57
|
};
|
|
58
|
-
export type
|
|
59
|
-
export type
|
|
58
|
+
export type PersistentStateSetter<T> = (next: T | ((prev: T) => T)) => void;
|
|
59
|
+
export type PersistentStateProviderProps = {
|
|
60
60
|
/**
|
|
61
61
|
* Storage backend to use
|
|
62
62
|
*/
|
|
@@ -90,9 +90,9 @@ export type PersistenceProviderProps = {
|
|
|
90
90
|
* Lets a host change the starting value of user-adjustable state without taking the choice away from
|
|
91
91
|
* the user — for example, enabling the dark grid by default while the user can still turn it off.
|
|
92
92
|
*
|
|
93
|
-
* Keys are the same logical keys passed to `
|
|
93
|
+
* Keys are the same logical keys passed to `usePersistentState` (without the namespace). Values are
|
|
94
94
|
* the typed values, not serialized strings. A value here wins over the default passed to
|
|
95
|
-
* `
|
|
95
|
+
* `usePersistentState`; a stored value wins over both. Defaults are never written to the store, so
|
|
96
96
|
* changing one later applies to every user who has not made a choice.
|
|
97
97
|
*
|
|
98
98
|
* @defaultValue none
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type Ctx = Required<Omit<
|
|
1
|
+
import { PersistentStateProviderProps, PersistenceSerializer } from './Types';
|
|
2
|
+
export type Ctx = Required<Omit<PersistentStateProviderProps, 'children'>> & {
|
|
3
3
|
notify(key: string, value?: string): void;
|
|
4
4
|
subscribeKey(key: string, fn: (value?: string) => void): () => void;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './Types';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
2
|
+
export * from './usePersistentState';
|
|
3
|
+
export * from './PersistentStateProvider';
|
|
4
4
|
export * from './InMemoryStore';
|
|
5
5
|
export * from './LocalStorageStore';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PersistentStateOptions, PersistentStateSetter } from './Types';
|
|
2
2
|
/**
|
|
3
3
|
* Persisted state hook backed by the current persistence context.
|
|
4
4
|
*
|
|
@@ -32,5 +32,5 @@ import { PersistenceStateOptions, PersistenceStateSetter } from './Types';
|
|
|
32
32
|
* - `setState(next)` – Updates the value and persists it (unless `key === null`).
|
|
33
33
|
* - `clear()` – Removes the persisted value and resets to the default.
|
|
34
34
|
*/
|
|
35
|
-
export declare function
|
|
36
|
-
//# sourceMappingURL=
|
|
35
|
+
export declare function usePersistentState<T = unknown>(key: string | null, defaultValue?: T | (() => T), opts?: PersistentStateOptions<T>): [T, PersistentStateSetter<T>, () => void];
|
|
36
|
+
//# sourceMappingURL=usePersistentState.d.ts.map
|