tiptop-editor 2.0.0 → 2.1.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.
package/dist/types.d.ts CHANGED
@@ -18,6 +18,12 @@ export type TiptopEditorOptions = Omit<Partial<UseEditorOptions & {
18
18
  */
19
19
  imgUploadResponseKey?: ImageUploadResponseResolver;
20
20
  /**
21
+ * Custom HTTP headers to include in the image upload request.
22
+ * Useful for passing authorization tokens or other API headers.
23
+ * @default undefined
24
+ */
25
+ imgUploadHeaders?: Record<string, string>;
26
+ /**
21
27
  * Disables the default Card wrapper and removes the editor's built-in padding.
22
28
  * Use this when you want to embed the editor inside your own layout container.
23
29
  * @default false
@@ -213,6 +219,7 @@ export interface ImageUploaderExtensionOptions {
213
219
  imgUploadResponseKey?: ImageUploadResponseResolver;
214
220
  allowedMimeTypes?: string[];
215
221
  maxFileSize: number;
222
+ imgUploadHeaders?: Record<string, string>;
216
223
  }
217
224
  export interface ImageUploaderExtensionStorage {
218
225
  uploadImageFromFile: (editor: Editor, file: File, id: string, updateExisting?: boolean, pos?: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptop-editor",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Notion-like editor built with Tiptap v3 and HeroUI",
5
5
  "type": "module",
6
6
  "main": "./dist/tiptop-editor.umd.js",