@jx-health/rich-editor 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +28 -40
- package/dist/index.js +578 -490
- package/dist/style.css +48 -48
- package/package.json +60 -59
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
1
|
import { HTMLAttributes, Plugin } from "vue";
|
|
3
|
-
import * as _$_tiptap_core0 from "@tiptap/core";
|
|
4
2
|
import { AnyExtension, Editor, Editor as Editor$1, Editor as EditorInstance, Extension, JSONContent, JSONContent as JSONContent$1, Node, Range } from "@tiptap/core";
|
|
5
3
|
import { Editor as Editor$2, Node as Node$1, useEditor } from "@tiptap/vue-3";
|
|
6
4
|
import { PluginKey } from "@tiptap/pm/state";
|
|
@@ -33,7 +31,6 @@ import { PlaceholderOptions } from "@tiptap/extension-placeholder";
|
|
|
33
31
|
import { TextStyleOptions } from "@tiptap/extension-text-style";
|
|
34
32
|
import { SubscriptExtensionOptions } from "@tiptap/extension-subscript";
|
|
35
33
|
import { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
|
|
36
|
-
import * as _$_tiptap_extension_image0 from "@tiptap/extension-image";
|
|
37
34
|
import { TableHeaderOptions } from "@tiptap/extension-table-header";
|
|
38
35
|
import { TableRowOptions } from "@tiptap/extension-table-row";
|
|
39
36
|
import { TableCellOptions } from "@tiptap/extension-table-cell";
|
|
@@ -309,21 +306,21 @@ declare var __VLS_43: {
|
|
|
309
306
|
type __VLS_Slots$1 = {} & {
|
|
310
307
|
footer?: (props: typeof __VLS_43) => any;
|
|
311
308
|
};
|
|
312
|
-
declare const __VLS_component$1:
|
|
309
|
+
declare const __VLS_component$1: import("vue").DefineComponent<RichEditorProps, {
|
|
313
310
|
editor: Editor$2;
|
|
314
|
-
}, {}, {}, {},
|
|
311
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
315
312
|
enter: () => any;
|
|
316
313
|
change: (value: RichEditorOnChange) => any;
|
|
317
314
|
"update:modelValue": (value: string | JSONContent$1) => any;
|
|
318
|
-
}, string,
|
|
315
|
+
}, string, import("vue").PublicProps, Readonly<RichEditorProps> & Readonly<{
|
|
319
316
|
onEnter?: (() => any) | undefined;
|
|
320
317
|
onChange?: ((value: RichEditorOnChange) => any) | undefined;
|
|
321
318
|
"onUpdate:modelValue"?: ((value: string | JSONContent$1) => any) | undefined;
|
|
322
319
|
}>, {
|
|
320
|
+
disabled: boolean;
|
|
323
321
|
modelValue: string | JSONContent$1;
|
|
324
322
|
output: "html" | "json" | "text";
|
|
325
323
|
dark: boolean;
|
|
326
|
-
disabled: boolean;
|
|
327
324
|
hideToolbar: boolean;
|
|
328
325
|
hideMenubar: boolean;
|
|
329
326
|
hideBubble: boolean;
|
|
@@ -334,7 +331,7 @@ declare const __VLS_component$1: _$vue.DefineComponent<RichEditorProps, {
|
|
|
334
331
|
extensions: AnyExtension[];
|
|
335
332
|
editorClass: string | string[] | Record<string, any>;
|
|
336
333
|
contentClass: string | string[] | Record<string, any>;
|
|
337
|
-
}, {}, {}, {}, string,
|
|
334
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
338
335
|
declare const _default$1: __VLS_WithSlots$1<typeof __VLS_component$1, __VLS_Slots$1>;
|
|
339
336
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
340
337
|
new (): {
|
|
@@ -364,11 +361,11 @@ type __VLS_Slots = {} & {
|
|
|
364
361
|
} & {
|
|
365
362
|
default?: (props: typeof __VLS_32) => any;
|
|
366
363
|
};
|
|
367
|
-
declare const __VLS_component:
|
|
368
|
-
disabled: boolean;
|
|
364
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
369
365
|
icon: keyof typeof icons;
|
|
370
366
|
title: string;
|
|
371
367
|
tooltip: string;
|
|
368
|
+
disabled: boolean;
|
|
372
369
|
shortcutKeys: string[];
|
|
373
370
|
customClass: string;
|
|
374
371
|
loading: boolean;
|
|
@@ -376,7 +373,7 @@ declare const __VLS_component: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vu
|
|
|
376
373
|
color: string;
|
|
377
374
|
action: (value?: any) => void;
|
|
378
375
|
isActive: () => boolean;
|
|
379
|
-
}, {}, {}, {}, string,
|
|
376
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
380
377
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
381
378
|
type __VLS_WithSlots<T, S> = T & {
|
|
382
379
|
new (): {
|
|
@@ -386,23 +383,23 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
386
383
|
//#endregion
|
|
387
384
|
//#region src/extensions/Bold/Bold.d.ts
|
|
388
385
|
interface BoldOptions extends BoldOptions$1, GeneralOptions<BoldOptions> {}
|
|
389
|
-
declare const Bold:
|
|
386
|
+
declare const Bold: import("@tiptap/core").Mark<BoldOptions, any>;
|
|
390
387
|
//#endregion
|
|
391
388
|
//#region src/extensions/Italic/Italic.d.ts
|
|
392
389
|
interface ItalicOptions extends ItalicOptions$1, GeneralOptions<ItalicOptions> {}
|
|
393
|
-
declare const Italic:
|
|
390
|
+
declare const Italic: import("@tiptap/core").Mark<ItalicOptions, any>;
|
|
394
391
|
//#endregion
|
|
395
392
|
//#region src/extensions/UnderLine/Underline.d.ts
|
|
396
393
|
interface UnderlineOptions extends UnderlineOptions$1, GeneralOptions<UnderlineOptions> {}
|
|
397
|
-
declare const Underline:
|
|
394
|
+
declare const Underline: import("@tiptap/core").Mark<UnderlineOptions, any>;
|
|
398
395
|
//#endregion
|
|
399
396
|
//#region src/extensions/Strike/Strike.d.ts
|
|
400
397
|
interface StrikeOptions extends StrikeOptions$1, GeneralOptions<StrikeOptions> {}
|
|
401
|
-
declare const Strike:
|
|
398
|
+
declare const Strike: import("@tiptap/core").Mark<StrikeOptions, any>;
|
|
402
399
|
//#endregion
|
|
403
400
|
//#region src/extensions/Code/Code.d.ts
|
|
404
401
|
interface CodeOptions extends CodeOptions$1, GeneralOptions<CodeOptions> {}
|
|
405
|
-
declare const Code:
|
|
402
|
+
declare const Code: import("@tiptap/core").Mark<CodeOptions, any>;
|
|
406
403
|
//#endregion
|
|
407
404
|
//#region src/extensions/CodeBlock/CodeBlock.d.ts
|
|
408
405
|
interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {}
|
|
@@ -420,7 +417,7 @@ declare const CodeBlock: Node<any, any>;
|
|
|
420
417
|
//#endregion
|
|
421
418
|
//#region src/extensions/Heading/Heading.d.ts
|
|
422
419
|
interface HeadingOptions extends HeadingOptions$1, GeneralOptions<HeadingOptions> {}
|
|
423
|
-
declare const Heading:
|
|
420
|
+
declare const Heading: import("@tiptap/core").Node<HeadingOptions, any>;
|
|
424
421
|
//#endregion
|
|
425
422
|
//#region src/extensions/TextAlign/TextAlign.d.ts
|
|
426
423
|
type Alignments = 'left' | 'center' | 'right' | 'justify';
|
|
@@ -470,15 +467,15 @@ declare const FontSize: Extension<FontSizeOptions, any>;
|
|
|
470
467
|
//#endregion
|
|
471
468
|
//#region src/extensions/Color/Color.d.ts
|
|
472
469
|
interface ColorOptions extends ColorOptions$1, GeneralOptions<ColorOptions> {}
|
|
473
|
-
declare const Color:
|
|
470
|
+
declare const Color: import("@tiptap/core").Extension<ColorOptions, any>;
|
|
474
471
|
//#endregion
|
|
475
472
|
//#region src/extensions/Highlight/Highlight.d.ts
|
|
476
473
|
interface HighlightOptions extends HighlightOptions$1, GeneralOptions<HighlightOptions> {}
|
|
477
|
-
declare const Highlight:
|
|
474
|
+
declare const Highlight: import("@tiptap/core").Mark<HighlightOptions, any>;
|
|
478
475
|
//#endregion
|
|
479
476
|
//#region src/extensions/BulletList/BulletList.d.ts
|
|
480
477
|
interface BulletListOptions extends BulletListOptions$1, GeneralOptions<BulletListOptions> {}
|
|
481
|
-
declare const BulletList:
|
|
478
|
+
declare const BulletList: import("@tiptap/core").Node<BulletListOptions, any>;
|
|
482
479
|
//#endregion
|
|
483
480
|
//#region src/extensions/Clear/Clear.d.ts
|
|
484
481
|
interface ClearOptions extends GeneralOptions<ClearOptions> {}
|
|
@@ -486,7 +483,7 @@ declare const Clear: Node<ClearOptions, any>;
|
|
|
486
483
|
//#endregion
|
|
487
484
|
//#region src/extensions/OrderedList/OrderedList.d.ts
|
|
488
485
|
interface OrderedListOptions extends OrderedListOptions$1, GeneralOptions<OrderedListOptions> {}
|
|
489
|
-
declare const OrderedList:
|
|
486
|
+
declare const OrderedList: import("@tiptap/core").Node<OrderedListOptions, any>;
|
|
490
487
|
//#endregion
|
|
491
488
|
//#region src/extensions/TaskList/TaskList.d.ts
|
|
492
489
|
/**
|
|
@@ -496,23 +493,23 @@ interface TaskListOptions extends TaskListOptions$1, GeneralOptions<TaskListOpti
|
|
|
496
493
|
/** options for task items */
|
|
497
494
|
taskItem: Partial<TaskItemOptions>;
|
|
498
495
|
}
|
|
499
|
-
declare const TaskList:
|
|
496
|
+
declare const TaskList: import("@tiptap/core").Node<TaskListOptions, any>;
|
|
500
497
|
//#endregion
|
|
501
498
|
//#region src/extensions/Blockquote/Blockquote.d.ts
|
|
502
499
|
interface BlockquoteOptions extends BlockquoteOptions$1, GeneralOptions<BlockquoteOptions> {}
|
|
503
|
-
declare const Blockquote:
|
|
500
|
+
declare const Blockquote: import("@tiptap/core").Node<BlockquoteOptions, any>;
|
|
504
501
|
//#endregion
|
|
505
502
|
//#region src/extensions/Link/Link.d.ts
|
|
506
503
|
interface LinkOptions extends LinkOptions$1, GeneralOptions<LinkOptions> {}
|
|
507
|
-
declare const Link:
|
|
504
|
+
declare const Link: import("@tiptap/core").Mark<LinkOptions, any>;
|
|
508
505
|
//#endregion
|
|
509
506
|
//#region src/extensions/HorizontalRule/HorizontalRule.d.ts
|
|
510
507
|
interface HorizontalRuleOptions extends HorizontalRuleOptions$1, GeneralOptions<HorizontalRuleOptions> {}
|
|
511
|
-
declare const HorizontalRule:
|
|
508
|
+
declare const HorizontalRule: import("@tiptap/core").Node<HorizontalRuleOptions, any>;
|
|
512
509
|
//#endregion
|
|
513
510
|
//#region src/extensions/History/History.d.ts
|
|
514
511
|
interface HistoryOptions extends HistoryOptions$1, GeneralOptions<HistoryOptions> {}
|
|
515
|
-
declare const History:
|
|
512
|
+
declare const History: import("@tiptap/core").Extension<HistoryOptions, any>;
|
|
516
513
|
//#endregion
|
|
517
514
|
//#region src/extensions/Fullscreen/Fullscreen.d.ts
|
|
518
515
|
interface FullscreenOptions extends GeneralOptions<FullscreenOptions> {}
|
|
@@ -765,16 +762,7 @@ declare module '@tiptap/core' {
|
|
|
765
762
|
declare const LineHeight: Extension<LineHeightOptions, any>;
|
|
766
763
|
//#endregion
|
|
767
764
|
//#region src/extensions/SlashCommand/SlashCommand.d.ts
|
|
768
|
-
declare const SlashCommand: Extension<any,
|
|
769
|
-
rect: {
|
|
770
|
-
width: number;
|
|
771
|
-
height: number;
|
|
772
|
-
left: number;
|
|
773
|
-
top: number;
|
|
774
|
-
right: number;
|
|
775
|
-
bottom: number;
|
|
776
|
-
};
|
|
777
|
-
}>;
|
|
765
|
+
declare const SlashCommand: Extension<any, any>;
|
|
778
766
|
//#endregion
|
|
779
767
|
//#region src/extensions/Image/Image.d.ts
|
|
780
768
|
interface SetImageAttrsOptions {
|
|
@@ -804,7 +792,7 @@ declare module '@tiptap/core' {
|
|
|
804
792
|
};
|
|
805
793
|
}
|
|
806
794
|
}
|
|
807
|
-
declare const Image:
|
|
795
|
+
declare const Image: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
|
|
808
796
|
//#endregion
|
|
809
797
|
//#region src/extensions/Video/Video.d.ts
|
|
810
798
|
/**
|
|
@@ -889,7 +877,7 @@ interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
889
877
|
/** options for table cell background */
|
|
890
878
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
891
879
|
}
|
|
892
|
-
declare const Table:
|
|
880
|
+
declare const Table: import("@tiptap/core").Node<TableOptions, any>;
|
|
893
881
|
//#endregion
|
|
894
882
|
//#region src/extensions/AI/AI.d.ts
|
|
895
883
|
interface MenuItem {
|
|
@@ -1027,7 +1015,7 @@ declare module '@tiptap/core' {
|
|
|
1027
1015
|
};
|
|
1028
1016
|
}
|
|
1029
1017
|
}
|
|
1030
|
-
declare const FontFamily:
|
|
1018
|
+
declare const FontFamily: import("@tiptap/core").Extension<FontFamilyOptions, any>;
|
|
1031
1019
|
//#endregion
|
|
1032
1020
|
//#region src/extensions/Preview/Preview.d.ts
|
|
1033
1021
|
declare module '@tiptap/core' {
|
|
@@ -1124,4 +1112,4 @@ declare const Iframe: Node<IframeOptions, any>;
|
|
|
1124
1112
|
//#region src/index.d.ts
|
|
1125
1113
|
declare const RichEditorPlugin: Plugin;
|
|
1126
1114
|
//#endregion
|
|
1127
|
-
export { AI, _default as ActionButton, BaseKit, type BaseKitOptions, Blockquote, type BlockquoteOptions, Bold, type BoldOptions, BulletList, type BulletListOptions, ButtonView, ButtonViewParams, ButtonViewReturn, ButtonViewReturnComponentProps, ButtonViewReturnComponentSlots, Clear, type ClearOptions, Code, CodeBlock, type CodeBlockOptions, type CodeOptions, Color, type ColorOptions, Columns, type ColumnsOptions, type Editor, type EditorInstance, ExtensionNameKeys, FindAndReplace, FontFamily, type FontFamilyOptions, FontSize, type FontSizeOptions, FormatPainter, type FormatPainterOptions, Fullscreen, type FullscreenOptions, GeneralOptions, Heading, type HeadingOptions, Highlight, type HighlightOptions, History, type HistoryOptions, HorizontalRule, type HorizontalRuleOptions, Iframe, type IframeOptions, Image, ImageUpload, type ImageUploadOptions, ImportWord, type ImportWordOptions, Indent, type IndentOptions, Italic, type ItalicOptions, type JSONContent, LineHeight, type LineHeightOptions, Link, type LinkOptions, MoreMark, type MoreMarkOptions, OrderedList, type OrderedListOptions, Preview, type PreviewOptions, Printer, type PrinterOptions, _default$1 as RichEditor, type RichEditorEmits, RichEditorOnChange, RichEditorPlugin, RichEditorPlugin as default, type RichEditorProps, type SetImageAttrsOptions, SlashCommand, Strike, type StrikeOptions, SubAndSuperScript, type SubAndSuperScriptOptions, Table, type TableOptions, TaskList, type TaskListOptions, TextAlign, type TextAlignOptions, Underline, type UnderlineOptions, Video, type VideoOptions, VideoUpload, useEditor };
|
|
1115
|
+
export { AI, _default as ActionButton, BaseKit, type BaseKitOptions, Blockquote, type BlockquoteOptions, Bold, type BoldOptions, BulletList, type BulletListOptions, type ButtonView, type ButtonViewParams, type ButtonViewReturn, type ButtonViewReturnComponentProps, type ButtonViewReturnComponentSlots, Clear, type ClearOptions, Code, CodeBlock, type CodeBlockOptions, type CodeOptions, Color, type ColorOptions, Columns, type ColumnsOptions, type Editor, type EditorInstance, type ExtensionNameKeys, FindAndReplace, FontFamily, type FontFamilyOptions, FontSize, type FontSizeOptions, FormatPainter, type FormatPainterOptions, Fullscreen, type FullscreenOptions, type GeneralOptions, Heading, type HeadingOptions, Highlight, type HighlightOptions, History, type HistoryOptions, HorizontalRule, type HorizontalRuleOptions, Iframe, type IframeOptions, Image, ImageUpload, type ImageUploadOptions, ImportWord, type ImportWordOptions, Indent, type IndentOptions, Italic, type ItalicOptions, type JSONContent, LineHeight, type LineHeightOptions, Link, type LinkOptions, MoreMark, type MoreMarkOptions, OrderedList, type OrderedListOptions, Preview, type PreviewOptions, Printer, type PrinterOptions, _default$1 as RichEditor, type RichEditorEmits, type RichEditorOnChange, RichEditorPlugin, RichEditorPlugin as default, type RichEditorProps, type SetImageAttrsOptions, SlashCommand, Strike, type StrikeOptions, SubAndSuperScript, type SubAndSuperScriptOptions, Table, type TableOptions, TaskList, type TaskListOptions, TextAlign, type TextAlignOptions, Underline, type UnderlineOptions, Video, type VideoOptions, VideoUpload, useEditor };
|