@symbo.ls/create 2.10.60 → 2.10.64

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/index.js +2 -2
  2. package/package.json +5 -2
  3. package/define.js +0 -28
package/index.js CHANGED
@@ -14,7 +14,7 @@ import { fetchStateAsync, fetchProject } from '@symbo.ls/fetch'
14
14
  import { emotion as defaultEmotion, createEmotion } from '@symbo.ls/emotion'
15
15
  import { defaultDefine } from './define'
16
16
 
17
- const { SYMBOLS_KEY } = process.env
17
+ const SYMBOLS_KEY = process.env.SYMBOLS_KEY
18
18
 
19
19
  const defaultOptions = {
20
20
  editor: {
@@ -71,7 +71,7 @@ export const create = async (App, options = defaultOptions) => {
71
71
  state: options.state,
72
72
  context: {
73
73
  key,
74
- components: { ...uikit, ...options.components },
74
+ components: options.components ? { ...uikit, ...options.components } : uikit,
75
75
  state: options.state || {},
76
76
  pages: options.pages || {},
77
77
  system: designSystem || {},
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.60",
3
+ "version": "2.10.64",
4
4
  "license": "MIT",
5
- "gitHead": "97cdca33752e544e05a1bcb6e549ed7c4737106d",
5
+ "gitHead": "2a629ebe1c81450d3b85b22ffb2a9a80ba5bc4a5",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "dependencies": {
9
12
  "@domql/utils": "latest",
10
13
  "@symbo.ls/fetch": "latest",
package/define.js DELETED
@@ -1,28 +0,0 @@
1
- 'use strict'
2
-
3
- import { Collection } from '@symbo.ls/uikit'
4
-
5
- export const defaultDefine = {
6
- routes: param => param,
7
-
8
- $router: (param, el) => {
9
- if (!param) return
10
-
11
- const obj = { tag: 'fragment', ...param }
12
-
13
- const set = () => {
14
- el.set(obj, { preventDefineUpdate: '$router' })
15
- }
16
-
17
- if (el.props.lazyLoad) {
18
- window.requestAnimationFrame(set)
19
- } else set()
20
-
21
- return obj
22
- },
23
-
24
- __filepath: param => param,
25
- $setCollection: Collection.define.$setCollection,
26
- $setStateCollection: Collection.define.$setStateCollection,
27
- $setPropsCollection: Collection.define.$setPropsCollection
28
- }