@fluentui/react-virtualizer 0.0.0-nightly-20230119-0422.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.
Files changed (50) hide show
  1. package/CHANGELOG.json +32 -0
  2. package/CHANGELOG.md +15 -0
  3. package/LICENSE +15 -0
  4. package/README.md +5 -0
  5. package/dist/index.d.ts +173 -0
  6. package/lib/Hooks.js +2 -0
  7. package/lib/Hooks.js.map +1 -0
  8. package/lib/Virtualizer.js +2 -0
  9. package/lib/Virtualizer.js.map +1 -0
  10. package/lib/components/Virtualizer/Virtualizer.js +15 -0
  11. package/lib/components/Virtualizer/Virtualizer.js.map +1 -0
  12. package/lib/components/Virtualizer/Virtualizer.types.js +2 -0
  13. package/lib/components/Virtualizer/Virtualizer.types.js.map +1 -0
  14. package/lib/components/Virtualizer/index.js +6 -0
  15. package/lib/components/Virtualizer/index.js.map +1 -0
  16. package/lib/components/Virtualizer/renderVirtualizer.js +18 -0
  17. package/lib/components/Virtualizer/renderVirtualizer.js.map +1 -0
  18. package/lib/components/Virtualizer/useVirtualizer.js +363 -0
  19. package/lib/components/Virtualizer/useVirtualizer.js.map +1 -0
  20. package/lib/components/Virtualizer/useVirtualizerStyles.js +108 -0
  21. package/lib/components/Virtualizer/useVirtualizerStyles.js.map +1 -0
  22. package/lib/hooks/index.js +2 -0
  23. package/lib/hooks/index.js.map +1 -0
  24. package/lib/hooks/useIntersectionObserver.js +52 -0
  25. package/lib/hooks/useIntersectionObserver.js.map +1 -0
  26. package/lib/index.js +3 -0
  27. package/lib/index.js.map +1 -0
  28. package/lib-commonjs/Hooks.js +8 -0
  29. package/lib-commonjs/Hooks.js.map +1 -0
  30. package/lib-commonjs/Virtualizer.js +8 -0
  31. package/lib-commonjs/Virtualizer.js.map +1 -0
  32. package/lib-commonjs/components/Virtualizer/Virtualizer.js +22 -0
  33. package/lib-commonjs/components/Virtualizer/Virtualizer.js.map +1 -0
  34. package/lib-commonjs/components/Virtualizer/Virtualizer.types.js +6 -0
  35. package/lib-commonjs/components/Virtualizer/Virtualizer.types.js.map +1 -0
  36. package/lib-commonjs/components/Virtualizer/index.js +12 -0
  37. package/lib-commonjs/components/Virtualizer/index.js.map +1 -0
  38. package/lib-commonjs/components/Virtualizer/renderVirtualizer.js +25 -0
  39. package/lib-commonjs/components/Virtualizer/renderVirtualizer.js.map +1 -0
  40. package/lib-commonjs/components/Virtualizer/useVirtualizer.js +370 -0
  41. package/lib-commonjs/components/Virtualizer/useVirtualizer.js.map +1 -0
  42. package/lib-commonjs/components/Virtualizer/useVirtualizerStyles.js +115 -0
  43. package/lib-commonjs/components/Virtualizer/useVirtualizerStyles.js.map +1 -0
  44. package/lib-commonjs/hooks/index.js +8 -0
  45. package/lib-commonjs/hooks/index.js.map +1 -0
  46. package/lib-commonjs/hooks/useIntersectionObserver.js +59 -0
  47. package/lib-commonjs/hooks/useIntersectionObserver.js.map +1 -0
  48. package/lib-commonjs/index.js +45 -0
  49. package/lib-commonjs/index.js.map +1 -0
  50. package/package.json +53 -0
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":";;;;;;AAAA;AAIA,MAAMA,oBAAoB,GAAG,iBAAiB;AACjCC,6BAAqB,GAAqC;EACrEC,MAAM,EAAE,GAAGF,oBAAoB,UAAU;EACzCG,eAAe,EAAE,GAAGH,oBAAoB,mBAAmB;EAC3DI,KAAK,EAAE,GAAGJ,oBAAoB,SAAS;EACvCK,cAAc,EAAE,GAAGL,oBAAoB;CACxC;AAED,MAAMM,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAc1B;AAEF;;;AAGO,MAAMC,6BAA6B,GAAIC,KAAuB,IAAsB;EACzF,MAAMC,MAAM,GAAGJ,SAAS,EAAE;EAC1B,MAAM;IAAEK,QAAQ;IAAEC,IAAI;IAAEC,kBAAkB;IAAEC,iBAAiB;IA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AU,GAAGK,cAAc,GAAG,MAAM;IAC3C,GAAGZ,KAAK,CAACN,eAAe,CAAC6B;GAC1B;EAEDvB,KAAK,CAACL,KAAK,CAAC4B,KAAK,GAAG;IAClBC,MAAM,EAAEjB,UAAU,GAAG,MAAM,GAAGQ,mBAAmB;IACjDU,KAAK,EAAElB,UAAU,GAAGQ,mBAAmB,GAAG,MAAM;IAChD,GAAGO,WAAW;IACd,GAAGtB,KAAK,CAACL,KAAK,CAAC4B;GAChB;EAEDvB,KAAK,CAACJ,cAAc,CAAC2B,KAAK,GAAG;IAC3BC,MAAM,EAAEjB,UAAU,GAAG,MAAM,GAAGM,aAAa;IAC3CY,KAAK,EAAElB,UAAU,GAAGM,aAAa,GAAG,MAAM;IAC1C,GAAGb,KAAK,CAACJ,cAAc,CAAC2B;GACzB;EAED,OAAOvB,KAAK;AACd,CAAC;AA1FYR,qCAA6B","names":["virtualizerClassName","exports","before","beforeContainer","after","afterContainer","useStyles","react_1","useVirtualizerStyles_unstable","state","styles","reversed","axis","beforeBufferHeight","afterBufferHeight","bufferSize","horizontal","className","base","relative","vertical","beforeHeightPx","afterHeightPx","beforeBufferHeightPx","afterBufferHeightPx","bufferPx","beforeBuffer","marginBottom","marginTop","marginLeft","marginRight","afterBuffer","style","height","width"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-virtualizer/src/components/Virtualizer/useVirtualizerStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { VirtualizerSlots, VirtualizerState } from './Virtualizer.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nconst virtualizerClassName = 'fui-Virtualizer';\nexport const virtualizerClassNames: SlotClassNames<VirtualizerSlots> = {\n before: `${virtualizerClassName}__before`,\n beforeContainer: `${virtualizerClassName}__beforeContainer`,\n after: `${virtualizerClassName}__after`,\n afterContainer: `${virtualizerClassName}__afterContainer`,\n};\n\nconst useStyles = makeStyles({\n base: {\n display: 'block',\n pointerEvents: 'none',\n },\n relative: {\n position: 'relative',\n },\n horizontal: {\n minHeight: '100%',\n },\n vertical: {\n minWidth: '100%',\n },\n});\n\n/**\n * Apply styling to the Virtualizer states\n */\nexport const useVirtualizerStyles_unstable = (state: VirtualizerState): VirtualizerState => {\n const styles = useStyles();\n const { reversed, axis, beforeBufferHeight, afterBufferHeight, bufferSize } = state;\n const horizontal = axis === 'horizontal';\n\n state.before.className = mergeClasses(\n virtualizerClassNames.before,\n styles.base,\n styles.relative,\n horizontal ? styles.horizontal : styles.vertical,\n state.before.className,\n );\n\n state.after.className = mergeClasses(\n virtualizerClassNames.after,\n styles.base,\n styles.relative,\n horizontal ? styles.horizontal : styles.vertical,\n state.after.className,\n );\n\n state.beforeContainer.className = mergeClasses(\n virtualizerClassNames.beforeContainer,\n styles.base,\n horizontal ? styles.horizontal : styles.vertical,\n state.beforeContainer.className,\n );\n\n state.afterContainer.className = mergeClasses(\n virtualizerClassNames.afterContainer,\n styles.base,\n horizontal ? styles.horizontal : styles.vertical,\n state.afterContainer.className,\n );\n\n const beforeHeightPx = beforeBufferHeight + 'px';\n const afterHeightPx = afterBufferHeight + 'px';\n const beforeBufferHeightPx = beforeBufferHeight + bufferSize + 'px';\n const afterBufferHeightPx = afterBufferHeight + bufferSize + 'px';\n const bufferPx = bufferSize + 'px';\n\n const beforeBuffer = {\n // Column\n ...(!reversed && !horizontal && { marginBottom: `-${bufferPx}` }),\n // Column-Reverse\n ...(reversed && !horizontal && { marginTop: `-${bufferPx}` }),\n // Row\n ...(!reversed && horizontal && { marginLeft: `-${bufferPx}` }),\n // Row-Reverse\n ...(reversed && horizontal && { marginRight: `-${bufferPx}` }),\n };\n\n const afterBuffer = {\n // Column\n ...(!reversed && !horizontal && { marginTop: `-${bufferPx}` }),\n // Column-Reverse\n ...(reversed && !horizontal && { marginBottom: `-${bufferPx}` }),\n // Row\n ...(!reversed && horizontal && { marginLeft: `-${bufferPx}` }),\n // Row-Reverse\n ...(reversed && horizontal && { marginRight: `-${bufferPx}` }),\n };\n\n state.before.style = {\n height: horizontal ? '100%' : beforeBufferHeightPx,\n width: horizontal ? beforeBufferHeightPx : '100%',\n ...beforeBuffer,\n ...state.before.style,\n };\n\n state.beforeContainer.style = {\n height: horizontal ? 'auto' : beforeHeightPx,\n width: horizontal ? beforeHeightPx : 'auto',\n ...state.beforeContainer.style,\n };\n\n state.after.style = {\n height: horizontal ? '100%' : afterBufferHeightPx,\n width: horizontal ? afterBufferHeightPx : '100%',\n ...afterBuffer,\n ...state.after.style,\n };\n\n state.afterContainer.style = {\n height: horizontal ? 'auto' : afterHeightPx,\n width: horizontal ? afterHeightPx : 'auto',\n ...state.afterContainer.style,\n };\n\n return state;\n};\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ const tslib_1 = /*#__PURE__*/require("tslib");
7
+ tslib_1.__exportStar(require("./useIntersectionObserver"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-virtualizer/src/hooks/index.ts"],"sourcesContent":["export * from './useIntersectionObserver';\n"]}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useIntersectionObserver = void 0;
7
+ const React = /*#__PURE__*/require("react");
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
+ const {
10
+ useState,
11
+ useRef
12
+ } = React;
13
+ /**
14
+ * React hook that allows easy usage of the browser API IntersectionObserver within React
15
+ * @param callback - A function called when the percentage of the target element is visible crosses a threshold.
16
+ * @param options - An optional object which customizes the observer. If options isn't specified, the observer uses the
17
+ * document's viewport as the root, with no margin, and a 0% threshold (meaning that even a one-pixel change is
18
+ * enough to trigger a callback).
19
+ * @returns An array containing a callback to update the list of Elements the observer should listen to, a callback to
20
+ * update the init options of the IntersectionObserver and a ref to the IntersectionObserver instance itself.
21
+ */
22
+ const useIntersectionObserver = (callback, options) => {
23
+ // export const useIntersectionObserver = (
24
+ // callback: IntersectionObserverCallback,
25
+ // options?: IntersectionObserverInit,
26
+ // ): [
27
+ // Dispatch<SetStateAction<Element[] | undefined>>,
28
+ // Dispatch<SetStateAction<IntersectionObserverInit | undefined>>,
29
+ // MutableRefObject<IntersectionObserver | undefined>,
30
+ // ] => {
31
+ const observer = useRef();
32
+ const [observerList, setObserverList] = useState();
33
+ const [observerInit, setObserverInit] = useState(options);
34
+ // Observer elements in passed in list and clean up previous list
35
+ // This effect is only triggered when observerList is updated
36
+ react_utilities_1.useIsomorphicLayoutEffect(() => {
37
+ observer.current = new IntersectionObserver(callback, observerInit);
38
+ // If we have an instance of IO and a list with elements, observer the elements
39
+ if (observer.current && observerList && observerList.length > 0) {
40
+ observerList.forEach(element => {
41
+ var _a;
42
+ (_a = observer.current) === null || _a === void 0 ? void 0 : _a.observe(element);
43
+ });
44
+ }
45
+ // clean up previous elements being listened to
46
+ return () => {
47
+ if (observer.current) {
48
+ observer.current.disconnect();
49
+ }
50
+ };
51
+ }, [observerList, observerInit, callback]);
52
+ return {
53
+ setObserverList,
54
+ setObserverInit,
55
+ observer
56
+ };
57
+ };
58
+ exports.useIntersectionObserver = useIntersectionObserver;
59
+ //# sourceMappingURL=useIntersectionObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":";;;;;;AACA;AACA;AAEA,MAAM;EAAEA,QAAQ;EAAEC;AAAM,CAAE,GAAGC,KAAK;AAElC;;;;;;;;;AAUO,MAAMC,uBAAuB,GAAG,CACrCC,QAAsC,EACtCC,OAAkC,KAKhC;EACF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMC,QAAQ,GAAGL,MAAM,EAAwB;EAC/C,MAAM,CAACM,YAAY,EAAEC,eAAe,CAAC,GAAGR,QAAQ,EAAa;EAC7D,MAAM,CAACS,YAAY,EAAEC,eAAe,CAAC,GAAGV,QAAQ,CAAuCK,OAAO,CAAC;EAE/F;EACA;EACAM,2CAAyB,CAAC,MAAK;IAC7BL,QAAQ,CAACM,OAAO,GAAG,IAAIC,oBAAoB,CAACT,QAAQ,EAAEK,YAAY,CAAC;IAEnE;IACA,IAAIH,QAAQ,CAACM,OAAO,IAAIL,YAAY,IAAIA,YAAY,CAACO,MAAM,GAAG,CAAC,EAAE;MAC/DP,YAAY,CAACQ,OAAO,CAACC,OAAO,IAAG;;QAC7B,cAAQ,CAACJ,OAAO,0CAAEK,OAAO,CAACD,OAAO,CAAC;MACpC,CAAC,CAAC;;IAGJ;IACA,OAAO,MAAK;MACV,IAAIV,QAAQ,CAACM,OAAO,EAAE;QACpBN,QAAQ,CAACM,OAAO,CAACM,UAAU,EAAE;;IAEjC,CAAC;EACH,CAAC,EAAE,CAACX,YAAY,EAAEE,YAAY,EAAEL,QAAQ,CAAC,CAAC;EAE1C,OAAO;IAAEI,eAAe;IAAEE,eAAe;IAAEJ;EAAQ,CAAE;AACvD,CAAC;AAzCYa,+BAAuB","names":["useState","useRef","React","useIntersectionObserver","callback","options","observer","observerList","setObserverList","observerInit","setObserverInit","react_utilities_1","current","IntersectionObserver","length","forEach","element","observe","disconnect","exports"],"sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-virtualizer/src/hooks/useIntersectionObserver.ts"],"sourcesContent":["import type { Dispatch, MutableRefObject, SetStateAction } from 'react';\nimport * as React from 'react';\nimport { useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\n\nconst { useState, useRef } = React;\n\n/**\n * React hook that allows easy usage of the browser API IntersectionObserver within React\n * @param callback - A function called when the percentage of the target element is visible crosses a threshold.\n * @param options - An optional object which customizes the observer. If options isn't specified, the observer uses the\n * document's viewport as the root, with no margin, and a 0% threshold (meaning that even a one-pixel change is\n * enough to trigger a callback).\n * @returns An array containing a callback to update the list of Elements the observer should listen to, a callback to\n * update the init options of the IntersectionObserver and a ref to the IntersectionObserver instance itself.\n */\n\nexport const useIntersectionObserver = (\n callback: IntersectionObserverCallback,\n options?: IntersectionObserverInit,\n): {\n setObserverList: Dispatch<SetStateAction<Element[] | undefined>>;\n setObserverInit: Dispatch<SetStateAction<IntersectionObserverInit | undefined>>;\n observer: MutableRefObject<IntersectionObserver | undefined>;\n} => {\n // export const useIntersectionObserver = (\n // callback: IntersectionObserverCallback,\n // options?: IntersectionObserverInit,\n // ): [\n // Dispatch<SetStateAction<Element[] | undefined>>,\n // Dispatch<SetStateAction<IntersectionObserverInit | undefined>>,\n // MutableRefObject<IntersectionObserver | undefined>,\n // ] => {\n const observer = useRef<IntersectionObserver>();\n const [observerList, setObserverList] = useState<Element[]>();\n const [observerInit, setObserverInit] = useState<IntersectionObserverInit | undefined>(options);\n\n // Observer elements in passed in list and clean up previous list\n // This effect is only triggered when observerList is updated\n useIsomorphicLayoutEffect(() => {\n observer.current = new IntersectionObserver(callback, observerInit);\n\n // If we have an instance of IO and a list with elements, observer the elements\n if (observer.current && observerList && observerList.length > 0) {\n observerList.forEach(element => {\n observer.current?.observe(element);\n });\n }\n\n // clean up previous elements being listened to\n return () => {\n if (observer.current) {\n observer.current.disconnect();\n }\n };\n }, [observerList, observerInit, callback]);\n\n return { setObserverList, setObserverInit, observer };\n};\n"]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useIntersectionObserver = exports.useVirtualizerStyles_unstable = exports.renderVirtualizer_unstable = exports.useVirtualizer_unstable = exports.virtualizerClassNames = exports.Virtualizer = void 0;
7
+ var Virtualizer_1 = /*#__PURE__*/require("./Virtualizer");
8
+ Object.defineProperty(exports, "Virtualizer", {
9
+ enumerable: true,
10
+ get: function () {
11
+ return Virtualizer_1.Virtualizer;
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "virtualizerClassNames", {
15
+ enumerable: true,
16
+ get: function () {
17
+ return Virtualizer_1.virtualizerClassNames;
18
+ }
19
+ });
20
+ Object.defineProperty(exports, "useVirtualizer_unstable", {
21
+ enumerable: true,
22
+ get: function () {
23
+ return Virtualizer_1.useVirtualizer_unstable;
24
+ }
25
+ });
26
+ Object.defineProperty(exports, "renderVirtualizer_unstable", {
27
+ enumerable: true,
28
+ get: function () {
29
+ return Virtualizer_1.renderVirtualizer_unstable;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "useVirtualizerStyles_unstable", {
33
+ enumerable: true,
34
+ get: function () {
35
+ return Virtualizer_1.useVirtualizerStyles_unstable;
36
+ }
37
+ });
38
+ var Hooks_1 = /*#__PURE__*/require("./Hooks");
39
+ Object.defineProperty(exports, "useIntersectionObserver", {
40
+ enumerable: true,
41
+ get: function () {
42
+ return Hooks_1.useIntersectionObserver;
43
+ }
44
+ });
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":";;;;;;AAAA;AACEA;EAAAC;EAAAC;IAAA,gCAAW;EAAA;AAAA;AACXF;EAAAC;EAAAC;IAAA,0CAAqB;EAAA;AAAA;AACrBF;EAAAC;EAAAC;IAAA,4CAAuB;EAAA;AAAA;AACvBF;EAAAC;EAAAC;IAAA,+CAA0B;EAAA;AAAA;AAC1BF;EAAAC;EAAAC;IAAA,kDAA6B;EAAA;AAAA;AAQ/B;AAASF;EAAAC;EAAAC;IAAA,sCAAuB;EAAA;AAAA","names":["Object","enumerable","get"],"sourceRoot":"","sources":["../../../../../../../packages/react-components/react-virtualizer/src/index.ts"],"sourcesContent":["export {\n Virtualizer,\n virtualizerClassNames,\n useVirtualizer_unstable,\n renderVirtualizer_unstable,\n useVirtualizerStyles_unstable,\n} from './Virtualizer';\nexport type {\n VirtualizerProps,\n VirtualizerState,\n VirtualizerSlots,\n VirtualizerChildRenderFunction,\n} from './Virtualizer';\nexport { useIntersectionObserver } from './Hooks';\n"]}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@fluentui/react-virtualizer",
3
+ "version": "0.0.0-nightly-20230119-0422.1",
4
+ "description": "Generic and composable virtualizer framework built on browser intersection observer",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentui"
12
+ },
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "just-scripts build",
16
+ "clean": "just-scripts clean",
17
+ "code-style": "just-scripts code-style",
18
+ "just": "just-scripts",
19
+ "lint": "just-scripts lint",
20
+ "test": "jest --passWithNoTests",
21
+ "storybook": "start-storybook",
22
+ "start": "yarn storybook",
23
+ "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor",
24
+ "type-check": "tsc -b tsconfig.json"
25
+ },
26
+ "devDependencies": {
27
+ "@fluentui/eslint-plugin": "*",
28
+ "@fluentui/react-conformance": "*",
29
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230119-0422.1",
30
+ "@fluentui/scripts-api-extractor": "*",
31
+ "@fluentui/scripts-tasks": "*"
32
+ },
33
+ "dependencies": {
34
+ "@fluentui/react-utilities": "0.0.0-nightly-20230119-0422.1",
35
+ "@griffel/react": "^1.5.2",
36
+ "tslib": "^2.1.0"
37
+ },
38
+ "peerDependencies": {
39
+ "@types/react": ">=16.8.0 <18.0.0",
40
+ "@types/react-dom": ">=16.8.0 <18.0.0",
41
+ "react": ">=16.8.0 <18.0.0",
42
+ "react-dom": ">=16.8.0 <18.0.0"
43
+ },
44
+ "beachball": {},
45
+ "exports": {
46
+ ".": {
47
+ "types": "./dist/index.d.ts",
48
+ "import": "./lib/index.js",
49
+ "require": "./lib-commonjs/index.js"
50
+ },
51
+ "./package.json": "./package.json"
52
+ }
53
+ }