@oxog/scrollex 1.1.1 → 1.2.0
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/CHANGELOG.md +25 -1
- package/dist/{chunk-VLA5K5HH.js → chunk-2AWRSNQN.js} +7 -7
- package/dist/chunk-2AWRSNQN.js.map +1 -0
- package/dist/{chunk-MEEFAXSA.cjs → chunk-CTKEJZGD.cjs} +7 -7
- package/dist/chunk-CTKEJZGD.cjs.map +1 -0
- package/dist/index.cjs +25 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.cjs +16 -14
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.cts +3 -4
- package/dist/plugins/index.d.ts +3 -4
- package/dist/plugins/index.js +8 -6
- package/dist/plugins/index.js.map +1 -1
- package/dist/{scroll-controller-CBna5Yim.d.cts → scroll-controller-U4Zov88U.d.cts} +1 -2
- package/dist/{scroll-controller-CBna5Yim.d.ts → scroll-controller-U4Zov88U.d.ts} +1 -2
- package/package.json +23 -10
- package/dist/chunk-MEEFAXSA.cjs.map +0 -1
- package/dist/chunk-VLA5K5HH.js.map +0 -1
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VirtualItem, Plugin, ScrollPosition, Range } from '../
|
|
2
|
-
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-
|
|
1
|
+
import { $ as VirtualItem, P as Plugin, W as ScrollPosition, R as Range } from '../scroll-controller-U4Zov88U.cjs';
|
|
2
|
+
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-U4Zov88U.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -634,5 +634,4 @@ interface DebugPanelOverlayProps {
|
|
|
634
634
|
*/
|
|
635
635
|
declare function DebugPanelOverlay({ plugin, className, style, }: DebugPanelOverlayProps): React.ReactElement | null;
|
|
636
636
|
|
|
637
|
-
export { DebugPanelOverlay, bidirectional, debugPanel, dragToReorder, keyboardNav, masonryRenderer, scrollRestoration, stickyHeaders };
|
|
638
|
-
export type { BidirectionalAPI, BidirectionalOptions, DebugPanelAPI, DebugPanelOptions, DebugPanelOverlayProps, DebugPanelPosition, DebugPanelState, DebugPanelTab, DebugPanelTheme, DragAxis, DragEventLike, DragHandleProps, DragToReorderAPI, DragToReorderOptions, DropIndicatorStyle, EventLogEntry, KeyboardNavAPI, KeyboardNavOptions, KeyboardNavOrientation, MasonryRendererAPI, MasonryRendererOptions, PerformanceStats, SavedScrollState, ScrollRestorationAPI, ScrollRestorationOptions, ScrollRestorationStorage, StickyHeadersAPI, StickyHeadersOptions };
|
|
637
|
+
export { type BidirectionalAPI, type BidirectionalOptions, type DebugPanelAPI, type DebugPanelOptions, DebugPanelOverlay, type DebugPanelOverlayProps, type DebugPanelPosition, type DebugPanelState, type DebugPanelTab, type DebugPanelTheme, type DragAxis, type DragEventLike, type DragHandleProps, type DragToReorderAPI, type DragToReorderOptions, type DropIndicatorStyle, type EventLogEntry, type KeyboardNavAPI, type KeyboardNavOptions, type KeyboardNavOrientation, type MasonryRendererAPI, type MasonryRendererOptions, type PerformanceStats, type SavedScrollState, type ScrollRestorationAPI, type ScrollRestorationOptions, type ScrollRestorationStorage, type StickyHeadersAPI, type StickyHeadersOptions, bidirectional, debugPanel, dragToReorder, keyboardNav, masonryRenderer, scrollRestoration, stickyHeaders };
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VirtualItem, Plugin, ScrollPosition, Range } from '../
|
|
2
|
-
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-
|
|
1
|
+
import { $ as VirtualItem, P as Plugin, W as ScrollPosition, R as Range } from '../scroll-controller-U4Zov88U.js';
|
|
2
|
+
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-U4Zov88U.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -634,5 +634,4 @@ interface DebugPanelOverlayProps {
|
|
|
634
634
|
*/
|
|
635
635
|
declare function DebugPanelOverlay({ plugin, className, style, }: DebugPanelOverlayProps): React.ReactElement | null;
|
|
636
636
|
|
|
637
|
-
export { DebugPanelOverlay, bidirectional, debugPanel, dragToReorder, keyboardNav, masonryRenderer, scrollRestoration, stickyHeaders };
|
|
638
|
-
export type { BidirectionalAPI, BidirectionalOptions, DebugPanelAPI, DebugPanelOptions, DebugPanelOverlayProps, DebugPanelPosition, DebugPanelState, DebugPanelTab, DebugPanelTheme, DragAxis, DragEventLike, DragHandleProps, DragToReorderAPI, DragToReorderOptions, DropIndicatorStyle, EventLogEntry, KeyboardNavAPI, KeyboardNavOptions, KeyboardNavOrientation, MasonryRendererAPI, MasonryRendererOptions, PerformanceStats, SavedScrollState, ScrollRestorationAPI, ScrollRestorationOptions, ScrollRestorationStorage, StickyHeadersAPI, StickyHeadersOptions };
|
|
637
|
+
export { type BidirectionalAPI, type BidirectionalOptions, type DebugPanelAPI, type DebugPanelOptions, DebugPanelOverlay, type DebugPanelOverlayProps, type DebugPanelPosition, type DebugPanelState, type DebugPanelTab, type DebugPanelTheme, type DragAxis, type DragEventLike, type DragHandleProps, type DragToReorderAPI, type DragToReorderOptions, type DropIndicatorStyle, type EventLogEntry, type KeyboardNavAPI, type KeyboardNavOptions, type KeyboardNavOrientation, type MasonryRendererAPI, type MasonryRendererOptions, type PerformanceStats, type SavedScrollState, type ScrollRestorationAPI, type ScrollRestorationOptions, type ScrollRestorationStorage, type StickyHeadersAPI, type StickyHeadersOptions, bidirectional, debugPanel, dragToReorder, keyboardNav, masonryRenderer, scrollRestoration, stickyHeaders };
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normalizeColumnCount, debounce, autoColumnCount } from '../chunk-
|
|
2
|
-
export { autoMeasurerPlugin, gridRendererPlugin, infiniteLoaderPlugin, listRendererPlugin, scrollControllerPlugin } from '../chunk-
|
|
1
|
+
import { normalizeColumnCount, debounce, autoColumnCount } from '../chunk-2AWRSNQN.js';
|
|
2
|
+
export { autoMeasurerPlugin, gridRendererPlugin, infiniteLoaderPlugin, listRendererPlugin, scrollControllerPlugin } from '../chunk-2AWRSNQN.js';
|
|
3
3
|
import { useMemo, useCallback, useState, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -569,8 +569,9 @@ function scrollRestoration(options) {
|
|
|
569
569
|
};
|
|
570
570
|
if (includeIndex) {
|
|
571
571
|
const keyboardNav2 = kernel.getPlugin("keyboard-nav");
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
const navApi = keyboardNav2?.api;
|
|
573
|
+
if (navApi?.getFocusedIndex) {
|
|
574
|
+
const focusedIndex = navApi.getFocusedIndex();
|
|
574
575
|
if (focusedIndex !== null) {
|
|
575
576
|
state.focusedIndex = focusedIndex;
|
|
576
577
|
}
|
|
@@ -606,8 +607,9 @@ function scrollRestoration(options) {
|
|
|
606
607
|
kernel.scrollTo(kernel.getOptions().direction === "horizontal" ? state.scrollLeft : state.scrollTop);
|
|
607
608
|
if (includeIndex && state.focusedIndex !== void 0) {
|
|
608
609
|
const keyboardNav2 = kernel.getPlugin("keyboard-nav");
|
|
609
|
-
|
|
610
|
-
|
|
610
|
+
const navApi = keyboardNav2?.api;
|
|
611
|
+
if (navApi?.setFocusedIndex) {
|
|
612
|
+
navApi.setFocusedIndex(state.focusedIndex);
|
|
611
613
|
}
|
|
612
614
|
}
|
|
613
615
|
return true;
|