@symbo.ls/create 2.10.163 → 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,8 +4,7 @@ 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
10
  import { init } from '@symbo.ls/init'
@@ -15,7 +14,7 @@ import { defaultDefine } from './define'
15
14
 
16
15
  import DYNAMIC_JSON from '@symbo.ls/init/dynamic.json'
17
16
 
18
- import { deepMerge, isObject } from '@domql/utils'
17
+ import { deepMerge, isObject, isString } from '@domql/utils'
19
18
  import { initRouter } from './router'
20
19
  import { fetchAsync, fetchSync } from './ferchOnCreate'
21
20
 
@@ -51,7 +50,7 @@ const mergeWithLocalFile = (options, RC_FILE) => {
51
50
  }
52
51
 
53
52
  export const create = async (App, options = defaultOptions, RC_FILE) => {
54
- const appIsKey = domqlUtils.isString(App)
53
+ const appIsKey = isString(App)
55
54
  options = mergeWithLocalFile(options, RC_FILE)
56
55
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
57
56
 
@@ -80,7 +79,7 @@ export const create = async (App, options = defaultOptions, RC_FILE) => {
80
79
  const pages = options.pages || {}
81
80
  const components = options.components ? { ...uikit, ...options.components } : uikit
82
81
  const designSystem = scratchSystem || {}
83
- const snippets = { ...utils, ...domqlUtils, ...(options.snippets || {})}
82
+ const snippets = { ...utils, ...(options.snippets || {})}
84
83
  const router = options.router || defaultRouter
85
84
  const define = options.define || defaultDefine
86
85
 
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.163",
3
+ "version": "2.10.166",
4
4
  "license": "MIT",
5
- "gitHead": "9b654d48bb8ba26e3b1b7095b5ed7b813b61e1e0",
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'