@adaptabletools/adaptable-plugin-nocode-aggrid-cjs 17.0.0-canary.3 → 18.0.0-canary.0
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 +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +11 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-nocode-aggrid-cjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0",
|
|
14
14
|
"xlsx": "^0.15.5",
|
|
15
|
-
"@adaptabletools/adaptable-cjs": "
|
|
15
|
+
"@adaptabletools/adaptable-cjs": "18.0.0-canary.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {}
|
|
18
18
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AdaptableOptions, AdaptablePlugin, AgGridConfig } from
|
|
2
|
+
import { AdaptableOptions, AdaptablePlugin, AgGridConfig } from "@adaptabletools/adaptable-cjs/types";
|
|
3
3
|
export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<unknown>;
|
|
4
4
|
export declare const readExcelFile: (file: File) => Promise<any>;
|
|
5
5
|
interface NoCodePluginOptions {
|
package/src/index.js
CHANGED
|
@@ -4,16 +4,17 @@ exports.readExcelFile = exports.readJSONFile = void 0;
|
|
|
4
4
|
const xlsx_1 = require("xlsx");
|
|
5
5
|
const agGrid_1 = require("@adaptabletools/adaptable-cjs/agGrid");
|
|
6
6
|
const types_1 = require("@adaptabletools/adaptable-cjs/types");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
// TODO in the future, try to put back the version check
|
|
8
|
+
// import { version, name } from '../package.json';
|
|
9
|
+
// import { version as coreVersion } from '@adaptabletools/adaptable/package.json';
|
|
10
|
+
// const suffix = name.endsWith('-cjs') ? '-cjs' : '';
|
|
11
|
+
// if (version !== coreVersion) {
|
|
12
|
+
// console.warn(`
|
|
13
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
+
// !!!!!!! "@adaptabletools/adaptable-plugin-nocode${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
|
|
15
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
|
+
// `);
|
|
17
|
+
// }
|
|
17
18
|
const readJSONFile = async (file, toJSON) => {
|
|
18
19
|
const reader = new FileReader();
|
|
19
20
|
return new Promise((resolve, reject) => {
|