@symbo.ls/create 2.11.497 → 2.11.498
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 +24 -5
- package/dist/cjs/prepare.js +2 -1
- package/package.json +2 -2
- package/src/prepare.js +2 -1
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -1736,6 +1736,22 @@ var require_component = __commonJS({
|
|
|
1736
1736
|
tag,
|
|
1737
1737
|
props: { ...element }
|
|
1738
1738
|
});
|
|
1739
|
+
if (newElem.props.data) {
|
|
1740
|
+
newElem.data = newElem.props.data;
|
|
1741
|
+
delete newElem.props.data;
|
|
1742
|
+
}
|
|
1743
|
+
if (newElem.props.state) {
|
|
1744
|
+
newElem.state = newElem.props.state;
|
|
1745
|
+
delete newElem.props.state;
|
|
1746
|
+
}
|
|
1747
|
+
if (newElem.props.attr) {
|
|
1748
|
+
newElem.attr = newElem.props.attr;
|
|
1749
|
+
delete newElem.props.attr;
|
|
1750
|
+
}
|
|
1751
|
+
if (newElem.props.if) {
|
|
1752
|
+
newElem.if = newElem.props.if;
|
|
1753
|
+
delete newElem.props.if;
|
|
1754
|
+
}
|
|
1739
1755
|
if (childExtends)
|
|
1740
1756
|
newElem.childExtend = childExtends;
|
|
1741
1757
|
return newElem;
|
|
@@ -11546,9 +11562,10 @@ var require_on = __commonJS({
|
|
|
11546
11562
|
module2.exports = __toCommonJS2(on_exports);
|
|
11547
11563
|
var import_utils25 = require_cjs();
|
|
11548
11564
|
var getOnOrPropsEvent = (param, element) => {
|
|
11549
|
-
var _a;
|
|
11565
|
+
var _a, _b;
|
|
11550
11566
|
const onEvent = (_a = element.on) == null ? void 0 : _a[param];
|
|
11551
|
-
|
|
11567
|
+
const onPropEvent = (_b = element.props) == null ? void 0 : _b["on" + param.slice(0, 1).toUpperCase() + param.slice(1)];
|
|
11568
|
+
return onEvent || onPropEvent;
|
|
11552
11569
|
};
|
|
11553
11570
|
var applyEvent = (param, element, state, context, options) => {
|
|
11554
11571
|
return param.call(element, element, state || element.state, context || element.context, options);
|
|
@@ -16692,7 +16709,6 @@ var require_component2 = __commonJS({
|
|
|
16692
16709
|
};
|
|
16693
16710
|
for (const k in el) {
|
|
16694
16711
|
const prop = el[k];
|
|
16695
|
-
console.log(k);
|
|
16696
16712
|
const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
|
|
16697
16713
|
if (isDefine) {
|
|
16698
16714
|
newElem.define[k] = prop;
|
|
@@ -17010,12 +17026,14 @@ var require_set = __commonJS({
|
|
|
17010
17026
|
return;
|
|
17011
17027
|
}
|
|
17012
17028
|
if (params) {
|
|
17013
|
-
|
|
17029
|
+
let { childExtend, childProps, props: props4 } = params;
|
|
17014
17030
|
if (!childExtend && element.childExtend)
|
|
17015
17031
|
params.childExtend = element.childExtend;
|
|
17016
17032
|
if (!childProps && element.childProps)
|
|
17017
17033
|
params.childProps = element.childProps;
|
|
17018
17034
|
if (!(props4 == null ? void 0 : props4.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
|
|
17035
|
+
if (!props4)
|
|
17036
|
+
props4 = params.props = {};
|
|
17019
17037
|
props4.childProps = element.props.childProps;
|
|
17020
17038
|
}
|
|
17021
17039
|
if (lazyLoad) {
|
|
@@ -27185,6 +27203,7 @@ var initEmotion = (key, options = {}) => {
|
|
|
27185
27203
|
|
|
27186
27204
|
// src/prepare.js
|
|
27187
27205
|
init_uikit();
|
|
27206
|
+
var routerUtils = __toESM(require_cjs7(), 1);
|
|
27188
27207
|
var ENV2 = "development";
|
|
27189
27208
|
var prepareWindow = (context) => {
|
|
27190
27209
|
if (typeof window === "undefined")
|
|
@@ -27217,7 +27236,7 @@ var prepareComponents = (context) => {
|
|
|
27217
27236
|
return context.components ? { ...UIkitWithPrefix(), ...context.components } : UIkitWithPrefix();
|
|
27218
27237
|
};
|
|
27219
27238
|
var prepareUtils = (context) => {
|
|
27220
|
-
return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
27239
|
+
return { ...utilImports_exports, ...routerUtils, ...import_scratch2.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
27221
27240
|
};
|
|
27222
27241
|
var prepareMethods = (context) => {
|
|
27223
27242
|
return {
|
package/dist/cjs/prepare.js
CHANGED
|
@@ -45,6 +45,7 @@ var import_utils = require("@domql/utils");
|
|
|
45
45
|
var import_initEmotion = require("./initEmotion");
|
|
46
46
|
var uikit = __toESM(require("@symbo.ls/uikit"), 1);
|
|
47
47
|
var utils = __toESM(require("./utilImports"), 1);
|
|
48
|
+
var routerUtils = __toESM(require("@domql/router"), 1);
|
|
48
49
|
const ENV = "development";
|
|
49
50
|
const prepareWindow = (context) => {
|
|
50
51
|
if (typeof window === "undefined")
|
|
@@ -77,7 +78,7 @@ const prepareComponents = (context) => {
|
|
|
77
78
|
return context.components ? { ...UIkitWithPrefix(), ...context.components } : UIkitWithPrefix();
|
|
78
79
|
};
|
|
79
80
|
const prepareUtils = (context) => {
|
|
80
|
-
return { ...utils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
81
|
+
return { ...utils, ...routerUtils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
81
82
|
};
|
|
82
83
|
const prepareMethods = (context) => {
|
|
83
84
|
return {
|
package/package.json
CHANGED
package/src/prepare.js
CHANGED
|
@@ -11,6 +11,7 @@ import { initEmotion } from './initEmotion'
|
|
|
11
11
|
|
|
12
12
|
import * as uikit from '@symbo.ls/uikit'
|
|
13
13
|
import * as utils from './utilImports'
|
|
14
|
+
import * as routerUtils from '@domql/router'
|
|
14
15
|
|
|
15
16
|
const ENV = process.env.NODE_ENV
|
|
16
17
|
|
|
@@ -47,7 +48,7 @@ export const prepareComponents = context => {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export const prepareUtils = context => {
|
|
50
|
-
return { ...utils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions }
|
|
51
|
+
return { ...utils, ...routerUtils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions }
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export const prepareMethods = (context) => {
|