@af-utils/virtual-react
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,4 +0,4 @@ | ||
export declare const raw = 5570; | ||
export declare const min = 2361; | ||
export declare const minGz = 1149; | ||
export declare const minBrotli = 1017; | ||
export declare const raw = 5595; | ||
export declare const min = 2376; | ||
export declare const minGz = 1161; | ||
export declare const minBrotli = 1033; |
@@ -1,4 +0,4 @@ | ||
export const raw = 5570; | ||
export const min = 2361; | ||
export const minGz = 1149; | ||
export const minBrotli = 1017; | ||
export const raw = 5595; | ||
export const min = 2376; | ||
export const minGz = 1161; | ||
export const minBrotli = 1033; |
@@ -51,12 +51,12 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime"; | ||
return r((() => { | ||
if (e && i) { | ||
const o = t.on((() => { | ||
if (t && e && i) { | ||
const o = () => { | ||
e.style[t.horizontal ? "width" : "height"] = t.scrollSize + "px"; | ||
}), [ c.SCROLL_SIZE ]), r = t.on((() => { | ||
}, r = () => { | ||
const e = t.getOffset(t.from), o = t.getOffset(t.to); | ||
i.style.transform = `translate${t.horizontal ? "X" : "Y"}(${e}px)`, i.style[t.horizontal ? "width" : "height"] = o - e + "px"; | ||
}), [ c.RANGE, c.SIZES ]); | ||
}, n = t.on(o, [ c.SCROLL_SIZE ]), s = t.on(r, [ c.RANGE, c.SIZES ]); | ||
return Object.assign(e.style, t.horizontal ? m : p), Object.assign(i.style, t.horizontal ? g : v), | ||
() => { | ||
o(), r(); | ||
o(), r(), () => { | ||
n(), s(); | ||
}; | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "@af-utils/virtual-react", | ||
"private": false, | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "React components and hooks for rendering large scrollable data", | ||
@@ -38,6 +38,2 @@ "repository": "https://github.com/nowaalex/af-utils.git", | ||
"@rollup/plugin-typescript": "^11.1.5", | ||
"@types/jest": "^29.5.5", | ||
"@types/node": "^20.8.6", | ||
"@types/react": "^18.2.28", | ||
"@types/use-sync-external-store": "^0.0.4", | ||
"jest": "^29.7.0", | ||
@@ -53,3 +49,3 @@ "jest-environment-jsdom": "^29.7.0", | ||
"dependencies": { | ||
"@af-utils/virtual-core": "0.0.9" | ||
"@af-utils/virtual-core": "0.0.10" | ||
}, | ||
@@ -56,0 +52,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29720
11
+ Added@af-utils/scrollend-polyfill@0.0.7(transitive)
+ Added@af-utils/virtual-core@0.0.10(transitive)
- Removed@af-utils/scrollend-polyfill@0.0.6(transitive)
- Removed@af-utils/virtual-core@0.0.9(transitive)