@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/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,
@@ -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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.221",
3
+ "version": "2.11.230",
4
4
  "license": "MIT",
5
- "gitHead": "edd135dc40621879b35493003ab88891e407db03",
5
+ "gitHead": "7bb17555a33c7bc9f979cbd3ce2dec161be03596",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
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