@halo-dev/richtext-editor 2.20.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,5 +3,5 @@ export * from './bubble';
3
3
  export * from './toolbar';
4
4
  export * from './toolbox';
5
5
  export { default as RichTextEditor } from './Editor.vue';
6
- export * from './EditorBubbleMenu.vue';
7
- export * from './EditorHeader.vue';
6
+ export { default as EditorBubbleMenu } from './EditorBubbleMenu.vue';
7
+ export { default as EditorHeader } from './EditorHeader.vue';
@@ -1,4 +1,4 @@
1
- import { ToolbarItem } from '../../types';
1
+ import { ToolbarItemType } from '../../types';
2
2
  import { Component } from 'vue';
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  isActive?: boolean;
@@ -6,17 +6,17 @@ declare const _default: import('vue').DefineComponent<{
6
6
  title?: string;
7
7
  action?: () => void;
8
8
  icon?: Component;
9
- children?: ToolbarItem[];
9
+ children?: ToolbarItemType[];
10
10
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
11
11
  isActive?: boolean;
12
12
  disabled?: boolean;
13
13
  title?: string;
14
14
  action?: () => void;
15
15
  icon?: Component;
16
- children?: ToolbarItem[];
16
+ children?: ToolbarItemType[];
17
17
  }> & Readonly<{}>, {
18
18
  title: string;
19
- children: ToolbarItem[];
19
+ children: ToolbarItemType[];
20
20
  icon: Component;
21
21
  isActive: boolean;
22
22
  action: () => void;
@@ -8,11 +8,8 @@ declare let __VLS_typeProps: {
8
8
  options: Option[];
9
9
  filterSort?: (options: Option[], query: string) => number;
10
10
  };
11
- declare const __VLS_defaults: {
12
- modelValue: string;
13
- };
14
11
  type __VLS_PublicProps = {
15
- modelValue?: typeof __VLS_defaults['modelValue'];
12
+ modelValue?: string;
16
13
  } & typeof __VLS_typeProps;
17
14
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
15
  "update:modelValue": (modelValue: string) => any;
@@ -1,26 +1,26 @@
1
- import { CommandMenuItem } from '../../types';
1
+ import { CommandMenuItemType } from '../../types';
2
2
  import { PropType } from 'vue';
3
3
  declare function onKeyDown({ event }: {
4
4
  event: KeyboardEvent;
5
5
  }): boolean;
6
6
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
7
  items: {
8
- type: PropType<CommandMenuItem[]>;
8
+ type: PropType<CommandMenuItemType[]>;
9
9
  required: true;
10
10
  };
11
11
  command: {
12
- type: PropType<(item: CommandMenuItem) => void>;
12
+ type: PropType<(item: CommandMenuItemType) => void>;
13
13
  required: true;
14
14
  };
15
15
  }>, {
16
16
  onKeyDown: typeof onKeyDown;
17
17
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
18
  items: {
19
- type: PropType<CommandMenuItem[]>;
19
+ type: PropType<CommandMenuItemType[]>;
20
20
  required: true;
21
21
  };
22
22
  command: {
23
- type: PropType<(item: CommandMenuItem) => void>;
23
+ type: PropType<(item: CommandMenuItemType) => void>;
24
24
  required: true;
25
25
  };
26
26
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -42,6 +42,6 @@ import { default as ExtensionSearchAndReplace } from './search-and-replace';
42
42
  import { default as ExtensionText } from './text';
43
43
  import { default as ExtensionTrailingNode } from './trailing-node';
44
44
  import { default as ExtensionVideo } from './video';
45
- declare const allExtensions: (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<import('../types').ExtensionOptions & import('@tiptap/extension-subscript').SubscriptExtensionOptions, any>)[];
45
+ declare const allExtensions: (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<import('..').ExtensionOptions & import('@tiptap/extension-bold').BoldOptions, any>)[];
46
46
  export { ExtensionAudio, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionClearFormat, ExtensionCode, ExtensionCodeBlock, ExtensionColor, ExtensionColumn, ExtensionColumns, ExtensionCommands, ExtensionDocument, ExtensionDraggable, ExtensionDropcursor, ExtensionFontSize, ExtensionFormatBrush, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHighlight, ExtensionHistory, ExtensionHorizontalRule, ExtensionIframe, ExtensionImage, ExtensionIndent, ExtensionItalic, ExtensionLink, ExtensionListKeymap, ExtensionNodeSelected, ExtensionOrderedList, ExtensionParagraph, ExtensionPlaceholder, ExtensionRangeSelection, ExtensionSearchAndReplace, ExtensionStrike, ExtensionSubscript, ExtensionSuperscript, ExtensionTable, ExtensionTaskList, ExtensionText, ExtensionTextAlign, ExtensionTextStyle, ExtensionTrailingNode, ExtensionUnderline, ExtensionVideo, RangeSelection, allExtensions, };
47
47
  export type { ExtensionCodeBlockOptions };
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export default plugin;
4
4
  export * from './components';
5
5
  export * from './extensions';
6
6
  export * from './tiptap';
7
+ export * from './types';
7
8
  export * from './utils';