@adaptabletools/adaptable-plugin-ipushpull 10.0.4-canary.5 → 11.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 +7 -5
- package/src/Module/PushPullModule.js +1 -1
- package/src/index.js +3 -3
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-ipushpull",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-canary.5",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jonny Wolfson",
|
|
8
8
|
"email": "jonny.wolfson@adaptabletools.com"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
10
|
+
"main": "src/index.js",
|
|
11
|
+
"typings": "src/index.d.ts",
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"ipushpull-js": "^2.25.0",
|
|
13
|
-
"lodash
|
|
14
|
+
"lodash": "^4.17.15",
|
|
14
15
|
"prop-types": "^15.6.2",
|
|
15
16
|
"react": ">=16.8.0",
|
|
16
17
|
"react-redux": "7.2.4",
|
|
17
18
|
"rebass": "^3.2.2",
|
|
18
19
|
"redux": "4.0.5",
|
|
19
20
|
"styled-components": "^4.4.1",
|
|
20
|
-
"
|
|
21
|
+
"tslib": "^2.0.0",
|
|
22
|
+
"@adaptabletools/adaptable": "11.0.0-canary.5"
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -4,7 +4,7 @@ exports.PushPullModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants"));
|
|
7
|
-
const throttle_1 = tslib_1.__importDefault(require("lodash
|
|
7
|
+
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
8
8
|
const logger_1 = require("../logger");
|
|
9
9
|
const GeneralConstants_1 = require("@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants");
|
|
10
10
|
const EQUAL_DATA_ERR = 'equal data, so not sending';
|
package/src/index.js
CHANGED
|
@@ -77,21 +77,21 @@ class IPushPullPlugin extends types_1.AdaptablePlugin {
|
|
|
77
77
|
return next(action);
|
|
78
78
|
}
|
|
79
79
|
case PluginsRedux_1.IPUSHPULL_SEND_SNAPSHOT: {
|
|
80
|
-
let iPushPullModule = (adaptable.
|
|
80
|
+
let iPushPullModule = (adaptable.adaptableModules.get(ModuleConstants.IPushPullModuleId));
|
|
81
81
|
const actionTyped = action;
|
|
82
82
|
iPushPullModule.sendSnapshot(actionTyped.iPushPullReport);
|
|
83
83
|
middlewareAPI.dispatch(PopupRedux.PopupHideScreen());
|
|
84
84
|
return next(action);
|
|
85
85
|
}
|
|
86
86
|
case PluginsRedux_1.IPUSHPULL_START_LIVE_DATA: {
|
|
87
|
-
let iPushPullModule = (adaptable.
|
|
87
|
+
let iPushPullModule = (adaptable.adaptableModules.get(ModuleConstants.IPushPullModuleId));
|
|
88
88
|
const actionTyped = action;
|
|
89
89
|
iPushPullModule.startLiveData(actionTyped.iPushPullReport);
|
|
90
90
|
middlewareAPI.dispatch(PopupRedux.PopupHideScreen());
|
|
91
91
|
return next(action);
|
|
92
92
|
}
|
|
93
93
|
case PluginsRedux_1.IPUSHPULL_STOP_LIVE_DATA: {
|
|
94
|
-
let iPushPullModule = (adaptable.
|
|
94
|
+
let iPushPullModule = (adaptable.adaptableModules.get(ModuleConstants.IPushPullModuleId));
|
|
95
95
|
iPushPullModule.stopLiveData();
|
|
96
96
|
return next(action);
|
|
97
97
|
}
|