@symbo.ls/create 2.10.31 → 2.10.33

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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import DOM from 'domql'
4
4
  import { transformDOMQLEmotion } from 'domql/packages/emotion'
5
+ import { router } from 'domql/packages/router'
5
6
 
6
7
  import * as utils from '@symbo.ls/utils'
7
8
  import * as domqlUtils from '@domql/utils'
@@ -37,7 +38,7 @@ export const create = async (App, options = defaultOptions) => {
37
38
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
38
39
 
39
40
  if (appIsKey) App = {}
40
- if (key) await fetchProject(key, options)
41
+ if (key && options.editor) await fetchProject(key, options)
41
42
 
42
43
  const emotion = defaultEmotion || createEmotion()
43
44
  const initOptions = options.initOptions || { emotion }
@@ -63,7 +64,8 @@ export const create = async (App, options = defaultOptions) => {
63
64
  system: designSystem || {},
64
65
  utils: { ...utils, ...domqlUtils },
65
66
  define: defaultDefine,
66
- registry: emotionDefine
67
+ registry: emotionDefine,
68
+ router: options.router || router
67
69
  }
68
70
  }, (options.parent || document).body, key, {
69
71
  extend: [uikit.Box],
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.31",
3
+ "version": "2.10.33",
4
4
  "license": "MIT",
5
- "gitHead": "828e14653b4f33040eaf9f42ba4adcc5111feb91",
5
+ "gitHead": "5a248fa1a689d7d4e2f2b62c22948c36fbf7c366",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {