goblin-laboratory 4.2.1 → 4.2.4
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/lib/.webpack-config.js
CHANGED
|
@@ -13,6 +13,10 @@ module.exports = (location, mainGoblinModule) => {
|
|
|
13
13
|
if (fs.existsSync(nabuT)) {
|
|
14
14
|
alias.t = nabuT;
|
|
15
15
|
}
|
|
16
|
+
const nabu = path.resolve(location, 'goblin-nabu', 'widgets/helpers/nabu.js');
|
|
17
|
+
if (fs.existsSync(nabu)) {
|
|
18
|
+
alias.nabu = nabu;
|
|
19
|
+
}
|
|
16
20
|
|
|
17
21
|
let importerPath = path.join(
|
|
18
22
|
location,
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ function isShredderOrImmutable(obj) {
|
|
|
70
70
|
* @param {Object} dispatchProps - (optional) Mapping between value props and dispatch props.
|
|
71
71
|
* @param {Object} [options] - Options.
|
|
72
72
|
* @param {String} [options.modelProp] - Set context.model given the path in the prop "modelProp".
|
|
73
|
-
* @
|
|
73
|
+
* @returns {Widget} A widget supporting connected props.
|
|
74
74
|
*/
|
|
75
75
|
export default function withC(Component, dispatchProps = {}, {modelProp} = {}) {
|
|
76
76
|
// Component used after connect
|
|
@@ -55,6 +55,7 @@ const handleChange = (send, action, registry) => {
|
|
|
55
55
|
id: goblinId,
|
|
56
56
|
newValue: action.value,
|
|
57
57
|
clientSessionId: action.clientSessionId,
|
|
58
|
+
desktopId: action.desktopId,
|
|
58
59
|
},
|
|
59
60
|
_xcraftIPC,
|
|
60
61
|
};
|
|
@@ -71,6 +72,7 @@ const handleChange = (send, action, registry) => {
|
|
|
71
72
|
path: fields.join('.'),
|
|
72
73
|
newValue: action.value,
|
|
73
74
|
clientSessionId: action.clientSessionId,
|
|
75
|
+
desktopId: action.desktopId,
|
|
74
76
|
},
|
|
75
77
|
_xcraftIPC,
|
|
76
78
|
};
|
|
@@ -85,13 +87,17 @@ const formMiddleware = (send) => (store) => (next) => (action) => {
|
|
|
85
87
|
case 'FIELD-CHANGED':
|
|
86
88
|
{
|
|
87
89
|
if (action.path.startsWith('backend')) {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.get('clientSessionId');
|
|
90
|
+
const lab = store.getState().backend.get(window.labId);
|
|
91
|
+
const clientSessionId = lab.get('clientSessionId');
|
|
92
|
+
const desktopId = lab.get('feed');
|
|
92
93
|
handleChange(
|
|
93
94
|
send,
|
|
94
|
-
{
|
|
95
|
+
{
|
|
96
|
+
model: action.path,
|
|
97
|
+
value: action.value,
|
|
98
|
+
clientSessionId,
|
|
99
|
+
desktopId,
|
|
100
|
+
},
|
|
95
101
|
store.getState().commands.get('registry')
|
|
96
102
|
);
|
|
97
103
|
}
|