@adaptabletools/adaptable-plugin-interopio 22.0.0-canary.1 → 22.0.0-canary.10
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 +1 -1
- package/src/InteropioPluginApiImpl.js +1 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +6 -7
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptablePlugin } from '@adaptabletools/adaptable
|
|
1
|
+
import { AdaptablePlugin } from '@adaptabletools/adaptable';
|
|
2
2
|
import { IAdaptable } from '@adaptabletools/adaptable/src/AdaptableInterfaces/IAdaptable';
|
|
3
3
|
import { InteropioPluginApiImpl } from './InteropioPluginApiImpl';
|
|
4
4
|
import { InteropioPluginOptions } from '../../../adaptable/src/AdaptableOptions/InteropioPluginOptions';
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptablePlugin, } from '@adaptabletools/adaptable
|
|
1
|
+
import { AdaptablePlugin, } from '@adaptabletools/adaptable';
|
|
2
2
|
import packageJson from '../package.json';
|
|
3
3
|
import adaptableCorePackageJson from '@adaptabletools/adaptable/package.json';
|
|
4
4
|
import { InteropioPluginApiImpl } from './InteropioPluginApiImpl';
|
|
@@ -6,20 +6,19 @@ const { version, name } = packageJson;
|
|
|
6
6
|
const { version: coreVersion } = adaptableCorePackageJson;
|
|
7
7
|
const suffix = name.endsWith('-cjs') ? '-cjs' : '';
|
|
8
8
|
if (version !== coreVersion) {
|
|
9
|
-
console.warn(`
|
|
10
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
11
|
-
!!!!!!! "@adaptabletools/adaptable-plugin-interopio${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
|
|
12
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
13
|
-
`);
|
|
9
|
+
console.warn(`Version mismatch: "@adaptabletools/adaptable-plugin-interopio${suffix}" (v${version}) and "@adaptabletools/adaptable${suffix}" (v${coreVersion}) have different versions. They should be the exact same version.`);
|
|
14
10
|
}
|
|
15
11
|
const defaultOptions = {
|
|
16
12
|
showAdaptableAlertsAsNotifications: true,
|
|
17
13
|
applicationName: 'Adaptable',
|
|
18
14
|
};
|
|
19
15
|
class InteropioPlugin extends AdaptablePlugin {
|
|
16
|
+
pluginId = 'interop';
|
|
17
|
+
adaptableInteropApi;
|
|
18
|
+
adaptable;
|
|
19
|
+
interopApi;
|
|
20
20
|
constructor(options, interopApi) {
|
|
21
21
|
super(options);
|
|
22
|
-
this.pluginId = 'interop';
|
|
23
22
|
this.options = { ...defaultOptions, ...options };
|
|
24
23
|
this.interopApi = interopApi;
|
|
25
24
|
}
|