@symbo.ls/create 2.11.258 → 2.11.259
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/dist/cjs/bundle/index.js +584 -1832
- package/dist/cjs/createDomql.js +2 -3
- package/package.json +2 -2
- package/src/createDomql.js +3 -4
package/dist/cjs/createDomql.js
CHANGED
|
@@ -40,10 +40,9 @@ var import_syncExtend = require("./syncExtend");
|
|
|
40
40
|
var import_prepare = require("./prepare");
|
|
41
41
|
const SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
42
42
|
const createDomqlElement = (App, options) => {
|
|
43
|
-
const
|
|
44
|
-
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
43
|
+
const key = options.key || SYMBOLS_KEY || ((0, import_utils.isString)(App) ? App : "");
|
|
45
44
|
const [scratcDesignSystem, emotion, registry] = (0, import_prepare.prepareDesignSystem)(options, key);
|
|
46
|
-
if (
|
|
45
|
+
if ((0, import_utils.isString)(App))
|
|
47
46
|
App = {};
|
|
48
47
|
const doc = (0, import_prepare.prepareDocument)(options);
|
|
49
48
|
const state = (0, import_prepare.prepareState)(options, App);
|
package/package.json
CHANGED
package/src/createDomql.js
CHANGED
|
@@ -13,11 +13,9 @@ import { prepareComponents, prepareDesignSystem, prepareDocument, preparePages,
|
|
|
13
13
|
const SYMBOLS_KEY = process.env.SYMBOLS_KEY
|
|
14
14
|
|
|
15
15
|
export const createDomqlElement = (App, options) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
|
|
16
|
+
const key = options.key || SYMBOLS_KEY || (isString(App) ? App : '')
|
|
19
17
|
const [scratcDesignSystem, emotion, registry] = prepareDesignSystem(options, key)
|
|
20
|
-
if (
|
|
18
|
+
if (isString(App)) App = {}
|
|
21
19
|
|
|
22
20
|
const doc = prepareDocument(options)
|
|
23
21
|
const state = prepareState(options, App)
|
|
@@ -30,6 +28,7 @@ export const createDomqlElement = (App, options) => {
|
|
|
30
28
|
|
|
31
29
|
const routerOptions = initRouter(App, options) // eslint-disable-line
|
|
32
30
|
const extend = applySyncDebug([App], options)
|
|
31
|
+
|
|
33
32
|
return ((DOM.default && DOM.default.create) || DOM.create)({
|
|
34
33
|
extend,
|
|
35
34
|
routes: options.pages,
|