@myoc/excalidraw 0.19.529 → 0.19.531
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/CHANGELOG.md +157 -0
- package/dist/dev/{chunk-7GX2B2N5.js → chunk-6NFVXSAY.js} +16 -3
- package/dist/dev/chunk-6NFVXSAY.js.map +7 -0
- package/dist/dev/{chunk-H5L4PT3U.js → chunk-ASAPRLCW.js} +2 -2
- package/dist/dev/data/{image-GYAOLTNI.js → image-PZBZVE3P.js} +3 -3
- package/dist/dev/index.css +3 -3
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +54 -11
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-EX4VEL2N.js +4 -0
- package/dist/prod/{chunk-5HMH2742.js → chunk-GSRXJLOQ.js} +1 -1
- package/dist/prod/data/image-6NUYGTMZ.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +13 -13
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/App.d.ts +1 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +1 -0
- package/dist/types/excalidraw/errors.d.ts +7 -0
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/dev/chunk-7GX2B2N5.js.map +0 -7
- package/dist/prod/chunk-CYZQPYCY.js +0 -4
- package/dist/prod/data/image-O2O5EGGU.js +0 -1
- /package/dist/dev/{chunk-H5L4PT3U.js.map → chunk-ASAPRLCW.js.map} +0 -0
- /package/dist/dev/data/{image-GYAOLTNI.js.map → image-PZBZVE3P.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
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-
|
|
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};
|
|
@@ -906,6 +906,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
906
906
|
private maybeHandleCrop;
|
|
907
907
|
private maybeHandleResize;
|
|
908
908
|
private getImageContextMenuItems;
|
|
909
|
+
private getImageActionContextMenuItems;
|
|
909
910
|
private getElementLinkContextMenuItems;
|
|
910
911
|
private getContextMenuItems;
|
|
911
912
|
private handleWheel;
|
|
@@ -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.
|
|
3
|
+
"version": "0.19.531",
|
|
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.
|
|
112
|
-
"@excalidraw/math": "npm:@myoc/math@0.19.
|
|
113
|
-
"@excalidraw/element": "npm:@myoc/element@0.19.
|
|
111
|
+
"@excalidraw/common": "npm:@myoc/common@0.19.531",
|
|
112
|
+
"@excalidraw/math": "npm:@myoc/math@0.19.531",
|
|
113
|
+
"@excalidraw/element": "npm:@myoc/element@0.19.531"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@size-limit/preset-big-lib": "9.0.0",
|