@symbo.ls/create 2.10.172 → 2.10.176
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 +1 -2
- package/package.json +2 -2
- package/syncExtend.js +6 -3
package/index.js
CHANGED
|
@@ -6,12 +6,11 @@ import { deepMerge, isObject, isString } from '@domql/utils'
|
|
|
6
6
|
import * as utils from './utilImports'
|
|
7
7
|
import * as uikit from '@symbo.ls/uikit'
|
|
8
8
|
|
|
9
|
-
import { inspectOnKey } from '@symbo.ls/socket-ui'
|
|
10
9
|
import { defaultDefine } from './define'
|
|
11
10
|
import { initRouter, popStateRouter } from './router'
|
|
12
11
|
import { fetchAsync, fetchSync } from './ferchOnCreate'
|
|
13
12
|
import { initEmotion } from './initEmotion'
|
|
14
|
-
import { applySyncDebug } from './syncExtend'
|
|
13
|
+
import { applyKeyDebugListener, applySyncDebug } from './syncExtend'
|
|
15
14
|
|
|
16
15
|
import DEFAULT_CREATE_OPTIONS from './options'
|
|
17
16
|
import DYNAMIC_JSON from '@symbo.ls/init/dynamic.json'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.176",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "b482e608f9a8b24e0121c39cc907452c51225ea8",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|
package/syncExtend.js
CHANGED
|
@@ -6,13 +6,16 @@ import { isProduction, isTest } from '@domql/env'
|
|
|
6
6
|
const { NODE_ENV } = process.env
|
|
7
7
|
|
|
8
8
|
export const applySyncDebug = (extend, options) => {
|
|
9
|
-
|
|
10
|
-
if (
|
|
9
|
+
const { editor } = options
|
|
10
|
+
if (!editor) return extend
|
|
11
|
+
if (editor.debug) extend.push[DevFocus]
|
|
12
|
+
if (editor.socket) extend.push[Sync]
|
|
11
13
|
return extend
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const applyKeyDebugListener = (root, options) => {
|
|
15
|
-
|
|
17
|
+
const { editor } = options
|
|
18
|
+
if (editor && editor.debug) inspectOnKey(root)
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
const extend = isProduction(NODE_ENV) || isTest(NODE_ENV) [Sync, DevFocus]
|