@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.
- package/dist/cjs/bundle/index.js +7243 -11617
- package/dist/cjs/define.js +5 -5
- package/dist/cjs/index.js +2 -6
- package/package.json +2 -2
- package/src/define.js +1 -1
- package/src/index.js +3 -8
package/dist/cjs/define.js
CHANGED
|
@@ -21,7 +21,7 @@ __export(define_exports, {
|
|
|
21
21
|
defaultDefine: () => defaultDefine
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(define_exports);
|
|
24
|
-
var
|
|
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:
|
|
42
|
-
$setCollection:
|
|
43
|
-
$stateCollection:
|
|
44
|
-
$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
|
|
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
package/src/define.js
CHANGED
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
|
|
37
|
-
|
|
38
|
-
const domqlApp = createDomqlElement(App, redefinedOptions)
|
|
36
|
+
const domqlApp = create(App, options, optionsExternalFile)
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
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
|