@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.
package/CHANGELOG.md CHANGED
@@ -5639,5 +5639,163 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
5639
5639
 
5640
5640
  - Incorrect import for color (was moved to common)
5641
5641
 
5642
+ ---## Excalidraw Library
5643
+
5644
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
5645
+
5646
+ ### Features
5647
+
5648
+ - Add ability to turn off compression for files that are smaller than a given size
5649
+
5650
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
5651
+
5652
+ - Add view mode button
5653
+
5654
+ - Add multiple image copy paste or drag and drop
5655
+
5656
+ - Multiple image additions from clipboard
5657
+
5658
+ - Add arrange elements action
5659
+
5660
+ - Add top picks to appProps for both stoke color and background color
5661
+
5662
+ ### Fixes
5663
+
5664
+ - Issues
5665
+
5666
+ - Make mobile mode more myoc looking
5667
+
5668
+ - Add normalise functionality
5669
+
5670
+ - Update with excalidraw
5671
+
5672
+ - Fix imports
5673
+
5674
+ - Fix mutateGroup to use scene.mutateGroup
5675
+
5676
+ - Imports
5677
+
5678
+ - Ensure that fileId is different for compressed vs uncompressed file
5679
+
5680
+ - Remove not working prop for dontResizeLimitMBs
5681
+
5682
+ - Add smartview for mobile
5683
+
5684
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
5685
+
5686
+ - Use css vars already provided instead of hard coding directly from oc-gray
5687
+
5688
+ - Remove unused variables
5689
+
5690
+ - Pass the new top pick color props properly
5691
+
5692
+ - Incorrect import for color (was moved to common)
5693
+
5694
+ ---
5695
+ ## Excalidraw Library
5696
+
5697
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
5698
+
5699
+ ### Features
5700
+
5701
+ - Add ability to turn off compression for files that are smaller than a given size
5702
+
5703
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
5704
+
5705
+ - Add view mode button
5706
+
5707
+ - Add multiple image copy paste or drag and drop
5708
+
5709
+ - Multiple image additions from clipboard
5710
+
5711
+ - Add arrange elements action
5712
+
5713
+ - Add top picks to appProps for both stoke color and background color
5714
+
5715
+ ### Fixes
5716
+
5717
+ - Issues
5718
+
5719
+ - Make mobile mode more myoc looking
5720
+
5721
+ - Add normalise functionality
5722
+
5723
+ - Update with excalidraw
5724
+
5725
+ - Fix imports
5726
+
5727
+ - Fix mutateGroup to use scene.mutateGroup
5728
+
5729
+ - Imports
5730
+
5731
+ - Ensure that fileId is different for compressed vs uncompressed file
5732
+
5733
+ - Remove not working prop for dontResizeLimitMBs
5734
+
5735
+ - Add smartview for mobile
5736
+
5737
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
5738
+
5739
+ - Use css vars already provided instead of hard coding directly from oc-gray
5740
+
5741
+ - Remove unused variables
5742
+
5743
+ - Pass the new top pick color props properly
5744
+
5745
+ - Incorrect import for color (was moved to common)
5746
+
5747
+ ---
5748
+ ## Excalidraw Library
5749
+
5750
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
5751
+
5752
+ ### Features
5753
+
5754
+ - Add ability to turn off compression for files that are smaller than a given size
5755
+
5756
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
5757
+
5758
+ - Add view mode button
5759
+
5760
+ - Add multiple image copy paste or drag and drop
5761
+
5762
+ - Multiple image additions from clipboard
5763
+
5764
+ - Add arrange elements action
5765
+
5766
+ - Add top picks to appProps for both stoke color and background color
5767
+
5768
+ ### Fixes
5769
+
5770
+ - Issues
5771
+
5772
+ - Make mobile mode more myoc looking
5773
+
5774
+ - Add normalise functionality
5775
+
5776
+ - Update with excalidraw
5777
+
5778
+ - Fix imports
5779
+
5780
+ - Fix mutateGroup to use scene.mutateGroup
5781
+
5782
+ - Imports
5783
+
5784
+ - Ensure that fileId is different for compressed vs uncompressed file
5785
+
5786
+ - Remove not working prop for dontResizeLimitMBs
5787
+
5788
+ - Add smartview for mobile
5789
+
5790
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
5791
+
5792
+ - Use css vars already provided instead of hard coding directly from oc-gray
5793
+
5794
+ - Remove unused variables
5795
+
5796
+ - Pass the new top pick color props properly
5797
+
5798
+ - Incorrect import for color (was moved to common)
5799
+
5642
5800
  ---
5643
5801
 
@@ -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.529", 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.531", DEV: true };
3
3
 
4
4
  export {
5
5
  define_import_meta_env_default
6
6
  };
7
- //# sourceMappingURL=chunk-XSA46KXZ.js.map
7
+ //# sourceMappingURL=chunk-ASAPRLCW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-XSA46KXZ.js";
3
+ } from "./chunk-ASAPRLCW.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -332,6 +332,18 @@ var ImageSceneDataError = class extends Error {
332
332
  this.code = code;
333
333
  }
334
334
  };
335
+ var UnsupportedImageFileTypeError = class extends Error {
336
+ constructor(file, message) {
337
+ const mimeType = file.type || "unknown";
338
+ super(`${message} ${file.name} (${mimeType})`);
339
+ __publicField(this, "code", "UNSUPPORTED_IMAGE_FILE_TYPE");
340
+ __publicField(this, "fileName");
341
+ __publicField(this, "mimeType");
342
+ this.name = "UnsupportedImageFileTypeError";
343
+ this.fileName = file.name;
344
+ this.mimeType = mimeType;
345
+ }
346
+ };
335
347
  var WorkerUrlNotDefinedError = class extends Error {
336
348
  constructor(message = "Worker URL is not defined!", code = "WORKER_URL_NOT_DEFINED") {
337
349
  super(message);
@@ -5401,7 +5413,7 @@ var parseFileContents = async (blob) => {
5401
5413
  let contents;
5402
5414
  if (blob.type === MIME_TYPES6.png) {
5403
5415
  try {
5404
- return await (await import("./data/image-AYT4E6ZF.js")).decodePngMetadata(blob);
5416
+ return await (await import("./data/image-S7APFFV6.js")).decodePngMetadata(blob);
5405
5417
  } catch (error) {
5406
5418
  if (error.message === "INVALID") {
5407
5419
  throw new ImageSceneDataError(
@@ -5700,7 +5712,7 @@ var normalizeFile = async (file) => {
5700
5712
  }
5701
5713
  if (file?.name?.endsWith(".excalidraw")) {
5702
5714
  file = createFile(file, MIME_TYPES6.excalidraw, file.name);
5703
- } else if (!file.type || file.type?.startsWith("image/")) {
5715
+ } else if (!file.type || file.type.startsWith("image/") || file.type === "application/octet-stream") {
5704
5716
  const mimeType = await getActualMimeTypeFromImage(file);
5705
5717
  if (mimeType && mimeType !== file.type) {
5706
5718
  file = createFile(file, mimeType, file.name);
@@ -5791,6 +5803,7 @@ export {
5791
5803
  canChangeRoundness,
5792
5804
  AbortError,
5793
5805
  ImageSceneDataError,
5806
+ UnsupportedImageFileTypeError,
5794
5807
  ExcalidrawError,
5795
5808
  Fonts,
5796
5809
  getDefaultAppState,
@@ -5838,4 +5851,4 @@ export {
5838
5851
  createFile,
5839
5852
  normalizeFile
5840
5853
  };
5841
- //# sourceMappingURL=chunk-ROEGCKS3.js.map
5854
+ //# sourceMappingURL=chunk-ITMOGRAW.js.map