@baishuyun/ui-mobile 0.15.2 → 0.16.0

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