@elliemae/ds-shared 2.2.0-next.3 → 2.3.0-alpha.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 (212) hide show
  1. package/cjs/Animations/BaseAnimation.js +55 -35
  2. package/cjs/Animations/BaseAnimation.js.map +7 -0
  3. package/cjs/Animations/Grow.js +54 -41
  4. package/cjs/Animations/Grow.js.map +7 -0
  5. package/cjs/Animations/GrowRight.js +63 -41
  6. package/cjs/Animations/GrowRight.js.map +7 -0
  7. package/cjs/Animations/GrowVertical.js +47 -7
  8. package/cjs/Animations/GrowVertical.js.map +7 -0
  9. package/cjs/CheckableGroup.js +67 -65
  10. package/cjs/CheckableGroup.js.map +7 -0
  11. package/cjs/DeferRenderAfterComputation.js +48 -24
  12. package/cjs/DeferRenderAfterComputation.js.map +7 -0
  13. package/cjs/FocusGroup/FocusGrid.js +108 -143
  14. package/cjs/FocusGroup/FocusGrid.js.map +7 -0
  15. package/cjs/FocusGroup/FocusGroup.js +88 -147
  16. package/cjs/FocusGroup/FocusGroup.js.map +7 -0
  17. package/cjs/FocusGroup/FocusGroupContext.js +38 -11
  18. package/cjs/FocusGroup/FocusGroupContext.js.map +7 -0
  19. package/cjs/FocusGroup/FocusGroupManager.js +56 -47
  20. package/cjs/FocusGroup/FocusGroupManager.js.map +7 -0
  21. package/cjs/FocusGroup/focusGroupManagerHoc.js +52 -42
  22. package/cjs/FocusGroup/focusGroupManagerHoc.js.map +7 -0
  23. package/cjs/FocusGroup/index.js +47 -21
  24. package/cjs/FocusGroup/index.js.map +7 -0
  25. package/cjs/FocusGroup/useFocusGroupItem.js +59 -51
  26. package/cjs/FocusGroup/useFocusGroupItem.js.map +7 -0
  27. package/cjs/FocusGroup/utils/getNextCellPosition.js +47 -27
  28. package/cjs/FocusGroup/utils/getNextCellPosition.js.map +7 -0
  29. package/cjs/GroupContext/Group.js +64 -73
  30. package/cjs/GroupContext/Group.js.map +7 -0
  31. package/cjs/GroupContext/GroupContext.js +36 -13
  32. package/cjs/GroupContext/GroupContext.js.map +7 -0
  33. package/cjs/GroupContext/GroupItem.js +39 -21
  34. package/cjs/GroupContext/GroupItem.js.map +7 -0
  35. package/cjs/GroupContext/index.js +39 -13
  36. package/cjs/GroupContext/index.js.map +7 -0
  37. package/cjs/ScrollSync/ScrollSync.js +60 -75
  38. package/cjs/ScrollSync/ScrollSync.js.map +7 -0
  39. package/cjs/ScrollSync/ScrollSyncPane.js +52 -60
  40. package/cjs/ScrollSync/ScrollSyncPane.js.map +7 -0
  41. package/cjs/ScrollSync/ScrollSyncProvider.js +103 -50
  42. package/cjs/ScrollSync/ScrollSyncProvider.js.map +7 -0
  43. package/cjs/ScrollSync/index.js +37 -11
  44. package/cjs/ScrollSync/index.js.map +7 -0
  45. package/cjs/ScrollSync/useScrollSync.js +38 -7
  46. package/cjs/ScrollSync/useScrollSync.js.map +7 -0
  47. package/cjs/constants.js +65 -46
  48. package/cjs/constants.js.map +7 -0
  49. package/cjs/createDataInstance/createInstancePlugin.js +41 -29
  50. package/cjs/createDataInstance/createInstancePlugin.js.map +7 -0
  51. package/cjs/createDataInstance/createInstanceRef.js +66 -71
  52. package/cjs/createDataInstance/createInstanceRef.js.map +7 -0
  53. package/cjs/createDataInstance/utils.js +76 -100
  54. package/cjs/createDataInstance/utils.js.map +7 -0
  55. package/cjs/defer-render-hoc/index.js +48 -41
  56. package/cjs/defer-render-hoc/index.js.map +7 -0
  57. package/cjs/dimsum.config.js +38 -6
  58. package/cjs/dimsum.config.js.map +7 -0
  59. package/cjs/index.js +40 -17
  60. package/cjs/index.js.map +7 -0
  61. package/cjs/prop-types.js +106 -49
  62. package/cjs/prop-types.js.map +7 -0
  63. package/cjs/react-spring/index.js +28 -14
  64. package/cjs/react-spring/index.js.map +7 -0
  65. package/cjs/react-spring/renderprops.js +28 -14
  66. package/cjs/react-spring/renderprops.js.map +7 -0
  67. package/cjs/toolbar/ToolbarProvider.js +82 -94
  68. package/cjs/toolbar/ToolbarProvider.js.map +7 -0
  69. package/cjs/useDataGrid/VolatileRowsListener.js +38 -13
  70. package/cjs/useDataGrid/VolatileRowsListener.js.map +7 -0
  71. package/cjs/useDataGrid/index.js +36 -7
  72. package/cjs/useDataGrid/index.js.map +7 -0
  73. package/cjs/useDataGrid/initColumnDefinition.js +105 -110
  74. package/cjs/useDataGrid/initColumnDefinition.js.map +7 -0
  75. package/cjs/useDataGrid/useDataGrid.js +122 -148
  76. package/cjs/useDataGrid/useDataGrid.js.map +7 -0
  77. package/cjs/useDataList/index.js +36 -7
  78. package/cjs/useDataList/index.js.map +7 -0
  79. package/cjs/useDataList/recordIterator.js +42 -18
  80. package/cjs/useDataList/recordIterator.js.map +7 -0
  81. package/cjs/useDataList/useDataList.js +74 -83
  82. package/cjs/useDataList/useDataList.js.map +7 -0
  83. package/cjs/utils.js +71 -80
  84. package/cjs/utils.js.map +7 -0
  85. package/cjs/virtualization/AutoHeightList.js +62 -54
  86. package/cjs/virtualization/AutoHeightList.js.map +7 -0
  87. package/cjs/virtualization/FluidHeightList.js +42 -48
  88. package/cjs/virtualization/FluidHeightList.js.map +7 -0
  89. package/cjs/virtualization/index.js +48 -20
  90. package/cjs/virtualization/index.js.map +7 -0
  91. package/esm/Animations/BaseAnimation.js +26 -29
  92. package/esm/Animations/BaseAnimation.js.map +7 -0
  93. package/esm/Animations/Grow.js +25 -35
  94. package/esm/Animations/Grow.js.map +7 -0
  95. package/esm/Animations/GrowRight.js +34 -35
  96. package/esm/Animations/GrowRight.js.map +7 -0
  97. package/esm/Animations/GrowVertical.js +29 -4
  98. package/esm/Animations/GrowVertical.js.map +7 -0
  99. package/esm/CheckableGroup.js +35 -52
  100. package/esm/CheckableGroup.js.map +7 -0
  101. package/esm/DeferRenderAfterComputation.js +16 -15
  102. package/esm/DeferRenderAfterComputation.js.map +7 -0
  103. package/esm/FocusGroup/FocusGrid.js +64 -117
  104. package/esm/FocusGroup/FocusGrid.js.map +7 -0
  105. package/esm/FocusGroup/FocusGroup.js +56 -137
  106. package/esm/FocusGroup/FocusGroup.js.map +7 -0
  107. package/esm/FocusGroup/FocusGroupContext.js +9 -5
  108. package/esm/FocusGroup/FocusGroupContext.js.map +7 -0
  109. package/esm/FocusGroup/FocusGroupManager.js +24 -38
  110. package/esm/FocusGroup/FocusGroupManager.js.map +7 -0
  111. package/esm/FocusGroup/focusGroupManagerHoc.js +24 -36
  112. package/esm/FocusGroup/focusGroupManagerHoc.js.map +7 -0
  113. package/esm/FocusGroup/index.js +18 -6
  114. package/esm/FocusGroup/index.js.map +7 -0
  115. package/esm/FocusGroup/useFocusGroupItem.js +28 -40
  116. package/esm/FocusGroup/useFocusGroupItem.js.map +7 -0
  117. package/esm/FocusGroup/utils/getNextCellPosition.js +18 -25
  118. package/esm/FocusGroup/utils/getNextCellPosition.js.map +7 -0
  119. package/esm/GroupContext/Group.js +34 -66
  120. package/esm/GroupContext/Group.js.map +7 -0
  121. package/esm/GroupContext/GroupContext.js +7 -5
  122. package/esm/GroupContext/GroupContext.js.map +7 -0
  123. package/esm/GroupContext/GroupItem.js +10 -15
  124. package/esm/GroupContext/GroupItem.js.map +7 -0
  125. package/esm/GroupContext/index.js +10 -3
  126. package/esm/GroupContext/index.js.map +7 -0
  127. package/esm/ScrollSync/ScrollSync.js +30 -64
  128. package/esm/ScrollSync/ScrollSync.js.map +7 -0
  129. package/esm/ScrollSync/ScrollSyncPane.js +22 -52
  130. package/esm/ScrollSync/ScrollSyncPane.js.map +7 -0
  131. package/esm/ScrollSync/ScrollSyncProvider.js +74 -42
  132. package/esm/ScrollSync/ScrollSyncProvider.js.map +7 -0
  133. package/esm/ScrollSync/index.js +8 -2
  134. package/esm/ScrollSync/index.js.map +7 -0
  135. package/esm/ScrollSync/useScrollSync.js +9 -5
  136. package/esm/ScrollSync/useScrollSync.js.map +7 -0
  137. package/esm/constants.js +37 -28
  138. package/esm/constants.js.map +7 -0
  139. package/esm/createDataInstance/createInstancePlugin.js +12 -23
  140. package/esm/createDataInstance/createInstancePlugin.js.map +7 -0
  141. package/esm/createDataInstance/createInstanceRef.js +36 -59
  142. package/esm/createDataInstance/createInstanceRef.js.map +7 -0
  143. package/esm/createDataInstance/utils.js +48 -85
  144. package/esm/createDataInstance/utils.js.map +7 -0
  145. package/esm/defer-render-hoc/index.js +17 -31
  146. package/esm/defer-render-hoc/index.js.map +7 -0
  147. package/esm/dimsum.config.js +9 -4
  148. package/esm/dimsum.config.js.map +7 -0
  149. package/esm/index.js +11 -5
  150. package/esm/index.js.map +7 -0
  151. package/esm/prop-types.js +75 -31
  152. package/esm/prop-types.js.map +7 -0
  153. package/esm/react-spring/index.js +3 -1
  154. package/esm/react-spring/index.js.map +7 -0
  155. package/esm/react-spring/renderprops.js +3 -1
  156. package/esm/react-spring/renderprops.js.map +7 -0
  157. package/esm/toolbar/ToolbarProvider.js +45 -74
  158. package/esm/toolbar/ToolbarProvider.js.map +7 -0
  159. package/esm/useDataGrid/VolatileRowsListener.js +9 -11
  160. package/esm/useDataGrid/VolatileRowsListener.js.map +7 -0
  161. package/esm/useDataGrid/index.js +7 -1
  162. package/esm/useDataGrid/index.js.map +7 -0
  163. package/esm/useDataGrid/initColumnDefinition.js +78 -94
  164. package/esm/useDataGrid/initColumnDefinition.js.map +7 -0
  165. package/esm/useDataGrid/useDataGrid.js +82 -99
  166. package/esm/useDataGrid/useDataGrid.js.map +7 -0
  167. package/esm/useDataList/index.js +7 -1
  168. package/esm/useDataList/index.js.map +7 -0
  169. package/esm/useDataList/recordIterator.js +13 -14
  170. package/esm/useDataList/recordIterator.js.map +7 -0
  171. package/esm/useDataList/useDataList.js +44 -67
  172. package/esm/useDataList/useDataList.js.map +7 -0
  173. package/esm/utils.js +42 -59
  174. package/esm/utils.js.map +7 -0
  175. package/esm/virtualization/AutoHeightList.js +28 -40
  176. package/esm/virtualization/AutoHeightList.js.map +7 -0
  177. package/esm/virtualization/FluidHeightList.js +14 -38
  178. package/esm/virtualization/FluidHeightList.js.map +7 -0
  179. package/esm/virtualization/index.js +19 -16
  180. package/esm/virtualization/index.js.map +7 -0
  181. package/package.json +3 -3
  182. package/types/Animations/BaseAnimation.d.ts +1 -0
  183. package/types/Animations/Grow.d.ts +1 -0
  184. package/types/Animations/GrowRight.d.ts +1 -0
  185. package/types/CheckableGroup.d.ts +1 -0
  186. package/types/DeferRenderAfterComputation.d.ts +3 -2
  187. package/types/FocusGroup/FocusGrid.d.ts +5 -3
  188. package/types/FocusGroup/FocusGroup.d.ts +3 -1
  189. package/types/FocusGroup/FocusGroupContext.d.ts +3 -2
  190. package/types/FocusGroup/FocusGroupManager.d.ts +3 -1
  191. package/types/FocusGroup/focusGroupManagerHoc.d.ts +3 -1
  192. package/types/FocusGroup/index.d.ts +6 -6
  193. package/types/FocusGroup/useFocusGroupItem.d.ts +3 -1
  194. package/types/FocusGroup/utils/getNextCellPosition.d.ts +3 -1
  195. package/types/GroupContext/Group.d.ts +1 -0
  196. package/types/GroupContext/GroupItem.d.ts +1 -0
  197. package/types/GroupContext/index.d.ts +3 -3
  198. package/types/ScrollSync/ScrollSync.d.ts +4 -2
  199. package/types/ScrollSync/ScrollSyncPane.d.ts +2 -2
  200. package/types/ScrollSync/index.d.ts +2 -2
  201. package/types/ScrollSync/useScrollSync.d.ts +6 -5
  202. package/types/createDataInstance/createInstancePlugin.d.ts +2 -1
  203. package/types/createDataInstance/createInstanceRef.d.ts +3 -1
  204. package/types/dimsum.config.d.ts +3 -2
  205. package/types/index.d.ts +2 -2
  206. package/types/toolbar/ToolbarProvider.d.ts +3 -8
  207. package/types/useDataGrid/VolatileRowsListener.d.ts +3 -1
  208. package/types/useDataGrid/index.d.ts +1 -1
  209. package/types/useDataGrid/initColumnDefinition.d.ts +2 -1
  210. package/types/useDataGrid/useDataGrid.d.ts +3 -2
  211. package/types/useDataList/index.d.ts +1 -1
  212. package/types/useDataList/useDataList.d.ts +3 -2
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/utils.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-cond-assign */\nexport const objectType = (obj) =>\n Object.prototype.toString.call(obj).slice(8, -1);\nexport const isDefined = (param) => typeof param !== 'undefined';\nexport const isUndefined = (param) => typeof param === 'undefined';\nexport const isFunction = (param) => typeof param === 'function';\nexport const isNumber = param => typeof param === 'number' && !isNaN(param); // eslint-disable-line\nexport const isString = (str) => objectType(str) === 'String';\nexport const isArray = (arr) => objectType(arr) === 'Array';\n\nexport const closest = (target, selector) => {\n // closest(e.target, '.field')\n while (target) {\n // eslint-disable-line\n if (target.matches && target.matches(selector)) return target;\n if (target.msMatchesSelector && target.msMatchesSelector(selector))\n return target;\n // eslint-disable-next-line no-param-reassign\n target = target.parentNode;\n }\n return null;\n};\n\nexport const getOffsetRect = (elem) => {\n // (1)\n const box = elem.getBoundingClientRect();\n\n const { body, documentElement } = document;\n\n // (2)\n const scrollTop =\n window.pageYOffset || documentElement.scrollTop || body.scrollTop;\n const scrollLeft =\n window.pageXOffset || documentElement.scrollLeft || body.scrollLeft;\n\n // (3)\n const clientTop = documentElement.clientTop || body.clientTop || 0;\n const clientLeft = documentElement.clientLeft || body.clientLeft || 0;\n\n // (4)\n const top = box.top + scrollTop - clientTop;\n const left = box.left + scrollLeft - clientLeft;\n\n return { top: Math.round(top), left: Math.round(left) };\n};\n\nexport const getTotalScroll = (elem) => {\n let top = 0;\n let left = 0;\n\n // eslint-disable-next-line no-param-reassign\n while ((elem = elem.parentNode)) {\n top += elem.scrollTop || 0;\n left += elem.scrollLeft || 0;\n }\n\n return { top, left };\n};\n\nexport const getTransformProps = (x, y) => ({\n transform: `translate(${x}px, ${y}px)`,\n});\n\nexport const listWithChildren = (list, childrenProp) =>\n list.map((item) => ({\n ...item,\n [childrenProp]: item[childrenProp]\n ? listWithChildren(item[childrenProp], childrenProp)\n : [],\n }));\n\nexport const getAllNonEmptyNodesIds = (items, childrenProp) => {\n let childrenIds = [];\n const ids = items\n .filter((item) => item[childrenProp].length)\n .map((item) => {\n childrenIds = childrenIds.concat(\n getAllNonEmptyNodesIds(item[childrenProp], childrenProp),\n );\n return item.id;\n });\n\n return ids.concat(childrenIds);\n};\n\nexport const isInternetExplorer = () => {\n const ua = window.navigator.userAgent;\n const msie = ua.indexOf('MSIE ');\n // If Internet Explorer, return version number\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv:11\\./)) {\n return true;\n }\n return false;\n};\n"],
5
+ "mappings": "AAAA;ACCO,MAAM,aAAa,CAAC,QACzB,OAAO,UAAU,SAAS,KAAK,KAAK,MAAM,GAAG;AACxC,MAAM,YAAY,CAAC,UAAU,OAAO,UAAU;AAC9C,MAAM,cAAc,CAAC,UAAU,OAAO,UAAU;AAChD,MAAM,aAAa,CAAC,UAAU,OAAO,UAAU;AAC/C,MAAM,WAAW,WAAS,OAAO,UAAU,YAAY,CAAC,MAAM;AAC9D,MAAM,WAAW,CAAC,QAAQ,WAAW,SAAS;AAC9C,MAAM,UAAU,CAAC,QAAQ,WAAW,SAAS;AAE7C,MAAM,UAAU,CAAC,QAAQ,aAAa;AAE3C,SAAO,QAAQ;AAEb,QAAI,OAAO,WAAW,OAAO,QAAQ;AAAW,aAAO;AACvD,QAAI,OAAO,qBAAqB,OAAO,kBAAkB;AACvD,aAAO;AAET,aAAS,OAAO;AAAA;AAElB,SAAO;AAAA;AAGF,MAAM,gBAAgB,CAAC,SAAS;AAErC,QAAM,MAAM,KAAK;AAEjB,QAAM,EAAE,MAAM,oBAAoB;AAGlC,QAAM,YACJ,OAAO,eAAe,gBAAgB,aAAa,KAAK;AAC1D,QAAM,aACJ,OAAO,eAAe,gBAAgB,cAAc,KAAK;AAG3D,QAAM,YAAY,gBAAgB,aAAa,KAAK,aAAa;AACjE,QAAM,aAAa,gBAAgB,cAAc,KAAK,cAAc;AAGpE,QAAM,MAAM,IAAI,MAAM,YAAY;AAClC,QAAM,OAAO,IAAI,OAAO,aAAa;AAErC,SAAO,EAAE,KAAK,KAAK,MAAM,MAAM,MAAM,KAAK,MAAM;AAAA;AAG3C,MAAM,iBAAiB,CAAC,SAAS;AACtC,MAAI,MAAM;AACV,MAAI,OAAO;AAGX,SAAQ,OAAO,KAAK,YAAa;AAC/B,WAAO,KAAK,aAAa;AACzB,YAAQ,KAAK,cAAc;AAAA;AAG7B,SAAO,EAAE,KAAK;AAAA;AAGT,MAAM,oBAAoB,CAAC,GAAG,MAAO;AAAA,EAC1C,WAAW,aAAa,QAAQ;AAAA;AAG3B,MAAM,mBAAmB,CAAC,MAAM,iBACrC,KAAK,IAAI,CAAC,SAAU;AAAA,KACf;AAAA,GACF,eAAe,KAAK,gBACjB,iBAAiB,KAAK,eAAe,gBACrC;AAAA;AAGD,MAAM,yBAAyB,CAAC,OAAO,iBAAiB;AAC7D,MAAI,cAAc;AAClB,QAAM,MAAM,MACT,OAAO,CAAC,SAAS,KAAK,cAAc,QACpC,IAAI,CAAC,SAAS;AACb,kBAAc,YAAY,OACxB,uBAAuB,KAAK,eAAe;AAE7C,WAAO,KAAK;AAAA;AAGhB,SAAO,IAAI,OAAO;AAAA;AAGb,MAAM,qBAAqB,MAAM;AACtC,QAAM,KAAK,OAAO,UAAU;AAC5B,QAAM,OAAO,GAAG,QAAQ;AAExB,MAAI,OAAO,KAAK,CAAC,CAAC,UAAU,UAAU,MAAM,qBAAqB;AAC/D,WAAO;AAAA;AAET,SAAO;AAAA;",
6
+ "names": []
7
+ }
@@ -1,52 +1,40 @@
1
- import 'core-js/modules/esnext.async-iterator.filter.js';
2
- import 'core-js/modules/esnext.iterator.constructor.js';
3
- import 'core-js/modules/esnext.iterator.filter.js';
4
- import 'core-js/modules/esnext.async-iterator.for-each.js';
5
- import 'core-js/modules/esnext.iterator.for-each.js';
6
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
8
- import { forwardRef, useRef } from 'react';
9
- import { FixedSizeList } from 'react-window';
10
- import { useWindowScrollerList, mergeRefs, cx } from '@elliemae/ds-utilities';
11
- import { jsx } from 'react/jsx-runtime';
12
-
13
- const _excluded = ["itemCount", "className", "innerRef", "itemData", "itemKey", "itemSize", "outerRef", "component"];
14
-
15
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
-
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
- const AutoHeightList = /*#__PURE__*/forwardRef((_ref, ref) => {
19
- let {
20
- itemCount,
21
- className,
22
- innerRef,
23
- itemData,
24
- itemKey,
25
- itemSize,
26
- outerRef,
27
- component: ListComponent = FixedSizeList
28
- } = _ref,
29
- otherProps = _objectWithoutProperties(_ref, _excluded);
30
-
1
+ import * as React from "react";
2
+ import React2, { forwardRef, useRef } from "react";
3
+ import { FixedSizeList as List } from "react-window";
4
+ import { cx, useWindowScrollerList, mergeRefs } from "@elliemae/ds-utilities";
5
+ const AutoHeightList = forwardRef(({
6
+ itemCount,
7
+ className,
8
+ innerRef,
9
+ itemData,
10
+ itemKey,
11
+ itemSize,
12
+ outerRef,
13
+ component: ListComponent = List,
14
+ ...otherProps
15
+ }, ref) => {
31
16
  const listRef = useRef();
32
17
  const outerListRef = useRef();
33
18
  useWindowScrollerList({
34
19
  listInstance: listRef,
35
20
  outerListRef
36
21
  });
37
- return /*#__PURE__*/jsx(ListComponent, _objectSpread(_objectSpread({}, otherProps), {}, {
22
+ return /* @__PURE__ */ React2.createElement(ListComponent, {
23
+ ...otherProps,
38
24
  ref: mergeRefs(ref, listRef),
39
- className: cx(className, 'window-scroller-override'),
25
+ className: cx(className, "window-scroller-override"),
40
26
  height: window.innerHeight,
41
- innerRef: innerRef,
42
- itemCount: itemCount,
43
- itemData: itemData,
44
- itemKey: itemKey,
45
- itemSize: itemSize,
27
+ innerRef,
28
+ itemCount,
29
+ itemData,
30
+ itemKey,
31
+ itemSize,
46
32
  outerRef: mergeRefs(outerListRef, outerRef),
47
33
  overscanCount: 10,
48
34
  useIsScrolling: true
49
- }));
35
+ });
50
36
  });
51
-
52
- export { AutoHeightList };
37
+ export {
38
+ AutoHeightList
39
+ };
40
+ //# sourceMappingURL=AutoHeightList.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/virtualization/AutoHeightList.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { forwardRef, useRef } from 'react';\nimport { FixedSizeList as List } from 'react-window';\nimport { cx, useWindowScrollerList, mergeRefs } from '@elliemae/ds-utilities';\n\nexport const AutoHeightList = forwardRef(\n (\n {\n itemCount,\n className,\n innerRef,\n itemData,\n itemKey,\n itemSize,\n outerRef,\n component: ListComponent = List,\n ...otherProps\n },\n ref,\n ) => {\n const listRef = useRef();\n const outerListRef = useRef();\n\n useWindowScrollerList({\n listInstance: listRef,\n outerListRef,\n });\n\n return (\n <ListComponent\n {...otherProps}\n ref={mergeRefs(ref, listRef)}\n className={cx(className, 'window-scroller-override')}\n height={window.innerHeight}\n innerRef={innerRef}\n itemCount={itemCount}\n itemData={itemData}\n itemKey={itemKey}\n itemSize={itemSize}\n outerRef={mergeRefs(outerListRef, outerRef)}\n overscanCount={10}\n useIsScrolling\n />\n );\n },\n);\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AAEO,MAAM,iBAAiB,WAC5B,CACE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW,gBAAgB;AAAA,KACxB;AAAA,GAEL,QACG;AACH,QAAM,UAAU;AAChB,QAAM,eAAe;AAErB,wBAAsB;AAAA,IACpB,cAAc;AAAA,IACd;AAAA;AAGF,SACE,qCAAC,eAAD;AAAA,OACM;AAAA,IACJ,KAAK,UAAU,KAAK;AAAA,IACpB,WAAW,GAAG,WAAW;AAAA,IACzB,QAAQ,OAAO;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU,UAAU,cAAc;AAAA,IAClC,eAAe;AAAA,IACf,gBAAc;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,38 +1,14 @@
1
- import 'core-js/modules/esnext.async-iterator.filter.js';
2
- import 'core-js/modules/esnext.iterator.constructor.js';
3
- import 'core-js/modules/esnext.iterator.filter.js';
4
- import 'core-js/modules/esnext.async-iterator.for-each.js';
5
- import 'core-js/modules/esnext.iterator.for-each.js';
6
- import _jsx from '@babel/runtime/helpers/esm/jsx';
7
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
- import { forwardRef } from 'react';
10
- import AutoSizer from 'react-virtualized-auto-sizer';
11
- import { jsx } from 'react/jsx-runtime';
12
-
13
- const _excluded = ["component"];
14
-
15
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
-
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
- const FluidHeightList = /*#__PURE__*/forwardRef((_ref, ref) => {
19
- let {
20
- component: Component
21
- } = _ref,
22
- props = _objectWithoutProperties(_ref, _excluded);
23
-
24
- return /*#__PURE__*/_jsx(AutoSizer, {
25
- disableWidth: true
26
- }, void 0, _ref2 => {
27
- let {
28
- height: fluidHeight
29
- } = _ref2;
30
- return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
31
- ref: ref,
32
- height: fluidHeight - 32 // taking in count the margins of the list
33
-
34
- }));
35
- });
36
- });
37
-
38
- export { FluidHeightList };
1
+ import * as React from "react";
2
+ import React2, { forwardRef } from "react";
3
+ import AutoSizer from "react-virtualized-auto-sizer";
4
+ const FluidHeightList = forwardRef(({ component: Component, ...props }, ref) => /* @__PURE__ */ React2.createElement(AutoSizer, {
5
+ disableWidth: true
6
+ }, ({ height: fluidHeight }) => /* @__PURE__ */ React2.createElement(Component, {
7
+ ...props,
8
+ ref,
9
+ height: fluidHeight - 32
10
+ })));
11
+ export {
12
+ FluidHeightList
13
+ };
14
+ //# sourceMappingURL=FluidHeightList.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/virtualization/FluidHeightList.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { forwardRef } from 'react';\nimport AutoSizer from 'react-virtualized-auto-sizer';\n\nexport const FluidHeightList = forwardRef(\n ({ component: Component, ...props }, ref) => (\n <AutoSizer disableWidth>\n {({ height: fluidHeight }) => (\n <Component\n {...props}\n ref={ref}\n height={fluidHeight - 32} // taking in count the margins of the list\n />\n )}\n </AutoSizer>\n ),\n);\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AAEO,MAAM,kBAAkB,WAC7B,CAAC,EAAE,WAAW,cAAc,SAAS,QACnC,qCAAC,WAAD;AAAA,EAAW,cAAY;AAAA,GACpB,CAAC,EAAE,QAAQ,kBACV,qCAAC,WAAD;AAAA,KACM;AAAA,EACJ;AAAA,EACA,QAAQ,cAAc;AAAA;",
6
+ "names": []
7
+ }
@@ -1,18 +1,21 @@
1
- import { FluidHeightList } from './FluidHeightList.js';
2
- export { FluidHeightList } from './FluidHeightList.js';
3
- import { AutoHeightList } from './AutoHeightList.js';
4
- export { AutoHeightList } from './AutoHeightList.js';
5
-
6
- function getVirtualListComponent(_ref) {
7
- let {
8
- component: Component,
9
- fluid,
10
- height,
11
- autoHeight
12
- } = _ref;
13
- if (autoHeight) return AutoHeightList;
14
- if (fluid) return FluidHeightList;
1
+ import * as React from "react";
2
+ import { FluidHeightList } from "./FluidHeightList";
3
+ import { AutoHeightList } from "./AutoHeightList";
4
+ function getVirtualListComponent({
5
+ component: Component,
6
+ fluid,
7
+ height,
8
+ autoHeight
9
+ }) {
10
+ if (autoHeight)
11
+ return AutoHeightList;
12
+ if (fluid)
13
+ return FluidHeightList;
15
14
  return Component;
16
15
  }
17
-
18
- export { getVirtualListComponent };
16
+ export {
17
+ AutoHeightList,
18
+ FluidHeightList,
19
+ getVirtualListComponent
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/virtualization/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { FluidHeightList } from './FluidHeightList';\nimport { AutoHeightList } from './AutoHeightList';\n\nexport { FluidHeightList, AutoHeightList };\n\nexport function getVirtualListComponent({\n component: Component,\n fluid,\n height,\n autoHeight,\n}) {\n if (autoHeight) return AutoHeightList;\n if (fluid) return FluidHeightList;\n return Component;\n}\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AAIO,iCAAiC;AAAA,EACtC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,GACC;AACD,MAAI;AAAY,WAAO;AACvB,MAAI;AAAO,WAAO;AAClB,SAAO;AAAA;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-shared",
3
- "version": "2.2.0-next.3",
3
+ "version": "2.3.0-alpha.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Shared components and utilities",
6
6
  "module": "./esm/index.js",
@@ -213,8 +213,8 @@
213
213
  "generateSubmodules": true
214
214
  },
215
215
  "dependencies": {
216
- "@elliemae/ds-popper": "2.2.0-next.3",
217
- "@elliemae/ds-utilities": "2.2.0-next.3",
216
+ "@elliemae/ds-popper": "2.3.0-alpha.1",
217
+ "@elliemae/ds-utilities": "2.3.0-alpha.1",
218
218
  "hoist-non-react-statics": "~3.3.2",
219
219
  "hotkeys-js": "~3.8.2",
220
220
  "prop-types": "~15.7.2",
@@ -9,4 +9,5 @@ declare const BaseAnimation: ({ keys, items, duration, enter, from, leave, onRes
9
9
  onRest?: (() => null) | undefined;
10
10
  children: any;
11
11
  }) => JSX.Element;
12
+ export { BaseAnimation };
12
13
  export default BaseAnimation;
@@ -8,4 +8,5 @@ declare const Grow: ({ keys, duration, items, from, to, children, onRest, }: {
8
8
  children: any;
9
9
  onRest?: (() => null) | undefined;
10
10
  }) => JSX.Element;
11
+ export { Grow };
11
12
  export default Grow;
@@ -8,4 +8,5 @@ declare const GrowRight: ({ keys, items, duration, from, to, children, onRest, }
8
8
  children: any;
9
9
  onRest?: (() => null) | undefined;
10
10
  }) => JSX.Element;
11
+ export { GrowRight };
11
12
  export default GrowRight;
@@ -17,4 +17,5 @@ declare namespace CheckableGroup {
17
17
  onCheck: any;
18
18
  };
19
19
  }
20
+ export { CheckableGroup };
20
21
  export default CheckableGroup;
@@ -1,6 +1,7 @@
1
- export default function DeferRenderAfterComputation({ children, resolve, fallback, timeout, }: {
1
+ export declare const DeferRenderAfterComputation: ({ children, resolve, fallback, timeout, }: {
2
2
  children: any;
3
3
  resolve: any;
4
4
  fallback: any;
5
5
  timeout?: number | undefined;
6
- }): any;
6
+ }) => any;
7
+ export default DeferRenderAfterComputation;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
- export declare const FocusGridContext: React.Context<unknown>;
3
- export default function FocusGridProvider({ shouldWrapRows, shouldWrapCells, shouldRefocus, children, keyBindings, hotKeys, }: {
2
+ declare const FocusGridContext: React.Context<unknown>;
3
+ declare const FocusGridProvider: ({ shouldWrapRows, shouldWrapCells, shouldRefocus, children, keyBindings, hotKeys, }: {
4
4
  shouldWrapRows?: boolean | undefined;
5
5
  shouldWrapCells?: boolean | undefined;
6
6
  shouldRefocus?: boolean | undefined;
7
7
  children: any;
8
8
  keyBindings: any;
9
9
  hotKeys: any;
10
- }): JSX.Element;
10
+ }) => JSX.Element;
11
+ export { FocusGridProvider, FocusGridProvider as FocusGrid, FocusGridContext };
12
+ export default FocusGridProvider;
@@ -1,4 +1,4 @@
1
- export default class FocusGroup {
1
+ declare class FocusGroup {
2
2
  items: never[];
3
3
  constructor(options?: {});
4
4
  getHotKeysParams(): {
@@ -34,3 +34,5 @@ export default class FocusGroup {
34
34
  getFirstItem(): false;
35
35
  getLastItem(): false;
36
36
  }
37
+ export { FocusGroup };
38
+ export default FocusGroup;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const _default: React.Context<unknown>;
3
- export default _default;
2
+ declare const FocusGroupContext: React.Context<unknown>;
3
+ export { FocusGroupContext };
4
+ export default FocusGroupContext;
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- export default class FocusGroupProvider extends Component {
2
+ declare class FocusGroupProvider extends Component {
3
3
  activated: boolean;
4
4
  static defaultProps: {
5
5
  exitWhenNoPrevious: boolean;
@@ -22,3 +22,5 @@ export default class FocusGroupProvider extends Component {
22
22
  focusItemByNode(node: any): void;
23
23
  render(): JSX.Element;
24
24
  }
25
+ export { FocusGroupProvider, FocusGroupProvider as FocusGroupManager };
26
+ export default FocusGroupProvider;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- export default function FocusGroupHoc(WrappedComponent: any, options?: {}): ({ onExitFocusGroup, onFocusPrevGroup, focusKeyBindings, ...props }: {
2
+ declare function FocusGroupHoc(WrappedComponent: any, options?: {}): ({ onExitFocusGroup, onFocusPrevGroup, focusKeyBindings, ...props }: {
3
3
  [x: string]: any;
4
4
  onExitFocusGroup: any;
5
5
  onFocusPrevGroup: any;
6
6
  focusKeyBindings: any;
7
7
  }) => JSX.Element;
8
+ export { FocusGroupHoc };
9
+ export default FocusGroupHoc;
@@ -1,6 +1,6 @@
1
- export { default as FocusGroup } from './FocusGroup';
2
- export { default as FocusGroupContext } from './FocusGroupContext';
3
- export { default as FocusGroupManager } from './FocusGroupManager';
4
- export { default as useFocusGroupItem, useFocusGroupWithState, } from './useFocusGroupItem';
5
- export { default as focusGroupManagerHoc } from './focusGroupManagerHoc';
6
- export { default as FocusGrid, FocusGridContext } from './FocusGrid';
1
+ export { FocusGroup } from './FocusGroup';
2
+ export { FocusGroupContext } from './FocusGroupContext';
3
+ export { FocusGroupManager } from './FocusGroupManager';
4
+ export { useFocusGroupItem, useFocusGroupWithState } from './useFocusGroupItem';
5
+ export { FocusGroupHoc as focusGroupManagerHoc } from './focusGroupManagerHoc';
6
+ export { FocusGridProvider as FocusGrid, FocusGridContext } from './FocusGrid';
@@ -1,2 +1,4 @@
1
- export default function useFocusGroupItem(ref: {} | undefined, props: any): any;
1
+ declare function useFocusGroupItem(ref: {} | undefined, props: any): any;
2
2
  export declare const useFocusGroupWithState: (ref: {} | undefined, props: any) => any;
3
+ export { useFocusGroupItem };
4
+ export default useFocusGroupItem;
@@ -1,4 +1,4 @@
1
- export default function getNextCellPosition({ grid, currentRow, currentCell, directionY, directionX, shouldWrapCells, shouldWrapRows, }: {
1
+ declare function getNextCellPosition({ grid, currentRow, currentCell, directionY, directionX, shouldWrapCells, shouldWrapRows, }: {
2
2
  grid: any;
3
3
  currentRow?: number | undefined;
4
4
  currentCell?: number | undefined;
@@ -10,3 +10,5 @@ export default function getNextCellPosition({ grid, currentRow, currentCell, dir
10
10
  cellIndex: any;
11
11
  rowIndex: any;
12
12
  };
13
+ export { getNextCellPosition };
14
+ export default getNextCellPosition;
@@ -11,4 +11,5 @@ declare class Group extends Component {
11
11
  handleChange(e: any, ...rest: any[]): void;
12
12
  render(): JSX.Element;
13
13
  }
14
+ export { Group };
14
15
  export default Group;
@@ -2,4 +2,5 @@
2
2
  declare const GroupItem: ({ render }: {
3
3
  render: any;
4
4
  }) => JSX.Element;
5
+ export { GroupItem };
5
6
  export default GroupItem;
@@ -1,3 +1,3 @@
1
- export { default as Group } from './Group';
2
- export * from './GroupContext';
3
- export { default as GroupItem } from './GroupItem';
1
+ export { Group } from './Group';
2
+ export { GroupContext } from './GroupContext';
3
+ export { GroupItem } from './GroupItem';
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- export declare const ScrollSyncContext: React.Context<unknown>;
3
- export default class ScrollSync extends Component {
2
+ declare const ScrollSyncContext: React.Context<unknown>;
3
+ declare class ScrollSync extends Component {
4
4
  panes: {};
5
5
  static defaultProps: {
6
6
  proportional: boolean;
@@ -19,3 +19,5 @@ export default class ScrollSync extends Component {
19
19
  syncScrollPosition(scrolledPane: any, pane: any): void;
20
20
  render(): JSX.Element;
21
21
  }
22
+ export { ScrollSync, ScrollSyncContext };
23
+ export default ScrollSync;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
3
- export default _default;
2
+ export declare const ScrollSyncPaneHOC: (props: any) => JSX.Element;
3
+ export default ScrollSyncPaneHOC;
@@ -1,2 +1,2 @@
1
- export { default as ScrollSync } from './ScrollSync';
2
- export { default as ScrollSyncPane } from './ScrollSyncPane';
1
+ export { ScrollSync } from './ScrollSync';
2
+ export { ScrollSyncPaneHOC as ScrollSyncPane } from './ScrollSyncPane';
@@ -1,6 +1,7 @@
1
- declare function useScrollSync(props: any): {};
2
- declare namespace useScrollSync {
3
- var propTypes: {};
4
- var defaultProps: {};
5
- }
1
+ declare const useScrollSync: {
2
+ (props: any): {};
3
+ propTypes: {};
4
+ defaultProps: {};
5
+ };
6
+ export { useScrollSync };
6
7
  export default useScrollSync;
@@ -1 +1,2 @@
1
- export default function createInstancePlugin(name: any, hooks: any): (decorators: any) => any;
1
+ export declare const createInstancePlugin: (name: any, hooks: any) => (decorators: any) => any;
2
+ export default createInstancePlugin;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export default function createDataInstanceRef({ uuid: uuidProp, data, renderers, plugins, customDecorators, ...props }: {
2
+ declare function createDataInstanceRef({ uuid: uuidProp, data, renderers, plugins, customDecorators, ...props }: {
3
3
  [x: string]: any;
4
4
  uuid: any;
5
5
  data: any;
@@ -10,3 +10,5 @@ export default function createDataInstanceRef({ uuid: uuidProp, data, renderers,
10
10
  instance: import("react").MutableRefObject<undefined>;
11
11
  decorators: any;
12
12
  };
13
+ export { createDataInstanceRef };
14
+ export default createDataInstanceRef;
@@ -1,4 +1,5 @@
1
- declare const _default: {
1
+ declare const dimsumConfig: {
2
2
  classNamePrefix: string;
3
3
  };
4
- export default _default;
4
+ export { dimsumConfig };
5
+ export default dimsumConfig;
package/types/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './ScrollSync';
2
- export * from './GroupContext';
1
+ export { ScrollSync, ScrollSyncPane } from './ScrollSync';
2
+ export { Group, GroupContext, GroupItem } from './GroupContext';
@@ -1,10 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const ToolbarContext: React.Context<unknown>;
3
- declare function ToolbarProvider({ delay, children, onHide, onShow }: {
4
- delay?: number | undefined;
5
- children: any;
6
- onHide?: (() => null) | undefined;
7
- onShow?: (() => null) | undefined;
8
- }): JSX.Element;
9
- declare const _default: React.MemoExoticComponent<typeof ToolbarProvider>;
10
- export default _default;
3
+ declare const ToolbarProvider: React.NamedExoticComponent<object>;
4
+ export { ToolbarProvider };
5
+ export default ToolbarProvider;
@@ -1,5 +1,7 @@
1
- export default class VolatileRowsListener {
1
+ declare class VolatileRowsListener {
2
2
  observers: never[];
3
3
  observe(listener: any): void;
4
4
  notify(nextRows: any): void;
5
5
  }
6
+ export { VolatileRowsListener };
7
+ export default VolatileRowsListener;
@@ -1 +1 @@
1
- export { default } from './useDataGrid';
1
+ export { default, default as useDataGrid } from './useDataGrid';
@@ -2,4 +2,5 @@
2
2
  export declare const appendHeaderFormatter: import("lodash").CurriedFunction2<any, any, any>;
3
3
  export declare const appendCellFormatter: import("lodash").CurriedFunction2<any, any, any>;
4
4
  export declare const mergeClassNameToColumnHeader: import("lodash").CurriedFunction2<any, any, any>;
5
- export default function initColumnDefinition(options?: {}): (column: any) => any;
5
+ export declare const initColumnDefinition: (options?: {}) => (column: any) => any;
6
+ export default initColumnDefinition;
@@ -1,8 +1,9 @@
1
- export default function useDataGrid({ uuid: uuidProp, plugins: pluginsFromProps, rows, columns, renderers, ...props }: {
1
+ export declare const useDataGrid: ({ uuid: uuidProp, plugins: pluginsFromProps, rows, columns, renderers, ...props }: {
2
2
  [x: string]: any;
3
3
  uuid: any;
4
4
  plugins: any;
5
5
  rows: any;
6
6
  columns: any;
7
7
  renderers?: {} | undefined;
8
- }): any;
8
+ }) => any;
9
+ export default useDataGrid;
@@ -1 +1 @@
1
- export { default } from './useDataList';
1
+ export { default, default as useDataList } from './useDataList';
@@ -1,6 +1,6 @@
1
1
  export declare const getItemLabel: (record: any, nameKey?: string) => any;
2
2
  export declare const getItemChildren: (record: any, childrenKey?: string) => any;
3
- export default function useDataList({ data, plugins, renderers, itemRenderer, customDecorators, ...props }: {
3
+ export declare const useDataList: ({ data, plugins, renderers, itemRenderer, customDecorators, ...props }: {
4
4
  [x: string]: any;
5
5
  data?: never[] | undefined;
6
6
  plugins?: never[] | undefined;
@@ -10,4 +10,5 @@ export default function useDataList({ data, plugins, renderers, itemRenderer, cu
10
10
  } | undefined;
11
11
  itemRenderer?: never[] | undefined;
12
12
  customDecorators: any;
13
- }): undefined;
13
+ }) => undefined;
14
+ export default useDataList;