@symbo.ls/create 2.29.42 → 2.29.43

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
@@ -52,7 +52,7 @@ const create = (App, options = import_options.default, optionsExternalFile) => {
52
52
  ...mergeWithLocalFile(options, optionsExternalFile)
53
53
  };
54
54
  const domqlApp = (0, import_createDomql.createDomqlElement)(App, redefinedOptions);
55
- (0, import_router.popStateRouter)(domqlApp, redefinedOptions);
55
+ (0, import_router.onpopstateRouter)(domqlApp, redefinedOptions);
56
56
  if (redefinedOptions.on && redefinedOptions.on.create)
57
57
  redefinedOptions.on.create(
58
58
  domqlApp,
@@ -80,7 +80,7 @@ const createSync = async (App, options = import_options.default, optionsExternal
80
80
  const key = options.key;
81
81
  await (0, import_ferchOnCreate.fetchSync)(key, redefinedOptions);
82
82
  const domqlApp = await (0, import_createDomql.createDomqlElement)(App, redefinedOptions);
83
- (0, import_router.popStateRouter)(domqlApp, redefinedOptions);
83
+ (0, import_router.onpopstateRouter)(domqlApp, redefinedOptions);
84
84
  if (redefinedOptions.on && redefinedOptions.on.create)
85
85
  await redefinedOptions.on.create(
86
86
  domqlApp,
@@ -20,7 +20,7 @@ var router_exports = {};
20
20
  __export(router_exports, {
21
21
  initRouter: () => initRouter,
22
22
  injectRouterInLinkComponent: () => injectRouterInLinkComponent,
23
- popStateRouter: () => popStateRouter
23
+ onpopstateRouter: () => onpopstateRouter
24
24
  });
25
25
  module.exports = __toCommonJS(router_exports);
26
26
  var import_router = require("@domql/router");
@@ -56,7 +56,7 @@ const initRouter = (element, context) => {
56
56
  return routerOptions;
57
57
  };
58
58
  let popStateFired;
59
- const popStateRouter = (element, context) => {
59
+ const onpopstateRouter = (element, context) => {
60
60
  if (popStateFired) return;
61
61
  popStateFired = true;
62
62
  const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
package/dist/esm/index.js CHANGED
@@ -16,7 +16,7 @@ var __spreadValues = (a, b) => {
16
16
  };
17
17
  import { deepMerge, isObject, isUndefined } from "@domql/utils";
18
18
  import * as utils from "./utilImports.js";
19
- import { popStateRouter } from "./router.js";
19
+ import { onpopstateRouter } from "./router.js";
20
20
  import { fetchAsync, fetchSync } from "./ferchOnCreate.js";
21
21
  import DEFAULT_CREATE_OPTIONS from "./options.js";
22
22
  import DYNAMIC_JSON from "@symbo.ls/init/dynamic.json";
@@ -28,7 +28,7 @@ const mergeWithLocalFile = (options, optionsExternalFile) => deepMerge(
28
28
  const create = (App, options = DEFAULT_CREATE_OPTIONS, optionsExternalFile) => {
29
29
  const redefinedOptions = __spreadValues(__spreadValues({}, DEFAULT_CREATE_OPTIONS), mergeWithLocalFile(options, optionsExternalFile));
30
30
  const domqlApp = createDomqlElement(App, redefinedOptions);
31
- popStateRouter(domqlApp, redefinedOptions);
31
+ onpopstateRouter(domqlApp, redefinedOptions);
32
32
  if (redefinedOptions.on && redefinedOptions.on.create)
33
33
  redefinedOptions.on.create(
34
34
  domqlApp,
@@ -50,7 +50,7 @@ const createSync = async (App, options = DEFAULT_CREATE_OPTIONS, optionsExternal
50
50
  const key = options.key;
51
51
  await fetchSync(key, redefinedOptions);
52
52
  const domqlApp = await createDomqlElement(App, redefinedOptions);
53
- popStateRouter(domqlApp, redefinedOptions);
53
+ onpopstateRouter(domqlApp, redefinedOptions);
54
54
  if (redefinedOptions.on && redefinedOptions.on.create)
55
55
  await redefinedOptions.on.create(
56
56
  domqlApp,
@@ -31,7 +31,7 @@ const initRouter = (element, context) => {
31
31
  return routerOptions;
32
32
  };
33
33
  let popStateFired;
34
- const popStateRouter = (element, context) => {
34
+ const onpopstateRouter = (element, context) => {
35
35
  if (popStateFired) return;
36
36
  popStateFired = true;
37
37
  const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
@@ -56,5 +56,5 @@ const injectRouterInLinkComponent = (routerOptions) => {
56
56
  export {
57
57
  initRouter,
58
58
  injectRouterInLinkComponent,
59
- popStateRouter
59
+ onpopstateRouter
60
60
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.29.42",
3
+ "version": "2.29.43",
4
4
  "license": "MIT",
5
- "gitHead": "a69a0bbe9e6aef63fd76a8fa571898a320749c65",
5
+ "gitHead": "1e86e40836740e883185200773410f8388c99dca",
6
6
  "type": "module",
7
7
  "module": "src/index.js",
8
8
  "main": "src/index.js",
@@ -29,17 +29,17 @@
29
29
  "prepublish": "npm run build; npm run copy:package:cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@domql/emotion": "^2.29.42",
33
- "@domql/event": "^2.29.42",
34
- "@domql/report": "^2.29.42",
35
- "@domql/router": "^2.29.42",
36
- "@symbo.ls/fetch": "^2.29.42",
37
- "@symbo.ls/init": "^2.29.42",
38
- "@symbo.ls/scratch": "^2.29.42",
39
- "@symbo.ls/sync": "^2.29.42",
40
- "@symbo.ls/uikit": "^2.29.42",
41
- "@symbo.ls/utils": "^2.29.42",
42
- "domql": "^2.29.42"
32
+ "@domql/emotion": "^2.29.43",
33
+ "@domql/event": "^2.29.43",
34
+ "@domql/report": "^2.29.43",
35
+ "@domql/router": "^2.29.43",
36
+ "@symbo.ls/fetch": "^2.29.43",
37
+ "@symbo.ls/init": "^2.29.43",
38
+ "@symbo.ls/scratch": "^2.29.43",
39
+ "@symbo.ls/sync": "^2.29.43",
40
+ "@symbo.ls/uikit": "^2.29.43",
41
+ "@symbo.ls/utils": "^2.29.43",
42
+ "domql": "^2.29.43"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.27.1"
package/src/index.js CHANGED
@@ -4,7 +4,7 @@ import { deepMerge, isObject, isUndefined } from '@domql/utils'
4
4
 
5
5
  import * as utils from './utilImports.js'
6
6
 
7
- import { popStateRouter } from './router.js'
7
+ import { onpopstateRouter } from './router.js'
8
8
  import { fetchAsync, fetchSync } from './ferchOnCreate.js'
9
9
 
10
10
  import DEFAULT_CREATE_OPTIONS from './options.js'
@@ -29,7 +29,7 @@ export const create = (
29
29
 
30
30
  const domqlApp = createDomqlElement(App, redefinedOptions)
31
31
 
32
- popStateRouter(domqlApp, redefinedOptions)
32
+ onpopstateRouter(domqlApp, redefinedOptions)
33
33
 
34
34
  if (redefinedOptions.on && redefinedOptions.on.create)
35
35
  redefinedOptions.on.create(
@@ -75,7 +75,7 @@ export const createSync = async (
75
75
  await fetchSync(key, redefinedOptions)
76
76
 
77
77
  const domqlApp = await createDomqlElement(App, redefinedOptions)
78
- popStateRouter(domqlApp, redefinedOptions)
78
+ onpopstateRouter(domqlApp, redefinedOptions)
79
79
 
80
80
  if (redefinedOptions.on && redefinedOptions.on.create)
81
81
  await redefinedOptions.on.create(
package/src/router.js CHANGED
@@ -42,7 +42,7 @@ export const initRouter = (element, context) => {
42
42
  }
43
43
 
44
44
  let popStateFired
45
- export const popStateRouter = (element, context) => {
45
+ export const onpopstateRouter = (element, context) => {
46
46
  if (popStateFired) return
47
47
  popStateFired = true
48
48
  const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS