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/README.md +33 -0
- package/dist/components/editor/createDefaultExtensions.d.ts +2 -1
- package/dist/helpers.d.ts +2 -1
- package/dist/tiptop-editor.css +1 -1
- package/dist/tiptop-editor.es.js +11926 -12084
- package/dist/tiptop-editor.umd.js +21 -21
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
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;
|