@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.
- package/browser/esm/{CKvLZo8keTi4hdRr.mjs → 3j_xcvx6bFQsulwT.mjs} +1 -1
- package/browser/esm/{BIb3Fag4wDs4Gro1.mjs → DmyXYEmBOLQfUC3S.mjs} +19 -18
- package/browser/esm/IqQLdwJk1VA8hpDI.mjs +100 -0
- package/browser/esm/index.mjs +2572 -2057
- package/licenses/dependencies.txt +1 -39
- package/node/esm/{TlOKuBGsozMYzzBC.mjs → B7T-c_PH7rtDuiLF.mjs} +1 -1
- package/node/esm/DHJ2cDJlYQ1rBfYF.mjs +100 -0
- package/node/esm/index.mjs +2294 -1788
- package/package.json +8 -11
- package/types/src/animation/useAnimatedMeasure.d.ts +2 -3
- package/types/src/command/CommandCatalog.d.ts +2 -2
- package/types/src/command/CommandScope.d.ts +23 -2
- package/types/src/command/index.d.ts +1 -0
- package/types/src/command/tags.d.ts +19 -0
- package/types/src/components/index.d.ts +0 -1
- package/types/src/float/FloatPanel.d.ts +20 -1
- package/types/src/float/FloatPopper.d.ts +84 -10
- package/types/src/float/index.d.ts +0 -1
- package/types/src/hooks/LanguageState.d.ts +1 -1
- package/types/src/hooks/index.d.ts +4 -0
- package/types/src/hooks/useCallbackRef.d.ts +19 -6
- package/types/src/hooks/useEditMode.d.ts +24 -4
- package/types/src/hooks/useImperativeElement.d.ts +1 -1
- package/types/src/hooks/useInputModality.d.ts +26 -0
- package/types/src/hooks/useLocationSearch.d.ts +9 -0
- package/types/src/hooks/useMeasure.d.ts +32 -0
- package/types/src/hooks/useNotifier.d.ts +32 -36
- package/types/src/hooks/useSynchronizedPointerHandler.d.ts +3 -7
- package/types/src/hooks/useVisualViewportRect.d.ts +39 -0
- package/types/src/icons/packs/Base.json.d.ts +3406 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/lazy/index.d.ts +2 -0
- package/types/src/lazy/lazyComponent.d.ts +43 -0
- package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
- package/types/src/persistence/Types.d.ts +18 -4
- package/types/src/persistence/_Context.d.ts +3 -2
- package/types/src/persistence/index.d.ts +2 -2
- package/types/src/persistence/usePersistentState.d.ts +39 -0
- package/types/src/scroll/AxisViewport.d.ts +6 -2
- package/types/src/scroll/IScrollPane.d.ts +10 -1
- package/types/src/scroll/Utils.d.ts +1 -0
- package/types/src/scroll/Viewport.d.ts +50 -2
- package/types/src/scroll/touchOwner.d.ts +19 -0
- package/types/src/scroll/useWheelScroll.d.ts +15 -2
- package/types/src/scroll/wheelOwner.d.ts +18 -0
- package/types/src/scroller/Scroller.d.ts +44 -5
- package/types/src/theme/TokenTheme.d.ts +14 -5
- package/types/src/theme/index.d.ts +1 -0
- package/types/src/theme/zIndex.d.ts +24 -0
- package/types/src/utils/index.d.ts +2 -0
- package/types/src/utils/measureUIText.d.ts +24 -0
- package/types/src/utils/textSelectionDrag.d.ts +52 -0
- package/types/src/virtualKeyboard/VirtualKeyboard.d.ts +122 -0
- package/types/src/virtualKeyboard/index.d.ts +2 -0
- package/browser/cjs/D02anPwyfYZxlZmG.cjs +0 -1
- package/browser/cjs/DZSvmqU8nRas1uz6.cjs +0 -1
- package/browser/cjs/Dc-AA0ooFLVdAhbT.cjs +0 -1
- package/browser/cjs/index.cjs +0 -5
- package/browser/esm/BT6JG-bEtM8ou0Xr.mjs +0 -2179
- package/node/esm/CdJ0O_khlsS4DqVj.mjs +0 -2179
- package/types/src/components/ITooltip.d.ts +0 -38
- package/types/src/float/FloatTooltip.d.ts +0 -22
- package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
- package/types/src/persistence/usePersistenceState.d.ts +0 -33
- 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
|