@adaptabletools/adaptable-plugin-interopio 18.0.0-canary.3 → 18.0.0-canary.5
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-plugin-interopio",
|
|
3
|
-
"version": "18.0.0-canary.
|
|
3
|
+
"version": "18.0.0-canary.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
"email": "jonny.wolfson@adaptabletools.com"
|
|
9
9
|
},
|
|
10
10
|
"typings": "src/index.d.ts",
|
|
11
|
-
"
|
|
11
|
+
"peerDependencies": {
|
|
12
12
|
"@interopio/browser": "^3.1.2",
|
|
13
|
-
"
|
|
14
|
-
|
|
13
|
+
"@interopio/desktop": "^6.1.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@adaptabletools/adaptable": "18.0.0-canary.5"
|
|
15
17
|
},
|
|
16
18
|
"type": "module",
|
|
17
19
|
"module": "src/index.js"
|
|
@@ -2,7 +2,7 @@ import { ApiBase } from '@adaptabletools/adaptable/src/Api/Implementation/ApiBas
|
|
|
2
2
|
import { InteropioPluginApi } from '@adaptabletools/adaptable/src/Api/InteropioPluginApi';
|
|
3
3
|
import { IAdaptable } from '@adaptabletools/adaptable/src/AdaptableInterfaces/IAdaptable';
|
|
4
4
|
import { InteropioPluginOptions } from '../../../adaptable/src/AdaptableOptions/InteropioPluginOptions';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class InteropioPluginApiImpl extends ApiBase implements InteropioPluginApi {
|
|
6
6
|
private options;
|
|
7
7
|
constructor(adaptable: IAdaptable, options: InteropioPluginOptions);
|
|
8
8
|
getPluginOptions(): InteropioPluginOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from '@adaptabletools/adaptable/src/Api/Implementation/ApiBase';
|
|
2
|
-
export class
|
|
2
|
+
export class InteropioPluginApiImpl extends ApiBase {
|
|
3
3
|
constructor(adaptable, options) {
|
|
4
4
|
super(adaptable);
|
|
5
5
|
this.options = options;
|
package/src/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
|
|
2
2
|
import { IAdaptable } from '@adaptabletools/adaptable/src/AdaptableInterfaces/IAdaptable';
|
|
3
|
-
import {
|
|
3
|
+
import { InteropioPluginApiImpl } from './InteropioPluginApiImpl';
|
|
4
4
|
import { InteropioPluginOptions } from '../../../adaptable/src/AdaptableOptions/InteropioPluginOptions';
|
|
5
5
|
import * as Interop from '@interopio/browser';
|
|
6
|
+
import * as InteropDesktop from '@interopio/desktop';
|
|
7
|
+
type InteropAPI = Interop.IOConnectBrowser.API | InteropDesktop.IOConnectDesktop.API;
|
|
6
8
|
declare class InteropioPlugin extends AdaptablePlugin {
|
|
7
9
|
options: InteropioPluginOptions;
|
|
8
10
|
pluginId: string;
|
|
9
|
-
adaptableInteropApi:
|
|
11
|
+
adaptableInteropApi: InteropioPluginApiImpl;
|
|
10
12
|
private adaptable?;
|
|
11
13
|
private interopApi;
|
|
12
|
-
constructor(options: InteropioPluginOptions, interopApi:
|
|
14
|
+
constructor(options: InteropioPluginOptions, interopApi: InteropAPI);
|
|
13
15
|
onAdaptableReady(adaptable: IAdaptable): void;
|
|
14
16
|
afterInitApi(adaptable: IAdaptable): void;
|
|
15
17
|
/**
|
|
@@ -24,5 +26,5 @@ declare class InteropioPlugin extends AdaptablePlugin {
|
|
|
24
26
|
*/
|
|
25
27
|
private integrateAdaptableAlerts;
|
|
26
28
|
}
|
|
27
|
-
declare const _default: (options: InteropioPluginOptions, interopioApi:
|
|
29
|
+
declare const _default: (options: InteropioPluginOptions, interopioApi: InteropAPI) => InteropioPlugin;
|
|
28
30
|
export default _default;
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptablePlugin, } from '@adaptabletools/adaptable/types';
|
|
2
|
-
import {
|
|
2
|
+
import { InteropioPluginApiImpl } from './InteropioPluginApiImpl';
|
|
3
3
|
// if (version !== coreVersion) {
|
|
4
4
|
// console.warn(`
|
|
5
5
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
@@ -23,7 +23,7 @@ class InteropioPlugin extends AdaptablePlugin {
|
|
|
23
23
|
this.integrateAdaptableAlerts();
|
|
24
24
|
}
|
|
25
25
|
afterInitApi(adaptable) {
|
|
26
|
-
this.adaptableInteropApi = new
|
|
26
|
+
this.adaptableInteropApi = new InteropioPluginApiImpl(adaptable, this.options);
|
|
27
27
|
this.registerProperty('api', () => this.adaptableInteropApi);
|
|
28
28
|
}
|
|
29
29
|
/**
|