@omnia/fx 8.0.80-dev → 8.0.81-dev
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/internal-do-not-import-from-here/manifests/omnia.fx.ux.richtexteditor.manifest.json +1 -1
- package/internal-do-not-import-from-here/services/identities/UserIdentityService.d.ts +1 -1
- package/internal-do-not-import-from-here/stores/oxide/ComponentHostStore.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/datetimepicker/DateTimePicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/dialog/Dialog.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/enterpriseproperties/display/datafield/DataFieldDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/enterpriseproperties/display/personfield/PersonFieldDisplay.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/richtextfield/RichTextFieldEdit.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/enterpriseproperties/picker/EnterprisePropertyPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/enterpriseproperties/renderers/EnterprisePropertyValue.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/FilterEngineSettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/iconpicker/IconPicker.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerDialog.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerField.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerInlineField.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/journey/v2/JourneyBlade.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/journey/v2/use/UseBlade.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/languagepicker/LanguagePicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/LayoutEditorCanvas.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/renderer/LayoutRendererCanvas.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/shared/layoutitemsrenderer/LayoutStepRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/markdown/MarkdownEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/mediagallery/galleryviewproviders/photowall/components/PhotoCollage.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/mediagallery/galleryviewproviders/photowall/components/PhotoCollageWrapper.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/mediagallery/galleryviewproviders/photowall/components/RowPhotos.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/mediapickerV2/chrome/MediaPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/mediapickerimage/MediaPickerImage.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/monaco/MonacoEditor.d.ts +16 -16
- package/internal-do-not-import-from-here/ux/multilingualinput/MultilingualInput.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/multitextinput/MultiTextInput.d.ts +12 -13
- package/internal-do-not-import-from-here/ux/optionpicker/OptionPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/btn/Button.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/oxide/column/Column.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/column/ColumnGrid.d.ts +54 -54
- package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/oxide/draggable/Draggable.d.ts +10 -10
- package/internal-do-not-import-from-here/ux/oxide/flex/Row.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/hostprovider/HostProvider.d.ts +11 -11
- package/internal-do-not-import-from-here/ux/oxide/icon/Icon.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/image/Image.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/infinite-scroll/InfiniteScroll.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/navigationdrawer/NavigationDrawer.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/oxide/panel/Panel.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/oxide/radio/RadioGroup.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/rating/Rating.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/ScrollContainer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +4 -4
- package/internal-do-not-import-from-here/ux/oxide/skeletonloader/SkeletonLoader.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/splitpane/Splitpane.css.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/oxide/{splitpanes/Splitpanes.d.ts → splitpane/Splitpane.d.ts} +0 -52
- package/internal-do-not-import-from-here/ux/oxide/{splitpanes → splitpane}/SplitpaneItem.d.ts +0 -52
- package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/oxide/textfield/TextField.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/toolbar/Toolbar.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview2.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/profilecard/ProfileCard.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/html/HtmlEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/tags/TagsDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/tags/TagsEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/property-configuration/PropertyLocking.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/EditorMenuBar.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditor.d.ts +2 -7
- package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditorExtensionHelper.d.ts +1 -4
- package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditorSettings.d.ts +0 -14
- package/internal-do-not-import-from-here/ux/richtexteditor/InternalRichTextEditorApi.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/PublicRichTextEditorApi.d.ts +7 -8
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.d.ts +14 -41
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorInstance.d.ts +3 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorSettings.d.ts +381 -48
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorTester.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Alignment/Alignment.d.ts +9 -10
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Alignment/AlignmentNode.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/AnchorLink/AnchorLink.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/AnchorLink/AnchorLinkNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/AnimatedGif/AnimatedGif.d.ts +16 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Blockquote/Blockquote.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Blockquote/BlockquoteNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Bold/Bold.d.ts +10 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Bold/BoldNode.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/BulletList/BulletList.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/BulletList/BulletListNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Code/Code.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Code/CodeNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/CodeBlock/CodeBlock.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/CodeBlock/CodeBlockNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Doc/DocNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/EmoticonPicker/EmoticonPicker.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/EmoticonPicker/EmoticonPickerNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/EnterpriseGlossaryLink/EnterpriseGlossaryLinkSuggestionExtension.d.ts +7 -8
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/EnterpriseGlossaryLink/nodes/EnterpriseGlossarySuggestionNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/EnterpriseGlossaryLink/nodes/EnterpriseSuggestionIgnore.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/Division/DivisionNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/ExtendedElements.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/HardBreak/HardBreakNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/Iframe/IframeNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/Img/ImgNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/Link/LinkNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/Style/StyleNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ExtendedElements/TrailingParagraph/TrailingNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/HashTag/HashTagEditorExtension.d.ts +20 -13
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/HashTag/HashTagNode.d.ts +2 -3
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Heading/Heading.d.ts +11 -13
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Heading/HeadingNode.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/History/History.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/HorizontalRule/HorizontalRule.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/HorizontalRule/HorizontalRuleNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Html/Html.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Italic/Italic.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Italic/ItalicNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/LanguagePicker/LanguagePicker.d.ts +9 -8
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ListItem/ListItem.d.ts +8 -4
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/ListItem/ListItemNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/MediaPickerEditorExtension.d.ts +16 -12
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/MediaImageNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/MediaPickerNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphics.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsColorMatrix.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsComponentTransfer.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsDefinition.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsFilter.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsFuncB.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsFuncG.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsFuncR.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/nodes/ScalableVectorGraphicsImage.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Mention/Mention.d.ts +17 -11
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Mention/MentionNode.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/OrderedList/OrderedList.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/OrderedList/OrderedListNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Paragraph/ParagraphNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Placeholder/PlaceHolderNode.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Placeholder/Placeholder.d.ts +7 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/RemoveFormatting/RemoveFormatingNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/RemoveFormatting/RemoveFormatting.d.ts +17 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Strike/Strike.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Strike/StrikeNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Table/Table.d.ts +18 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Table/TableNode.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Table/nodes/TableCell.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Table/nodes/TableHeader.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Table/nodes/TableRow.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Text/TextNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextColor/TextColor.d.ts +14 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextColor/TextColorNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletion.d.ts +14 -11
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextStyle/TextStyleNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextTranslator/TextTranslator.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TodoList/TodoList.d.ts +12 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TodoList/TodoListNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TodoList/nodes/TodoItem.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Underline/Underline.d.ts +11 -5
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/Underline/UnderlineNode.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/shareds/DefineRichTextExtension.d.ts +2 -22
- package/internal-do-not-import-from-here/ux/richtexteditor/shareds/DefineRichTextNode.d.ts +7 -2
- package/internal-do-not-import-from-here/ux/settings/SettingsPane.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/social/templates/CommentLikeTemplate.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/urlinput/UrlInputLegacy.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/AlignmentEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/ImageEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/MarkdownEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/PropertyEditorCreator.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/SliderEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/SpacingEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/TextEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/TypographyEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/versionedlayout/editor/alternatelayout/AlternateLayoutRenameForm.d.ts +1 -1
- package/internal-do-not-import-from-here/wctypings.d.ts +15 -13
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/oxide/splitpanes/Splitpanes.css.d.ts +0 -3
@@ -67,8 +67,8 @@ declare const _default: {
|
|
67
67
|
};
|
68
68
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
69
69
|
propsDefinition: Omit<Readonly<{
|
70
|
-
items: ToolbarConfiguration[];
|
71
70
|
editor: Editor;
|
71
|
+
items: ToolbarConfiguration[];
|
72
72
|
onContentChanged: (content: string, extensionName?: string, data?: RichTextContentExtensionData) => void;
|
73
73
|
} & {}>, never>;
|
74
74
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ToolbarExtension, BubbleMenuToolbarExtension } from "./ToolbarExtension";
|
2
|
-
import { GuidValue,
|
2
|
+
import { GuidValue, RichTextEditorExtension, RichTextModes, TipTapEditor } from "../../models";
|
3
3
|
import { RichTextContentExtensionData, RichTextContentHelper } from "./RichTextContentHelper";
|
4
4
|
import { Node, Mark, Extension } from "@tiptap/core";
|
5
5
|
import { IRichTextEditorExtensionHelper } from "./IRichTextEditorExtensionHelper";
|
@@ -10,11 +10,6 @@ export interface IRichTextEditorInstance {
|
|
10
10
|
*/
|
11
11
|
updateContent(content: string): any;
|
12
12
|
}
|
13
|
-
export declare abstract class RichTextEditorExtension {
|
14
|
-
abstract getDefition(options: {
|
15
|
-
onEditorUpdated: any;
|
16
|
-
}): Promise<RichTextEditorExtensionDefinition>;
|
17
|
-
}
|
18
13
|
export interface ToolbarConfigurationBase {
|
19
14
|
}
|
20
15
|
export interface MenuConfiguration extends ToolbarConfigurationBase {
|
@@ -64,7 +59,7 @@ export interface IRichTextEditor {
|
|
64
59
|
* @param {function} registrationResolver Using this callback function to configure extension before passing it to RTE, return null if cannot resolve.
|
65
60
|
* @return {RichTextEditorExtension[]} List of extension after configured
|
66
61
|
*/
|
67
|
-
onConfigureExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
62
|
+
onConfigureExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>;
|
68
63
|
styles?: typeof RichTextEditorStyles;
|
69
64
|
placeholder?: RichTextEditorPlaceHolder;
|
70
65
|
disabled?: boolean;
|
package/internal-do-not-import-from-here/ux/richtexteditor/IRichTextEditorExtensionHelper.d.ts
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
import { MediaPickerEnums, MediaPickerImageRatioDefinition, MediaPickerStorageProviderContext, PromotedTagOptions,
|
2
|
-
import { RichTextEditorExtension } from "./IRichTextEditor";
|
1
|
+
import { MediaPickerEnums, MediaPickerImageRatioDefinition, MediaPickerStorageProviderContext, PromotedTagOptions, RichTextEditorExtension } from "@omnia/fx-models";
|
3
2
|
export interface IRichTextEditorExtensionHelper {
|
4
|
-
getDefaultRTFExtensionRegistrations: () => Array<RichTextEditorExtensionRegistration>;
|
5
3
|
getDefaultRTFExtensions: () => Array<RichTextEditorExtension>;
|
6
|
-
getDefaultLimitedRTFExtensionRegistrations: () => Array<RichTextEditorExtensionRegistration>;
|
7
4
|
getDefaultLimitedRTFExtensions: () => Array<RichTextEditorExtension>;
|
8
5
|
configureMediaPickerExtension: (configuredExtensions: Array<RichTextEditorExtension>, mediaPickerStorageProviderContext: MediaPickerStorageProviderContext, selectableMediaTypes?: Array<MediaPickerEnums.OmniaMediaTypes>, selectableRatios?: Array<MediaPickerImageRatioDefinition>) => Array<RichTextEditorExtension>;
|
9
6
|
addHashTagExtension: (configuredExtensions: Array<RichTextEditorExtension>, promotedTagOptions: PromotedTagOptions) => Array<RichTextEditorExtension>;
|
@@ -1,20 +1,6 @@
|
|
1
|
-
import { TsxAllowUnknowProperties } from "../TsxAllowUnknowProperties";
|
2
1
|
import { RTFExtensionViewModel } from "./RichTextEditorSettings";
|
3
2
|
export interface IRichTextEditorSettings {
|
4
3
|
showEditorPreview: boolean;
|
5
4
|
extensions: Array<RTFExtensionViewModel>;
|
6
5
|
onExtensionChange: (model: Array<RTFExtensionViewModel>) => void;
|
7
6
|
}
|
8
|
-
declare global {
|
9
|
-
namespace JSX {
|
10
|
-
interface Element {
|
11
|
-
}
|
12
|
-
interface ElementClass {
|
13
|
-
}
|
14
|
-
interface ElementAttributesProperty {
|
15
|
-
}
|
16
|
-
interface IntrinsicElements {
|
17
|
-
"omfx-rich-text-editor-settings": TsxAllowUnknowProperties<IRichTextEditorSettings>;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { RichTextEditorExtensionMessage } from "@omnia/fx-models";
|
2
1
|
import { IRegisterRichTextEditorExtension } from "./PublicRichTextEditorApi";
|
2
|
+
import { DefineRichTextEditorExtension } from "./shareds";
|
3
3
|
export interface IInternalRegisterRichTextEditorExtension extends IRegisterRichTextEditorExtension {
|
4
|
-
getAllExtensions: () =>
|
4
|
+
getAllExtensions: () => Promise<Array<ReturnType<typeof DefineRichTextEditorExtension>>>;
|
5
5
|
}
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import { ApiPath,
|
1
|
+
import { ApiPath, GuidValue, IExtendApiManifestWithConfiguration } from "@omnia/fx-models";
|
2
2
|
import { IRichTextEditorExtensionHelper } from "./IRichTextEditorExtensionHelper";
|
3
|
-
import {
|
3
|
+
import { DefineRichTextEditorExtension } from "./shareds";
|
4
4
|
export interface IRegisterRichTextEditorExtension {
|
5
|
-
|
6
|
-
* @deprecated use register instead.
|
7
|
-
*/
|
8
|
-
registerExtension: (items: RichTextEditorExtensionMessage | RichTextEditorExtensionMessage[]) => void;
|
9
|
-
register(extension: ReturnType<typeof DefineRichTextExtension>): void;
|
5
|
+
register(extensions: ReturnType<typeof DefineRichTextEditorExtension> | Array<ReturnType<typeof DefineRichTextEditorExtension>>): void;
|
10
6
|
}
|
11
7
|
export interface IRichTextEditorPublicApi {
|
12
8
|
registration: Promise<IRegisterRichTextEditorExtension>;
|
@@ -18,7 +14,10 @@ declare module "@omnia/fx-models/ux/UxApi" {
|
|
18
14
|
}
|
19
15
|
interface IOmniaUxExtendApiManifest {
|
20
16
|
richTextEditor: {
|
21
|
-
|
17
|
+
/**
|
18
|
+
* Require extension id
|
19
|
+
*/
|
20
|
+
registration: IExtendApiManifestWithConfiguration<GuidValue>;
|
22
21
|
helper: ApiPath;
|
23
22
|
};
|
24
23
|
}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { RichTextEditorPlaceHolder } from ".";
|
2
2
|
import "./RichTextEditor.css";
|
3
|
-
import { RichTextModes } from "../../models";
|
4
|
-
import { RichTextEditorExtensionRegistration } from "../../models";
|
3
|
+
import { RichTextModes, RichTextEditorExtension } from "../../models";
|
5
4
|
import { RichTextContentHelper } from ".";
|
6
5
|
import { IRichTextEditorExtensionHelper } from "./IRichTextEditorExtensionHelper";
|
7
6
|
declare const _default: {
|
@@ -24,17 +23,11 @@ declare const _default: {
|
|
24
23
|
ariaDescribedby: {
|
25
24
|
type: import("vue").PropType<string>;
|
26
25
|
};
|
27
|
-
"on-configured-extensions": {
|
28
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
29
|
-
};
|
30
|
-
onConfiguredExtensions: {
|
31
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
32
|
-
};
|
33
26
|
"on-configure-extensions": {
|
34
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
27
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
35
28
|
};
|
36
29
|
onConfigureExtensions: {
|
37
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
30
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
38
31
|
};
|
39
32
|
mode: {
|
40
33
|
type: import("vue").PropType<RichTextModes>;
|
@@ -162,17 +155,11 @@ declare const _default: {
|
|
162
155
|
ariaDescribedby: {
|
163
156
|
type: import("vue").PropType<string>;
|
164
157
|
};
|
165
|
-
"on-configured-extensions": {
|
166
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
167
|
-
};
|
168
|
-
onConfiguredExtensions: {
|
169
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
170
|
-
};
|
171
158
|
"on-configure-extensions": {
|
172
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
159
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
173
160
|
};
|
174
161
|
onConfigureExtensions: {
|
175
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
162
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
176
163
|
};
|
177
164
|
mode: {
|
178
165
|
type: import("vue").PropType<RichTextModes>;
|
@@ -307,17 +294,11 @@ declare const _default: {
|
|
307
294
|
ariaDescribedby: {
|
308
295
|
type: import("vue").PropType<string>;
|
309
296
|
};
|
310
|
-
"on-configured-extensions": {
|
311
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
312
|
-
};
|
313
|
-
onConfiguredExtensions: {
|
314
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
315
|
-
};
|
316
297
|
"on-configure-extensions": {
|
317
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
298
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
318
299
|
};
|
319
300
|
onConfigureExtensions: {
|
320
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
301
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
321
302
|
};
|
322
303
|
mode: {
|
323
304
|
type: import("vue").PropType<RichTextModes>;
|
@@ -449,17 +430,11 @@ declare const _default: {
|
|
449
430
|
ariaDescribedby: {
|
450
431
|
type: import("vue").PropType<string>;
|
451
432
|
};
|
452
|
-
"on-configured-extensions": {
|
453
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
454
|
-
};
|
455
|
-
onConfiguredExtensions: {
|
456
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>>;
|
457
|
-
};
|
458
433
|
"on-configure-extensions": {
|
459
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
434
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
460
435
|
};
|
461
436
|
onConfigureExtensions: {
|
462
|
-
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
437
|
+
type: import("vue").PropType<(currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>>;
|
463
438
|
};
|
464
439
|
mode: {
|
465
440
|
type: import("vue").PropType<RichTextModes>;
|
@@ -590,17 +565,17 @@ declare const _default: {
|
|
590
565
|
genericExtensionElementStyle?: (useAccessibilityFeature: boolean) => import("typestyle/lib/types").NestedCSSProperties;
|
591
566
|
menubarLanguagePicker?: import("typestyle/lib/types").NestedCSSProperties;
|
592
567
|
};
|
593
|
-
|
568
|
+
placeholder?: RichTextEditorPlaceHolder;
|
594
569
|
onFocus?: () => void;
|
595
570
|
onBlur?: () => void;
|
596
|
-
|
571
|
+
ariaInvalid?: boolean;
|
597
572
|
"aria-describedby"?: string;
|
598
573
|
"aria-invalid"?: boolean;
|
599
574
|
resetContent?: boolean;
|
600
575
|
bodyClass?: string;
|
601
576
|
onContentDataChange?: (richtextHelper: RichTextContentHelper) => void;
|
602
577
|
registerFocus?: (callback: () => void) => void;
|
603
|
-
onConfigureExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
578
|
+
onConfigureExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>;
|
604
579
|
autoFocus?: boolean;
|
605
580
|
ariaDescribedby?: string;
|
606
581
|
disableAutofocus?: boolean;
|
@@ -611,9 +586,7 @@ declare const _default: {
|
|
611
586
|
"body-class"?: string;
|
612
587
|
"reset-content"?: boolean;
|
613
588
|
"disable-autofocus"?: boolean;
|
614
|
-
"on-configure-extensions"?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration:
|
615
|
-
onConfiguredExtensions?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>;
|
616
|
-
"on-configured-extensions"?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtensionRegistration) => RichTextEditorExtension) => Promise<Array<RichTextEditorExtension>>;
|
589
|
+
"on-configure-extensions"?: (currentExtensions: Array<RichTextEditorExtension>, registrationResolver?: (registration: RichTextEditorExtension) => RichTextEditorExtension, extensionHelper?: IRichTextEditorExtensionHelper) => Array<RichTextEditorExtension>;
|
617
590
|
"register-focus"?: (callback: () => void) => void;
|
618
591
|
}>, never>;
|
619
592
|
};
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { GuidValue } from "@omnia/fx-models";
|
2
2
|
import { Editor } from "@tiptap/vue-3";
|
3
|
+
import { RichTextContentExtensionData } from "./RichTextContentHelper";
|
3
4
|
export declare class RichTextEditorInstance {
|
5
|
+
notifyChanged: (extensionName?: string, data?: RichTextContentExtensionData) => void;
|
4
6
|
readonly id: GuidValue;
|
5
7
|
private _editor;
|
6
|
-
constructor();
|
8
|
+
constructor(notifyChanged: (extensionName?: string, data?: RichTextContentExtensionData) => void);
|
7
9
|
get editor(): Editor;
|
8
10
|
setEditor(editor: Editor): void;
|
9
11
|
}
|