@myoc/excalidraw 0.19.513 → 0.19.515

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/dev/{chunk-FW62QUKV.js → chunk-743OUYY5.js} +2 -2
  3. package/dist/dev/{chunk-BI6BDZVY.js → chunk-WIJ675EZ.js} +4 -3
  4. package/dist/dev/{chunk-BI6BDZVY.js.map → chunk-WIJ675EZ.js.map} +2 -2
  5. package/dist/dev/data/{image-WGZL7YPK.js → image-DAAZ7YY4.js} +3 -3
  6. package/dist/dev/index.js +1827 -1750
  7. package/dist/dev/index.js.map +4 -4
  8. package/dist/dev/subset-shared.chunk.js +1 -1
  9. package/dist/dev/subset-worker.chunk.js +1 -1
  10. package/dist/prod/{chunk-NVT4BTJO.js → chunk-5ADLKOJQ.js} +1 -1
  11. package/dist/prod/{chunk-56AUOKVR.js → chunk-B2SJBHTC.js} +2 -2
  12. package/dist/prod/data/image-GWMHT2EN.js +1 -0
  13. package/dist/prod/index.js +23 -23
  14. package/dist/prod/subset-shared.chunk.js +1 -1
  15. package/dist/prod/subset-worker.chunk.js +1 -1
  16. package/dist/types/element/src/newElement.d.ts +1 -0
  17. package/dist/types/element/src/types.d.ts +1 -0
  18. package/dist/types/excalidraw/actions/actionFrame.d.ts +1 -0
  19. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -0
  20. package/dist/types/excalidraw/components/App.d.ts +7 -6
  21. package/dist/types/excalidraw/components/ContextMenu.d.ts +6 -1
  22. package/dist/types/excalidraw/index.d.ts +1 -1
  23. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -0
  24. package/dist/types/excalidraw/types.d.ts +7 -5
  25. package/package.json +4 -4
  26. package/dist/prod/data/image-ZQZIDAZL.js +0 -1
  27. /package/dist/dev/{chunk-FW62QUKV.js.map → chunk-743OUYY5.js.map} +0 -0
  28. /package/dist/dev/data/{image-WGZL7YPK.js.map → image-DAAZ7YY4.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -4495,4 +4495,57 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
4495
4495
  - Incorrect import for color (was moved to common)
4496
4496
 
4497
4497
  ---
4498
+ ## Excalidraw Library
4499
+
4500
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4501
+
4502
+ ### Features
4503
+
4504
+ - Add ability to turn off compression for files that are smaller than a given size
4505
+
4506
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4507
+
4508
+ - Add view mode button
4509
+
4510
+ - Add multiple image copy paste or drag and drop
4511
+
4512
+ - Multiple image additions from clipboard
4513
+
4514
+ - Add arrange elements action
4515
+
4516
+ - Add top picks to appProps for both stoke color and background color
4517
+
4518
+ ### Fixes
4519
+
4520
+ - Issues
4521
+
4522
+ - Make mobile mode more myoc looking
4523
+
4524
+ - Add normalise functionality
4525
+
4526
+ - Update with excalidraw
4527
+
4528
+ - Fix imports
4529
+
4530
+ - Fix mutateGroup to use scene.mutateGroup
4531
+
4532
+ - Imports
4533
+
4534
+ - Ensure that fileId is different for compressed vs uncompressed file
4535
+
4536
+ - Remove not working prop for dontResizeLimitMBs
4537
+
4538
+ - Add smartview for mobile
4539
+
4540
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4541
+
4542
+ - Use css vars already provided instead of hard coding directly from oc-gray
4543
+
4544
+ - Remove unused variables
4545
+
4546
+ - Pass the new top pick color props properly
4547
+
4548
+ - Incorrect import for color (was moved to common)
4549
+
4550
+ ---
4498
4551
 
@@ -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.512", DEV: true };
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.514", DEV: true };
3
3
 
4
4
  export {
5
5
  define_import_meta_env_default
6
6
  };
7
- //# sourceMappingURL=chunk-FW62QUKV.js.map
7
+ //# sourceMappingURL=chunk-743OUYY5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-FW62QUKV.js";
3
+ } from "./chunk-743OUYY5.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -4728,6 +4728,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4728
4728
  return restoreElementWithProperties(element, {
4729
4729
  status: element.status || "pending",
4730
4730
  fileId: element.fileId,
4731
+ fileName: element.fileName ?? null,
4731
4732
  scale: element.scale || [1, 1],
4732
4733
  crop: element.crop ?? null
4733
4734
  });
@@ -5101,7 +5102,7 @@ var parseFileContents = async (blob) => {
5101
5102
  let contents;
5102
5103
  if (blob.type === MIME_TYPES6.png) {
5103
5104
  try {
5104
- return await (await import("./data/image-WGZL7YPK.js")).decodePngMetadata(blob);
5105
+ return await (await import("./data/image-DAAZ7YY4.js")).decodePngMetadata(blob);
5105
5106
  } catch (error) {
5106
5107
  if (error.message === "INVALID") {
5107
5108
  throw new ImageSceneDataError(
@@ -5462,4 +5463,4 @@ export {
5462
5463
  createFile,
5463
5464
  normalizeFile
5464
5465
  };
5465
- //# sourceMappingURL=chunk-BI6BDZVY.js.map
5466
+ //# sourceMappingURL=chunk-WIJ675EZ.js.map