@fluentui/react-virtualizer
Advanced tools
Comparing version 9.0.0-alpha.86 to 9.0.0-alpha.87
# Change Log - @fluentui/react-virtualizer | ||
This log was last generated on Tue, 15 Oct 2024 17:13:32 GMT and should not be manually modified. | ||
This log was last generated on Mon, 11 Nov 2024 09:55:03 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.87](https://github.com/microsoft/fluentui/tree/@fluentui/react-virtualizer_v9.0.0-alpha.87) | ||
Mon, 11 Nov 2024 09:55:03 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-virtualizer_v9.0.0-alpha.86..@fluentui/react-virtualizer_v9.0.0-alpha.87) | ||
### Changes | ||
- fix: Enable virtualizer to fall back to most recent IO event if none intersecting ([PR #33125](https://github.com/microsoft/fluentui/pull/33125) by mifraser@microsoft.com) | ||
- chore: replace npm-scripts and just-scrtips with nx inferred tasks ([PR #33074](https://github.com/microsoft/fluentui/pull/33074) by martinhochel@microsoft.com) | ||
- Bump @fluentui/react-jsx-runtime to v9.0.46 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball) | ||
- Bump @fluentui/react-utilities to v9.18.17 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball) | ||
- Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball) | ||
## [9.0.0-alpha.86](https://github.com/microsoft/fluentui/tree/@fluentui/react-virtualizer_v9.0.0-alpha.86) | ||
Tue, 15 Oct 2024 17:13:32 GMT | ||
Tue, 15 Oct 2024 17:17:53 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-virtualizer_v9.0.0-alpha.85..@fluentui/react-virtualizer_v9.0.0-alpha.86) | ||
@@ -11,0 +24,0 @@ |
@@ -74,2 +74,3 @@ import type { ComponentProps } from '@fluentui/react-utilities'; | ||
containerSizeRef: React_2.RefObject<number>; | ||
updateScrollPosition: (scrollPosition: number) => void; | ||
}; | ||
@@ -208,4 +209,3 @@ | ||
* Enables users to override the intersectionObserverRoot. | ||
* RECOMMEND: DO NOT PASS THIS IN, as it can cause side effects | ||
* when overlapping with other scroll views | ||
* We recommend passing this in for accurate distance assessment in IO | ||
*/ | ||
@@ -251,2 +251,7 @@ scrollViewRef?: React_2.MutableRefObject<HTMLElement | null>; | ||
containerSizeRef: RefObject<number>; | ||
/** | ||
* A callback that enables updating scroll position for calculating required dynamic lengths, | ||
* this should be passed in from useDynamicVirtualizerMeasure | ||
*/ | ||
updateScrollPosition?: (position: number) => void; | ||
}; | ||
@@ -310,4 +315,2 @@ | ||
setContextIndex: (index: number) => void; | ||
contextPosition?: number; | ||
setContextPosition?: (index: number) => void; | ||
childProgressiveSizes?: React_2.MutableRefObject<number[]>; | ||
@@ -314,0 +317,0 @@ }; |
@@ -18,3 +18,3 @@ "use strict"; | ||
'use no memo'; | ||
const { itemSize, numItems, virtualizerLength, children: renderChild, getItemSize, bufferItems = Math.round(virtualizerLength / 4.0), bufferSize = Math.floor(bufferItems / 2.0) * itemSize, axis = 'vertical', reversed = false, virtualizerContext, onRenderedFlaggedIndex, imperativeVirtualizerRef, containerSizeRef, scrollViewRef, enableScrollLoad } = props; | ||
const { itemSize, numItems, virtualizerLength, children: renderChild, getItemSize, bufferItems = Math.round(virtualizerLength / 4.0), bufferSize = Math.floor(bufferItems / 2.0) * itemSize, axis = 'vertical', reversed = false, virtualizerContext, onRenderedFlaggedIndex, imperativeVirtualizerRef, containerSizeRef, scrollViewRef, enableScrollLoad, updateScrollPosition } = props; | ||
/* The context is optional, it's useful for injecting additional index logic, or performing uniform state updates*/ const _virtualizerContext = (0, _Utilities.useVirtualizerContextState_unstable)(virtualizerContext); | ||
@@ -268,8 +268,12 @@ // We use this ref as a constant source to access the virtualizer's state imperatively | ||
} | ||
// Grab latest entry that is intersecting | ||
const latestEntry = entries.length === 1 ? entries[0] : entries.sort((entry1, entry2)=>entry2.time - entry1.time).find((entry)=>{ | ||
return entry.intersectionRatio > 0; | ||
if (entries.length === 0) { | ||
// No entries found, return. | ||
return; | ||
} | ||
// Find the latest entry that is intersecting | ||
const sortedEntries = entries.sort((entry1, entry2)=>entry2.time - entry1.time); | ||
const latestEntry = sortedEntries.find((entry)=>{ | ||
return entry.isIntersecting; | ||
}); | ||
if (!latestEntry || !latestEntry.isIntersecting) { | ||
// If we don't find an intersecting area, ignore for now. | ||
if (!latestEntry) { | ||
return; | ||
@@ -344,3 +348,8 @@ } | ||
(0, _reactdom.flushSync)(()=>{ | ||
_virtualizerContext.setContextPosition(measurementPos); | ||
// Callback to allow measure functions to check virtualizer length | ||
if (newStartIndex + virtualizerLength >= numItems && actualIndex + virtualizerLength >= numItems) { | ||
// We've already hit the end, no need to update state. | ||
return; | ||
} | ||
updateScrollPosition === null || updateScrollPosition === void 0 ? void 0 : updateScrollPosition(measurementPos); | ||
if (actualIndex !== newStartIndex) { | ||
@@ -351,17 +360,17 @@ batchUpdateNewIndex(newStartIndex); | ||
}, [ | ||
_virtualizerContext, | ||
actualIndex, | ||
virtualizerLength, | ||
axis, | ||
reversed, | ||
numItems, | ||
bufferSize, | ||
bufferItems, | ||
containerSizeRef, | ||
updateScrollPosition, | ||
batchUpdateNewIndex, | ||
bufferItems, | ||
bufferSize, | ||
calculateAfter, | ||
calculateBefore, | ||
calculateTotalSize, | ||
containerSizeRef, | ||
getIndexFromScrollPosition, | ||
numItems, | ||
reversed, | ||
updateCurrentItemSizes, | ||
virtualizerLength | ||
updateCurrentItemSizes | ||
]), { | ||
@@ -368,0 +377,0 @@ root: scrollViewRef ? scrollViewRef === null || scrollViewRef === void 0 ? void 0 : scrollViewRef.current : null, |
@@ -123,2 +123,2 @@ "use strict"; | ||
return state; | ||
}; //# sourceMappingURL=useVirtualizerStyles.styles.js.map | ||
}; |
@@ -70,2 +70,2 @@ "use strict"; | ||
return state; | ||
}; //# sourceMappingURL=useVirtualizerScrollViewStyles.styles.js.map | ||
}; |
@@ -41,3 +41,3 @@ "use strict"; | ||
var _props_axis, _props_getItemSize; | ||
const { virtualizerLength, bufferItems, bufferSize, scrollRef, containerSizeRef } = (0, _Hooks.useDynamicVirtualizerMeasure)({ | ||
const { virtualizerLength, bufferItems, bufferSize, scrollRef, containerSizeRef, updateScrollPosition } = (0, _Hooks.useDynamicVirtualizerMeasure)({ | ||
defaultItemSize: props.itemSize, | ||
@@ -80,3 +80,3 @@ direction: (_props_axis = props.axis) !== null && _props_axis !== void 0 ? _props_axis : 'vertical', | ||
totalSize, | ||
scrollViewRef, | ||
scrollViewRef: scrollViewRef, | ||
axis, | ||
@@ -112,3 +112,5 @@ reversed, | ||
onRenderedFlaggedIndex: handleRenderedIndex, | ||
containerSizeRef | ||
containerSizeRef, | ||
scrollViewRef, | ||
updateScrollPosition | ||
}); | ||
@@ -115,0 +117,0 @@ const measureObject = (0, _useMeasureList.useMeasureList)(virtualizerState.virtualizerStartIndex, virtualizerLength, props.numItems, props.itemSize); |
@@ -70,2 +70,2 @@ "use strict"; | ||
return state; | ||
}; //# sourceMappingURL=useVirtualizerScrollViewDynamicStyles.styles.js.map | ||
}; |
@@ -18,4 +18,2 @@ "use strict"; | ||
const { defaultItemSize, direction = 'vertical', numItems, getItemSize, bufferItems, bufferSize, virtualizerContext } = virtualizerProps; | ||
const indexRef = (0, _react.useRef)(virtualizerContext.contextIndex); | ||
indexRef.current = virtualizerContext.contextIndex; | ||
const [state, setState] = _react.useState({ | ||
@@ -27,2 +25,3 @@ virtualizerLength: 0, | ||
const containerSizeRef = _react.useRef(0); | ||
const scrollPosition = _react.useRef(0); | ||
const { virtualizerLength, virtualizerBufferItems, virtualizerBufferSize } = state; | ||
@@ -47,5 +46,6 @@ const { targetDocument } = (0, _reactsharedcontexts.useFluent_unstable)(); | ||
let length = 0; | ||
const startIndex = virtualizerContext.contextIndex; | ||
const sizeToBeat = containerSizeRef.current + virtualizerBufferSize * 2; | ||
while(indexSizer <= sizeToBeat && i + virtualizerContext.contextIndex < numItems){ | ||
const iItemSize = getItemSize(indexRef.current + i); | ||
while(indexSizer <= sizeToBeat && i + startIndex < numItems){ | ||
const iItemSize = getItemSize(startIndex + i); | ||
if (virtualizerContext.childProgressiveSizes.current.length < numItems) { | ||
@@ -56,4 +56,4 @@ /* We are in unknown territory, either an initial render or an update | ||
} | ||
const currentScrollPos = virtualizerContext.contextPosition; | ||
const currentItemPos = virtualizerContext.childProgressiveSizes.current[indexRef.current + i] - iItemSize; | ||
const currentScrollPos = scrollPosition.current; | ||
const currentItemPos = virtualizerContext.childProgressiveSizes.current[startIndex + i] - iItemSize; | ||
if (currentScrollPos > currentItemPos + iItemSize) { | ||
@@ -81,3 +81,3 @@ // The item isn't in view, ignore for now. | ||
* This is how far we deviate into the bufferItems to detect a redraw. | ||
*/ const newBufferSize = bufferSize !== null && bufferSize !== void 0 ? bufferSize : Math.max(defaultItemSize / 2.0, 1); | ||
*/ const newBufferSize = bufferSize !== null && bufferSize !== void 0 ? bufferSize : Math.max(defaultItemSize / 2, 1); | ||
const totalLength = length + newBufferItems * 2; | ||
@@ -101,3 +101,2 @@ setState({ | ||
virtualizerContext.contextIndex, | ||
virtualizerContext.contextPosition, | ||
virtualizerLength | ||
@@ -125,2 +124,10 @@ ]); | ||
]); | ||
const updateScrollPosition = _react.useCallback((_scrollPosition)=>{ | ||
scrollPosition.current = _scrollPosition; | ||
// Check if our vLength's need recalculating | ||
handleScrollResize(scrollRef); | ||
}, [ | ||
handleScrollResize, | ||
scrollRef | ||
]); | ||
return { | ||
@@ -131,4 +138,5 @@ virtualizerLength, | ||
scrollRef, | ||
containerSizeRef | ||
containerSizeRef, | ||
updateScrollPosition | ||
}; | ||
}; |
@@ -32,3 +32,2 @@ "use strict"; | ||
const [_contextIndex, _setContextIndex] = (0, _react.useState)(-1); | ||
const [_contextPosition, _setContextPosition] = (0, _react.useState)(0); | ||
const childProgressiveSizes = (0, _react.useRef)([]); | ||
@@ -38,8 +37,6 @@ /* We respect any wrapped providers while also ensuring defaults or passed through | ||
*/ const context = (0, _react.useMemo)(()=>{ | ||
var _passedContext_contextIndex, _ref, _passedContext_setContextIndex, _ref1, _passedContext_contextPosition, _ref2, _passedContext_setContextPosition, _ref3; | ||
var _passedContext_contextIndex, _ref, _passedContext_setContextIndex, _ref1; | ||
return { | ||
contextIndex: (_ref = (_passedContext_contextIndex = passedContext === null || passedContext === void 0 ? void 0 : passedContext.contextIndex) !== null && _passedContext_contextIndex !== void 0 ? _passedContext_contextIndex : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.contextIndex) !== null && _ref !== void 0 ? _ref : _contextIndex, | ||
setContextIndex: (_ref1 = (_passedContext_setContextIndex = passedContext === null || passedContext === void 0 ? void 0 : passedContext.setContextIndex) !== null && _passedContext_setContextIndex !== void 0 ? _passedContext_setContextIndex : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.setContextIndex) !== null && _ref1 !== void 0 ? _ref1 : _setContextIndex, | ||
contextPosition: (_ref2 = (_passedContext_contextPosition = passedContext === null || passedContext === void 0 ? void 0 : passedContext.contextPosition) !== null && _passedContext_contextPosition !== void 0 ? _passedContext_contextPosition : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.contextPosition) !== null && _ref2 !== void 0 ? _ref2 : _contextPosition, | ||
setContextPosition: (_ref3 = (_passedContext_setContextPosition = passedContext === null || passedContext === void 0 ? void 0 : passedContext.setContextPosition) !== null && _passedContext_setContextPosition !== void 0 ? _passedContext_setContextPosition : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.setContextPosition) !== null && _ref3 !== void 0 ? _ref3 : _setContextPosition, | ||
childProgressiveSizes | ||
@@ -49,3 +46,2 @@ }; | ||
_contextIndex, | ||
_contextPosition, | ||
passedContext, | ||
@@ -52,0 +48,0 @@ virtualizerContext |
@@ -8,3 +8,3 @@ import { useEffect, useRef, useCallback, useImperativeHandle, useState, useReducer } from 'react'; | ||
'use no memo'; | ||
const { itemSize, numItems, virtualizerLength, children: renderChild, getItemSize, bufferItems = Math.round(virtualizerLength / 4.0), bufferSize = Math.floor(bufferItems / 2.0) * itemSize, axis = 'vertical', reversed = false, virtualizerContext, onRenderedFlaggedIndex, imperativeVirtualizerRef, containerSizeRef, scrollViewRef, enableScrollLoad } = props; | ||
const { itemSize, numItems, virtualizerLength, children: renderChild, getItemSize, bufferItems = Math.round(virtualizerLength / 4.0), bufferSize = Math.floor(bufferItems / 2.0) * itemSize, axis = 'vertical', reversed = false, virtualizerContext, onRenderedFlaggedIndex, imperativeVirtualizerRef, containerSizeRef, scrollViewRef, enableScrollLoad, updateScrollPosition } = props; | ||
/* The context is optional, it's useful for injecting additional index logic, or performing uniform state updates*/ const _virtualizerContext = useVirtualizerContextState_unstable(virtualizerContext); | ||
@@ -259,8 +259,12 @@ // We use this ref as a constant source to access the virtualizer's state imperatively | ||
} | ||
// Grab latest entry that is intersecting | ||
const latestEntry = entries.length === 1 ? entries[0] : entries.sort((entry1, entry2)=>entry2.time - entry1.time).find((entry)=>{ | ||
return entry.intersectionRatio > 0; | ||
if (entries.length === 0) { | ||
// No entries found, return. | ||
return; | ||
} | ||
// Find the latest entry that is intersecting | ||
const sortedEntries = entries.sort((entry1, entry2)=>entry2.time - entry1.time); | ||
const latestEntry = sortedEntries.find((entry)=>{ | ||
return entry.isIntersecting; | ||
}); | ||
if (!latestEntry || !latestEntry.isIntersecting) { | ||
// If we don't find an intersecting area, ignore for now. | ||
if (!latestEntry) { | ||
return; | ||
@@ -335,3 +339,8 @@ } | ||
flushSync(()=>{ | ||
_virtualizerContext.setContextPosition(measurementPos); | ||
// Callback to allow measure functions to check virtualizer length | ||
if (newStartIndex + virtualizerLength >= numItems && actualIndex + virtualizerLength >= numItems) { | ||
// We've already hit the end, no need to update state. | ||
return; | ||
} | ||
updateScrollPosition === null || updateScrollPosition === void 0 ? void 0 : updateScrollPosition(measurementPos); | ||
if (actualIndex !== newStartIndex) { | ||
@@ -342,17 +351,17 @@ batchUpdateNewIndex(newStartIndex); | ||
}, [ | ||
_virtualizerContext, | ||
actualIndex, | ||
virtualizerLength, | ||
axis, | ||
reversed, | ||
numItems, | ||
bufferSize, | ||
bufferItems, | ||
containerSizeRef, | ||
updateScrollPosition, | ||
batchUpdateNewIndex, | ||
bufferItems, | ||
bufferSize, | ||
calculateAfter, | ||
calculateBefore, | ||
calculateTotalSize, | ||
containerSizeRef, | ||
getIndexFromScrollPosition, | ||
numItems, | ||
reversed, | ||
updateCurrentItemSizes, | ||
virtualizerLength | ||
updateCurrentItemSizes | ||
]), { | ||
@@ -359,0 +368,0 @@ root: scrollViewRef ? scrollViewRef === null || scrollViewRef === void 0 ? void 0 : scrollViewRef.current : null, |
@@ -109,3 +109,2 @@ import { __styles, mergeClasses } from '@griffel/react'; | ||
return state; | ||
}; | ||
//# sourceMappingURL=useVirtualizerStyles.styles.js.map | ||
}; |
@@ -46,3 +46,2 @@ import { useVirtualizerStyles_unstable, virtualizerClassNames } from '../Virtualizer/useVirtualizerStyles.styles'; | ||
return state; | ||
}; | ||
//# sourceMappingURL=useVirtualizerScrollViewStyles.styles.js.map | ||
}; |
@@ -32,3 +32,3 @@ import * as React from 'react'; | ||
var _props_axis, _props_getItemSize; | ||
const { virtualizerLength, bufferItems, bufferSize, scrollRef, containerSizeRef } = useDynamicVirtualizerMeasure({ | ||
const { virtualizerLength, bufferItems, bufferSize, scrollRef, containerSizeRef, updateScrollPosition } = useDynamicVirtualizerMeasure({ | ||
defaultItemSize: props.itemSize, | ||
@@ -71,3 +71,3 @@ direction: (_props_axis = props.axis) !== null && _props_axis !== void 0 ? _props_axis : 'vertical', | ||
totalSize, | ||
scrollViewRef, | ||
scrollViewRef: scrollViewRef, | ||
axis, | ||
@@ -103,3 +103,5 @@ reversed, | ||
onRenderedFlaggedIndex: handleRenderedIndex, | ||
containerSizeRef | ||
containerSizeRef, | ||
scrollViewRef, | ||
updateScrollPosition | ||
}); | ||
@@ -106,0 +108,0 @@ const measureObject = useMeasureList(virtualizerState.virtualizerStartIndex, virtualizerLength, props.numItems, props.itemSize); |
@@ -46,3 +46,2 @@ import { useVirtualizerStyles_unstable, virtualizerClassNames } from '../Virtualizer/useVirtualizerStyles.styles'; | ||
return state; | ||
}; | ||
//# sourceMappingURL=useVirtualizerScrollViewDynamicStyles.styles.js.map | ||
}; |
import { useIsomorphicLayoutEffect, useMergedRefs } from '@fluentui/react-utilities'; | ||
import * as React from 'react'; | ||
import { useResizeObserverRef_unstable } from './useResizeObserverRef'; | ||
import { useRef } from 'react'; | ||
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts'; | ||
@@ -10,4 +9,2 @@ /** | ||
const { defaultItemSize, direction = 'vertical', numItems, getItemSize, bufferItems, bufferSize, virtualizerContext } = virtualizerProps; | ||
const indexRef = useRef(virtualizerContext.contextIndex); | ||
indexRef.current = virtualizerContext.contextIndex; | ||
const [state, setState] = React.useState({ | ||
@@ -19,2 +16,3 @@ virtualizerLength: 0, | ||
const containerSizeRef = React.useRef(0); | ||
const scrollPosition = React.useRef(0); | ||
const { virtualizerLength, virtualizerBufferItems, virtualizerBufferSize } = state; | ||
@@ -39,5 +37,6 @@ const { targetDocument } = useFluent(); | ||
let length = 0; | ||
const startIndex = virtualizerContext.contextIndex; | ||
const sizeToBeat = containerSizeRef.current + virtualizerBufferSize * 2; | ||
while(indexSizer <= sizeToBeat && i + virtualizerContext.contextIndex < numItems){ | ||
const iItemSize = getItemSize(indexRef.current + i); | ||
while(indexSizer <= sizeToBeat && i + startIndex < numItems){ | ||
const iItemSize = getItemSize(startIndex + i); | ||
if (virtualizerContext.childProgressiveSizes.current.length < numItems) { | ||
@@ -48,4 +47,4 @@ /* We are in unknown territory, either an initial render or an update | ||
} | ||
const currentScrollPos = virtualizerContext.contextPosition; | ||
const currentItemPos = virtualizerContext.childProgressiveSizes.current[indexRef.current + i] - iItemSize; | ||
const currentScrollPos = scrollPosition.current; | ||
const currentItemPos = virtualizerContext.childProgressiveSizes.current[startIndex + i] - iItemSize; | ||
if (currentScrollPos > currentItemPos + iItemSize) { | ||
@@ -73,3 +72,3 @@ // The item isn't in view, ignore for now. | ||
* This is how far we deviate into the bufferItems to detect a redraw. | ||
*/ const newBufferSize = bufferSize !== null && bufferSize !== void 0 ? bufferSize : Math.max(defaultItemSize / 2.0, 1); | ||
*/ const newBufferSize = bufferSize !== null && bufferSize !== void 0 ? bufferSize : Math.max(defaultItemSize / 2, 1); | ||
const totalLength = length + newBufferItems * 2; | ||
@@ -93,3 +92,2 @@ setState({ | ||
virtualizerContext.contextIndex, | ||
virtualizerContext.contextPosition, | ||
virtualizerLength | ||
@@ -118,2 +116,10 @@ ]); | ||
]); | ||
const updateScrollPosition = React.useCallback((_scrollPosition)=>{ | ||
scrollPosition.current = _scrollPosition; | ||
// Check if our vLength's need recalculating | ||
handleScrollResize(scrollRef); | ||
}, [ | ||
handleScrollResize, | ||
scrollRef | ||
]); | ||
return { | ||
@@ -124,4 +130,5 @@ virtualizerLength, | ||
scrollRef, | ||
containerSizeRef | ||
containerSizeRef, | ||
updateScrollPosition | ||
}; | ||
}; |
@@ -11,3 +11,2 @@ import * as React from 'react'; | ||
const [_contextIndex, _setContextIndex] = useState(-1); | ||
const [_contextPosition, _setContextPosition] = useState(0); | ||
const childProgressiveSizes = useRef([]); | ||
@@ -17,8 +16,6 @@ /* We respect any wrapped providers while also ensuring defaults or passed through | ||
*/ const context = useMemo(()=>{ | ||
var _passedContext_contextIndex, _ref, _passedContext_setContextIndex, _ref1, _passedContext_contextPosition, _ref2, _passedContext_setContextPosition, _ref3; | ||
var _passedContext_contextIndex, _ref, _passedContext_setContextIndex, _ref1; | ||
return { | ||
contextIndex: (_ref = (_passedContext_contextIndex = passedContext === null || passedContext === void 0 ? void 0 : passedContext.contextIndex) !== null && _passedContext_contextIndex !== void 0 ? _passedContext_contextIndex : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.contextIndex) !== null && _ref !== void 0 ? _ref : _contextIndex, | ||
setContextIndex: (_ref1 = (_passedContext_setContextIndex = passedContext === null || passedContext === void 0 ? void 0 : passedContext.setContextIndex) !== null && _passedContext_setContextIndex !== void 0 ? _passedContext_setContextIndex : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.setContextIndex) !== null && _ref1 !== void 0 ? _ref1 : _setContextIndex, | ||
contextPosition: (_ref2 = (_passedContext_contextPosition = passedContext === null || passedContext === void 0 ? void 0 : passedContext.contextPosition) !== null && _passedContext_contextPosition !== void 0 ? _passedContext_contextPosition : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.contextPosition) !== null && _ref2 !== void 0 ? _ref2 : _contextPosition, | ||
setContextPosition: (_ref3 = (_passedContext_setContextPosition = passedContext === null || passedContext === void 0 ? void 0 : passedContext.setContextPosition) !== null && _passedContext_setContextPosition !== void 0 ? _passedContext_setContextPosition : virtualizerContext === null || virtualizerContext === void 0 ? void 0 : virtualizerContext.setContextPosition) !== null && _ref3 !== void 0 ? _ref3 : _setContextPosition, | ||
childProgressiveSizes | ||
@@ -28,3 +25,2 @@ }; | ||
_contextIndex, | ||
_contextPosition, | ||
passedContext, | ||
@@ -31,0 +27,0 @@ virtualizerContext |
{ | ||
"name": "@fluentui/react-virtualizer", | ||
"version": "9.0.0-alpha.86", | ||
"version": "9.0.0-alpha.87", | ||
"description": "Generic and composable virtualizer framework built on browser intersection observer", | ||
@@ -14,14 +14,2 @@ "main": "lib-commonjs/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "just-scripts build", | ||
"clean": "just-scripts clean", | ||
"code-style": "just-scripts code-style", | ||
"just": "just-scripts", | ||
"lint": "just-scripts lint", | ||
"test": "jest --passWithNoTests", | ||
"storybook": "yarn --cwd ../stories storybook", | ||
"start": "yarn storybook", | ||
"generate-api": "just-scripts generate-api", | ||
"type-check": "just-scripts type-check" | ||
}, | ||
"devDependencies": { | ||
@@ -31,9 +19,8 @@ "@fluentui/eslint-plugin": "*", | ||
"@fluentui/react-conformance-griffel": "*", | ||
"@fluentui/scripts-api-extractor": "*", | ||
"@fluentui/scripts-tasks": "*" | ||
"@fluentui/scripts-api-extractor": "*" | ||
}, | ||
"dependencies": { | ||
"@fluentui/react-jsx-runtime": "^9.0.45", | ||
"@fluentui/react-utilities": "^9.18.16", | ||
"@fluentui/react-shared-contexts": "^9.20.2", | ||
"@fluentui/react-jsx-runtime": "^9.0.46", | ||
"@fluentui/react-utilities": "^9.18.17", | ||
"@fluentui/react-shared-contexts": "^9.21.0", | ||
"@griffel/react": "^1.5.22", | ||
@@ -40,0 +27,0 @@ "@swc/helpers": "^0.5.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
603214
4
4841