goblin-laboratory 4.2.6 → 4.2.10

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": "goblin-laboratory",
3
- "version": "4.2.6",
3
+ "version": "4.2.10",
4
4
  "description": "Laboratory",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -37,10 +37,10 @@
37
37
  "react-redux": "^7.1.0",
38
38
  "react-router": "^5.0.0",
39
39
  "redux-thunk": "^2.3.0",
40
- "traverse": "^0.6.6",
41
40
  "xcraft-core-shredder": "^5.3.0",
42
41
  "xcraft-dev-prettier": "^2.0.0",
43
- "xcraft-dev-rules": "^4.1.0"
42
+ "xcraft-dev-rules": "^4.3.0",
43
+ "xcraft-traverse": "^0.7.0"
44
44
  },
45
45
  "prettier": "xcraft-dev-prettier"
46
46
  }
@@ -150,6 +150,10 @@ export default function withC(Component, dispatchProps = {}, {modelProp} = {}) {
150
150
  this.addContextToPath = this.addContextToPath.bind(this);
151
151
  }
152
152
 
153
+ getChildContext() {
154
+ return {};
155
+ }
156
+
153
157
  addContextToPath(path) {
154
158
  if (path === null || path === undefined) {
155
159
  return null;
@@ -268,6 +272,8 @@ export default function withC(Component, dispatchProps = {}, {modelProp} = {}) {
268
272
  }
269
273
  }
270
274
 
275
+ WithC.propTypes = {};
276
+
271
277
  return (props) => (
272
278
  <ModelContext.Consumer>
273
279
  {(model) => <WithC model={model} {...props} />}
@@ -163,21 +163,8 @@ Goblin.registerQuest(goblinName, 'create', function* (
163
163
  next.parallel()
164
164
  );
165
165
 
166
- quest.me.initZoom(
167
- {
168
- clientSessionId,
169
- },
170
- next.parallel()
171
- );
172
-
173
- quest.me.initTheme(
174
- {
175
- clientSessionId,
176
- },
177
- next.parallel()
178
- );
179
-
180
- yield next.sync();
166
+ yield quest.me.initZoom({clientSessionId});
167
+ yield quest.me.initTheme({clientSessionId});
181
168
 
182
169
  quest.goblin.defer(
183
170
  quest.sub.local(
@@ -1,7 +1,7 @@
1
1
  import computeStyleHash from './compute-style-hash.js';
2
2
  import getStyleProps from './get-style-props.js';
3
3
  import {StyleSheet as Aphrodite} from 'aphrodite/no-important';
4
- import traverse from 'traverse';
4
+ import traverse from 'xcraft-traverse';
5
5
  import StylesCache from './styles-cache.js';
6
6
 
7
7
  let stylesCache = new StylesCache();