@baishuyun/ui-base 6.37.0 → 6.38.1

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,13 +1,18 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
4
  import { Component as n, useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as o, useRef as s } from "react";
5
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";
6
+ import * as c from "react-dom";
7
+ import * as l from "@babel/standalone";
8
+ import { parse as u, walk as d } from "css-tree";
9
+ import * as f from "lucide-react";
9
10
  //#region ../shared/src/ai-runtime/moduleNames.ts
10
- var f = ["react", "lucide-react"], p = new Set(f), m = f.join("、"), h = [
11
+ var p = [
12
+ "react",
13
+ "react-dom",
14
+ "lucide-react"
15
+ ], m = new Set(p), te = p.join("、"), h = [
11
16
  "value",
12
17
  "onChange",
13
18
  "disabled",
@@ -79,7 +84,7 @@ function T(e) {
79
84
  let t = /* @__PURE__ */ new Set();
80
85
  return b(e, (e) => {
81
86
  switch (e.type) {
82
- case "ImportDeclaration": return p.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${m})`), !1;
87
+ case "ImportDeclaration": return m.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${te})`), !1;
83
88
  case "Import":
84
89
  case "ImportExpression": return t.add("动态 import()"), !0;
85
90
  case "JSXOpeningElement": {
@@ -98,7 +103,7 @@ function E(e) {
98
103
  function D(e, t = null) {
99
104
  let n = [], r = null;
100
105
  try {
101
- r = c.packages.parser.parse(e, {
106
+ r = l.packages.parser.parse(e, {
102
107
  sourceType: "module",
103
108
  plugins: ["jsx"]
104
109
  }).program;
@@ -120,7 +125,7 @@ function O(e, t = null) {
120
125
  //#endregion
121
126
  //#region ../shared/src/ai-runtime/checkCssSyntax.ts
122
127
  function k(e, t = "style.css") {
123
- e?.trim() && u(l(e, {
128
+ e?.trim() && d(u(e, {
124
129
  filename: t,
125
130
  positions: !0,
126
131
  onParseError(e) {
@@ -162,13 +167,13 @@ function F(e) {
162
167
  css: n
163
168
  };
164
169
  }
165
- var te = "export default function AiRuntimeField() {\n return null;\n}";
170
+ var ne = "export default function AiRuntimeField() {\n return null;\n}";
166
171
  function I(e, t = "ai") {
167
172
  let n = F(e);
168
173
  if (!n) throw Error("code 里没有可用的 <jsx> 或 <css>。");
169
- let r = M(n.jsx || te), i = n.css ?? "";
174
+ let r = M(n.jsx || ne), i = n.css ?? "";
170
175
  i && k(i, `${t}.css`), O(r, i || null);
171
- let a = c.transform(r, {
176
+ let a = l.transform(r, {
172
177
  ...P,
173
178
  filename: `${t}.jsx`
174
179
  });
@@ -180,13 +185,13 @@ function I(e, t = "ai") {
180
185
  }
181
186
  //#endregion
182
187
  //#region ../shared/src/ai-runtime/compileCache.ts
183
- var ne = 200, L = /* @__PURE__ */ new Map(), re = Object.freeze({
188
+ var re = 200, L = /* @__PURE__ */ new Map(), ie = Object.freeze({
184
189
  ok: !1,
185
190
  code: "",
186
191
  css: "",
187
192
  error: null
188
193
  }), R = (e, t) => {
189
- if (typeof e != "string" || !e.trim()) return re;
194
+ if (typeof e != "string" || !e.trim()) return ie;
190
195
  let n = e, r = L.get(n);
191
196
  if (r) return L.delete(n), L.set(n, r), r;
192
197
  let i;
@@ -206,27 +211,28 @@ var ne = 200, L = /* @__PURE__ */ new Map(), re = Object.freeze({
206
211
  error: e
207
212
  };
208
213
  }
209
- if (L.size >= ne) {
214
+ if (L.size >= re) {
210
215
  let e = L.keys().next().value;
211
216
  e !== void 0 && L.delete(e);
212
217
  }
213
218
  return L.set(n, i), i;
214
- }, ie = () => {
219
+ }, ae = () => {
215
220
  L.clear();
216
221
  }, z = (e, t) => {
217
222
  let n = {};
218
223
  for (let t of Object.keys(e)) n[t] = e[t];
219
224
  return (n.default === void 0 || n.default === null) && (n.default = t), Object.defineProperty(n, "__esModule", { value: !0 }), n;
220
- }, B = t.default || t, ae = {
225
+ }, B = t.default || t, oe = c.default || c, se = {
221
226
  react: z(t, B),
222
- "lucide-react": z(d, d)
227
+ "react-dom": z(c, oe),
228
+ "lucide-react": z(f, f)
223
229
  }, V = {};
224
- for (let e of f) {
225
- let t = ae[e];
230
+ for (let e of p) {
231
+ let t = se[e];
226
232
  if (!t) throw Error(`模块 ${e} 在白名单里但没有实现。`);
227
233
  V[e] = t;
228
234
  }
229
- var H = Object.keys(V), oe = (e) => {
235
+ var H = Object.keys(V), ce = (e) => {
230
236
  let t = V[e];
231
237
  if (t) return t;
232
238
  throw Error(`Unknown module: ${e}(组件只能 require ${H.join("、")})`);
@@ -235,15 +241,15 @@ var H = Object.keys(V), oe = (e) => {
235
241
  EXECUTE: 4002,
236
242
  RENDER: 5001,
237
243
  RUNTIME: 5002
238
- }, se = new Set(Object.values(U)), W = (e, t) => {
244
+ }, le = new Set(Object.values(U)), W = (e, t) => {
239
245
  let n = e instanceof Error ? e : Error(String(e)), r = n.code;
240
- return (typeof r != "number" || !se.has(r)) && (n.code = t), n;
241
- }, G = 0, ce = (e) => (G += 1, `ai-runtime-${e}-${G}.js`), le = (e, t) => {
246
+ return (typeof r != "number" || !le.has(r)) && (n.code = t), n;
247
+ }, G = 0, ue = (e) => (G += 1, `ai-runtime-${e}-${G}.js`), de = (e, t) => {
242
248
  if (!e) throw Error("没有可执行的代码。");
243
249
  let n = {}, r = `${e}\n//# sourceURL=${t}`;
244
- if (Function("require", "exports", "React", r)(oe, n, B), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
250
+ if (Function("require", "exports", "React", r)(ce, n, B), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
245
251
  return n.default;
246
- }, K = /* @__PURE__ */ new Map(), q = !1, J = /* @__PURE__ */ new WeakSet(), ue = (e) => {
252
+ }, K = /* @__PURE__ */ new Map(), q = !1, J = /* @__PURE__ */ new WeakSet(), fe = (e) => {
247
253
  e && typeof e == "object" && J.add(e);
248
254
  }, Y = (e) => {
249
255
  if (e && typeof e == "object" && J.has(e)) return;
@@ -254,7 +260,7 @@ var H = Object.keys(V), oe = (e) => {
254
260
  return;
255
261
  }
256
262
  }
257
- }, de = () => {
263
+ }, pe = () => {
258
264
  q || typeof window > "u" || (q = !0, window.addEventListener("error", (e) => {
259
265
  let t = e.error || Error(e.message);
260
266
  queueMicrotask(() => Y(t));
@@ -262,27 +268,27 @@ var H = Object.keys(V), oe = (e) => {
262
268
  let t = e.reason;
263
269
  queueMicrotask(() => Y(t));
264
270
  }));
265
- }, fe = (e, t) => {
266
- de(), K.set(e, t);
267
- }, pe = (e) => {
271
+ }, me = (e, t) => {
272
+ pe(), K.set(e, t);
273
+ }, he = (e) => {
268
274
  K.delete(e);
269
- }, me = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, X = (e) => typeof e != "string" || !e ? "" : e.replace(me, "$1:host"), he = typeof window > "u" ? i : a, ge = class extends n {
275
+ }, ge = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, X = (e) => typeof e != "string" || !e ? "" : e.replace(ge, "$1:host"), _e = typeof window > "u" ? i : a, ve = class extends n {
270
276
  state = { failed: !1 };
271
277
  static getDerivedStateFromError() {
272
278
  return { failed: !0 };
273
279
  }
274
280
  componentDidCatch(e) {
275
- ue(e), this.props.onError(W(e, U.RENDER));
281
+ fe(e), this.props.onError(W(e, U.RENDER));
276
282
  }
277
283
  render() {
278
284
  return this.state.failed ? null : this.props.children;
279
285
  }
280
- }, _e = new Set([
286
+ }, ye = new Set([
281
287
  "form",
282
288
  "table",
283
289
  "card"
284
- ]), ve = (e) => ({
285
- view: _e.has(e?.view) ? e?.view : "form",
290
+ ]), be = (e) => ({
291
+ view: ye.has(e?.view) ? e?.view : "form",
286
292
  platform: e?.platform === "mobile" ? "mobile" : "pc"
287
293
  }), Z = new Set([
288
294
  "code",
@@ -305,7 +311,7 @@ var H = Object.keys(V), oe = (e) => {
305
311
  disabled: !!n.disabled,
306
312
  readOnly: !!n.readOnly,
307
313
  formData: n.formData || {},
308
- env: ve(n.env),
314
+ env: be(n.env),
309
315
  onChange: t
310
316
  };
311
317
  for (let e of Object.keys(n)) {
@@ -313,14 +319,14 @@ var H = Object.keys(V), oe = (e) => {
313
319
  t === void 0 || Z.has(e) || (r[e] = t);
314
320
  }
315
321
  return n.widget && (r.widget = n.widget), r;
316
- }, ye = (e) => {
322
+ }, xe = (e) => {
317
323
  let t = Object.keys(e).sort(), n = "";
318
324
  for (let r of t) {
319
325
  let t = e[r];
320
326
  typeof t == "function" ? n += `${r}:fn\0` : t !== void 0 && (typeof t != "object" || !t) && (n += `${r}:${String(t)}\0`);
321
327
  }
322
328
  return n;
323
- }, be = (e, t) => {
329
+ }, Se = (e, t) => {
324
330
  let n = {};
325
331
  for (let r of Object.keys(e)) {
326
332
  let i = e[r];
@@ -330,39 +336,39 @@ var H = Object.keys(V), oe = (e) => {
330
336
  } : n[r] = i);
331
337
  }
332
338
  return n;
333
- }, xe = {
339
+ }, Ce = {
334
340
  ok: !1,
335
341
  error: null,
336
342
  Component: null
337
343
  };
338
- function Se(t) {
339
- let n = ({ code: n, value: a, disabled: c, readOnly: l, formData: u, env: d, widget: f, runToken: p, height: m, minHeight: h, className: g, style: _, onChange: v, onError: y, ...b }) => {
340
- let x = s(null), S = s(null), C = s(null), w = s({});
341
- w.current = {
342
- onChange: v,
343
- onError: y
344
+ function we(t) {
345
+ let n = ({ code: n, value: a, disabled: c, readOnly: l, formData: u, env: d, widget: f, runToken: p, height: m, minHeight: te, className: h, style: g, onChange: _, onError: v, ...y }) => {
346
+ let b = s(null), x = s(null), S = s(null), C = s({});
347
+ C.current = {
348
+ onChange: _,
349
+ onError: v
344
350
  };
345
- let T = s(b);
346
- T.current = b;
347
- let E = s(null);
348
- E.current === null && (E.current = ce(t));
349
- let D = E.current, O = R(n), k = s({
351
+ let w = s(y);
352
+ w.current = y;
353
+ let T = s(null);
354
+ T.current === null && (T.current = ue(t));
355
+ let E = T.current, D = R(n), O = s({
350
356
  source: void 0,
351
357
  token: void 0,
352
- result: xe
358
+ result: Ce
353
359
  });
354
- if (k.current.source !== n || k.current.token !== p) {
360
+ if (O.current.source !== n || O.current.token !== p) {
355
361
  let e;
356
- if (!O.ok) e = {
362
+ if (!D.ok) e = {
357
363
  ok: !1,
358
- error: O.error,
364
+ error: D.error,
359
365
  Component: null
360
366
  };
361
367
  else try {
362
368
  e = {
363
369
  ok: !0,
364
370
  error: null,
365
- Component: le(O.code, D)
371
+ Component: de(D.code, E)
366
372
  };
367
373
  } catch (t) {
368
374
  e = {
@@ -371,86 +377,85 @@ function Se(t) {
371
377
  Component: null
372
378
  };
373
379
  }
374
- k.current = {
380
+ O.current = {
375
381
  source: n,
376
382
  token: p,
377
383
  result: e
378
384
  };
379
385
  }
380
- let A = k.current.result, j = r((e) => w.current.onChange?.(e), []), M = o(() => be(T.current, () => T.current), [ye(b)]), N = r((e) => w.current.onError?.(e), []), P = r(() => {
381
- if (S.current) return S.current;
382
- let e = x.current;
386
+ let k = O.current.result, A = r((e) => C.current.onChange?.(e), []), j = o(() => Se(w.current, () => w.current), [xe(y)]), M = r((e) => C.current.onError?.(e), []), N = r(() => {
387
+ if (x.current) return x.current;
388
+ let e = b.current;
383
389
  if (!e) return null;
384
390
  let t = e.shadowRoot || e.attachShadow({ mode: "open" }), n = document.createElement("style"), r = document.createElement("div");
385
- return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), S.current = {
386
- root: ee(r, { onUncaughtError: (e) => w.current.onError?.(W(e, U.RUNTIME)) }),
391
+ return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), x.current = {
392
+ root: ee(r, { onUncaughtError: (e) => C.current.onError?.(W(e, U.RUNTIME)) }),
387
393
  styleEl: n,
388
394
  mountEl: r
389
- }, S.current;
390
- }, []), F = o(() => Q({
395
+ }, x.current;
396
+ }, []), P = o(() => Q({
391
397
  value: a,
392
398
  disabled: c,
393
399
  readOnly: l,
394
400
  formData: u,
395
401
  env: d,
396
402
  widget: f,
397
- ...M
398
- }, j), [
403
+ ...j
404
+ }, A), [
399
405
  a,
400
406
  c,
401
407
  l,
402
408
  u,
403
409
  d,
404
410
  f,
405
- j,
406
- M
411
+ A,
412
+ j
407
413
  ]);
408
- he(() => {
409
- let t = P();
414
+ _e(() => {
415
+ let t = N();
410
416
  if (!t) return;
411
417
  let { root: n, styleEl: r } = t;
412
- if (!A.ok) {
413
- if (C.current !== A && (C.current = A, r.textContent = "", n.render(null), A.error)) {
414
- let e = O.ok ? U.EXECUTE : U.COMPILE;
415
- w.current.onError?.(W(A.error, e));
418
+ if (!k.ok) {
419
+ if (S.current !== k && (S.current = k, r.textContent = "", n.render(null), k.error)) {
420
+ let e = D.ok ? U.EXECUTE : U.COMPILE;
421
+ C.current.onError?.(W(k.error, e));
416
422
  }
417
423
  return;
418
424
  }
419
- C.current = null;
420
- let i = X(O.css);
425
+ S.current = null;
426
+ let i = X(D.css);
421
427
  r.textContent !== i && (r.textContent = i);
422
- let a = A.Component;
423
- n.render(/* @__PURE__ */ e(ge, {
424
- onError: N,
425
- children: /* @__PURE__ */ e(a, { ...F })
428
+ let a = k.Component;
429
+ n.render(/* @__PURE__ */ e(ve, {
430
+ onError: M,
431
+ children: /* @__PURE__ */ e(a, { ...P })
426
432
  }));
427
433
  }, [
428
- O,
429
- A,
430
- F,
431
- N,
432
- P
434
+ D,
435
+ k,
436
+ P,
437
+ M,
438
+ N
433
439
  ]), i(() => () => {
434
- let e = S.current;
435
- S.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
436
- }, []), i(() => (fe(D, (e) => w.current.onError?.(e)), () => pe(D)), [D]);
437
- let te = {
440
+ let e = x.current;
441
+ x.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
442
+ }, []), i(() => (me(E, (e) => C.current.onError?.(e)), () => he(E)), [E]);
443
+ let F = {
438
444
  height: m ?? "auto",
439
- minHeight: h ?? 32,
440
- contain: "layout paint",
441
- ..._
445
+ minHeight: te ?? 32,
446
+ ...g
442
447
  };
443
448
  return /* @__PURE__ */ e("div", {
444
- ref: x,
449
+ ref: b,
445
450
  "data-ai-runtime-host": "",
446
- className: g,
447
- style: te
451
+ className: h,
452
+ style: F
448
453
  });
449
454
  };
450
455
  return n.displayName = "BsyAiRuntimeContainer", n;
451
456
  }
452
457
  //#endregion
453
458
  //#region src/components/AiRuntimeContainer/index.ts
454
- var $ = Se("ui-base");
459
+ var $ = we("ui-base");
455
460
  //#endregion
456
- export { $ as AiRuntimeContainer, $ as default, U as ERROR_CODE, H as MODULE_NAMES, O as assertFieldSource, ie as clearCompileCache, I as compileAiCode, R as compileCached, X as scopeCss, F as splitAiCode, Q as toPlainProps, D as validateFieldSource };
461
+ export { $ as AiRuntimeContainer, $ as default, U as ERROR_CODE, H as MODULE_NAMES, O as assertFieldSource, ae as clearCompileCache, I as compileAiCode, R as compileCached, X as scopeCss, F as splitAiCode, Q as toPlainProps, D as validateFieldSource };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -3,7 +3,7 @@ import { t } from "../vendors/cssVars-BbL_cmFM.js";
3
3
  import { t as n } from "../vendors/useLocale-DvhRopWF.js";
4
4
  import { t as r } from "../Segmented/Segmented-AHLqTK7U.js";
5
5
  import { t as i } from "../Tooltip/Tooltip-N-w19uRu.js";
6
- import { t as a } from "../DatePicker/DatePicker-CI6dUtXW.js";
6
+ import { t as a } from "../DatePicker/DatePicker-ChROXLhv.js";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  import { memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
9
9
  import h from "clsx";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -7,7 +7,7 @@ import "../vendors/useLocale-DvhRopWF.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
8
8
  import "../Segmented/Segmented-AHLqTK7U.js";
9
9
  import "../Tooltip/Tooltip-N-w19uRu.js";
10
- import { n as e, r as t, t as n } from "./Calendar-CVtICJXc.js";
11
- import "../DatePicker/DatePicker-CI6dUtXW.js";
10
+ import { n as e, r as t, t as n } from "./Calendar-1ZIZcHEx.js";
11
+ import "../DatePicker/DatePicker-ChROXLhv.js";
12
12
  import "../DatePicker/pickerLocale-Brf7_Tnd.js";
13
13
  export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "./Card-Cdb5cVMG.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "./CheckBox-BXKoPSBh.js";
4
4
  import { t as e } from "./CheckBox-DihUnPT-.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import { n as e, t } from "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -48,7 +48,7 @@ var w = {
48
48
  "bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
49
49
  "bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
50
50
  "bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
51
- }, j = m(() => import("./DatePickerPanel-CEqdk4va.js")), M = (n) => {
51
+ }, j = m(() => import("./DatePickerPanel-D86rFDgT.js")), M = (n) => {
52
52
  let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = n, { locale: N } = i(), P = e(M), [F, I] = v(n, {
53
53
  defaultValuePropName: "defaultValue",
54
54
  valuePropName: "value",
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import { t } from "../vendors/useLocale-DvhRopWF.js";
@@ -1,9 +1,9 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import "../vendors/useFloatingOverlay-DlLAeqUv.js";
5
5
  import "../vendors/useLocale-DvhRopWF.js";
6
6
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
7
- import { t as e } from "./DatePicker-CI6dUtXW.js";
7
+ import { t as e } from "./DatePicker-ChROXLhv.js";
8
8
  import "./pickerLocale-Brf7_Tnd.js";
9
9
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { t as e } from "./Icon-CcKDWNGy.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/useLocale-DvhRopWF.js";
4
4
  import { t as e } from "./Loading-CLUJfdln.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import { t as e } from "./Modal-BeDIo3CM.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
3
3
  export { e as NotFoundContent };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { a as e, i as t, n, t as r } from "./OverlayContext-CVSFoyqN.js";
3
3
  export { r as OVERLAY_Z_BASE, n as OVERLAY_Z_STEP, t as OverlayProvider, e as useOverlayZIndex };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { t as e } from "./Radio-GeMs-7qt.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-DJ6DaHDb.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import { t as e } from "./Segmented-AHLqTK7U.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
4
4
  import { n as e, t } from "./Tooltip-N-w19uRu.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Ba3fdia4.js";
1
+ import "../vendors/version-BrsbUgJb.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "../vendors/Tree-C8l3t4L6.js";
4
4
  import "../CheckBox/CheckBox-BXKoPSBh.js";
@@ -44,7 +44,7 @@ export interface AiRuntimeContainerProps {
44
44
  /** 默认 `32`,避免空内容时容器塌成 0。 */
45
45
  minHeight?: number | string;
46
46
  className?: string;
47
- /** 覆盖默认容器样式(高度、滚动、contain 都在这里改)。 */
47
+ /** 覆盖默认容器样式(高度、最小高度都在这里改)。 */
48
48
  style?: CSSProperties;
49
49
  onChange?: (next: string) => void;
50
50
  /**
@@ -2,5 +2,5 @@
2
2
  * 用户代码允许 require 的模块名。registry 按这份清单建注册表,
3
3
  * 白名单和实现只有这一处来源。
4
4
  */
5
- export declare const ALLOWED_MODULE_NAMES: readonly ["react", "lucide-react"];
5
+ export declare const ALLOWED_MODULE_NAMES: readonly ["react", "react-dom", "lucide-react"];
6
6
  export type AllowedModuleName = (typeof ALLOWED_MODULE_NAMES)[number];
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./vendors/version-Ba3fdia4.js";
1
+ import "./vendors/version-BrsbUgJb.js";
2
2
  import "./ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "./Icon/Icon-CcKDWNGy.js";
4
4
  import "./vendors/LocaleContext-CsTLO_Y2.js";
@@ -29,8 +29,8 @@ import { t as O } from "./DropDown/DropDown-D97QGQpV.js";
29
29
  import { t as k } from "./Loading/Loading-CLUJfdln.js";
30
30
  import "./NotFoundContent/index.js";
31
31
  import { t as A } from "./InputTag/InputTag-5NTrA5bA.js";
32
- import { t as j } from "./Calendar/Calendar-CVtICJXc.js";
33
- import { t as M } from "./DatePicker/DatePicker-CI6dUtXW.js";
32
+ import { t as j } from "./Calendar/Calendar-1ZIZcHEx.js";
33
+ import { t as M } from "./DatePicker/DatePicker-ChROXLhv.js";
34
34
  import "./DatePicker/pickerLocale-Brf7_Tnd.js";
35
35
  import { a as N, c as P, d as F, f as I, g as L, h as R, i as z, l as B, m as V, n as H, o as U, p as W, r as G, t as K, u as q } from "./Table/Table-B7fDob3i.js";
36
36
  import { t as J } from "./FieldCard/FieldCard-CTrNTXFc.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-base"] = "6.37.0";
4
+ e["@baishuyun/ui-base"] = "6.38.1";
5
5
  }
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-base",
3
- "version": "6.37.0",
3
+ "version": "6.38.1",
4
4
  "type": "module",
5
5
  "description": "百数云低代码平台通用组件库",
6
6
  "author": "bsy-fe team",