asma-ui-richeditor 0.3.6 → 0.3.8

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,6 +1,8 @@
1
1
  import { ChipProps } from '@mui/material';
2
2
  import { Editor, UseEditorOptions } from '@tiptap/react';
3
+ import { YoutubeOptions } from '@tiptap/extension-youtube';
3
4
  import { RefObject } from 'react';
5
+ import { ImageOptions } from '@tiptap/extension-image';
4
6
  export interface CustomCSSProperties extends React.CSSProperties {
5
7
  '--max-scrollable-height'?: string;
6
8
  }
@@ -38,6 +40,10 @@ export interface IRichInput extends UseEditorOptions {
38
40
  dataTest: string;
39
41
  })[];
40
42
  enableImageUpload?: boolean;
43
+ /**
44
+ * @description Options for the image plugin
45
+ */
46
+ imageOptions?: Partial<ImageOptions>;
41
47
  /**
42
48
  * Function to handle the actual file upload to the storage microservice.
43
49
  * Receives the raw File object, returns a Promise that resolves to the final URL.
@@ -70,4 +76,8 @@ export interface IRichInput extends UseEditorOptions {
70
76
  * @description Enables YouTube extension for handling YouTube links
71
77
  */
72
78
  enableYoutube?: boolean;
79
+ /**
80
+ * @description Options for the youtube plugin
81
+ */
82
+ youtubeOptions?: Partial<YoutubeOptions>;
73
83
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.6",
6
+ "version": "0.3.8",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",