@sheetxl/utils-react 0.8.0-beta.1 → 0.8.0-beta.11

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.
Files changed (65) hide show
  1. package/browser/esm/{CKvLZo8keTi4hdRr.mjs → 3j_xcvx6bFQsulwT.mjs} +1 -1
  2. package/browser/esm/{BIb3Fag4wDs4Gro1.mjs → DmyXYEmBOLQfUC3S.mjs} +19 -18
  3. package/browser/esm/IqQLdwJk1VA8hpDI.mjs +100 -0
  4. package/browser/esm/index.mjs +2572 -2057
  5. package/licenses/dependencies.txt +1 -39
  6. package/node/esm/{TlOKuBGsozMYzzBC.mjs → B7T-c_PH7rtDuiLF.mjs} +1 -1
  7. package/node/esm/DHJ2cDJlYQ1rBfYF.mjs +100 -0
  8. package/node/esm/index.mjs +2294 -1788
  9. package/package.json +8 -11
  10. package/types/src/animation/useAnimatedMeasure.d.ts +2 -3
  11. package/types/src/command/CommandCatalog.d.ts +2 -2
  12. package/types/src/command/CommandScope.d.ts +23 -2
  13. package/types/src/command/index.d.ts +1 -0
  14. package/types/src/command/tags.d.ts +19 -0
  15. package/types/src/components/index.d.ts +0 -1
  16. package/types/src/float/FloatPanel.d.ts +20 -1
  17. package/types/src/float/FloatPopper.d.ts +84 -10
  18. package/types/src/float/index.d.ts +0 -1
  19. package/types/src/hooks/LanguageState.d.ts +1 -1
  20. package/types/src/hooks/index.d.ts +4 -0
  21. package/types/src/hooks/useCallbackRef.d.ts +19 -6
  22. package/types/src/hooks/useEditMode.d.ts +24 -4
  23. package/types/src/hooks/useImperativeElement.d.ts +1 -1
  24. package/types/src/hooks/useInputModality.d.ts +26 -0
  25. package/types/src/hooks/useLocationSearch.d.ts +9 -0
  26. package/types/src/hooks/useMeasure.d.ts +32 -0
  27. package/types/src/hooks/useNotifier.d.ts +32 -36
  28. package/types/src/hooks/useSynchronizedPointerHandler.d.ts +3 -7
  29. package/types/src/hooks/useVisualViewportRect.d.ts +39 -0
  30. package/types/src/icons/packs/Base.json.d.ts +3406 -0
  31. package/types/src/index.d.ts +2 -0
  32. package/types/src/lazy/index.d.ts +2 -0
  33. package/types/src/lazy/lazyComponent.d.ts +43 -0
  34. package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
  35. package/types/src/persistence/Types.d.ts +18 -4
  36. package/types/src/persistence/_Context.d.ts +3 -2
  37. package/types/src/persistence/index.d.ts +2 -2
  38. package/types/src/persistence/usePersistentState.d.ts +39 -0
  39. package/types/src/scroll/AxisViewport.d.ts +6 -2
  40. package/types/src/scroll/IScrollPane.d.ts +10 -1
  41. package/types/src/scroll/Utils.d.ts +1 -0
  42. package/types/src/scroll/Viewport.d.ts +50 -2
  43. package/types/src/scroll/touchOwner.d.ts +19 -0
  44. package/types/src/scroll/useWheelScroll.d.ts +15 -2
  45. package/types/src/scroll/wheelOwner.d.ts +18 -0
  46. package/types/src/scroller/Scroller.d.ts +44 -5
  47. package/types/src/theme/TokenTheme.d.ts +14 -5
  48. package/types/src/theme/index.d.ts +1 -0
  49. package/types/src/theme/zIndex.d.ts +24 -0
  50. package/types/src/utils/index.d.ts +2 -0
  51. package/types/src/utils/measureUIText.d.ts +24 -0
  52. package/types/src/utils/textSelectionDrag.d.ts +52 -0
  53. package/types/src/virtualKeyboard/VirtualKeyboard.d.ts +122 -0
  54. package/types/src/virtualKeyboard/index.d.ts +2 -0
  55. package/browser/cjs/D02anPwyfYZxlZmG.cjs +0 -1
  56. package/browser/cjs/DZSvmqU8nRas1uz6.cjs +0 -1
  57. package/browser/cjs/Dc-AA0ooFLVdAhbT.cjs +0 -1
  58. package/browser/cjs/index.cjs +0 -5
  59. package/browser/esm/BT6JG-bEtM8ou0Xr.mjs +0 -2179
  60. package/node/esm/CdJ0O_khlsS4DqVj.mjs +0 -2179
  61. package/types/src/components/ITooltip.d.ts +0 -38
  62. package/types/src/float/FloatTooltip.d.ts +0 -22
  63. package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
  64. package/types/src/persistence/usePersistenceState.d.ts +0 -33
  65. package/types/src/utils/PinchZoom.d.ts +0 -3
@@ -1,38 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const ToolTipPlacement: {
3
- readonly BottomEnd: "bottom-end";
4
- readonly BottomStart: "bottom-start";
5
- readonly Bottom: "bottom";
6
- readonly LeftEnd: "left-end";
7
- readonly LeftStart: "left-start";
8
- readonly Left: "left";
9
- readonly RightEnd: "right-end";
10
- readonly RightStart: "right-start";
11
- readonly Right: "right";
12
- readonly TopEnd: "top-end";
13
- readonly TopStart: "top-start";
14
- readonly Top: "top";
15
- };
16
- export type ToolTipPlacement = typeof ToolTipPlacement[keyof typeof ToolTipPlacement];
17
- export interface IShowToolTipProperties {
18
- /**
19
- * The anchor for the tooltip. x,y are required
20
- * but width and height can also be provided.
21
- */
22
- anchor: {
23
- x: number;
24
- y: number;
25
- width?: number;
26
- height?: number;
27
- };
28
- /**
29
- * The value to display. This is either a string or a react element
30
- */
31
- display?: string | React.ReactElement;
32
- /**
33
- * Purely suggestion only
34
- * If not specified then the consumer will determine
35
- */
36
- placement?: ToolTipPlacement;
37
- }
38
- //# sourceMappingURL=ITooltip.d.ts.map
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Placement } from '@floating-ui/react-dom';
3
- import { FloatPopperPosition, FloatPopperAnchor } from './FloatPopper';
4
- /**
5
- * A lightweight, controlled tooltip built on {@link FloatPopper}.
6
- *
7
- * Unlike a hover tooltip, this is fully controlled (`open` + `anchor`) which suits
8
- * programmatic tooltips (e.g. scroll/resize hints).
9
- */
10
- export interface FloatTooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
11
- open: boolean;
12
- title?: React.ReactNode;
13
- /**
14
- * @defaultValue 'top'
15
- */
16
- placement?: Placement;
17
- anchorEl?: FloatPopperAnchor;
18
- anchorPosition?: FloatPopperPosition;
19
- offsets?: number[];
20
- }
21
- export declare const FloatTooltip: React.NamedExoticComponent<FloatTooltipProps & React.RefAttributes<HTMLDivElement>>;
22
- //# sourceMappingURL=FloatTooltip.d.ts.map
@@ -1,3 +0,0 @@
1
- import { PersistenceProviderProps } from './Types';
2
- export declare function PersistenceStateProvider(props: PersistenceProviderProps): import("react").JSX.Element;
3
- //# sourceMappingURL=PersistenceStateProvider.d.ts.map
@@ -1,33 +0,0 @@
1
- import { PersistenceStateOptions, PersistenceStateSetter } from './Types';
2
- /**
3
- * Persisted state hook backed by the current persistence context.
4
- *
5
- * This works like `useState`, but:
6
- *
7
- * - The value is persisted under `namespace:key` using the current store.
8
- * - On first render, it initializes from `defaultValue`.
9
- * - Then it **hydrates asynchronously** from the configured store
10
- * (memory, localStorage, IndexedDB, remote, etc.).
11
- * - Writes are **debounced** according to `debounceMs` from the context.
12
- * - Optional **versioning + migration** lets you evolve stored shapes over time.
13
- *
14
- * ### Optional persistence
15
- *
16
- * If `key` is `null`, **persistence is disabled** and the hook behaves like
17
- * a plain `useState` with the same `defaultValue` semantics:
18
- *
19
- * - No reads or writes go to the persistence store.
20
- * - No cross-tab / cross-hook subscription is set up.
21
- * - `clear()` simply resets back to the default value (or `undefined`).
22
- *
23
- * @typeParam T - Type of the stored value.
24
- * @param key - Logical storage key; use `null` to disable persistence entirely.
25
- * @param defaultValue - Initial value or lazy initializer function.
26
- * @param opts - Options controlling serialization, versioning, migration, and laziness.
27
- * @returns A tuple of `[state, setState, clear]`:
28
- * - `state` – The current value.
29
- * - `setState(next)` – Updates the value and persists it (unless `key === null`).
30
- * - `clear()` – Removes the persisted value and resets to `defaultValue`.
31
- */
32
- export declare function usePersistenceState<T = unknown>(key: string | null, defaultValue?: T | (() => T), opts?: PersistenceStateOptions<T>): [T, PersistenceStateSetter<T>, () => void];
33
- //# sourceMappingURL=usePersistenceState.d.ts.map
@@ -1,3 +0,0 @@
1
- declare var PinchZoom: (el: any, options: any) => void;
2
- export default PinchZoom;
3
- //# sourceMappingURL=PinchZoom.d.ts.map