@halo-dev/richtext-editor 2.24.0 → 2.25.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.
@@ -1,4 +1,5 @@
1
1
  import { Attachment } from '@halo-dev/api-client';
2
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
2
3
  import { AxiosRequestConfig } from 'axios';
3
4
  import { Editor } from '../../tiptap';
4
5
  type __VLS_Props = {
@@ -25,14 +26,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
25
26
  retry: () => void;
26
27
  reset: () => void;
27
28
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
- setExternalLink: (attachment?: any) => any;
29
+ setExternalLink: (attachment?: AttachmentSimple | undefined) => any;
29
30
  onUploadReady: (file: File) => any;
30
31
  onUploadProgress: (progress: number) => any;
31
32
  onUploadFinish: () => any;
32
33
  onUploadError: (error: Error) => any;
33
34
  onUploadAbort: () => any;
34
35
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
36
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
36
37
  onOnUploadReady?: ((file: File) => any) | undefined;
37
38
  onOnUploadProgress?: ((progress: number) => any) | undefined;
38
39
  onOnUploadFinish?: (() => any) | undefined;
@@ -1,4 +1,5 @@
1
1
  import { Attachment } from '@halo-dev/api-client';
2
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
2
3
  import { AxiosRequestConfig } from 'axios';
3
4
  type __VLS_Props = {
4
5
  originalLink?: string;
@@ -6,8 +7,8 @@ type __VLS_Props = {
6
7
  upload: (file: File, options?: AxiosRequestConfig) => Promise<Attachment>;
7
8
  };
8
9
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
- change: (attachment?: any) => any;
10
+ change: (attachment?: AttachmentSimple | undefined) => any;
10
11
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onChange?: ((attachment?: any) => any) | undefined;
12
+ onChange?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
12
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
14
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
1
2
  import { NodeViewProps } from '../../tiptap';
2
3
  declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
3
4
  editorLinkObtain: ({
@@ -8,16 +9,14 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
8
9
  readonly accept?: string | undefined;
9
10
  readonly uploadedFile?: File | undefined;
10
11
  readonly uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
11
- readonly onSetExternalLink?: ((attachment?: any) => any) | undefined;
12
+ readonly onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
12
13
  readonly onOnUploadReady?: ((file: File) => any) | undefined;
13
14
  readonly onOnUploadProgress?: ((progress: number) => any) | undefined;
14
15
  readonly onOnUploadFinish?: (() => any) | undefined;
15
16
  readonly onOnUploadError?: ((error: Error) => any) | undefined;
16
17
  readonly onOnUploadAbort?: (() => any) | undefined;
17
18
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
18
- $attrs: {
19
- [x: string]: unknown;
20
- };
19
+ $attrs: import('vue').Attrs;
21
20
  $refs: {
22
21
  [x: string]: unknown;
23
22
  };
@@ -27,7 +26,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
27
26
  $root: import('vue').ComponentPublicInstance | null;
28
27
  $parent: import('vue').ComponentPublicInstance | null;
29
28
  $host: Element | null;
30
- $emit: ((event: "setExternalLink", attachment?: any) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
29
+ $emit: ((event: "setExternalLink", attachment?: AttachmentSimple | undefined) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
31
30
  $el: any;
32
31
  $options: import('vue').ComponentOptionsBase<Readonly<{
33
32
  editor: import('@tiptap/core').Editor;
@@ -35,7 +34,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
35
34
  uploadedFile?: File;
36
35
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
37
36
  }> & Readonly<{
38
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
37
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
39
38
  onOnUploadReady?: ((file: File) => any) | undefined;
40
39
  onOnUploadProgress?: ((progress: number) => any) | undefined;
41
40
  onOnUploadFinish?: (() => any) | undefined;
@@ -46,7 +45,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
46
45
  retry: () => void;
47
46
  reset: () => void;
48
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
49
- setExternalLink: (attachment?: any) => any;
48
+ setExternalLink: (attachment?: AttachmentSimple | undefined) => any;
50
49
  onUploadReady: (file: File) => any;
51
50
  onUploadProgress: (progress: number) => any;
52
51
  onUploadFinish: () => any;
@@ -84,17 +83,17 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
84
83
  uploadedFile?: File;
85
84
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
86
85
  }> & Readonly<{
87
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
86
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
88
87
  onOnUploadReady?: ((file: File) => any) | undefined;
89
88
  onOnUploadProgress?: ((progress: number) => any) | undefined;
90
89
  onOnUploadFinish?: (() => any) | undefined;
91
90
  onOnUploadError?: ((error: Error) => any) | undefined;
92
91
  onOnUploadAbort?: (() => any) | undefined;
93
- }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & import('vue').ShallowUnwrapRef<{
92
+ }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & {
94
93
  abort: () => void;
95
94
  retry: () => void;
96
95
  reset: () => void;
97
- }> & {} & import('vue').ComponentCustomProperties & {} & {
96
+ } & {} & import('vue').ComponentCustomProperties & {} & {
98
97
  $slots: {
99
98
  uploading?(_: {
100
99
  progress: number | undefined;
@@ -1,3 +1,4 @@
1
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
1
2
  import { NodeViewProps } from '../../tiptap';
2
3
  declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
3
4
  resizeRef: HTMLDivElement;
@@ -10,16 +11,14 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
10
11
  readonly accept?: string | undefined;
11
12
  readonly uploadedFile?: File | undefined;
12
13
  readonly uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
13
- readonly onSetExternalLink?: ((attachment?: any) => any) | undefined;
14
+ readonly onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
14
15
  readonly onOnUploadReady?: ((file: File) => any) | undefined;
15
16
  readonly onOnUploadProgress?: ((progress: number) => any) | undefined;
16
17
  readonly onOnUploadFinish?: (() => any) | undefined;
17
18
  readonly onOnUploadError?: ((error: Error) => any) | undefined;
18
19
  readonly onOnUploadAbort?: (() => any) | undefined;
19
20
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
20
- $attrs: {
21
- [x: string]: unknown;
22
- };
21
+ $attrs: import('vue').Attrs;
23
22
  $refs: {
24
23
  [x: string]: unknown;
25
24
  };
@@ -29,7 +28,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
29
28
  $root: import('vue').ComponentPublicInstance | null;
30
29
  $parent: import('vue').ComponentPublicInstance | null;
31
30
  $host: Element | null;
32
- $emit: ((event: "setExternalLink", attachment?: any) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
31
+ $emit: ((event: "setExternalLink", attachment?: AttachmentSimple | undefined) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
33
32
  $el: any;
34
33
  $options: import('vue').ComponentOptionsBase<Readonly<{
35
34
  editor: import('@tiptap/core').Editor;
@@ -37,7 +36,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
37
36
  uploadedFile?: File;
38
37
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
39
38
  }> & Readonly<{
40
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
39
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
41
40
  onOnUploadReady?: ((file: File) => any) | undefined;
42
41
  onOnUploadProgress?: ((progress: number) => any) | undefined;
43
42
  onOnUploadFinish?: (() => any) | undefined;
@@ -48,7 +47,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
48
47
  retry: () => void;
49
48
  reset: () => void;
50
49
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
51
- setExternalLink: (attachment?: any) => any;
50
+ setExternalLink: (attachment?: AttachmentSimple | undefined) => any;
52
51
  onUploadReady: (file: File) => any;
53
52
  onUploadProgress: (progress: number) => any;
54
53
  onUploadFinish: () => any;
@@ -86,17 +85,17 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
86
85
  uploadedFile?: File;
87
86
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
88
87
  }> & Readonly<{
89
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
88
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
90
89
  onOnUploadReady?: ((file: File) => any) | undefined;
91
90
  onOnUploadProgress?: ((progress: number) => any) | undefined;
92
91
  onOnUploadFinish?: (() => any) | undefined;
93
92
  onOnUploadError?: ((error: Error) => any) | undefined;
94
93
  onOnUploadAbort?: (() => any) | undefined;
95
- }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & import('vue').ShallowUnwrapRef<{
94
+ }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & {
96
95
  abort: () => void;
97
96
  retry: () => void;
98
97
  reset: () => void;
99
- }> & {} & import('vue').ComponentCustomProperties & {} & {
98
+ } & {} & import('vue').ComponentCustomProperties & {} & {
100
99
  $slots: {
101
100
  uploading?(_: {
102
101
  progress: number | undefined;
@@ -1,3 +1,4 @@
1
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
1
2
  import { NodeViewProps } from '../../tiptap';
2
3
  declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
3
4
  editorLinkObtain: ({
@@ -8,16 +9,14 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
8
9
  readonly accept?: string | undefined;
9
10
  readonly uploadedFile?: File | undefined;
10
11
  readonly uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
11
- readonly onSetExternalLink?: ((attachment?: any) => any) | undefined;
12
+ readonly onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
12
13
  readonly onOnUploadReady?: ((file: File) => any) | undefined;
13
14
  readonly onOnUploadProgress?: ((progress: number) => any) | undefined;
14
15
  readonly onOnUploadFinish?: (() => any) | undefined;
15
16
  readonly onOnUploadError?: ((error: Error) => any) | undefined;
16
17
  readonly onOnUploadAbort?: (() => any) | undefined;
17
18
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
18
- $attrs: {
19
- [x: string]: unknown;
20
- };
19
+ $attrs: import('vue').Attrs;
21
20
  $refs: {
22
21
  [x: string]: unknown;
23
22
  };
@@ -27,7 +26,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
27
26
  $root: import('vue').ComponentPublicInstance | null;
28
27
  $parent: import('vue').ComponentPublicInstance | null;
29
28
  $host: Element | null;
30
- $emit: ((event: "setExternalLink", attachment?: any) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
29
+ $emit: ((event: "setExternalLink", attachment?: AttachmentSimple | undefined) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
31
30
  $el: any;
32
31
  $options: import('vue').ComponentOptionsBase<Readonly<{
33
32
  editor: import('@tiptap/core').Editor;
@@ -35,7 +34,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
35
34
  uploadedFile?: File;
36
35
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
37
36
  }> & Readonly<{
38
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
37
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
39
38
  onOnUploadReady?: ((file: File) => any) | undefined;
40
39
  onOnUploadProgress?: ((progress: number) => any) | undefined;
41
40
  onOnUploadFinish?: (() => any) | undefined;
@@ -46,7 +45,7 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
46
45
  retry: () => void;
47
46
  reset: () => void;
48
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
49
- setExternalLink: (attachment?: any) => any;
48
+ setExternalLink: (attachment?: AttachmentSimple | undefined) => any;
50
49
  onUploadReady: (file: File) => any;
51
50
  onUploadProgress: (progress: number) => any;
52
51
  onUploadFinish: () => any;
@@ -84,17 +83,17 @@ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {},
84
83
  uploadedFile?: File;
85
84
  uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
86
85
  }> & Readonly<{
87
- onSetExternalLink?: ((attachment?: any) => any) | undefined;
86
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
88
87
  onOnUploadReady?: ((file: File) => any) | undefined;
89
88
  onOnUploadProgress?: ((progress: number) => any) | undefined;
90
89
  onOnUploadFinish?: (() => any) | undefined;
91
90
  onOnUploadError?: ((error: Error) => any) | undefined;
92
91
  onOnUploadAbort?: (() => any) | undefined;
93
- }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & import('vue').ShallowUnwrapRef<{
92
+ }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & {
94
93
  abort: () => void;
95
94
  retry: () => void;
96
95
  reset: () => void;
97
- }> & {} & import('vue').ComponentCustomProperties & {} & {
96
+ } & {} & import('vue').ComponentCustomProperties & {} & {
98
97
  $slots: {
99
98
  uploading?(_: {
100
99
  progress: number | undefined;