@baishuyun/ui-mobile 0.8.0 → 0.9.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/AMap/{AMap-BwIa29WQ.js → AMap-B1GiEoPE.js} +2 -2
- package/dist/AMap/index.js +4 -4
- package/dist/ActionSheet/{ActionSheet-8cPpwho3.js → ActionSheet-DVck9uyS.js} +3 -3
- package/dist/ActionSheet/index.js +6 -6
- package/dist/Calendar/{Calendar-B9IuDHRd.js → Calendar-B1TwDL1q.js} +2 -2
- package/dist/Calendar/index.js +4 -4
- package/dist/ConfigProvider/{ConfigProvider-CCXPxdJt.js → ConfigProvider-xyGx046s.js} +114 -2
- package/dist/ConfigProvider/index.js +4 -4
- package/dist/ConfigProvider/{useLocale-D12uIZ9q.js → useLocale-Bf81I-9U.js} +56 -0
- package/dist/Editor/Editor-DUsPQevQ.js +2051 -0
- package/dist/Editor/index.js +8 -0
- package/dist/Gantt/{Gantt-fRNTYViS.js → Gantt-CbHw9RMw.js} +3 -3
- package/dist/Gantt/index.js +8 -8
- package/dist/Icon/{Icon-OUPXAIEn.js → Icon-D3xi1oyo.js} +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/Overlay/index.js +2 -2
- package/dist/Popup/{Popup-C1uwPnxj.js → Popup-BIIDAUmB.js} +2 -2
- package/dist/Popup/index.js +4 -4
- package/dist/components/Editor/Editor.d.ts +6 -0
- package/dist/components/Editor/EditorCore.d.ts +3 -0
- package/dist/components/Editor/EditorHtml.d.ts +3 -0
- package/dist/components/Editor/Thinking.d.ts +22 -0
- package/dist/components/Editor/constants.d.ts +57 -0
- package/dist/components/Editor/index.d.ts +3 -0
- package/dist/components/Editor/interface.d.ts +59 -0
- package/dist/components/Editor/nodes/ExtendedTextNode.d.ts +9 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +48 -0
- package/dist/components/Editor/plugins/HeadingPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +2 -0
- package/dist/components/Editor/sheets.d.ts +43 -0
- package/dist/components/Editor/toolbar/Toolbar.d.ts +10 -0
- package/dist/components/Editor/toolbar/ToolbarColorGlyph.d.ts +8 -0
- package/dist/components/Editor/toolbar/useTextFormats.d.ts +16 -0
- package/dist/components/Editor/utils/applyAiPolish.d.ts +5 -0
- package/dist/components/Editor/utils/fillRootFromHtml.d.ts +2 -0
- package/dist/components/Editor/utils/isAcceptedImageType.d.ts +5 -0
- package/dist/components/Editor/utils/isEmptyEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/readEditorAiSnapshot.d.ts +8 -0
- package/dist/components/Editor/utils/sanitizeEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +1 -0
- package/dist/components/Editor/utils/toPortableEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/unwrapTypesetFence.d.ts +6 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +13 -12
- package/dist/locale/lang/en-US.json.d.ts +56 -0
- package/dist/locale/lang/zh-CN.json.d.ts +56 -0
- package/dist/locale/lang/zh-TW.json.d.ts +56 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{version-DdP63VFD.js → version-CslTV1sb.js} +1 -1
- package/dist/vite-env.d.ts +5 -0
- package/package.json +12 -3
- /package/dist/Calendar/{cssVars-E8Cq0tta.js → cssVars-DNOooryc.js} +0 -0
- /package/dist/Overlay/{Overlay-YzAfhILA.js → Overlay-CqQWOqO4.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-
|
|
2
|
-
import { r as t, t as n } from "../ConfigProvider/useLocale-
|
|
1
|
+
import { t as e } from "../Icon/Icon-D3xi1oyo.js";
|
|
2
|
+
import { r as t, t as n } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
3
3
|
import { createContext as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/AMap/AMap.module.scss
|
package/dist/AMap/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../Icon/Icon-
|
|
3
|
-
import { n as e, t } from "./AMap-
|
|
4
|
-
import "../ConfigProvider/useLocale-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Icon/Icon-D3xi1oyo.js";
|
|
3
|
+
import { n as e, t } from "./AMap-B1GiEoPE.js";
|
|
4
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
5
5
|
export { t as default, e as useAMap };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../Popup/Popup-
|
|
2
|
-
import { t } from "../Icon/Icon-
|
|
3
|
-
import { t as n } from "../ConfigProvider/useLocale-
|
|
1
|
+
import { t as e } from "../Popup/Popup-BIIDAUmB.js";
|
|
2
|
+
import { t } from "../Icon/Icon-D3xi1oyo.js";
|
|
3
|
+
import { t as n } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
4
4
|
import { useId as r } from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ActionSheet/ActionSheet.module.scss
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../Popup/Popup-
|
|
3
|
-
import { t as e } from "./ActionSheet-
|
|
4
|
-
import "../Icon/Icon-
|
|
5
|
-
import "../Overlay/Overlay-
|
|
6
|
-
import "../ConfigProvider/useLocale-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Popup/Popup-BIIDAUmB.js";
|
|
3
|
+
import { t as e } from "./ActionSheet-DVck9uyS.js";
|
|
4
|
+
import "../Icon/Icon-D3xi1oyo.js";
|
|
5
|
+
import "../Overlay/Overlay-CqQWOqO4.js";
|
|
6
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
7
7
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../ConfigProvider/useLocale-
|
|
2
|
-
import { i as t, n, r, t as i } from "./cssVars-
|
|
1
|
+
import { t as e } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./cssVars-DNOooryc.js";
|
|
3
3
|
import a, { createContext as o, forwardRef as s, useCallback as c, useContext as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
4
4
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
5
|
import { useControllableValue as _, useLatest as v, useSize as y } from "ahooks";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import { t as e } from "./Calendar-
|
|
3
|
-
import "../ConfigProvider/useLocale-
|
|
4
|
-
import "./cssVars-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import { t as e } from "./Calendar-B1TwDL1q.js";
|
|
3
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
4
|
+
import "./cssVars-DNOooryc.js";
|
|
5
5
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "../Overlay/Overlay-
|
|
2
|
-
import { a as t, i as n, n as r } from "./useLocale-
|
|
1
|
+
import { r as e } from "../Overlay/Overlay-CqQWOqO4.js";
|
|
2
|
+
import { a as t, i as n, n as r } from "./useLocale-Bf81I-9U.js";
|
|
3
3
|
import { useCallback as i, useContext as a, useMemo as o } from "react";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
5
|
var c = {
|
|
@@ -94,6 +94,62 @@ var c = {
|
|
|
94
94
|
ariaLabel: "定位",
|
|
95
95
|
failed: "定位失敗,請檢查是否開啟定位權限"
|
|
96
96
|
}
|
|
97
|
+
},
|
|
98
|
+
editor: {
|
|
99
|
+
title: "富文本",
|
|
100
|
+
bold: "粗體",
|
|
101
|
+
italic: "斜體",
|
|
102
|
+
underline: "底線",
|
|
103
|
+
strikethrough: "刪除線",
|
|
104
|
+
outdent: "減少縮排",
|
|
105
|
+
indent: "增加縮排",
|
|
106
|
+
bulletList: "無序清單",
|
|
107
|
+
numberList: "有序清單",
|
|
108
|
+
alignment: "對齊方式",
|
|
109
|
+
leftAlign: "左對齊",
|
|
110
|
+
centerAlign: "置中對齊",
|
|
111
|
+
rightAlign: "右對齊",
|
|
112
|
+
heading: "標題",
|
|
113
|
+
paragraph: "正文",
|
|
114
|
+
heading1: "H1",
|
|
115
|
+
heading2: "H2",
|
|
116
|
+
heading3: "H3",
|
|
117
|
+
fontSize: "字號",
|
|
118
|
+
fontColor: "顏色",
|
|
119
|
+
fill: "填滿",
|
|
120
|
+
fillNone: "無填滿",
|
|
121
|
+
picture: "圖片",
|
|
122
|
+
uploadImage: "上傳圖片",
|
|
123
|
+
imageUrl: "圖片URL",
|
|
124
|
+
enterImageUrl: "輸入圖片URL",
|
|
125
|
+
imageUrlNote: "註:輸入圖片URL即可插入圖片",
|
|
126
|
+
imageUrlPlaceholder: "請輸入圖片URL",
|
|
127
|
+
imageUrlRequired: "請輸入圖片URL",
|
|
128
|
+
imageUrlInvalid: "請輸入有效的圖片URL",
|
|
129
|
+
link: "連結",
|
|
130
|
+
linkUrl: "連結地址",
|
|
131
|
+
linkText: "顯示文本",
|
|
132
|
+
linkAliasTip: "連結可用@表單別名,用於應用內表單跳轉",
|
|
133
|
+
linkTip: "支援http://連結或者@表單別名",
|
|
134
|
+
linkNewBlank: "在新頁面開啟",
|
|
135
|
+
cancel: "取消",
|
|
136
|
+
ok: "確定",
|
|
137
|
+
ai: "AI",
|
|
138
|
+
aiTypeset: "智能排版",
|
|
139
|
+
aiPolish: "智能潤色",
|
|
140
|
+
aiOriginal: "優化前",
|
|
141
|
+
aiOptimized: "優化後",
|
|
142
|
+
aiAbandon: "放棄",
|
|
143
|
+
aiApply: "套用",
|
|
144
|
+
aiError: "產生失敗",
|
|
145
|
+
aiThinking: "正在思考",
|
|
146
|
+
aiThoughtSeconds: "已思考(用時 {{seconds}} 秒)",
|
|
147
|
+
aiPresetQuick: "快速潤色",
|
|
148
|
+
aiPresetFormal: "更正式",
|
|
149
|
+
aiPresetColloquial: "更口語",
|
|
150
|
+
aiPresetLively: "更生動",
|
|
151
|
+
aiPresetLiterary: "更書面",
|
|
152
|
+
aiPresetRetro: "更復古"
|
|
97
153
|
}
|
|
98
154
|
}, l = {
|
|
99
155
|
actionSheet: { close: "Close" },
|
|
@@ -187,6 +243,62 @@ var c = {
|
|
|
187
243
|
ariaLabel: "Locate",
|
|
188
244
|
failed: "Location failed. Check that location access is enabled"
|
|
189
245
|
}
|
|
246
|
+
},
|
|
247
|
+
editor: {
|
|
248
|
+
title: "Rich text",
|
|
249
|
+
bold: "Bold",
|
|
250
|
+
italic: "Italic",
|
|
251
|
+
underline: "Underline",
|
|
252
|
+
strikethrough: "Strikethrough",
|
|
253
|
+
outdent: "Decrease indent",
|
|
254
|
+
indent: "Increase indent",
|
|
255
|
+
bulletList: "Bulleted list",
|
|
256
|
+
numberList: "Numbered list",
|
|
257
|
+
alignment: "Alignment",
|
|
258
|
+
leftAlign: "Left align",
|
|
259
|
+
centerAlign: "Center align",
|
|
260
|
+
rightAlign: "Right align",
|
|
261
|
+
heading: "Heading",
|
|
262
|
+
paragraph: "Paragraph",
|
|
263
|
+
heading1: "H1",
|
|
264
|
+
heading2: "H2",
|
|
265
|
+
heading3: "H3",
|
|
266
|
+
fontSize: "Font size",
|
|
267
|
+
fontColor: "Font color",
|
|
268
|
+
fill: "Fill",
|
|
269
|
+
fillNone: "No fill",
|
|
270
|
+
picture: "Image",
|
|
271
|
+
uploadImage: "Upload image",
|
|
272
|
+
imageUrl: "Image URL",
|
|
273
|
+
enterImageUrl: "Enter image URL",
|
|
274
|
+
imageUrlNote: "Note: Enter an image URL to insert the image",
|
|
275
|
+
imageUrlPlaceholder: "Please enter image URL",
|
|
276
|
+
imageUrlRequired: "Please enter image URL",
|
|
277
|
+
imageUrlInvalid: "Please enter a valid image URL",
|
|
278
|
+
link: "Link",
|
|
279
|
+
linkUrl: "URL",
|
|
280
|
+
linkText: "Display text",
|
|
281
|
+
linkAliasTip: "Links can use @form alias for in-app form navigation",
|
|
282
|
+
linkTip: "http:// links or @form alias",
|
|
283
|
+
linkNewBlank: "Open in new page",
|
|
284
|
+
cancel: "Cancel",
|
|
285
|
+
ok: "OK",
|
|
286
|
+
ai: "AI",
|
|
287
|
+
aiTypeset: "Smart typeset",
|
|
288
|
+
aiPolish: "Smart polish",
|
|
289
|
+
aiOriginal: "Before",
|
|
290
|
+
aiOptimized: "Optimized",
|
|
291
|
+
aiAbandon: "Discard",
|
|
292
|
+
aiApply: "Apply",
|
|
293
|
+
aiError: "Generation failed",
|
|
294
|
+
aiThinking: "Thinking",
|
|
295
|
+
aiThoughtSeconds: "Thought ({{seconds}}s)",
|
|
296
|
+
aiPresetQuick: "Quick polish",
|
|
297
|
+
aiPresetFormal: "More formal",
|
|
298
|
+
aiPresetColloquial: "More colloquial",
|
|
299
|
+
aiPresetLively: "More lively",
|
|
300
|
+
aiPresetLiterary: "More literary",
|
|
301
|
+
aiPresetRetro: "More retro"
|
|
190
302
|
}
|
|
191
303
|
}, u = {
|
|
192
304
|
"zh-CN": t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../Overlay/Overlay-
|
|
3
|
-
import { r as e, t } from "./useLocale-
|
|
4
|
-
import { t as n } from "./ConfigProvider-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Overlay/Overlay-CqQWOqO4.js";
|
|
3
|
+
import { r as e, t } from "./useLocale-Bf81I-9U.js";
|
|
4
|
+
import { t as n } from "./ConfigProvider-xyGx046s.js";
|
|
5
5
|
export { n as ConfigProvider, n as default, e as useAMapConfig, t as useLocale };
|
|
@@ -91,6 +91,62 @@ var n = {
|
|
|
91
91
|
ariaLabel: "定位",
|
|
92
92
|
failed: "定位失败,请检查是否开启定位权限"
|
|
93
93
|
}
|
|
94
|
+
},
|
|
95
|
+
editor: {
|
|
96
|
+
title: "富文本",
|
|
97
|
+
bold: "加粗",
|
|
98
|
+
italic: "倾斜",
|
|
99
|
+
underline: "下划线",
|
|
100
|
+
strikethrough: "删除线",
|
|
101
|
+
outdent: "减少缩进",
|
|
102
|
+
indent: "增加缩进",
|
|
103
|
+
bulletList: "无序列表",
|
|
104
|
+
numberList: "有序列表",
|
|
105
|
+
alignment: "对齐方式",
|
|
106
|
+
leftAlign: "左对齐",
|
|
107
|
+
centerAlign: "居中对齐",
|
|
108
|
+
rightAlign: "右对齐",
|
|
109
|
+
heading: "标题",
|
|
110
|
+
paragraph: "正文",
|
|
111
|
+
heading1: "H1",
|
|
112
|
+
heading2: "H2",
|
|
113
|
+
heading3: "H3",
|
|
114
|
+
fontSize: "字号",
|
|
115
|
+
fontColor: "颜色",
|
|
116
|
+
fill: "填充",
|
|
117
|
+
fillNone: "无填充",
|
|
118
|
+
picture: "图片",
|
|
119
|
+
uploadImage: "上传图片",
|
|
120
|
+
imageUrl: "图片URL",
|
|
121
|
+
enterImageUrl: "输入图片URL",
|
|
122
|
+
imageUrlNote: "注:输入图片URL即可插入图片",
|
|
123
|
+
imageUrlPlaceholder: "请输入图片URL",
|
|
124
|
+
imageUrlRequired: "请输入图片URL",
|
|
125
|
+
imageUrlInvalid: "请输入有效的图片URL",
|
|
126
|
+
link: "链接",
|
|
127
|
+
linkUrl: "链接地址",
|
|
128
|
+
linkText: "显示文本",
|
|
129
|
+
linkAliasTip: "链接可用@表单别名,用于应用内表单跳转",
|
|
130
|
+
linkTip: "支持http://链接或者@表单别名",
|
|
131
|
+
linkNewBlank: "在新页面打开",
|
|
132
|
+
cancel: "取消",
|
|
133
|
+
ok: "确定",
|
|
134
|
+
ai: "AI",
|
|
135
|
+
aiTypeset: "智能排版",
|
|
136
|
+
aiPolish: "智能润色",
|
|
137
|
+
aiOriginal: "优化前",
|
|
138
|
+
aiOptimized: "优化后",
|
|
139
|
+
aiAbandon: "放弃",
|
|
140
|
+
aiApply: "应用",
|
|
141
|
+
aiError: "生成失败",
|
|
142
|
+
aiThinking: "正在思考",
|
|
143
|
+
aiThoughtSeconds: "已思考(用时 {{seconds}} 秒)",
|
|
144
|
+
aiPresetQuick: "快速润色",
|
|
145
|
+
aiPresetFormal: "更正式",
|
|
146
|
+
aiPresetColloquial: "更口语",
|
|
147
|
+
aiPresetLively: "更生动",
|
|
148
|
+
aiPresetLiterary: "更书面",
|
|
149
|
+
aiPresetRetro: "更复古"
|
|
94
150
|
}
|
|
95
151
|
}, r = (e, t) => t ? e.replace(/\{\{(\w+)\}\}|\{(\w+)\}/g, (e, n, r) => {
|
|
96
152
|
let i = t[n || r];
|