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.
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",