x-block-lib 0.5.0 → 0.5.2
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/index.js +9 -10
- package/dist/state/runtime.d.ts +2 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1162,25 +1162,24 @@ function Mg() {
|
|
|
1162
1162
|
return e;
|
|
1163
1163
|
}
|
|
1164
1164
|
function Np(e) {
|
|
1165
|
-
const t = []
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
o.children.forEach((c) => {
|
|
1165
|
+
const t = [], n = (o, i, s) => {
|
|
1166
|
+
if (i !== "" && (i += "."), i += o.key, !o.ui) {
|
|
1167
|
+
o.children && o.children.forEach((c) => {
|
|
1169
1168
|
n(c, i, o.name);
|
|
1170
1169
|
});
|
|
1171
1170
|
return;
|
|
1172
1171
|
}
|
|
1173
|
-
if (o.static)
|
|
1172
|
+
if (o.ui === "strInput" && o.static)
|
|
1174
1173
|
return;
|
|
1175
1174
|
const a = [];
|
|
1176
|
-
s && a.push(s);
|
|
1175
|
+
s && a.push(s), a.push(o.name);
|
|
1177
1176
|
const r = {
|
|
1178
1177
|
keys: i,
|
|
1179
1178
|
names: a,
|
|
1180
|
-
|
|
1179
|
+
raw: o
|
|
1181
1180
|
};
|
|
1182
|
-
|
|
1183
|
-
}
|
|
1181
|
+
t.push(r);
|
|
1182
|
+
};
|
|
1184
1183
|
return e.forEach((o) => {
|
|
1185
1184
|
n(o, "", "");
|
|
1186
1185
|
}), t;
|
|
@@ -5982,7 +5981,7 @@ const Ld = {
|
|
|
5982
5981
|
U.get_node_prop_v1 = Ld;
|
|
5983
5982
|
l.forBlock.get_node_prop_v1 = function(e) {
|
|
5984
5983
|
const t = e, n = l.quote_(t.node.id), o = l.quote_(t.prop.keys);
|
|
5985
|
-
return [`
|
|
5984
|
+
return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
|
|
5986
5985
|
};
|
|
5987
5986
|
function Di() {
|
|
5988
5987
|
const { apps: e } = q.app;
|
package/dist/state/runtime.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProp } from 'x-runtime-lib';
|
|
2
2
|
export type Prop = {
|
|
3
3
|
keys: string;
|
|
4
4
|
names: string[];
|
|
5
|
-
|
|
6
|
-
default?: any;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
items?: ZItem[];
|
|
9
|
-
types?: ZType[];
|
|
5
|
+
raw: ZProp;
|
|
10
6
|
};
|
|
11
7
|
export type Props = {
|
|
12
8
|
[key: string]: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"vue": "^3.5.12",
|
|
35
35
|
"vuetify": "^3.7.3",
|
|
36
36
|
"x-essential-lib": "^0.7.3",
|
|
37
|
-
"x-runtime-lib": "^0.4
|
|
37
|
+
"x-runtime-lib": "^0.5.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^10.0.0",
|