@digitalsee-ai/rcs 2.0.3-pre2 → 2.0.3-rc
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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-
|
|
2
|
+
import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-8OuPlj3E.mjs";
|
|
3
3
|
import { useEventEmitter as B, useReactive as W, useSize as H } from "ahooks";
|
|
4
4
|
import { FormattedMessage as $ } from "react-intl";
|
|
5
5
|
import { CloseCircleFilled as A, CheckCircleFilled as K } from "@ant-design/icons";
|
|
@@ -279,4 +279,4 @@ function $e(e) {
|
|
|
279
279
|
export {
|
|
280
280
|
$e as default
|
|
281
281
|
};
|
|
282
|
-
//# sourceMappingURL=index-
|
|
282
|
+
//# sourceMappingURL=index-Dk9kFqym.mjs.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type RcsIntlProviderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* 宿主显式指定的 locale
|
|
5
|
+
*
|
|
6
|
+
* @description 缺省时回退到外层 IntlProvider 的 locale,仍缺失时回退 zh-CN
|
|
7
|
+
*/
|
|
8
|
+
locale?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 库内 IntlProvider 兜底桥接
|
|
13
|
+
*
|
|
14
|
+
* 组件库不要求宿主自行包裹 react-intl 的 IntlProvider:入口组件
|
|
15
|
+
* (DigitalseeWorkFlow / DynamicForm)内部通过本组件提供 IntlProvider,规则:
|
|
16
|
+
* - locale 优先级:显式传入 > 外层 IntlProvider 的 locale > 'zh-CN'
|
|
17
|
+
* - 文案合并:外层 IntlProvider 的 messages 先铺底,库内语言包覆盖同名键
|
|
18
|
+
* (库内文案由库负责翻译,宿主自定义键继续可用)
|
|
19
|
+
*/
|
|
20
|
+
export declare function RcsIntlProvider({ locale, children }: RcsIntlProviderProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/rcs.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, b as l, N as i, c as r, g as t, h as n, j as d, k as u, l as F, m as c, n as y, E as g, F as S, o as m, H as p, p as C, q as V, r as f, s as w, u as A, v as b, w as R, x as v, W as T, y as W, z as P, B as k, C as D, G as I, I as M, J as N, K as h, L as E, M as L, O, P as _, Q as x, R as B, S as G, T as U, U as j, X as q, Y as H, Z as Y, _ as z, $ as J, a0 as K, a1 as Q, a2 as X, a3 as Z, a4 as $, a5 as aa, a6 as ea, a7 as sa, a8 as oa, a9 as la, aa as ia, ab as ra, ac as ta, ad as na, ae as da, af as ua, ag as Fa, ah as ca, ai as ya } from "./index-
|
|
1
|
+
import { A as s, a as o, b as l, N as i, c as r, g as t, h as n, j as d, k as u, l as F, m as c, n as y, E as g, F as S, o as m, H as p, p as C, q as V, r as f, s as w, u as A, v as b, w as R, x as v, W as T, y as W, z as P, B as k, C as D, G as I, I as M, J as N, K as h, L as E, M as L, O, P as _, Q as x, R as B, S as G, T as U, U as j, X as q, Y as H, Z as Y, _ as z, $ as J, a0 as K, a1 as Q, a2 as X, a3 as Z, a4 as $, a5 as aa, a6 as ea, a7 as sa, a8 as oa, a9 as la, aa as ia, ab as ra, ac as ta, ad as na, ae as da, af as ua, ag as Fa, ah as ca, ai as ya } from "./index-8OuPlj3E.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as AIFieldWrapper,
|
|
4
4
|
o as AI_FILL_VALUE,
|