@baishuyun/ui-mobile 0.12.2 → 0.12.4
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/index.js +1 -1
- package/dist/ActionSheet/index.js +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/Editor/{Editor-Cnznf4wf.js → Editor-CVWffQQX.js} +293 -245
- package/dist/Editor/index.js +2 -2
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Popup/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/components/Editor/constants.d.ts +2 -0
- package/dist/components/Editor/nodes/ExtendedTextNode.d.ts +5 -1
- package/dist/components/Editor/plugins/IndentLimitPlugin.d.ts +1 -0
- package/dist/components/Editor/toolbar/useTextFormats.d.ts +2 -1
- package/dist/components/Editor/utils/clampElementIndent.d.ts +3 -0
- package/dist/components/Editor/utils/readTextFormats.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{version-BgnXws3P.js → version-CNlAoA_H.js} +1 -1
- package/package.json +2 -2
|
@@ -11,18 +11,18 @@ import { $isListItemNode as S, $isListNode as C, INSERT_ORDERED_LIST_COMMAND as
|
|
|
11
11
|
import { $createCodeHighlightNode as k, $isCodeHighlightNode as A, $isCodeNode as ee, $plainifyCodeContent as te, CodeHighlightNode as j, CodeNode as M, registerCodeIndentation as ne } from "@lexical/code-core";
|
|
12
12
|
import { $createHeadingNode as re, $isHeadingNode as ie, HeadingNode as ae } from "@lexical/rich-text";
|
|
13
13
|
import { $findCellNode as oe, $isTableCellNode as se, $isTableNode as N, $isTableRowNode as ce, TableCellNode as le, TableNode as ue, TableRowNode as de, registerTableCellUnmergeTransform as fe, registerTablePlugin as pe, registerTableSelectionObserver as me, setScrollableTablesActive as he } from "@lexical/table";
|
|
14
|
-
import { $applyNodeReplacement as ge, $createLineBreakNode as _e, $createParagraphNode as P, $createTabNode as ve, $createTextNode as ye, $getNodeByKey as
|
|
15
|
-
import { ContentEditable as
|
|
16
|
-
import { HistoryPlugin as
|
|
17
|
-
import { LinkPlugin as
|
|
18
|
-
import { ListPlugin as
|
|
19
|
-
import { OnChangePlugin as
|
|
20
|
-
import { RichTextPlugin as
|
|
21
|
-
import { LexicalErrorBoundary as
|
|
14
|
+
import { $applyNodeReplacement as ge, $createLineBreakNode as _e, $createParagraphNode as P, $createTabNode as ve, $createTextNode as ye, $getNodeByKey as be, $getRoot as F, $getSelection as I, $insertNodes as xe, $isElementNode as Se, $isLineBreakNode as Ce, $isRangeSelection as L, $isRootOrShadowRoot as we, $isTabNode as Te, $isTextNode as R, $nodesOfType as Ee, $onUpdate as De, $setSelection as Oe, COMMAND_PRIORITY_HIGH as ke, COMMAND_PRIORITY_LOW as Ae, DROP_COMMAND as je, DecoratorNode as Me, FORMAT_ELEMENT_COMMAND as Ne, FORMAT_TEXT_COMMAND as Pe, HISTORY_MERGE_TAG as Fe, INDENT_CONTENT_COMMAND as Ie, KEY_ENTER_COMMAND as Le, KEY_TAB_COMMAND as Re, OUTDENT_CONTENT_COMMAND as ze, PASTE_COMMAND as Be, PASTE_TAG as Ve, ParagraphNode as He, TextNode as Ue, isHTMLElement as We, mergeRegister as Ge } from "lexical";
|
|
15
|
+
import { ContentEditable as Ke } from "@lexical/react/LexicalContentEditable";
|
|
16
|
+
import { HistoryPlugin as qe } from "@lexical/react/LexicalHistoryPlugin";
|
|
17
|
+
import { LinkPlugin as Je } from "@lexical/react/LexicalLinkPlugin";
|
|
18
|
+
import { ListPlugin as Ye } from "@lexical/react/LexicalListPlugin";
|
|
19
|
+
import { OnChangePlugin as Xe } from "@lexical/react/LexicalOnChangePlugin";
|
|
20
|
+
import { RichTextPlugin as Ze } from "@lexical/react/LexicalRichTextPlugin";
|
|
21
|
+
import { LexicalErrorBoundary as Qe } from "@lexical/react/LexicalErrorBoundary";
|
|
22
22
|
import { useLexicalComposerContext as z } from "@lexical/react/LexicalComposerContext";
|
|
23
|
-
import { $generateHtmlFromNodes as
|
|
24
|
-
import
|
|
25
|
-
import { $findMatchingParent as B, mergeRegister as rt } from "@lexical/utils";
|
|
23
|
+
import { $generateHtmlFromNodes as $e, $generateNodesFromDOM as et } from "@lexical/html";
|
|
24
|
+
import tt from "dompurify";
|
|
25
|
+
import { $findMatchingParent as B, $handleIndentAndOutdent as nt, mergeRegister as rt } from "@lexical/utils";
|
|
26
26
|
import { $getSelectionStyleValueForProperty as it, $patchStyleText as at, $setBlocksType as ot } from "@lexical/selection";
|
|
27
27
|
//#region src/components/Editor/constants.ts
|
|
28
28
|
var st = [
|
|
@@ -132,93 +132,93 @@ var st = [
|
|
|
132
132
|
"bmp",
|
|
133
133
|
"tif"
|
|
134
134
|
], ht = mt.map((e) => `.${e}`).join(","), gt = "calc(100dvh - 104px)", V = {
|
|
135
|
-
"bsy-mobile-editor": "_bsy-mobile-
|
|
136
|
-
"bsy-mobile-editor__label": "_bsy-mobile-
|
|
137
|
-
"bsy-mobile-editor__label-text": "_bsy-mobile-editor__label-
|
|
138
|
-
"bsy-mobile-editor__header": "_bsy-mobile-
|
|
139
|
-
"bsy-mobile-editor__title": "_bsy-mobile-
|
|
140
|
-
"bsy-mobile-editor__close": "_bsy-mobile-
|
|
141
|
-
"bsy-mobile-editor__content": "_bsy-mobile-
|
|
142
|
-
"bsy-mobile-editor__editable": "_bsy-mobile-
|
|
143
|
-
"bsy-mobile-editor__image-shell": "_bsy-mobile-editor__image-
|
|
144
|
-
"bsy-mobile-editor__image": "_bsy-mobile-
|
|
145
|
-
"bsy-mobile-editor__image-mask": "_bsy-mobile-editor__image-
|
|
146
|
-
"bsy-mobile-editor__image-progress": "_bsy-mobile-editor__image-
|
|
147
|
-
"bsy-mobile-editor__image-progress--spin": "_bsy-mobile-editor__image-progress--
|
|
148
|
-
"bsy-mobile-editor-progress-spin": "_bsy-mobile-editor-progress-
|
|
149
|
-
"bsy-mobile-editor__toolbar": "_bsy-mobile-
|
|
150
|
-
"bsy-mobile-editor__toolbar-scroller": "_bsy-mobile-editor__toolbar-
|
|
151
|
-
"bsy-mobile-editor__toolbar-track": "_bsy-mobile-editor__toolbar-
|
|
152
|
-
"bsy-mobile-editor__toolbar-thumb": "_bsy-mobile-editor__toolbar-
|
|
153
|
-
"bsy-mobile-editor__toolbar-group": "_bsy-mobile-editor__toolbar-
|
|
154
|
-
"bsy-mobile-editor__toolbar-divider": "_bsy-mobile-editor__toolbar-
|
|
155
|
-
"bsy-mobile-editor__tool": "_bsy-mobile-
|
|
156
|
-
"bsy-mobile-editor__tool--active": "_bsy-mobile-editor__tool--
|
|
157
|
-
"bsy-mobile-editor__tool--select": "_bsy-mobile-editor__tool--
|
|
158
|
-
"bsy-mobile-editor__tool--select-align": "_bsy-mobile-editor__tool--select-
|
|
159
|
-
"bsy-mobile-editor__tool-caret": "_bsy-mobile-editor__tool-
|
|
160
|
-
"bsy-mobile-editor__tool-caret--open": "_bsy-mobile-editor__tool-caret--
|
|
161
|
-
"bsy-mobile-editor__ai-icon": "_bsy-mobile-editor__ai-
|
|
162
|
-
"bsy-mobile-editor__tool-text": "_bsy-mobile-editor__tool-
|
|
163
|
-
"bsy-mobile-editor__color": "_bsy-mobile-
|
|
164
|
-
"bsy-mobile-editor__color--custom": "_bsy-mobile-editor__color--
|
|
165
|
-
"bsy-mobile-editor__color-header": "_bsy-mobile-editor__color-
|
|
166
|
-
"bsy-mobile-editor__color-header-title": "_bsy-mobile-editor__color-header-
|
|
167
|
-
"bsy-mobile-editor__color-header-back": "_bsy-mobile-editor__color-header-
|
|
168
|
-
"bsy-mobile-editor__color-grid": "_bsy-mobile-editor__color-
|
|
169
|
-
"bsy-mobile-editor__color-swatch": "_bsy-mobile-editor__color-
|
|
170
|
-
"bsy-mobile-editor__color-none": "_bsy-mobile-editor__color-
|
|
171
|
-
"bsy-mobile-editor__color-custom-item": "_bsy-mobile-editor__color-custom-
|
|
172
|
-
"bsy-mobile-editor__color-swatch--selected": "_bsy-mobile-editor__color-swatch--
|
|
173
|
-
"bsy-mobile-editor__color-none--selected": "_bsy-mobile-editor__color-none--
|
|
174
|
-
"bsy-mobile-editor__color-custom-item--selected": "_bsy-mobile-editor__color-custom-item--
|
|
175
|
-
"bsy-mobile-editor__color-swatch-fill": "_bsy-mobile-editor__color-swatch-
|
|
176
|
-
"bsy-mobile-editor__color-bar": "_bsy-mobile-editor__color-
|
|
177
|
-
"bsy-mobile-editor__color-custom-trigger": "_bsy-mobile-editor__color-custom-
|
|
178
|
-
"bsy-mobile-editor__color-custom-trigger--active": "_bsy-mobile-editor__color-custom-trigger--
|
|
179
|
-
"bsy-mobile-editor__color-custom-trigger--preview": "_bsy-mobile-editor__color-custom-trigger--
|
|
180
|
-
"bsy-mobile-editor__color-custom-list": "_bsy-mobile-editor__color-custom-
|
|
181
|
-
"bsy-mobile-editor__color-mixer": "_bsy-mobile-editor__color-
|
|
182
|
-
"bsy-mobile-editor__color-spectrum": "_bsy-mobile-editor__color-
|
|
183
|
-
"bsy-mobile-editor__color-spectrum-canvas": "_bsy-mobile-editor__color-spectrum-
|
|
184
|
-
"bsy-mobile-editor__color-thumb": "_bsy-mobile-editor__color-
|
|
185
|
-
"bsy-mobile-editor__sheet": "_bsy-mobile-
|
|
186
|
-
"bsy-mobile-editor__sheet-body": "_bsy-mobile-editor__sheet-
|
|
187
|
-
"bsy-mobile-editor__sheet-body--stack": "_bsy-mobile-editor__sheet-body--
|
|
188
|
-
"bsy-mobile-editor__sheet-field": "_bsy-mobile-editor__sheet-
|
|
189
|
-
"bsy-mobile-editor__sheet-label": "_bsy-mobile-editor__sheet-
|
|
190
|
-
"bsy-mobile-editor__sheet-note": "_bsy-mobile-editor__sheet-
|
|
191
|
-
"bsy-mobile-editor__sheet-note--hint": "_bsy-mobile-editor__sheet-note--
|
|
192
|
-
"bsy-mobile-editor__sheet-error": "_bsy-mobile-editor__sheet-
|
|
193
|
-
"bsy-mobile-editor__sheet-bar": "_bsy-mobile-editor__sheet-
|
|
194
|
-
"bsy-mobile-editor__sheet-ok": "_bsy-mobile-editor__sheet-
|
|
195
|
-
"bsy-mobile-editor__check": "_bsy-mobile-
|
|
196
|
-
"bsy-mobile-editor__check-input": "_bsy-mobile-editor__check-
|
|
197
|
-
"bsy-mobile-editor__check-box": "_bsy-mobile-editor__check-
|
|
198
|
-
"bsy-mobile-editor__ai": "_bsy-mobile-
|
|
199
|
-
"bsy-mobile-editor__ai-body": "_bsy-mobile-editor__ai-
|
|
200
|
-
"bsy-mobile-editor__ai-section": "_bsy-mobile-editor__ai-
|
|
201
|
-
"bsy-mobile-editor__ai-section-head": "_bsy-mobile-editor__ai-section-
|
|
202
|
-
"bsy-mobile-editor__ai-section-scroll": "_bsy-mobile-editor__ai-section-
|
|
203
|
-
"bsy-mobile-editor__ai-label": "_bsy-mobile-editor__ai-
|
|
204
|
-
"bsy-mobile-editor__ai-label--after": "_bsy-mobile-editor__ai-label--
|
|
205
|
-
"bsy-mobile-editor__ai-label--before": "_bsy-mobile-editor__ai-label--
|
|
206
|
-
"bsy-mobile-editor__ai-dot": "_bsy-mobile-editor__ai-
|
|
207
|
-
"bsy-mobile-editor__ai-split": "_bsy-mobile-editor__ai-
|
|
208
|
-
"bsy-mobile-editor__ai-preset": "_bsy-mobile-editor__ai-
|
|
209
|
-
"bsy-mobile-editor__ai-think-pin": "_bsy-mobile-editor__ai-think-
|
|
210
|
-
"bsy-mobile-editor__ai-think-head": "_bsy-mobile-editor__ai-think-
|
|
211
|
-
"bsy-mobile-editor__ai-think-label": "_bsy-mobile-editor__ai-think-
|
|
212
|
-
"bsy-mobile-editor__ai-think-label--shimmer": "_bsy-mobile-editor__ai-think-label--
|
|
213
|
-
"bsy-mobile-ai-think-shimmer": "_bsy-mobile-ai-think-
|
|
214
|
-
"bsy-mobile-editor__ai-think-arrow": "_bsy-mobile-editor__ai-think-
|
|
215
|
-
"bsy-mobile-editor__ai-think-arrow--open": "_bsy-mobile-editor__ai-think-arrow--
|
|
216
|
-
"bsy-mobile-editor__ai-think-icon": "_bsy-mobile-editor__ai-think-
|
|
217
|
-
"bsy-mobile-ai-think": "_bsy-mobile-ai-
|
|
218
|
-
"bsy-mobile-editor__ai-think-body": "_bsy-mobile-editor__ai-think-
|
|
219
|
-
"bsy-mobile-editor__ai-error": "_bsy-mobile-editor__ai-
|
|
220
|
-
"bsy-mobile-editor__ai-footer": "_bsy-mobile-editor__ai-
|
|
221
|
-
"bsy-mobile-editor__ai-footer-ok": "_bsy-mobile-editor__ai-footer-
|
|
135
|
+
"bsy-mobile-editor": "_bsy-mobile-editor_dfbcr_2",
|
|
136
|
+
"bsy-mobile-editor__label": "_bsy-mobile-editor__label_dfbcr_15",
|
|
137
|
+
"bsy-mobile-editor__label-text": "_bsy-mobile-editor__label-text_dfbcr_20",
|
|
138
|
+
"bsy-mobile-editor__header": "_bsy-mobile-editor__header_dfbcr_29",
|
|
139
|
+
"bsy-mobile-editor__title": "_bsy-mobile-editor__title_dfbcr_39",
|
|
140
|
+
"bsy-mobile-editor__close": "_bsy-mobile-editor__close_dfbcr_49",
|
|
141
|
+
"bsy-mobile-editor__content": "_bsy-mobile-editor__content_dfbcr_63",
|
|
142
|
+
"bsy-mobile-editor__editable": "_bsy-mobile-editor__editable_dfbcr_73",
|
|
143
|
+
"bsy-mobile-editor__image-shell": "_bsy-mobile-editor__image-shell_dfbcr_243",
|
|
144
|
+
"bsy-mobile-editor__image": "_bsy-mobile-editor__image_dfbcr_243",
|
|
145
|
+
"bsy-mobile-editor__image-mask": "_bsy-mobile-editor__image-mask_dfbcr_265",
|
|
146
|
+
"bsy-mobile-editor__image-progress": "_bsy-mobile-editor__image-progress_dfbcr_274",
|
|
147
|
+
"bsy-mobile-editor__image-progress--spin": "_bsy-mobile-editor__image-progress--spin_dfbcr_277",
|
|
148
|
+
"bsy-mobile-editor-progress-spin": "_bsy-mobile-editor-progress-spin_dfbcr_1",
|
|
149
|
+
"bsy-mobile-editor__toolbar": "_bsy-mobile-editor__toolbar_dfbcr_280",
|
|
150
|
+
"bsy-mobile-editor__toolbar-scroller": "_bsy-mobile-editor__toolbar-scroller_dfbcr_295",
|
|
151
|
+
"bsy-mobile-editor__toolbar-track": "_bsy-mobile-editor__toolbar-track_dfbcr_312",
|
|
152
|
+
"bsy-mobile-editor__toolbar-thumb": "_bsy-mobile-editor__toolbar-thumb_dfbcr_324",
|
|
153
|
+
"bsy-mobile-editor__toolbar-group": "_bsy-mobile-editor__toolbar-group_dfbcr_329",
|
|
154
|
+
"bsy-mobile-editor__toolbar-divider": "_bsy-mobile-editor__toolbar-divider_dfbcr_335",
|
|
155
|
+
"bsy-mobile-editor__tool": "_bsy-mobile-editor__tool_dfbcr_280",
|
|
156
|
+
"bsy-mobile-editor__tool--active": "_bsy-mobile-editor__tool--active_dfbcr_356",
|
|
157
|
+
"bsy-mobile-editor__tool--select": "_bsy-mobile-editor__tool--select_dfbcr_363",
|
|
158
|
+
"bsy-mobile-editor__tool--select-align": "_bsy-mobile-editor__tool--select-align_dfbcr_368",
|
|
159
|
+
"bsy-mobile-editor__tool-caret": "_bsy-mobile-editor__tool-caret_dfbcr_371",
|
|
160
|
+
"bsy-mobile-editor__tool-caret--open": "_bsy-mobile-editor__tool-caret--open_dfbcr_374",
|
|
161
|
+
"bsy-mobile-editor__ai-icon": "_bsy-mobile-editor__ai-icon_dfbcr_377",
|
|
162
|
+
"bsy-mobile-editor__tool-text": "_bsy-mobile-editor__tool-text_dfbcr_382",
|
|
163
|
+
"bsy-mobile-editor__color": "_bsy-mobile-editor__color_dfbcr_387",
|
|
164
|
+
"bsy-mobile-editor__color--custom": "_bsy-mobile-editor__color--custom_dfbcr_395",
|
|
165
|
+
"bsy-mobile-editor__color-header": "_bsy-mobile-editor__color-header_dfbcr_398",
|
|
166
|
+
"bsy-mobile-editor__color-header-title": "_bsy-mobile-editor__color-header-title_dfbcr_407",
|
|
167
|
+
"bsy-mobile-editor__color-header-back": "_bsy-mobile-editor__color-header-back_dfbcr_420",
|
|
168
|
+
"bsy-mobile-editor__color-grid": "_bsy-mobile-editor__color-grid_dfbcr_434",
|
|
169
|
+
"bsy-mobile-editor__color-swatch": "_bsy-mobile-editor__color-swatch_dfbcr_441",
|
|
170
|
+
"bsy-mobile-editor__color-none": "_bsy-mobile-editor__color-none_dfbcr_441",
|
|
171
|
+
"bsy-mobile-editor__color-custom-item": "_bsy-mobile-editor__color-custom-item_dfbcr_441",
|
|
172
|
+
"bsy-mobile-editor__color-swatch--selected": "_bsy-mobile-editor__color-swatch--selected_dfbcr_457",
|
|
173
|
+
"bsy-mobile-editor__color-none--selected": "_bsy-mobile-editor__color-none--selected_dfbcr_457",
|
|
174
|
+
"bsy-mobile-editor__color-custom-item--selected": "_bsy-mobile-editor__color-custom-item--selected_dfbcr_457",
|
|
175
|
+
"bsy-mobile-editor__color-swatch-fill": "_bsy-mobile-editor__color-swatch-fill_dfbcr_471",
|
|
176
|
+
"bsy-mobile-editor__color-bar": "_bsy-mobile-editor__color-bar_dfbcr_478",
|
|
177
|
+
"bsy-mobile-editor__color-custom-trigger": "_bsy-mobile-editor__color-custom-trigger_dfbcr_484",
|
|
178
|
+
"bsy-mobile-editor__color-custom-trigger--active": "_bsy-mobile-editor__color-custom-trigger--active_dfbcr_502",
|
|
179
|
+
"bsy-mobile-editor__color-custom-trigger--preview": "_bsy-mobile-editor__color-custom-trigger--preview_dfbcr_507",
|
|
180
|
+
"bsy-mobile-editor__color-custom-list": "_bsy-mobile-editor__color-custom-list_dfbcr_522",
|
|
181
|
+
"bsy-mobile-editor__color-mixer": "_bsy-mobile-editor__color-mixer_dfbcr_542",
|
|
182
|
+
"bsy-mobile-editor__color-spectrum": "_bsy-mobile-editor__color-spectrum_dfbcr_545",
|
|
183
|
+
"bsy-mobile-editor__color-spectrum-canvas": "_bsy-mobile-editor__color-spectrum-canvas_dfbcr_553",
|
|
184
|
+
"bsy-mobile-editor__color-thumb": "_bsy-mobile-editor__color-thumb_dfbcr_560",
|
|
185
|
+
"bsy-mobile-editor__sheet": "_bsy-mobile-editor__sheet_dfbcr_570",
|
|
186
|
+
"bsy-mobile-editor__sheet-body": "_bsy-mobile-editor__sheet-body_dfbcr_576",
|
|
187
|
+
"bsy-mobile-editor__sheet-body--stack": "_bsy-mobile-editor__sheet-body--stack_dfbcr_581",
|
|
188
|
+
"bsy-mobile-editor__sheet-field": "_bsy-mobile-editor__sheet-field_dfbcr_586",
|
|
189
|
+
"bsy-mobile-editor__sheet-label": "_bsy-mobile-editor__sheet-label_dfbcr_591",
|
|
190
|
+
"bsy-mobile-editor__sheet-note": "_bsy-mobile-editor__sheet-note_dfbcr_597",
|
|
191
|
+
"bsy-mobile-editor__sheet-note--hint": "_bsy-mobile-editor__sheet-note--hint_dfbcr_603",
|
|
192
|
+
"bsy-mobile-editor__sheet-error": "_bsy-mobile-editor__sheet-error_dfbcr_606",
|
|
193
|
+
"bsy-mobile-editor__sheet-bar": "_bsy-mobile-editor__sheet-bar_dfbcr_626",
|
|
194
|
+
"bsy-mobile-editor__sheet-ok": "_bsy-mobile-editor__sheet-ok_dfbcr_647",
|
|
195
|
+
"bsy-mobile-editor__check": "_bsy-mobile-editor__check_dfbcr_652",
|
|
196
|
+
"bsy-mobile-editor__check-input": "_bsy-mobile-editor__check-input_dfbcr_664",
|
|
197
|
+
"bsy-mobile-editor__check-box": "_bsy-mobile-editor__check-box_dfbcr_671",
|
|
198
|
+
"bsy-mobile-editor__ai": "_bsy-mobile-editor__ai_dfbcr_377",
|
|
199
|
+
"bsy-mobile-editor__ai-body": "_bsy-mobile-editor__ai-body_dfbcr_693",
|
|
200
|
+
"bsy-mobile-editor__ai-section": "_bsy-mobile-editor__ai-section_dfbcr_701",
|
|
201
|
+
"bsy-mobile-editor__ai-section-head": "_bsy-mobile-editor__ai-section-head_dfbcr_709",
|
|
202
|
+
"bsy-mobile-editor__ai-section-scroll": "_bsy-mobile-editor__ai-section-scroll_dfbcr_717",
|
|
203
|
+
"bsy-mobile-editor__ai-label": "_bsy-mobile-editor__ai-label_dfbcr_724",
|
|
204
|
+
"bsy-mobile-editor__ai-label--after": "_bsy-mobile-editor__ai-label--after_dfbcr_736",
|
|
205
|
+
"bsy-mobile-editor__ai-label--before": "_bsy-mobile-editor__ai-label--before_dfbcr_740",
|
|
206
|
+
"bsy-mobile-editor__ai-dot": "_bsy-mobile-editor__ai-dot_dfbcr_744",
|
|
207
|
+
"bsy-mobile-editor__ai-split": "_bsy-mobile-editor__ai-split_dfbcr_751",
|
|
208
|
+
"bsy-mobile-editor__ai-preset": "_bsy-mobile-editor__ai-preset_dfbcr_757",
|
|
209
|
+
"bsy-mobile-editor__ai-think-pin": "_bsy-mobile-editor__ai-think-pin_dfbcr_777",
|
|
210
|
+
"bsy-mobile-editor__ai-think-head": "_bsy-mobile-editor__ai-think-head_dfbcr_781",
|
|
211
|
+
"bsy-mobile-editor__ai-think-label": "_bsy-mobile-editor__ai-think-label_dfbcr_798",
|
|
212
|
+
"bsy-mobile-editor__ai-think-label--shimmer": "_bsy-mobile-editor__ai-think-label--shimmer_dfbcr_802",
|
|
213
|
+
"bsy-mobile-ai-think-shimmer": "_bsy-mobile-ai-think-shimmer_dfbcr_1",
|
|
214
|
+
"bsy-mobile-editor__ai-think-arrow": "_bsy-mobile-editor__ai-think-arrow_dfbcr_813",
|
|
215
|
+
"bsy-mobile-editor__ai-think-arrow--open": "_bsy-mobile-editor__ai-think-arrow--open_dfbcr_820",
|
|
216
|
+
"bsy-mobile-editor__ai-think-icon": "_bsy-mobile-editor__ai-think-icon_dfbcr_823",
|
|
217
|
+
"bsy-mobile-ai-think": "_bsy-mobile-ai-think_dfbcr_1",
|
|
218
|
+
"bsy-mobile-editor__ai-think-body": "_bsy-mobile-editor__ai-think-body_dfbcr_835",
|
|
219
|
+
"bsy-mobile-editor__ai-error": "_bsy-mobile-editor__ai-error_dfbcr_844",
|
|
220
|
+
"bsy-mobile-editor__ai-footer": "_bsy-mobile-editor__ai-footer_dfbcr_849",
|
|
221
|
+
"bsy-mobile-editor__ai-footer-ok": "_bsy-mobile-editor__ai-footer-ok_dfbcr_871"
|
|
222
222
|
}, _t = {
|
|
223
223
|
typeset: [
|
|
224
224
|
"你是一名专业的 HTML 文档排版引擎。输入已是 HTML 片段。",
|
|
@@ -384,13 +384,13 @@ var st = [
|
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
}, Vt = (e, t) => {
|
|
387
|
-
let n =
|
|
387
|
+
let n = F();
|
|
388
388
|
if (n.clear(), t.trim()) {
|
|
389
389
|
let r = new DOMParser().parseFromString(t, "text/html");
|
|
390
390
|
Bt(r);
|
|
391
|
-
let i =
|
|
391
|
+
let i = et(e, r);
|
|
392
392
|
if (i.length) {
|
|
393
|
-
n.select(),
|
|
393
|
+
n.select(), xe(i), Oe(null);
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
@@ -398,14 +398,14 @@ var st = [
|
|
|
398
398
|
n.append(r), Oe(null);
|
|
399
399
|
}, Ht = (e) => {
|
|
400
400
|
if (e) {
|
|
401
|
-
|
|
401
|
+
F().selectStart();
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
404
|
Oe(null);
|
|
405
405
|
}, Ut = (e) => {
|
|
406
406
|
e && Oe(e.clone());
|
|
407
407
|
}, Wt = () => {
|
|
408
|
-
|
|
408
|
+
I() === null && F().selectStart();
|
|
409
409
|
}, H = (e) => {
|
|
410
410
|
e.isEditable() || e.setEditable(!0), e.update(() => {
|
|
411
411
|
Wt();
|
|
@@ -441,14 +441,14 @@ var st = [
|
|
|
441
441
|
}
|
|
442
442
|
return !$t(r, t) || /expression|javascript:|url\s*\(\s*['"]?\s*javascript/i.test(i) ? null : `${r}: ${i}`;
|
|
443
443
|
}).filter((e) => e !== null).join("; "), tn = !1, nn = () => {
|
|
444
|
-
tn ||= (
|
|
444
|
+
tn ||= (tt.addHook("uponSanitizeAttribute", (e, t) => {
|
|
445
445
|
if (t.attrName === "href" && /^data:/i.test(t.attrValue)) {
|
|
446
446
|
t.keepAttr = !1;
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
449
449
|
t.attrName === "style" && (t.attrValue = en(t.attrValue, e.nodeName.toLowerCase()), t.attrValue || (t.keepAttr = !1));
|
|
450
450
|
}), !0);
|
|
451
|
-
}, U = (e) => e ? (nn(),
|
|
451
|
+
}, U = (e) => e ? (nn(), tt.sanitize(e, {
|
|
452
452
|
ALLOWED_TAGS: Kt,
|
|
453
453
|
ALLOWED_ATTR: qt,
|
|
454
454
|
ALLOW_DATA_ATTR: !1,
|
|
@@ -673,7 +673,7 @@ var st = [
|
|
|
673
673
|
}, Mn = (e, t) => {
|
|
674
674
|
let n = "";
|
|
675
675
|
e.getEditorState().read(() => {
|
|
676
|
-
n = yn(U(
|
|
676
|
+
n = yn(U($e(e, null)));
|
|
677
677
|
}, { editor: e });
|
|
678
678
|
let r = U(jn(n, t));
|
|
679
679
|
return !r.trim() || Gt(r, bn(r)) ? !1 : (e.update(() => {
|
|
@@ -764,7 +764,7 @@ function Xn(e, t, n) {
|
|
|
764
764
|
var Zn = (e) => {
|
|
765
765
|
let t = "", n = "", r = "";
|
|
766
766
|
e.getEditorState().read(() => {
|
|
767
|
-
n =
|
|
767
|
+
n = F().getTextContent(), t = yn(U($e(e, null))), r = On(t).join(`\n\n${St}\n\n`);
|
|
768
768
|
}, { editor: e });
|
|
769
769
|
let i = xt(t);
|
|
770
770
|
return {
|
|
@@ -856,7 +856,7 @@ var Zn = (e) => {
|
|
|
856
856
|
})
|
|
857
857
|
}) : null]
|
|
858
858
|
});
|
|
859
|
-
}, rr = class e extends
|
|
859
|
+
}, rr = class e extends Me {
|
|
860
860
|
__src;
|
|
861
861
|
__altText;
|
|
862
862
|
__width;
|
|
@@ -964,14 +964,14 @@ var Zn = (e) => {
|
|
|
964
964
|
let m = a((t, r, i) => {
|
|
965
965
|
let a = "";
|
|
966
966
|
return e.update(() => {
|
|
967
|
-
Ut(n.current),
|
|
967
|
+
Ut(n.current), I() === null && F().selectEnd();
|
|
968
968
|
let e = ar({
|
|
969
969
|
src: t,
|
|
970
970
|
altText: r,
|
|
971
971
|
dataSrc: i
|
|
972
972
|
});
|
|
973
|
-
a = e.getKey(),
|
|
974
|
-
for (let t of e.getParent()?.getChildren() ?? [])
|
|
973
|
+
a = e.getKey(), xe([e]);
|
|
974
|
+
for (let t of e.getParent()?.getChildren() ?? []) R(t) && t.getTextContentSize() === 0 && t.remove();
|
|
975
975
|
}), a;
|
|
976
976
|
}, [e, n]);
|
|
977
977
|
return {
|
|
@@ -1005,7 +1005,7 @@ var Zn = (e) => {
|
|
|
1005
1005
|
}));
|
|
1006
1006
|
let u = !1, d = (t) => {
|
|
1007
1007
|
u || (u = !0, URL.revokeObjectURL(s), t || e.update(() => {
|
|
1008
|
-
|
|
1008
|
+
be(l)?.remove();
|
|
1009
1009
|
}, c.current ? void 0 : { discrete: !0 }), c.current && f((e) => {
|
|
1010
1010
|
let t = { ...e };
|
|
1011
1011
|
return delete t[l], t;
|
|
@@ -1034,7 +1034,7 @@ var Zn = (e) => {
|
|
|
1034
1034
|
return;
|
|
1035
1035
|
}
|
|
1036
1036
|
e.update(() => {
|
|
1037
|
-
let e =
|
|
1037
|
+
let e = be(l);
|
|
1038
1038
|
ir(e) && (e.setSrc(o), s && e.setDataId(s));
|
|
1039
1039
|
}), d(!0);
|
|
1040
1040
|
} catch {
|
|
@@ -1055,7 +1055,7 @@ var Zn = (e) => {
|
|
|
1055
1055
|
linkForm: r,
|
|
1056
1056
|
openLink: () => {
|
|
1057
1057
|
n(), e.getEditorState().read(() => {
|
|
1058
|
-
let e =
|
|
1058
|
+
let e = I(), t = L(e) ? e.anchor.getNode() : null, n = t ? B(t, v) : null;
|
|
1059
1059
|
if (n) {
|
|
1060
1060
|
i({
|
|
1061
1061
|
url: n.getURL(),
|
|
@@ -1066,7 +1066,7 @@ var Zn = (e) => {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
i({
|
|
1068
1068
|
url: "",
|
|
1069
|
-
text:
|
|
1069
|
+
text: L(e) ? e.getTextContent() : "",
|
|
1070
1070
|
newBlank: !0
|
|
1071
1071
|
});
|
|
1072
1072
|
});
|
|
@@ -1077,12 +1077,12 @@ var Zn = (e) => {
|
|
|
1077
1077
|
let a = r.startsWith("@") || /^https?:\/\//.test(r) ? r : `http://${r}`;
|
|
1078
1078
|
e.update(() => {
|
|
1079
1079
|
Ut(t.current);
|
|
1080
|
-
let e =
|
|
1080
|
+
let e = I(), r = n.newBlank ? {
|
|
1081
1081
|
target: "_blank",
|
|
1082
1082
|
rel: "noopener noreferrer",
|
|
1083
1083
|
title: n.url
|
|
1084
1084
|
} : { title: n.url };
|
|
1085
|
-
if (
|
|
1085
|
+
if (L(e)) {
|
|
1086
1086
|
let t = n.text.trim() || n.url;
|
|
1087
1087
|
if (e.getTextContent()) y(a, r);
|
|
1088
1088
|
else {
|
|
@@ -1092,8 +1092,8 @@ var Zn = (e) => {
|
|
|
1092
1092
|
} else {
|
|
1093
1093
|
let e = ye(n.text.trim() || n.url), t = _(a, r);
|
|
1094
1094
|
t.append(e);
|
|
1095
|
-
let i =
|
|
1096
|
-
if (
|
|
1095
|
+
let i = F(), o = i.getLastChild();
|
|
1096
|
+
if (Se(o)) o.append(t);
|
|
1097
1097
|
else {
|
|
1098
1098
|
let e = P();
|
|
1099
1099
|
e.append(t), i.append(e);
|
|
@@ -1108,7 +1108,7 @@ var Zn = (e) => {
|
|
|
1108
1108
|
o.current = n;
|
|
1109
1109
|
let c = a((t) => {
|
|
1110
1110
|
t.read(() => {
|
|
1111
|
-
let n =
|
|
1111
|
+
let n = F().getTextContent(), a = yn(U($e(e, null))), s = Gt(a, n) ? null : a;
|
|
1112
1112
|
i.current = s;
|
|
1113
1113
|
let c = Ee(rr).map((e) => r.get(e.getSrc())).filter((e) => e !== void 0);
|
|
1114
1114
|
o.current({
|
|
@@ -1131,11 +1131,11 @@ var Zn = (e) => {
|
|
|
1131
1131
|
]), c;
|
|
1132
1132
|
}, fr = 250, pr = () => {
|
|
1133
1133
|
let [e] = z(), t = u(0);
|
|
1134
|
-
return s(() => e.registerCommand(
|
|
1134
|
+
return s(() => e.registerCommand(Le, (e) => {
|
|
1135
1135
|
let n = Date.now(), r = n - t.current;
|
|
1136
1136
|
if (t.current = n, r <= 0 || r >= fr) return !1;
|
|
1137
|
-
let i =
|
|
1138
|
-
if (!
|
|
1137
|
+
let i = I();
|
|
1138
|
+
if (!L(i) || !i.isCollapsed()) return !1;
|
|
1139
1139
|
let a = i.anchor.getNode();
|
|
1140
1140
|
if (B(a, S)) return !1;
|
|
1141
1141
|
let o = a.getTopLevelElement();
|
|
@@ -1152,7 +1152,7 @@ var Zn = (e) => {
|
|
|
1152
1152
|
}), o.replace(s), s.select();
|
|
1153
1153
|
let c = s.getPreviousSibling();
|
|
1154
1154
|
return c?.getTextContent().trim() === "" && c.remove(), e?.preventDefault(), !0;
|
|
1155
|
-
},
|
|
1155
|
+
}, Ae), [e]), null;
|
|
1156
1156
|
}, mr = (e, t) => e.split(";").map((e) => e.trim()).filter((e) => e && e.split(":")[0].trim().toLowerCase() !== t).join("; "), hr = () => {
|
|
1157
1157
|
let [e] = z();
|
|
1158
1158
|
return s(() => e.registerNodeTransform(ae, (e) => {
|
|
@@ -1168,7 +1168,7 @@ var Zn = (e) => {
|
|
|
1168
1168
|
n !== e && t.setStyle(n);
|
|
1169
1169
|
}
|
|
1170
1170
|
}), [e]), null;
|
|
1171
|
-
}, q = class e extends
|
|
1171
|
+
}, q = class e extends Ue {
|
|
1172
1172
|
static getType() {
|
|
1173
1173
|
return "extended-text";
|
|
1174
1174
|
}
|
|
@@ -1176,7 +1176,7 @@ var Zn = (e) => {
|
|
|
1176
1176
|
return new e(t.__text, t.__key);
|
|
1177
1177
|
}
|
|
1178
1178
|
static importDOM() {
|
|
1179
|
-
let e =
|
|
1179
|
+
let e = Ue.importDOM();
|
|
1180
1180
|
return {
|
|
1181
1181
|
...e,
|
|
1182
1182
|
code: () => ({
|
|
@@ -1211,24 +1211,34 @@ var Zn = (e) => {
|
|
|
1211
1211
|
isSimpleText() {
|
|
1212
1212
|
return this.__type === "extended-text" && this.__mode === 0;
|
|
1213
1213
|
}
|
|
1214
|
+
createDOM(e, t) {
|
|
1215
|
+
let n = super.createDOM(e, t);
|
|
1216
|
+
return this.dropInlineTextDecorationIfFormatted(n), n;
|
|
1217
|
+
}
|
|
1218
|
+
updateDOM(e, t, n) {
|
|
1219
|
+
let r = super.updateDOM(e, t, n);
|
|
1220
|
+
return r || this.dropInlineTextDecorationIfFormatted(t), r;
|
|
1221
|
+
}
|
|
1222
|
+
dropInlineTextDecorationIfFormatted(e) {
|
|
1223
|
+
(this.hasFormat("underline") || this.hasFormat("strikethrough")) && e.style.removeProperty("text-decoration");
|
|
1224
|
+
}
|
|
1214
1225
|
}, gr = (e = "") => ge(new q(e)), J = (e) => (t) => {
|
|
1215
1226
|
let n = e?.(t);
|
|
1216
1227
|
if (!n) return null;
|
|
1217
1228
|
let r = n.conversion(t);
|
|
1218
1229
|
if (!r) return r;
|
|
1219
|
-
let i = t.style.backgroundColor, a = t.style.color, o = t.style.fontFamily, s = t.style.fontWeight, c = t.style.fontSize
|
|
1230
|
+
let i = t.style.backgroundColor, a = t.style.color, o = t.style.fontFamily, s = t.style.fontWeight, c = t.style.fontSize;
|
|
1220
1231
|
return {
|
|
1221
1232
|
...r,
|
|
1222
1233
|
forChild: (e, t) => {
|
|
1223
1234
|
let n = (r?.forChild ?? ((e) => e))(e, t);
|
|
1224
|
-
if (
|
|
1235
|
+
if (R(n)) {
|
|
1225
1236
|
let e = [
|
|
1226
1237
|
i ? `background-color: ${i}` : null,
|
|
1227
1238
|
a ? `color: ${a}` : null,
|
|
1228
1239
|
o ? `font-family: ${o}` : null,
|
|
1229
1240
|
s ? `font-weight: ${s}` : null,
|
|
1230
|
-
c ? `font-size: ${c}` : null
|
|
1231
|
-
l ? `text-decoration: ${l}` : null
|
|
1241
|
+
c ? `font-size: ${c}` : null
|
|
1232
1242
|
].filter((e) => e !== null).join("; ");
|
|
1233
1243
|
if (e.length) return n.setStyle(e);
|
|
1234
1244
|
}
|
|
@@ -1255,20 +1265,20 @@ var Zn = (e) => {
|
|
|
1255
1265
|
t.preventDefault();
|
|
1256
1266
|
let i = n.getData("text/plain");
|
|
1257
1267
|
return !vr.test(r) && !i || e.update(() => {
|
|
1258
|
-
let t =
|
|
1268
|
+
let t = I();
|
|
1259
1269
|
if (t === null) return;
|
|
1260
1270
|
let n = r ? new DOMParser().parseFromString(r, "text/html") : null;
|
|
1261
1271
|
if (n?.querySelectorAll("img, picture").forEach((e) => e.remove()), (n?.body.innerHTML ?? "") && n?.body.textContent?.trim()) {
|
|
1262
|
-
let t =
|
|
1272
|
+
let t = et(e, n);
|
|
1263
1273
|
if (t.length) {
|
|
1264
|
-
|
|
1274
|
+
xe(t);
|
|
1265
1275
|
return;
|
|
1266
1276
|
}
|
|
1267
1277
|
}
|
|
1268
1278
|
i && t.insertRawText(i);
|
|
1269
|
-
}, { tag:
|
|
1279
|
+
}, { tag: Ve }), !0;
|
|
1270
1280
|
};
|
|
1271
|
-
return rt(e.registerCommand(
|
|
1281
|
+
return rt(e.registerCommand(Be, t, ke), e.registerCommand(je, t, ke));
|
|
1272
1282
|
}, [e]), null;
|
|
1273
1283
|
}, br = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAADNBJREFUeAG1WuuvXUUV/619dqEPaG+pUFqg3AKFIoFWkKeKLWLRaKD6vVGMMcYQC8EPmBge/4A0fpEQEkmMz0QjH8CoIa3WUGwQ2oAiFWiFthb77qXvy1nOY83MWrP3qY2hk3vu3mfPzJr1+K3HzD6EqrXf5GVg3MPASncdd4+YCMTsvgHk7sEcx/r71Hy/H6e+Q49Nj/00RTPTSfO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//OHWwk4UCe4H5DJUqofpVwONXaEgo8YzOHqsYH4EtlnTgM0+COFl26gyD5hiLPIizPicP2fKkc4whGOcCjwKViIGaRSStOhAAAAAElFTkSuQmCC", Sr = (e, t, n) => Math.min(n, Math.max(t, e)), Y = (e) => Sr(e, 0, 1), X = (e) => {
|
|
1274
1284
|
let t = e.trim().toLowerCase();
|
|
@@ -1521,12 +1531,12 @@ var Zn = (e) => {
|
|
|
1521
1531
|
});
|
|
1522
1532
|
}, Rr = (e, t) => {
|
|
1523
1533
|
H(e), e.update(() => {
|
|
1524
|
-
ot(
|
|
1534
|
+
ot(I(), () => t === "paragraph" ? P() : re(t));
|
|
1525
1535
|
});
|
|
1526
1536
|
}, zr = (e, t, n) => {
|
|
1527
1537
|
H(e), e.update(() => {
|
|
1528
1538
|
Ut(n), Wt();
|
|
1529
|
-
let e =
|
|
1539
|
+
let e = I();
|
|
1530
1540
|
e && at(e, t);
|
|
1531
1541
|
});
|
|
1532
1542
|
}, Br = ({ sheet: i, onClose: a, onTypeset: o, onPolishMenu: s, onPickPreset: c, onPicture: l, savedSelectionRef: h, committedColors: g, onColorCommit: _, canTypeset: v, canPolish: y }) => {
|
|
@@ -1568,7 +1578,7 @@ var Zn = (e) => {
|
|
|
1568
1578
|
}
|
|
1569
1579
|
],
|
|
1570
1580
|
onAction: (e) => {
|
|
1571
|
-
H(b), b.dispatchCommand(
|
|
1581
|
+
H(b), b.dispatchCommand(Ne, e.key);
|
|
1572
1582
|
}
|
|
1573
1583
|
}),
|
|
1574
1584
|
/* @__PURE__ */ p(r, {
|
|
@@ -1869,8 +1879,20 @@ var Zn = (e) => {
|
|
|
1869
1879
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
|
|
1870
1880
|
font-size: 15px;
|
|
1871
1881
|
line-height: 1.6;
|
|
1882
|
+
overflow-wrap: anywhere;
|
|
1872
1883
|
word-break: break-word;
|
|
1873
1884
|
}
|
|
1885
|
+
.bsy-editor-html-preview__body p,
|
|
1886
|
+
.bsy-editor-html-preview__body li,
|
|
1887
|
+
.bsy-editor-html-preview__body h1,
|
|
1888
|
+
.bsy-editor-html-preview__body h2,
|
|
1889
|
+
.bsy-editor-html-preview__body h3,
|
|
1890
|
+
.bsy-editor-html-preview__body h4,
|
|
1891
|
+
.bsy-editor-html-preview__body h5,
|
|
1892
|
+
.bsy-editor-html-preview__body h6 {
|
|
1893
|
+
box-sizing: border-box;
|
|
1894
|
+
max-width: 100%;
|
|
1895
|
+
}
|
|
1874
1896
|
.bsy-editor-html-preview__body p {
|
|
1875
1897
|
margin: 0;
|
|
1876
1898
|
}
|
|
@@ -2360,24 +2382,29 @@ var Zn = (e) => {
|
|
|
2360
2382
|
backgroundColor: lt,
|
|
2361
2383
|
align: "left",
|
|
2362
2384
|
listType: !1,
|
|
2385
|
+
canIndent: !0,
|
|
2363
2386
|
canOutdent: !1,
|
|
2364
2387
|
headingTag: !1,
|
|
2365
2388
|
hasRangeSelection: !1,
|
|
2366
2389
|
hasEditorText: !1
|
|
2367
|
-
}, fi = (e) => e === "center" || e === "right" || e === "left" ? e : e === "end" ? "right" : "left", pi = (e) => {
|
|
2368
|
-
|
|
2390
|
+
}, fi = (e) => e === "center" || e === "right" || e === "left" ? e : e === "end" ? "right" : "left", pi = (e, t, n) => {
|
|
2391
|
+
if (e.hasFormat(n)) return !0;
|
|
2392
|
+
let r = e.isCollapsed() ? t ? [t] : [] : e.getNodes().filter(R);
|
|
2393
|
+
return r.length === 0 ? !!t?.hasFormat(n) : r.every((e) => e.hasFormat(n));
|
|
2394
|
+
}, mi = (e) => {
|
|
2395
|
+
let t = !!F().getTextContent().trim(), n = {
|
|
2369
2396
|
...di,
|
|
2370
2397
|
hasEditorText: t
|
|
2371
2398
|
};
|
|
2372
2399
|
if (!e) return n;
|
|
2373
|
-
let r =
|
|
2374
|
-
if (!
|
|
2400
|
+
let r = I();
|
|
2401
|
+
if (!L(r)) return n;
|
|
2375
2402
|
let i = it(r, "color", ct), a = it(r, "background-color", lt), o = r.anchor.getNode(), s = o.getKey() === "root" ? o : B(o, (e) => {
|
|
2376
2403
|
let t = e.getParent();
|
|
2377
|
-
return t !== null &&
|
|
2404
|
+
return t !== null && we(t);
|
|
2378
2405
|
});
|
|
2379
2406
|
s === null && (s = o.getTopLevelElementOrThrow());
|
|
2380
|
-
let c = B(o, S), l = !1, u =
|
|
2407
|
+
let c = B(o, S), l = !1, u = Se(s) ? s.getIndent() : 0;
|
|
2381
2408
|
if (S(c)) {
|
|
2382
2409
|
u = c.getIndent();
|
|
2383
2410
|
let e = c.getParent();
|
|
@@ -2386,36 +2413,37 @@ var Zn = (e) => {
|
|
|
2386
2413
|
l = t === "number" || t === "bullet" ? t : !1;
|
|
2387
2414
|
}
|
|
2388
2415
|
}
|
|
2389
|
-
let d = B(o, ie), f = ie(d) ? d.getTag() : void 0;
|
|
2416
|
+
let d = B(o, ie), f = ie(d) ? d.getTag() : void 0, p = R(o) ? o : null;
|
|
2390
2417
|
return {
|
|
2391
|
-
bold: r
|
|
2392
|
-
italic: r
|
|
2393
|
-
underline: r
|
|
2394
|
-
strikethrough: r
|
|
2418
|
+
bold: pi(r, p, "bold"),
|
|
2419
|
+
italic: pi(r, p, "italic"),
|
|
2420
|
+
underline: pi(r, p, "underline"),
|
|
2421
|
+
strikethrough: pi(r, p, "strikethrough"),
|
|
2395
2422
|
fontColor: i,
|
|
2396
2423
|
backgroundColor: a,
|
|
2397
|
-
align: fi(
|
|
2424
|
+
align: fi(Se(s) ? s.getFormatType() : ""),
|
|
2398
2425
|
listType: l,
|
|
2426
|
+
canIndent: u < 8,
|
|
2399
2427
|
canOutdent: u > 0 || l !== !1,
|
|
2400
2428
|
headingTag: f === "h1" || f === "h2" || f === "h3" ? f : !1,
|
|
2401
2429
|
hasRangeSelection: !0,
|
|
2402
2430
|
hasEditorText: t
|
|
2403
2431
|
};
|
|
2404
|
-
},
|
|
2432
|
+
}, hi = (e, t) => {
|
|
2405
2433
|
e.isEditable() || e.setEditable(!0), e.update(() => {
|
|
2406
|
-
Wt(), t(
|
|
2434
|
+
Wt(), t(mi(!0));
|
|
2407
2435
|
}), e.focus(void 0, { defaultSelection: "rootStart" });
|
|
2408
|
-
},
|
|
2436
|
+
}, gi = (e) => {
|
|
2409
2437
|
let t = di;
|
|
2410
|
-
return
|
|
2438
|
+
return hi(e, (e) => {
|
|
2411
2439
|
t = e;
|
|
2412
2440
|
}), t;
|
|
2413
|
-
},
|
|
2441
|
+
}, _i = (...e) => e.filter(Boolean).join(" "), vi = (e) => e.buttons.map((e) => ({
|
|
2414
2442
|
name: typeof e == "string" ? e : e.name,
|
|
2415
2443
|
disabled: typeof e != "string" && !!e.props?.disabled
|
|
2416
|
-
})), Q = 24,
|
|
2444
|
+
})), Q = 24, yi = 20, $ = ({ active: e, disabled: t, expanded: n, label: r, select: i, selectAlign: a, onClick: o, children: s }) => /* @__PURE__ */ p("button", {
|
|
2417
2445
|
type: "button",
|
|
2418
|
-
className:
|
|
2446
|
+
className: _i(V["bsy-mobile-editor__tool"], i && V["bsy-mobile-editor__tool--select"], a && V["bsy-mobile-editor__tool--select-align"], e && V["bsy-mobile-editor__tool--active"]),
|
|
2419
2447
|
"aria-label": r,
|
|
2420
2448
|
"aria-pressed": e,
|
|
2421
2449
|
"aria-expanded": i ? !!n : void 0,
|
|
@@ -2423,11 +2451,11 @@ var Zn = (e) => {
|
|
|
2423
2451
|
onMouseDown: (e) => e.preventDefault(),
|
|
2424
2452
|
onClick: o,
|
|
2425
2453
|
children: s
|
|
2426
|
-
}),
|
|
2454
|
+
}), bi = ({ open: e }) => /* @__PURE__ */ p(n, {
|
|
2427
2455
|
name: "arrow-down",
|
|
2428
|
-
size:
|
|
2429
|
-
className:
|
|
2430
|
-
}),
|
|
2456
|
+
size: yi,
|
|
2457
|
+
className: _i(V["bsy-mobile-editor__tool-caret"], e && V["bsy-mobile-editor__tool-caret--open"])
|
|
2458
|
+
}), xi = ({ config: t, formats: r, colorValues: i, openSheet: a, onOpenSheet: o, onOpenLink: c }) => {
|
|
2431
2459
|
let [l] = z(), { t: d } = e(), f = u(null), h = u(null), g = u(null), _ = () => {
|
|
2432
2460
|
let e = f.current, t = h.current, n = g.current;
|
|
2433
2461
|
if (!e || !t || !n) return;
|
|
@@ -2448,7 +2476,7 @@ var Zn = (e) => {
|
|
|
2448
2476
|
disabled: t,
|
|
2449
2477
|
label: d("editor.bold"),
|
|
2450
2478
|
onClick: () => {
|
|
2451
|
-
H(l), l.dispatchCommand(
|
|
2479
|
+
H(l), l.dispatchCommand(Pe, "bold");
|
|
2452
2480
|
},
|
|
2453
2481
|
children: /* @__PURE__ */ p(n, {
|
|
2454
2482
|
name: "bold",
|
|
@@ -2460,7 +2488,7 @@ var Zn = (e) => {
|
|
|
2460
2488
|
disabled: t,
|
|
2461
2489
|
label: d("editor.italic"),
|
|
2462
2490
|
onClick: () => {
|
|
2463
|
-
H(l), l.dispatchCommand(
|
|
2491
|
+
H(l), l.dispatchCommand(Pe, "italic");
|
|
2464
2492
|
},
|
|
2465
2493
|
children: /* @__PURE__ */ p(n, {
|
|
2466
2494
|
name: "italic",
|
|
@@ -2472,7 +2500,7 @@ var Zn = (e) => {
|
|
|
2472
2500
|
disabled: t,
|
|
2473
2501
|
label: d("editor.underline"),
|
|
2474
2502
|
onClick: () => {
|
|
2475
|
-
H(l), l.dispatchCommand(
|
|
2503
|
+
H(l), l.dispatchCommand(Pe, "underline");
|
|
2476
2504
|
},
|
|
2477
2505
|
children: /* @__PURE__ */ p(n, {
|
|
2478
2506
|
name: "underline",
|
|
@@ -2484,7 +2512,7 @@ var Zn = (e) => {
|
|
|
2484
2512
|
disabled: t,
|
|
2485
2513
|
label: d("editor.strikethrough"),
|
|
2486
2514
|
onClick: () => {
|
|
2487
|
-
H(l), l.dispatchCommand(
|
|
2515
|
+
H(l), l.dispatchCommand(Pe, "strikethrough");
|
|
2488
2516
|
},
|
|
2489
2517
|
children: /* @__PURE__ */ p(n, {
|
|
2490
2518
|
name: "shanchuxian",
|
|
@@ -2495,7 +2523,7 @@ var Zn = (e) => {
|
|
|
2495
2523
|
disabled: t || r.hasRangeSelection && !r.canOutdent,
|
|
2496
2524
|
label: d("editor.outdent"),
|
|
2497
2525
|
onClick: () => {
|
|
2498
|
-
H(l), l.dispatchCommand(
|
|
2526
|
+
H(l), l.dispatchCommand(ze, void 0);
|
|
2499
2527
|
},
|
|
2500
2528
|
children: /* @__PURE__ */ p(n, {
|
|
2501
2529
|
name: "jianshaosuojin",
|
|
@@ -2503,10 +2531,10 @@ var Zn = (e) => {
|
|
|
2503
2531
|
})
|
|
2504
2532
|
}, e);
|
|
2505
2533
|
case "indent": return /* @__PURE__ */ p($, {
|
|
2506
|
-
disabled: t,
|
|
2534
|
+
disabled: t || r.hasRangeSelection && !r.canIndent,
|
|
2507
2535
|
label: d("editor.indent"),
|
|
2508
2536
|
onClick: () => {
|
|
2509
|
-
H(l), l.dispatchCommand(
|
|
2537
|
+
H(l), l.dispatchCommand(Ie, void 0);
|
|
2510
2538
|
},
|
|
2511
2539
|
children: /* @__PURE__ */ p(n, {
|
|
2512
2540
|
name: "zengjiasuojin",
|
|
@@ -2518,7 +2546,7 @@ var Zn = (e) => {
|
|
|
2518
2546
|
disabled: t,
|
|
2519
2547
|
label: d("editor.bulletList"),
|
|
2520
2548
|
onClick: () => {
|
|
2521
|
-
let e =
|
|
2549
|
+
let e = gi(l);
|
|
2522
2550
|
l.dispatchCommand(e.listType === "bullet" ? O : T, void 0);
|
|
2523
2551
|
},
|
|
2524
2552
|
children: /* @__PURE__ */ p(n, {
|
|
@@ -2531,7 +2559,7 @@ var Zn = (e) => {
|
|
|
2531
2559
|
disabled: t,
|
|
2532
2560
|
label: d("editor.numberList"),
|
|
2533
2561
|
onClick: () => {
|
|
2534
|
-
let e =
|
|
2562
|
+
let e = gi(l);
|
|
2535
2563
|
l.dispatchCommand(e.listType === "number" ? O : w, void 0);
|
|
2536
2564
|
},
|
|
2537
2565
|
children: /* @__PURE__ */ p(n, {
|
|
@@ -2550,7 +2578,7 @@ var Zn = (e) => {
|
|
|
2550
2578
|
children: [/* @__PURE__ */ p(n, {
|
|
2551
2579
|
name: r.align === "center" ? "paragraphmiddle" : r.align === "right" ? "paragraphright" : "paragraph",
|
|
2552
2580
|
size: Q
|
|
2553
|
-
}), /* @__PURE__ */ p(
|
|
2581
|
+
}), /* @__PURE__ */ p(bi, { open: a === "align" })]
|
|
2554
2582
|
}, e);
|
|
2555
2583
|
case "heading": return /* @__PURE__ */ m($, {
|
|
2556
2584
|
select: !0,
|
|
@@ -2563,7 +2591,7 @@ var Zn = (e) => {
|
|
|
2563
2591
|
children: [/* @__PURE__ */ p("span", {
|
|
2564
2592
|
className: V["bsy-mobile-editor__tool-text"],
|
|
2565
2593
|
children: r.headingTag ? r.headingTag.toUpperCase() : d("editor.paragraph")
|
|
2566
|
-
}), /* @__PURE__ */ p(
|
|
2594
|
+
}), /* @__PURE__ */ p(bi, { open: a === "heading" })]
|
|
2567
2595
|
}, e);
|
|
2568
2596
|
case "fontSize": return /* @__PURE__ */ p($, {
|
|
2569
2597
|
active: a === "fontSize",
|
|
@@ -2607,7 +2635,7 @@ var Zn = (e) => {
|
|
|
2607
2635
|
children: [/* @__PURE__ */ p(n, {
|
|
2608
2636
|
name: "picture",
|
|
2609
2637
|
size: Q
|
|
2610
|
-
}), /* @__PURE__ */ p(
|
|
2638
|
+
}), /* @__PURE__ */ p(bi, { open: a === "picture" })]
|
|
2611
2639
|
}, e);
|
|
2612
2640
|
case "link": return /* @__PURE__ */ p($, {
|
|
2613
2641
|
disabled: t,
|
|
@@ -2634,7 +2662,7 @@ var Zn = (e) => {
|
|
|
2634
2662
|
height: Q,
|
|
2635
2663
|
className: V["bsy-mobile-editor__ai-icon"],
|
|
2636
2664
|
draggable: !1
|
|
2637
|
-
}), /* @__PURE__ */ p(
|
|
2665
|
+
}), /* @__PURE__ */ p(bi, { open: n })]
|
|
2638
2666
|
}, e);
|
|
2639
2667
|
}
|
|
2640
2668
|
default: return null;
|
|
@@ -2647,7 +2675,7 @@ var Zn = (e) => {
|
|
|
2647
2675
|
className: V["bsy-mobile-editor__toolbar-scroller"],
|
|
2648
2676
|
onScroll: _,
|
|
2649
2677
|
children: t.map((e, t) => {
|
|
2650
|
-
let n =
|
|
2678
|
+
let n = vi(e);
|
|
2651
2679
|
return n.length ? /* @__PURE__ */ m("div", {
|
|
2652
2680
|
className: V["bsy-mobile-editor__toolbar-group"],
|
|
2653
2681
|
children: [t > 0 ? /* @__PURE__ */ p("span", { className: V["bsy-mobile-editor__toolbar-divider"] }) : null, n.map(v)]
|
|
@@ -2664,18 +2692,18 @@ var Zn = (e) => {
|
|
|
2664
2692
|
})
|
|
2665
2693
|
})]
|
|
2666
2694
|
});
|
|
2667
|
-
},
|
|
2668
|
-
let [
|
|
2669
|
-
return s(() =>
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
n.
|
|
2676
|
-
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2695
|
+
}, Si = (e) => {
|
|
2696
|
+
let [t] = z(), [n, r] = d(di);
|
|
2697
|
+
return s(() => {
|
|
2698
|
+
let n = () => {
|
|
2699
|
+
t.getEditorState().read(() => {
|
|
2700
|
+
r(mi(e));
|
|
2701
|
+
}, { editor: t });
|
|
2702
|
+
};
|
|
2703
|
+
return n(), t.registerUpdateListener(() => {
|
|
2704
|
+
n();
|
|
2705
|
+
});
|
|
2706
|
+
}, [t, e]), n;
|
|
2679
2707
|
}, Ci = "plaintext", wi = "github-light", Ti = new Set([
|
|
2680
2708
|
"plaintext",
|
|
2681
2709
|
"css",
|
|
@@ -2762,10 +2790,10 @@ var Zn = (e) => {
|
|
|
2762
2790
|
});
|
|
2763
2791
|
}), a;
|
|
2764
2792
|
}, Ri = (e, t) => {
|
|
2765
|
-
let n =
|
|
2793
|
+
let n = be(e);
|
|
2766
2794
|
if (!ee(n) || !n.isAttached()) return;
|
|
2767
|
-
let r =
|
|
2768
|
-
if (!
|
|
2795
|
+
let r = I();
|
|
2796
|
+
if (!L(r)) {
|
|
2769
2797
|
t();
|
|
2770
2798
|
return;
|
|
2771
2799
|
}
|
|
@@ -2774,15 +2802,15 @@ var Zn = (e) => {
|
|
|
2774
2802
|
t();
|
|
2775
2803
|
return;
|
|
2776
2804
|
}
|
|
2777
|
-
let a = i.offset, o = i.type === "element" &&
|
|
2805
|
+
let a = i.offset, o = i.type === "element" && Ce(n.getChildAtIndex(i.offset - 1)), s = 0;
|
|
2778
2806
|
if (o || (s = a + i.getNode().getPreviousSiblings().reduce((e, t) => e + t.getTextContentSize(), 0)), t()) {
|
|
2779
2807
|
if (o) {
|
|
2780
2808
|
i.getNode().select(a, a);
|
|
2781
2809
|
return;
|
|
2782
2810
|
}
|
|
2783
2811
|
n.getChildren().some((e) => {
|
|
2784
|
-
let t =
|
|
2785
|
-
if (t ||
|
|
2812
|
+
let t = R(e);
|
|
2813
|
+
if (t || Ce(e)) {
|
|
2786
2814
|
let n = e.getTextContentSize();
|
|
2787
2815
|
if (t && n >= s) return e.select(s, s), !0;
|
|
2788
2816
|
s -= n;
|
|
@@ -2790,7 +2818,7 @@ var Zn = (e) => {
|
|
|
2790
2818
|
return !1;
|
|
2791
2819
|
});
|
|
2792
2820
|
}
|
|
2793
|
-
}, zi = (e, t) => A(e) && A(t) && e.__text === t.__text && e.__highlightType === t.__highlightType && e.__style === t.__style ||
|
|
2821
|
+
}, zi = (e, t) => A(e) && A(t) && e.__text === t.__text && e.__highlightType === t.__highlightType && e.__style === t.__style || Te(e) && Te(t) || Ce(e) && Ce(t), Bi = (e, t) => {
|
|
2794
2822
|
let n = 0;
|
|
2795
2823
|
for (; n < e.length && zi(e[n], t[n]);) n++;
|
|
2796
2824
|
let r = 0, i = Math.min(e.length, t.length) - n;
|
|
@@ -2810,7 +2838,7 @@ var Zn = (e) => {
|
|
|
2810
2838
|
i.getIsSyntaxHighlightSupported() && i.setIsSyntaxHighlightSupported(!1), n.pendingKeys.add(a), n.loading !== s && (n.loading = s, s.then((t) => {
|
|
2811
2839
|
r(t);
|
|
2812
2840
|
let i = [...n.pendingKeys];
|
|
2813
|
-
n.pendingKeys.clear(), n.loading = null, e.update(() => i.forEach((e) =>
|
|
2841
|
+
n.pendingKeys.clear(), n.loading = null, e.update(() => i.forEach((e) => be(e)?.markDirty()), { tag: Fe });
|
|
2814
2842
|
}, () => {
|
|
2815
2843
|
n.pendingKeys.clear(), n.loading = null;
|
|
2816
2844
|
}));
|
|
@@ -2821,7 +2849,7 @@ var Zn = (e) => {
|
|
|
2821
2849
|
n.nodesCurrentlyHighlighting.has(a) || (n.nodesCurrentlyHighlighting.add(a), n.didTransform || (n.didTransform = !0, De(() => {
|
|
2822
2850
|
n.didTransform = !1, n.nodesCurrentlyHighlighting.clear();
|
|
2823
2851
|
})), Ri(a, () => {
|
|
2824
|
-
let e =
|
|
2852
|
+
let e = be(a);
|
|
2825
2853
|
if (!ee(e) || !e.isAttached()) return !1;
|
|
2826
2854
|
let n = Li(e, Ei(e.getLanguage()), t), { from: r, to: i, replacement: o } = Bi(e.getChildren(), n);
|
|
2827
2855
|
return r === i && o.length === 0 ? !1 : (e.splice(r, i - r, o), !0);
|
|
@@ -2841,15 +2869,15 @@ var Zn = (e) => {
|
|
|
2841
2869
|
let t = e.getParent();
|
|
2842
2870
|
ee(t) ? r(t) : A(e) && e.replace(ye(e.__text));
|
|
2843
2871
|
};
|
|
2844
|
-
return
|
|
2872
|
+
return Ge(ne(e), e.registerNodeTransform(M, r), e.registerNodeTransform(Ue, i), e.registerNodeTransform(j, i));
|
|
2845
2873
|
}, [e]), null;
|
|
2846
2874
|
}, Ui = () => {
|
|
2847
2875
|
let [e] = z();
|
|
2848
2876
|
return s(() => (he(e, !0), rt(pe(e), me(e, !1), fe(e), e.registerNodeTransform(le, (e) => {
|
|
2849
2877
|
e.getBackgroundColor() !== null && e.setBackgroundColor(null);
|
|
2850
|
-
}), e.registerCommand(
|
|
2851
|
-
let t =
|
|
2852
|
-
if (!
|
|
2878
|
+
}), e.registerCommand(Re, (e) => {
|
|
2879
|
+
let t = I();
|
|
2880
|
+
if (!L(t) || !t.isCollapsed()) return !1;
|
|
2853
2881
|
let n = oe(t.anchor.getNode());
|
|
2854
2882
|
if (n === null) return !1;
|
|
2855
2883
|
let r = e.shiftKey ? "previous" : "next", i = r === "next" ? "getNextSibling" : "getPreviousSibling", a = r === "next" ? "getFirstChild" : "getLastChild", o = n[i](), s = null;
|
|
@@ -2873,16 +2901,35 @@ var Zn = (e) => {
|
|
|
2873
2901
|
e && (r === "next" ? e.selectNext() : e.selectPrevious());
|
|
2874
2902
|
}
|
|
2875
2903
|
return !0;
|
|
2876
|
-
},
|
|
2877
|
-
}, Wi = (
|
|
2878
|
-
let
|
|
2879
|
-
|
|
2904
|
+
}, ke))), [e]), null;
|
|
2905
|
+
}, Wi = (e) => {
|
|
2906
|
+
let t = e.getIndent();
|
|
2907
|
+
t < 8 && e.setIndent(t + 1);
|
|
2908
|
+
}, Gi = (e) => {
|
|
2909
|
+
let t = e.getIndent();
|
|
2910
|
+
if (t > 8) {
|
|
2911
|
+
e.setIndent(8);
|
|
2912
|
+
return;
|
|
2913
|
+
}
|
|
2914
|
+
t < 0 && e.setIndent(0);
|
|
2915
|
+
};
|
|
2916
|
+
//#endregion
|
|
2917
|
+
//#region src/components/Editor/plugins/IndentLimitPlugin.tsx
|
|
2918
|
+
function Ki() {
|
|
2919
|
+
let [e] = z();
|
|
2920
|
+
return s(() => rt(e.registerCommand(Ie, () => nt(Wi), ke), e.registerNodeTransform(He, Gi), e.registerNodeTransform(ae, Gi), e.registerNodeTransform(E, Gi)), [e]), null;
|
|
2921
|
+
}
|
|
2922
|
+
//#endregion
|
|
2923
|
+
//#region src/components/Editor/EditorCore.tsx
|
|
2924
|
+
var qi = ({ value: n, onChange: r, open: i, onOpenChange: a, toolbar: o, upload: c, ai: l }) => {
|
|
2925
|
+
let [f] = z(), { t: h } = e(), [g, _] = d(!1), v = i ?? g, y = Si(v), b = (e) => {
|
|
2926
|
+
a?.(e), i === void 0 && _(e);
|
|
2880
2927
|
}, [x, S] = d(null), [C, w] = d(() => ({
|
|
2881
|
-
fontColor:
|
|
2882
|
-
fill:
|
|
2928
|
+
fontColor: y.fontColor,
|
|
2929
|
+
fill: y.backgroundColor
|
|
2883
2930
|
})), T = u(!1), [E, D] = d(!1), O = u(null), k = () => {
|
|
2884
2931
|
f.getEditorState().read(() => {
|
|
2885
|
-
O.current =
|
|
2932
|
+
O.current = I()?.clone() ?? null;
|
|
2886
2933
|
});
|
|
2887
2934
|
}, { linkForm: A, openLink: ee, confirmLink: te, closeLink: j } = ur({
|
|
2888
2935
|
editor: f,
|
|
@@ -2903,21 +2950,21 @@ var Zn = (e) => {
|
|
|
2903
2950
|
ai: l
|
|
2904
2951
|
}), [ce, le] = d(0), ue = o?.config ?? pt;
|
|
2905
2952
|
s(() => {
|
|
2906
|
-
!
|
|
2907
|
-
fontColor:
|
|
2908
|
-
fill:
|
|
2953
|
+
!y.hasRangeSelection || !y.hasEditorText || w({
|
|
2954
|
+
fontColor: y.fontColor,
|
|
2955
|
+
fill: y.backgroundColor
|
|
2909
2956
|
});
|
|
2910
2957
|
}, [
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2958
|
+
y.backgroundColor,
|
|
2959
|
+
y.fontColor,
|
|
2960
|
+
y.hasEditorText,
|
|
2961
|
+
y.hasRangeSelection
|
|
2915
2962
|
]);
|
|
2916
2963
|
let de = () => {
|
|
2917
2964
|
oe(), N.close(), S(null), j(), D(!1), b(!1);
|
|
2918
2965
|
};
|
|
2919
2966
|
s(() => {
|
|
2920
|
-
if (!
|
|
2967
|
+
if (!v) return;
|
|
2921
2968
|
let e = window.visualViewport;
|
|
2922
2969
|
if (!e) return;
|
|
2923
2970
|
let t = () => {
|
|
@@ -2926,20 +2973,20 @@ var Zn = (e) => {
|
|
|
2926
2973
|
return e.addEventListener("resize", t), e.addEventListener("scroll", t), t(), () => {
|
|
2927
2974
|
e.removeEventListener("resize", t), e.removeEventListener("scroll", t);
|
|
2928
2975
|
};
|
|
2929
|
-
}, [
|
|
2930
|
-
|
|
2931
|
-
}, [oe,
|
|
2932
|
-
if (
|
|
2976
|
+
}, [v]), s(() => {
|
|
2977
|
+
v || oe();
|
|
2978
|
+
}, [oe, v]), s(() => {
|
|
2979
|
+
if (v) return f.setEditable(!0), f.registerRootListener((e) => {
|
|
2933
2980
|
e && f.focus(void 0, { defaultSelection: "rootEnd" });
|
|
2934
2981
|
});
|
|
2935
|
-
}, [
|
|
2982
|
+
}, [v, f]);
|
|
2936
2983
|
let fe = () => {
|
|
2937
2984
|
T.current = !0, S(null), N.startTypeset();
|
|
2938
2985
|
}, pe = (e) => {
|
|
2939
2986
|
x === "aiPreset" && (T.current = !0), S(null), N.startPolish(e);
|
|
2940
2987
|
};
|
|
2941
2988
|
return /* @__PURE__ */ p(t, {
|
|
2942
|
-
open:
|
|
2989
|
+
open: v,
|
|
2943
2990
|
onClose: de,
|
|
2944
2991
|
position: "bottom",
|
|
2945
2992
|
closeOnClickOverlay: !0,
|
|
@@ -2962,19 +3009,19 @@ var Zn = (e) => {
|
|
|
2962
3009
|
/* @__PURE__ */ p("div", {
|
|
2963
3010
|
className: V["bsy-mobile-editor__content"],
|
|
2964
3011
|
style: { height: 200 },
|
|
2965
|
-
children: /* @__PURE__ */ p(
|
|
2966
|
-
contentEditable: /* @__PURE__ */ p(
|
|
2967
|
-
ErrorBoundary:
|
|
3012
|
+
children: /* @__PURE__ */ p(Ze, {
|
|
3013
|
+
contentEditable: /* @__PURE__ */ p(Ke, { className: V["bsy-mobile-editor__editable"] }),
|
|
3014
|
+
ErrorBoundary: Qe
|
|
2968
3015
|
})
|
|
2969
3016
|
}),
|
|
2970
|
-
ue.length > 0 ? /* @__PURE__ */ p(
|
|
3017
|
+
ue.length > 0 ? /* @__PURE__ */ p(xi, {
|
|
2971
3018
|
config: ue,
|
|
2972
|
-
formats:
|
|
3019
|
+
formats: y,
|
|
2973
3020
|
colorValues: C,
|
|
2974
3021
|
openSheet: x,
|
|
2975
3022
|
onOpenSheet: (e) => {
|
|
2976
3023
|
(e === "fontColor" || e === "fill") && (k(), w((t) => {
|
|
2977
|
-
let n = e === "fill" ?
|
|
3024
|
+
let n = e === "fill" ? y.backgroundColor : y.fontColor, r = y.hasRangeSelection && y.hasEditorText;
|
|
2978
3025
|
return {
|
|
2979
3026
|
...t,
|
|
2980
3027
|
[e]: r ? n : t[e]
|
|
@@ -2983,16 +3030,17 @@ var Zn = (e) => {
|
|
|
2983
3030
|
},
|
|
2984
3031
|
onOpenLink: ee
|
|
2985
3032
|
}) : null,
|
|
2986
|
-
/* @__PURE__ */ p(
|
|
2987
|
-
/* @__PURE__ */ p(Xe, {}),
|
|
3033
|
+
/* @__PURE__ */ p(qe, {}),
|
|
2988
3034
|
/* @__PURE__ */ p(Ye, {}),
|
|
3035
|
+
/* @__PURE__ */ p(Je, {}),
|
|
2989
3036
|
/* @__PURE__ */ p(pr, {}),
|
|
2990
3037
|
/* @__PURE__ */ p(yr, {}),
|
|
2991
3038
|
/* @__PURE__ */ p(hr, {}),
|
|
2992
3039
|
/* @__PURE__ */ p(_r, {}),
|
|
2993
3040
|
/* @__PURE__ */ p(Hi, {}),
|
|
2994
3041
|
/* @__PURE__ */ p(Ui, {}),
|
|
2995
|
-
/* @__PURE__ */ p(
|
|
3042
|
+
/* @__PURE__ */ p(Ki, {}),
|
|
3043
|
+
/* @__PURE__ */ p(Xe, {
|
|
2996
3044
|
onChange: se,
|
|
2997
3045
|
ignoreSelectionChange: !0
|
|
2998
3046
|
}),
|
|
@@ -3061,10 +3109,10 @@ var Zn = (e) => {
|
|
|
3061
3109
|
})
|
|
3062
3110
|
})
|
|
3063
3111
|
});
|
|
3064
|
-
},
|
|
3112
|
+
}, Ji = "1px solid #d9d9d9", Yi = { export: new Map([[le, (e, t) => {
|
|
3065
3113
|
let n = t.exportDOM(e);
|
|
3066
|
-
return
|
|
3067
|
-
}]]) },
|
|
3114
|
+
return We(n.element) && (n.element.style.border = Ji), n;
|
|
3115
|
+
}]]) }, Xi = class e extends x {
|
|
3068
3116
|
constructor(e = "", t = {}, n) {
|
|
3069
3117
|
super(e, t, n);
|
|
3070
3118
|
}
|
|
@@ -3079,12 +3127,12 @@ var Zn = (e) => {
|
|
|
3079
3127
|
}, t.__key);
|
|
3080
3128
|
}
|
|
3081
3129
|
static importJSON(e) {
|
|
3082
|
-
return
|
|
3130
|
+
return Zi().updateFromJSON(e);
|
|
3083
3131
|
}
|
|
3084
3132
|
sanitizeUrl(e) {
|
|
3085
3133
|
return e.startsWith("@") ? e : super.sanitizeUrl(e);
|
|
3086
3134
|
}
|
|
3087
|
-
},
|
|
3135
|
+
}, Zi = (e = "", t = {}) => ge(new Xi(e, t)), Qi = {
|
|
3088
3136
|
namespace: "bsyLexicalEditor",
|
|
3089
3137
|
onError: (e) => {
|
|
3090
3138
|
console.error("Lexical error", e);
|
|
@@ -3117,17 +3165,17 @@ var Zn = (e) => {
|
|
|
3117
3165
|
tableRow: "editor-table-row",
|
|
3118
3166
|
tableScrollableWrapper: "editor-table-scrollable-wrapper"
|
|
3119
3167
|
},
|
|
3120
|
-
html:
|
|
3168
|
+
html: Yi,
|
|
3121
3169
|
nodes: [
|
|
3122
|
-
|
|
3170
|
+
Xi,
|
|
3123
3171
|
{
|
|
3124
3172
|
replace: x,
|
|
3125
|
-
with: (e) => new
|
|
3173
|
+
with: (e) => new Xi(e.__url, {
|
|
3126
3174
|
rel: e.__rel,
|
|
3127
3175
|
target: e.__target,
|
|
3128
3176
|
title: e.__title
|
|
3129
3177
|
}),
|
|
3130
|
-
withKlass:
|
|
3178
|
+
withKlass: Xi
|
|
3131
3179
|
},
|
|
3132
3180
|
b,
|
|
3133
3181
|
D,
|
|
@@ -3141,15 +3189,15 @@ var Zn = (e) => {
|
|
|
3141
3189
|
rr,
|
|
3142
3190
|
q,
|
|
3143
3191
|
{
|
|
3144
|
-
replace:
|
|
3192
|
+
replace: Ue,
|
|
3145
3193
|
with: (e) => new q(e.__text),
|
|
3146
3194
|
withKlass: q
|
|
3147
3195
|
}
|
|
3148
3196
|
]
|
|
3149
|
-
},
|
|
3150
|
-
initialConfig:
|
|
3151
|
-
children: /* @__PURE__ */ p(
|
|
3197
|
+
}, $i = (e) => /* @__PURE__ */ p(g, {
|
|
3198
|
+
initialConfig: Qi,
|
|
3199
|
+
children: /* @__PURE__ */ p(qi, { ...e })
|
|
3152
3200
|
});
|
|
3153
|
-
|
|
3201
|
+
$i.displayName = "BsyMobileEditor";
|
|
3154
3202
|
//#endregion
|
|
3155
|
-
export { Kr as n,
|
|
3203
|
+
export { Kr as n, $i as t };
|