@elliemae/ds-shared 2.0.0-alpha.9 → 2.0.0-next.12

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 (67) hide show
  1. package/cjs/Animations/BaseAnimation.js +24 -20
  2. package/cjs/Animations/Grow.js +30 -26
  3. package/cjs/Animations/GrowRight.js +30 -26
  4. package/cjs/Animations/GrowVertical.js +1 -0
  5. package/cjs/CheckableGroup.js +32 -23
  6. package/cjs/DeferRenderAfterComputation.js +8 -6
  7. package/cjs/FocusGroup/FocusGrid.js +38 -31
  8. package/cjs/FocusGroup/FocusGroup.js +29 -9
  9. package/cjs/FocusGroup/FocusGroupManager.js +3 -3
  10. package/cjs/FocusGroup/focusGroupManagerHoc.js +7 -1
  11. package/cjs/FocusGroup/useFocusGroupItem.js +8 -2
  12. package/cjs/FocusGroup/utils/getNextCellPosition.js +10 -9
  13. package/cjs/GroupContext/Group.js +11 -4
  14. package/cjs/GroupContext/GroupItem.js +6 -3
  15. package/cjs/ScrollSync/ScrollSync.js +5 -0
  16. package/cjs/ScrollSync/ScrollSyncPane.js +11 -2
  17. package/cjs/ScrollSync/ScrollSyncProvider.js +12 -6
  18. package/cjs/createDataInstance/createInstancePlugin.js +6 -0
  19. package/cjs/createDataInstance/createInstanceRef.js +8 -0
  20. package/cjs/createDataInstance/utils.js +57 -25
  21. package/cjs/defer-render-hoc/index.js +8 -2
  22. package/cjs/toolbar/ToolbarProvider.js +31 -21
  23. package/cjs/useDataGrid/VolatileRowsListener.js +5 -2
  24. package/cjs/useDataGrid/initColumnDefinition.js +26 -18
  25. package/cjs/useDataGrid/useDataGrid.js +42 -34
  26. package/cjs/useDataList/recordIterator.js +4 -1
  27. package/cjs/useDataList/useDataList.js +18 -4
  28. package/cjs/utils.js +8 -1
  29. package/cjs/virtualization/AutoHeightList.js +10 -8
  30. package/cjs/virtualization/FluidHeightList.js +15 -7
  31. package/cjs/virtualization/index.js +7 -6
  32. package/esm/Animations/BaseAnimation.js +24 -20
  33. package/esm/Animations/Grow.js +30 -26
  34. package/esm/Animations/GrowRight.js +30 -26
  35. package/esm/Animations/GrowVertical.js +1 -0
  36. package/esm/CheckableGroup.js +29 -19
  37. package/esm/DeferRenderAfterComputation.js +8 -6
  38. package/esm/FocusGroup/FocusGrid.js +27 -19
  39. package/esm/FocusGroup/FocusGroup.js +26 -6
  40. package/esm/FocusGroup/FocusGroupManager.js +1 -1
  41. package/esm/FocusGroup/focusGroupManagerHoc.js +7 -1
  42. package/esm/FocusGroup/useFocusGroupItem.js +8 -2
  43. package/esm/FocusGroup/utils/getNextCellPosition.js +10 -9
  44. package/esm/GroupContext/Group.js +11 -4
  45. package/esm/GroupContext/GroupItem.js +6 -3
  46. package/esm/ScrollSync/ScrollSync.js +5 -0
  47. package/esm/ScrollSync/ScrollSyncPane.js +11 -2
  48. package/esm/ScrollSync/ScrollSyncProvider.js +12 -6
  49. package/esm/createDataInstance/createInstancePlugin.js +6 -0
  50. package/esm/createDataInstance/createInstanceRef.js +8 -0
  51. package/esm/createDataInstance/utils.js +57 -25
  52. package/esm/defer-render-hoc/index.js +8 -2
  53. package/esm/toolbar/ToolbarProvider.js +30 -20
  54. package/esm/useDataGrid/VolatileRowsListener.js +4 -1
  55. package/esm/useDataGrid/initColumnDefinition.js +12 -4
  56. package/esm/useDataGrid/useDataGrid.js +26 -16
  57. package/esm/useDataList/recordIterator.js +4 -1
  58. package/esm/useDataList/useDataList.js +17 -3
  59. package/esm/utils.js +8 -1
  60. package/esm/virtualization/AutoHeightList.js +6 -3
  61. package/esm/virtualization/FluidHeightList.js +14 -6
  62. package/esm/virtualization/index.js +7 -6
  63. package/package.json +8 -4
  64. package/types/toolbar/ToolbarProvider.d.ts +1 -1
  65. package/types/useDataGrid/initColumnDefinition.d.ts +4 -3
  66. package/cjs/package.json +0 -7
  67. package/esm/package.json +0 -7
@@ -3,12 +3,13 @@ export { FluidHeightList } from './FluidHeightList.js';
3
3
  import { AutoHeightList } from './AutoHeightList.js';
4
4
  export { AutoHeightList } from './AutoHeightList.js';
5
5
 
6
- function getVirtualListComponent({
7
- component: Component,
8
- fluid,
9
- height,
10
- autoHeight
11
- }) {
6
+ function getVirtualListComponent(_ref) {
7
+ let {
8
+ component: Component,
9
+ fluid,
10
+ height,
11
+ autoHeight
12
+ } = _ref;
12
13
  if (autoHeight) return AutoHeightList;
13
14
  if (fluid) return FluidHeightList;
14
15
  return Component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-shared",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.0.0-next.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Shared components and utilities",
6
6
  "module": "./esm/index.js",
@@ -213,12 +213,16 @@
213
213
  "generateSubmodules": true
214
214
  },
215
215
  "dependencies": {
216
- "@elliemae/ds-basic": "2.0.0-alpha.9",
217
- "@elliemae/ds-utilities": "2.0.0-alpha.9",
216
+ "@elliemae/ds-basic": "2.0.0-next.12",
217
+ "@elliemae/ds-utilities": "2.0.0-next.12",
218
218
  "hoist-non-react-statics": "~3.3.2",
219
+ "hotkeys-js": "~3.8.2",
220
+ "prop-types": "~15.7.2",
219
221
  "raf": "~3.4.1",
220
222
  "react-spring": "~8.0.27",
221
- "react-virtualized-auto-sizer": "~1.0.6",
223
+ "react-virtualized-auto-sizer": "~1.0.4",
224
+ "react-window": "~1.8.6",
225
+ "table-resolver": "~4.1.1",
222
226
  "uuid": "~8.3.2"
223
227
  },
224
228
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const ToolbarContext: React.Context<unknown>;
3
- declare function ToolbarProvider({ delay, children, onHide, onShow, }: {
3
+ declare function ToolbarProvider({ delay, children, onHide, onShow }: {
4
4
  delay?: number | undefined;
5
5
  children: any;
6
6
  onHide?: (() => null) | undefined;
@@ -1,4 +1,5 @@
1
- export declare const appendHeaderFormatter: any;
2
- export declare const appendCellFormatter: any;
3
- export declare const mergeClassNameToColumnHeader: any;
1
+ /// <reference types="lodash" />
2
+ export declare const appendHeaderFormatter: import("lodash").CurriedFunction2<any, any, any>;
3
+ export declare const appendCellFormatter: import("lodash").CurriedFunction2<any, any, any>;
4
+ export declare const mergeClassNameToColumnHeader: import("lodash").CurriedFunction2<any, any, any>;
4
5
  export default function initColumnDefinition(options?: {}): (column: any) => any;
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }