@symbo.ls/create 2.11.373 → 2.11.389

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.
@@ -75,6 +75,7 @@ const createDomqlElement = (App, options) => {
75
75
  routerOptions,
76
76
  socket: options.socket,
77
77
  editor: options.editor,
78
+ window: options.window || window,
78
79
  document: doc
79
80
  }
80
81
  }, doc.body, key, {
@@ -66,7 +66,7 @@ const prepareComponents = (options) => {
66
66
  return options.components ? { ...UIkitWithPrefix(), ...options.components } : UIkitWithPrefix();
67
67
  };
68
68
  const prepareUtils = (options) => {
69
- return { ...utils, ...utils.scratchUtils, ...options.snippets || options.utils || {} };
69
+ return { ...utils, ...utils.scratchUtils, ...options.snippets || options.utils || options.functions || {} };
70
70
  };
71
71
  const preparePackages = (packages, opts) => {
72
72
  const windowOpts = opts.window || window;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.373",
3
+ "version": "2.11.389",
4
4
  "license": "MIT",
5
- "gitHead": "71ddf72da03fdac28f9d1fe2c9e163b5b6ba9f09",
5
+ "gitHead": "e260280a4a50ca08fd7df53104a884086dc3da88",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -51,6 +51,7 @@ export const createDomqlElement = (App, options) => {
51
51
  routerOptions,
52
52
  socket: options.socket,
53
53
  editor: options.editor,
54
+ window: options.window || window,
54
55
  document: doc
55
56
  }
56
57
  }, doc.body, key, {
package/src/prepare.js CHANGED
@@ -32,7 +32,7 @@ export const prepareComponents = options => {
32
32
  }
33
33
 
34
34
  export const prepareUtils = options => {
35
- return { ...utils, ...utils.scratchUtils, ...(options.snippets || options.utils || {}) }
35
+ return { ...utils, ...utils.scratchUtils, ...(options.snippets || options.utils || options.functions || {}) }
36
36
  }
37
37
 
38
38
  export const preparePackages = (packages, opts) => {