@baishuyun/ui-mobile 0.18.1 → 0.18.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/AMap/index.js +1 -1
- package/dist/ActionSheet/index.js +1 -1
- package/dist/AiRuntimeContainer/index.js +106 -123
- package/dist/Calendar/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/Editor/index.js +1 -1
- package/dist/FieldCard/index.js +1 -1
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Kanban/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Popup/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendors/{version-nUcqM1Sa.js → version-CumunVJb.js} +1 -1
- package/package.json +1 -1
package/dist/AMap/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CumunVJb.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { Component as t, useCallback as n, useEffect as r, useLayoutEffect as i, useMemo as a, useRef as o } from "react";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -15,25 +15,12 @@ var f = ["react", "lucide-react"], p = new Set(f), m = f.join("、"), h = [
|
|
|
15
15
|
"formData",
|
|
16
16
|
"env"
|
|
17
17
|
], g = new Set([
|
|
18
|
-
"fetch",
|
|
19
|
-
"XMLHttpRequest",
|
|
20
|
-
"WebSocket",
|
|
21
|
-
"EventSource",
|
|
22
|
-
"eval",
|
|
23
|
-
"Function",
|
|
24
|
-
"globalThis",
|
|
25
|
-
"self",
|
|
26
|
-
"window",
|
|
27
|
-
"localStorage",
|
|
28
|
-
"sessionStorage",
|
|
29
|
-
"indexedDB"
|
|
30
|
-
]), _ = new Set([
|
|
31
18
|
"script",
|
|
32
19
|
"iframe",
|
|
33
20
|
"object",
|
|
34
21
|
"embed",
|
|
35
22
|
"link"
|
|
36
|
-
]),
|
|
23
|
+
]), _ = new Set([
|
|
37
24
|
"loc",
|
|
38
25
|
"start",
|
|
39
26
|
"end",
|
|
@@ -42,74 +29,70 @@ var f = ["react", "lucide-react"], p = new Set(f), m = f.join("、"), h = [
|
|
|
42
29
|
"leadingComments",
|
|
43
30
|
"trailingComments",
|
|
44
31
|
"innerComments"
|
|
45
|
-
]),
|
|
46
|
-
function
|
|
32
|
+
]), v = /url\(\s*['"]?\s*(?:https?:)?\/\//i, y = (e) => e?.type === "FunctionDeclaration" || e?.type === "FunctionExpression" || e?.type === "ArrowFunctionExpression";
|
|
33
|
+
function b(e, t) {
|
|
47
34
|
if (!(!e || typeof e.type != "string") && t(e) !== !1) for (let n of Object.keys(e)) {
|
|
48
|
-
if (
|
|
35
|
+
if (_.has(n)) continue;
|
|
49
36
|
let r = e[n];
|
|
50
|
-
Array.isArray(r) ? r.forEach((e) =>
|
|
37
|
+
Array.isArray(r) ? r.forEach((e) => b(e, t)) : r && typeof r == "object" && b(r, t);
|
|
51
38
|
}
|
|
52
39
|
}
|
|
53
|
-
function
|
|
40
|
+
function x(e) {
|
|
54
41
|
let t = e.body.find((e) => e.type === "ExportDefaultDeclaration")?.declaration;
|
|
55
42
|
if (!t) return null;
|
|
56
|
-
if (
|
|
43
|
+
if (y(t)) return t;
|
|
57
44
|
if (t.type !== "Identifier") return null;
|
|
58
45
|
for (let n of e.body) {
|
|
59
46
|
if (n.type === "FunctionDeclaration" && n.id?.name === t.name) return n;
|
|
60
47
|
if (n.type === "VariableDeclaration") {
|
|
61
|
-
let e = n.declarations.find((e) => e.id?.name === t.name &&
|
|
48
|
+
let e = n.declarations.find((e) => e.id?.name === t.name && y(e.init));
|
|
62
49
|
if (e) return e.init;
|
|
63
50
|
}
|
|
64
51
|
}
|
|
65
52
|
return null;
|
|
66
53
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
54
|
+
var S = (e) => e.computed ? null : e.key.type === "Identifier" ? e.key.name : e.key.type === "StringLiteral" ? e.key.value : null;
|
|
55
|
+
function C(e, t, n) {
|
|
69
56
|
for (let r of e.properties) {
|
|
70
57
|
if (r.type === "RestElement") {
|
|
71
58
|
n.push(`组件不能用 ...rest 收集 props,请只解构 ${h.join("、")}。`);
|
|
72
59
|
continue;
|
|
73
60
|
}
|
|
74
|
-
let e =
|
|
61
|
+
let e = S(r);
|
|
75
62
|
e === null ? n.push("组件的 props 不能使用计算属性名。") : h.includes(e) || t.add(e);
|
|
76
63
|
}
|
|
77
64
|
}
|
|
78
|
-
function
|
|
65
|
+
function w(e) {
|
|
79
66
|
let t = [], n = /* @__PURE__ */ new Set(), [r] = e.params;
|
|
80
|
-
return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ?
|
|
67
|
+
return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ? C(r, n, t) : r?.type === "Identifier" && b(e.body, (e) => {
|
|
81
68
|
if (e.type === "MemberExpression" && e.object?.name === r.name) {
|
|
82
69
|
let r = e.computed ? null : e.property.name;
|
|
83
70
|
return r === null ? t.push("组件不能用动态键读取 props。") : h.includes(r) || n.add(r), !1;
|
|
84
71
|
}
|
|
85
|
-
return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (
|
|
72
|
+
return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (C(e.id, n, t), !1) : !0;
|
|
86
73
|
}), n.size && t.unshift(`组件签名只能接收 ${h.join("、")},发现多余的 props:${[...n].join("、")}。平台不会传入它们,请删除,需要的文案或配置直接写在组件内部。`), t;
|
|
87
74
|
}
|
|
88
|
-
function
|
|
89
|
-
let t = /* @__PURE__ */ new Set()
|
|
75
|
+
function T(e) {
|
|
76
|
+
let t = /* @__PURE__ */ new Set();
|
|
77
|
+
return b(e, (e) => {
|
|
90
78
|
switch (e.type) {
|
|
91
|
-
case "Identifier": return g.has(e.name) && t.add(e.name), !0;
|
|
92
|
-
case "MemberExpression":
|
|
93
|
-
case "OptionalMemberExpression": return w(e.property) === "constructor" && t.add("constructor"), e.computed ? !0 : (x(e.object, n), !1);
|
|
94
|
-
case "ObjectProperty": return e.computed ? !0 : (x(e.value, n), !1);
|
|
95
79
|
case "ImportDeclaration": return p.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${m})`), !1;
|
|
96
80
|
case "Import":
|
|
97
81
|
case "ImportExpression": return t.add("动态 import()"), !0;
|
|
98
82
|
case "JSXOpeningElement": {
|
|
99
83
|
let n = e.name?.name;
|
|
100
|
-
return
|
|
84
|
+
return g.has(n) && t.add(`<${n}>`), !0;
|
|
101
85
|
}
|
|
102
86
|
case "JSXAttribute": return e.name?.name === "dangerouslySetInnerHTML" && t.add("dangerouslySetInnerHTML"), !0;
|
|
103
87
|
default: return !0;
|
|
104
88
|
}
|
|
105
|
-
};
|
|
106
|
-
return x(e, n), [...t];
|
|
89
|
+
}), [...t];
|
|
107
90
|
}
|
|
108
|
-
function
|
|
91
|
+
function E(e) {
|
|
109
92
|
let t = [];
|
|
110
|
-
return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"),
|
|
93
|
+
return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"), v.test(e) && t.push("CSS 中不能引用外部地址,图片请用内联 svg 或 data: 地址。"), t;
|
|
111
94
|
}
|
|
112
|
-
function
|
|
95
|
+
function D(e, t = null) {
|
|
113
96
|
let n = [], r = null;
|
|
114
97
|
try {
|
|
115
98
|
r = c.packages.parser.parse(e, {
|
|
@@ -120,20 +103,20 @@ function k(e, t = null) {
|
|
|
120
103
|
if (!(e instanceof SyntaxError)) throw e;
|
|
121
104
|
}
|
|
122
105
|
if (r) {
|
|
123
|
-
let e =
|
|
124
|
-
e && n.push(...
|
|
125
|
-
let t =
|
|
126
|
-
t.length && n.push(`不允许使用:${t.join("、")}
|
|
106
|
+
let e = x(r);
|
|
107
|
+
e && n.push(...w(e));
|
|
108
|
+
let t = T(r);
|
|
109
|
+
t.length && n.push(`不允许使用:${t.join("、")}。组件只能 import 宿主注册过的模块,也不能注入脚本和原始 HTML。`);
|
|
127
110
|
}
|
|
128
|
-
return t != null && n.push(...
|
|
111
|
+
return t != null && n.push(...E(t)), n;
|
|
129
112
|
}
|
|
130
|
-
function
|
|
131
|
-
let n =
|
|
113
|
+
function O(e, t = null) {
|
|
114
|
+
let n = D(e, t);
|
|
132
115
|
if (n.length) throw Error(`组件不符合运行时约束:\n${n.map((e) => `- ${e}`).join("\n")}`);
|
|
133
116
|
}
|
|
134
117
|
//#endregion
|
|
135
118
|
//#region ../shared/src/ai-runtime/checkCssSyntax.ts
|
|
136
|
-
function
|
|
119
|
+
function k(e, t = "style.css") {
|
|
137
120
|
e?.trim() && u(l(e, {
|
|
138
121
|
filename: t,
|
|
139
122
|
positions: !0,
|
|
@@ -147,15 +130,15 @@ function j(e, t = "style.css") {
|
|
|
147
130
|
}
|
|
148
131
|
//#endregion
|
|
149
132
|
//#region ../shared/src/ai-runtime/sourceText.ts
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
if (!e ||
|
|
153
|
-
let t = e.match(
|
|
133
|
+
var A = /function\s+([A-Za-z_$][\w$]*)/, j = /export\s+default\b/;
|
|
134
|
+
function M(e) {
|
|
135
|
+
if (!e || j.test(e)) return e;
|
|
136
|
+
let t = e.match(A)?.[1];
|
|
154
137
|
return t ? `${e.trim()}\nexport default ${t};\n` : e;
|
|
155
138
|
}
|
|
156
139
|
//#endregion
|
|
157
140
|
//#region ../shared/src/ai-runtime/parseSourceCode.ts
|
|
158
|
-
var
|
|
141
|
+
var N = /<(jsx|css)>([\s\S]*?)<\/\1>/g, P = {
|
|
159
142
|
ast: !1,
|
|
160
143
|
sourceType: "module",
|
|
161
144
|
presets: [["react", {
|
|
@@ -164,10 +147,10 @@ var re = /<(jsx|css)>([\s\S]*?)<\/\1>/g, ie = {
|
|
|
164
147
|
}]],
|
|
165
148
|
plugins: ["transform-modules-commonjs"]
|
|
166
149
|
};
|
|
167
|
-
function
|
|
150
|
+
function F(e) {
|
|
168
151
|
if (typeof e != "string" || !e.trim()) return null;
|
|
169
152
|
let t = null, n = null;
|
|
170
|
-
for (let r of e.matchAll(
|
|
153
|
+
for (let r of e.matchAll(N)) {
|
|
171
154
|
let e = r[2].trim();
|
|
172
155
|
r[1] === "jsx" && (t = e), r[1] === "css" && (n = e);
|
|
173
156
|
}
|
|
@@ -176,14 +159,14 @@ function N(e) {
|
|
|
176
159
|
css: n
|
|
177
160
|
};
|
|
178
161
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
let n =
|
|
162
|
+
var te = "export default function AiRuntimeField() {\n return null;\n}";
|
|
163
|
+
function I(e, t = "ai") {
|
|
164
|
+
let n = F(e);
|
|
182
165
|
if (!n) throw Error("code 里没有可用的 <jsx> 或 <css>。");
|
|
183
|
-
let r =
|
|
184
|
-
i &&
|
|
166
|
+
let r = M(n.jsx || te), i = n.css ?? "";
|
|
167
|
+
i && k(i, `${t}.css`), O(r, i || null);
|
|
185
168
|
let a = c.transform(r, {
|
|
186
|
-
...
|
|
169
|
+
...P,
|
|
187
170
|
filename: `${t}.jsx`
|
|
188
171
|
});
|
|
189
172
|
if (!a?.code) throw Error("Babel 没有产出可执行的代码。");
|
|
@@ -194,18 +177,18 @@ function P(e, t = "ai") {
|
|
|
194
177
|
}
|
|
195
178
|
//#endregion
|
|
196
179
|
//#region ../shared/src/ai-runtime/compileCache.ts
|
|
197
|
-
var
|
|
180
|
+
var ne = 200, L = /* @__PURE__ */ new Map(), re = Object.freeze({
|
|
198
181
|
ok: !1,
|
|
199
182
|
code: "",
|
|
200
183
|
css: "",
|
|
201
184
|
error: null
|
|
202
|
-
}),
|
|
203
|
-
if (typeof e != "string" || !e.trim()) return
|
|
204
|
-
let n =
|
|
205
|
-
if (n) return
|
|
185
|
+
}), R = (e, t) => {
|
|
186
|
+
if (typeof e != "string" || !e.trim()) return re;
|
|
187
|
+
let n = L.get(e);
|
|
188
|
+
if (n) return L.delete(e), L.set(e, n), n;
|
|
206
189
|
let r;
|
|
207
190
|
try {
|
|
208
|
-
let n =
|
|
191
|
+
let n = I(e, t);
|
|
209
192
|
r = {
|
|
210
193
|
ok: !0,
|
|
211
194
|
code: n.code,
|
|
@@ -220,83 +203,83 @@ var F = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
|
|
|
220
203
|
error: e
|
|
221
204
|
};
|
|
222
205
|
}
|
|
223
|
-
if (
|
|
224
|
-
let e =
|
|
225
|
-
e !== void 0 &&
|
|
206
|
+
if (L.size >= ne) {
|
|
207
|
+
let e = L.keys().next().value;
|
|
208
|
+
e !== void 0 && L.delete(e);
|
|
226
209
|
}
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
},
|
|
210
|
+
return L.set(e, r), r;
|
|
211
|
+
}, z = () => {
|
|
212
|
+
L.clear();
|
|
213
|
+
}, B = (e, t) => {
|
|
231
214
|
let n = {};
|
|
232
215
|
for (let t of Object.keys(e)) n[t] = e[t];
|
|
233
216
|
return (n.default === void 0 || n.default === null) && (n.default = t), Object.defineProperty(n, "__esModule", { value: !0 }), n;
|
|
234
|
-
},
|
|
235
|
-
react:
|
|
236
|
-
"lucide-react":
|
|
237
|
-
},
|
|
217
|
+
}, V = e.default || e, ie = {
|
|
218
|
+
react: B(e, V),
|
|
219
|
+
"lucide-react": B(d, d)
|
|
220
|
+
}, H = {};
|
|
238
221
|
for (let e of f) {
|
|
239
|
-
let t =
|
|
222
|
+
let t = ie[e];
|
|
240
223
|
if (!t) throw Error(`模块 ${e} 在白名单里但没有实现。`);
|
|
241
|
-
|
|
224
|
+
H[e] = t;
|
|
242
225
|
}
|
|
243
|
-
var
|
|
244
|
-
let t =
|
|
226
|
+
var U = Object.keys(H), ae = (e) => {
|
|
227
|
+
let t = H[e];
|
|
245
228
|
if (t) return t;
|
|
246
|
-
throw Error(`Unknown module: ${e}(组件只能 require ${
|
|
247
|
-
},
|
|
229
|
+
throw Error(`Unknown module: ${e}(组件只能 require ${U.join("、")})`);
|
|
230
|
+
}, W = {
|
|
248
231
|
COMPILE: 4001,
|
|
249
232
|
EXECUTE: 4002,
|
|
250
233
|
RENDER: 5001,
|
|
251
234
|
RUNTIME: 5002
|
|
252
|
-
},
|
|
235
|
+
}, oe = new Set(Object.values(W)), G = (e, t) => {
|
|
253
236
|
let n = e instanceof Error ? e : Error(String(e)), r = n.code;
|
|
254
|
-
return (typeof r != "number" || !
|
|
255
|
-
},
|
|
237
|
+
return (typeof r != "number" || !oe.has(r)) && (n.code = t), n;
|
|
238
|
+
}, K = 0, se = (e) => (K += 1, `ai-runtime-${e}-${K}.js`), ce = (e, t) => {
|
|
256
239
|
if (!e) throw Error("没有可执行的代码。");
|
|
257
240
|
let n = {}, r = `${e}\n//# sourceURL=${t}`;
|
|
258
|
-
if (Function("require", "exports", "React", r)(
|
|
241
|
+
if (Function("require", "exports", "React", r)(ae, n, V), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
|
|
259
242
|
return n.default;
|
|
260
|
-
},
|
|
261
|
-
e && typeof e == "object" &&
|
|
262
|
-
},
|
|
263
|
-
if (e && typeof e == "object" &&
|
|
243
|
+
}, q = /* @__PURE__ */ new Map(), J = !1, Y = /* @__PURE__ */ new WeakSet(), le = (e) => {
|
|
244
|
+
e && typeof e == "object" && Y.add(e);
|
|
245
|
+
}, X = (e) => {
|
|
246
|
+
if (e && typeof e == "object" && Y.has(e)) return;
|
|
264
247
|
let t = e instanceof Error ? e.stack : void 0;
|
|
265
248
|
if (typeof t == "string") {
|
|
266
|
-
for (let [n, r] of
|
|
267
|
-
r(
|
|
249
|
+
for (let [n, r] of q) if (t.includes(n)) {
|
|
250
|
+
r(G(e, W.RUNTIME));
|
|
268
251
|
return;
|
|
269
252
|
}
|
|
270
253
|
}
|
|
271
|
-
},
|
|
272
|
-
|
|
254
|
+
}, ue = () => {
|
|
255
|
+
J || typeof window > "u" || (J = !0, window.addEventListener("error", (e) => {
|
|
273
256
|
let t = e.error || Error(e.message);
|
|
274
|
-
queueMicrotask(() =>
|
|
257
|
+
queueMicrotask(() => X(t));
|
|
275
258
|
}), window.addEventListener("unhandledrejection", (e) => {
|
|
276
259
|
let t = e.reason;
|
|
277
|
-
queueMicrotask(() =>
|
|
260
|
+
queueMicrotask(() => X(t));
|
|
278
261
|
}));
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
},
|
|
262
|
+
}, de = (e, t) => {
|
|
263
|
+
ue(), q.set(e, t);
|
|
264
|
+
}, fe = (e) => {
|
|
265
|
+
q.delete(e);
|
|
266
|
+
}, pe = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, Z = (e) => typeof e != "string" || !e ? "" : e.replace(pe, "$1:host"), me = typeof window > "u" ? r : i, he = class extends t {
|
|
284
267
|
state = { failed: !1 };
|
|
285
268
|
static getDerivedStateFromError() {
|
|
286
269
|
return { failed: !0 };
|
|
287
270
|
}
|
|
288
271
|
componentDidCatch(e) {
|
|
289
|
-
|
|
272
|
+
le(e), this.props.onError(G(e, W.RENDER));
|
|
290
273
|
}
|
|
291
274
|
render() {
|
|
292
275
|
return this.state.failed ? null : this.props.children;
|
|
293
276
|
}
|
|
294
|
-
},
|
|
277
|
+
}, ge = new Set([
|
|
295
278
|
"form",
|
|
296
279
|
"table",
|
|
297
280
|
"card"
|
|
298
|
-
]),
|
|
299
|
-
view:
|
|
281
|
+
]), _e = (e) => ({
|
|
282
|
+
view: ge.has(e?.view) ? e?.view : "form",
|
|
300
283
|
platform: e?.platform === "mobile" ? "mobile" : "pc"
|
|
301
284
|
}), Q = (e, t) => {
|
|
302
285
|
let n = e ?? {};
|
|
@@ -305,15 +288,15 @@ var V = Object.keys(B), le = (e) => {
|
|
|
305
288
|
disabled: !!n.disabled,
|
|
306
289
|
readOnly: !!n.readOnly,
|
|
307
290
|
formData: n.formData || {},
|
|
308
|
-
env:
|
|
291
|
+
env: _e(n.env),
|
|
309
292
|
onChange: t
|
|
310
293
|
};
|
|
311
|
-
},
|
|
294
|
+
}, ve = {
|
|
312
295
|
ok: !1,
|
|
313
296
|
error: null,
|
|
314
297
|
Component: null
|
|
315
298
|
};
|
|
316
|
-
function
|
|
299
|
+
function ye(e) {
|
|
317
300
|
let t = ({ code: t, value: i, disabled: c, readOnly: l, formData: u, env: d, runToken: f, height: p, minHeight: m, className: h, style: g, onChange: _, onError: v }) => {
|
|
318
301
|
let y = o(null), b = o(null), x = o(null), S = o({});
|
|
319
302
|
S.current = {
|
|
@@ -321,11 +304,11 @@ function xe(e) {
|
|
|
321
304
|
onError: v
|
|
322
305
|
};
|
|
323
306
|
let C = o(null);
|
|
324
|
-
C.current === null && (C.current =
|
|
325
|
-
let w = C.current, T =
|
|
307
|
+
C.current === null && (C.current = se(e));
|
|
308
|
+
let w = C.current, T = R(t), E = o({
|
|
326
309
|
source: void 0,
|
|
327
310
|
token: void 0,
|
|
328
|
-
result:
|
|
311
|
+
result: ve
|
|
329
312
|
});
|
|
330
313
|
if (E.current.source !== t || E.current.token !== f) {
|
|
331
314
|
let e;
|
|
@@ -338,7 +321,7 @@ function xe(e) {
|
|
|
338
321
|
e = {
|
|
339
322
|
ok: !0,
|
|
340
323
|
error: null,
|
|
341
|
-
Component:
|
|
324
|
+
Component: ce(T.code, w)
|
|
342
325
|
};
|
|
343
326
|
} catch (t) {
|
|
344
327
|
e = {
|
|
@@ -359,7 +342,7 @@ function xe(e) {
|
|
|
359
342
|
if (!e) return null;
|
|
360
343
|
let t = e.shadowRoot || e.attachShadow({ mode: "open" }), n = document.createElement("style"), r = document.createElement("div");
|
|
361
344
|
return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), b.current = {
|
|
362
|
-
root: ee(r, { onUncaughtError: (e) => S.current.onError?.(
|
|
345
|
+
root: ee(r, { onUncaughtError: (e) => S.current.onError?.(G(e, W.RUNTIME)) }),
|
|
363
346
|
styleEl: n,
|
|
364
347
|
mountEl: r
|
|
365
348
|
}, b.current;
|
|
@@ -377,22 +360,22 @@ function xe(e) {
|
|
|
377
360
|
d,
|
|
378
361
|
O
|
|
379
362
|
]);
|
|
380
|
-
|
|
363
|
+
me(() => {
|
|
381
364
|
let e = A();
|
|
382
365
|
if (!e) return;
|
|
383
366
|
let { root: t, styleEl: n } = e;
|
|
384
367
|
if (!D.ok) {
|
|
385
368
|
if (x.current !== D && (x.current = D, n.textContent = "", t.render(null), D.error)) {
|
|
386
|
-
let e = T.ok ?
|
|
387
|
-
S.current.onError?.(
|
|
369
|
+
let e = T.ok ? W.EXECUTE : W.COMPILE;
|
|
370
|
+
S.current.onError?.(G(D.error, e));
|
|
388
371
|
}
|
|
389
372
|
return;
|
|
390
373
|
}
|
|
391
374
|
x.current = null;
|
|
392
|
-
let r =
|
|
375
|
+
let r = Z(T.css);
|
|
393
376
|
n.textContent !== r && (n.textContent = r);
|
|
394
377
|
let i = D.Component;
|
|
395
|
-
t.render(/* @__PURE__ */ s(
|
|
378
|
+
t.render(/* @__PURE__ */ s(he, {
|
|
396
379
|
onError: k,
|
|
397
380
|
children: /* @__PURE__ */ s(i, { ...j })
|
|
398
381
|
}));
|
|
@@ -405,7 +388,7 @@ function xe(e) {
|
|
|
405
388
|
]), r(() => () => {
|
|
406
389
|
let e = b.current;
|
|
407
390
|
b.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
|
|
408
|
-
}, []), r(() => (
|
|
391
|
+
}, []), r(() => (de(w, (e) => S.current.onError?.(e)), () => fe(w)), [w]);
|
|
409
392
|
let M = {
|
|
410
393
|
height: p ?? "auto",
|
|
411
394
|
minHeight: m ?? 32,
|
|
@@ -424,6 +407,6 @@ function xe(e) {
|
|
|
424
407
|
}
|
|
425
408
|
//#endregion
|
|
426
409
|
//#region src/components/AiRuntimeContainer/index.ts
|
|
427
|
-
var $ =
|
|
410
|
+
var $ = ye("ui-mobile");
|
|
428
411
|
//#endregion
|
|
429
|
-
export { $ as AiRuntimeContainer, $ as default,
|
|
412
|
+
export { $ as AiRuntimeContainer, $ as default, W as ERROR_CODE, U as MODULE_NAMES, O as assertFieldSource, z as clearCompileCache, I as compileAiCode, R as compileCached, Z as scopeCss, F as splitAiCode, Q as toPlainProps, D as validateFieldSource };
|
package/dist/Calendar/index.js
CHANGED
package/dist/Editor/index.js
CHANGED
package/dist/FieldCard/index.js
CHANGED
package/dist/Gantt/index.js
CHANGED
package/dist/Icon/index.js
CHANGED
package/dist/Kanban/index.js
CHANGED
package/dist/Overlay/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CumunVJb.js";
|
|
2
2
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./Overlay-DFiZYsBs.js";
|
|
3
3
|
export { a as OVERLAY_Z_BASE, n as OVERLAY_Z_STEP, i as OverlayProvider, t as getNextImperativeOverlayZIndex, e as imperativeOverlayStyle, r as useOverlayZIndex };
|
package/dist/Popup/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-CumunVJb.js";
|
|
2
2
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./Overlay/Overlay-DFiZYsBs.js";
|
|
3
3
|
import { t as o } from "./ConfigProvider/useLocale-DiKogqPs.js";
|
|
4
4
|
import { t as s } from "./Popup/Popup-Cg3t422z.js";
|