@symbo.ls/create 2.10.41 → 2.10.46

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 (3) hide show
  1. package/define.js +0 -3
  2. package/index.js +2 -2
  3. package/package.json +2 -2
package/define.js CHANGED
@@ -22,10 +22,7 @@ export const defaultDefine = {
22
22
  },
23
23
 
24
24
  __filepath: param => param,
25
- __collectionCache: param => param,
26
25
  $setCollection: Collection.define.$setCollection,
27
- __stateCollectionCache: param => param,
28
26
  $setStateCollection: Collection.define.$setStateCollection,
29
- __propsCollectionCache: param => param,
30
27
  $setPropsCollection: Collection.define.$setPropsCollection
31
28
  }
package/index.js CHANGED
@@ -13,7 +13,6 @@ import { fetchProject } from '@symbo.ls/fetch'
13
13
 
14
14
  import { emotion as defaultEmotion, createEmotion } from '@symbo.ls/emotion'
15
15
  import { defaultDefine } from './define'
16
- import { appendIconsSVGSprite } from '@symbo.ls/scratch'
17
16
 
18
17
  const { SYMBOLS_KEY } = process.env
19
18
 
@@ -52,6 +51,7 @@ export const create = async (App, options = defaultOptions) => {
52
51
 
53
52
  const initOptions = options.initOptions || {}
54
53
  const emotion = initOptions.emotion || defaultEmotion || createEmotion()
54
+ if (!initOptions.emotion) initOptions.emotion = emotion
55
55
  const emotionDefine = options.registry || transformDOMQLEmotion(initOptions.emotion, options)
56
56
 
57
57
  const doc = options.parent || document
@@ -79,7 +79,7 @@ export const create = async (App, options = defaultOptions) => {
79
79
  define: defaultDefine,
80
80
  registry: emotionDefine,
81
81
  router: options.router || router,
82
- emotion: emotion,
82
+ emotion,
83
83
  document: doc
84
84
  }
85
85
  }, doc.body, key, {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.41",
3
+ "version": "2.10.46",
4
4
  "license": "MIT",
5
- "gitHead": "fe191d138564726ccb26fb5a6643c4d78709f0d3",
5
+ "gitHead": "1a875d424eb99c04b4a8a7a919804967dd8b3a54",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {