@symbo.ls/create 2.11.298 → 2.11.310

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.
@@ -21,7 +21,7 @@ __export(define_exports, {
21
21
  defaultDefine: () => defaultDefine
22
22
  });
23
23
  module.exports = __toCommonJS(define_exports);
24
- var import_uikit = require("@symbo.ls/uikit");
24
+ var import_atoms = require("@symbo.ls/atoms");
25
25
  const defaultDefine = {
26
26
  routes: (param) => param,
27
27
  // deps: (param, el) => param || el.parent.deps,
@@ -38,8 +38,8 @@ const defaultDefine = {
38
38
  set();
39
39
  return obj;
40
40
  },
41
- $collection: import_uikit.Collection.define.$collection,
42
- $setCollection: import_uikit.Collection.define.$setCollection,
43
- $stateCollection: import_uikit.Collection.define.$stateCollection,
44
- $propsCollection: import_uikit.Collection.define.$propsCollection
41
+ $collection: import_atoms.Collection.define.$collection,
42
+ $setCollection: import_atoms.Collection.define.$setCollection,
43
+ $stateCollection: import_atoms.Collection.define.$stateCollection,
44
+ $propsCollection: import_atoms.Collection.define.$propsCollection
45
45
  };
package/dist/cjs/index.js CHANGED
@@ -57,13 +57,9 @@ const create = (App, options = import_options.default, optionsExternalFile) => {
57
57
  return domqlApp;
58
58
  };
59
59
  const createAsync = (App, options = import_options.default, optionsExternalFile) => {
60
+ const domqlApp = create(App, options, optionsExternalFile);
60
61
  const redefinedOptions = { ...import_options.default, ...mergeWithLocalFile(options, optionsExternalFile) };
61
- const domqlApp = (0, import_createDomql.createDomqlElement)(App, redefinedOptions);
62
- (0, import_syncExtend.applyInspectListener)(domqlApp, redefinedOptions);
63
- (0, import_router.popStateRouter)(domqlApp, redefinedOptions);
64
- if (redefinedOptions.on && redefinedOptions.on.create)
65
- redefinedOptions.on.create(domqlApp, redefinedOptions);
66
- const key = options.key || SYMBOLS_KEY;
62
+ const key = redefinedOptions.key || SYMBOLS_KEY;
67
63
  (0, import_ferchOnCreate.fetchAsync)(domqlApp, key, { utils, ...redefinedOptions });
68
64
  return domqlApp;
69
65
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.298",
3
+ "version": "2.11.310",
4
4
  "license": "MIT",
5
- "gitHead": "a2546011785f7dc55c4abf0e5a1b8cd0218e9deb",
5
+ "gitHead": "3e774509842b471eda7cd8d34ea79bd8c70c79a9",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/define.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { Collection } from '@symbo.ls/uikit'
3
+ import { Collection } from '@symbo.ls/atoms'
4
4
 
5
5
  export const defaultDefine = {
6
6
  routes: param => param,
package/src/index.js CHANGED
@@ -33,15 +33,10 @@ export const create = (App, options = DEFAULT_CREATE_OPTIONS, optionsExternalFil
33
33
  }
34
34
 
35
35
  export const createAsync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExternalFile) => {
36
- const redefinedOptions = { ...DEFAULT_CREATE_OPTIONS, ...mergeWithLocalFile(options, optionsExternalFile) }
37
-
38
- const domqlApp = createDomqlElement(App, redefinedOptions)
36
+ const domqlApp = create(App, options, optionsExternalFile)
39
37
 
40
- applyInspectListener(domqlApp, redefinedOptions)
41
- popStateRouter(domqlApp, redefinedOptions)
42
- if (redefinedOptions.on && redefinedOptions.on.create) redefinedOptions.on.create(domqlApp, redefinedOptions)
43
-
44
- const key = options.key || SYMBOLS_KEY
38
+ const redefinedOptions = { ...DEFAULT_CREATE_OPTIONS, ...mergeWithLocalFile(options, optionsExternalFile) }
39
+ const key = redefinedOptions.key || SYMBOLS_KEY
45
40
  fetchAsync(domqlApp, key, { utils, ...redefinedOptions })
46
41
 
47
42
  return domqlApp