@symbo.ls/create 2.11.122 → 2.11.125

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.
@@ -24,9 +24,8 @@ __export(router_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(router_exports);
26
26
  var import_router = require("@domql/router");
27
- var import_globals = require("@domql/globals");
28
- var import_uikit = require("@symbo.ls/uikit");
29
27
  var import_utils = require("@domql/utils");
28
+ var import_uikit = require("@symbo.ls/uikit");
30
29
  const DEFAULT_ROUTING_OPTIONS = {
31
30
  initRouter: true,
32
31
  injectRouterInLinkComponent: true,
@@ -40,7 +39,7 @@ const initRouter = (element, options) => {
40
39
  routerOptions = DEFAULT_ROUTING_OPTIONS;
41
40
  const router = options.snippets && options.snippets.router ? options.snippets.router : import_router.router;
42
41
  const onRouterRenderDefault = (el, s) => {
43
- const { pathname, hash } = import_globals.window.location;
42
+ const { pathname, hash } = import_utils.window.location;
44
43
  const url = pathname + hash;
45
44
  if (el.routes)
46
45
  router(url, el, {}, { initialRender: true });
@@ -67,8 +66,8 @@ const popStateRouter = (element, options) => {
67
66
  if (!routerOptions.popState)
68
67
  return;
69
68
  const router = options.snippets && options.snippets.router ? options.snippets.router : import_router.router;
70
- import_globals.window.onpopstate = (e) => {
71
- const { pathname, hash } = import_globals.window.location;
69
+ import_utils.window.onpopstate = (e) => {
70
+ const { pathname, hash } = import_utils.window.location;
72
71
  const url = pathname + hash;
73
72
  router(url, element, {}, { pushState: false, level: 0 });
74
73
  };
@@ -23,14 +23,13 @@ __export(syncExtend_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(syncExtend_exports);
25
25
  var import_socket_ui = require("@symbo.ls/socket-ui");
26
- var import_env = require("@domql/env");
27
26
  var import_utils = require("@domql/utils");
28
27
  const applySyncDebug = (extend, options) => {
29
28
  const { editor } = options;
30
29
  if (!editor)
31
30
  return extend;
32
- const inspect = (0, import_utils.isUndefined)(editor.inspect) ? (0, import_env.isDevelopment)() : editor.inspect;
33
- const liveSync = (0, import_utils.isUndefined)(editor.liveSync) ? (0, import_env.isDevelopment)() : editor.liveSync;
31
+ const inspect = (0, import_utils.isUndefined)(editor.inspect) ? (0, import_utils.isDevelopment)() : editor.inspect;
32
+ const liveSync = (0, import_utils.isUndefined)(editor.liveSync) ? (0, import_utils.isDevelopment)() : editor.liveSync;
34
33
  if (inspect)
35
34
  extend.push(import_socket_ui.DevFocus);
36
35
  if (liveSync)
@@ -41,7 +40,7 @@ const applyInspectListener = (root, options) => {
41
40
  const { editor } = options;
42
41
  if (!editor)
43
42
  return;
44
- const inspect = (0, import_utils.isUndefined)(editor.inspect) ? (0, import_env.isDevelopment)() : editor.inspect;
43
+ const inspect = (0, import_utils.isUndefined)(editor.inspect) ? (0, import_utils.isDevelopment)() : editor.inspect;
45
44
  if (inspect)
46
45
  (0, import_socket_ui.inspectOnKey)(root);
47
46
  };
@@ -30,6 +30,5 @@ var import_scratch = require("@symbo.ls/scratch");
30
30
  __reExport(utilImports_exports, require("@domql/utils"), module.exports);
31
31
  __reExport(utilImports_exports, require("@symbo.ls/utils"), module.exports);
32
32
  var import_init = require("@symbo.ls/init");
33
- __reExport(utilImports_exports, require("@domql/cookie"), module.exports);
34
33
  __reExport(utilImports_exports, require("@domql/report"), module.exports);
35
34
  __reExport(utilImports_exports, require("@domql/router"), module.exports);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.122",
3
+ "version": "2.11.125",
4
4
  "license": "MIT",
5
- "gitHead": "6b7b2d913124ea132fb2a1931ac327c01336f9fb",
5
+ "gitHead": "baa36f3a07d4ea577fe641432ab3ca0432fb4915",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/router.js CHANGED
@@ -1,9 +1,8 @@
1
1
  'use strict'
2
2
 
3
3
  import { router as defaultRouter } from '@domql/router'
4
- import { window } from '@domql/globals'
4
+ import { window, deepMerge, merge, isUndefined } from '@domql/utils'
5
5
  import { Link, RouterLink } from '@symbo.ls/uikit'
6
- import { deepMerge, merge, isUndefined } from '@domql/utils'
7
6
 
8
7
  const DEFAULT_ROUTING_OPTIONS = {
9
8
  initRouter: true,
package/src/syncExtend.js CHANGED
@@ -1,8 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { Sync, DevFocus, inspectOnKey } from '@symbo.ls/socket-ui'
4
- import { isDevelopment, isProduction, isTest } from '@domql/env' // eslint-disable-line no-unused-vars
5
- import { isUndefined } from '@domql/utils'
4
+ import { isUndefined, isDevelopment, isProduction, isTest } from '@domql/utils' // eslint-disable-line no-unused-vars
6
5
 
7
6
  export const applySyncDebug = (extend, options) => {
8
7
  const { editor } = options
@@ -6,6 +6,5 @@ export { scratchUtils, scratchSystem, set }
6
6
  export * from '@domql/utils'
7
7
  export * from '@symbo.ls/utils'
8
8
  export { init, updateReset } from '@symbo.ls/init'
9
- export * from '@domql/cookie'
10
9
  export * from '@domql/report'
11
10
  export * from '@domql/router'