@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
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The part of the layout viewport that is actually visible, in CSS px.
3
+ *
4
+ * @remarks
5
+ * On a phone the visual viewport is what shrinks when the virtual keyboard rises (iOS Safari never
6
+ * resizes the layout viewport for it) and what moves when the page is pinch-zoomed or scrolled
7
+ * under a pinned chrome. `offsetTop` / `offsetLeft` are its position within the layout viewport.
8
+ */
9
+ export interface VisualViewportRect {
10
+ width: number;
11
+ height: number;
12
+ offsetTop: number;
13
+ offsetLeft: number;
14
+ }
15
+ /**
16
+ * The current {@link VisualViewportRect}, or `null` where `window.visualViewport` is unavailable.
17
+ * Returns the same object until a value changes.
18
+ */
19
+ export declare const getVisualViewportRect: () => VisualViewportRect | null;
20
+ /**
21
+ * Listen for the visual viewport resizing or scrolling.
22
+ *
23
+ * @returns Stops listening.
24
+ */
25
+ export declare const subscribeVisualViewport: (listener: () => void) => (() => void);
26
+ /**
27
+ * The visual viewport's size and offset, re-rendering as it changes. `null` on the server, in a
28
+ * browser without `window.visualViewport`, or while `enabled` is `false`.
29
+ *
30
+ * @param enabled Subscribe only while `true`; a component that needs the rect in one configuration
31
+ * (the studio with its formula bar at the bottom) pays nothing in the others.
32
+ *
33
+ * @remarks
34
+ * The signal behind a chrome that must stay above the virtual keyboard: the rect's `height` is the
35
+ * room left once the keyboard is up, and `offsetTop` is how far the browser has moved the visible
36
+ * part under a layout that did not shrink.
37
+ */
38
+ export declare const useVisualViewportRect: (enabled?: boolean) => VisualViewportRect | null;
39
+ //# sourceMappingURL=useVisualViewportRect.d.ts.map