@halo-dev/richtext-editor 0.0.0-alpha.29 → 0.0.0-alpha.30

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.
@@ -1,2 +1,15 @@
1
- declare const _default: import("@tiptap/vue-3").Node<any, any>;
1
+ import type { CodeBlockLowlightOptions } from "@tiptap/extension-code-block-lowlight";
2
+ export interface CustomCodeBlockLowlightOptions extends CodeBlockLowlightOptions {
3
+ lowlight: any;
4
+ defaultLanguage: string | null | undefined;
5
+ }
6
+ declare module "@tiptap/core" {
7
+ interface Commands<ReturnType> {
8
+ codeIndent: {
9
+ codeIndent: () => ReturnType;
10
+ codeOutdent: () => ReturnType;
11
+ };
12
+ }
13
+ }
14
+ declare const _default: import("@tiptap/vue-3").Node<CustomCodeBlockLowlightOptions & CodeBlockLowlightOptions, any>;
2
15
  export default _default;
@@ -33,6 +33,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
33
  };
34
34
  }, {
35
35
  props: any;
36
+ imgScale: import("vue").Ref<number>;
36
37
  src: import("vue").WritableComputedRef<any>;
37
38
  alt: import("vue").WritableComputedRef<any>;
38
39
  width: import("vue").WritableComputedRef<any>;
@@ -52,6 +53,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
52
53
  handleSetFocus: () => void;
53
54
  handleOpenLink: () => void;
54
55
  inputRef: import("vue").Ref<any>;
56
+ BlockActionButton: any;
57
+ BlockActionInput: any;
58
+ BlockActionSeparator: any;
59
+ BlockCard: any;
60
+ readonly i18n: any;
55
61
  readonly NodeViewWrapper: import("vue").DefineComponent<{
56
62
  as: {
57
63
  type: StringConstructor;
@@ -65,22 +71,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
65
71
  }>>, {
66
72
  as: string;
67
73
  }>;
68
- BlockCard: any;
69
- BlockActionButton: any;
70
- BlockActionSeparator: any;
71
- BlockActionInput: any;
72
74
  readonly VDropdown: any;
73
- readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
74
- readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
75
- readonly MdiImageSizeSelectActual: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
76
- readonly MdiImageSizeSelectSmall: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
77
- readonly MdiImageSizeSelectLarge: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
78
- readonly MdiFormatAlignLeft: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
75
+ readonly MdiBackupRestore: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
79
76
  readonly MdiFormatAlignCenter: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
80
- readonly MdiFormatAlignRight: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
81
77
  readonly MdiFormatAlignJustify: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
82
- readonly MdiBackupRestore: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
83
- readonly i18n: any;
78
+ readonly MdiFormatAlignLeft: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
79
+ readonly MdiFormatAlignRight: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
80
+ readonly MdiImageSizeSelectActual: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
81
+ readonly MdiImageSizeSelectLarge: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
82
+ readonly MdiImageSizeSelectSmall: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
83
+ readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
84
+ readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
85
+ readonly MdiTextBoxEditOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
84
86
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
85
87
  editor: {
86
88
  type: any;
@@ -0,0 +1,22 @@
1
+ import { type KeyboardShortcutCommand, Extension } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ indent: {
5
+ indent: () => ReturnType;
6
+ outdent: () => ReturnType;
7
+ };
8
+ }
9
+ }
10
+ type IndentOptions = {
11
+ names: Array<string>;
12
+ indentRange: number;
13
+ minIndentLevel: number;
14
+ maxIndentLevel: number;
15
+ defaultIndentLevel: number;
16
+ HTMLAttributes: Record<string, any>;
17
+ };
18
+ declare const Indent: Extension<IndentOptions, never>;
19
+ export declare const clamp: (val: number, min: number, max: number) => number;
20
+ export declare const getIndent: () => KeyboardShortcutCommand;
21
+ export declare const getOutdent: (outdentOnlyAtHead: boolean) => KeyboardShortcutCommand;
22
+ export default Indent;
@@ -30,5 +30,6 @@ import ExtensionIframe from "./iframe";
30
30
  import ExtensionVideo from "./video";
31
31
  import ExtensionAudio from "./audio";
32
32
  import ExtensionImage from "./image";
33
+ import ExtensionIndent from "./indent";
33
34
  declare const allExtensions: any[];
34
- export { allExtensions, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionCode, ExtensionDocument, ExtensionDropcursor, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHistory, ExtensionHorizontalRule, ExtensionItalic, ExtensionOrderedList, ExtensionStrike, ExtensionText, ExtensionImage, ExtensionTaskList, ExtensionLink, ExtensionTextAlign, ExtensionUnderline, ExtensionTable, ExtensionSubscript, ExtensionSuperscript, ExtensionPlaceholder, ExtensionHighlight, ExtensionCommands, ExtensionCodeBlock, lowlight, ExtensionIframe, ExtensionVideo, ExtensionAudio, ExtensionColor, ExtensionFontSize, };
35
+ export { allExtensions, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionCode, ExtensionDocument, ExtensionDropcursor, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHistory, ExtensionHorizontalRule, ExtensionItalic, ExtensionOrderedList, ExtensionStrike, ExtensionText, ExtensionImage, ExtensionTaskList, ExtensionLink, ExtensionTextAlign, ExtensionUnderline, ExtensionTable, ExtensionSubscript, ExtensionSuperscript, ExtensionPlaceholder, ExtensionHighlight, ExtensionCommands, ExtensionCodeBlock, lowlight, ExtensionIframe, ExtensionVideo, ExtensionAudio, ExtensionColor, ExtensionFontSize, ExtensionIndent, };