@symbo.ls/create 2.10.165 → 2.10.166

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 CHANGED
@@ -4,24 +4,21 @@ import DOM from 'domql'
4
4
  import { transformDOMQLEmotion } from '@domql/emotion'
5
5
  import { router as defaultRouter } from '@domql/router'
6
6
 
7
- import * as utils from '@symbo.ls/utils'
8
- import * as domqlUtils from '@domql/utils'
7
+ import * as utils from './utilImports'
9
8
 
10
9
  import * as uikit from '@symbo.ls/uikit'
11
- import { init, updateReset } from '@symbo.ls/init'
12
- import { set } from '@symbo.ls/scratch'
10
+ import { init } from '@symbo.ls/init'
13
11
 
14
12
  import { emotion as defaultEmotion, createEmotion } from '@symbo.ls/emotion'
15
13
  import { defaultDefine } from './define'
16
14
 
17
15
  import DYNAMIC_JSON from '@symbo.ls/init/dynamic.json'
18
16
 
19
- import { deepMerge, isObject } from '@domql/utils'
17
+ import { deepMerge, isObject, isString } from '@domql/utils'
20
18
  import { initRouter } from './router'
21
19
  import { fetchAsync, fetchSync } from './ferchOnCreate'
22
20
 
23
21
  const SYMBOLS_KEY = process.env.SYMBOLS_KEY
24
- const smblsUtils = { init, set, updateReset }
25
22
 
26
23
  const defaultOptions = {
27
24
  editor: {
@@ -53,7 +50,7 @@ const mergeWithLocalFile = (options, RC_FILE) => {
53
50
  }
54
51
 
55
52
  export const create = async (App, options = defaultOptions, RC_FILE) => {
56
- const appIsKey = domqlUtils.isString(App)
53
+ const appIsKey = isString(App)
57
54
  options = mergeWithLocalFile(options, RC_FILE)
58
55
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
59
56
 
@@ -82,7 +79,7 @@ export const create = async (App, options = defaultOptions, RC_FILE) => {
82
79
  const pages = options.pages || {}
83
80
  const components = options.components ? { ...uikit, ...options.components } : uikit
84
81
  const designSystem = scratchSystem || {}
85
- const snippets = { ...utils, ...domqlUtils, ...smblsUtils, ...(options.snippets || {})}
82
+ const snippets = { ...utils, ...(options.snippets || {})}
86
83
  const router = options.router || defaultRouter
87
84
  const define = options.define || defaultDefine
88
85
 
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.165",
3
+ "version": "2.10.166",
4
4
  "license": "MIT",
5
- "gitHead": "30fbc4dc26682e15d1d7eb2b6312bce6d9f07ec2",
5
+ "gitHead": "349d3b269d2657fb99837867fbb979e37064858d",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {
9
+ "@domql/cookie": "latest",
9
10
  "@domql/emotion": "latest",
11
+ "@domql/report": "latest",
10
12
  "@domql/router": "latest",
11
13
  "@domql/utils": "latest",
12
14
  "@symbo.ls/fetch": "latest",
13
15
  "@symbo.ls/init": "latest",
16
+ "@symbo.ls/scratch": "latest",
14
17
  "@symbo.ls/uikit": "latest",
15
18
  "@symbo.ls/utils": "latest",
16
19
  "domql": "latest"
package/utilImports.js ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict'
2
+
3
+ export * from '@domql/utils'
4
+ export * from '@symbo.ls/utils'
5
+ export { set } from '@symbo.ls/scratch'
6
+ export { init, updateReset } from '@symbo.ls/init'
7
+
8
+ export * from '@domql/cookie'
9
+ export * from '@domql/report'
10
+ export * from '@domql/router'