@adaptabletools/adaptable-react-aggrid 10.0.4-canary.3 → 11.0.0-canary.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-react-aggrid",
3
- "version": "10.0.4-canary.3",
3
+ "version": "11.0.0-canary.1",
4
4
  "description": "React version of the powerful data-agnostic HTML5 datagrid add-on that sits on top of the agGrid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
5
  "keywords": [],
6
6
  "main": "src/index.js",
@@ -20,11 +20,12 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@adaptabletools/adaptable": "10.0.4-canary.3"
23
+ "tslib": "^2.0.0",
24
+ "@adaptabletools/adaptable": "11.0.0-canary.1"
24
25
  },
25
26
  "peerDependencies": {
26
- "@ag-grid-community/all-modules": ">=26.0.0",
27
- "@ag-grid-community/react": ">=26.0.0",
27
+ "@ag-grid-community/all-modules": ">=26.2.0",
28
+ "@ag-grid-community/react": ">=26.2.0",
28
29
  "react": ">=16.8.0",
29
30
  "react-dom": ">=16.8.0"
30
31
  }
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { AdaptableApi } from '@adaptabletools/adaptable/types';
3
3
  import { AdaptableOptions } from '@adaptabletools/adaptable/types';
4
4
  import { GridOptions, Module } from '@ag-grid-community/all-modules';
5
- declare const AdaptableReact: ({ adaptableOptions, gridOptions, onAdaptableReady, modules, ...props }: {
5
+ export interface AdaptableReactProps extends React.HTMLProps<HTMLDivElement> {
6
6
  adaptableOptions: AdaptableOptions;
7
7
  gridOptions?: GridOptions;
8
8
  /**
@@ -13,5 +13,6 @@ declare const AdaptableReact: ({ adaptableOptions, gridOptions, onAdaptableReady
13
13
  adaptableApi: AdaptableApi;
14
14
  gridOptions: GridOptions;
15
15
  }) => void;
16
- } & React.HTMLProps<HTMLDivElement>) => JSX.Element;
16
+ }
17
+ declare const AdaptableReact: React.FunctionComponent<AdaptableReactProps>;
17
18
  export default AdaptableReact;
@@ -23,7 +23,7 @@ const AdaptableReact = (_a) => {
23
23
  const adaptableContainerId = `adaptable-${seedId}`;
24
24
  react_1.useLayoutEffect(() => {
25
25
  let adaptableApi;
26
- agGrid_1.default.initInternal(Object.assign(Object.assign({}, adaptableOptions), { containerOptions: Object.assign(Object.assign({}, adaptableOptions.containerOptions), { adaptableContainer: adaptableContainerId }), vendorGrid: gridOptions || adaptableOptions.vendorGrid }), { waitForAgGrid: true, modules }).then((api) => {
26
+ agGrid_1.default.initInternal(Object.assign(Object.assign({}, adaptableOptions), { containerOptions: Object.assign(Object.assign({}, adaptableOptions.containerOptions), { adaptableContainer: adaptableContainerId }), gridOptions: gridOptions || adaptableOptions.gridOptions }), { waitForAgGrid: true, modules }).then((api) => {
27
27
  adaptableApi = api;
28
28
  logger_1.LogAdaptableInfo('AdaptableReady');
29
29
  if (onAdaptableReady) {