@jx-health/rich-editor 0.0.2 → 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 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";
@@ -303,27 +300,27 @@ interface RichEditorEmits {
303
300
  }
304
301
  //#endregion
305
302
  //#region src/components/RichEditor.vue.d.ts
306
- declare var __VLS_68: {
303
+ declare var __VLS_43: {
307
304
  editor: Editor$2;
308
305
  };
309
306
  type __VLS_Slots$1 = {} & {
310
- footer?: (props: typeof __VLS_68) => any;
307
+ footer?: (props: typeof __VLS_43) => any;
311
308
  };
312
- declare const __VLS_base$1: _$vue.DefineComponent<RichEditorProps, {
309
+ declare const __VLS_component$1: import("vue").DefineComponent<RichEditorProps, {
313
310
  editor: Editor$2;
314
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
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, _$vue.PublicProps, Readonly<RichEditorProps> & Readonly<{
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,9 +331,8 @@ declare const __VLS_base$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, _$vue.ComponentProvideOptions, false, {}, any>;
338
- declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
339
- declare const _default$1: typeof __VLS_export$1;
334
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
335
+ declare const _default$1: __VLS_WithSlots$1<typeof __VLS_component$1, __VLS_Slots$1>;
340
336
  type __VLS_WithSlots$1<T, S> = T & {
341
337
  new (): {
342
338
  $slots: S;
@@ -359,17 +355,17 @@ interface Props {
359
355
  editor?: Editor$1;
360
356
  class?: HTMLAttributes['class'];
361
357
  }
362
- declare var __VLS_38: {}, __VLS_40: {};
358
+ declare var __VLS_30: {}, __VLS_32: {};
363
359
  type __VLS_Slots = {} & {
364
- icon?: (props: typeof __VLS_38) => any;
360
+ icon?: (props: typeof __VLS_30) => any;
365
361
  } & {
366
- default?: (props: typeof __VLS_40) => any;
362
+ default?: (props: typeof __VLS_32) => any;
367
363
  };
368
- declare const __VLS_base: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props> & Readonly<{}>, {
369
- disabled: boolean;
364
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
370
365
  icon: keyof typeof icons;
371
366
  title: string;
372
367
  tooltip: string;
368
+ disabled: boolean;
373
369
  shortcutKeys: string[];
374
370
  customClass: string;
375
371
  loading: boolean;
@@ -377,9 +373,8 @@ declare const __VLS_base: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vue.Com
377
373
  color: string;
378
374
  action: (value?: any) => void;
379
375
  isActive: () => boolean;
380
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
381
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
382
- declare const _default: typeof __VLS_export;
376
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
377
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
383
378
  type __VLS_WithSlots<T, S> = T & {
384
379
  new (): {
385
380
  $slots: S;
@@ -388,23 +383,23 @@ type __VLS_WithSlots<T, S> = T & {
388
383
  //#endregion
389
384
  //#region src/extensions/Bold/Bold.d.ts
390
385
  interface BoldOptions extends BoldOptions$1, GeneralOptions<BoldOptions> {}
391
- declare const Bold: _$_tiptap_core0.Mark<BoldOptions, any>;
386
+ declare const Bold: import("@tiptap/core").Mark<BoldOptions, any>;
392
387
  //#endregion
393
388
  //#region src/extensions/Italic/Italic.d.ts
394
389
  interface ItalicOptions extends ItalicOptions$1, GeneralOptions<ItalicOptions> {}
395
- declare const Italic: _$_tiptap_core0.Mark<ItalicOptions, any>;
390
+ declare const Italic: import("@tiptap/core").Mark<ItalicOptions, any>;
396
391
  //#endregion
397
392
  //#region src/extensions/UnderLine/Underline.d.ts
398
393
  interface UnderlineOptions extends UnderlineOptions$1, GeneralOptions<UnderlineOptions> {}
399
- declare const Underline: _$_tiptap_core0.Mark<UnderlineOptions, any>;
394
+ declare const Underline: import("@tiptap/core").Mark<UnderlineOptions, any>;
400
395
  //#endregion
401
396
  //#region src/extensions/Strike/Strike.d.ts
402
397
  interface StrikeOptions extends StrikeOptions$1, GeneralOptions<StrikeOptions> {}
403
- declare const Strike: _$_tiptap_core0.Mark<StrikeOptions, any>;
398
+ declare const Strike: import("@tiptap/core").Mark<StrikeOptions, any>;
404
399
  //#endregion
405
400
  //#region src/extensions/Code/Code.d.ts
406
401
  interface CodeOptions extends CodeOptions$1, GeneralOptions<CodeOptions> {}
407
- declare const Code: _$_tiptap_core0.Mark<CodeOptions, any>;
402
+ declare const Code: import("@tiptap/core").Mark<CodeOptions, any>;
408
403
  //#endregion
409
404
  //#region src/extensions/CodeBlock/CodeBlock.d.ts
410
405
  interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {}
@@ -422,7 +417,7 @@ declare const CodeBlock: Node<any, any>;
422
417
  //#endregion
423
418
  //#region src/extensions/Heading/Heading.d.ts
424
419
  interface HeadingOptions extends HeadingOptions$1, GeneralOptions<HeadingOptions> {}
425
- declare const Heading: _$_tiptap_core0.Node<HeadingOptions, any>;
420
+ declare const Heading: import("@tiptap/core").Node<HeadingOptions, any>;
426
421
  //#endregion
427
422
  //#region src/extensions/TextAlign/TextAlign.d.ts
428
423
  type Alignments = 'left' | 'center' | 'right' | 'justify';
@@ -472,15 +467,15 @@ declare const FontSize: Extension<FontSizeOptions, any>;
472
467
  //#endregion
473
468
  //#region src/extensions/Color/Color.d.ts
474
469
  interface ColorOptions extends ColorOptions$1, GeneralOptions<ColorOptions> {}
475
- declare const Color: _$_tiptap_core0.Extension<ColorOptions, any>;
470
+ declare const Color: import("@tiptap/core").Extension<ColorOptions, any>;
476
471
  //#endregion
477
472
  //#region src/extensions/Highlight/Highlight.d.ts
478
473
  interface HighlightOptions extends HighlightOptions$1, GeneralOptions<HighlightOptions> {}
479
- declare const Highlight: _$_tiptap_core0.Mark<HighlightOptions, any>;
474
+ declare const Highlight: import("@tiptap/core").Mark<HighlightOptions, any>;
480
475
  //#endregion
481
476
  //#region src/extensions/BulletList/BulletList.d.ts
482
477
  interface BulletListOptions extends BulletListOptions$1, GeneralOptions<BulletListOptions> {}
483
- declare const BulletList: _$_tiptap_core0.Node<BulletListOptions, any>;
478
+ declare const BulletList: import("@tiptap/core").Node<BulletListOptions, any>;
484
479
  //#endregion
485
480
  //#region src/extensions/Clear/Clear.d.ts
486
481
  interface ClearOptions extends GeneralOptions<ClearOptions> {}
@@ -488,7 +483,7 @@ declare const Clear: Node<ClearOptions, any>;
488
483
  //#endregion
489
484
  //#region src/extensions/OrderedList/OrderedList.d.ts
490
485
  interface OrderedListOptions extends OrderedListOptions$1, GeneralOptions<OrderedListOptions> {}
491
- declare const OrderedList: _$_tiptap_core0.Node<OrderedListOptions, any>;
486
+ declare const OrderedList: import("@tiptap/core").Node<OrderedListOptions, any>;
492
487
  //#endregion
493
488
  //#region src/extensions/TaskList/TaskList.d.ts
494
489
  /**
@@ -498,23 +493,23 @@ interface TaskListOptions extends TaskListOptions$1, GeneralOptions<TaskListOpti
498
493
  /** options for task items */
499
494
  taskItem: Partial<TaskItemOptions>;
500
495
  }
501
- declare const TaskList: _$_tiptap_core0.Node<TaskListOptions, any>;
496
+ declare const TaskList: import("@tiptap/core").Node<TaskListOptions, any>;
502
497
  //#endregion
503
498
  //#region src/extensions/Blockquote/Blockquote.d.ts
504
499
  interface BlockquoteOptions extends BlockquoteOptions$1, GeneralOptions<BlockquoteOptions> {}
505
- declare const Blockquote: _$_tiptap_core0.Node<BlockquoteOptions, any>;
500
+ declare const Blockquote: import("@tiptap/core").Node<BlockquoteOptions, any>;
506
501
  //#endregion
507
502
  //#region src/extensions/Link/Link.d.ts
508
503
  interface LinkOptions extends LinkOptions$1, GeneralOptions<LinkOptions> {}
509
- declare const Link: _$_tiptap_core0.Mark<LinkOptions, any>;
504
+ declare const Link: import("@tiptap/core").Mark<LinkOptions, any>;
510
505
  //#endregion
511
506
  //#region src/extensions/HorizontalRule/HorizontalRule.d.ts
512
507
  interface HorizontalRuleOptions extends HorizontalRuleOptions$1, GeneralOptions<HorizontalRuleOptions> {}
513
- declare const HorizontalRule: _$_tiptap_core0.Node<HorizontalRuleOptions, any>;
508
+ declare const HorizontalRule: import("@tiptap/core").Node<HorizontalRuleOptions, any>;
514
509
  //#endregion
515
510
  //#region src/extensions/History/History.d.ts
516
511
  interface HistoryOptions extends HistoryOptions$1, GeneralOptions<HistoryOptions> {}
517
- declare const History: _$_tiptap_core0.Extension<HistoryOptions, any>;
512
+ declare const History: import("@tiptap/core").Extension<HistoryOptions, any>;
518
513
  //#endregion
519
514
  //#region src/extensions/Fullscreen/Fullscreen.d.ts
520
515
  interface FullscreenOptions extends GeneralOptions<FullscreenOptions> {}
@@ -767,16 +762,7 @@ declare module '@tiptap/core' {
767
762
  declare const LineHeight: Extension<LineHeightOptions, any>;
768
763
  //#endregion
769
764
  //#region src/extensions/SlashCommand/SlashCommand.d.ts
770
- declare const SlashCommand: Extension<any, {
771
- rect: {
772
- width: number;
773
- height: number;
774
- left: number;
775
- top: number;
776
- right: number;
777
- bottom: number;
778
- };
779
- }>;
765
+ declare const SlashCommand: Extension<any, any>;
780
766
  //#endregion
781
767
  //#region src/extensions/Image/Image.d.ts
782
768
  interface SetImageAttrsOptions {
@@ -806,7 +792,7 @@ declare module '@tiptap/core' {
806
792
  };
807
793
  }
808
794
  }
809
- declare const Image: _$_tiptap_core0.Node<_$_tiptap_extension_image0.ImageOptions, any>;
795
+ declare const Image: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
810
796
  //#endregion
811
797
  //#region src/extensions/Video/Video.d.ts
812
798
  /**
@@ -891,7 +877,7 @@ interface TableOptions extends GeneralOptions<TableOptions> {
891
877
  /** options for table cell background */
892
878
  tableCellBackground: Partial<TableCellBackgroundOptions>;
893
879
  }
894
- declare const Table: _$_tiptap_core0.Node<TableOptions, any>;
880
+ declare const Table: import("@tiptap/core").Node<TableOptions, any>;
895
881
  //#endregion
896
882
  //#region src/extensions/AI/AI.d.ts
897
883
  interface MenuItem {
@@ -1029,7 +1015,7 @@ declare module '@tiptap/core' {
1029
1015
  };
1030
1016
  }
1031
1017
  }
1032
- declare const FontFamily: _$_tiptap_core0.Extension<FontFamilyOptions, any>;
1018
+ declare const FontFamily: import("@tiptap/core").Extension<FontFamilyOptions, any>;
1033
1019
  //#endregion
1034
1020
  //#region src/extensions/Preview/Preview.d.ts
1035
1021
  declare module '@tiptap/core' {
@@ -1126,4 +1112,4 @@ declare const Iframe: Node<IframeOptions, any>;
1126
1112
  //#region src/index.d.ts
1127
1113
  declare const RichEditorPlugin: Plugin;
1128
1114
  //#endregion
1129
- 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 };