@adaptabletools/adaptable-plugin-ipushpull 10.0.3 → 10.0.4-canary.3
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-ipushpull",
|
|
3
|
-
"version": "10.0.3",
|
|
3
|
+
"version": "10.0.4-canary.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": {
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"rebass": "^3.2.2",
|
|
18
18
|
"redux": "4.0.5",
|
|
19
19
|
"styled-components": "^4.4.1",
|
|
20
|
-
"@adaptabletools/adaptable": "10.0.3"
|
|
20
|
+
"@adaptabletools/adaptable": "10.0.4-canary.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -69,7 +69,7 @@ class PushPullModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
69
69
|
}
|
|
70
70
|
setModuleEntitlement() {
|
|
71
71
|
// TODO
|
|
72
|
-
if (!this.api.pluginsApi.
|
|
72
|
+
if (!this.api.pluginsApi.getipushpullPluginApi().isIPushPullAvailable()) {
|
|
73
73
|
this.AccessLevel = 'Hidden';
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
@@ -79,7 +79,7 @@ class PushPullModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
getIPPApi() {
|
|
82
|
-
return this.api.pluginsApi.
|
|
82
|
+
return this.api.pluginsApi.getipushpullPluginApi();
|
|
83
83
|
}
|
|
84
84
|
getCurrentReport() {
|
|
85
85
|
const api = this.getIPPApi();
|
|
@@ -55,7 +55,7 @@ class PushPullService {
|
|
|
55
55
|
return this.ppInstance.__status;
|
|
56
56
|
}
|
|
57
57
|
getIPPApi() {
|
|
58
|
-
return this.adaptable.api.pluginsApi.
|
|
58
|
+
return this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
59
59
|
}
|
|
60
60
|
// Logs in to ipushpull
|
|
61
61
|
login(login, password) {
|
|
@@ -32,7 +32,7 @@ const IPushPullViewPanelComponent = (props) => {
|
|
|
32
32
|
}
|
|
33
33
|
}, []);
|
|
34
34
|
const getIPPApi = React.useCallback(() => {
|
|
35
|
-
return props.api.pluginsApi.
|
|
35
|
+
return props.api.pluginsApi.getipushpullPluginApi();
|
|
36
36
|
}, []);
|
|
37
37
|
React.useEffect(() => {
|
|
38
38
|
props.api.eventApi.on('LiveDataChanged', onLiveDataChanged);
|
package/src/index.js
CHANGED
|
@@ -106,7 +106,7 @@ class IPushPullPlugin extends types_1.AdaptablePlugin {
|
|
|
106
106
|
const isFolderValid = StringExtensions_1.default.IsNotNullOrEmpty(currentFolder);
|
|
107
107
|
const availablePages = isFolderValid
|
|
108
108
|
? adaptable.api.pluginsApi
|
|
109
|
-
.
|
|
109
|
+
.getipushpullPluginApi()
|
|
110
110
|
.getPagesForIPushPullDomain(currentFolder)
|
|
111
111
|
: [];
|
|
112
112
|
middlewareAPI.dispatch(IPushPullRedux_1.IPushPullSetCurrentAvailablePages(availablePages));
|
|
@@ -119,7 +119,7 @@ class IPushPullPlugin extends types_1.AdaptablePlugin {
|
|
|
119
119
|
const isFolderValid = StringExtensions_1.default.IsNotNullOrEmpty(currentFolder);
|
|
120
120
|
if (isFolderValid) {
|
|
121
121
|
const availablePages = adaptable.api.pluginsApi
|
|
122
|
-
.
|
|
122
|
+
.getipushpullPluginApi()
|
|
123
123
|
.getPagesForIPushPullDomain(currentFolder);
|
|
124
124
|
middlewareAPI.dispatch(IPushPullRedux_1.IPushPullSetCurrentAvailablePages(availablePages));
|
|
125
125
|
}
|