@digitalsee-ai/rcs 2.0.3-pre → 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.
- package/dist/components/digitalsee/workflow/utils/common.d.ts +4 -0
- package/dist/{index-BBZ0MMcO.mjs → index-8OuPlj3E.mjs} +10203 -10135
- package/dist/{index-CQZhdbvg.mjs → index-Dk9kFqym.mjs} +2 -2
- package/dist/locales/RcsIntlProvider.d.ts +20 -0
- package/dist/locales/en-US/common.d.ts +7 -0
- package/dist/locales/en-US.d.ts +7 -0
- package/dist/locales/index.d.ts +4 -0
- package/dist/locales/zh-CN/common.d.ts +7 -0
- package/dist/locales/zh-CN.d.ts +7 -0
- package/dist/locales/zh-TW/common.d.ts +7 -0
- package/dist/locales/zh-TW.d.ts +7 -0
- package/dist/rcs.es.js +1 -1
- package/dist/rcs.umd.js +69 -69
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -577,6 +577,13 @@ declare const _default: {
|
|
|
577
577
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
578
578
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
579
579
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
580
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
581
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
582
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
583
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
584
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
585
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
586
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
580
587
|
'app.workflow.global_config.url_invalid': string;
|
|
581
588
|
'app.workflow.global_config.enable_control': string;
|
|
582
589
|
'app.workflow.global_config.timeout_label': string;
|
package/dist/locales/en-US.d.ts
CHANGED
|
@@ -787,6 +787,13 @@ declare const _default: {
|
|
|
787
787
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
788
788
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
789
789
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
790
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
791
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
792
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
793
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
794
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
795
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
796
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
790
797
|
'app.workflow.global_config.url_invalid': string;
|
|
791
798
|
'app.workflow.global_config.enable_control': string;
|
|
792
799
|
'app.workflow.global_config.timeout_label': string;
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -6,5 +6,9 @@ export type TranslateFn = (id: string, values?: TranslateMessageValues) => strin
|
|
|
6
6
|
export declare const getLocaleMessages: (locale: LocaleType) => LocaleMessages;
|
|
7
7
|
export declare const getSupportedLocales: () => LocaleType[];
|
|
8
8
|
export declare const isLocaleSupported: (locale: string) => locale is LocaleType;
|
|
9
|
+
/** 同步模块级 t() 使用的全局 locale */
|
|
10
|
+
export declare const setGlobalLocale: (locale: LocaleType) => void;
|
|
11
|
+
/** 读取模块级 t() 使用的全局 locale */
|
|
12
|
+
export declare const getGlobalLocale: () => LocaleType;
|
|
9
13
|
export declare const createTranslator: (locale?: LocaleType) => TranslateFn;
|
|
10
14
|
export {};
|
|
@@ -577,6 +577,13 @@ declare const _default: {
|
|
|
577
577
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
578
578
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
579
579
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
580
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
581
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
582
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
583
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
584
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
585
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
586
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
580
587
|
'app.workflow.global_config.url_invalid': string;
|
|
581
588
|
'app.workflow.global_config.enable_control': string;
|
|
582
589
|
'app.workflow.global_config.timeout_label': string;
|
package/dist/locales/zh-CN.d.ts
CHANGED
|
@@ -787,6 +787,13 @@ declare const _default: {
|
|
|
787
787
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
788
788
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
789
789
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
790
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
791
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
792
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
793
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
794
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
795
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
796
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
790
797
|
'app.workflow.global_config.url_invalid': string;
|
|
791
798
|
'app.workflow.global_config.enable_control': string;
|
|
792
799
|
'app.workflow.global_config.timeout_label': string;
|
|
@@ -573,6 +573,13 @@ declare const _default: {
|
|
|
573
573
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
574
574
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
575
575
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
576
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
577
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
578
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
579
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
580
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
581
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
582
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
576
583
|
'app.workflow.global_config.url_invalid': string;
|
|
577
584
|
'app.workflow.global_config.enable_control': string;
|
|
578
585
|
'app.workflow.global_config.timeout_label': string;
|
package/dist/locales/zh-TW.d.ts
CHANGED
|
@@ -782,6 +782,13 @@ declare const _default: {
|
|
|
782
782
|
'app.workflow.canvas.header.workflow_name_placeholder': string;
|
|
783
783
|
'app.workflow.canvas.header.workflow_name_unnamed': string;
|
|
784
784
|
'app.workflow.canvas.header.save_blocked_warning': string;
|
|
785
|
+
'app.workflow.canvas.header.back_confirm_message': string;
|
|
786
|
+
'app.workflow.canvas.header.autosave_saving': string;
|
|
787
|
+
'app.workflow.canvas.header.autosave_saved': string;
|
|
788
|
+
'app.workflow.canvas.header.autosave_saved_tooltip': string;
|
|
789
|
+
'app.workflow.canvas.header.autosave_failed': string;
|
|
790
|
+
'app.workflow.canvas.header.autosave_failed_tooltip': string;
|
|
791
|
+
'app.workflow.canvas.header.workflow_name_edit_hint': string;
|
|
785
792
|
'app.workflow.global_config.url_invalid': string;
|
|
786
793
|
'app.workflow.global_config.enable_control': string;
|
|
787
794
|
'app.workflow.global_config.timeout_label': string;
|
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,
|