@symbo.ls/create 2.11.498 → 2.11.500
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 +46 -26
- package/package.json +6 -6
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -3673,6 +3673,22 @@ var require_cjs2 = __commonJS({
|
|
|
3673
3673
|
tag,
|
|
3674
3674
|
props: { ...element }
|
|
3675
3675
|
});
|
|
3676
|
+
if (newElem.props.data) {
|
|
3677
|
+
newElem.data = newElem.props.data;
|
|
3678
|
+
delete newElem.props.data;
|
|
3679
|
+
}
|
|
3680
|
+
if (newElem.props.state) {
|
|
3681
|
+
newElem.state = newElem.props.state;
|
|
3682
|
+
delete newElem.props.state;
|
|
3683
|
+
}
|
|
3684
|
+
if (newElem.props.attr) {
|
|
3685
|
+
newElem.attr = newElem.props.attr;
|
|
3686
|
+
delete newElem.props.attr;
|
|
3687
|
+
}
|
|
3688
|
+
if (newElem.props.if) {
|
|
3689
|
+
newElem.if = newElem.props.if;
|
|
3690
|
+
delete newElem.props.if;
|
|
3691
|
+
}
|
|
3676
3692
|
if (childExtends)
|
|
3677
3693
|
newElem.childExtend = childExtends;
|
|
3678
3694
|
return newElem;
|
|
@@ -5944,6 +5960,7 @@ var require_cjs2 = __commonJS({
|
|
|
5944
5960
|
ANIMATION: () => ANIMATION,
|
|
5945
5961
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
5946
5962
|
CASES: () => CASES,
|
|
5963
|
+
CLASS: () => CLASS,
|
|
5947
5964
|
COLOR: () => COLOR2,
|
|
5948
5965
|
CONFIG: () => CONFIG3,
|
|
5949
5966
|
CSS_VARS: () => CSS_VARS,
|
|
@@ -6322,6 +6339,7 @@ var require_cjs2 = __commonJS({
|
|
|
6322
6339
|
ANIMATION: () => ANIMATION,
|
|
6323
6340
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
6324
6341
|
CASES: () => CASES,
|
|
6342
|
+
CLASS: () => CLASS,
|
|
6325
6343
|
COLOR: () => COLOR2,
|
|
6326
6344
|
DEVICES: () => DEVICES,
|
|
6327
6345
|
DOCUMENT: () => DOCUMENT,
|
|
@@ -6472,6 +6490,8 @@ var require_cjs2 = __commonJS({
|
|
|
6472
6490
|
var TEMPLATES = {};
|
|
6473
6491
|
var defaultProps4 = {};
|
|
6474
6492
|
var GRID = defaultProps4;
|
|
6493
|
+
var defaultProps5 = {};
|
|
6494
|
+
var CLASS = defaultProps5;
|
|
6475
6495
|
var RESET = {};
|
|
6476
6496
|
var CSS_VARS = {};
|
|
6477
6497
|
var CONFIG3 = {
|
|
@@ -11823,7 +11843,8 @@ var require_cjs7 = __commonJS({
|
|
|
11823
11843
|
contentElementKey: "content",
|
|
11824
11844
|
scrollToOptions: { behavior: "smooth" }
|
|
11825
11845
|
};
|
|
11826
|
-
var router = (path,
|
|
11846
|
+
var router = (path, el, state = {}, options = {}) => {
|
|
11847
|
+
const element = el || void 0;
|
|
11827
11848
|
const win = element.context.window || import_utils25.window;
|
|
11828
11849
|
const doc = element.context.document || import_utils25.document;
|
|
11829
11850
|
const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
|
|
@@ -12881,7 +12902,7 @@ var init_Media = __esm({
|
|
|
12881
12902
|
return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props4, result, element));
|
|
12882
12903
|
};
|
|
12883
12904
|
applyTrueProps = (props4, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props4, result, element));
|
|
12884
|
-
beforeClassAssign = (element, s) => {
|
|
12905
|
+
beforeClassAssign = (element, s, ctx) => {
|
|
12885
12906
|
const { props: props4, class: className, context } = element;
|
|
12886
12907
|
const CLASS_NAMES = {
|
|
12887
12908
|
media: {},
|
|
@@ -12908,7 +12929,17 @@ var init_Media = __esm({
|
|
|
12908
12929
|
}
|
|
12909
12930
|
if (setter)
|
|
12910
12931
|
setter(key, props4[key], CLASS_NAMES, element);
|
|
12911
|
-
else if (key === "
|
|
12932
|
+
else if (key === "class") {
|
|
12933
|
+
const value2 = element.props.class;
|
|
12934
|
+
if (!element.call("isString", value2))
|
|
12935
|
+
return;
|
|
12936
|
+
const classArr = value2.split(" ");
|
|
12937
|
+
const scratchClasses = ctx.designSystem.CLASS;
|
|
12938
|
+
CLASS_NAMES.class = classArr.reduce((accumulator, current) => {
|
|
12939
|
+
const scratchClass = scratchClasses[current];
|
|
12940
|
+
return (0, import_utils7.merge)(accumulator, scratchClass);
|
|
12941
|
+
}, {});
|
|
12942
|
+
} else if (key === "true")
|
|
12912
12943
|
applyTrueProps(props4[key], CLASS_NAMES, element);
|
|
12913
12944
|
}
|
|
12914
12945
|
const parentProps = element.parent && element.parent.props;
|
|
@@ -13582,8 +13613,8 @@ var require_updateState = __commonJS({
|
|
|
13582
13613
|
var hoistStateUpdate = (state, obj, options) => {
|
|
13583
13614
|
const element = state.__element;
|
|
13584
13615
|
const { parent, __ref: ref } = element;
|
|
13585
|
-
const stateKey = ref.__state;
|
|
13586
|
-
const stateType = ref.__stateType;
|
|
13616
|
+
const stateKey = ref == null ? void 0 : ref.__state;
|
|
13617
|
+
const stateType = ref == null ? void 0 : ref.__stateType;
|
|
13587
13618
|
if (!stateKey)
|
|
13588
13619
|
return;
|
|
13589
13620
|
const asksForInherit = (0, import_inherit.checkIfInherits)(element);
|
|
@@ -14980,9 +15011,6 @@ var init_Select = __esm({
|
|
|
14980
15011
|
cursor: "pointer",
|
|
14981
15012
|
childProps: {
|
|
14982
15013
|
tag: "option",
|
|
14983
|
-
value: "",
|
|
14984
|
-
selected: "",
|
|
14985
|
-
disabled: "",
|
|
14986
15014
|
attr: {
|
|
14987
15015
|
value: ({ props: props4 }) => props4.value,
|
|
14988
15016
|
selected: ({ props: props4 }) => props4.selected,
|
|
@@ -22744,9 +22772,9 @@ var init_client = __esm({
|
|
|
22744
22772
|
}
|
|
22745
22773
|
});
|
|
22746
22774
|
|
|
22747
|
-
// ../sync/dist/cjs/
|
|
22748
|
-
var
|
|
22749
|
-
"../sync/dist/cjs/
|
|
22775
|
+
// ../sync/dist/cjs/SyncNotifications.js
|
|
22776
|
+
var require_SyncNotifications = __commonJS({
|
|
22777
|
+
"../sync/dist/cjs/SyncNotifications.js"(exports, module2) {
|
|
22750
22778
|
"use strict";
|
|
22751
22779
|
var __defProp2 = Object.defineProperty;
|
|
22752
22780
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -22765,12 +22793,12 @@ var require_Notifications = __commonJS({
|
|
|
22765
22793
|
return to;
|
|
22766
22794
|
};
|
|
22767
22795
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
22768
|
-
var
|
|
22769
|
-
__export2(
|
|
22796
|
+
var SyncNotifications_exports = {};
|
|
22797
|
+
__export2(SyncNotifications_exports, {
|
|
22770
22798
|
Notifications: () => Notifications2,
|
|
22771
22799
|
connectedToSymbols: () => connectedToSymbols
|
|
22772
22800
|
});
|
|
22773
|
-
module2.exports = __toCommonJS2(
|
|
22801
|
+
module2.exports = __toCommonJS2(SyncNotifications_exports);
|
|
22774
22802
|
var NOTIF_COLORS = {
|
|
22775
22803
|
success: "green",
|
|
22776
22804
|
error: "red",
|
|
@@ -23071,13 +23099,6 @@ var require_Inspect = __commonJS({
|
|
|
23071
23099
|
}
|
|
23072
23100
|
});
|
|
23073
23101
|
|
|
23074
|
-
// ../sync/dist/cjs/DefaultSyncApp.js
|
|
23075
|
-
var require_DefaultSyncApp = __commonJS({
|
|
23076
|
-
"../sync/dist/cjs/DefaultSyncApp.js"() {
|
|
23077
|
-
"use strict";
|
|
23078
|
-
}
|
|
23079
|
-
});
|
|
23080
|
-
|
|
23081
23102
|
// ../sync/dist/cjs/index.js
|
|
23082
23103
|
var require_cjs14 = __commonJS({
|
|
23083
23104
|
"../sync/dist/cjs/index.js"(exports, module2) {
|
|
@@ -23112,10 +23133,9 @@ var require_cjs14 = __commonJS({
|
|
|
23112
23133
|
var import_client = (init_client(), __toCommonJS(client_exports));
|
|
23113
23134
|
var import_globals = require_cjs9();
|
|
23114
23135
|
var import_utils25 = require_cjs();
|
|
23115
|
-
var
|
|
23136
|
+
var import_SyncNotifications = require_SyncNotifications();
|
|
23116
23137
|
var import_Inspect = require_Inspect();
|
|
23117
|
-
__reExport2(sync_exports,
|
|
23118
|
-
__reExport2(sync_exports, require_Notifications(), module2.exports);
|
|
23138
|
+
__reExport2(sync_exports, require_SyncNotifications(), module2.exports);
|
|
23119
23139
|
__reExport2(sync_exports, require_Inspect(), module2.exports);
|
|
23120
23140
|
var isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
|
|
23121
23141
|
var onConnect = (element, state) => {
|
|
@@ -23161,7 +23181,7 @@ var require_cjs14 = __commonJS({
|
|
|
23161
23181
|
(0, import_init3.init)(designSystem);
|
|
23162
23182
|
}
|
|
23163
23183
|
if (ctx.editor.verbose && event === "clients") {
|
|
23164
|
-
(0,
|
|
23184
|
+
(0, import_SyncNotifications.connectedToSymbols)(data, el, s);
|
|
23165
23185
|
}
|
|
23166
23186
|
};
|
|
23167
23187
|
};
|
|
@@ -23181,7 +23201,7 @@ var require_cjs14 = __commonJS({
|
|
|
23181
23201
|
}
|
|
23182
23202
|
};
|
|
23183
23203
|
var DefaultSyncApp = {
|
|
23184
|
-
extend: [SyncComponent2, import_Inspect.Inspect,
|
|
23204
|
+
extend: [SyncComponent2, import_Inspect.Inspect, import_SyncNotifications.Notifications]
|
|
23185
23205
|
};
|
|
23186
23206
|
}
|
|
23187
23207
|
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.500",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "26be30022a9bbce9288b98f013bb1c3381767960",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@domql/report": "^2.5.0",
|
|
36
36
|
"@domql/router": "^2.5.0",
|
|
37
37
|
"@symbo.ls/fetch": "^2.11.475",
|
|
38
|
-
"@symbo.ls/init": "^2.11.
|
|
39
|
-
"@symbo.ls/scratch": "^2.11.
|
|
40
|
-
"@symbo.ls/sync": "^2.11.
|
|
41
|
-
"@symbo.ls/uikit": "^2.11.
|
|
38
|
+
"@symbo.ls/init": "^2.11.500",
|
|
39
|
+
"@symbo.ls/scratch": "^2.11.500",
|
|
40
|
+
"@symbo.ls/sync": "^2.11.500",
|
|
41
|
+
"@symbo.ls/uikit": "^2.11.500",
|
|
42
42
|
"@symbo.ls/utils": "^2.11.497",
|
|
43
43
|
"domql": "^2.5.158"
|
|
44
44
|
},
|