@symbo.ls/create 2.11.221 → 2.11.230
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 +2203 -645
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/router.js +1 -1
- package/package.json +2 -2
- package/src/index.js +1 -1
- package/src/router.js +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -77,7 +77,7 @@ const create = async (App, options = import_options.default, optionsExternalFile
|
|
|
77
77
|
const define = options.define || import_define.defaultDefine;
|
|
78
78
|
const routerOptions = (0, import_router.initRouter)(App, options);
|
|
79
79
|
const extend = (0, import_syncExtend.applySyncDebug)([App], options);
|
|
80
|
-
const domqlApp = (import_domql.default.default.create || import_domql.default.create)({
|
|
80
|
+
const domqlApp = (import_domql.default.default && import_domql.default.default.create || import_domql.default.create)({
|
|
81
81
|
extend,
|
|
82
82
|
routes: options.pages,
|
|
83
83
|
state,
|
package/dist/cjs/router.js
CHANGED
|
@@ -71,7 +71,7 @@ const popStateRouter = (element, options) => {
|
|
|
71
71
|
import_utils.window.onpopstate = (e) => {
|
|
72
72
|
const { pathname, hash } = import_utils.window.location;
|
|
73
73
|
const url = pathname + hash;
|
|
74
|
-
router(url, element, {}, { pushState: false, level: 0 });
|
|
74
|
+
router(url, element, {}, { pushState: false, scrollToTop: false, level: 0 });
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
const injectRouterInLinkComponent = (routerOptions) => {
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -52,7 +52,7 @@ export const create = async (App, options = DEFAULT_CREATE_OPTIONS, optionsExter
|
|
|
52
52
|
const routerOptions = initRouter(App, options) // eslint-disable-line
|
|
53
53
|
const extend = applySyncDebug([App], options)
|
|
54
54
|
|
|
55
|
-
const domqlApp = (DOM.default.create || DOM.create)({
|
|
55
|
+
const domqlApp = ((DOM.default && DOM.default.create) || DOM.create)({
|
|
56
56
|
extend,
|
|
57
57
|
routes: options.pages,
|
|
58
58
|
state,
|
package/src/router.js
CHANGED
|
@@ -52,7 +52,7 @@ export const popStateRouter = (element, options) => {
|
|
|
52
52
|
window.onpopstate = e => {
|
|
53
53
|
const { pathname, hash } = window.location
|
|
54
54
|
const url = pathname + hash
|
|
55
|
-
router(url, element, {}, { pushState: false, level: 0 })
|
|
55
|
+
router(url, element, {}, { pushState: false, scrollToTop: false, level: 0 })
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|