@adaptabletools/adaptable-plugin-ipushpull 10.0.4-canary.1 → 10.0.4-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-ipushpull",
3
- "version": "10.0.4-canary.1",
3
+ "version": "10.0.4-canary.5",
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.4-canary.1"
20
+ "@adaptabletools/adaptable": "10.0.4-canary.5"
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.getPluginApi('ipushpull').isIPushPullAvailable()) {
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.getPluginApi('ipushpull');
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.getPluginApi('ipushpull');
58
+ return this.adaptable.api.pluginsApi.getipushpullPluginApi();
59
59
  }
60
60
  // Logs in to ipushpull
61
61
  login(login, password) {
@@ -12,7 +12,7 @@ const Input_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/c
12
12
  const SimpleButton_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/SimpleButton"));
13
13
  const FlexWithFooter_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/FlexWithFooter"));
14
14
  const PanelWithImage_1 = require("@adaptabletools/adaptable/src/View/Components/Panels/PanelWithImage");
15
- const PopupContext_1 = require("@adaptabletools/adaptable/src/View/Components/Popups/PopupContext");
15
+ const PopupContext_1 = require("@adaptabletools/adaptable/src/View/Components/Popups/AdaptablePopup/PopupContext");
16
16
  const ErrorBox_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/ErrorBox"));
17
17
  const HelpBlock_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/HelpBlock"));
18
18
  const rebass_1 = require("rebass");
@@ -13,7 +13,7 @@ const Input_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/c
13
13
  const SimpleButton_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/SimpleButton"));
14
14
  const FlexWithFooter_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/FlexWithFooter"));
15
15
  const PanelWithImage_1 = require("@adaptabletools/adaptable/src/View/Components/Panels/PanelWithImage");
16
- const PopupContext_1 = require("@adaptabletools/adaptable/src/View/Components/Popups/PopupContext");
16
+ const PopupContext_1 = require("@adaptabletools/adaptable/src/View/Components/Popups/AdaptablePopup/PopupContext");
17
17
  const ErrorBox_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/ErrorBox"));
18
18
  const HelpBlock_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/components/HelpBlock"));
19
19
  const rebass_1 = require("rebass");
@@ -32,7 +32,7 @@ const IPushPullViewPanelComponent = (props) => {
32
32
  }
33
33
  }, []);
34
34
  const getIPPApi = React.useCallback(() => {
35
- return props.api.pluginsApi.getPluginApi('ipushpull');
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
- .getIpushpullPluginApi()
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
- .getIpushpullPluginApi()
122
+ .getipushpullPluginApi()
123
123
  .getPagesForIPushPullDomain(currentFolder);
124
124
  middlewareAPI.dispatch(IPushPullRedux_1.IPushPullSetCurrentAvailablePages(availablePages));
125
125
  }