microboard-temp 0.3.2 → 0.4.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/cjs/browser.js +333 -485
- package/dist/cjs/index.js +333 -485
- package/dist/cjs/node.js +333 -485
- package/dist/esm/browser.js +333 -485
- package/dist/esm/index.js +333 -485
- package/dist/esm/node.js +333 -485
- package/dist/types/Items/Image/ImageHelpers.d.ts +0 -6
- package/dist/types/Settings.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { ImageConstructorData } from './Image';
|
|
2
|
-
import { Account } from 'entities/account/Account';
|
|
3
|
-
export declare const catchErrorResponse: (response: Response, mediaType: "image" | "video" | "audio") => Promise<never>;
|
|
4
|
-
export declare const catchDuplicateErrorResponse: (response: Response) => Promise<never>;
|
|
5
|
-
export declare const validateMediaFile: (file: File, account: Account) => boolean;
|
|
6
|
-
export declare const deleteMedia: (mediaIds: string[], boardId: string) => Promise<void>;
|
|
7
|
-
export declare const updateMediaUsage: (mediaIds: string[], boardId: string) => Promise<boolean>;
|
|
8
2
|
export declare const uploadToTheStorage: (hash: string, dataURL: string, accessToken: string | null, boardId: string) => Promise<string>;
|
|
9
3
|
export declare const resizeAndConvertToPng: (inp: string | ArrayBuffer | null | undefined) => Promise<{
|
|
10
4
|
dataURL: string;
|
package/dist/types/Settings.d.ts
CHANGED
|
@@ -123,6 +123,11 @@ export declare const conf: {
|
|
|
123
123
|
getDOMParser: GetDOMParser;
|
|
124
124
|
measureCtx: CanvasRenderingContext2D;
|
|
125
125
|
i18n: import("i18next").i18n;
|
|
126
|
+
hooks: {
|
|
127
|
+
beforeMediaUpload: (...args: unknown[]) => Promise<boolean>;
|
|
128
|
+
beforeMediaRemove: (...args: unknown[]) => Promise<boolean>;
|
|
129
|
+
onUploadMediaError: (...args: unknown[]) => Promise<boolean>;
|
|
130
|
+
};
|
|
126
131
|
openModal: OpenModalFunction;
|
|
127
132
|
notify: NotifyWrapperFunction;
|
|
128
133
|
disMissNotification: DisMissNotificationFunction;
|