@myoc/excalidraw 0.19.530 → 0.19.532

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 +1 @@
1
- import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-MDZUVLV6.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
1
+ import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-GSRXJLOQ.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
@@ -1 +1 @@
1
- import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-MDZUVLV6.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
1
+ import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-GSRXJLOQ.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
@@ -10,6 +10,13 @@ export declare class ImageSceneDataError extends Error {
10
10
  code: ImageSceneDataErrorCode;
11
11
  constructor(message?: string, code?: ImageSceneDataErrorCode);
12
12
  }
13
+ export type UnsupportedImageFileTypeErrorCode = "UNSUPPORTED_IMAGE_FILE_TYPE";
14
+ export declare class UnsupportedImageFileTypeError extends Error {
15
+ readonly code: UnsupportedImageFileTypeErrorCode;
16
+ readonly fileName: string;
17
+ readonly mimeType: string;
18
+ constructor(file: File, message: string);
19
+ }
13
20
  type WorkerErrorCodes = "WORKER_URL_NOT_DEFINED" | "WORKER_IN_THE_MAIN_CHUNK";
14
21
  export declare class WorkerUrlNotDefinedError extends Error {
15
22
  code: WorkerErrorCodes;
@@ -22,6 +22,7 @@ export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements
22
22
  export { getTextFromElements } from "@excalidraw/element";
23
23
  export { isInvisiblySmallElement } from "@excalidraw/element";
24
24
  export { defaultLang, useI18n, languages } from "./i18n";
25
+ export { UnsupportedImageFileTypeError, type UnsupportedImageFileTypeErrorCode, } from "./errors";
25
26
  export { restoreAppState, restoreElement, restoreElements, } from "./data/restore";
26
27
  export { reconcileElements } from "./data/reconcile";
27
28
  export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw/utils/export";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myoc/excalidraw",
3
- "version": "0.19.530",
3
+ "version": "0.19.532",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -108,9 +108,9 @@
108
108
  "roughjs": "4.6.4",
109
109
  "sass": "1.51.0",
110
110
  "tunnel-rat": "0.1.2",
111
- "@excalidraw/common": "npm:@myoc/common@0.19.530",
112
- "@excalidraw/math": "npm:@myoc/math@0.19.530",
113
- "@excalidraw/element": "npm:@myoc/element@0.19.530"
111
+ "@excalidraw/common": "npm:@myoc/common@0.19.532",
112
+ "@excalidraw/math": "npm:@myoc/math@0.19.532",
113
+ "@excalidraw/element": "npm:@myoc/element@0.19.532"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@size-limit/preset-big-lib": "9.0.0",