roosterjs-content-model-plugins 9.43.0 → 9.45.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/lib/announce/AnnouncePlugin.d.ts +32 -32
- package/lib/announce/AnnouncePlugin.js +65 -65
- package/lib/announce/AnnouncePlugin.js.map +1 -1
- package/lib/announce/tableSelectionUtils.d.ts +17 -17
- package/lib/announce/tableSelectionUtils.js +68 -71
- package/lib/announce/tableSelectionUtils.js.map +1 -1
- package/lib/autoFormat/AutoFormatPlugin.d.ts +59 -59
- package/lib/autoFormat/AutoFormatPlugin.js +298 -298
- package/lib/autoFormat/AutoFormatPlugin.js.map +1 -1
- package/lib/autoFormat/horizontalLine/checkAndInsertHorizontalLine.d.ts +24 -24
- package/lib/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js +91 -91
- package/lib/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js.map +1 -1
- package/lib/autoFormat/hyphen/transformHyphen.d.ts +5 -5
- package/lib/autoFormat/hyphen/transformHyphen.js +34 -34
- package/lib/autoFormat/hyphen/transformHyphen.js.map +1 -1
- package/lib/autoFormat/interface/AutoFormatOptions.d.ts +34 -34
- package/lib/autoFormat/interface/AutoFormatOptions.js +2 -2
- package/lib/autoFormat/interface/AutoFormatOptions.js.map +1 -1
- package/lib/autoFormat/link/createLink.d.ts +5 -5
- package/lib/autoFormat/link/createLink.js +35 -35
- package/lib/autoFormat/link/createLink.js.map +1 -1
- package/lib/autoFormat/link/unlink.d.ts +5 -5
- package/lib/autoFormat/link/unlink.js +18 -18
- package/lib/autoFormat/link/unlink.js.map +1 -1
- package/lib/autoFormat/list/convertAlphaToDecimals.d.ts +7 -7
- package/lib/autoFormat/list/convertAlphaToDecimals.js +22 -22
- package/lib/autoFormat/list/convertAlphaToDecimals.js.map +1 -1
- package/lib/autoFormat/list/getIndex.d.ts +4 -4
- package/lib/autoFormat/list/getIndex.js +13 -13
- package/lib/autoFormat/list/getIndex.js.map +1 -1
- package/lib/autoFormat/list/getListTypeStyle.d.ts +14 -14
- package/lib/autoFormat/list/getListTypeStyle.js +99 -99
- package/lib/autoFormat/list/getListTypeStyle.js.map +1 -1
- package/lib/autoFormat/list/getNumberingListStyle.d.ts +4 -4
- package/lib/autoFormat/list/getNumberingListStyle.js +153 -153
- package/lib/autoFormat/list/getNumberingListStyle.js.map +1 -1
- package/lib/autoFormat/list/keyboardListTrigger.d.ts +5 -5
- package/lib/autoFormat/list/keyboardListTrigger.js +49 -49
- package/lib/autoFormat/list/keyboardListTrigger.js.map +1 -1
- package/lib/autoFormat/numbers/transformFraction.d.ts +5 -5
- package/lib/autoFormat/numbers/transformFraction.js +27 -27
- package/lib/autoFormat/numbers/transformFraction.js.map +1 -1
- package/lib/autoFormat/numbers/transformOrdinals.d.ts +4 -4
- package/lib/autoFormat/numbers/transformOrdinals.js +65 -64
- package/lib/autoFormat/numbers/transformOrdinals.js.map +1 -1
- package/lib/contextMenuBase/ContextMenuPluginBase.d.ts +58 -58
- package/lib/contextMenuBase/ContextMenuPluginBase.js +83 -83
- package/lib/contextMenuBase/ContextMenuPluginBase.js.map +1 -1
- package/lib/customReplace/CustomReplacePlugin.d.ts +61 -61
- package/lib/customReplace/CustomReplacePlugin.js +86 -86
- package/lib/customReplace/CustomReplacePlugin.js.map +1 -1
- package/lib/edit/EditOptions.d.ts +78 -45
- package/lib/edit/EditOptions.js +2 -2
- package/lib/edit/EditOptions.js.map +1 -1
- package/lib/edit/EditPlugin.d.ts +60 -60
- package/lib/edit/EditPlugin.js +256 -238
- package/lib/edit/EditPlugin.js.map +1 -1
- package/lib/edit/deleteSteps/deleteAllSegmentBefore.d.ts +5 -5
- package/lib/edit/deleteSteps/deleteAllSegmentBefore.js +23 -23
- package/lib/edit/deleteSteps/deleteAllSegmentBefore.js.map +1 -1
- package/lib/edit/deleteSteps/deleteCollapsedSelection.d.ts +10 -10
- package/lib/edit/deleteSteps/deleteCollapsedSelection.js +114 -114
- package/lib/edit/deleteSteps/deleteCollapsedSelection.js.map +1 -1
- package/lib/edit/deleteSteps/deleteEmptyQuote.d.ts +5 -5
- package/lib/edit/deleteSteps/deleteEmptyQuote.js +62 -62
- package/lib/edit/deleteSteps/deleteEmptyQuote.js.map +1 -1
- package/lib/edit/deleteSteps/deleteList.d.ts +5 -5
- package/lib/edit/deleteSteps/deleteList.js +58 -28
- package/lib/edit/deleteSteps/deleteList.js.map +1 -1
- package/lib/edit/deleteSteps/deleteParagraphStyle.d.ts +5 -5
- package/lib/edit/deleteSteps/deleteParagraphStyle.js +36 -36
- package/lib/edit/deleteSteps/deleteParagraphStyle.js.map +1 -1
- package/lib/edit/deleteSteps/deleteWordSelection.d.ts +9 -9
- package/lib/edit/deleteSteps/deleteWordSelection.js +172 -172
- package/lib/edit/deleteSteps/deleteWordSelection.js.map +1 -1
- package/lib/edit/handleKeyboardEventCommon.d.ts +14 -14
- package/lib/edit/handleKeyboardEventCommon.js +71 -71
- package/lib/edit/handleKeyboardEventCommon.js.map +1 -1
- package/lib/edit/inputSteps/handleAutoLink.d.ts +5 -5
- package/lib/edit/inputSteps/handleAutoLink.js +24 -24
- package/lib/edit/inputSteps/handleAutoLink.js.map +1 -1
- package/lib/edit/inputSteps/handleEnterOnList.d.ts +5 -5
- package/lib/edit/inputSteps/handleEnterOnList.js +71 -71
- package/lib/edit/inputSteps/handleEnterOnList.js.map +1 -1
- package/lib/edit/inputSteps/handleEnterOnParagraph.d.ts +5 -5
- package/lib/edit/inputSteps/handleEnterOnParagraph.js +21 -21
- package/lib/edit/inputSteps/handleEnterOnParagraph.js.map +1 -1
- package/lib/edit/keyboardDelete.d.ts +11 -11
- package/lib/edit/keyboardDelete.js +114 -114
- package/lib/edit/keyboardDelete.js.map +1 -1
- package/lib/edit/keyboardEnter.d.ts +5 -5
- package/lib/edit/keyboardEnter.js +54 -54
- package/lib/edit/keyboardEnter.js.map +1 -1
- package/lib/edit/keyboardInput.d.ts +5 -5
- package/lib/edit/keyboardInput.js +64 -64
- package/lib/edit/keyboardInput.js.map +1 -1
- package/lib/edit/keyboardTab.d.ts +6 -5
- package/lib/edit/keyboardTab.js +74 -64
- package/lib/edit/keyboardTab.js.map +1 -1
- package/lib/edit/tabUtils/handleTabOnList.d.ts +7 -7
- package/lib/edit/tabUtils/handleTabOnList.js +33 -33
- package/lib/edit/tabUtils/handleTabOnList.js.map +1 -1
- package/lib/edit/tabUtils/handleTabOnParagraph.d.ts +17 -17
- package/lib/edit/tabUtils/handleTabOnParagraph.js +94 -94
- package/lib/edit/tabUtils/handleTabOnParagraph.js.map +1 -1
- package/lib/edit/tabUtils/handleTabOnTable.d.ts +6 -6
- package/lib/edit/tabUtils/handleTabOnTable.js +25 -25
- package/lib/edit/tabUtils/handleTabOnTable.js.map +1 -1
- package/lib/edit/tabUtils/handleTabOnTableCell.d.ts +6 -6
- package/lib/edit/tabUtils/handleTabOnTableCell.js +43 -43
- package/lib/edit/tabUtils/handleTabOnTableCell.js.map +1 -1
- package/lib/edit/utils/getLeafSiblingBlock.d.ts +45 -45
- package/lib/edit/utils/getLeafSiblingBlock.js +72 -72
- package/lib/edit/utils/getLeafSiblingBlock.js.map +1 -1
- package/lib/edit/utils/preserveParagraphFormat.d.ts +9 -9
- package/lib/edit/utils/preserveParagraphFormat.js +23 -23
- package/lib/edit/utils/preserveParagraphFormat.js.map +1 -1
- package/lib/edit/utils/splitParagraph.d.ts +12 -12
- package/lib/edit/utils/splitParagraph.js +40 -40
- package/lib/edit/utils/splitParagraph.js.map +1 -1
- package/lib/findReplace/FindReplacePlugin.d.ts +42 -42
- package/lib/findReplace/FindReplacePlugin.js +97 -96
- package/lib/findReplace/FindReplacePlugin.js.map +1 -1
- package/lib/findReplace/createFindReplaceContext.d.ts +8 -8
- package/lib/findReplace/createFindReplaceContext.js +25 -25
- package/lib/findReplace/createFindReplaceContext.js.map +1 -1
- package/lib/findReplace/find.d.ts +11 -11
- package/lib/findReplace/find.js +19 -19
- package/lib/findReplace/find.js.map +1 -1
- package/lib/findReplace/moveHighlight.d.ts +9 -9
- package/lib/findReplace/moveHighlight.js +20 -20
- package/lib/findReplace/moveHighlight.js.map +1 -1
- package/lib/findReplace/replace.d.ts +10 -10
- package/lib/findReplace/replace.js +47 -47
- package/lib/findReplace/replace.js.map +1 -1
- package/lib/findReplace/types/FindReplaceContext.d.ts +38 -38
- package/lib/findReplace/types/FindReplaceContext.js +2 -2
- package/lib/findReplace/types/FindReplaceContext.js.map +1 -1
- package/lib/findReplace/types/FindReplaceHighlightOptions.d.ts +13 -13
- package/lib/findReplace/types/FindReplaceHighlightOptions.js +2 -2
- package/lib/findReplace/types/FindReplaceHighlightOptions.js.map +1 -1
- package/lib/findReplace/types/HighlightHelper.d.ts +23 -23
- package/lib/findReplace/types/HighlightHelper.js +2 -2
- package/lib/findReplace/types/HighlightHelper.js.map +1 -1
- package/lib/findReplace/utils/HighlightHelperImpl.d.ts +9 -9
- package/lib/findReplace/utils/HighlightHelperImpl.js +64 -64
- package/lib/findReplace/utils/HighlightHelperImpl.js.map +1 -1
- package/lib/findReplace/utils/constants.d.ts +28 -28
- package/lib/findReplace/utils/constants.js +31 -31
- package/lib/findReplace/utils/constants.js.map +1 -1
- package/lib/findReplace/utils/replaceTextInRange.d.ts +4 -4
- package/lib/findReplace/utils/replaceTextInRange.js +70 -70
- package/lib/findReplace/utils/replaceTextInRange.js.map +1 -1
- package/lib/findReplace/utils/setMarkedIndex.d.ts +6 -6
- package/lib/findReplace/utils/setMarkedIndex.js +28 -28
- package/lib/findReplace/utils/setMarkedIndex.js.map +1 -1
- package/lib/findReplace/utils/sortRanges.d.ts +5 -5
- package/lib/findReplace/utils/sortRanges.js +22 -22
- package/lib/findReplace/utils/sortRanges.js.map +1 -1
- package/lib/findReplace/utils/updateHighlight.d.ts +6 -6
- package/lib/findReplace/utils/updateHighlight.js +47 -47
- package/lib/findReplace/utils/updateHighlight.js.map +1 -1
- package/lib/hiddenProperty/HiddenPropertyOptions.d.ts +11 -11
- package/lib/hiddenProperty/HiddenPropertyOptions.js +2 -2
- package/lib/hiddenProperty/HiddenPropertyOptions.js.map +1 -1
- package/lib/hiddenProperty/HiddenPropertyPlugin.d.ts +38 -38
- package/lib/hiddenProperty/HiddenPropertyPlugin.js +57 -57
- package/lib/hiddenProperty/HiddenPropertyPlugin.js.map +1 -1
- package/lib/hiddenProperty/fixupHiddenProperties.d.ts +9 -9
- package/lib/hiddenProperty/fixupHiddenProperties.js +37 -37
- package/lib/hiddenProperty/fixupHiddenProperties.js.map +1 -1
- package/lib/hyperlink/HyperlinkPlugin.d.ts +48 -48
- package/lib/hyperlink/HyperlinkPlugin.js +143 -143
- package/lib/hyperlink/HyperlinkPlugin.js.map +1 -1
- package/lib/hyperlink/HyperlinkToolTip.d.ts +7 -7
- package/lib/hyperlink/HyperlinkToolTip.js +2 -2
- package/lib/hyperlink/HyperlinkToolTip.js.map +1 -1
- package/lib/imageEdit/Cropper/createImageCropper.d.ts +10 -10
- package/lib/imageEdit/Cropper/createImageCropper.js +79 -79
- package/lib/imageEdit/Cropper/createImageCropper.js.map +1 -1
- package/lib/imageEdit/Cropper/cropperContext.d.ts +8 -8
- package/lib/imageEdit/Cropper/cropperContext.js +72 -72
- package/lib/imageEdit/Cropper/cropperContext.js.map +1 -1
- package/lib/imageEdit/ImageEditPlugin.d.ts +86 -86
- package/lib/imageEdit/ImageEditPlugin.js +584 -585
- package/lib/imageEdit/ImageEditPlugin.js.map +1 -1
- package/lib/imageEdit/Resizer/createImageResizer.d.ts +12 -12
- package/lib/imageEdit/Resizer/createImageResizer.js +88 -88
- package/lib/imageEdit/Resizer/createImageResizer.js.map +1 -1
- package/lib/imageEdit/Resizer/resizerContext.d.ts +8 -8
- package/lib/imageEdit/Resizer/resizerContext.js +60 -60
- package/lib/imageEdit/Resizer/resizerContext.js.map +1 -1
- package/lib/imageEdit/Resizer/updateSideHandlesVisibility.d.ts +4 -4
- package/lib/imageEdit/Resizer/updateSideHandlesVisibility.js +16 -16
- package/lib/imageEdit/Resizer/updateSideHandlesVisibility.js.map +1 -1
- package/lib/imageEdit/Rotator/createImageRotator.d.ts +6 -6
- package/lib/imageEdit/Rotator/createImageRotator.js +75 -75
- package/lib/imageEdit/Rotator/createImageRotator.js.map +1 -1
- package/lib/imageEdit/Rotator/rotatorContext.d.ts +8 -8
- package/lib/imageEdit/Rotator/rotatorContext.js +35 -35
- package/lib/imageEdit/Rotator/rotatorContext.js.map +1 -1
- package/lib/imageEdit/Rotator/updateRotateHandle.d.ts +7 -7
- package/lib/imageEdit/Rotator/updateRotateHandle.js +55 -55
- package/lib/imageEdit/Rotator/updateRotateHandle.js.map +1 -1
- package/lib/imageEdit/constants/constants.d.ts +77 -77
- package/lib/imageEdit/constants/constants.js +84 -84
- package/lib/imageEdit/constants/constants.js.map +1 -1
- package/lib/imageEdit/types/DragAndDropContext.d.ts +39 -39
- package/lib/imageEdit/types/DragAndDropContext.js +2 -2
- package/lib/imageEdit/types/DragAndDropContext.js.map +1 -1
- package/lib/imageEdit/types/GeneratedImageSize.d.ts +33 -33
- package/lib/imageEdit/types/GeneratedImageSize.js +2 -2
- package/lib/imageEdit/types/GeneratedImageSize.js.map +1 -1
- package/lib/imageEdit/types/ImageAndParagraph.d.ts +8 -8
- package/lib/imageEdit/types/ImageAndParagraph.js +2 -2
- package/lib/imageEdit/types/ImageAndParagraph.js.map +1 -1
- package/lib/imageEdit/types/ImageEditElementClass.d.ts +30 -30
- package/lib/imageEdit/types/ImageEditElementClass.js +34 -34
- package/lib/imageEdit/types/ImageEditElementClass.js.map +1 -1
- package/lib/imageEdit/types/ImageEditOptions.d.ts +55 -55
- package/lib/imageEdit/types/ImageEditOptions.js +2 -2
- package/lib/imageEdit/types/ImageEditOptions.js.map +1 -1
- package/lib/imageEdit/types/ImageHtmlOptions.d.ts +22 -22
- package/lib/imageEdit/types/ImageHtmlOptions.js +2 -2
- package/lib/imageEdit/types/ImageHtmlOptions.js.map +1 -1
- package/lib/imageEdit/utils/applyChange.d.ts +13 -13
- package/lib/imageEdit/utils/applyChange.js +72 -72
- package/lib/imageEdit/utils/applyChange.js.map +1 -1
- package/lib/imageEdit/utils/canRegenerateImage.d.ts +8 -8
- package/lib/imageEdit/utils/canRegenerateImage.js +31 -31
- package/lib/imageEdit/utils/canRegenerateImage.js.map +1 -1
- package/lib/imageEdit/utils/checkEditInfoState.d.ts +41 -41
- package/lib/imageEdit/utils/checkEditInfoState.js +52 -52
- package/lib/imageEdit/utils/checkEditInfoState.js.map +1 -1
- package/lib/imageEdit/utils/createImageWrapper.d.ts +18 -18
- package/lib/imageEdit/utils/createImageWrapper.js +91 -91
- package/lib/imageEdit/utils/createImageWrapper.js.map +1 -1
- package/lib/imageEdit/utils/doubleCheckResize.d.ts +12 -12
- package/lib/imageEdit/utils/doubleCheckResize.js +35 -35
- package/lib/imageEdit/utils/doubleCheckResize.js.map +1 -1
- package/lib/imageEdit/utils/filterInnerResizerHandles.d.ts +4 -4
- package/lib/imageEdit/utils/filterInnerResizerHandles.js +19 -19
- package/lib/imageEdit/utils/filterInnerResizerHandles.js.map +1 -1
- package/lib/imageEdit/utils/findEditingImage.d.ts +10 -10
- package/lib/imageEdit/utils/findEditingImage.js +39 -39
- package/lib/imageEdit/utils/findEditingImage.js.map +1 -1
- package/lib/imageEdit/utils/generateDataURL.d.ts +13 -13
- package/lib/imageEdit/utils/generateDataURL.js +56 -49
- package/lib/imageEdit/utils/generateDataURL.js.map +1 -1
- package/lib/imageEdit/utils/generateImageSize.d.ts +15 -15
- package/lib/imageEdit/utils/generateImageSize.js +45 -45
- package/lib/imageEdit/utils/generateImageSize.js.map +1 -1
- package/lib/imageEdit/utils/getDropAndDragHelpers.d.ts +10 -10
- package/lib/imageEdit/utils/getDropAndDragHelpers.js +23 -23
- package/lib/imageEdit/utils/getDropAndDragHelpers.js.map +1 -1
- package/lib/imageEdit/utils/getHTMLImageOptions.d.ts +7 -7
- package/lib/imageEdit/utils/getHTMLImageOptions.js +22 -22
- package/lib/imageEdit/utils/getHTMLImageOptions.js.map +1 -1
- package/lib/imageEdit/utils/getSelectedImage.d.ts +6 -6
- package/lib/imageEdit/utils/getSelectedImage.js +20 -20
- package/lib/imageEdit/utils/getSelectedImage.js.map +1 -1
- package/lib/imageEdit/utils/imageEditUtils.d.ts +47 -47
- package/lib/imageEdit/utils/imageEditUtils.js +115 -115
- package/lib/imageEdit/utils/imageEditUtils.js.map +1 -1
- package/lib/imageEdit/utils/normalizeImageSelection.d.ts +9 -9
- package/lib/imageEdit/utils/normalizeImageSelection.js +31 -31
- package/lib/imageEdit/utils/normalizeImageSelection.js.map +1 -1
- package/lib/imageEdit/utils/updateHandleCursor.d.ts +7 -7
- package/lib/imageEdit/utils/updateHandleCursor.js +33 -33
- package/lib/imageEdit/utils/updateHandleCursor.js.map +1 -1
- package/lib/imageEdit/utils/updateImageEditInfo.d.ts +10 -10
- package/lib/imageEdit/utils/updateImageEditInfo.js +52 -52
- package/lib/imageEdit/utils/updateImageEditInfo.js.map +1 -1
- package/lib/imageEdit/utils/updateWrapper.d.ts +6 -6
- package/lib/imageEdit/utils/updateWrapper.js +86 -86
- package/lib/imageEdit/utils/updateWrapper.js.map +1 -1
- package/lib/index.d.ts +38 -38
- package/lib/index.js +63 -63
- package/lib/index.js.map +1 -1
- package/lib/markdown/MarkdownPlugin.d.ts +64 -64
- package/lib/markdown/MarkdownPlugin.js +195 -195
- package/lib/markdown/MarkdownPlugin.js.map +1 -1
- package/lib/markdown/utils/setFormat.d.ts +5 -5
- package/lib/markdown/utils/setFormat.js +46 -46
- package/lib/markdown/utils/setFormat.js.map +1 -1
- package/lib/paste/DefaultSanitizers.d.ts +10 -10
- package/lib/paste/DefaultSanitizers.js +24 -24
- package/lib/paste/DefaultSanitizers.js.map +1 -1
- package/lib/paste/Excel/processPastedContentFromExcel.d.ts +30 -30
- package/lib/paste/Excel/processPastedContentFromExcel.js +140 -140
- package/lib/paste/Excel/processPastedContentFromExcel.js.map +1 -1
- package/lib/paste/PastePlugin.d.ts +44 -44
- package/lib/paste/PastePlugin.js +146 -138
- package/lib/paste/PastePlugin.js.map +1 -1
- package/lib/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +7 -7
- package/lib/paste/PowerPoint/processPastedContentFromPowerPoint.js +146 -146
- package/lib/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
- package/lib/paste/WacComponents/constants.d.ts +52 -52
- package/lib/paste/WacComponents/constants.js +66 -66
- package/lib/paste/WacComponents/constants.js.map +1 -1
- package/lib/paste/WacComponents/processPastedContentWacComponents.d.ts +9 -9
- package/lib/paste/WacComponents/processPastedContentWacComponents.js +190 -190
- package/lib/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
- package/lib/paste/WordDesktop/WordMetadata.d.ts +9 -9
- package/lib/paste/WordDesktop/WordMetadata.js +2 -2
- package/lib/paste/WordDesktop/WordMetadata.js.map +1 -1
- package/lib/paste/WordDesktop/getStyleMetadata.d.ts +22 -23
- package/lib/paste/WordDesktop/getStyleMetadata.js +110 -107
- package/lib/paste/WordDesktop/getStyleMetadata.js.map +1 -1
- package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +8 -7
- package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.js +41 -38
- package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
- package/lib/paste/WordDesktop/processWordComments.d.ts +7 -7
- package/lib/paste/WordDesktop/processWordComments.js +21 -21
- package/lib/paste/WordDesktop/processWordComments.js.map +1 -1
- package/lib/paste/WordDesktop/processWordLists.d.ts +11 -11
- package/lib/paste/WordDesktop/processWordLists.js +204 -204
- package/lib/paste/WordDesktop/processWordLists.js.map +1 -1
- package/lib/paste/oneNote/processPastedContentFromOneNote.d.ts +50 -50
- package/lib/paste/oneNote/processPastedContentFromOneNote.js +113 -113
- package/lib/paste/oneNote/processPastedContentFromOneNote.js.map +1 -1
- package/lib/paste/parsers/adjustPercentileLineHeightParser.d.ts +8 -8
- package/lib/paste/parsers/adjustPercentileLineHeightParser.js +25 -25
- package/lib/paste/parsers/adjustPercentileLineHeightParser.js.map +1 -1
- package/lib/paste/parsers/blockElementParser.d.ts +7 -7
- package/lib/paste/parsers/blockElementParser.js +14 -14
- package/lib/paste/parsers/blockElementParser.js.map +1 -1
- package/lib/paste/parsers/deprecatedColorParser.d.ts +5 -5
- package/lib/paste/parsers/deprecatedColorParser.js +19 -19
- package/lib/paste/parsers/deprecatedColorParser.js.map +1 -1
- package/lib/paste/parsers/imageSizeParser.d.ts +6 -6
- package/lib/paste/parsers/imageSizeParser.js +23 -23
- package/lib/paste/parsers/imageSizeParser.js.map +1 -1
- package/lib/paste/parsers/linkParser.d.ts +5 -5
- package/lib/paste/parsers/linkParser.js +27 -27
- package/lib/paste/parsers/linkParser.js.map +1 -1
- package/lib/paste/parsers/listLevelParser.d.ts +10 -10
- package/lib/paste/parsers/listLevelParser.js +18 -18
- package/lib/paste/parsers/listLevelParser.js.map +1 -1
- package/lib/paste/parsers/removeNegativeTextIndentParser.d.ts +5 -5
- package/lib/paste/parsers/removeNegativeTextIndentParser.js +13 -13
- package/lib/paste/parsers/removeNegativeTextIndentParser.js.map +1 -1
- package/lib/paste/parsers/tableBorderParser.d.ts +5 -5
- package/lib/paste/parsers/tableBorderParser.js +27 -27
- package/lib/paste/parsers/tableBorderParser.js.map +1 -1
- package/lib/paste/parsers/wordContainerParser.d.ts +8 -0
- package/lib/paste/parsers/wordContainerParser.js +17 -0
- package/lib/paste/parsers/wordContainerParser.js.map +1 -0
- package/lib/paste/parsers/wordTableParser.d.ts +8 -8
- package/lib/paste/parsers/wordTableParser.js +19 -19
- package/lib/paste/parsers/wordTableParser.js.map +1 -1
- package/lib/paste/pasteSourceValidations/constants.d.ts +17 -17
- package/lib/paste/pasteSourceValidations/constants.js +20 -20
- package/lib/paste/pasteSourceValidations/constants.js.map +1 -1
- package/lib/paste/pasteSourceValidations/documentContainWacElements.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/documentContainWacElements.js +15 -15
- package/lib/paste/pasteSourceValidations/documentContainWacElements.js.map +1 -1
- package/lib/paste/pasteSourceValidations/getDocumentSource.d.ts +52 -0
- package/lib/paste/pasteSourceValidations/{getPasteSource.js → getDocumentSource.js} +41 -49
- package/lib/paste/pasteSourceValidations/getDocumentSource.js.map +1 -0
- package/lib/paste/pasteSourceValidations/isExcelDesktopDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isExcelDesktopDocument.js +17 -17
- package/lib/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isExcelNonNativeEvent.d.ts +7 -7
- package/lib/paste/pasteSourceValidations/isExcelNonNativeEvent.js +17 -17
- package/lib/paste/pasteSourceValidations/isExcelNonNativeEvent.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isExcelOnlineDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isExcelOnlineDocument.js +19 -19
- package/lib/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isGoogleSheetDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isGoogleSheetDocument.js +15 -15
- package/lib/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isOneNoteDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isOneNoteDocument.js +17 -17
- package/lib/paste/pasteSourceValidations/isOneNoteDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +15 -15
- package/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/isWordDesktopDocument.d.ts +8 -8
- package/lib/paste/pasteSourceValidations/isWordDesktopDocument.js +24 -24
- package/lib/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
- package/lib/paste/pasteSourceValidations/shouldConvertToSingleImage.d.ts +9 -9
- package/lib/paste/pasteSourceValidations/shouldConvertToSingleImage.js +17 -18
- package/lib/paste/pasteSourceValidations/shouldConvertToSingleImage.js.map +1 -1
- package/lib/paste/processors/pasteButtonProcessor.d.ts +7 -7
- package/lib/paste/processors/pasteButtonProcessor.js +35 -35
- package/lib/paste/processors/pasteButtonProcessor.js.map +1 -1
- package/lib/paste/utils/addParser.d.ts +5 -5
- package/lib/paste/utils/addParser.js +17 -17
- package/lib/paste/utils/addParser.js.map +1 -1
- package/lib/paste/utils/chainSanitizerCallback.d.ts +9 -9
- package/lib/paste/utils/chainSanitizerCallback.js +35 -35
- package/lib/paste/utils/chainSanitizerCallback.js.map +1 -1
- package/lib/paste/utils/customListUtils.d.ts +9 -9
- package/lib/paste/utils/customListUtils.js +67 -67
- package/lib/paste/utils/customListUtils.js.map +1 -1
- package/lib/paste/utils/getStyles.d.ts +6 -6
- package/lib/paste/utils/getStyles.js +22 -22
- package/lib/paste/utils/getStyles.js.map +1 -1
- package/lib/paste/utils/setProcessor.d.ts +5 -5
- package/lib/paste/utils/setProcessor.js +13 -13
- package/lib/paste/utils/setProcessor.js.map +1 -1
- package/lib/picker/PickerHandler.d.ts +112 -112
- package/lib/picker/PickerHandler.js +2 -2
- package/lib/picker/PickerHandler.js.map +1 -1
- package/lib/picker/PickerHelper.d.ts +22 -22
- package/lib/picker/PickerHelper.js +2 -2
- package/lib/picker/PickerHelper.js.map +1 -1
- package/lib/picker/PickerHelperImpl.d.ts +25 -25
- package/lib/picker/PickerHelperImpl.js +53 -53
- package/lib/picker/PickerHelperImpl.js.map +1 -1
- package/lib/picker/PickerPlugin.d.ts +54 -54
- package/lib/picker/PickerPlugin.js +216 -216
- package/lib/picker/PickerPlugin.js.map +1 -1
- package/lib/picker/getQueryString.d.ts +5 -5
- package/lib/picker/getQueryString.js +35 -35
- package/lib/picker/getQueryString.js.map +1 -1
- package/lib/pluginUtils/CreateElement/CreateElementData.d.ts +35 -35
- package/lib/pluginUtils/CreateElement/CreateElementData.js +2 -2
- package/lib/pluginUtils/CreateElement/CreateElementData.js.map +1 -1
- package/lib/pluginUtils/CreateElement/createElement.d.ts +9 -9
- package/lib/pluginUtils/CreateElement/createElement.js +51 -51
- package/lib/pluginUtils/CreateElement/createElement.js.map +1 -1
- package/lib/pluginUtils/Disposable.d.ts +10 -10
- package/lib/pluginUtils/Disposable.js +2 -2
- package/lib/pluginUtils/Disposable.js.map +1 -1
- package/lib/pluginUtils/DragAndDrop/DragAndDropHandler.d.ts +45 -45
- package/lib/pluginUtils/DragAndDrop/DragAndDropHandler.js +2 -2
- package/lib/pluginUtils/DragAndDrop/DragAndDropHandler.js.map +1 -1
- package/lib/pluginUtils/DragAndDrop/DragAndDropHelper.d.ts +39 -39
- package/lib/pluginUtils/DragAndDrop/DragAndDropHelper.js +120 -120
- package/lib/pluginUtils/DragAndDrop/DragAndDropHelper.js.map +1 -1
- package/lib/pluginUtils/Rect/getIntersectedRect.d.ts +27 -27
- package/lib/pluginUtils/Rect/getIntersectedRect.js +45 -45
- package/lib/pluginUtils/Rect/getIntersectedRect.js.map +1 -1
- package/lib/shortcut/ShortcutCommand.d.ts +44 -44
- package/lib/shortcut/ShortcutCommand.js +2 -2
- package/lib/shortcut/ShortcutCommand.js.map +1 -1
- package/lib/shortcut/ShortcutPlugin.d.ts +51 -51
- package/lib/shortcut/ShortcutPlugin.js +125 -125
- package/lib/shortcut/ShortcutPlugin.js.map +1 -1
- package/lib/shortcut/shortcuts.d.ts +92 -92
- package/lib/shortcut/shortcuts.js +238 -238
- package/lib/shortcut/shortcuts.js.map +1 -1
- package/lib/shortcut/utils/setShortcutIndentationCommand.d.ts +5 -5
- package/lib/shortcut/utils/setShortcutIndentationCommand.js +21 -21
- package/lib/shortcut/utils/setShortcutIndentationCommand.js.map +1 -1
- package/lib/tableEdit/OnTableEditorCreatedCallback.d.ts +5 -5
- package/lib/tableEdit/OnTableEditorCreatedCallback.js +2 -2
- package/lib/tableEdit/OnTableEditorCreatedCallback.js.map +1 -1
- package/lib/tableEdit/TableEditPlugin.d.ts +56 -56
- package/lib/tableEdit/TableEditPlugin.js +171 -171
- package/lib/tableEdit/TableEditPlugin.js.map +1 -1
- package/lib/tableEdit/TableWithRoot.d.ts +15 -15
- package/lib/tableEdit/TableWithRoot.js +2 -2
- package/lib/tableEdit/TableWithRoot.js.map +1 -1
- package/lib/tableEdit/editors/TableEditor.d.ts +90 -86
- package/lib/tableEdit/editors/TableEditor.js +378 -341
- package/lib/tableEdit/editors/TableEditor.js.map +1 -1
- package/lib/tableEdit/editors/features/CellResizer.d.ts +55 -54
- package/lib/tableEdit/editors/features/CellResizer.js +246 -210
- package/lib/tableEdit/editors/features/CellResizer.js.map +1 -1
- package/lib/tableEdit/editors/features/TableEditFeature.d.ts +13 -13
- package/lib/tableEdit/editors/features/TableEditFeature.js +16 -16
- package/lib/tableEdit/editors/features/TableEditFeature.js.map +1 -1
- package/lib/tableEdit/editors/features/TableEditFeatureName.d.ts +4 -4
- package/lib/tableEdit/editors/features/TableEditFeatureName.js +2 -2
- package/lib/tableEdit/editors/features/TableEditFeatureName.js.map +1 -1
- package/lib/tableEdit/editors/features/TableInserter.d.ts +33 -33
- package/lib/tableEdit/editors/features/TableInserter.js +125 -125
- package/lib/tableEdit/editors/features/TableInserter.js.map +1 -1
- package/lib/tableEdit/editors/features/TableMover.d.ts +53 -53
- package/lib/tableEdit/editors/features/TableMover.js +234 -234
- package/lib/tableEdit/editors/features/TableMover.js.map +1 -1
- package/lib/tableEdit/editors/features/TableResizer.d.ts +50 -50
- package/lib/tableEdit/editors/features/TableResizer.js +190 -190
- package/lib/tableEdit/editors/features/TableResizer.js.map +1 -1
- package/lib/tableEdit/editors/features/TableRowColumnSelector.d.ts +42 -0
- package/lib/tableEdit/editors/features/TableRowColumnSelector.js +223 -0
- package/lib/tableEdit/editors/features/TableRowColumnSelector.js.map +1 -0
- package/lib/tableEdit/editors/utils/getTableFromContentModel.d.ts +6 -6
- package/lib/tableEdit/editors/utils/getTableFromContentModel.js +20 -19
- package/lib/tableEdit/editors/utils/getTableFromContentModel.js.map +1 -1
- package/lib/touch/TouchPlugin.d.ts +32 -32
- package/lib/touch/TouchPlugin.js +211 -209
- package/lib/touch/TouchPlugin.js.map +1 -1
- package/lib/utils/getNodePositionFromEvent.d.ts +5 -5
- package/lib/utils/getNodePositionFromEvent.js +33 -33
- package/lib/utils/getNodePositionFromEvent.js.map +1 -1
- package/lib/watermark/WatermarkFormat.d.ts +5 -5
- package/lib/watermark/WatermarkFormat.js +2 -2
- package/lib/watermark/WatermarkFormat.js.map +1 -1
- package/lib/watermark/WatermarkPlugin.d.ts +42 -42
- package/lib/watermark/WatermarkPlugin.js +137 -137
- package/lib/watermark/WatermarkPlugin.js.map +1 -1
- package/lib/watermark/isModelEmptyFast.d.ts +5 -5
- package/lib/watermark/isModelEmptyFast.js +37 -37
- package/lib/watermark/isModelEmptyFast.js.map +1 -1
- package/lib-amd/announce/AnnouncePlugin.d.ts +32 -32
- package/lib-amd/announce/AnnouncePlugin.js +66 -66
- package/lib-amd/announce/AnnouncePlugin.js.map +1 -1
- package/lib-amd/announce/tableSelectionUtils.d.ts +17 -17
- package/lib-amd/announce/tableSelectionUtils.js +70 -73
- package/lib-amd/announce/tableSelectionUtils.js.map +1 -1
- package/lib-amd/autoFormat/AutoFormatPlugin.d.ts +59 -59
- package/lib-amd/autoFormat/AutoFormatPlugin.js +289 -289
- package/lib-amd/autoFormat/AutoFormatPlugin.js.map +1 -1
- package/lib-amd/autoFormat/horizontalLine/checkAndInsertHorizontalLine.d.ts +24 -24
- package/lib-amd/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js +91 -91
- package/lib-amd/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js.map +1 -1
- package/lib-amd/autoFormat/hyphen/transformHyphen.d.ts +5 -5
- package/lib-amd/autoFormat/hyphen/transformHyphen.js +35 -35
- package/lib-amd/autoFormat/hyphen/transformHyphen.js.map +1 -1
- package/lib-amd/autoFormat/interface/AutoFormatOptions.d.ts +34 -34
- package/lib-amd/autoFormat/interface/AutoFormatOptions.js +4 -4
- package/lib-amd/autoFormat/interface/AutoFormatOptions.js.map +1 -1
- package/lib-amd/autoFormat/link/createLink.d.ts +5 -5
- package/lib-amd/autoFormat/link/createLink.js +35 -35
- package/lib-amd/autoFormat/link/createLink.js.map +1 -1
- package/lib-amd/autoFormat/link/unlink.d.ts +5 -5
- package/lib-amd/autoFormat/link/unlink.js +19 -19
- package/lib-amd/autoFormat/link/unlink.js.map +1 -1
- package/lib-amd/autoFormat/list/convertAlphaToDecimals.d.ts +7 -7
- package/lib-amd/autoFormat/list/convertAlphaToDecimals.js +24 -24
- package/lib-amd/autoFormat/list/convertAlphaToDecimals.js.map +1 -1
- package/lib-amd/autoFormat/list/getIndex.d.ts +4 -4
- package/lib-amd/autoFormat/list/getIndex.js +14 -14
- package/lib-amd/autoFormat/list/getIndex.js.map +1 -1
- package/lib-amd/autoFormat/list/getListTypeStyle.d.ts +14 -14
- package/lib-amd/autoFormat/list/getListTypeStyle.js +98 -98
- package/lib-amd/autoFormat/list/getListTypeStyle.js.map +1 -1
- package/lib-amd/autoFormat/list/getNumberingListStyle.d.ts +4 -4
- package/lib-amd/autoFormat/list/getNumberingListStyle.js +153 -153
- package/lib-amd/autoFormat/list/getNumberingListStyle.js.map +1 -1
- package/lib-amd/autoFormat/list/keyboardListTrigger.d.ts +5 -5
- package/lib-amd/autoFormat/list/keyboardListTrigger.js +47 -47
- package/lib-amd/autoFormat/list/keyboardListTrigger.js.map +1 -1
- package/lib-amd/autoFormat/numbers/transformFraction.d.ts +5 -5
- package/lib-amd/autoFormat/numbers/transformFraction.js +28 -28
- package/lib-amd/autoFormat/numbers/transformFraction.js.map +1 -1
- package/lib-amd/autoFormat/numbers/transformOrdinals.d.ts +4 -4
- package/lib-amd/autoFormat/numbers/transformOrdinals.js +66 -65
- package/lib-amd/autoFormat/numbers/transformOrdinals.js.map +1 -1
- package/lib-amd/contextMenuBase/ContextMenuPluginBase.d.ts +58 -58
- package/lib-amd/contextMenuBase/ContextMenuPluginBase.js +85 -85
- package/lib-amd/contextMenuBase/ContextMenuPluginBase.js.map +1 -1
- package/lib-amd/customReplace/CustomReplacePlugin.d.ts +61 -61
- package/lib-amd/customReplace/CustomReplacePlugin.js +87 -87
- package/lib-amd/customReplace/CustomReplacePlugin.js.map +1 -1
- package/lib-amd/edit/EditOptions.d.ts +78 -45
- package/lib-amd/edit/EditOptions.js +4 -4
- package/lib-amd/edit/EditOptions.js.map +1 -1
- package/lib-amd/edit/EditPlugin.d.ts +60 -60
- package/lib-amd/edit/EditPlugin.js +252 -234
- package/lib-amd/edit/EditPlugin.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteAllSegmentBefore.d.ts +5 -5
- package/lib-amd/edit/deleteSteps/deleteAllSegmentBefore.js +24 -24
- package/lib-amd/edit/deleteSteps/deleteAllSegmentBefore.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteCollapsedSelection.d.ts +10 -10
- package/lib-amd/edit/deleteSteps/deleteCollapsedSelection.js +112 -112
- package/lib-amd/edit/deleteSteps/deleteCollapsedSelection.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteEmptyQuote.d.ts +5 -5
- package/lib-amd/edit/deleteSteps/deleteEmptyQuote.js +62 -62
- package/lib-amd/edit/deleteSteps/deleteEmptyQuote.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteList.d.ts +5 -5
- package/lib-amd/edit/deleteSteps/deleteList.js +58 -29
- package/lib-amd/edit/deleteSteps/deleteList.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteParagraphStyle.d.ts +5 -5
- package/lib-amd/edit/deleteSteps/deleteParagraphStyle.js +37 -37
- package/lib-amd/edit/deleteSteps/deleteParagraphStyle.js.map +1 -1
- package/lib-amd/edit/deleteSteps/deleteWordSelection.d.ts +9 -9
- package/lib-amd/edit/deleteSteps/deleteWordSelection.js +172 -172
- package/lib-amd/edit/deleteSteps/deleteWordSelection.js.map +1 -1
- package/lib-amd/edit/handleKeyboardEventCommon.d.ts +14 -14
- package/lib-amd/edit/handleKeyboardEventCommon.js +72 -72
- package/lib-amd/edit/handleKeyboardEventCommon.js.map +1 -1
- package/lib-amd/edit/inputSteps/handleAutoLink.d.ts +5 -5
- package/lib-amd/edit/inputSteps/handleAutoLink.js +25 -25
- package/lib-amd/edit/inputSteps/handleAutoLink.js.map +1 -1
- package/lib-amd/edit/inputSteps/handleEnterOnList.d.ts +5 -5
- package/lib-amd/edit/inputSteps/handleEnterOnList.js +69 -69
- package/lib-amd/edit/inputSteps/handleEnterOnList.js.map +1 -1
- package/lib-amd/edit/inputSteps/handleEnterOnParagraph.d.ts +5 -5
- package/lib-amd/edit/inputSteps/handleEnterOnParagraph.js +21 -21
- package/lib-amd/edit/inputSteps/handleEnterOnParagraph.js.map +1 -1
- package/lib-amd/edit/keyboardDelete.d.ts +11 -11
- package/lib-amd/edit/keyboardDelete.js +108 -108
- package/lib-amd/edit/keyboardDelete.js.map +1 -1
- package/lib-amd/edit/keyboardEnter.d.ts +5 -5
- package/lib-amd/edit/keyboardEnter.js +51 -51
- package/lib-amd/edit/keyboardEnter.js.map +1 -1
- package/lib-amd/edit/keyboardInput.d.ts +5 -5
- package/lib-amd/edit/keyboardInput.js +65 -65
- package/lib-amd/edit/keyboardInput.js.map +1 -1
- package/lib-amd/edit/keyboardTab.d.ts +6 -5
- package/lib-amd/edit/keyboardTab.js +70 -60
- package/lib-amd/edit/keyboardTab.js.map +1 -1
- package/lib-amd/edit/tabUtils/handleTabOnList.d.ts +7 -7
- package/lib-amd/edit/tabUtils/handleTabOnList.js +33 -33
- package/lib-amd/edit/tabUtils/handleTabOnList.js.map +1 -1
- package/lib-amd/edit/tabUtils/handleTabOnParagraph.d.ts +17 -17
- package/lib-amd/edit/tabUtils/handleTabOnParagraph.js +94 -94
- package/lib-amd/edit/tabUtils/handleTabOnParagraph.js.map +1 -1
- package/lib-amd/edit/tabUtils/handleTabOnTable.d.ts +6 -6
- package/lib-amd/edit/tabUtils/handleTabOnTable.js +25 -25
- package/lib-amd/edit/tabUtils/handleTabOnTable.js.map +1 -1
- package/lib-amd/edit/tabUtils/handleTabOnTableCell.d.ts +6 -6
- package/lib-amd/edit/tabUtils/handleTabOnTableCell.js +43 -43
- package/lib-amd/edit/tabUtils/handleTabOnTableCell.js.map +1 -1
- package/lib-amd/edit/utils/getLeafSiblingBlock.d.ts +45 -45
- package/lib-amd/edit/utils/getLeafSiblingBlock.js +72 -72
- package/lib-amd/edit/utils/getLeafSiblingBlock.js.map +1 -1
- package/lib-amd/edit/utils/preserveParagraphFormat.d.ts +9 -9
- package/lib-amd/edit/utils/preserveParagraphFormat.js +25 -25
- package/lib-amd/edit/utils/preserveParagraphFormat.js.map +1 -1
- package/lib-amd/edit/utils/splitParagraph.d.ts +12 -12
- package/lib-amd/edit/utils/splitParagraph.js +39 -39
- package/lib-amd/edit/utils/splitParagraph.js.map +1 -1
- package/lib-amd/findReplace/FindReplacePlugin.d.ts +42 -42
- package/lib-amd/findReplace/FindReplacePlugin.js +96 -95
- package/lib-amd/findReplace/FindReplacePlugin.js.map +1 -1
- package/lib-amd/findReplace/createFindReplaceContext.d.ts +8 -8
- package/lib-amd/findReplace/createFindReplaceContext.js +25 -25
- package/lib-amd/findReplace/createFindReplaceContext.js.map +1 -1
- package/lib-amd/findReplace/find.d.ts +11 -11
- package/lib-amd/findReplace/find.js +20 -20
- package/lib-amd/findReplace/find.js.map +1 -1
- package/lib-amd/findReplace/moveHighlight.d.ts +9 -9
- package/lib-amd/findReplace/moveHighlight.js +21 -21
- package/lib-amd/findReplace/moveHighlight.js.map +1 -1
- package/lib-amd/findReplace/replace.d.ts +10 -10
- package/lib-amd/findReplace/replace.js +46 -46
- package/lib-amd/findReplace/replace.js.map +1 -1
- package/lib-amd/findReplace/types/FindReplaceContext.d.ts +38 -38
- package/lib-amd/findReplace/types/FindReplaceContext.js +4 -4
- package/lib-amd/findReplace/types/FindReplaceContext.js.map +1 -1
- package/lib-amd/findReplace/types/FindReplaceHighlightOptions.d.ts +13 -13
- package/lib-amd/findReplace/types/FindReplaceHighlightOptions.js +4 -4
- package/lib-amd/findReplace/types/FindReplaceHighlightOptions.js.map +1 -1
- package/lib-amd/findReplace/types/HighlightHelper.d.ts +23 -23
- package/lib-amd/findReplace/types/HighlightHelper.js +4 -4
- package/lib-amd/findReplace/types/HighlightHelper.js.map +1 -1
- package/lib-amd/findReplace/utils/HighlightHelperImpl.d.ts +9 -9
- package/lib-amd/findReplace/utils/HighlightHelperImpl.js +65 -65
- package/lib-amd/findReplace/utils/HighlightHelperImpl.js.map +1 -1
- package/lib-amd/findReplace/utils/constants.d.ts +28 -28
- package/lib-amd/findReplace/utils/constants.js +33 -33
- package/lib-amd/findReplace/utils/constants.js.map +1 -1
- package/lib-amd/findReplace/utils/replaceTextInRange.d.ts +4 -4
- package/lib-amd/findReplace/utils/replaceTextInRange.js +71 -71
- package/lib-amd/findReplace/utils/replaceTextInRange.js.map +1 -1
- package/lib-amd/findReplace/utils/setMarkedIndex.d.ts +6 -6
- package/lib-amd/findReplace/utils/setMarkedIndex.js +29 -29
- package/lib-amd/findReplace/utils/setMarkedIndex.js.map +1 -1
- package/lib-amd/findReplace/utils/sortRanges.d.ts +5 -5
- package/lib-amd/findReplace/utils/sortRanges.js +24 -24
- package/lib-amd/findReplace/utils/sortRanges.js.map +1 -1
- package/lib-amd/findReplace/utils/updateHighlight.d.ts +6 -6
- package/lib-amd/findReplace/utils/updateHighlight.js +45 -45
- package/lib-amd/findReplace/utils/updateHighlight.js.map +1 -1
- package/lib-amd/hiddenProperty/HiddenPropertyOptions.d.ts +11 -11
- package/lib-amd/hiddenProperty/HiddenPropertyOptions.js +4 -4
- package/lib-amd/hiddenProperty/HiddenPropertyOptions.js.map +1 -1
- package/lib-amd/hiddenProperty/HiddenPropertyPlugin.d.ts +38 -38
- package/lib-amd/hiddenProperty/HiddenPropertyPlugin.js +57 -57
- package/lib-amd/hiddenProperty/HiddenPropertyPlugin.js.map +1 -1
- package/lib-amd/hiddenProperty/fixupHiddenProperties.d.ts +9 -9
- package/lib-amd/hiddenProperty/fixupHiddenProperties.js +37 -37
- package/lib-amd/hiddenProperty/fixupHiddenProperties.js.map +1 -1
- package/lib-amd/hyperlink/HyperlinkPlugin.d.ts +48 -48
- package/lib-amd/hyperlink/HyperlinkPlugin.js +144 -144
- package/lib-amd/hyperlink/HyperlinkPlugin.js.map +1 -1
- package/lib-amd/hyperlink/HyperlinkToolTip.d.ts +7 -7
- package/lib-amd/hyperlink/HyperlinkToolTip.js +4 -4
- package/lib-amd/hyperlink/HyperlinkToolTip.js.map +1 -1
- package/lib-amd/imageEdit/Cropper/createImageCropper.d.ts +10 -10
- package/lib-amd/imageEdit/Cropper/createImageCropper.js +77 -77
- package/lib-amd/imageEdit/Cropper/createImageCropper.js.map +1 -1
- package/lib-amd/imageEdit/Cropper/cropperContext.d.ts +8 -8
- package/lib-amd/imageEdit/Cropper/cropperContext.js +72 -72
- package/lib-amd/imageEdit/Cropper/cropperContext.js.map +1 -1
- package/lib-amd/imageEdit/ImageEditPlugin.d.ts +86 -86
- package/lib-amd/imageEdit/ImageEditPlugin.js +566 -567
- package/lib-amd/imageEdit/ImageEditPlugin.js.map +1 -1
- package/lib-amd/imageEdit/Resizer/createImageResizer.d.ts +12 -12
- package/lib-amd/imageEdit/Resizer/createImageResizer.js +86 -86
- package/lib-amd/imageEdit/Resizer/createImageResizer.js.map +1 -1
- package/lib-amd/imageEdit/Resizer/resizerContext.d.ts +8 -8
- package/lib-amd/imageEdit/Resizer/resizerContext.js +60 -60
- package/lib-amd/imageEdit/Resizer/resizerContext.js.map +1 -1
- package/lib-amd/imageEdit/Resizer/updateSideHandlesVisibility.d.ts +4 -4
- package/lib-amd/imageEdit/Resizer/updateSideHandlesVisibility.js +18 -18
- package/lib-amd/imageEdit/Resizer/updateSideHandlesVisibility.js.map +1 -1
- package/lib-amd/imageEdit/Rotator/createImageRotator.d.ts +6 -6
- package/lib-amd/imageEdit/Rotator/createImageRotator.js +73 -73
- package/lib-amd/imageEdit/Rotator/createImageRotator.js.map +1 -1
- package/lib-amd/imageEdit/Rotator/rotatorContext.d.ts +8 -8
- package/lib-amd/imageEdit/Rotator/rotatorContext.js +35 -35
- package/lib-amd/imageEdit/Rotator/rotatorContext.js.map +1 -1
- package/lib-amd/imageEdit/Rotator/updateRotateHandle.d.ts +7 -7
- package/lib-amd/imageEdit/Rotator/updateRotateHandle.js +56 -56
- package/lib-amd/imageEdit/Rotator/updateRotateHandle.js.map +1 -1
- package/lib-amd/imageEdit/constants/constants.d.ts +77 -77
- package/lib-amd/imageEdit/constants/constants.js +86 -86
- package/lib-amd/imageEdit/constants/constants.js.map +1 -1
- package/lib-amd/imageEdit/types/DragAndDropContext.d.ts +39 -39
- package/lib-amd/imageEdit/types/DragAndDropContext.js +4 -4
- package/lib-amd/imageEdit/types/DragAndDropContext.js.map +1 -1
- package/lib-amd/imageEdit/types/GeneratedImageSize.d.ts +33 -33
- package/lib-amd/imageEdit/types/GeneratedImageSize.js +4 -4
- package/lib-amd/imageEdit/types/GeneratedImageSize.js.map +1 -1
- package/lib-amd/imageEdit/types/ImageAndParagraph.d.ts +8 -8
- package/lib-amd/imageEdit/types/ImageAndParagraph.js +4 -4
- package/lib-amd/imageEdit/types/ImageAndParagraph.js.map +1 -1
- package/lib-amd/imageEdit/types/ImageEditElementClass.d.ts +30 -30
- package/lib-amd/imageEdit/types/ImageEditElementClass.js +36 -36
- package/lib-amd/imageEdit/types/ImageEditElementClass.js.map +1 -1
- package/lib-amd/imageEdit/types/ImageEditOptions.d.ts +55 -55
- package/lib-amd/imageEdit/types/ImageEditOptions.js +4 -4
- package/lib-amd/imageEdit/types/ImageEditOptions.js.map +1 -1
- package/lib-amd/imageEdit/types/ImageHtmlOptions.d.ts +22 -22
- package/lib-amd/imageEdit/types/ImageHtmlOptions.js +4 -4
- package/lib-amd/imageEdit/types/ImageHtmlOptions.js.map +1 -1
- package/lib-amd/imageEdit/utils/applyChange.d.ts +13 -13
- package/lib-amd/imageEdit/utils/applyChange.js +70 -70
- package/lib-amd/imageEdit/utils/applyChange.js.map +1 -1
- package/lib-amd/imageEdit/utils/canRegenerateImage.d.ts +8 -8
- package/lib-amd/imageEdit/utils/canRegenerateImage.js +33 -33
- package/lib-amd/imageEdit/utils/canRegenerateImage.js.map +1 -1
- package/lib-amd/imageEdit/utils/checkEditInfoState.d.ts +41 -41
- package/lib-amd/imageEdit/utils/checkEditInfoState.js +53 -53
- package/lib-amd/imageEdit/utils/checkEditInfoState.js.map +1 -1
- package/lib-amd/imageEdit/utils/createImageWrapper.d.ts +18 -18
- package/lib-amd/imageEdit/utils/createImageWrapper.js +89 -89
- package/lib-amd/imageEdit/utils/createImageWrapper.js.map +1 -1
- package/lib-amd/imageEdit/utils/doubleCheckResize.d.ts +12 -12
- package/lib-amd/imageEdit/utils/doubleCheckResize.js +37 -37
- package/lib-amd/imageEdit/utils/doubleCheckResize.js.map +1 -1
- package/lib-amd/imageEdit/utils/filterInnerResizerHandles.d.ts +4 -4
- package/lib-amd/imageEdit/utils/filterInnerResizerHandles.js +20 -20
- package/lib-amd/imageEdit/utils/filterInnerResizerHandles.js.map +1 -1
- package/lib-amd/imageEdit/utils/findEditingImage.d.ts +10 -10
- package/lib-amd/imageEdit/utils/findEditingImage.js +39 -39
- package/lib-amd/imageEdit/utils/findEditingImage.js.map +1 -1
- package/lib-amd/imageEdit/utils/generateDataURL.d.ts +13 -13
- package/lib-amd/imageEdit/utils/generateDataURL.js +57 -50
- package/lib-amd/imageEdit/utils/generateDataURL.js.map +1 -1
- package/lib-amd/imageEdit/utils/generateImageSize.d.ts +15 -15
- package/lib-amd/imageEdit/utils/generateImageSize.js +47 -47
- package/lib-amd/imageEdit/utils/generateImageSize.js.map +1 -1
- package/lib-amd/imageEdit/utils/getDropAndDragHelpers.d.ts +10 -10
- package/lib-amd/imageEdit/utils/getDropAndDragHelpers.js +23 -23
- package/lib-amd/imageEdit/utils/getDropAndDragHelpers.js.map +1 -1
- package/lib-amd/imageEdit/utils/getHTMLImageOptions.d.ts +7 -7
- package/lib-amd/imageEdit/utils/getHTMLImageOptions.js +23 -23
- package/lib-amd/imageEdit/utils/getHTMLImageOptions.js.map +1 -1
- package/lib-amd/imageEdit/utils/getSelectedImage.d.ts +6 -6
- package/lib-amd/imageEdit/utils/getSelectedImage.js +21 -21
- package/lib-amd/imageEdit/utils/getSelectedImage.js.map +1 -1
- package/lib-amd/imageEdit/utils/imageEditUtils.d.ts +47 -47
- package/lib-amd/imageEdit/utils/imageEditUtils.js +116 -116
- package/lib-amd/imageEdit/utils/imageEditUtils.js.map +1 -1
- package/lib-amd/imageEdit/utils/normalizeImageSelection.d.ts +9 -9
- package/lib-amd/imageEdit/utils/normalizeImageSelection.js +32 -32
- package/lib-amd/imageEdit/utils/normalizeImageSelection.js.map +1 -1
- package/lib-amd/imageEdit/utils/updateHandleCursor.d.ts +7 -7
- package/lib-amd/imageEdit/utils/updateHandleCursor.js +35 -35
- package/lib-amd/imageEdit/utils/updateHandleCursor.js.map +1 -1
- package/lib-amd/imageEdit/utils/updateImageEditInfo.d.ts +10 -10
- package/lib-amd/imageEdit/utils/updateImageEditInfo.js +51 -51
- package/lib-amd/imageEdit/utils/updateImageEditInfo.js.map +1 -1
- package/lib-amd/imageEdit/utils/updateWrapper.d.ts +6 -6
- package/lib-amd/imageEdit/utils/updateWrapper.js +80 -80
- package/lib-amd/imageEdit/utils/updateWrapper.js.map +1 -1
- package/lib-amd/index.d.ts +38 -38
- package/lib-amd/index.js +42 -42
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/markdown/MarkdownPlugin.d.ts +64 -64
- package/lib-amd/markdown/MarkdownPlugin.js +196 -196
- package/lib-amd/markdown/MarkdownPlugin.js.map +1 -1
- package/lib-amd/markdown/utils/setFormat.d.ts +5 -5
- package/lib-amd/markdown/utils/setFormat.js +46 -46
- package/lib-amd/markdown/utils/setFormat.js.map +1 -1
- package/lib-amd/paste/DefaultSanitizers.d.ts +10 -10
- package/lib-amd/paste/DefaultSanitizers.js +26 -26
- package/lib-amd/paste/DefaultSanitizers.js.map +1 -1
- package/lib-amd/paste/Excel/processPastedContentFromExcel.d.ts +30 -30
- package/lib-amd/paste/Excel/processPastedContentFromExcel.js +138 -138
- package/lib-amd/paste/Excel/processPastedContentFromExcel.js.map +1 -1
- package/lib-amd/paste/PastePlugin.d.ts +44 -44
- package/lib-amd/paste/PastePlugin.js +129 -121
- package/lib-amd/paste/PastePlugin.js.map +1 -1
- package/lib-amd/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +7 -7
- package/lib-amd/paste/PowerPoint/processPastedContentFromPowerPoint.js +142 -142
- package/lib-amd/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
- package/lib-amd/paste/WacComponents/constants.d.ts +52 -52
- package/lib-amd/paste/WacComponents/constants.js +67 -67
- package/lib-amd/paste/WacComponents/constants.js.map +1 -1
- package/lib-amd/paste/WacComponents/processPastedContentWacComponents.d.ts +9 -9
- package/lib-amd/paste/WacComponents/processPastedContentWacComponents.js +187 -187
- package/lib-amd/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
- package/lib-amd/paste/WordDesktop/WordMetadata.d.ts +9 -9
- package/lib-amd/paste/WordDesktop/WordMetadata.js +4 -4
- package/lib-amd/paste/WordDesktop/WordMetadata.js.map +1 -1
- package/lib-amd/paste/WordDesktop/getStyleMetadata.d.ts +22 -23
- package/lib-amd/paste/WordDesktop/getStyleMetadata.js +110 -107
- package/lib-amd/paste/WordDesktop/getStyleMetadata.js.map +1 -1
- package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +8 -7
- package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.js +32 -30
- package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
- package/lib-amd/paste/WordDesktop/processWordComments.d.ts +7 -7
- package/lib-amd/paste/WordDesktop/processWordComments.js +22 -22
- package/lib-amd/paste/WordDesktop/processWordComments.js.map +1 -1
- package/lib-amd/paste/WordDesktop/processWordLists.d.ts +11 -11
- package/lib-amd/paste/WordDesktop/processWordLists.js +202 -202
- package/lib-amd/paste/WordDesktop/processWordLists.js.map +1 -1
- package/lib-amd/paste/oneNote/processPastedContentFromOneNote.d.ts +50 -50
- package/lib-amd/paste/oneNote/processPastedContentFromOneNote.js +114 -114
- package/lib-amd/paste/oneNote/processPastedContentFromOneNote.js.map +1 -1
- package/lib-amd/paste/parsers/adjustPercentileLineHeightParser.d.ts +8 -8
- package/lib-amd/paste/parsers/adjustPercentileLineHeightParser.js +27 -27
- package/lib-amd/paste/parsers/adjustPercentileLineHeightParser.js.map +1 -1
- package/lib-amd/paste/parsers/blockElementParser.d.ts +7 -7
- package/lib-amd/paste/parsers/blockElementParser.js +16 -16
- package/lib-amd/paste/parsers/blockElementParser.js.map +1 -1
- package/lib-amd/paste/parsers/deprecatedColorParser.d.ts +5 -5
- package/lib-amd/paste/parsers/deprecatedColorParser.js +20 -20
- package/lib-amd/paste/parsers/deprecatedColorParser.js.map +1 -1
- package/lib-amd/paste/parsers/imageSizeParser.d.ts +6 -6
- package/lib-amd/paste/parsers/imageSizeParser.js +24 -24
- package/lib-amd/paste/parsers/imageSizeParser.js.map +1 -1
- package/lib-amd/paste/parsers/linkParser.d.ts +5 -5
- package/lib-amd/paste/parsers/linkParser.js +28 -28
- package/lib-amd/paste/parsers/linkParser.js.map +1 -1
- package/lib-amd/paste/parsers/listLevelParser.d.ts +10 -10
- package/lib-amd/paste/parsers/listLevelParser.js +20 -20
- package/lib-amd/paste/parsers/listLevelParser.js.map +1 -1
- package/lib-amd/paste/parsers/removeNegativeTextIndentParser.d.ts +5 -5
- package/lib-amd/paste/parsers/removeNegativeTextIndentParser.js +15 -15
- package/lib-amd/paste/parsers/removeNegativeTextIndentParser.js.map +1 -1
- package/lib-amd/paste/parsers/tableBorderParser.d.ts +5 -5
- package/lib-amd/paste/parsers/tableBorderParser.js +28 -28
- package/lib-amd/paste/parsers/tableBorderParser.js.map +1 -1
- package/lib-amd/paste/parsers/wordContainerParser.d.ts +8 -0
- package/lib-amd/paste/parsers/wordContainerParser.js +19 -0
- package/lib-amd/paste/parsers/wordContainerParser.js.map +1 -0
- package/lib-amd/paste/parsers/wordTableParser.d.ts +8 -8
- package/lib-amd/paste/parsers/wordTableParser.js +21 -21
- package/lib-amd/paste/parsers/wordTableParser.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/constants.d.ts +17 -17
- package/lib-amd/paste/pasteSourceValidations/constants.js +22 -22
- package/lib-amd/paste/pasteSourceValidations/constants.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/documentContainWacElements.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/documentContainWacElements.js +16 -16
- package/lib-amd/paste/pasteSourceValidations/documentContainWacElements.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/getDocumentSource.d.ts +52 -0
- package/lib-amd/paste/pasteSourceValidations/{getPasteSource.js → getDocumentSource.js} +34 -42
- package/lib-amd/paste/pasteSourceValidations/getDocumentSource.js.map +1 -0
- package/lib-amd/paste/pasteSourceValidations/isExcelDesktopDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isExcelDesktopDocument.js +18 -18
- package/lib-amd/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isExcelNonNativeEvent.d.ts +7 -7
- package/lib-amd/paste/pasteSourceValidations/isExcelNonNativeEvent.js +19 -19
- package/lib-amd/paste/pasteSourceValidations/isExcelNonNativeEvent.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isExcelOnlineDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isExcelOnlineDocument.js +20 -20
- package/lib-amd/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isGoogleSheetDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isGoogleSheetDocument.js +16 -16
- package/lib-amd/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isOneNoteDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isOneNoteDocument.js +18 -18
- package/lib-amd/paste/pasteSourceValidations/isOneNoteDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isPowerPointDesktopDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +16 -16
- package/lib-amd/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/isWordDesktopDocument.d.ts +8 -8
- package/lib-amd/paste/pasteSourceValidations/isWordDesktopDocument.js +25 -25
- package/lib-amd/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
- package/lib-amd/paste/pasteSourceValidations/shouldConvertToSingleImage.d.ts +9 -9
- package/lib-amd/paste/pasteSourceValidations/shouldConvertToSingleImage.js +19 -20
- package/lib-amd/paste/pasteSourceValidations/shouldConvertToSingleImage.js.map +1 -1
- package/lib-amd/paste/processors/pasteButtonProcessor.d.ts +7 -7
- package/lib-amd/paste/processors/pasteButtonProcessor.js +35 -35
- package/lib-amd/paste/processors/pasteButtonProcessor.js.map +1 -1
- package/lib-amd/paste/utils/addParser.d.ts +5 -5
- package/lib-amd/paste/utils/addParser.js +19 -19
- package/lib-amd/paste/utils/addParser.js.map +1 -1
- package/lib-amd/paste/utils/chainSanitizerCallback.d.ts +9 -9
- package/lib-amd/paste/utils/chainSanitizerCallback.js +37 -37
- package/lib-amd/paste/utils/chainSanitizerCallback.js.map +1 -1
- package/lib-amd/paste/utils/customListUtils.d.ts +9 -9
- package/lib-amd/paste/utils/customListUtils.js +66 -66
- package/lib-amd/paste/utils/customListUtils.js.map +1 -1
- package/lib-amd/paste/utils/getStyles.d.ts +6 -6
- package/lib-amd/paste/utils/getStyles.js +24 -24
- package/lib-amd/paste/utils/getStyles.js.map +1 -1
- package/lib-amd/paste/utils/setProcessor.d.ts +5 -5
- package/lib-amd/paste/utils/setProcessor.js +15 -15
- package/lib-amd/paste/utils/setProcessor.js.map +1 -1
- package/lib-amd/picker/PickerHandler.d.ts +112 -112
- package/lib-amd/picker/PickerHandler.js +4 -4
- package/lib-amd/picker/PickerHandler.js.map +1 -1
- package/lib-amd/picker/PickerHelper.d.ts +22 -22
- package/lib-amd/picker/PickerHelper.js +4 -4
- package/lib-amd/picker/PickerHelper.js.map +1 -1
- package/lib-amd/picker/PickerHelperImpl.d.ts +25 -25
- package/lib-amd/picker/PickerHelperImpl.js +52 -52
- package/lib-amd/picker/PickerHelperImpl.js.map +1 -1
- package/lib-amd/picker/PickerPlugin.d.ts +54 -54
- package/lib-amd/picker/PickerPlugin.js +214 -214
- package/lib-amd/picker/PickerPlugin.js.map +1 -1
- package/lib-amd/picker/getQueryString.d.ts +5 -5
- package/lib-amd/picker/getQueryString.js +36 -36
- package/lib-amd/picker/getQueryString.js.map +1 -1
- package/lib-amd/pluginUtils/CreateElement/CreateElementData.d.ts +35 -35
- package/lib-amd/pluginUtils/CreateElement/CreateElementData.js +4 -4
- package/lib-amd/pluginUtils/CreateElement/CreateElementData.js.map +1 -1
- package/lib-amd/pluginUtils/CreateElement/createElement.d.ts +9 -9
- package/lib-amd/pluginUtils/CreateElement/createElement.js +52 -52
- package/lib-amd/pluginUtils/CreateElement/createElement.js.map +1 -1
- package/lib-amd/pluginUtils/Disposable.d.ts +10 -10
- package/lib-amd/pluginUtils/Disposable.js +4 -4
- package/lib-amd/pluginUtils/Disposable.js.map +1 -1
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHandler.d.ts +45 -45
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHandler.js +4 -4
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHandler.js.map +1 -1
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHelper.d.ts +39 -39
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHelper.js +121 -121
- package/lib-amd/pluginUtils/DragAndDrop/DragAndDropHelper.js.map +1 -1
- package/lib-amd/pluginUtils/Rect/getIntersectedRect.d.ts +27 -27
- package/lib-amd/pluginUtils/Rect/getIntersectedRect.js +45 -45
- package/lib-amd/pluginUtils/Rect/getIntersectedRect.js.map +1 -1
- package/lib-amd/shortcut/ShortcutCommand.d.ts +44 -44
- package/lib-amd/shortcut/ShortcutCommand.js +4 -4
- package/lib-amd/shortcut/ShortcutCommand.js.map +1 -1
- package/lib-amd/shortcut/ShortcutPlugin.d.ts +51 -51
- package/lib-amd/shortcut/ShortcutPlugin.js +125 -125
- package/lib-amd/shortcut/ShortcutPlugin.js.map +1 -1
- package/lib-amd/shortcut/shortcuts.d.ts +92 -92
- package/lib-amd/shortcut/shortcuts.js +237 -237
- package/lib-amd/shortcut/shortcuts.js.map +1 -1
- package/lib-amd/shortcut/utils/setShortcutIndentationCommand.d.ts +5 -5
- package/lib-amd/shortcut/utils/setShortcutIndentationCommand.js +21 -21
- package/lib-amd/shortcut/utils/setShortcutIndentationCommand.js.map +1 -1
- package/lib-amd/tableEdit/OnTableEditorCreatedCallback.d.ts +5 -5
- package/lib-amd/tableEdit/OnTableEditorCreatedCallback.js +4 -4
- package/lib-amd/tableEdit/OnTableEditorCreatedCallback.js.map +1 -1
- package/lib-amd/tableEdit/TableEditPlugin.d.ts +56 -56
- package/lib-amd/tableEdit/TableEditPlugin.js +170 -170
- package/lib-amd/tableEdit/TableEditPlugin.js.map +1 -1
- package/lib-amd/tableEdit/TableWithRoot.d.ts +15 -15
- package/lib-amd/tableEdit/TableWithRoot.js +4 -4
- package/lib-amd/tableEdit/TableWithRoot.js.map +1 -1
- package/lib-amd/tableEdit/editors/TableEditor.d.ts +90 -86
- package/lib-amd/tableEdit/editors/TableEditor.js +373 -337
- package/lib-amd/tableEdit/editors/TableEditor.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/CellResizer.d.ts +55 -54
- package/lib-amd/tableEdit/editors/features/CellResizer.js +243 -207
- package/lib-amd/tableEdit/editors/features/CellResizer.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableEditFeature.d.ts +13 -13
- package/lib-amd/tableEdit/editors/features/TableEditFeature.js +18 -18
- package/lib-amd/tableEdit/editors/features/TableEditFeature.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableEditFeatureName.d.ts +4 -4
- package/lib-amd/tableEdit/editors/features/TableEditFeatureName.js +4 -4
- package/lib-amd/tableEdit/editors/features/TableEditFeatureName.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableInserter.d.ts +33 -33
- package/lib-amd/tableEdit/editors/features/TableInserter.js +123 -123
- package/lib-amd/tableEdit/editors/features/TableInserter.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableMover.d.ts +53 -53
- package/lib-amd/tableEdit/editors/features/TableMover.js +229 -229
- package/lib-amd/tableEdit/editors/features/TableMover.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableResizer.d.ts +50 -50
- package/lib-amd/tableEdit/editors/features/TableResizer.js +187 -187
- package/lib-amd/tableEdit/editors/features/TableResizer.js.map +1 -1
- package/lib-amd/tableEdit/editors/features/TableRowColumnSelector.d.ts +42 -0
- package/lib-amd/tableEdit/editors/features/TableRowColumnSelector.js +221 -0
- package/lib-amd/tableEdit/editors/features/TableRowColumnSelector.js.map +1 -0
- package/lib-amd/tableEdit/editors/utils/getTableFromContentModel.d.ts +6 -6
- package/lib-amd/tableEdit/editors/utils/getTableFromContentModel.js +21 -20
- package/lib-amd/tableEdit/editors/utils/getTableFromContentModel.js.map +1 -1
- package/lib-amd/touch/TouchPlugin.d.ts +32 -32
- package/lib-amd/touch/TouchPlugin.js +212 -210
- package/lib-amd/touch/TouchPlugin.js.map +1 -1
- package/lib-amd/utils/getNodePositionFromEvent.d.ts +5 -5
- package/lib-amd/utils/getNodePositionFromEvent.js +35 -35
- package/lib-amd/utils/getNodePositionFromEvent.js.map +1 -1
- package/lib-amd/watermark/WatermarkFormat.d.ts +5 -5
- package/lib-amd/watermark/WatermarkFormat.js +4 -4
- package/lib-amd/watermark/WatermarkFormat.js.map +1 -1
- package/lib-amd/watermark/WatermarkPlugin.d.ts +42 -42
- package/lib-amd/watermark/WatermarkPlugin.js +136 -136
- package/lib-amd/watermark/WatermarkPlugin.js.map +1 -1
- package/lib-amd/watermark/isModelEmptyFast.d.ts +5 -5
- package/lib-amd/watermark/isModelEmptyFast.js +39 -39
- package/lib-amd/watermark/isModelEmptyFast.js.map +1 -1
- package/lib-mjs/announce/AnnouncePlugin.d.ts +32 -32
- package/lib-mjs/announce/AnnouncePlugin.js +62 -62
- package/lib-mjs/announce/AnnouncePlugin.js.map +1 -1
- package/lib-mjs/announce/tableSelectionUtils.d.ts +17 -17
- package/lib-mjs/announce/tableSelectionUtils.js +63 -66
- package/lib-mjs/announce/tableSelectionUtils.js.map +1 -1
- package/lib-mjs/autoFormat/AutoFormatPlugin.d.ts +59 -59
- package/lib-mjs/autoFormat/AutoFormatPlugin.js +295 -295
- package/lib-mjs/autoFormat/AutoFormatPlugin.js.map +1 -1
- package/lib-mjs/autoFormat/horizontalLine/checkAndInsertHorizontalLine.d.ts +24 -24
- package/lib-mjs/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js +86 -86
- package/lib-mjs/autoFormat/horizontalLine/checkAndInsertHorizontalLine.js.map +1 -1
- package/lib-mjs/autoFormat/hyphen/transformHyphen.d.ts +5 -5
- package/lib-mjs/autoFormat/hyphen/transformHyphen.js +30 -30
- package/lib-mjs/autoFormat/hyphen/transformHyphen.js.map +1 -1
- package/lib-mjs/autoFormat/interface/AutoFormatOptions.d.ts +34 -34
- package/lib-mjs/autoFormat/interface/AutoFormatOptions.js +1 -1
- package/lib-mjs/autoFormat/interface/AutoFormatOptions.js.map +1 -1
- package/lib-mjs/autoFormat/link/createLink.d.ts +5 -5
- package/lib-mjs/autoFormat/link/createLink.js +31 -31
- package/lib-mjs/autoFormat/link/createLink.js.map +1 -1
- package/lib-mjs/autoFormat/link/unlink.d.ts +5 -5
- package/lib-mjs/autoFormat/link/unlink.js +14 -14
- package/lib-mjs/autoFormat/link/unlink.js.map +1 -1
- package/lib-mjs/autoFormat/list/convertAlphaToDecimals.d.ts +7 -7
- package/lib-mjs/autoFormat/list/convertAlphaToDecimals.js +18 -18
- package/lib-mjs/autoFormat/list/convertAlphaToDecimals.js.map +1 -1
- package/lib-mjs/autoFormat/list/getIndex.d.ts +4 -4
- package/lib-mjs/autoFormat/list/getIndex.js +9 -9
- package/lib-mjs/autoFormat/list/getIndex.js.map +1 -1
- package/lib-mjs/autoFormat/list/getListTypeStyle.d.ts +14 -14
- package/lib-mjs/autoFormat/list/getListTypeStyle.js +95 -95
- package/lib-mjs/autoFormat/list/getListTypeStyle.js.map +1 -1
- package/lib-mjs/autoFormat/list/getNumberingListStyle.d.ts +4 -4
- package/lib-mjs/autoFormat/list/getNumberingListStyle.js +149 -149
- package/lib-mjs/autoFormat/list/getNumberingListStyle.js.map +1 -1
- package/lib-mjs/autoFormat/list/keyboardListTrigger.d.ts +5 -5
- package/lib-mjs/autoFormat/list/keyboardListTrigger.js +45 -45
- package/lib-mjs/autoFormat/list/keyboardListTrigger.js.map +1 -1
- package/lib-mjs/autoFormat/numbers/transformFraction.d.ts +5 -5
- package/lib-mjs/autoFormat/numbers/transformFraction.js +23 -23
- package/lib-mjs/autoFormat/numbers/transformFraction.js.map +1 -1
- package/lib-mjs/autoFormat/numbers/transformOrdinals.d.ts +4 -4
- package/lib-mjs/autoFormat/numbers/transformOrdinals.js +61 -60
- package/lib-mjs/autoFormat/numbers/transformOrdinals.js.map +1 -1
- package/lib-mjs/contextMenuBase/ContextMenuPluginBase.d.ts +58 -58
- package/lib-mjs/contextMenuBase/ContextMenuPluginBase.js +80 -80
- package/lib-mjs/contextMenuBase/ContextMenuPluginBase.js.map +1 -1
- package/lib-mjs/customReplace/CustomReplacePlugin.d.ts +61 -61
- package/lib-mjs/customReplace/CustomReplacePlugin.js +83 -83
- package/lib-mjs/customReplace/CustomReplacePlugin.js.map +1 -1
- package/lib-mjs/edit/EditOptions.d.ts +78 -45
- package/lib-mjs/edit/EditOptions.js +1 -1
- package/lib-mjs/edit/EditOptions.js.map +1 -1
- package/lib-mjs/edit/EditPlugin.d.ts +60 -60
- package/lib-mjs/edit/EditPlugin.js +253 -235
- package/lib-mjs/edit/EditPlugin.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteAllSegmentBefore.d.ts +5 -5
- package/lib-mjs/edit/deleteSteps/deleteAllSegmentBefore.js +19 -19
- package/lib-mjs/edit/deleteSteps/deleteAllSegmentBefore.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteCollapsedSelection.d.ts +10 -10
- package/lib-mjs/edit/deleteSteps/deleteCollapsedSelection.js +110 -110
- package/lib-mjs/edit/deleteSteps/deleteCollapsedSelection.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteEmptyQuote.d.ts +5 -5
- package/lib-mjs/edit/deleteSteps/deleteEmptyQuote.js +58 -58
- package/lib-mjs/edit/deleteSteps/deleteEmptyQuote.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteList.d.ts +5 -5
- package/lib-mjs/edit/deleteSteps/deleteList.js +54 -24
- package/lib-mjs/edit/deleteSteps/deleteList.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteParagraphStyle.d.ts +5 -5
- package/lib-mjs/edit/deleteSteps/deleteParagraphStyle.js +32 -32
- package/lib-mjs/edit/deleteSteps/deleteParagraphStyle.js.map +1 -1
- package/lib-mjs/edit/deleteSteps/deleteWordSelection.d.ts +9 -9
- package/lib-mjs/edit/deleteSteps/deleteWordSelection.js +169 -169
- package/lib-mjs/edit/deleteSteps/deleteWordSelection.js.map +1 -1
- package/lib-mjs/edit/handleKeyboardEventCommon.d.ts +14 -14
- package/lib-mjs/edit/handleKeyboardEventCommon.js +65 -65
- package/lib-mjs/edit/handleKeyboardEventCommon.js.map +1 -1
- package/lib-mjs/edit/inputSteps/handleAutoLink.d.ts +5 -5
- package/lib-mjs/edit/inputSteps/handleAutoLink.js +20 -20
- package/lib-mjs/edit/inputSteps/handleAutoLink.js.map +1 -1
- package/lib-mjs/edit/inputSteps/handleEnterOnList.d.ts +5 -5
- package/lib-mjs/edit/inputSteps/handleEnterOnList.js +67 -67
- package/lib-mjs/edit/inputSteps/handleEnterOnList.js.map +1 -1
- package/lib-mjs/edit/inputSteps/handleEnterOnParagraph.d.ts +5 -5
- package/lib-mjs/edit/inputSteps/handleEnterOnParagraph.js +17 -17
- package/lib-mjs/edit/inputSteps/handleEnterOnParagraph.js.map +1 -1
- package/lib-mjs/edit/keyboardDelete.d.ts +11 -11
- package/lib-mjs/edit/keyboardDelete.js +110 -110
- package/lib-mjs/edit/keyboardDelete.js.map +1 -1
- package/lib-mjs/edit/keyboardEnter.d.ts +5 -5
- package/lib-mjs/edit/keyboardEnter.js +50 -50
- package/lib-mjs/edit/keyboardEnter.js.map +1 -1
- package/lib-mjs/edit/keyboardInput.d.ts +5 -5
- package/lib-mjs/edit/keyboardInput.js +60 -60
- package/lib-mjs/edit/keyboardInput.js.map +1 -1
- package/lib-mjs/edit/keyboardTab.d.ts +6 -5
- package/lib-mjs/edit/keyboardTab.js +70 -60
- package/lib-mjs/edit/keyboardTab.js.map +1 -1
- package/lib-mjs/edit/tabUtils/handleTabOnList.d.ts +7 -7
- package/lib-mjs/edit/tabUtils/handleTabOnList.js +29 -29
- package/lib-mjs/edit/tabUtils/handleTabOnList.js.map +1 -1
- package/lib-mjs/edit/tabUtils/handleTabOnParagraph.d.ts +17 -17
- package/lib-mjs/edit/tabUtils/handleTabOnParagraph.js +90 -90
- package/lib-mjs/edit/tabUtils/handleTabOnParagraph.js.map +1 -1
- package/lib-mjs/edit/tabUtils/handleTabOnTable.d.ts +6 -6
- package/lib-mjs/edit/tabUtils/handleTabOnTable.js +21 -21
- package/lib-mjs/edit/tabUtils/handleTabOnTable.js.map +1 -1
- package/lib-mjs/edit/tabUtils/handleTabOnTableCell.d.ts +6 -6
- package/lib-mjs/edit/tabUtils/handleTabOnTableCell.js +39 -39
- package/lib-mjs/edit/tabUtils/handleTabOnTableCell.js.map +1 -1
- package/lib-mjs/edit/utils/getLeafSiblingBlock.d.ts +45 -45
- package/lib-mjs/edit/utils/getLeafSiblingBlock.js +68 -68
- package/lib-mjs/edit/utils/getLeafSiblingBlock.js.map +1 -1
- package/lib-mjs/edit/utils/preserveParagraphFormat.d.ts +9 -9
- package/lib-mjs/edit/utils/preserveParagraphFormat.js +19 -19
- package/lib-mjs/edit/utils/preserveParagraphFormat.js.map +1 -1
- package/lib-mjs/edit/utils/splitParagraph.d.ts +12 -12
- package/lib-mjs/edit/utils/splitParagraph.js +36 -36
- package/lib-mjs/edit/utils/splitParagraph.js.map +1 -1
- package/lib-mjs/findReplace/FindReplacePlugin.d.ts +42 -42
- package/lib-mjs/findReplace/FindReplacePlugin.js +94 -93
- package/lib-mjs/findReplace/FindReplacePlugin.js.map +1 -1
- package/lib-mjs/findReplace/createFindReplaceContext.d.ts +8 -8
- package/lib-mjs/findReplace/createFindReplaceContext.js +21 -21
- package/lib-mjs/findReplace/createFindReplaceContext.js.map +1 -1
- package/lib-mjs/findReplace/find.d.ts +11 -11
- package/lib-mjs/findReplace/find.js +15 -15
- package/lib-mjs/findReplace/find.js.map +1 -1
- package/lib-mjs/findReplace/moveHighlight.d.ts +9 -9
- package/lib-mjs/findReplace/moveHighlight.js +16 -16
- package/lib-mjs/findReplace/moveHighlight.js.map +1 -1
- package/lib-mjs/findReplace/replace.d.ts +10 -10
- package/lib-mjs/findReplace/replace.js +43 -43
- package/lib-mjs/findReplace/replace.js.map +1 -1
- package/lib-mjs/findReplace/types/FindReplaceContext.d.ts +38 -38
- package/lib-mjs/findReplace/types/FindReplaceContext.js +1 -1
- package/lib-mjs/findReplace/types/FindReplaceContext.js.map +1 -1
- package/lib-mjs/findReplace/types/FindReplaceHighlightOptions.d.ts +13 -13
- package/lib-mjs/findReplace/types/FindReplaceHighlightOptions.js +1 -1
- package/lib-mjs/findReplace/types/FindReplaceHighlightOptions.js.map +1 -1
- package/lib-mjs/findReplace/types/HighlightHelper.d.ts +23 -23
- package/lib-mjs/findReplace/types/HighlightHelper.js +1 -1
- package/lib-mjs/findReplace/types/HighlightHelper.js.map +1 -1
- package/lib-mjs/findReplace/utils/HighlightHelperImpl.d.ts +9 -9
- package/lib-mjs/findReplace/utils/HighlightHelperImpl.js +60 -60
- package/lib-mjs/findReplace/utils/HighlightHelperImpl.js.map +1 -1
- package/lib-mjs/findReplace/utils/constants.d.ts +28 -28
- package/lib-mjs/findReplace/utils/constants.js +28 -28
- package/lib-mjs/findReplace/utils/constants.js.map +1 -1
- package/lib-mjs/findReplace/utils/replaceTextInRange.d.ts +4 -4
- package/lib-mjs/findReplace/utils/replaceTextInRange.js +66 -66
- package/lib-mjs/findReplace/utils/replaceTextInRange.js.map +1 -1
- package/lib-mjs/findReplace/utils/setMarkedIndex.d.ts +6 -6
- package/lib-mjs/findReplace/utils/setMarkedIndex.js +24 -24
- package/lib-mjs/findReplace/utils/setMarkedIndex.js.map +1 -1
- package/lib-mjs/findReplace/utils/sortRanges.d.ts +5 -5
- package/lib-mjs/findReplace/utils/sortRanges.js +18 -18
- package/lib-mjs/findReplace/utils/sortRanges.js.map +1 -1
- package/lib-mjs/findReplace/utils/updateHighlight.d.ts +6 -6
- package/lib-mjs/findReplace/utils/updateHighlight.js +43 -43
- package/lib-mjs/findReplace/utils/updateHighlight.js.map +1 -1
- package/lib-mjs/hiddenProperty/HiddenPropertyOptions.d.ts +11 -11
- package/lib-mjs/hiddenProperty/HiddenPropertyOptions.js +1 -1
- package/lib-mjs/hiddenProperty/HiddenPropertyOptions.js.map +1 -1
- package/lib-mjs/hiddenProperty/HiddenPropertyPlugin.d.ts +38 -38
- package/lib-mjs/hiddenProperty/HiddenPropertyPlugin.js +54 -54
- package/lib-mjs/hiddenProperty/HiddenPropertyPlugin.js.map +1 -1
- package/lib-mjs/hiddenProperty/fixupHiddenProperties.d.ts +9 -9
- package/lib-mjs/hiddenProperty/fixupHiddenProperties.js +33 -33
- package/lib-mjs/hiddenProperty/fixupHiddenProperties.js.map +1 -1
- package/lib-mjs/hyperlink/HyperlinkPlugin.d.ts +48 -48
- package/lib-mjs/hyperlink/HyperlinkPlugin.js +140 -140
- package/lib-mjs/hyperlink/HyperlinkPlugin.js.map +1 -1
- package/lib-mjs/hyperlink/HyperlinkToolTip.d.ts +7 -7
- package/lib-mjs/hyperlink/HyperlinkToolTip.js +1 -1
- package/lib-mjs/hyperlink/HyperlinkToolTip.js.map +1 -1
- package/lib-mjs/imageEdit/Cropper/createImageCropper.d.ts +10 -10
- package/lib-mjs/imageEdit/Cropper/createImageCropper.js +74 -74
- package/lib-mjs/imageEdit/Cropper/createImageCropper.js.map +1 -1
- package/lib-mjs/imageEdit/Cropper/cropperContext.d.ts +8 -8
- package/lib-mjs/imageEdit/Cropper/cropperContext.js +69 -69
- package/lib-mjs/imageEdit/Cropper/cropperContext.js.map +1 -1
- package/lib-mjs/imageEdit/ImageEditPlugin.d.ts +86 -86
- package/lib-mjs/imageEdit/ImageEditPlugin.js +581 -582
- package/lib-mjs/imageEdit/ImageEditPlugin.js.map +1 -1
- package/lib-mjs/imageEdit/Resizer/createImageResizer.d.ts +12 -12
- package/lib-mjs/imageEdit/Resizer/createImageResizer.js +84 -84
- package/lib-mjs/imageEdit/Resizer/createImageResizer.js.map +1 -1
- package/lib-mjs/imageEdit/Resizer/resizerContext.d.ts +8 -8
- package/lib-mjs/imageEdit/Resizer/resizerContext.js +57 -57
- package/lib-mjs/imageEdit/Resizer/resizerContext.js.map +1 -1
- package/lib-mjs/imageEdit/Resizer/updateSideHandlesVisibility.d.ts +4 -4
- package/lib-mjs/imageEdit/Resizer/updateSideHandlesVisibility.js +12 -12
- package/lib-mjs/imageEdit/Resizer/updateSideHandlesVisibility.js.map +1 -1
- package/lib-mjs/imageEdit/Rotator/createImageRotator.d.ts +6 -6
- package/lib-mjs/imageEdit/Rotator/createImageRotator.js +71 -71
- package/lib-mjs/imageEdit/Rotator/createImageRotator.js.map +1 -1
- package/lib-mjs/imageEdit/Rotator/rotatorContext.d.ts +8 -8
- package/lib-mjs/imageEdit/Rotator/rotatorContext.js +32 -32
- package/lib-mjs/imageEdit/Rotator/rotatorContext.js.map +1 -1
- package/lib-mjs/imageEdit/Rotator/updateRotateHandle.d.ts +7 -7
- package/lib-mjs/imageEdit/Rotator/updateRotateHandle.js +51 -51
- package/lib-mjs/imageEdit/Rotator/updateRotateHandle.js.map +1 -1
- package/lib-mjs/imageEdit/constants/constants.d.ts +77 -77
- package/lib-mjs/imageEdit/constants/constants.js +81 -81
- package/lib-mjs/imageEdit/constants/constants.js.map +1 -1
- package/lib-mjs/imageEdit/types/DragAndDropContext.d.ts +39 -39
- package/lib-mjs/imageEdit/types/DragAndDropContext.js +1 -1
- package/lib-mjs/imageEdit/types/DragAndDropContext.js.map +1 -1
- package/lib-mjs/imageEdit/types/GeneratedImageSize.d.ts +33 -33
- package/lib-mjs/imageEdit/types/GeneratedImageSize.js +1 -1
- package/lib-mjs/imageEdit/types/GeneratedImageSize.js.map +1 -1
- package/lib-mjs/imageEdit/types/ImageAndParagraph.d.ts +8 -8
- package/lib-mjs/imageEdit/types/ImageAndParagraph.js +1 -1
- package/lib-mjs/imageEdit/types/ImageAndParagraph.js.map +1 -1
- package/lib-mjs/imageEdit/types/ImageEditElementClass.d.ts +30 -30
- package/lib-mjs/imageEdit/types/ImageEditElementClass.js +31 -31
- package/lib-mjs/imageEdit/types/ImageEditElementClass.js.map +1 -1
- package/lib-mjs/imageEdit/types/ImageEditOptions.d.ts +55 -55
- package/lib-mjs/imageEdit/types/ImageEditOptions.js +1 -1
- package/lib-mjs/imageEdit/types/ImageEditOptions.js.map +1 -1
- package/lib-mjs/imageEdit/types/ImageHtmlOptions.d.ts +22 -22
- package/lib-mjs/imageEdit/types/ImageHtmlOptions.js +1 -1
- package/lib-mjs/imageEdit/types/ImageHtmlOptions.js.map +1 -1
- package/lib-mjs/imageEdit/utils/applyChange.d.ts +13 -13
- package/lib-mjs/imageEdit/utils/applyChange.js +68 -68
- package/lib-mjs/imageEdit/utils/applyChange.js.map +1 -1
- package/lib-mjs/imageEdit/utils/canRegenerateImage.d.ts +8 -8
- package/lib-mjs/imageEdit/utils/canRegenerateImage.js +27 -27
- package/lib-mjs/imageEdit/utils/canRegenerateImage.js.map +1 -1
- package/lib-mjs/imageEdit/utils/checkEditInfoState.d.ts +41 -41
- package/lib-mjs/imageEdit/utils/checkEditInfoState.js +48 -48
- package/lib-mjs/imageEdit/utils/checkEditInfoState.js.map +1 -1
- package/lib-mjs/imageEdit/utils/createImageWrapper.d.ts +18 -18
- package/lib-mjs/imageEdit/utils/createImageWrapper.js +87 -87
- package/lib-mjs/imageEdit/utils/createImageWrapper.js.map +1 -1
- package/lib-mjs/imageEdit/utils/doubleCheckResize.d.ts +12 -12
- package/lib-mjs/imageEdit/utils/doubleCheckResize.js +31 -31
- package/lib-mjs/imageEdit/utils/doubleCheckResize.js.map +1 -1
- package/lib-mjs/imageEdit/utils/filterInnerResizerHandles.d.ts +4 -4
- package/lib-mjs/imageEdit/utils/filterInnerResizerHandles.js +15 -15
- package/lib-mjs/imageEdit/utils/filterInnerResizerHandles.js.map +1 -1
- package/lib-mjs/imageEdit/utils/findEditingImage.d.ts +10 -10
- package/lib-mjs/imageEdit/utils/findEditingImage.js +35 -35
- package/lib-mjs/imageEdit/utils/findEditingImage.js.map +1 -1
- package/lib-mjs/imageEdit/utils/generateDataURL.d.ts +13 -13
- package/lib-mjs/imageEdit/utils/generateDataURL.js +52 -45
- package/lib-mjs/imageEdit/utils/generateDataURL.js.map +1 -1
- package/lib-mjs/imageEdit/utils/generateImageSize.d.ts +15 -15
- package/lib-mjs/imageEdit/utils/generateImageSize.js +41 -41
- package/lib-mjs/imageEdit/utils/generateImageSize.js.map +1 -1
- package/lib-mjs/imageEdit/utils/getDropAndDragHelpers.d.ts +10 -10
- package/lib-mjs/imageEdit/utils/getDropAndDragHelpers.js +19 -19
- package/lib-mjs/imageEdit/utils/getDropAndDragHelpers.js.map +1 -1
- package/lib-mjs/imageEdit/utils/getHTMLImageOptions.d.ts +7 -7
- package/lib-mjs/imageEdit/utils/getHTMLImageOptions.js +18 -18
- package/lib-mjs/imageEdit/utils/getHTMLImageOptions.js.map +1 -1
- package/lib-mjs/imageEdit/utils/getSelectedImage.d.ts +6 -6
- package/lib-mjs/imageEdit/utils/getSelectedImage.js +16 -16
- package/lib-mjs/imageEdit/utils/getSelectedImage.js.map +1 -1
- package/lib-mjs/imageEdit/utils/imageEditUtils.d.ts +47 -47
- package/lib-mjs/imageEdit/utils/imageEditUtils.js +104 -104
- package/lib-mjs/imageEdit/utils/imageEditUtils.js.map +1 -1
- package/lib-mjs/imageEdit/utils/normalizeImageSelection.d.ts +9 -9
- package/lib-mjs/imageEdit/utils/normalizeImageSelection.js +27 -27
- package/lib-mjs/imageEdit/utils/normalizeImageSelection.js.map +1 -1
- package/lib-mjs/imageEdit/utils/updateHandleCursor.d.ts +7 -7
- package/lib-mjs/imageEdit/utils/updateHandleCursor.js +29 -29
- package/lib-mjs/imageEdit/utils/updateHandleCursor.js.map +1 -1
- package/lib-mjs/imageEdit/utils/updateImageEditInfo.d.ts +10 -10
- package/lib-mjs/imageEdit/utils/updateImageEditInfo.js +47 -47
- package/lib-mjs/imageEdit/utils/updateImageEditInfo.js.map +1 -1
- package/lib-mjs/imageEdit/utils/updateWrapper.d.ts +6 -6
- package/lib-mjs/imageEdit/utils/updateWrapper.js +82 -82
- package/lib-mjs/imageEdit/utils/updateWrapper.js.map +1 -1
- package/lib-mjs/index.d.ts +38 -38
- package/lib-mjs/index.js +23 -23
- package/lib-mjs/index.js.map +1 -1
- package/lib-mjs/markdown/MarkdownPlugin.d.ts +64 -64
- package/lib-mjs/markdown/MarkdownPlugin.js +192 -192
- package/lib-mjs/markdown/MarkdownPlugin.js.map +1 -1
- package/lib-mjs/markdown/utils/setFormat.d.ts +5 -5
- package/lib-mjs/markdown/utils/setFormat.js +42 -42
- package/lib-mjs/markdown/utils/setFormat.js.map +1 -1
- package/lib-mjs/paste/DefaultSanitizers.d.ts +10 -10
- package/lib-mjs/paste/DefaultSanitizers.js +20 -20
- package/lib-mjs/paste/DefaultSanitizers.js.map +1 -1
- package/lib-mjs/paste/Excel/processPastedContentFromExcel.d.ts +30 -30
- package/lib-mjs/paste/Excel/processPastedContentFromExcel.js +132 -132
- package/lib-mjs/paste/Excel/processPastedContentFromExcel.js.map +1 -1
- package/lib-mjs/paste/PastePlugin.d.ts +44 -44
- package/lib-mjs/paste/PastePlugin.js +143 -135
- package/lib-mjs/paste/PastePlugin.js.map +1 -1
- package/lib-mjs/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +7 -7
- package/lib-mjs/paste/PowerPoint/processPastedContentFromPowerPoint.js +142 -142
- package/lib-mjs/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
- package/lib-mjs/paste/WacComponents/constants.d.ts +52 -52
- package/lib-mjs/paste/WacComponents/constants.js +63 -63
- package/lib-mjs/paste/WacComponents/constants.js.map +1 -1
- package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.d.ts +9 -9
- package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.js +186 -186
- package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
- package/lib-mjs/paste/WordDesktop/WordMetadata.d.ts +9 -9
- package/lib-mjs/paste/WordDesktop/WordMetadata.js +1 -1
- package/lib-mjs/paste/WordDesktop/WordMetadata.js.map +1 -1
- package/lib-mjs/paste/WordDesktop/getStyleMetadata.d.ts +22 -23
- package/lib-mjs/paste/WordDesktop/getStyleMetadata.js +106 -103
- package/lib-mjs/paste/WordDesktop/getStyleMetadata.js.map +1 -1
- package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +8 -7
- package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.js +37 -34
- package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
- package/lib-mjs/paste/WordDesktop/processWordComments.d.ts +7 -7
- package/lib-mjs/paste/WordDesktop/processWordComments.js +17 -17
- package/lib-mjs/paste/WordDesktop/processWordComments.js.map +1 -1
- package/lib-mjs/paste/WordDesktop/processWordLists.d.ts +11 -11
- package/lib-mjs/paste/WordDesktop/processWordLists.js +200 -200
- package/lib-mjs/paste/WordDesktop/processWordLists.js.map +1 -1
- package/lib-mjs/paste/oneNote/processPastedContentFromOneNote.d.ts +50 -50
- package/lib-mjs/paste/oneNote/processPastedContentFromOneNote.js +106 -106
- package/lib-mjs/paste/oneNote/processPastedContentFromOneNote.js.map +1 -1
- package/lib-mjs/paste/parsers/adjustPercentileLineHeightParser.d.ts +8 -8
- package/lib-mjs/paste/parsers/adjustPercentileLineHeightParser.js +21 -21
- package/lib-mjs/paste/parsers/adjustPercentileLineHeightParser.js.map +1 -1
- package/lib-mjs/paste/parsers/blockElementParser.d.ts +7 -7
- package/lib-mjs/paste/parsers/blockElementParser.js +10 -10
- package/lib-mjs/paste/parsers/blockElementParser.js.map +1 -1
- package/lib-mjs/paste/parsers/deprecatedColorParser.d.ts +5 -5
- package/lib-mjs/paste/parsers/deprecatedColorParser.js +15 -15
- package/lib-mjs/paste/parsers/deprecatedColorParser.js.map +1 -1
- package/lib-mjs/paste/parsers/imageSizeParser.d.ts +6 -6
- package/lib-mjs/paste/parsers/imageSizeParser.js +19 -19
- package/lib-mjs/paste/parsers/imageSizeParser.js.map +1 -1
- package/lib-mjs/paste/parsers/linkParser.d.ts +5 -5
- package/lib-mjs/paste/parsers/linkParser.js +23 -23
- package/lib-mjs/paste/parsers/linkParser.js.map +1 -1
- package/lib-mjs/paste/parsers/listLevelParser.d.ts +10 -10
- package/lib-mjs/paste/parsers/listLevelParser.js +14 -14
- package/lib-mjs/paste/parsers/listLevelParser.js.map +1 -1
- package/lib-mjs/paste/parsers/removeNegativeTextIndentParser.d.ts +5 -5
- package/lib-mjs/paste/parsers/removeNegativeTextIndentParser.js +9 -9
- package/lib-mjs/paste/parsers/removeNegativeTextIndentParser.js.map +1 -1
- package/lib-mjs/paste/parsers/tableBorderParser.d.ts +5 -5
- package/lib-mjs/paste/parsers/tableBorderParser.js +23 -23
- package/lib-mjs/paste/parsers/tableBorderParser.js.map +1 -1
- package/lib-mjs/paste/parsers/wordContainerParser.d.ts +8 -0
- package/lib-mjs/paste/parsers/wordContainerParser.js +13 -0
- package/lib-mjs/paste/parsers/wordContainerParser.js.map +1 -0
- package/lib-mjs/paste/parsers/wordTableParser.d.ts +8 -8
- package/lib-mjs/paste/parsers/wordTableParser.js +15 -15
- package/lib-mjs/paste/parsers/wordTableParser.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/constants.d.ts +17 -17
- package/lib-mjs/paste/pasteSourceValidations/constants.js +17 -17
- package/lib-mjs/paste/pasteSourceValidations/constants.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/documentContainWacElements.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/documentContainWacElements.js +11 -11
- package/lib-mjs/paste/pasteSourceValidations/documentContainWacElements.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/getDocumentSource.d.ts +52 -0
- package/lib-mjs/paste/pasteSourceValidations/{getPasteSource.js → getDocumentSource.js} +37 -45
- package/lib-mjs/paste/pasteSourceValidations/getDocumentSource.js.map +1 -0
- package/lib-mjs/paste/pasteSourceValidations/isExcelDesktopDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isExcelDesktopDocument.js +13 -13
- package/lib-mjs/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isExcelNonNativeEvent.d.ts +7 -7
- package/lib-mjs/paste/pasteSourceValidations/isExcelNonNativeEvent.js +13 -13
- package/lib-mjs/paste/pasteSourceValidations/isExcelNonNativeEvent.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isExcelOnlineDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isExcelOnlineDocument.js +15 -15
- package/lib-mjs/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isGoogleSheetDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isGoogleSheetDocument.js +11 -11
- package/lib-mjs/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isOneNoteDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isOneNoteDocument.js +13 -13
- package/lib-mjs/paste/pasteSourceValidations/isOneNoteDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isPowerPointDesktopDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +11 -11
- package/lib-mjs/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/isWordDesktopDocument.d.ts +8 -8
- package/lib-mjs/paste/pasteSourceValidations/isWordDesktopDocument.js +20 -20
- package/lib-mjs/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
- package/lib-mjs/paste/pasteSourceValidations/shouldConvertToSingleImage.d.ts +9 -9
- package/lib-mjs/paste/pasteSourceValidations/shouldConvertToSingleImage.js +13 -14
- package/lib-mjs/paste/pasteSourceValidations/shouldConvertToSingleImage.js.map +1 -1
- package/lib-mjs/paste/processors/pasteButtonProcessor.d.ts +7 -7
- package/lib-mjs/paste/processors/pasteButtonProcessor.js +31 -31
- package/lib-mjs/paste/processors/pasteButtonProcessor.js.map +1 -1
- package/lib-mjs/paste/utils/addParser.d.ts +5 -5
- package/lib-mjs/paste/utils/addParser.js +13 -13
- package/lib-mjs/paste/utils/addParser.js.map +1 -1
- package/lib-mjs/paste/utils/chainSanitizerCallback.d.ts +9 -9
- package/lib-mjs/paste/utils/chainSanitizerCallback.js +31 -31
- package/lib-mjs/paste/utils/chainSanitizerCallback.js.map +1 -1
- package/lib-mjs/paste/utils/customListUtils.d.ts +9 -9
- package/lib-mjs/paste/utils/customListUtils.js +62 -62
- package/lib-mjs/paste/utils/customListUtils.js.map +1 -1
- package/lib-mjs/paste/utils/getStyles.d.ts +6 -6
- package/lib-mjs/paste/utils/getStyles.js +18 -18
- package/lib-mjs/paste/utils/getStyles.js.map +1 -1
- package/lib-mjs/paste/utils/setProcessor.d.ts +5 -5
- package/lib-mjs/paste/utils/setProcessor.js +9 -9
- package/lib-mjs/paste/utils/setProcessor.js.map +1 -1
- package/lib-mjs/picker/PickerHandler.d.ts +112 -112
- package/lib-mjs/picker/PickerHandler.js +1 -1
- package/lib-mjs/picker/PickerHandler.js.map +1 -1
- package/lib-mjs/picker/PickerHelper.d.ts +22 -22
- package/lib-mjs/picker/PickerHelper.js +1 -1
- package/lib-mjs/picker/PickerHelper.js.map +1 -1
- package/lib-mjs/picker/PickerHelperImpl.d.ts +25 -25
- package/lib-mjs/picker/PickerHelperImpl.js +50 -50
- package/lib-mjs/picker/PickerHelperImpl.js.map +1 -1
- package/lib-mjs/picker/PickerPlugin.d.ts +54 -54
- package/lib-mjs/picker/PickerPlugin.js +213 -213
- package/lib-mjs/picker/PickerPlugin.js.map +1 -1
- package/lib-mjs/picker/getQueryString.d.ts +5 -5
- package/lib-mjs/picker/getQueryString.js +31 -31
- package/lib-mjs/picker/getQueryString.js.map +1 -1
- package/lib-mjs/pluginUtils/CreateElement/CreateElementData.d.ts +35 -35
- package/lib-mjs/pluginUtils/CreateElement/CreateElementData.js +1 -1
- package/lib-mjs/pluginUtils/CreateElement/CreateElementData.js.map +1 -1
- package/lib-mjs/pluginUtils/CreateElement/createElement.d.ts +9 -9
- package/lib-mjs/pluginUtils/CreateElement/createElement.js +47 -47
- package/lib-mjs/pluginUtils/CreateElement/createElement.js.map +1 -1
- package/lib-mjs/pluginUtils/Disposable.d.ts +10 -10
- package/lib-mjs/pluginUtils/Disposable.js +1 -1
- package/lib-mjs/pluginUtils/Disposable.js.map +1 -1
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHandler.d.ts +45 -45
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHandler.js +1 -1
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHandler.js.map +1 -1
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHelper.d.ts +39 -39
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHelper.js +117 -117
- package/lib-mjs/pluginUtils/DragAndDrop/DragAndDropHelper.js.map +1 -1
- package/lib-mjs/pluginUtils/Rect/getIntersectedRect.d.ts +27 -27
- package/lib-mjs/pluginUtils/Rect/getIntersectedRect.js +41 -41
- package/lib-mjs/pluginUtils/Rect/getIntersectedRect.js.map +1 -1
- package/lib-mjs/shortcut/ShortcutCommand.d.ts +44 -44
- package/lib-mjs/shortcut/ShortcutCommand.js +1 -1
- package/lib-mjs/shortcut/ShortcutCommand.js.map +1 -1
- package/lib-mjs/shortcut/ShortcutPlugin.d.ts +51 -51
- package/lib-mjs/shortcut/ShortcutPlugin.js +122 -122
- package/lib-mjs/shortcut/ShortcutPlugin.js.map +1 -1
- package/lib-mjs/shortcut/shortcuts.d.ts +92 -92
- package/lib-mjs/shortcut/shortcuts.js +235 -235
- package/lib-mjs/shortcut/shortcuts.js.map +1 -1
- package/lib-mjs/shortcut/utils/setShortcutIndentationCommand.d.ts +5 -5
- package/lib-mjs/shortcut/utils/setShortcutIndentationCommand.js +17 -17
- package/lib-mjs/shortcut/utils/setShortcutIndentationCommand.js.map +1 -1
- package/lib-mjs/tableEdit/OnTableEditorCreatedCallback.d.ts +5 -5
- package/lib-mjs/tableEdit/OnTableEditorCreatedCallback.js +1 -1
- package/lib-mjs/tableEdit/OnTableEditorCreatedCallback.js.map +1 -1
- package/lib-mjs/tableEdit/TableEditPlugin.d.ts +56 -56
- package/lib-mjs/tableEdit/TableEditPlugin.js +168 -168
- package/lib-mjs/tableEdit/TableEditPlugin.js.map +1 -1
- package/lib-mjs/tableEdit/TableWithRoot.d.ts +15 -15
- package/lib-mjs/tableEdit/TableWithRoot.js +1 -1
- package/lib-mjs/tableEdit/TableWithRoot.js.map +1 -1
- package/lib-mjs/tableEdit/editors/TableEditor.d.ts +90 -86
- package/lib-mjs/tableEdit/editors/TableEditor.js +375 -338
- package/lib-mjs/tableEdit/editors/TableEditor.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/CellResizer.d.ts +55 -54
- package/lib-mjs/tableEdit/editors/features/CellResizer.js +239 -203
- package/lib-mjs/tableEdit/editors/features/CellResizer.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableEditFeature.d.ts +13 -13
- package/lib-mjs/tableEdit/editors/features/TableEditFeature.js +12 -12
- package/lib-mjs/tableEdit/editors/features/TableEditFeature.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableEditFeatureName.d.ts +4 -4
- package/lib-mjs/tableEdit/editors/features/TableEditFeatureName.js +1 -1
- package/lib-mjs/tableEdit/editors/features/TableEditFeatureName.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableInserter.d.ts +33 -33
- package/lib-mjs/tableEdit/editors/features/TableInserter.js +121 -121
- package/lib-mjs/tableEdit/editors/features/TableInserter.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableMover.d.ts +53 -53
- package/lib-mjs/tableEdit/editors/features/TableMover.js +227 -227
- package/lib-mjs/tableEdit/editors/features/TableMover.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableResizer.d.ts +50 -50
- package/lib-mjs/tableEdit/editors/features/TableResizer.js +183 -183
- package/lib-mjs/tableEdit/editors/features/TableResizer.js.map +1 -1
- package/lib-mjs/tableEdit/editors/features/TableRowColumnSelector.d.ts +42 -0
- package/lib-mjs/tableEdit/editors/features/TableRowColumnSelector.js +216 -0
- package/lib-mjs/tableEdit/editors/features/TableRowColumnSelector.js.map +1 -0
- package/lib-mjs/tableEdit/editors/utils/getTableFromContentModel.d.ts +6 -6
- package/lib-mjs/tableEdit/editors/utils/getTableFromContentModel.js +16 -15
- package/lib-mjs/tableEdit/editors/utils/getTableFromContentModel.js.map +1 -1
- package/lib-mjs/touch/TouchPlugin.d.ts +32 -32
- package/lib-mjs/touch/TouchPlugin.js +208 -206
- package/lib-mjs/touch/TouchPlugin.js.map +1 -1
- package/lib-mjs/utils/getNodePositionFromEvent.d.ts +5 -5
- package/lib-mjs/utils/getNodePositionFromEvent.js +29 -29
- package/lib-mjs/utils/getNodePositionFromEvent.js.map +1 -1
- package/lib-mjs/watermark/WatermarkFormat.d.ts +5 -5
- package/lib-mjs/watermark/WatermarkFormat.js +1 -1
- package/lib-mjs/watermark/WatermarkFormat.js.map +1 -1
- package/lib-mjs/watermark/WatermarkPlugin.d.ts +42 -42
- package/lib-mjs/watermark/WatermarkPlugin.js +134 -134
- package/lib-mjs/watermark/WatermarkPlugin.js.map +1 -1
- package/lib-mjs/watermark/isModelEmptyFast.d.ts +5 -5
- package/lib-mjs/watermark/isModelEmptyFast.js +33 -33
- package/lib-mjs/watermark/isModelEmptyFast.js.map +1 -1
- package/package.json +5 -5
- package/lib/paste/pasteSourceValidations/getPasteSource.d.ts +0 -28
- package/lib/paste/pasteSourceValidations/getPasteSource.js.map +0 -1
- package/lib-amd/paste/pasteSourceValidations/getPasteSource.d.ts +0 -28
- package/lib-amd/paste/pasteSourceValidations/getPasteSource.js.map +0 -1
- package/lib-mjs/paste/pasteSourceValidations/getPasteSource.d.ts +0 -28
- package/lib-mjs/paste/pasteSourceValidations/getPasteSource.js.map +0 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./preserveParagraphFormat", "roosterjs-content-model-dom"], function (require, exports, tslib_1, preserveParagraphFormat_1, roosterjs_content_model_dom_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.splitParagraph = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
* Split the given paragraph from insert point into two paragraphs,
|
|
8
|
-
* and move the selection marker to the beginning of the second paragraph
|
|
9
|
-
* @param insertPoint The input insert point which includes the paragraph and selection marker
|
|
10
|
-
* @param removeImplicitParagraph Whether to remove the implicit paragraph if it becomes empty after split
|
|
11
|
-
* * If set to false, the implicit paragraph will be preserved even if it becomes empty
|
|
12
|
-
* * If set to true, the implicit paragraph will be removed if it becomes empty
|
|
13
|
-
* @returns The new paragraph it created
|
|
14
|
-
*/
|
|
15
|
-
function splitParagraph(insertPoint, removeImplicitParagraph, formatsToPreserveOnMerge) {
|
|
16
|
-
var _a;
|
|
17
|
-
if (removeImplicitParagraph === void 0) { removeImplicitParagraph = true; }
|
|
18
|
-
if (formatsToPreserveOnMerge === void 0) { formatsToPreserveOnMerge = []; }
|
|
19
|
-
var paragraph = insertPoint.paragraph, marker = insertPoint.marker;
|
|
20
|
-
var newParagraph = (0, roosterjs_content_model_dom_1.createParagraph)(false /*isImplicit*/, {}, paragraph.segmentFormat);
|
|
21
|
-
(0, roosterjs_content_model_dom_1.copyFormat)(newParagraph.format, paragraph.format, roosterjs_content_model_dom_1.ParagraphFormats);
|
|
22
|
-
(0, preserveParagraphFormat_1.preserveParagraphFormat)(formatsToPreserveOnMerge, paragraph, newParagraph);
|
|
23
|
-
var markerIndex = paragraph.segments.indexOf(marker);
|
|
24
|
-
var segments = paragraph.segments.splice(markerIndex, paragraph.segments.length - markerIndex);
|
|
25
|
-
(_a = newParagraph.segments).push.apply(_a, (0, tslib_1.__spreadArray)([], (0, tslib_1.__read)(segments), false));
|
|
26
|
-
var isEmptyParagraph = paragraph.segments.length == 0;
|
|
27
|
-
var shouldPreserveImplicitParagraph = !paragraph.isImplicit || !removeImplicitParagraph;
|
|
28
|
-
if (isEmptyParagraph && shouldPreserveImplicitParagraph) {
|
|
29
|
-
paragraph.segments.push((0, roosterjs_content_model_dom_1.createBr)(marker.format));
|
|
30
|
-
}
|
|
31
|
-
else if (!isEmptyParagraph) {
|
|
32
|
-
(0, roosterjs_content_model_dom_1.setParagraphNotImplicit)(paragraph);
|
|
33
|
-
}
|
|
34
|
-
insertPoint.paragraph = newParagraph;
|
|
35
|
-
(0, roosterjs_content_model_dom_1.normalizeParagraph)(paragraph);
|
|
36
|
-
return newParagraph;
|
|
37
|
-
}
|
|
38
|
-
exports.splitParagraph = splitParagraph;
|
|
39
|
-
});
|
|
1
|
+
define(["require", "exports", "tslib", "./preserveParagraphFormat", "roosterjs-content-model-dom"], function (require, exports, tslib_1, preserveParagraphFormat_1, roosterjs_content_model_dom_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.splitParagraph = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
* Split the given paragraph from insert point into two paragraphs,
|
|
8
|
+
* and move the selection marker to the beginning of the second paragraph
|
|
9
|
+
* @param insertPoint The input insert point which includes the paragraph and selection marker
|
|
10
|
+
* @param removeImplicitParagraph Whether to remove the implicit paragraph if it becomes empty after split
|
|
11
|
+
* * If set to false, the implicit paragraph will be preserved even if it becomes empty
|
|
12
|
+
* * If set to true, the implicit paragraph will be removed if it becomes empty
|
|
13
|
+
* @returns The new paragraph it created
|
|
14
|
+
*/
|
|
15
|
+
function splitParagraph(insertPoint, removeImplicitParagraph, formatsToPreserveOnMerge) {
|
|
16
|
+
var _a;
|
|
17
|
+
if (removeImplicitParagraph === void 0) { removeImplicitParagraph = true; }
|
|
18
|
+
if (formatsToPreserveOnMerge === void 0) { formatsToPreserveOnMerge = []; }
|
|
19
|
+
var paragraph = insertPoint.paragraph, marker = insertPoint.marker;
|
|
20
|
+
var newParagraph = (0, roosterjs_content_model_dom_1.createParagraph)(false /*isImplicit*/, {}, paragraph.segmentFormat);
|
|
21
|
+
(0, roosterjs_content_model_dom_1.copyFormat)(newParagraph.format, paragraph.format, roosterjs_content_model_dom_1.ParagraphFormats);
|
|
22
|
+
(0, preserveParagraphFormat_1.preserveParagraphFormat)(formatsToPreserveOnMerge, paragraph, newParagraph);
|
|
23
|
+
var markerIndex = paragraph.segments.indexOf(marker);
|
|
24
|
+
var segments = paragraph.segments.splice(markerIndex, paragraph.segments.length - markerIndex);
|
|
25
|
+
(_a = newParagraph.segments).push.apply(_a, (0, tslib_1.__spreadArray)([], (0, tslib_1.__read)(segments), false));
|
|
26
|
+
var isEmptyParagraph = paragraph.segments.length == 0;
|
|
27
|
+
var shouldPreserveImplicitParagraph = !paragraph.isImplicit || !removeImplicitParagraph;
|
|
28
|
+
if (isEmptyParagraph && shouldPreserveImplicitParagraph) {
|
|
29
|
+
paragraph.segments.push((0, roosterjs_content_model_dom_1.createBr)(marker.format));
|
|
30
|
+
}
|
|
31
|
+
else if (!isEmptyParagraph) {
|
|
32
|
+
(0, roosterjs_content_model_dom_1.setParagraphNotImplicit)(paragraph);
|
|
33
|
+
}
|
|
34
|
+
insertPoint.paragraph = newParagraph;
|
|
35
|
+
(0, roosterjs_content_model_dom_1.normalizeParagraph)(paragraph);
|
|
36
|
+
return newParagraph;
|
|
37
|
+
}
|
|
38
|
+
exports.splitParagraph = splitParagraph;
|
|
39
|
+
});
|
|
40
40
|
//# sourceMappingURL=splitParagraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitParagraph.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-plugins/lib/edit/utils/splitParagraph.ts"],"names":[],"mappings":";;;;IAcA;;;;;;;;;OASG;IACH,SAAgB,cAAc,CAC1B,WAAwB,EACxB,uBAAuC,EACvC,wBAAuC;;QADvC,wCAAA,EAAA,8BAAuC;QACvC,yCAAA,EAAA,6BAAuC;QAE/B,IAAA,SAAS,GAAa,WAAW,UAAxB,EAAE,MAAM,GAAK,WAAW,OAAhB,CAAiB;QAC1C,IAAM,YAAY,GAAwC,IAAA,6CAAe,EACrE,KAAK,CAAC,cAAc,EACpB,EAAE,EACF,SAAS,CAAC,aAAa,CAC1B,CAAC;QAEF,IAAA,wCAAU,EAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,8CAAgB,CAAC,CAAC;QACpE,IAAA,iDAAuB,EAAC,wBAAwB,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;QAE3E,IAAM,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvD,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,CACtC,WAAW,EACX,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,WAAW,CAC1C,CAAC;QAEF,CAAA,KAAA,YAAY,CAAC,QAAQ,CAAA,CAAC,IAAI,8DAAI,QAAQ,WAAE;QAExC,IAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC;QACxD,IAAM,+BAA+B,GAAG,CAAC,SAAS,CAAC,UAAU,IAAI,CAAC,uBAAuB,CAAC;QAE1F,IAAI,gBAAgB,IAAI,+BAA+B,EAAE;YACrD,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAA,sCAAQ,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;SACpD;aAAM,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAA,qDAAuB,EAAC,SAAS,CAAC,CAAC;SACtC;QAED,WAAW,CAAC,SAAS,GAAG,YAAY,CAAC;QAErC,IAAA,gDAAkB,EAAC,SAAS,CAAC,CAAC;QAE9B,OAAO,YAAY,CAAC;IACxB,CAAC;IArCD,wCAqCC","sourcesContent":["import { preserveParagraphFormat } from './preserveParagraphFormat';\nimport {\n copyFormat,\n createBr,\n createParagraph,\n normalizeParagraph,\n ParagraphFormats,\n setParagraphNotImplicit,\n} from 'roosterjs-content-model-dom';\nimport type {\n InsertPoint,\n ShallowMutableContentModelParagraph,\n} from 'roosterjs-content-model-types';\n\n/**\n * @internal\n * Split the given paragraph from insert point into two paragraphs,\n * and move the selection marker to the beginning of the second paragraph\n * @param insertPoint The input insert point which includes the paragraph and selection marker\n * @param removeImplicitParagraph Whether to remove the implicit paragraph if it becomes empty after split\n * * If set to false, the implicit paragraph will be preserved even if it becomes empty\n * * If set to true, the implicit paragraph will be removed if it becomes empty\n * @returns The new paragraph it created\n */\nexport function splitParagraph(\n insertPoint: InsertPoint,\n removeImplicitParagraph: boolean = true,\n formatsToPreserveOnMerge: string[] = []\n): ShallowMutableContentModelParagraph {\n const { paragraph, marker } = insertPoint;\n const newParagraph: ShallowMutableContentModelParagraph = createParagraph(\n false /*isImplicit*/,\n {},\n paragraph.segmentFormat\n );\n\n copyFormat(newParagraph.format, paragraph.format, ParagraphFormats);\n preserveParagraphFormat(formatsToPreserveOnMerge, paragraph, newParagraph);\n\n const markerIndex = paragraph.segments.indexOf(marker);\n const segments = paragraph.segments.splice(\n markerIndex,\n paragraph.segments.length - markerIndex\n );\n\n newParagraph.segments.push(...segments);\n\n const isEmptyParagraph = paragraph.segments.length == 0;\n const shouldPreserveImplicitParagraph = !paragraph.isImplicit || !removeImplicitParagraph;\n\n if (isEmptyParagraph && shouldPreserveImplicitParagraph) {\n paragraph.segments.push(createBr(marker.format));\n } else if (!isEmptyParagraph) {\n setParagraphNotImplicit(paragraph);\n }\n\n insertPoint.paragraph = newParagraph;\n\n normalizeParagraph(paragraph);\n\n return newParagraph;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"splitParagraph.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-plugins/lib/edit/utils/splitParagraph.ts"],"names":[],"mappings":";;;;IAcA;;;;;;;;;OASG;IACH,SAAgB,cAAc,CAC1B,WAAwB,EACxB,uBAAuC,EACvC,wBAAuC;;QADvC,wCAAA,EAAA,8BAAuC;QACvC,yCAAA,EAAA,6BAAuC;QAE/B,IAAA,SAAS,GAAa,WAAW,UAAxB,EAAE,MAAM,GAAK,WAAW,OAAhB,CAAiB;QAC1C,IAAM,YAAY,GAAwC,IAAA,6CAAe,EACrE,KAAK,CAAC,cAAc,EACpB,EAAE,EACF,SAAS,CAAC,aAAa,CAC1B,CAAC;QAEF,IAAA,wCAAU,EAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,8CAAgB,CAAC,CAAC;QACpE,IAAA,iDAAuB,EAAC,wBAAwB,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;QAE3E,IAAM,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvD,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,CACtC,WAAW,EACX,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,WAAW,CAC1C,CAAC;QAEF,CAAA,KAAA,YAAY,CAAC,QAAQ,CAAA,CAAC,IAAI,8DAAI,QAAQ,WAAE;QAExC,IAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC;QACxD,IAAM,+BAA+B,GAAG,CAAC,SAAS,CAAC,UAAU,IAAI,CAAC,uBAAuB,CAAC;QAE1F,IAAI,gBAAgB,IAAI,+BAA+B,EAAE;YACrD,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAA,sCAAQ,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;SACpD;aAAM,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAA,qDAAuB,EAAC,SAAS,CAAC,CAAC;SACtC;QAED,WAAW,CAAC,SAAS,GAAG,YAAY,CAAC;QAErC,IAAA,gDAAkB,EAAC,SAAS,CAAC,CAAC;QAE9B,OAAO,YAAY,CAAC;IACxB,CAAC;IArCD,wCAqCC","sourcesContent":["import { preserveParagraphFormat } from './preserveParagraphFormat';\r\nimport {\r\n copyFormat,\r\n createBr,\r\n createParagraph,\r\n normalizeParagraph,\r\n ParagraphFormats,\r\n setParagraphNotImplicit,\r\n} from 'roosterjs-content-model-dom';\r\nimport type {\r\n InsertPoint,\r\n ShallowMutableContentModelParagraph,\r\n} from 'roosterjs-content-model-types';\r\n\r\n/**\r\n * @internal\r\n * Split the given paragraph from insert point into two paragraphs,\r\n * and move the selection marker to the beginning of the second paragraph\r\n * @param insertPoint The input insert point which includes the paragraph and selection marker\r\n * @param removeImplicitParagraph Whether to remove the implicit paragraph if it becomes empty after split\r\n * * If set to false, the implicit paragraph will be preserved even if it becomes empty\r\n * * If set to true, the implicit paragraph will be removed if it becomes empty\r\n * @returns The new paragraph it created\r\n */\r\nexport function splitParagraph(\r\n insertPoint: InsertPoint,\r\n removeImplicitParagraph: boolean = true,\r\n formatsToPreserveOnMerge: string[] = []\r\n): ShallowMutableContentModelParagraph {\r\n const { paragraph, marker } = insertPoint;\r\n const newParagraph: ShallowMutableContentModelParagraph = createParagraph(\r\n false /*isImplicit*/,\r\n {},\r\n paragraph.segmentFormat\r\n );\r\n\r\n copyFormat(newParagraph.format, paragraph.format, ParagraphFormats);\r\n preserveParagraphFormat(formatsToPreserveOnMerge, paragraph, newParagraph);\r\n\r\n const markerIndex = paragraph.segments.indexOf(marker);\r\n const segments = paragraph.segments.splice(\r\n markerIndex,\r\n paragraph.segments.length - markerIndex\r\n );\r\n\r\n newParagraph.segments.push(...segments);\r\n\r\n const isEmptyParagraph = paragraph.segments.length == 0;\r\n const shouldPreserveImplicitParagraph = !paragraph.isImplicit || !removeImplicitParagraph;\r\n\r\n if (isEmptyParagraph && shouldPreserveImplicitParagraph) {\r\n paragraph.segments.push(createBr(marker.format));\r\n } else if (!isEmptyParagraph) {\r\n setParagraphNotImplicit(paragraph);\r\n }\r\n\r\n insertPoint.paragraph = newParagraph;\r\n\r\n normalizeParagraph(paragraph);\r\n\r\n return newParagraph;\r\n}\r\n"]}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type { FindReplaceHighlightOptions } from './types/FindReplaceHighlightOptions';
|
|
2
|
-
import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';
|
|
3
|
-
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
4
|
-
/**
|
|
5
|
-
* Plugin for finding and replacing text in the editor, maintain the highlights for found and replaced text
|
|
6
|
-
*/
|
|
7
|
-
export declare class FindReplacePlugin implements EditorPlugin {
|
|
8
|
-
private context;
|
|
9
|
-
private editor;
|
|
10
|
-
private findHighlightStyle;
|
|
11
|
-
private replaceHighlightStyle;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a FindReplacePlugin instance
|
|
14
|
-
* @param context FindReplaceContext to use. It will be disposed when plugin is being disposed.
|
|
15
|
-
* @param options Options for highlighting styles
|
|
16
|
-
*/
|
|
17
|
-
constructor(context: FindReplaceContext, options?: FindReplaceHighlightOptions);
|
|
18
|
-
/**
|
|
19
|
-
* Get name of this plugin
|
|
20
|
-
*/
|
|
21
|
-
getName(): string;
|
|
22
|
-
/**
|
|
23
|
-
* The first method that editor will call to a plugin when editor is initializing.
|
|
24
|
-
* It will pass in the editor instance, plugin should take this chance to save the
|
|
25
|
-
* editor reference so that it can call to any editor method or format API later.
|
|
26
|
-
* @param editor The editor object
|
|
27
|
-
*/
|
|
28
|
-
initialize(editor: IEditor): void;
|
|
29
|
-
/**
|
|
30
|
-
* The last method that editor will call to a plugin before it is disposed.
|
|
31
|
-
* Plugin can take this chance to clear the reference to editor. After this method is
|
|
32
|
-
* called, plugin should not call to any editor method since it will result in error.
|
|
33
|
-
*/
|
|
34
|
-
dispose(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Core method for a plugin. Once an event happens in editor, editor will call this
|
|
37
|
-
* method of each plugin to handle the event as long as the event is not handled
|
|
38
|
-
* exclusively by another plugin.
|
|
39
|
-
* @param event The event to handle:
|
|
40
|
-
*/
|
|
41
|
-
onPluginEvent(event: PluginEvent): void;
|
|
42
|
-
}
|
|
1
|
+
import type { FindReplaceHighlightOptions } from './types/FindReplaceHighlightOptions';
|
|
2
|
+
import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';
|
|
3
|
+
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
4
|
+
/**
|
|
5
|
+
* Plugin for finding and replacing text in the editor, maintain the highlights for found and replaced text
|
|
6
|
+
*/
|
|
7
|
+
export declare class FindReplacePlugin implements EditorPlugin {
|
|
8
|
+
private context;
|
|
9
|
+
private editor;
|
|
10
|
+
private findHighlightStyle;
|
|
11
|
+
private replaceHighlightStyle;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a FindReplacePlugin instance
|
|
14
|
+
* @param context FindReplaceContext to use. It will be disposed when plugin is being disposed.
|
|
15
|
+
* @param options Options for highlighting styles
|
|
16
|
+
*/
|
|
17
|
+
constructor(context: FindReplaceContext, options?: FindReplaceHighlightOptions);
|
|
18
|
+
/**
|
|
19
|
+
* Get name of this plugin
|
|
20
|
+
*/
|
|
21
|
+
getName(): string;
|
|
22
|
+
/**
|
|
23
|
+
* The first method that editor will call to a plugin when editor is initializing.
|
|
24
|
+
* It will pass in the editor instance, plugin should take this chance to save the
|
|
25
|
+
* editor reference so that it can call to any editor method or format API later.
|
|
26
|
+
* @param editor The editor object
|
|
27
|
+
*/
|
|
28
|
+
initialize(editor: IEditor): void;
|
|
29
|
+
/**
|
|
30
|
+
* The last method that editor will call to a plugin before it is disposed.
|
|
31
|
+
* Plugin can take this chance to clear the reference to editor. After this method is
|
|
32
|
+
* called, plugin should not call to any editor method since it will result in error.
|
|
33
|
+
*/
|
|
34
|
+
dispose(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Core method for a plugin. Once an event happens in editor, editor will call this
|
|
37
|
+
* method of each plugin to handle the event as long as the event is not handled
|
|
38
|
+
* exclusively by another plugin.
|
|
39
|
+
* @param event The event to handle:
|
|
40
|
+
*/
|
|
41
|
+
onPluginEvent(event: PluginEvent): void;
|
|
42
|
+
}
|
|
@@ -1,96 +1,97 @@
|
|
|
1
|
-
define(["require", "exports", "roosterjs-content-model-dom", "./utils/updateHighlight", "./utils/constants"], function (require, exports, roosterjs_content_model_dom_1, updateHighlight_1, constants_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.FindReplacePlugin = void 0;
|
|
5
|
-
var DefaultFindHighlightStyle = 'background-color: yellow;';
|
|
6
|
-
var DefaultReplaceHighlightStyle = 'background-color: orange;';
|
|
7
|
-
/**
|
|
8
|
-
* Plugin for finding and replacing text in the editor, maintain the highlights for found and replaced text
|
|
9
|
-
*/
|
|
10
|
-
var FindReplacePlugin = /** @class */ (function () {
|
|
11
|
-
/**
|
|
12
|
-
* Creates a FindReplacePlugin instance
|
|
13
|
-
* @param context FindReplaceContext to use. It will be disposed when plugin is being disposed.
|
|
14
|
-
* @param options Options for highlighting styles
|
|
15
|
-
*/
|
|
16
|
-
function FindReplacePlugin(context, options) {
|
|
17
|
-
var _a, _b;
|
|
18
|
-
this.context = context;
|
|
19
|
-
this.editor = null;
|
|
20
|
-
this.findHighlightStyle = (_a = options === null || options === void 0 ? void 0 : options.findHighlightStyle) !== null && _a !== void 0 ? _a : DefaultFindHighlightStyle;
|
|
21
|
-
this.replaceHighlightStyle = (_b = options === null || options === void 0 ? void 0 : options.replaceHighlightStyle) !== null && _b !== void 0 ? _b : DefaultReplaceHighlightStyle;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Get name of this plugin
|
|
25
|
-
*/
|
|
26
|
-
FindReplacePlugin.prototype.getName = function () {
|
|
27
|
-
return 'FindReplace';
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* The first method that editor will call to a plugin when editor is initializing.
|
|
31
|
-
* It will pass in the editor instance, plugin should take this chance to save the
|
|
32
|
-
* editor reference so that it can call to any editor method or format API later.
|
|
33
|
-
* @param editor The editor object
|
|
34
|
-
*/
|
|
35
|
-
FindReplacePlugin.prototype.initialize = function (editor) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
this.context.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.editor.setEditorStyle(constants_1.
|
|
59
|
-
this.editor
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* method
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+
define(["require", "exports", "roosterjs-content-model-dom", "./utils/updateHighlight", "./utils/constants"], function (require, exports, roosterjs_content_model_dom_1, updateHighlight_1, constants_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FindReplacePlugin = void 0;
|
|
5
|
+
var DefaultFindHighlightStyle = 'background-color: yellow;';
|
|
6
|
+
var DefaultReplaceHighlightStyle = 'background-color: orange;';
|
|
7
|
+
/**
|
|
8
|
+
* Plugin for finding and replacing text in the editor, maintain the highlights for found and replaced text
|
|
9
|
+
*/
|
|
10
|
+
var FindReplacePlugin = /** @class */ (function () {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a FindReplacePlugin instance
|
|
13
|
+
* @param context FindReplaceContext to use. It will be disposed when plugin is being disposed.
|
|
14
|
+
* @param options Options for highlighting styles
|
|
15
|
+
*/
|
|
16
|
+
function FindReplacePlugin(context, options) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
this.context = context;
|
|
19
|
+
this.editor = null;
|
|
20
|
+
this.findHighlightStyle = (_a = options === null || options === void 0 ? void 0 : options.findHighlightStyle) !== null && _a !== void 0 ? _a : DefaultFindHighlightStyle;
|
|
21
|
+
this.replaceHighlightStyle = (_b = options === null || options === void 0 ? void 0 : options.replaceHighlightStyle) !== null && _b !== void 0 ? _b : DefaultReplaceHighlightStyle;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get name of this plugin
|
|
25
|
+
*/
|
|
26
|
+
FindReplacePlugin.prototype.getName = function () {
|
|
27
|
+
return 'FindReplace';
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The first method that editor will call to a plugin when editor is initializing.
|
|
31
|
+
* It will pass in the editor instance, plugin should take this chance to save the
|
|
32
|
+
* editor reference so that it can call to any editor method or format API later.
|
|
33
|
+
* @param editor The editor object
|
|
34
|
+
*/
|
|
35
|
+
FindReplacePlugin.prototype.initialize = function (editor) {
|
|
36
|
+
this.editor = editor;
|
|
37
|
+
var win = editor.getDocument().defaultView;
|
|
38
|
+
if (win) {
|
|
39
|
+
this.context.findHighlight.initialize(win);
|
|
40
|
+
this.context.replaceHighlight.initialize(win);
|
|
41
|
+
}
|
|
42
|
+
this.editor.setEditorStyle(constants_1.FindHighlightRuleKey, this.findHighlightStyle, [
|
|
43
|
+
constants_1.FindHighlightSelector,
|
|
44
|
+
]);
|
|
45
|
+
this.editor.setEditorStyle(constants_1.ReplaceHighlightRuleKey, this.replaceHighlightStyle, [
|
|
46
|
+
constants_1.ReplaceHighlightSelector,
|
|
47
|
+
]);
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The last method that editor will call to a plugin before it is disposed.
|
|
51
|
+
* Plugin can take this chance to clear the reference to editor. After this method is
|
|
52
|
+
* called, plugin should not call to any editor method since it will result in error.
|
|
53
|
+
*/
|
|
54
|
+
FindReplacePlugin.prototype.dispose = function () {
|
|
55
|
+
this.context.findHighlight.dispose();
|
|
56
|
+
this.context.replaceHighlight.dispose();
|
|
57
|
+
if (this.editor) {
|
|
58
|
+
this.editor.setEditorStyle(constants_1.FindHighlightRuleKey, null /*cssRule*/);
|
|
59
|
+
this.editor.setEditorStyle(constants_1.ReplaceHighlightRuleKey, null /*cssRule*/);
|
|
60
|
+
this.editor = null;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Core method for a plugin. Once an event happens in editor, editor will call this
|
|
65
|
+
* method of each plugin to handle the event as long as the event is not handled
|
|
66
|
+
* exclusively by another plugin.
|
|
67
|
+
* @param event The event to handle:
|
|
68
|
+
*/
|
|
69
|
+
FindReplacePlugin.prototype.onPluginEvent = function (event) {
|
|
70
|
+
if (!this.context.text || !this.editor) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
switch (event.eventType) {
|
|
74
|
+
case 'input':
|
|
75
|
+
var selection = this.editor.getDOMSelection();
|
|
76
|
+
if ((selection === null || selection === void 0 ? void 0 : selection.type) == 'range') {
|
|
77
|
+
var block = this.editor
|
|
78
|
+
.getDOMHelper()
|
|
79
|
+
.findClosestBlockElement(selection.range.startContainer);
|
|
80
|
+
(0, updateHighlight_1.updateHighlight)(this.editor, this.context, [block], [block]);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case 'contentChanged':
|
|
84
|
+
if (!event.contentModel && event.source != roosterjs_content_model_dom_1.ChangeSource.Replace) {
|
|
85
|
+
(0, updateHighlight_1.updateHighlight)(this.editor, this.context);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
case 'rewriteFromModel':
|
|
89
|
+
(0, updateHighlight_1.updateHighlight)(this.editor, this.context, event.addedBlockElements, event.removedBlockElements);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return FindReplacePlugin;
|
|
94
|
+
}());
|
|
95
|
+
exports.FindReplacePlugin = FindReplacePlugin;
|
|
96
|
+
});
|
|
96
97
|
//# sourceMappingURL=FindReplacePlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FindReplacePlugin.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/FindReplacePlugin.ts"],"names":[],"mappings":";;;;IAYA,IAAM,yBAAyB,GAAG,2BAA2B,CAAC;IAC9D,IAAM,4BAA4B,GAAG,2BAA2B,CAAC;IAEjE;;OAEG;IACH;QAKI;;;;WAIG;QACH,2BAAoB,OAA2B,EAAE,OAAqC;;YAAlE,YAAO,GAAP,OAAO,CAAoB;YATvC,WAAM,GAAmB,IAAI,CAAC;YAUlC,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,yBAAyB,CAAC;YACnF,IAAI,CAAC,qBAAqB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,4BAA4B,CAAC;QAChG,CAAC;QAED;;WAEG;QACH,mCAAO,GAAP;YACI,OAAO,aAAa,CAAC;QACzB,CAAC;QAED;;;;;WAKG;QACH,sCAAU,GAAV,UAAW,MAAe
|
|
1
|
+
{"version":3,"file":"FindReplacePlugin.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/FindReplacePlugin.ts"],"names":[],"mappings":";;;;IAYA,IAAM,yBAAyB,GAAG,2BAA2B,CAAC;IAC9D,IAAM,4BAA4B,GAAG,2BAA2B,CAAC;IAEjE;;OAEG;IACH;QAKI;;;;WAIG;QACH,2BAAoB,OAA2B,EAAE,OAAqC;;YAAlE,YAAO,GAAP,OAAO,CAAoB;YATvC,WAAM,GAAmB,IAAI,CAAC;YAUlC,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,yBAAyB,CAAC;YACnF,IAAI,CAAC,qBAAqB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,4BAA4B,CAAC;QAChG,CAAC;QAED;;WAEG;QACH,mCAAO,GAAP;YACI,OAAO,aAAa,CAAC;QACzB,CAAC;QAED;;;;;WAKG;QACH,sCAAU,GAAV,UAAW,MAAe;YACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YAErB,IAAM,GAAG,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC;YAE7C,IAAI,GAAG,EAAE;gBACL,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBAC3C,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACjD;YAED,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,gCAAoB,EAAE,IAAI,CAAC,kBAAkB,EAAE;gBACtE,iCAAqB;aACxB,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,mCAAuB,EAAE,IAAI,CAAC,qBAAqB,EAAE;gBAC5E,oCAAwB;aAC3B,CAAC,CAAC;QACP,CAAC;QAED;;;;WAIG;QACH,mCAAO,GAAP;YACI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;YACrC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAExC,IAAI,IAAI,CAAC,MAAM,EAAE;gBACb,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,gCAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;gBACnE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,mCAAuB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;gBAEtE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;aACtB;QACL,CAAC;QAED;;;;;WAKG;QACH,yCAAa,GAAb,UAAc,KAAkB;YAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpC,OAAO;aACV;YAED,QAAQ,KAAK,CAAC,SAAS,EAAE;gBACrB,KAAK,OAAO;oBACR,IAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;oBAEhD,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,KAAI,OAAO,EAAE;wBAC5B,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM;6BACpB,YAAY,EAAE;6BACd,uBAAuB,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;wBAE7D,IAAA,iCAAe,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;qBAChE;oBAED,MAAM;gBACV,KAAK,gBAAgB;oBACjB,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,MAAM,IAAI,0CAAY,CAAC,OAAO,EAAE;wBAC7D,IAAA,iCAAe,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;qBAC9C;oBAED,MAAM;gBAEV,KAAK,kBAAkB;oBACnB,IAAA,iCAAe,EACX,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,OAAO,EACZ,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,oBAAoB,CAC7B,CAAC;oBAEF,MAAM;aACb;QACL,CAAC;QACL,wBAAC;IAAD,CAAC,AAzGD,IAyGC;IAzGY,8CAAiB","sourcesContent":["import { ChangeSource } from 'roosterjs-content-model-dom';\r\nimport { updateHighlight } from './utils/updateHighlight';\r\nimport type { FindReplaceHighlightOptions } from './types/FindReplaceHighlightOptions';\r\nimport {\r\n FindHighlightRuleKey,\r\n FindHighlightSelector,\r\n ReplaceHighlightRuleKey,\r\n ReplaceHighlightSelector,\r\n} from './utils/constants';\r\nimport type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';\r\nimport type { FindReplaceContext } from './types/FindReplaceContext';\r\n\r\nconst DefaultFindHighlightStyle = 'background-color: yellow;';\r\nconst DefaultReplaceHighlightStyle = 'background-color: orange;';\r\n\r\n/**\r\n * Plugin for finding and replacing text in the editor, maintain the highlights for found and replaced text\r\n */\r\nexport class FindReplacePlugin implements EditorPlugin {\r\n private editor: IEditor | null = null;\r\n private findHighlightStyle: string;\r\n private replaceHighlightStyle: string;\r\n\r\n /**\r\n * Creates a FindReplacePlugin instance\r\n * @param context FindReplaceContext to use. It will be disposed when plugin is being disposed.\r\n * @param options Options for highlighting styles\r\n */\r\n constructor(private context: FindReplaceContext, options?: FindReplaceHighlightOptions) {\r\n this.findHighlightStyle = options?.findHighlightStyle ?? DefaultFindHighlightStyle;\r\n this.replaceHighlightStyle = options?.replaceHighlightStyle ?? DefaultReplaceHighlightStyle;\r\n }\r\n\r\n /**\r\n * Get name of this plugin\r\n */\r\n getName() {\r\n return 'FindReplace';\r\n }\r\n\r\n /**\r\n * The first method that editor will call to a plugin when editor is initializing.\r\n * It will pass in the editor instance, plugin should take this chance to save the\r\n * editor reference so that it can call to any editor method or format API later.\r\n * @param editor The editor object\r\n */\r\n initialize(editor: IEditor) {\r\n this.editor = editor;\r\n\r\n const win = editor.getDocument().defaultView;\r\n\r\n if (win) {\r\n this.context.findHighlight.initialize(win);\r\n this.context.replaceHighlight.initialize(win);\r\n }\r\n\r\n this.editor.setEditorStyle(FindHighlightRuleKey, this.findHighlightStyle, [\r\n FindHighlightSelector,\r\n ]);\r\n this.editor.setEditorStyle(ReplaceHighlightRuleKey, this.replaceHighlightStyle, [\r\n ReplaceHighlightSelector,\r\n ]);\r\n }\r\n\r\n /**\r\n * The last method that editor will call to a plugin before it is disposed.\r\n * Plugin can take this chance to clear the reference to editor. After this method is\r\n * called, plugin should not call to any editor method since it will result in error.\r\n */\r\n dispose() {\r\n this.context.findHighlight.dispose();\r\n this.context.replaceHighlight.dispose();\r\n\r\n if (this.editor) {\r\n this.editor.setEditorStyle(FindHighlightRuleKey, null /*cssRule*/);\r\n this.editor.setEditorStyle(ReplaceHighlightRuleKey, null /*cssRule*/);\r\n\r\n this.editor = null;\r\n }\r\n }\r\n\r\n /**\r\n * Core method for a plugin. Once an event happens in editor, editor will call this\r\n * method of each plugin to handle the event as long as the event is not handled\r\n * exclusively by another plugin.\r\n * @param event The event to handle:\r\n */\r\n onPluginEvent(event: PluginEvent) {\r\n if (!this.context.text || !this.editor) {\r\n return;\r\n }\r\n\r\n switch (event.eventType) {\r\n case 'input':\r\n const selection = this.editor.getDOMSelection();\r\n\r\n if (selection?.type == 'range') {\r\n const block = this.editor\r\n .getDOMHelper()\r\n .findClosestBlockElement(selection.range.startContainer);\r\n\r\n updateHighlight(this.editor, this.context, [block], [block]);\r\n }\r\n\r\n break;\r\n case 'contentChanged':\r\n if (!event.contentModel && event.source != ChangeSource.Replace) {\r\n updateHighlight(this.editor, this.context);\r\n }\r\n\r\n break;\r\n\r\n case 'rewriteFromModel':\r\n updateHighlight(\r\n this.editor,\r\n this.context,\r\n event.addedBlockElements,\r\n event.removedBlockElements\r\n );\r\n\r\n break;\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a FindReplaceContext object with default values
|
|
4
|
-
* @param win The window object
|
|
5
|
-
* @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare function createFindReplaceContext(scrollMargin?: number): FindReplaceContext;
|
|
1
|
+
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a FindReplaceContext object with default values
|
|
4
|
+
* @param win The window object
|
|
5
|
+
* @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function createFindReplaceContext(scrollMargin?: number): FindReplaceContext;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
define(["require", "exports", "./utils/HighlightHelperImpl", "./utils/constants"], function (require, exports, HighlightHelperImpl_1, constants_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.createFindReplaceContext = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Creates a FindReplaceContext object with default values
|
|
7
|
-
* @param win The window object
|
|
8
|
-
* @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
function createFindReplaceContext(scrollMargin) {
|
|
12
|
-
if (scrollMargin === void 0) { scrollMargin = constants_1.ScrollMargin; }
|
|
13
|
-
return {
|
|
14
|
-
text: null,
|
|
15
|
-
matchCase: false,
|
|
16
|
-
wholeWord: false,
|
|
17
|
-
ranges: [],
|
|
18
|
-
markedIndex: -1,
|
|
19
|
-
scrollMargin: scrollMargin,
|
|
20
|
-
findHighlight: (0, HighlightHelperImpl_1.createHighlightHelper)(constants_1.FindHighlightStyleKey),
|
|
21
|
-
replaceHighlight: (0, HighlightHelperImpl_1.createHighlightHelper)(constants_1.ReplaceHighlightStyleKey),
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
exports.createFindReplaceContext = createFindReplaceContext;
|
|
25
|
-
});
|
|
1
|
+
define(["require", "exports", "./utils/HighlightHelperImpl", "./utils/constants"], function (require, exports, HighlightHelperImpl_1, constants_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.createFindReplaceContext = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Creates a FindReplaceContext object with default values
|
|
7
|
+
* @param win The window object
|
|
8
|
+
* @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
function createFindReplaceContext(scrollMargin) {
|
|
12
|
+
if (scrollMargin === void 0) { scrollMargin = constants_1.ScrollMargin; }
|
|
13
|
+
return {
|
|
14
|
+
text: null,
|
|
15
|
+
matchCase: false,
|
|
16
|
+
wholeWord: false,
|
|
17
|
+
ranges: [],
|
|
18
|
+
markedIndex: -1,
|
|
19
|
+
scrollMargin: scrollMargin,
|
|
20
|
+
findHighlight: (0, HighlightHelperImpl_1.createHighlightHelper)(constants_1.FindHighlightStyleKey),
|
|
21
|
+
replaceHighlight: (0, HighlightHelperImpl_1.createHighlightHelper)(constants_1.ReplaceHighlightStyleKey),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.createFindReplaceContext = createFindReplaceContext;
|
|
25
|
+
});
|
|
26
26
|
//# sourceMappingURL=createFindReplaceContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFindReplaceContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/createFindReplaceContext.ts"],"names":[],"mappings":";;;;IAIA;;;;;OAKG;IACH,SAAgB,wBAAwB,CAAC,YAAmC;QAAnC,6BAAA,EAAA,eAAuB,wBAAY;QACxE,OAAO;YACH,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,KAAK;YAChB,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,CAAC,CAAC;YACf,YAAY,cAAA;YACZ,aAAa,EAAE,IAAA,2CAAqB,EAAC,iCAAqB,CAAC;YAC3D,gBAAgB,EAAE,IAAA,2CAAqB,EAAC,oCAAwB,CAAC;SACpE,CAAC;IACN,CAAC;IAXD,4DAWC","sourcesContent":["import { createHighlightHelper } from './utils/HighlightHelperImpl';\nimport { FindHighlightStyleKey, ReplaceHighlightStyleKey, ScrollMargin } from './utils/constants';\nimport type { FindReplaceContext } from './types/FindReplaceContext';\n\n/**\n * Creates a FindReplaceContext object with default values\n * @param win The window object\n * @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item\n * @returns\n */\nexport function createFindReplaceContext(scrollMargin: number = ScrollMargin): FindReplaceContext {\n return {\n text: null,\n matchCase: false,\n wholeWord: false,\n ranges: [],\n markedIndex: -1,\n scrollMargin,\n findHighlight: createHighlightHelper(FindHighlightStyleKey),\n replaceHighlight: createHighlightHelper(ReplaceHighlightStyleKey),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"createFindReplaceContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/createFindReplaceContext.ts"],"names":[],"mappings":";;;;IAIA;;;;;OAKG;IACH,SAAgB,wBAAwB,CAAC,YAAmC;QAAnC,6BAAA,EAAA,eAAuB,wBAAY;QACxE,OAAO;YACH,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,KAAK;YAChB,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,CAAC,CAAC;YACf,YAAY,cAAA;YACZ,aAAa,EAAE,IAAA,2CAAqB,EAAC,iCAAqB,CAAC;YAC3D,gBAAgB,EAAE,IAAA,2CAAqB,EAAC,oCAAwB,CAAC;SACpE,CAAC;IACN,CAAC;IAXD,4DAWC","sourcesContent":["import { createHighlightHelper } from './utils/HighlightHelperImpl';\r\nimport { FindHighlightStyleKey, ReplaceHighlightStyleKey, ScrollMargin } from './utils/constants';\r\nimport type { FindReplaceContext } from './types/FindReplaceContext';\r\n\r\n/**\r\n * Creates a FindReplaceContext object with default values\r\n * @param win The window object\r\n * @param scrollMargin Margin size (in pixels) when scrolling to a highlighted item\r\n * @returns\r\n */\r\nexport function createFindReplaceContext(scrollMargin: number = ScrollMargin): FindReplaceContext {\r\n return {\r\n text: null,\r\n matchCase: false,\r\n wholeWord: false,\r\n ranges: [],\r\n markedIndex: -1,\r\n scrollMargin,\r\n findHighlight: createHighlightHelper(FindHighlightStyleKey),\r\n replaceHighlight: createHighlightHelper(ReplaceHighlightStyleKey),\r\n };\r\n}\r\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
2
|
-
import type { IEditor } from 'roosterjs-content-model-types';
|
|
3
|
-
/**
|
|
4
|
-
* Start a find operation in the editor
|
|
5
|
-
* @param editor The editor instance
|
|
6
|
-
* @param context The FindReplaceContext to use
|
|
7
|
-
* @param text The text to find
|
|
8
|
-
* @param matchCase Whether to match case
|
|
9
|
-
* @param wholeWord Whether to match whole words only
|
|
10
|
-
*/
|
|
11
|
-
export declare function find(editor: IEditor, context: FindReplaceContext, text: string | null, matchCase?: boolean, wholeWord?: boolean): void;
|
|
1
|
+
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
2
|
+
import type { IEditor } from 'roosterjs-content-model-types';
|
|
3
|
+
/**
|
|
4
|
+
* Start a find operation in the editor
|
|
5
|
+
* @param editor The editor instance
|
|
6
|
+
* @param context The FindReplaceContext to use
|
|
7
|
+
* @param text The text to find
|
|
8
|
+
* @param matchCase Whether to match case
|
|
9
|
+
* @param wholeWord Whether to match whole words only
|
|
10
|
+
*/
|
|
11
|
+
export declare function find(editor: IEditor, context: FindReplaceContext, text: string | null, matchCase?: boolean, wholeWord?: boolean): void;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
define(["require", "exports", "./utils/updateHighlight"], function (require, exports, updateHighlight_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.find = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Start a find operation in the editor
|
|
7
|
-
* @param editor The editor instance
|
|
8
|
-
* @param context The FindReplaceContext to use
|
|
9
|
-
* @param text The text to find
|
|
10
|
-
* @param matchCase Whether to match case
|
|
11
|
-
* @param wholeWord Whether to match whole words only
|
|
12
|
-
*/
|
|
13
|
-
function find(editor, context, text, matchCase, wholeWord) {
|
|
14
|
-
context.text = text;
|
|
15
|
-
context.matchCase = !!matchCase;
|
|
16
|
-
context.wholeWord = !!wholeWord;
|
|
17
|
-
(0, updateHighlight_1.updateHighlight)(editor, context);
|
|
18
|
-
}
|
|
19
|
-
exports.find = find;
|
|
20
|
-
});
|
|
1
|
+
define(["require", "exports", "./utils/updateHighlight"], function (require, exports, updateHighlight_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.find = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Start a find operation in the editor
|
|
7
|
+
* @param editor The editor instance
|
|
8
|
+
* @param context The FindReplaceContext to use
|
|
9
|
+
* @param text The text to find
|
|
10
|
+
* @param matchCase Whether to match case
|
|
11
|
+
* @param wholeWord Whether to match whole words only
|
|
12
|
+
*/
|
|
13
|
+
function find(editor, context, text, matchCase, wholeWord) {
|
|
14
|
+
context.text = text;
|
|
15
|
+
context.matchCase = !!matchCase;
|
|
16
|
+
context.wholeWord = !!wholeWord;
|
|
17
|
+
(0, updateHighlight_1.updateHighlight)(editor, context);
|
|
18
|
+
}
|
|
19
|
+
exports.find = find;
|
|
20
|
+
});
|
|
21
21
|
//# sourceMappingURL=find.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/find.ts"],"names":[],"mappings":";;;;IAIA;;;;;;;OAOG;IACH,SAAgB,IAAI,CAChB,MAAe,EACf,OAA2B,EAC3B,IAAmB,EACnB,SAAmB,EACnB,SAAmB;QAEnB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;QAChC,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;QAEhC,IAAA,iCAAe,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAZD,oBAYC","sourcesContent":["import { updateHighlight } from './utils/updateHighlight';\nimport type { FindReplaceContext } from './types/FindReplaceContext';\nimport type { IEditor } from 'roosterjs-content-model-types';\n\n/**\n * Start a find operation in the editor\n * @param editor The editor instance\n * @param context The FindReplaceContext to use\n * @param text The text to find\n * @param matchCase Whether to match case\n * @param wholeWord Whether to match whole words only\n */\nexport function find(\n editor: IEditor,\n context: FindReplaceContext,\n text: string | null,\n matchCase?: boolean,\n wholeWord?: boolean\n): void {\n context.text = text;\n context.matchCase = !!matchCase;\n context.wholeWord = !!wholeWord;\n\n updateHighlight(editor, context);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-plugins/lib/findReplace/find.ts"],"names":[],"mappings":";;;;IAIA;;;;;;;OAOG;IACH,SAAgB,IAAI,CAChB,MAAe,EACf,OAA2B,EAC3B,IAAmB,EACnB,SAAmB,EACnB,SAAmB;QAEnB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;QAChC,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;QAEhC,IAAA,iCAAe,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAZD,oBAYC","sourcesContent":["import { updateHighlight } from './utils/updateHighlight';\r\nimport type { FindReplaceContext } from './types/FindReplaceContext';\r\nimport type { IEditor } from 'roosterjs-content-model-types';\r\n\r\n/**\r\n * Start a find operation in the editor\r\n * @param editor The editor instance\r\n * @param context The FindReplaceContext to use\r\n * @param text The text to find\r\n * @param matchCase Whether to match case\r\n * @param wholeWord Whether to match whole words only\r\n */\r\nexport function find(\r\n editor: IEditor,\r\n context: FindReplaceContext,\r\n text: string | null,\r\n matchCase?: boolean,\r\n wholeWord?: boolean\r\n): void {\r\n context.text = text;\r\n context.matchCase = !!matchCase;\r\n context.wholeWord = !!wholeWord;\r\n\r\n updateHighlight(editor, context);\r\n}\r\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IEditor } from 'roosterjs-content-model-types';
|
|
2
|
-
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
3
|
-
/**
|
|
4
|
-
* Move the highlight to next or previous match
|
|
5
|
-
* @param editor The editor instance
|
|
6
|
-
* @param context The FindReplaceContext to use
|
|
7
|
-
* @param forward Whether to move forward or backward
|
|
8
|
-
*/
|
|
9
|
-
export declare function moveHighlight(editor: IEditor, context: FindReplaceContext, forward: boolean): void;
|
|
1
|
+
import type { IEditor } from 'roosterjs-content-model-types';
|
|
2
|
+
import type { FindReplaceContext } from './types/FindReplaceContext';
|
|
3
|
+
/**
|
|
4
|
+
* Move the highlight to next or previous match
|
|
5
|
+
* @param editor The editor instance
|
|
6
|
+
* @param context The FindReplaceContext to use
|
|
7
|
+
* @param forward Whether to move forward or backward
|
|
8
|
+
*/
|
|
9
|
+
export declare function moveHighlight(editor: IEditor, context: FindReplaceContext, forward: boolean): void;
|