@erag/text-editor-vue 0.0.2
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/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/index.d.ts +2 -0
- package/dist/src/commands/clipboardCommands.d.ts +2 -0
- package/dist/src/commands/clipboardCommands.d.ts.map +1 -0
- package/dist/src/commands/commandRegistry.d.ts +5 -0
- package/dist/src/commands/commandRegistry.d.ts.map +1 -0
- package/dist/src/commands/formatCommands.d.ts +3 -0
- package/dist/src/commands/formatCommands.d.ts.map +1 -0
- package/dist/src/commands/historyCommands.d.ts +3 -0
- package/dist/src/commands/historyCommands.d.ts.map +1 -0
- package/dist/src/commands/insertCommands.d.ts +6 -0
- package/dist/src/commands/insertCommands.d.ts.map +1 -0
- package/dist/src/commands/listCommands.d.ts +2 -0
- package/dist/src/commands/listCommands.d.ts.map +1 -0
- package/dist/src/commands/printCommands.d.ts +2 -0
- package/dist/src/commands/printCommands.d.ts.map +1 -0
- package/dist/src/commands/tableCommands.d.ts +4 -0
- package/dist/src/commands/tableCommands.d.ts.map +1 -0
- package/dist/src/components/Editor.vue.d.ts +59 -0
- package/dist/src/components/Editor.vue.d.ts.map +1 -0
- package/dist/src/components/EditorContent.vue.d.ts +37 -0
- package/dist/src/components/EditorContent.vue.d.ts.map +1 -0
- package/dist/src/components/EditorDialogs.vue.d.ts +29 -0
- package/dist/src/components/EditorDialogs.vue.d.ts.map +1 -0
- package/dist/src/components/EditorMenuBar.vue.d.ts +39 -0
- package/dist/src/components/EditorMenuBar.vue.d.ts.map +1 -0
- package/dist/src/components/EditorStatusBar.vue.d.ts +26 -0
- package/dist/src/components/EditorStatusBar.vue.d.ts.map +1 -0
- package/dist/src/components/EditorToolbar.vue.d.ts +29 -0
- package/dist/src/components/EditorToolbar.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/BaseDialog.vue.d.ts +28 -0
- package/dist/src/components/dialogs/BaseDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/ColorDialog.vue.d.ts +14 -0
- package/dist/src/components/dialogs/ColorDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/EmojiDialog.vue.d.ts +10 -0
- package/dist/src/components/dialogs/EmojiDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/FindReplaceDialog.vue.d.ts +13 -0
- package/dist/src/components/dialogs/FindReplaceDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/InfoDialog.vue.d.ts +11 -0
- package/dist/src/components/dialogs/InfoDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/LinkDialog.vue.d.ts +18 -0
- package/dist/src/components/dialogs/LinkDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/MediaDialog.vue.d.ts +14 -0
- package/dist/src/components/dialogs/MediaDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/PreviewDialog.vue.d.ts +12 -0
- package/dist/src/components/dialogs/PreviewDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/SourceDialog.vue.d.ts +13 -0
- package/dist/src/components/dialogs/SourceDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/SpecialCharacterDialog.vue.d.ts +10 -0
- package/dist/src/components/dialogs/SpecialCharacterDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/TableDialog.vue.d.ts +13 -0
- package/dist/src/components/dialogs/TableDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/TablePropertiesDialog.vue.d.ts +10 -0
- package/dist/src/components/dialogs/TablePropertiesDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/TemplateDialog.vue.d.ts +15 -0
- package/dist/src/components/dialogs/TemplateDialog.vue.d.ts.map +1 -0
- package/dist/src/components/dialogs/WordCountDialog.vue.d.ts +12 -0
- package/dist/src/components/dialogs/WordCountDialog.vue.d.ts.map +1 -0
- package/dist/src/components/icons/EditorIcon.vue.d.ts +8 -0
- package/dist/src/components/icons/EditorIcon.vue.d.ts.map +1 -0
- package/dist/src/components/images/ImageResizeOverlay.vue.d.ts +17 -0
- package/dist/src/components/images/ImageResizeOverlay.vue.d.ts.map +1 -0
- package/dist/src/components/images/InlineImageUpload.vue.d.ts +20 -0
- package/dist/src/components/images/InlineImageUpload.vue.d.ts.map +1 -0
- package/dist/src/components/images/InlineImageUploadPortal.vue.d.ts +19 -0
- package/dist/src/components/images/InlineImageUploadPortal.vue.d.ts.map +1 -0
- package/dist/src/components/mentions/MentionDropdown.vue.d.ts +45 -0
- package/dist/src/components/mentions/MentionDropdown.vue.d.ts.map +1 -0
- package/dist/src/components/mentions/MentionHoverCard.vue.d.ts +14 -0
- package/dist/src/components/mentions/MentionHoverCard.vue.d.ts.map +1 -0
- package/dist/src/components/mentions/MentionItem.vue.d.ts +28 -0
- package/dist/src/components/mentions/MentionItem.vue.d.ts.map +1 -0
- package/dist/src/components/menus/FloatingMenu.vue.d.ts +19 -0
- package/dist/src/components/menus/FloatingMenu.vue.d.ts.map +1 -0
- package/dist/src/components/merge-tags/MergeTagDropdown.vue.d.ts +20 -0
- package/dist/src/components/merge-tags/MergeTagDropdown.vue.d.ts.map +1 -0
- package/dist/src/components/merge-tags/MergeTagSidebar.vue.d.ts +16 -0
- package/dist/src/components/merge-tags/MergeTagSidebar.vue.d.ts.map +1 -0
- package/dist/src/components/toolbar/CaseChangeMenu.vue.d.ts +14 -0
- package/dist/src/components/toolbar/CaseChangeMenu.vue.d.ts.map +1 -0
- package/dist/src/components/toolbar/ColorPalette.vue.d.ts +13 -0
- package/dist/src/components/toolbar/ColorPalette.vue.d.ts.map +1 -0
- package/dist/src/components/toolbar/ToolbarButton.vue.d.ts +15 -0
- package/dist/src/components/toolbar/ToolbarButton.vue.d.ts.map +1 -0
- package/dist/src/composables/useEditor.d.ts +15 -0
- package/dist/src/composables/useEditor.d.ts.map +1 -0
- package/dist/src/composables/useEditorConfig.d.ts +4 -0
- package/dist/src/composables/useEditorConfig.d.ts.map +1 -0
- package/dist/src/composables/useEditorHistory.d.ts +8 -0
- package/dist/src/composables/useEditorHistory.d.ts.map +1 -0
- package/dist/src/composables/useEditorResize.d.ts +8 -0
- package/dist/src/composables/useEditorResize.d.ts.map +1 -0
- package/dist/src/composables/useEditorSelection.d.ts +10 -0
- package/dist/src/composables/useEditorSelection.d.ts.map +1 -0
- package/dist/src/composables/useEditorUpload.d.ts +14 -0
- package/dist/src/composables/useEditorUpload.d.ts.map +1 -0
- package/dist/src/composables/useFloatingPosition.d.ts +6 -0
- package/dist/src/composables/useFloatingPosition.d.ts.map +1 -0
- package/dist/src/composables/useFullscreen.d.ts +6 -0
- package/dist/src/composables/useFullscreen.d.ts.map +1 -0
- package/dist/src/composables/useImageResize.d.ts +15 -0
- package/dist/src/composables/useImageResize.d.ts.map +1 -0
- package/dist/src/composables/useInlineImageUpload.d.ts +19 -0
- package/dist/src/composables/useInlineImageUpload.d.ts.map +1 -0
- package/dist/src/composables/useLinkInitial.d.ts +7 -0
- package/dist/src/composables/useLinkInitial.d.ts.map +1 -0
- package/dist/src/composables/useMentions.d.ts +28 -0
- package/dist/src/composables/useMentions.d.ts.map +1 -0
- package/dist/src/composables/useMergeTagSidebar.d.ts +10 -0
- package/dist/src/composables/useMergeTagSidebar.d.ts.map +1 -0
- package/dist/src/composables/useMergeTags.d.ts +21 -0
- package/dist/src/composables/useMergeTags.d.ts.map +1 -0
- package/dist/src/composables/useToolbarOverflow.d.ts +6 -0
- package/dist/src/composables/useToolbarOverflow.d.ts.map +1 -0
- package/dist/src/composables/useWordCount.d.ts +4 -0
- package/dist/src/composables/useWordCount.d.ts.map +1 -0
- package/dist/src/config/defaultConfig.d.ts +3 -0
- package/dist/src/config/defaultConfig.d.ts.map +1 -0
- package/dist/src/config/mentionConfig.d.ts +4 -0
- package/dist/src/config/mentionConfig.d.ts.map +1 -0
- package/dist/src/config/menuConfig.d.ts +3 -0
- package/dist/src/config/menuConfig.d.ts.map +1 -0
- package/dist/src/config/menuIcons.d.ts +3 -0
- package/dist/src/config/menuIcons.d.ts.map +1 -0
- package/dist/src/config/mergeTagConfig.d.ts +4 -0
- package/dist/src/config/mergeTagConfig.d.ts.map +1 -0
- package/dist/src/config/templateConfig.d.ts +3 -0
- package/dist/src/config/templateConfig.d.ts.map +1 -0
- package/dist/src/config/toolbarConfig.d.ts +5 -0
- package/dist/src/config/toolbarConfig.d.ts.map +1 -0
- package/dist/src/constants/editorCommands.d.ts +2 -0
- package/dist/src/constants/editorCommands.d.ts.map +1 -0
- package/dist/src/constants/editorDefaults.d.ts +44 -0
- package/dist/src/constants/editorDefaults.d.ts.map +1 -0
- package/dist/src/constants/emojis.d.ts +4 -0
- package/dist/src/constants/emojis.d.ts.map +1 -0
- package/dist/src/constants/imageResize.d.ts +3 -0
- package/dist/src/constants/imageResize.d.ts.map +1 -0
- package/dist/src/constants/keyboardShortcuts.d.ts +2 -0
- package/dist/src/constants/keyboardShortcuts.d.ts.map +1 -0
- package/dist/src/constants/packageInfo.d.ts +2 -0
- package/dist/src/constants/packageInfo.d.ts.map +1 -0
- package/dist/src/constants/printStyles.d.ts +2 -0
- package/dist/src/constants/printStyles.d.ts.map +1 -0
- package/dist/src/constants/specialCharacters.d.ts +4 -0
- package/dist/src/constants/specialCharacters.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/types/commands.d.ts +17 -0
- package/dist/src/types/commands.d.ts.map +1 -0
- package/dist/src/types/config.d.ts +101 -0
- package/dist/src/types/config.d.ts.map +1 -0
- package/dist/src/types/count.d.ts +10 -0
- package/dist/src/types/count.d.ts.map +1 -0
- package/dist/src/types/dialog.d.ts +41 -0
- package/dist/src/types/dialog.d.ts.map +1 -0
- package/dist/src/types/editor.d.ts +49 -0
- package/dist/src/types/editor.d.ts.map +1 -0
- package/dist/src/types/emoji.d.ts +8 -0
- package/dist/src/types/emoji.d.ts.map +1 -0
- package/dist/src/types/events.d.ts +26 -0
- package/dist/src/types/events.d.ts.map +1 -0
- package/dist/src/types/image.d.ts +22 -0
- package/dist/src/types/image.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +16 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/mention.d.ts +63 -0
- package/dist/src/types/mention.d.ts.map +1 -0
- package/dist/src/types/menu.d.ts +21 -0
- package/dist/src/types/menu.d.ts.map +1 -0
- package/dist/src/types/mergeTag.d.ts +47 -0
- package/dist/src/types/mergeTag.d.ts.map +1 -0
- package/dist/src/types/specialCharacter.d.ts +10 -0
- package/dist/src/types/specialCharacter.d.ts.map +1 -0
- package/dist/src/types/template.d.ts +19 -0
- package/dist/src/types/template.d.ts.map +1 -0
- package/dist/src/types/toolbar.d.ts +15 -0
- package/dist/src/types/toolbar.d.ts.map +1 -0
- package/dist/src/types/upload.d.ts +16 -0
- package/dist/src/types/upload.d.ts.map +1 -0
- package/dist/src/utils/config.d.ts +4 -0
- package/dist/src/utils/config.d.ts.map +1 -0
- package/dist/src/utils/dateTime.d.ts +4 -0
- package/dist/src/utils/dateTime.d.ts.map +1 -0
- package/dist/src/utils/dom.d.ts +4 -0
- package/dist/src/utils/dom.d.ts.map +1 -0
- package/dist/src/utils/html.d.ts +11 -0
- package/dist/src/utils/html.d.ts.map +1 -0
- package/dist/src/utils/mention.d.ts +11 -0
- package/dist/src/utils/mention.d.ts.map +1 -0
- package/dist/src/utils/mergeTag.d.ts +11 -0
- package/dist/src/utils/mergeTag.d.ts.map +1 -0
- package/dist/src/utils/sanitizer.d.ts +8 -0
- package/dist/src/utils/sanitizer.d.ts.map +1 -0
- package/dist/src/utils/selection.d.ts +6 -0
- package/dist/src/utils/selection.d.ts.map +1 -0
- package/dist/src/utils/units.d.ts +3 -0
- package/dist/src/utils/units.d.ts.map +1 -0
- package/dist/src/utils/url.d.ts +10 -0
- package/dist/src/utils/url.d.ts.map +1 -0
- package/dist/style.css +2 -0
- package/dist/text-editor-vue.js +6428 -0
- package/dist/text-editor-vue.js.map +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MergeTagCallbacks, MergeTagComposableSources, MergeTagItem } from '../types';
|
|
2
|
+
export declare function useMergeTags(sources: MergeTagComposableSources, callbacks: MergeTagCallbacks): {
|
|
3
|
+
isOpen: import('vue').ShallowRef<boolean, boolean>;
|
|
4
|
+
query: import('vue').ShallowRef<string, string>;
|
|
5
|
+
items: import('vue').ShallowRef<MergeTagItem[], MergeTagItem[]>;
|
|
6
|
+
activeIndex: import('vue').ShallowRef<number, number>;
|
|
7
|
+
positionStyle: import('vue').ComputedRef<{
|
|
8
|
+
left: string;
|
|
9
|
+
top: string;
|
|
10
|
+
}>;
|
|
11
|
+
handleInput: () => void;
|
|
12
|
+
handleSelectionChange: () => void;
|
|
13
|
+
handleKeydown: (event: KeyboardEvent) => boolean;
|
|
14
|
+
handleRemoval: (event: KeyboardEvent) => boolean;
|
|
15
|
+
setActiveIndex: (index: number) => void;
|
|
16
|
+
setDropdownElement: (element: HTMLElement | null) => void;
|
|
17
|
+
select: (item: MergeTagItem) => void;
|
|
18
|
+
insert: (item: MergeTagItem) => void;
|
|
19
|
+
close: () => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useMergeTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMergeTags.d.ts","sourceRoot":"","sources":["../../../src/composables/useMergeTags.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EAEf,MAAM,UAAU,CAAC;AAclB,wBAAgB,YAAY,CAAC,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;;;;;;;;;uBAejE,IAAI;iCAcM,IAAI;2BAiBR,aAAa,KAAG,OAAO;2BA8BvB,aAAa,KAAG,OAAO;4BAoCtB,MAAM,KAAG,IAAI;kCAIP,WAAW,GAAG,IAAI,KAAG,IAAI;mBA1BxC,YAAY,KAAG,IAAI;mBAWnB,YAAY,KAAG,IAAI;iBAqDvB,IAAI;EAqEzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function useToolbarOverflow(container: Ref<HTMLElement | null>, itemCount: Ref<number>, layoutKey: Ref<string>): {
|
|
3
|
+
visibleCount: import('vue').ShallowRef<number, number>;
|
|
4
|
+
measure: () => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useToolbarOverflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToolbarOverflow.d.ts","sourceRoot":"","sources":["../../../src/composables/useToolbarOverflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2D,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAKxF,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAClC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EACtB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC;;mBAUI,OAAO,CAAC,IAAI,CAAC;EAwE1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWordCount.d.ts","sourceRoot":"","sources":["../../../src/composables/useWordCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,aAAa,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,4CAK3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../src/config/defaultConfig.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAKnD,eAAO,MAAM,mBAAmB,EAAE,kBA8FjC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MentionConfig, ResolvedMentionConfig } from '../types';
|
|
2
|
+
export declare const defaultMentionConfig: Required<Omit<MentionConfig, 'items'>>;
|
|
3
|
+
export declare function normalizeMentionConfig(mentions: boolean | MentionConfig | undefined): ResolvedMentionConfig;
|
|
4
|
+
//# sourceMappingURL=mentionConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mentionConfig.d.ts","sourceRoot":"","sources":["../../../src/config/mentionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAErE,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAKvE,CAAC;AAEF,wBAAgB,sBAAsB,CAClC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,GAC9C,qBAAqB,CAgBvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menuConfig.d.ts","sourceRoot":"","sources":["../../../src/config/menuConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AA+CnE,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAoN5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menuIcons.d.ts","sourceRoot":"","sources":["../../../src/config/menuIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA8EnD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAOpE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MergeTagConfig, ResolvedMergeTagConfig } from '../types';
|
|
2
|
+
export declare const defaultMergeTagConfig: Required<Omit<MergeTagConfig, 'items'>>;
|
|
3
|
+
export declare function normalizeMergeTagConfig(mergeTags: boolean | MergeTagConfig | undefined): ResolvedMergeTagConfig;
|
|
4
|
+
//# sourceMappingURL=mergeTagConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeTagConfig.d.ts","sourceRoot":"","sources":["../../../src/config/mergeTagConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGvE,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAGzE,CAAC;AAEF,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,GAChD,sBAAsB,CAaxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateConfig.d.ts","sourceRoot":"","sources":["../../../src/config/templateConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAErF,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,GACvD,6BAA6B,CAM/B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EditorToolbarGroup, EditorToolbarItemName, ToolbarItemDefinition } from '../types';
|
|
2
|
+
export declare const DEFAULT_TOOLBAR = "undo redo | blocks fontfamily fontsize | bold italic underline strikethrough superscript subscript casechange | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media table | hr removeformat | code preview fullscreen more";
|
|
3
|
+
export declare const TOOLBAR_ITEMS: Record<EditorToolbarItemName, ToolbarItemDefinition>;
|
|
4
|
+
export declare function parseToolbar(value: boolean | string | EditorToolbarGroup[]): EditorToolbarGroup[];
|
|
5
|
+
//# sourceMappingURL=toolbarConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbarConfig.d.ts","sourceRoot":"","sources":["../../../src/config/toolbarConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjG,eAAO,MAAM,eAAe,mSACwQ,CAAC;AAErS,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,qBAAqB,EAAE,qBAAqB,CAiK9E,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAcjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorCommands.d.ts","sourceRoot":"","sources":["../../../src/constants/editorCommands.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmBlD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const DEFAULT_COLORS: string[];
|
|
2
|
+
export declare const DEFAULT_FONT_FAMILIES: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const DEFAULT_FONT_SIZES: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const DEFAULT_LINE_HEIGHTS: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const DEFAULT_BLOCKS: readonly [{
|
|
15
|
+
readonly label: "Paragraph";
|
|
16
|
+
readonly value: "p";
|
|
17
|
+
}, {
|
|
18
|
+
readonly label: "Heading 1";
|
|
19
|
+
readonly value: "h1";
|
|
20
|
+
}, {
|
|
21
|
+
readonly label: "Heading 2";
|
|
22
|
+
readonly value: "h2";
|
|
23
|
+
}, {
|
|
24
|
+
readonly label: "Heading 3";
|
|
25
|
+
readonly value: "h3";
|
|
26
|
+
}, {
|
|
27
|
+
readonly label: "Heading 4";
|
|
28
|
+
readonly value: "h4";
|
|
29
|
+
}, {
|
|
30
|
+
readonly label: "Heading 5";
|
|
31
|
+
readonly value: "h5";
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "Heading 6";
|
|
34
|
+
readonly value: "h6";
|
|
35
|
+
}, {
|
|
36
|
+
readonly label: "Preformatted";
|
|
37
|
+
readonly value: "pre";
|
|
38
|
+
}, {
|
|
39
|
+
readonly label: "Blockquote";
|
|
40
|
+
readonly value: "blockquote";
|
|
41
|
+
}];
|
|
42
|
+
export declare const DEFAULT_ALLOWED_TAGS: string[];
|
|
43
|
+
export declare const DEFAULT_ALLOWED_ATTRIBUTES: Record<string, string[]>;
|
|
44
|
+
//# sourceMappingURL=editorDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorDefaults.d.ts","sourceRoot":"","sources":["../../../src/constants/editorDefaults.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAyC1B,CAAC;AACF,eAAO,MAAM,qBAAqB;;;GAcS,CAAC;AAC5C,eAAO,MAAM,kBAAkB;;;GAE9B,CAAC;AACF,eAAO,MAAM,oBAAoB;;;GAEhC,CAAC;AACF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjB,CAAC;AACX,eAAO,MAAM,oBAAoB,UA2ChC,CAAC;AACF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAoB/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emojis.d.ts","sourceRoot":"","sources":["../../../src/constants/emojis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE9E,eAAO,MAAM,gBAAgB,EAAE,SAAS,mBAAmB,EAU1D,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,SAAS,SAAS,EAyWtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageResize.d.ts","sourceRoot":"","sources":["../../../src/constants/imageResize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAK5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../src/constants/keyboardShortcuts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageInfo.d.ts","sourceRoot":"","sources":["../../../src/constants/packageInfo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAA0B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const PRINT_CONTENT_STYLES = "\n.erag-print-portal { display: none; }\n@media print {\n@page { margin: 16mm; }\nbody.erag-is-printing { margin: 0; padding: 0; }\nbody.erag-is-printing > :not(.erag-print-portal) { display: none; }\nbody.erag-is-printing > .erag-print-portal { display: block; }\nbody.erag-is-printing .erag-print-content {\n color: #111827;\n font: 14px/1.5 Arial, Helvetica, sans-serif;\n overflow-wrap: anywhere;\n}\nbody.erag-is-printing .erag-print-content h1,\nbody.erag-is-printing .erag-print-content h2,\nbody.erag-is-printing .erag-print-content h3,\nbody.erag-is-printing .erag-print-content h4,\nbody.erag-is-printing .erag-print-content h5,\nbody.erag-is-printing .erag-print-content h6 { margin: 0.65em 0 0.4em; line-height: 1.25; }\nbody.erag-is-printing .erag-print-content p { margin: 0.5em 0; }\nbody.erag-is-printing .erag-print-content ul,\nbody.erag-is-printing .erag-print-content ol { margin: 0.5em 0; padding-inline-start: 1.75em; }\nbody.erag-is-printing .erag-print-content ul { list-style: disc outside; }\nbody.erag-is-printing .erag-print-content ol { list-style: decimal outside; }\nbody.erag-is-printing .erag-print-content li { display: list-item; margin: 0.2em 0; }\nbody.erag-is-printing .erag-print-content img,\nbody.erag-is-printing .erag-print-content video,\nbody.erag-is-printing .erag-print-content iframe { max-width: 100%; }\nbody.erag-is-printing .erag-print-content table {\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n}\nbody.erag-is-printing .erag-print-content td,\nbody.erag-is-printing .erag-print-content th {\n min-width: 36px;\n padding: 8px;\n border: 1px solid #94a3b8;\n}\nbody.erag-is-printing .erag-print-content blockquote {\n margin-inline: 0;\n padding-inline-start: 16px;\n color: #475569;\n border-inline-start: 3px solid #cbd5e1;\n}\nbody.erag-is-printing .erag-print-content pre {\n padding: 12px;\n overflow: hidden;\n white-space: pre-wrap;\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n background: #f1f5f9;\n border-radius: 5px;\n}\nbody.erag-is-printing .erag-print-content .erag-mention {\n display: inline;\n padding: 1px 5px;\n color: #1659a7;\n white-space: nowrap;\n background: #eaf2ff;\n border-radius: 4px;\n}\n}\n";
|
|
2
|
+
//# sourceMappingURL=printStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"printStyles.d.ts","sourceRoot":"","sources":["../../../src/constants/printStyles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,wvEA6DhC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SpecialCharacterCategory, SpecialCharacterItem } from '../types';
|
|
2
|
+
export declare const SPECIAL_CHARACTER_CATEGORIES: SpecialCharacterCategory[];
|
|
3
|
+
export declare const ALL_SPECIAL_CHARACTERS: SpecialCharacterItem[];
|
|
4
|
+
//# sourceMappingURL=specialCharacters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specialCharacters.d.ts","sourceRoot":"","sources":["../../../src/constants/specialCharacters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA0B/E,eAAO,MAAM,4BAA4B,EAAE,wBAAwB,EASlE,CAAC;AAEF,eAAO,MAAM,sBAAsB,wBAElC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Editor } from './components/Editor.vue';
|
|
2
|
+
export { defaultEditorConfig } from './config/defaultConfig';
|
|
3
|
+
export { sanitizeHtml } from './utils/sanitizer';
|
|
4
|
+
export type { EditorEmits, EditorInit, EditorInstance, EditorMenuName, EditorPluginName, EditorProps, EditorToolbarGroup, ImageBlobInfo, ImageDeleteInfo, ImagesDeleteHandler, ImagesUploadHandler, MentionConfig, MentionItem, MentionRemoveEvent, MentionSearchEvent, MentionSelectEvent, MergeTagConfig, MergeTagItem, MergeTagRemoveEvent, MergeTagSelectEvent, EditorTemplateItem, EditorTemplatesConfig, TemplateInsertEvent, } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,GACtB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type EditorCommandId = string;
|
|
2
|
+
export interface CommandContext {
|
|
3
|
+
root: HTMLElement;
|
|
4
|
+
restoreSelection: () => boolean;
|
|
5
|
+
sync: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface EditorCommand {
|
|
8
|
+
id: EditorCommandId;
|
|
9
|
+
execute: (context: CommandContext, value?: string) => boolean;
|
|
10
|
+
isActive?: () => boolean;
|
|
11
|
+
canExecute?: (root: HTMLElement) => boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ClipboardContent {
|
|
14
|
+
html: string;
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/types/commands.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AACrC,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,IAAI,EAAE,MAAM,IAAI,CAAC;CACpB;AACD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,eAAe,CAAC;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9D,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;CAC/C;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ImagesUploadHandler } from './upload';
|
|
2
|
+
import { ImagesDeleteHandler } from './image';
|
|
3
|
+
import { MentionConfig, ResolvedMentionConfig } from './mention';
|
|
4
|
+
import { MergeTagConfig, ResolvedMergeTagConfig } from './mergeTag';
|
|
5
|
+
import { EditorTemplatesConfig, ResolvedEditorTemplatesConfig } from './template';
|
|
6
|
+
import { EditorToolbarGroup } from './toolbar';
|
|
7
|
+
export type EditorMenuName = 'file' | 'edit' | 'view' | 'insert' | 'merge-tags' | 'templates' | 'format' | 'tools' | 'table' | 'help';
|
|
8
|
+
export type EditorPluginName = 'history' | 'formatting' | 'lists' | 'link' | 'image' | 'media' | 'table' | 'code' | 'preview' | 'fullscreen' | 'find-replace' | 'special-character' | 'emoji' | 'horizontal-rule' | 'anchor' | 'merge-tags' | 'templates' | 'date-time';
|
|
9
|
+
export interface FontFamilyOption {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FontSizeOption {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LineHeightOption {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BlockFormatOption {
|
|
22
|
+
label: string;
|
|
23
|
+
value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre' | 'blockquote';
|
|
24
|
+
}
|
|
25
|
+
export interface DateTimeFormatOption {
|
|
26
|
+
label: string;
|
|
27
|
+
type: 'date' | 'time';
|
|
28
|
+
format?: 'iso-date';
|
|
29
|
+
options?: Intl.DateTimeFormatOptions;
|
|
30
|
+
}
|
|
31
|
+
export interface EditorInit {
|
|
32
|
+
height?: number | string;
|
|
33
|
+
minHeight?: number | string;
|
|
34
|
+
maxHeight?: number | string;
|
|
35
|
+
width?: number | string;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
menubar?: boolean | EditorMenuName[];
|
|
38
|
+
toolbar?: boolean | string | EditorToolbarGroup[];
|
|
39
|
+
statusbar?: boolean;
|
|
40
|
+
branding?: boolean;
|
|
41
|
+
promotion?: boolean;
|
|
42
|
+
resize?: boolean;
|
|
43
|
+
readonly?: boolean;
|
|
44
|
+
autofocus?: boolean;
|
|
45
|
+
spellcheck?: boolean;
|
|
46
|
+
direction?: 'ltr' | 'rtl';
|
|
47
|
+
contentStyle?: string;
|
|
48
|
+
contentClass?: string;
|
|
49
|
+
fontFamilyFormats?: FontFamilyOption[];
|
|
50
|
+
fontSizeFormats?: FontSizeOption[];
|
|
51
|
+
lineHeightFormats?: LineHeightOption[];
|
|
52
|
+
blockFormats?: BlockFormatOption[];
|
|
53
|
+
textColors?: string[];
|
|
54
|
+
backgroundColors?: string[];
|
|
55
|
+
plugins?: EditorPluginName[];
|
|
56
|
+
acceptedFormats?: string[];
|
|
57
|
+
maxImageSize?: number;
|
|
58
|
+
uploadFieldName?: string;
|
|
59
|
+
uploadHeaders?: Record<string, string>;
|
|
60
|
+
uploadCredentials?: RequestCredentials;
|
|
61
|
+
imagesUploadUrl?: string;
|
|
62
|
+
imagesUploadHandler?: ImagesUploadHandler;
|
|
63
|
+
imagesDeleteHandler?: ImagesDeleteHandler;
|
|
64
|
+
resolveUploadedImageUrl?: (response: unknown) => string | Promise<string>;
|
|
65
|
+
automaticUploads?: boolean;
|
|
66
|
+
pasteImages?: boolean;
|
|
67
|
+
imageFilePicker?: boolean;
|
|
68
|
+
imageUrlInput?: boolean;
|
|
69
|
+
imageResize?: boolean;
|
|
70
|
+
imageDefaultWidth?: number;
|
|
71
|
+
sanitize?: boolean;
|
|
72
|
+
allowedTags?: string[];
|
|
73
|
+
allowedAttributes?: Record<string, string[]>;
|
|
74
|
+
relativeUrls?: boolean;
|
|
75
|
+
removeScriptHost?: boolean;
|
|
76
|
+
convertUrls?: boolean;
|
|
77
|
+
dateFormats?: DateTimeFormatOption[];
|
|
78
|
+
timeFormats?: DateTimeFormatOption[];
|
|
79
|
+
tableGridSize?: number;
|
|
80
|
+
helpShortcutText?: string;
|
|
81
|
+
mentions?: boolean | MentionConfig;
|
|
82
|
+
mergeTags?: boolean | MergeTagConfig;
|
|
83
|
+
templates?: boolean | EditorTemplatesConfig;
|
|
84
|
+
content_style?: string;
|
|
85
|
+
font_family_formats?: FontFamilyOption[];
|
|
86
|
+
font_size_formats?: FontSizeOption[];
|
|
87
|
+
line_height_formats?: LineHeightOption[];
|
|
88
|
+
images_upload_url?: string;
|
|
89
|
+
images_upload_handler?: ImagesUploadHandler;
|
|
90
|
+
images_delete_handler?: ImagesDeleteHandler;
|
|
91
|
+
automatic_uploads?: boolean;
|
|
92
|
+
relative_urls?: boolean;
|
|
93
|
+
remove_script_host?: boolean;
|
|
94
|
+
convert_urls?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export type ResolvedEditorInit = Required<Omit<EditorInit, 'height' | 'maxHeight' | 'width' | 'imagesUploadUrl' | 'imagesUploadHandler' | 'imagesDeleteHandler' | 'resolveUploadedImageUrl' | 'mentions' | 'mergeTags' | 'templates' | 'content_style' | 'font_family_formats' | 'font_size_formats' | 'line_height_formats' | 'images_upload_url' | 'images_upload_handler' | 'images_delete_handler' | 'automatic_uploads' | 'relative_urls' | 'remove_script_host' | 'convert_urls'>> & Pick<EditorInit, 'height' | 'maxHeight' | 'width' | 'imagesUploadUrl' | 'imagesUploadHandler' | 'imagesDeleteHandler' | 'resolveUploadedImageUrl'> & {
|
|
97
|
+
mentions: ResolvedMentionConfig;
|
|
98
|
+
mergeTags: ResolvedMergeTagConfig;
|
|
99
|
+
templates: ResolvedEditorTemplatesConfig;
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACpB,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,CAAC;AACb,MAAM,MAAM,gBAAgB,GACtB,SAAS,GACT,YAAY,GACZ,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,GACT,YAAY,GACZ,cAAc,GACd,mBAAmB,GACnB,OAAO,GACP,iBAAiB,GACjB,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;AAElB,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,YAAY,CAAC;CAC/E;AACD,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACxC;AAED,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,S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
|
+
words: number;
|
|
3
|
+
charactersWithoutSpaces: number;
|
|
4
|
+
characters: number;
|
|
5
|
+
}
|
|
6
|
+
export interface WordCountData {
|
|
7
|
+
document: TextCountStatistics;
|
|
8
|
+
selection: TextCountStatistics;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=count.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/types/count.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,mBAAmB,CAAC;CAClC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ResolvedEditorInit } from './config';
|
|
2
|
+
import { WordCountData } from './count';
|
|
3
|
+
import { EditorTemplateItem } from './template';
|
|
4
|
+
export type EditorDialogName = 'link' | 'media' | 'table' | 'special-character' | 'emoji' | 'source' | 'preview' | 'find-replace' | 'shortcuts' | 'about' | 'word-count' | 'table-properties' | 'templates';
|
|
5
|
+
export interface LinkValue {
|
|
6
|
+
url: string;
|
|
7
|
+
text: string;
|
|
8
|
+
title: string;
|
|
9
|
+
target: '_self' | '_blank';
|
|
10
|
+
}
|
|
11
|
+
export interface MediaValue {
|
|
12
|
+
type: 'video' | 'audio' | 'iframe';
|
|
13
|
+
src: string;
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
poster: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EditorDialogsProps {
|
|
19
|
+
dialog: EditorDialogName | null;
|
|
20
|
+
dialogMode: 'forecolor' | 'backcolor' | null;
|
|
21
|
+
config: ResolvedEditorInit;
|
|
22
|
+
linkInitial: LinkValue;
|
|
23
|
+
html: string;
|
|
24
|
+
previewHtml: string;
|
|
25
|
+
root: HTMLElement | null;
|
|
26
|
+
wordCountData: WordCountData;
|
|
27
|
+
}
|
|
28
|
+
export interface EditorDialogsEmits {
|
|
29
|
+
close: [];
|
|
30
|
+
saveLink: [value: LinkValue];
|
|
31
|
+
unlink: [];
|
|
32
|
+
saveMedia: [value: MediaValue];
|
|
33
|
+
saveTable: [rows: number, columns: number];
|
|
34
|
+
selectCharacter: [value: string];
|
|
35
|
+
saveSource: [value: string];
|
|
36
|
+
changed: [];
|
|
37
|
+
saveTableProperties: [values: Record<string, string>];
|
|
38
|
+
selectColor: [color: string];
|
|
39
|
+
insertTemplate: [item: EditorTemplateItem];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/types/dialog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACtB,MAAM,GACN,OAAO,GACP,OAAO,GACP,mBAAmB,GACnB,OAAO,GACP,QAAQ,GACR,SAAS,GACT,cAAc,GACd,WAAW,GACX,OAAO,GACP,YAAY,GACZ,kBAAkB,GAClB,WAAW,CAAC;AAClB,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B;AACD,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,WAAW,GAAG,WAAW,GAAG,IAAI,CAAC;IAC7C,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC7B,MAAM,EAAE,EAAE,CAAC;IACX,SAAS,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC/B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC5B,OAAO,EAAE,EAAE,CAAC;IACZ,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,cAAc,EAAE,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;CAC9C;AACD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EditorInit } from './config';
|
|
2
|
+
import { MentionErrorSlotProps, MentionItemSlotProps, MentionQuerySlotProps } from './mention';
|
|
3
|
+
export interface EditorSlots {
|
|
4
|
+
'toolbar-start'(): unknown;
|
|
5
|
+
'toolbar-end'(): unknown;
|
|
6
|
+
'menubar-end'(): unknown;
|
|
7
|
+
'statusbar-start'(): unknown;
|
|
8
|
+
'statusbar-end'(): unknown;
|
|
9
|
+
'mention-item'(props: MentionItemSlotProps): unknown;
|
|
10
|
+
'mention-loading'(props: MentionQuerySlotProps): unknown;
|
|
11
|
+
'mention-empty'(props: MentionQuerySlotProps): unknown;
|
|
12
|
+
'mention-error'(props: MentionErrorSlotProps): unknown;
|
|
13
|
+
empty(): unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface EditorProps {
|
|
16
|
+
modelValue?: string;
|
|
17
|
+
init?: EditorInit;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
readonly?: boolean;
|
|
20
|
+
id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EditorInstance {
|
|
25
|
+
focus(): void;
|
|
26
|
+
blur(): void;
|
|
27
|
+
getHtml(): string;
|
|
28
|
+
setHtml(value: string): void;
|
|
29
|
+
getText(): string;
|
|
30
|
+
clear(): void;
|
|
31
|
+
insertHtml(value: string): void;
|
|
32
|
+
insertText(value: string): void;
|
|
33
|
+
selectAll(): void;
|
|
34
|
+
undo(): void;
|
|
35
|
+
redo(): void;
|
|
36
|
+
openSourceCode(): void;
|
|
37
|
+
openPreview(): void;
|
|
38
|
+
getRootElement(): HTMLElement | null;
|
|
39
|
+
}
|
|
40
|
+
export interface EditorCounts {
|
|
41
|
+
words: number;
|
|
42
|
+
characters: number;
|
|
43
|
+
}
|
|
44
|
+
export interface EditorSelectionState {
|
|
45
|
+
path: string;
|
|
46
|
+
commands: Record<string, boolean>;
|
|
47
|
+
insideTable: boolean;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/types/editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C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;IACb,cAAc,IAAI,IAAI,CAAC;IACvB,WAAW,IAAI,IAAI,CAAC;IACpB,cAAc,IAAI,WAAW,GAAG,IAAI,CAAC;CACxC;AACD,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type EmojiCategory = 'Smileys & People' | 'Animals & Nature' | 'Food & Drink' | 'Activity' | 'Travel & Places' | 'Objects' | 'Symbols' | 'Flags';
|
|
2
|
+
export type EmojiCategoryFilter = 'All' | EmojiCategory;
|
|
3
|
+
export interface EmojiItem {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
category: EmojiCategory;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=emoji.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji.d.ts","sourceRoot":"","sources":["../../../src/types/emoji.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,OAAO,CAAC;AAEd,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,aAAa,CAAC;AAExD,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC;CAC3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MentionRemoveEvent, MentionSearchEvent, MentionSelectEvent } from './mention';
|
|
2
|
+
import { MergeTagRemoveEvent, MergeTagSelectEvent } from './mergeTag';
|
|
3
|
+
import { TemplateInsertEvent } from './template';
|
|
4
|
+
import { ImageDeleteInfo } from './image';
|
|
5
|
+
export interface EditorEmits {
|
|
6
|
+
(event: 'update:modelValue', value: string): void;
|
|
7
|
+
(event: 'click', value: MouseEvent): void;
|
|
8
|
+
(event: 'focus' | 'blur', value: FocusEvent): void;
|
|
9
|
+
(event: 'input', value: InputEvent): void;
|
|
10
|
+
(event: 'change', value: string): void;
|
|
11
|
+
(event: 'keydown', value: KeyboardEvent): void;
|
|
12
|
+
(event: 'paste', value: ClipboardEvent): void;
|
|
13
|
+
(event: 'ready', value: HTMLElement): void;
|
|
14
|
+
(event: 'selection-change', value: Selection): void;
|
|
15
|
+
(event: 'resize', value: {
|
|
16
|
+
height: number;
|
|
17
|
+
}): void;
|
|
18
|
+
(event: 'mention-search', value: MentionSearchEvent): void;
|
|
19
|
+
(event: 'mention-select', value: MentionSelectEvent): void;
|
|
20
|
+
(event: 'mention-remove', value: MentionRemoveEvent): void;
|
|
21
|
+
(event: 'merge-tag-select', value: MergeTagSelectEvent): void;
|
|
22
|
+
(event: 'merge-tag-remove', value: MergeTagRemoveEvent): void;
|
|
23
|
+
(event: 'template-insert', value: TemplateInsertEvent): void;
|
|
24
|
+
(event: 'image-remove', value: ImageDeleteInfo): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,WAAW,WAAW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G,IAAI,CAAC;IAC7D,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;CACzD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ImageResizeBox {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ImageValue {
|
|
8
|
+
src: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
width: string;
|
|
11
|
+
height: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ImageDeleteInfo {
|
|
14
|
+
src: string;
|
|
15
|
+
alt: string;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}
|
|
19
|
+
export type ImagesDeleteHandler = (image: ImageDeleteInfo) => void | Promise<void>;
|
|
20
|
+
export type ImageAlignment = 'alignleft' | 'aligncenter' | 'alignright';
|
|
21
|
+
export type ImageResizeHandle = 'north-west' | 'north-east' | 'south-west' | 'south-east';
|
|
22
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/types/image.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnF,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,aAAa,GAAG,YAAY,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type * from './commands';
|
|
2
|
+
export type * from './config';
|
|
3
|
+
export type * from './count';
|
|
4
|
+
export type * from './dialog';
|
|
5
|
+
export type * from './editor';
|
|
6
|
+
export type * from './emoji';
|
|
7
|
+
export type * from './events';
|
|
8
|
+
export type * from './image';
|
|
9
|
+
export type * from './menu';
|
|
10
|
+
export type * from './mention';
|
|
11
|
+
export type * from './mergeTag';
|
|
12
|
+
export type * from './specialCharacter';
|
|
13
|
+
export type * from './template';
|
|
14
|
+
export type * from './toolbar';
|
|
15
|
+
export type * from './upload';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,UAAU,CAAC"}
|