@myoc/excalidraw 0.19.525 → 0.19.527
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 +106 -0
- package/dist/dev/{chunk-5JBEU7F3.js → chunk-N6LESYN7.js} +3 -3
- package/dist/dev/{chunk-BT3FFAFC.js → chunk-YNR3T55S.js} +2 -2
- package/dist/dev/data/{image-JSJUP7H5.js → image-D6KDEKKI.js} +3 -3
- package/dist/dev/index.js +17 -12
- 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-TBBTE22B.js → chunk-FIMIHFNX.js} +1 -1
- package/dist/prod/{chunk-6W274YG7.js → chunk-K3ZT7LUU.js} +2 -2
- package/dist/prod/data/image-GHQKUZQU.js +1 -0
- package/dist/prod/index.js +10 -10
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/package.json +4 -4
- package/dist/prod/data/image-EXVZH5CN.js +0 -1
- /package/dist/dev/{chunk-5JBEU7F3.js.map → chunk-N6LESYN7.js.map} +0 -0
- /package/dist/dev/{chunk-BT3FFAFC.js.map → chunk-YNR3T55S.js.map} +0 -0
- /package/dist/dev/data/{image-JSJUP7H5.js.map → image-D6KDEKKI.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5373,4 +5373,110 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
5373
5373
|
- Incorrect import for color (was moved to common)
|
|
5374
5374
|
|
|
5375
5375
|
---
|
|
5376
|
+
## Excalidraw Library
|
|
5377
|
+
|
|
5378
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
5379
|
+
|
|
5380
|
+
### Features
|
|
5381
|
+
|
|
5382
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
5383
|
+
|
|
5384
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
5385
|
+
|
|
5386
|
+
- Add view mode button
|
|
5387
|
+
|
|
5388
|
+
- Add multiple image copy paste or drag and drop
|
|
5389
|
+
|
|
5390
|
+
- Multiple image additions from clipboard
|
|
5391
|
+
|
|
5392
|
+
- Add arrange elements action
|
|
5393
|
+
|
|
5394
|
+
- Add top picks to appProps for both stoke color and background color
|
|
5395
|
+
|
|
5396
|
+
### Fixes
|
|
5397
|
+
|
|
5398
|
+
- Issues
|
|
5399
|
+
|
|
5400
|
+
- Make mobile mode more myoc looking
|
|
5401
|
+
|
|
5402
|
+
- Add normalise functionality
|
|
5403
|
+
|
|
5404
|
+
- Update with excalidraw
|
|
5405
|
+
|
|
5406
|
+
- Fix imports
|
|
5407
|
+
|
|
5408
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
5409
|
+
|
|
5410
|
+
- Imports
|
|
5411
|
+
|
|
5412
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
5413
|
+
|
|
5414
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
5415
|
+
|
|
5416
|
+
- Add smartview for mobile
|
|
5417
|
+
|
|
5418
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
5419
|
+
|
|
5420
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
5421
|
+
|
|
5422
|
+
- Remove unused variables
|
|
5423
|
+
|
|
5424
|
+
- Pass the new top pick color props properly
|
|
5425
|
+
|
|
5426
|
+
- Incorrect import for color (was moved to common)
|
|
5427
|
+
|
|
5428
|
+
---
|
|
5429
|
+
## Excalidraw Library
|
|
5430
|
+
|
|
5431
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
5432
|
+
|
|
5433
|
+
### Features
|
|
5434
|
+
|
|
5435
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
5436
|
+
|
|
5437
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
5438
|
+
|
|
5439
|
+
- Add view mode button
|
|
5440
|
+
|
|
5441
|
+
- Add multiple image copy paste or drag and drop
|
|
5442
|
+
|
|
5443
|
+
- Multiple image additions from clipboard
|
|
5444
|
+
|
|
5445
|
+
- Add arrange elements action
|
|
5446
|
+
|
|
5447
|
+
- Add top picks to appProps for both stoke color and background color
|
|
5448
|
+
|
|
5449
|
+
### Fixes
|
|
5450
|
+
|
|
5451
|
+
- Issues
|
|
5452
|
+
|
|
5453
|
+
- Make mobile mode more myoc looking
|
|
5454
|
+
|
|
5455
|
+
- Add normalise functionality
|
|
5456
|
+
|
|
5457
|
+
- Update with excalidraw
|
|
5458
|
+
|
|
5459
|
+
- Fix imports
|
|
5460
|
+
|
|
5461
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
5462
|
+
|
|
5463
|
+
- Imports
|
|
5464
|
+
|
|
5465
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
5466
|
+
|
|
5467
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
5468
|
+
|
|
5469
|
+
- Add smartview for mobile
|
|
5470
|
+
|
|
5471
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
5472
|
+
|
|
5473
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
5474
|
+
|
|
5475
|
+
- Remove unused variables
|
|
5476
|
+
|
|
5477
|
+
- Pass the new top pick color props properly
|
|
5478
|
+
|
|
5479
|
+
- Incorrect import for color (was moved to common)
|
|
5480
|
+
|
|
5481
|
+
---
|
|
5376
5482
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YNR3T55S.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5389,7 +5389,7 @@ var parseFileContents = async (blob) => {
|
|
|
5389
5389
|
let contents;
|
|
5390
5390
|
if (blob.type === MIME_TYPES6.png) {
|
|
5391
5391
|
try {
|
|
5392
|
-
return await (await import("./data/image-
|
|
5392
|
+
return await (await import("./data/image-D6KDEKKI.js")).decodePngMetadata(blob);
|
|
5393
5393
|
} catch (error) {
|
|
5394
5394
|
if (error.message === "INVALID") {
|
|
5395
5395
|
throw new ImageSceneDataError(
|
|
@@ -5825,4 +5825,4 @@ export {
|
|
|
5825
5825
|
createFile,
|
|
5826
5826
|
normalizeFile
|
|
5827
5827
|
};
|
|
5828
|
-
//# sourceMappingURL=chunk-
|
|
5828
|
+
//# sourceMappingURL=chunk-N6LESYN7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.526", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-YNR3T55S.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-N6LESYN7.js";
|
|
6
|
+
import "../chunk-YNR3T55S.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-D6KDEKKI.js.map
|
package/dist/dev/index.js
CHANGED
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
serializeAsJSON,
|
|
62
62
|
strokeRectWithRotation_simple,
|
|
63
63
|
zoomToFitBounds
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-N6LESYN7.js";
|
|
65
65
|
import {
|
|
66
66
|
define_import_meta_env_default
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-YNR3T55S.js";
|
|
68
68
|
import {
|
|
69
69
|
en_default
|
|
70
70
|
} from "./chunk-SKCAT7JG.js";
|
|
@@ -10935,7 +10935,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
10935
10935
|
let blob = canvasToBlob(tempCanvas);
|
|
10936
10936
|
if (appState.exportEmbedScene) {
|
|
10937
10937
|
blob = blob.then(
|
|
10938
|
-
(blob2) => import("./data/image-
|
|
10938
|
+
(blob2) => import("./data/image-D6KDEKKI.js").then(
|
|
10939
10939
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
10940
10940
|
blob: blob2,
|
|
10941
10941
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -22350,7 +22350,7 @@ var renderImageStatusOverlays = (context, visibleElements, elementsMap, app, app
|
|
|
22350
22350
|
continue;
|
|
22351
22351
|
}
|
|
22352
22352
|
const imageStatus = app.imageStatus.get(element.fileId);
|
|
22353
|
-
const hasError =
|
|
22353
|
+
const hasError = !!imageStatus?.downloadError;
|
|
22354
22354
|
if (hasError) {
|
|
22355
22355
|
const icon = getImageStatusOverlayPosition(
|
|
22356
22356
|
element,
|
|
@@ -37117,11 +37117,9 @@ var App = class _App extends React40.Component {
|
|
|
37117
37117
|
});
|
|
37118
37118
|
__publicField(this, "setDownloadError", (fileId, error) => {
|
|
37119
37119
|
this.updateImageStatus(fileId, (previous) => {
|
|
37120
|
-
const uploadProgress = error === null && previous?.uploadProgress?.state === "error" ? null : previous?.uploadProgress;
|
|
37121
37120
|
return {
|
|
37122
37121
|
...previous,
|
|
37123
|
-
downloadError: error === true ? {} : error || null
|
|
37124
|
-
uploadProgress
|
|
37122
|
+
downloadError: error === true ? {} : error || null
|
|
37125
37123
|
};
|
|
37126
37124
|
});
|
|
37127
37125
|
});
|
|
@@ -40632,14 +40630,21 @@ var App = class _App extends React40.Component {
|
|
|
40632
40630
|
transitionStart: performance.now()
|
|
40633
40631
|
});
|
|
40634
40632
|
}
|
|
40635
|
-
if (erroredFiles.size) {
|
|
40633
|
+
if (erroredFiles.size || updatedFiles.size) {
|
|
40636
40634
|
this.store.scheduleAction(CaptureUpdateAction40.NEVER);
|
|
40637
40635
|
this.scene.replaceAllElements(
|
|
40638
40636
|
this.scene.getElementsIncludingDeleted().map((element) => {
|
|
40639
|
-
if (isInitializedImageElement3(element)
|
|
40640
|
-
|
|
40641
|
-
|
|
40642
|
-
|
|
40637
|
+
if (isInitializedImageElement3(element)) {
|
|
40638
|
+
if (erroredFiles.has(element.fileId)) {
|
|
40639
|
+
return newElementWith10(element, {
|
|
40640
|
+
status: "error"
|
|
40641
|
+
});
|
|
40642
|
+
}
|
|
40643
|
+
if (updatedFiles.has(element.fileId) && element.status === "error") {
|
|
40644
|
+
return newElementWith10(element, {
|
|
40645
|
+
status: "saved"
|
|
40646
|
+
});
|
|
40647
|
+
}
|
|
40643
40648
|
}
|
|
40644
40649
|
return element;
|
|
40645
40650
|
})
|