@zero-library/common 3.1.6 → 4.0.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EmptyProps } from 'antd';
2
+ import { EmptyProps, ConfigProviderProps } from 'antd';
3
3
  export { default as microApp } from '@micro-zoe/micro-app';
4
4
  import * as react from 'react';
5
5
  import { ReactNode } from 'react';
@@ -945,6 +945,14 @@ declare const commonEnUS: {
945
945
  defaultFileName: string;
946
946
  defaultTitle: string;
947
947
  loading: string;
948
+ enter: string;
949
+ applicationCenter: string;
950
+ subscribeSuccess: string;
951
+ subscribeConfirm: string;
952
+ installConfirm: string;
953
+ prompt: string;
954
+ dynamicNews: string;
955
+ noDynamicNews: string;
948
956
  };
949
957
  request: {
950
958
  networkError: string;
@@ -1124,6 +1132,14 @@ declare const commonJaJP: {
1124
1132
  defaultFileName: string;
1125
1133
  defaultTitle: string;
1126
1134
  loading: string;
1135
+ enter: string;
1136
+ applicationCenter: string;
1137
+ subscribeSuccess: string;
1138
+ subscribeConfirm: string;
1139
+ installConfirm: string;
1140
+ prompt: string;
1141
+ dynamicNews: string;
1142
+ noDynamicNews: string;
1127
1143
  };
1128
1144
  request: {
1129
1145
  networkError: string;
@@ -1287,6 +1303,13 @@ declare const commonJaJP: {
1287
1303
  };
1288
1304
  };
1289
1305
 
1306
+ /**
1307
+ * LocaleProvider
1308
+ * 国际化需要适配ant和dayjs语言,统一封装
1309
+ * 语言切换时,antd locale 与 dayjs locale 需要同步更新
1310
+ */
1311
+ declare const LocaleProvider: ({ children, ...rest }: ConfigProviderProps) => react_jsx_runtime.JSX.Element;
1312
+
1290
1313
  /**
1291
1314
  * common 包中文翻译资源(namespace: common)
1292
1315
  *
@@ -1303,6 +1326,14 @@ declare const commonZhCN: {
1303
1326
  readonly defaultFileName: "文件";
1304
1327
  readonly defaultTitle: "提示";
1305
1328
  readonly loading: "加载中...";
1329
+ readonly enter: "进入应用";
1330
+ readonly applicationCenter: "应用中心";
1331
+ readonly subscribeSuccess: "订阅成功";
1332
+ readonly subscribeConfirm: "是否订阅{{name}}?";
1333
+ readonly installConfirm: "是否{{action}}{{name}}?";
1334
+ readonly prompt: "提示";
1335
+ readonly dynamicNews: "动态消息";
1336
+ readonly noDynamicNews: "暂无动态消息";
1306
1337
  };
1307
1338
  readonly request: {
1308
1339
  readonly networkError: "网络异常,请检查网络";
@@ -3225,4 +3256,4 @@ declare function createTokenManager({ key, storage }: TokenManagerProps): {
3225
3256
  clear: () => void;
3226
3257
  };
3227
3258
 
3228
- export { type AnnotationConfig, type AnnotationType, _default$u as AudioPlayer, type AudioPlayerProps, BusinessCode, type CacheMessage, type CollectionConfig, type CollectionType, type ComponentMapType, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, _default$t as DocxPreview, type DocxPreviewProps, _default$s as FileIcon, type FileIconProps, _default$r as FilePreview, _default$q as FilePreviewDrawer, type FilePreviewDrawerProps, type FilePreviewProps$1 as FilePreviewProps, type FindTreeNodesOptions, type FormatSizeOptions, HttpStatus, type I18nResources, _default$h as Iframe, type IframeProps, LANG_KEY, _default$g as LazyComponent, type LazyComponentProps, _default$p as LuyaFilePreview, _default$e as MarkDrawing, type MarkDrawingProps, _default$f as MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, _default$o as MarkdownPreview, type MarkdownPreviewProps, _default$k as MicroApp, _default$j as MicroAppDrawer, type MicroAppProps, _default$i as MicroAppWindow, MultiEmailValidator, NS_COMMON, type NamespaceResource, type PageNoConfig, _default$n as PdfImagePreview, type PdfImagePreviewProps, _default$m as PdfPreview, type PdfPreviewProps, PhoneOrMobileValidator, type PodOpenProps, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, type RenderControl, _default$d as RenderMarkdown, type RenderMarkdownProps, _default$c as RenderWrapper, type RenderWrapperProps, type RequestConfig, type SafeParseJsonOptions, type SecureManagerProps, type SetIntervalType, type SizeUnit, ThanNumLengthValidator, ThanNumValidator, type TokenManagerProps, _default$b as UserAvatar, type UserAvatarProps, _default$l as VideoPlayer, type VideoPlayerProps, type WebSocketProps, type WebSocketType, type WindowOpenProps, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, _default$9 as useAsyncQueue, _default$8 as useAutoRefresh, _default$7 as useCountDown, _default$6 as useCreateValtioContext, _default$5 as useDebounce, _default$4 as useDeepEffect, _default$a as useIframeRelayBridge, _default$3 as useRefState, _default$2 as useSyncInput, _default$1 as useThrottle, useTranslation, _default as useWebSocket };
3259
+ export { type AnnotationConfig, type AnnotationType, _default$u as AudioPlayer, type AudioPlayerProps, BusinessCode, type CacheMessage, type CollectionConfig, type CollectionType, type ComponentMapType, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, _default$t as DocxPreview, type DocxPreviewProps, _default$s as FileIcon, type FileIconProps, _default$r as FilePreview, _default$q as FilePreviewDrawer, type FilePreviewDrawerProps, type FilePreviewProps$1 as FilePreviewProps, type FindTreeNodesOptions, type FormatSizeOptions, HttpStatus, type I18nResources, _default$h as Iframe, type IframeProps, LANG_KEY, _default$g as LazyComponent, type LazyComponentProps, LocaleProvider, _default$p as LuyaFilePreview, _default$e as MarkDrawing, type MarkDrawingProps, _default$f as MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, _default$o as MarkdownPreview, type MarkdownPreviewProps, _default$k as MicroApp, _default$j as MicroAppDrawer, type MicroAppProps, _default$i as MicroAppWindow, MultiEmailValidator, NS_COMMON, type NamespaceResource, type PageNoConfig, _default$n as PdfImagePreview, type PdfImagePreviewProps, _default$m as PdfPreview, type PdfPreviewProps, PhoneOrMobileValidator, type PodOpenProps, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, type RenderControl, _default$d as RenderMarkdown, type RenderMarkdownProps, _default$c as RenderWrapper, type RenderWrapperProps, type RequestConfig, type SafeParseJsonOptions, type SecureManagerProps, type SetIntervalType, type SizeUnit, ThanNumLengthValidator, ThanNumValidator, type TokenManagerProps, _default$b as UserAvatar, type UserAvatarProps, _default$l as VideoPlayer, type VideoPlayerProps, type WebSocketProps, type WebSocketType, type WindowOpenProps, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, _default$9 as useAsyncQueue, _default$8 as useAutoRefresh, _default$7 as useCountDown, _default$6 as useCreateValtioContext, _default$5 as useDebounce, _default$4 as useDeepEffect, _default$a as useIframeRelayBridge, _default$3 as useRefState, _default$2 as useSyncInput, _default$1 as useThrottle, useTranslation, _default as useWebSocket };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { EmptyProps } from 'antd';
2
+ import { EmptyProps, ConfigProviderProps } from 'antd';
3
3
  export { default as microApp } from '@micro-zoe/micro-app';
4
4
  import * as react from 'react';
5
5
  import { ReactNode } from 'react';
@@ -945,6 +945,14 @@ declare const commonEnUS: {
945
945
  defaultFileName: string;
946
946
  defaultTitle: string;
947
947
  loading: string;
948
+ enter: string;
949
+ applicationCenter: string;
950
+ subscribeSuccess: string;
951
+ subscribeConfirm: string;
952
+ installConfirm: string;
953
+ prompt: string;
954
+ dynamicNews: string;
955
+ noDynamicNews: string;
948
956
  };
949
957
  request: {
950
958
  networkError: string;
@@ -1124,6 +1132,14 @@ declare const commonJaJP: {
1124
1132
  defaultFileName: string;
1125
1133
  defaultTitle: string;
1126
1134
  loading: string;
1135
+ enter: string;
1136
+ applicationCenter: string;
1137
+ subscribeSuccess: string;
1138
+ subscribeConfirm: string;
1139
+ installConfirm: string;
1140
+ prompt: string;
1141
+ dynamicNews: string;
1142
+ noDynamicNews: string;
1127
1143
  };
1128
1144
  request: {
1129
1145
  networkError: string;
@@ -1287,6 +1303,13 @@ declare const commonJaJP: {
1287
1303
  };
1288
1304
  };
1289
1305
 
1306
+ /**
1307
+ * LocaleProvider
1308
+ * 国际化需要适配ant和dayjs语言,统一封装
1309
+ * 语言切换时,antd locale 与 dayjs locale 需要同步更新
1310
+ */
1311
+ declare const LocaleProvider: ({ children, ...rest }: ConfigProviderProps) => react_jsx_runtime.JSX.Element;
1312
+
1290
1313
  /**
1291
1314
  * common 包中文翻译资源(namespace: common)
1292
1315
  *
@@ -1303,6 +1326,14 @@ declare const commonZhCN: {
1303
1326
  readonly defaultFileName: "文件";
1304
1327
  readonly defaultTitle: "提示";
1305
1328
  readonly loading: "加载中...";
1329
+ readonly enter: "进入应用";
1330
+ readonly applicationCenter: "应用中心";
1331
+ readonly subscribeSuccess: "订阅成功";
1332
+ readonly subscribeConfirm: "是否订阅{{name}}?";
1333
+ readonly installConfirm: "是否{{action}}{{name}}?";
1334
+ readonly prompt: "提示";
1335
+ readonly dynamicNews: "动态消息";
1336
+ readonly noDynamicNews: "暂无动态消息";
1306
1337
  };
1307
1338
  readonly request: {
1308
1339
  readonly networkError: "网络异常,请检查网络";
@@ -3225,4 +3256,4 @@ declare function createTokenManager({ key, storage }: TokenManagerProps): {
3225
3256
  clear: () => void;
3226
3257
  };
3227
3258
 
3228
- export { type AnnotationConfig, type AnnotationType, _default$u as AudioPlayer, type AudioPlayerProps, BusinessCode, type CacheMessage, type CollectionConfig, type CollectionType, type ComponentMapType, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, _default$t as DocxPreview, type DocxPreviewProps, _default$s as FileIcon, type FileIconProps, _default$r as FilePreview, _default$q as FilePreviewDrawer, type FilePreviewDrawerProps, type FilePreviewProps$1 as FilePreviewProps, type FindTreeNodesOptions, type FormatSizeOptions, HttpStatus, type I18nResources, _default$h as Iframe, type IframeProps, LANG_KEY, _default$g as LazyComponent, type LazyComponentProps, _default$p as LuyaFilePreview, _default$e as MarkDrawing, type MarkDrawingProps, _default$f as MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, _default$o as MarkdownPreview, type MarkdownPreviewProps, _default$k as MicroApp, _default$j as MicroAppDrawer, type MicroAppProps, _default$i as MicroAppWindow, MultiEmailValidator, NS_COMMON, type NamespaceResource, type PageNoConfig, _default$n as PdfImagePreview, type PdfImagePreviewProps, _default$m as PdfPreview, type PdfPreviewProps, PhoneOrMobileValidator, type PodOpenProps, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, type RenderControl, _default$d as RenderMarkdown, type RenderMarkdownProps, _default$c as RenderWrapper, type RenderWrapperProps, type RequestConfig, type SafeParseJsonOptions, type SecureManagerProps, type SetIntervalType, type SizeUnit, ThanNumLengthValidator, ThanNumValidator, type TokenManagerProps, _default$b as UserAvatar, type UserAvatarProps, _default$l as VideoPlayer, type VideoPlayerProps, type WebSocketProps, type WebSocketType, type WindowOpenProps, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, _default$9 as useAsyncQueue, _default$8 as useAutoRefresh, _default$7 as useCountDown, _default$6 as useCreateValtioContext, _default$5 as useDebounce, _default$4 as useDeepEffect, _default$a as useIframeRelayBridge, _default$3 as useRefState, _default$2 as useSyncInput, _default$1 as useThrottle, useTranslation, _default as useWebSocket };
3259
+ export { type AnnotationConfig, type AnnotationType, _default$u as AudioPlayer, type AudioPlayerProps, BusinessCode, type CacheMessage, type CollectionConfig, type CollectionType, type ComponentMapType, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, _default$t as DocxPreview, type DocxPreviewProps, _default$s as FileIcon, type FileIconProps, _default$r as FilePreview, _default$q as FilePreviewDrawer, type FilePreviewDrawerProps, type FilePreviewProps$1 as FilePreviewProps, type FindTreeNodesOptions, type FormatSizeOptions, HttpStatus, type I18nResources, _default$h as Iframe, type IframeProps, LANG_KEY, _default$g as LazyComponent, type LazyComponentProps, LocaleProvider, _default$p as LuyaFilePreview, _default$e as MarkDrawing, type MarkDrawingProps, _default$f as MarkdownEditor, type MarkdownEditorHandle, type MarkdownEditorProps, _default$o as MarkdownPreview, type MarkdownPreviewProps, _default$k as MicroApp, _default$j as MicroAppDrawer, type MicroAppProps, _default$i as MicroAppWindow, MultiEmailValidator, NS_COMMON, type NamespaceResource, type PageNoConfig, _default$n as PdfImagePreview, type PdfImagePreviewProps, _default$m as PdfPreview, type PdfPreviewProps, PhoneOrMobileValidator, type PodOpenProps, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, type RenderControl, _default$d as RenderMarkdown, type RenderMarkdownProps, _default$c as RenderWrapper, type RenderWrapperProps, type RequestConfig, type SafeParseJsonOptions, type SecureManagerProps, type SetIntervalType, type SizeUnit, ThanNumLengthValidator, ThanNumValidator, type TokenManagerProps, _default$b as UserAvatar, type UserAvatarProps, _default$l as VideoPlayer, type VideoPlayerProps, type WebSocketProps, type WebSocketType, type WindowOpenProps, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, _default$9 as useAsyncQueue, _default$8 as useAutoRefresh, _default$7 as useCountDown, _default$6 as useCreateValtioContext, _default$5 as useDebounce, _default$4 as useDeepEffect, _default$a as useIframeRelayBridge, _default$3 as useRefState, _default$2 as useSyncInput, _default$1 as useThrottle, useTranslation, _default as useWebSocket };
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createInstance } from 'i18next';
2
2
  import { initReactI18next, useTranslation as useTranslation$1 } from 'react-i18next';
3
- import { Typography, Spin, Input, Tooltip as Tooltip$1, Button, Flex, Form, Card, List, Space, Popconfirm, Empty, Modal, message, Alert, Skeleton, Result, Splitter, Image as Image$1, Drawer, Avatar, notification } from 'antd';
3
+ import { Typography, Spin, Input, Tooltip as Tooltip$1, Button, Flex, Form, Card, List, Space, Popconfirm, Empty, Modal, message, ConfigProvider, Alert, Skeleton, Result, Splitter, Image as Image$1, Drawer, Avatar, notification } from 'antd';
4
4
  import copyToClipboard from 'copy-to-clipboard';
5
5
  import AES from 'crypto-js/aes';
6
6
  import encUtf8 from 'crypto-js/enc-utf8';
@@ -16,6 +16,12 @@ import Decimal from 'decimal.js';
16
16
  import dayjs from 'dayjs';
17
17
  import relativeTime from 'dayjs/plugin/relativeTime';
18
18
  import axios from 'axios';
19
+ import enUS from 'antd/locale/en_US';
20
+ import jaJP from 'antd/locale/ja_JP';
21
+ import zhCN from 'antd/locale/zh_CN';
22
+ import 'dayjs/locale/en';
23
+ import 'dayjs/locale/ja';
24
+ import 'dayjs/locale/zh-cn';
19
25
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
20
26
  import { MessageOutlined, BookOutlined, EditOutlined, DeleteOutlined, CloseOutlined, MinusCircleOutlined, PlusCircleOutlined, RedoOutlined, FileUnknownOutlined, FileZipOutlined, FileMarkdownOutlined, FileGifOutlined, FileImageOutlined, FileJpgOutlined, NotificationOutlined, VideoCameraOutlined, FilePptOutlined, FileExcelOutlined, FileWordOutlined, FilePdfOutlined, FileTextOutlined, ColumnWidthOutlined, LeftOutlined, RightOutlined, MinusOutlined, PlusOutlined } from '@ant-design/icons';
21
27
  import classNames2 from 'classnames';
@@ -1255,7 +1261,16 @@ var commonZhCN = {
1255
1261
  save: "\u4FDD\u5B58",
1256
1262
  defaultFileName: "\u6587\u4EF6",
1257
1263
  defaultTitle: "\u63D0\u793A",
1258
- loading: "\u52A0\u8F7D\u4E2D..."
1264
+ loading: "\u52A0\u8F7D\u4E2D...",
1265
+ // 以下为多模块共用词条(重复3次以上提取至此)
1266
+ enter: "\u8FDB\u5165\u5E94\u7528",
1267
+ applicationCenter: "\u5E94\u7528\u4E2D\u5FC3",
1268
+ subscribeSuccess: "\u8BA2\u9605\u6210\u529F",
1269
+ subscribeConfirm: "\u662F\u5426\u8BA2\u9605{{name}}\uFF1F",
1270
+ installConfirm: "\u662F\u5426{{action}}{{name}}\uFF1F",
1271
+ prompt: "\u63D0\u793A",
1272
+ dynamicNews: "\u52A8\u6001\u6D88\u606F",
1273
+ noDynamicNews: "\u6682\u65E0\u52A8\u6001\u6D88\u606F"
1259
1274
  },
1260
1275
  // utils/request.ts
1261
1276
  request: {
@@ -1443,7 +1458,16 @@ var commonEnUS = {
1443
1458
  save: "Save",
1444
1459
  defaultFileName: "file",
1445
1460
  defaultTitle: "Notice",
1446
- loading: "Loading..."
1461
+ loading: "Loading...",
1462
+ // Shared keys (extracted from duplicates ≥ 3)
1463
+ enter: "Enter App",
1464
+ applicationCenter: "App Center",
1465
+ subscribeSuccess: "Subscribed successfully",
1466
+ subscribeConfirm: "Subscribe to {{name}}?",
1467
+ installConfirm: "{{action}} {{name}}?",
1468
+ prompt: "Prompt",
1469
+ dynamicNews: "Activity Feed",
1470
+ noDynamicNews: "No recent activity"
1447
1471
  },
1448
1472
  request: {
1449
1473
  networkError: "Network error, please check your connection",
@@ -1618,7 +1642,16 @@ var commonJaJP = {
1618
1642
  save: "\u4FDD\u5B58",
1619
1643
  defaultFileName: "\u30D5\u30A1\u30A4\u30EB",
1620
1644
  defaultTitle: "\u30D2\u30F3\u30C8",
1621
- loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D..."
1645
+ loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D...",
1646
+ // 共通キー(3回以上重複のため抽出)
1647
+ enter: "\u30A2\u30D7\u30EA\u306B\u5165\u308B",
1648
+ applicationCenter: "\u30A2\u30D7\u30EA\u30BB\u30F3\u30BF\u30FC",
1649
+ subscribeSuccess: "\u30B5\u30D6\u30B9\u30AF\u6210\u529F",
1650
+ subscribeConfirm: "{{name}}\u3092\u30B5\u30D6\u30B9\u30AF\u3057\u307E\u3059\u304B\uFF1F",
1651
+ installConfirm: "{{name}}\u3092{{action}}\u3057\u307E\u3059\u304B\uFF1F",
1652
+ prompt: "\u30D2\u30F3\u30C8",
1653
+ dynamicNews: "\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",
1654
+ noDynamicNews: "\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306A\u3057"
1622
1655
  },
1623
1656
  // utils/request.ts
1624
1657
  request: {
@@ -1795,6 +1828,21 @@ var commonJaJP = {
1795
1828
  }
1796
1829
  }
1797
1830
  };
1831
+ var antdLocaleMap = {
1832
+ "zh-CN": zhCN,
1833
+ "en-US": enUS,
1834
+ "ja-JP": jaJP
1835
+ };
1836
+ var dayjsLocaleMap = {
1837
+ "zh-CN": "zh-cn",
1838
+ "en-US": "en",
1839
+ "ja-JP": "ja"
1840
+ };
1841
+ var LocaleProvider = ({ children, ...rest }) => {
1842
+ const lang = getLang();
1843
+ dayjs.locale(dayjsLocaleMap[lang]);
1844
+ return /* @__PURE__ */ jsx(ConfigProvider, { locale: antdLocaleMap[lang], ...rest, children });
1845
+ };
1798
1846
 
1799
1847
  // src/i18n/index.ts
1800
1848
  var DEFAULT_LNG = "zh-CN";
@@ -3409,7 +3457,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
3409
3457
  var CodePreview_default = CodePreview;
3410
3458
  var { Text } = Typography;
3411
3459
  pdfjsLib.GlobalWorkerOptions.workerSrc = "https://unpkg.com/pdfjs-dist@5.4.296/legacy/build/pdf.worker.min.mjs";
3412
- var MIN_SCALE = 0.1;
3460
+ var MIN_SCALE = 0.6;
3413
3461
  var MAX_SCALE = 1.5;
3414
3462
  var SCALE_STEP = 0.1;
3415
3463
  var PdfPage = React3__default.memo(({ pdf, pageNumber, scale, scrollContainerRef, defaultSize }) => {
@@ -10548,6 +10596,6 @@ var UserAvatar_default = ({ size, avatarSrc, userName }) => {
10548
10596
  return avatarSrc ? /* @__PURE__ */ jsx(Avatar, { size, src: avatarSrc }) : /* @__PURE__ */ jsx(Avatar, { size, className: "cursor-pointer", style: { backgroundColor: "var(--ant-color-primary)" }, children: userName?.slice(0, 1)?.toLocaleUpperCase() });
10549
10597
  };
10550
10598
 
10551
- export { AudioPlayer_default as AudioPlayer, BusinessCode, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, DocxPreview_default as DocxPreview, FileIcon_default as FileIcon, FilePreview_default as FilePreview, FilePreviewDrawer_default as FilePreviewDrawer, HttpStatus, Iframe_default as Iframe, LANG_KEY, LazyComponent_default as LazyComponent, luyaFilePreview_default as LuyaFilePreview, MarkDrawing_default as MarkDrawing, MarkdownEditor_default as MarkdownEditor, MarkdownPreview_default as MarkdownPreview, MicroApp_default as MicroApp, Drawer_default as MicroAppDrawer, Window_default as MicroAppWindow, MultiEmailValidator, NS_COMMON, PdfImagePreview_default as PdfImagePreview, PdfPreview_default as PdfPreview, PhoneOrMobileValidator, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, RenderMarkdown_default as RenderMarkdown, RenderWrapper_default as RenderWrapper, ThanNumLengthValidator, ThanNumValidator, UserAvatar_default as UserAvatar, VideoPlayer_default as VideoPlayer, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval2 as setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, useAsyncQueue_default as useAsyncQueue, useAutoRefresh_default as useAutoRefresh, useCountDown_default as useCountDown, useCreateValtioContext_default as useCreateValtioContext, useDebounce_default as useDebounce, useDeepEffect_default as useDeepEffect, useIframeRelayBridge_default as useIframeRelayBridge, useRefState_default as useRefState, useSyncInput_default as useSyncInput, useThrottle_default as useThrottle, useTranslation, useWebSocket_default as useWebSocket };
10599
+ export { AudioPlayer_default as AudioPlayer, BusinessCode, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, DocxPreview_default as DocxPreview, FileIcon_default as FileIcon, FilePreview_default as FilePreview, FilePreviewDrawer_default as FilePreviewDrawer, HttpStatus, Iframe_default as Iframe, LANG_KEY, LazyComponent_default as LazyComponent, LocaleProvider, luyaFilePreview_default as LuyaFilePreview, MarkDrawing_default as MarkDrawing, MarkdownEditor_default as MarkdownEditor, MarkdownPreview_default as MarkdownPreview, MicroApp_default as MicroApp, Drawer_default as MicroAppDrawer, Window_default as MicroAppWindow, MultiEmailValidator, NS_COMMON, PdfImagePreview_default as PdfImagePreview, PdfPreview_default as PdfPreview, PhoneOrMobileValidator, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, RenderMarkdown_default as RenderMarkdown, RenderWrapper_default as RenderWrapper, ThanNumLengthValidator, ThanNumValidator, UserAvatar_default as UserAvatar, VideoPlayer_default as VideoPlayer, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval2 as setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, useAsyncQueue_default as useAsyncQueue, useAutoRefresh_default as useAutoRefresh, useCountDown_default as useCountDown, useCreateValtioContext_default as useCreateValtioContext, useDebounce_default as useDebounce, useDeepEffect_default as useDeepEffect, useIframeRelayBridge_default as useIframeRelayBridge, useRefState_default as useRefState, useSyncInput_default as useSyncInput, useThrottle_default as useThrottle, useTranslation, useWebSocket_default as useWebSocket };
10552
10600
  //# sourceMappingURL=index.esm.js.map
10553
10601
  //# sourceMappingURL=index.esm.js.map