@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 CHANGED
@@ -5587,5 +5587,162 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
5587
5587
 
5588
5588
  - Incorrect import for color (was moved to common)
5589
5589
 
5590
+ ---## Excalidraw Library
5591
+
5592
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
5593
+
5594
+ ### Features
5595
+
5596
+ - Add ability to turn off compression for files that are smaller than a given size
5597
+
5598
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
5599
+
5600
+ - Add view mode button
5601
+
5602
+ - Add multiple image copy paste or drag and drop
5603
+
5604
+ - Multiple image additions from clipboard
5605
+
5606
+ - Add arrange elements action
5607
+
5608
+ - Add top picks to appProps for both stoke color and background color
5609
+
5610
+ ### Fixes
5611
+
5612
+ - Issues
5613
+
5614
+ - Make mobile mode more myoc looking
5615
+
5616
+ - Add normalise functionality
5617
+
5618
+ - Update with excalidraw
5619
+
5620
+ - Fix imports
5621
+
5622
+ - Fix mutateGroup to use scene.mutateGroup
5623
+
5624
+ - Imports
5625
+
5626
+ - Ensure that fileId is different for compressed vs uncompressed file
5627
+
5628
+ - Remove not working prop for dontResizeLimitMBs
5629
+
5630
+ - Add smartview for mobile
5631
+
5632
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
5633
+
5634
+ - Use css vars already provided instead of hard coding directly from oc-gray
5635
+
5636
+ - Remove unused variables
5637
+
5638
+ - Pass the new top pick color props properly
5639
+
5640
+ - Incorrect import for color (was moved to common)
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
+
5590
5747
  ---
5591
5748
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-H5L4PT3U.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-GYAOLTNI.js")).decodePngMetadata(blob);
5416
+ return await (await import("./data/image-PZBZVE3P.js")).decodePngMetadata(blob);
5405
5417
  } catch (error) {
5406
5418
  if (error.message === "INVALID") {
5407
5419
  throw new ImageSceneDataError(
@@ -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-7GX2B2N5.js.map
5854
+ //# sourceMappingURL=chunk-6NFVXSAY.js.map