@symbo.ls/create 2.10.6 → 2.10.9
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/index.js +7 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { define } from './define'
|
|
|
12
12
|
const { SYMBOLS_KEY } = process.env // eslint-disable-line no-unused-vars
|
|
13
13
|
|
|
14
14
|
const defaultOptions = {
|
|
15
|
+
endpoint: 'localhost:13335',
|
|
15
16
|
state: {},
|
|
16
17
|
pages: {},
|
|
17
18
|
system: {
|
|
@@ -29,11 +30,12 @@ export const create = async (App, options = defaultOptions) => {
|
|
|
29
30
|
if (appIsKey) App = {}
|
|
30
31
|
if (key) {
|
|
31
32
|
if (options.remote) {
|
|
32
|
-
const data = await fetchRemote(key, {
|
|
33
|
+
const data = await fetchRemote(key, { endpoint: options.endpoint })
|
|
33
34
|
overwriteDeep(data, options)
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
const components = { ...smbls, ...options.components }
|
|
37
39
|
const designSystem = init(options.system)
|
|
38
40
|
|
|
39
41
|
DOM.define(options.define || define)
|
|
@@ -47,12 +49,13 @@ export const create = async (App, options = defaultOptions) => {
|
|
|
47
49
|
extend: [smbls.Box],
|
|
48
50
|
context: {
|
|
49
51
|
key,
|
|
50
|
-
components
|
|
52
|
+
components,
|
|
51
53
|
state: options.state,
|
|
52
54
|
pages: options.pages,
|
|
53
55
|
system: designSystem
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
+
},
|
|
57
|
+
components
|
|
58
|
+
// TODO: move define here,
|
|
56
59
|
})
|
|
57
60
|
}
|
|
58
61
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.9",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "7f89884eef8358e34ca0b4cbd2679eebb4ac65fe",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|