@barqjs/virtual 0.2.0-next.0 → 0.2.0-next.1
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/dist/index.d.ts +1 -3
- package/dist/index.js +1 -2
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { PartialKeys, Virtualizer, VirtualizerOptions } from "@tanstack/virtual-core";
|
|
2
2
|
export * from "@tanstack/virtual-core";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
export type CreateVirtualizerOptions<TScrollElement extends Element, TItemElement extends Element> = PartialKeys<VirtualizerOptions<TScrollElement, TItemElement>, "observeElementRect" | "observeElementOffset" | "scrollToFn">;
|
|
5
4
|
export type CreateWindowVirtualizerOptions<TItemElement extends Element> = PartialKeys<VirtualizerOptions<Window, TItemElement>, "getScrollElement" | "observeElementRect" | "observeElementOffset" | "scrollToFn">;
|
|
6
5
|
export declare function createVirtualizer<TScrollElement extends Element, TItemElement extends Element>(options: CreateVirtualizerOptions<TScrollElement, TItemElement> | (() => CreateVirtualizerOptions<TScrollElement, TItemElement>)): Virtualizer<TScrollElement, TItemElement>;
|
|
7
|
-
export declare function createWindowVirtualizer<TItemElement extends Element>(options: CreateWindowVirtualizerOptions<TItemElement> | (() => CreateWindowVirtualizerOptions<TItemElement>)): Virtualizer<Window, TItemElement>;
|
|
8
|
-
//#endregion
|
|
6
|
+
export declare function createWindowVirtualizer<TItemElement extends Element>(options: CreateWindowVirtualizerOptions<TItemElement> | (() => CreateWindowVirtualizerOptions<TItemElement>)): Virtualizer<Window, TItemElement>;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createEffect, createMemo, createProjection, createRenderEffect, createS
|
|
|
2
2
|
import { isServer } from "@barqjs/web";
|
|
3
3
|
import { Virtualizer, elementScroll, observeElementOffset, observeElementRect, observeWindowOffset, observeWindowRect, windowScroll } from "@tanstack/virtual-core";
|
|
4
4
|
export * from "@tanstack/virtual-core";
|
|
5
|
-
|
|
5
|
+
// src/index.ts
|
|
6
6
|
function sameRange(a, b) {
|
|
7
7
|
return a?.startIndex === b?.startIndex && a?.endIndex === b?.endIndex;
|
|
8
8
|
}
|
|
@@ -94,5 +94,4 @@ function createWindowVirtualizer(options) {
|
|
|
94
94
|
initialOffset: () => isServer ? 0 : window.scrollY
|
|
95
95
|
}, typeof options === "function" ? options() : options));
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { createVirtualizer, createWindowVirtualizer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barqjs/virtual",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.1",
|
|
4
4
|
"description": "Virtualized scrolling for barq: createVirtualizer and createWindowVirtualizer, on @tanstack/virtual-core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"barq",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"typecheck": "tsc --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@tanstack/virtual-core": "^3.19.
|
|
56
|
+
"@tanstack/virtual-core": "^3.19.11"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@barqjs/compiler": "0.2.0-next.
|
|
60
|
-
"@barqjs/core": "0.2.0-next.
|
|
61
|
-
"@barqjs/server": "0.2.0-next.
|
|
62
|
-
"@barqjs/vite": "0.2.0-next.
|
|
63
|
-
"@barqjs/web": "0.2.0-next.
|
|
64
|
-
"@happy-dom/global-registrator": "^21.0.
|
|
65
|
-
"@types/bun": "^1.4.
|
|
59
|
+
"@barqjs/compiler": "0.2.0-next.1",
|
|
60
|
+
"@barqjs/core": "0.2.0-next.1",
|
|
61
|
+
"@barqjs/server": "0.2.0-next.1",
|
|
62
|
+
"@barqjs/vite": "0.2.0-next.1",
|
|
63
|
+
"@barqjs/web": "0.2.0-next.1",
|
|
64
|
+
"@happy-dom/global-registrator": "^21.0.4",
|
|
65
|
+
"@types/bun": "^1.4.4",
|
|
66
66
|
"typescript": "^7.0.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@barqjs/core": ">=0.2.0-next.
|
|
70
|
-
"@barqjs/web": ">=0.2.0-next.
|
|
69
|
+
"@barqjs/core": ">=0.2.0-next.1",
|
|
70
|
+
"@barqjs/web": ">=0.2.0-next.1"
|
|
71
71
|
}
|
|
72
72
|
}
|