@myoc/excalidraw 0.19.542 → 0.19.544

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 (32) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/dist/dev/{chunk-2OVHIH4L.js → chunk-35XUJXYN.js} +3 -3
  3. package/dist/dev/{chunk-2OVHIH4L.js.map → chunk-35XUJXYN.js.map} +1 -1
  4. package/dist/dev/{chunk-D7VSTSAC.js → chunk-AKYL2SH7.js} +2 -2
  5. package/dist/dev/{chunk-E77EFOSN.js → chunk-DPY7NUSG.js} +15 -3
  6. package/dist/dev/{chunk-E77EFOSN.js.map → chunk-DPY7NUSG.js.map} +1 -1
  7. package/dist/dev/data/{image-7IWBMQLB.js → image-AIHWJUYD.js} +3 -3
  8. package/dist/dev/index.css +76 -40
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +636 -438
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-JINXO2V2.js → en-CBVTFJ6O.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-2YEDAYNK.js → chunk-SBYJFHOS.js} +1 -1
  16. package/dist/prod/{chunk-J5DZGRBF.js → chunk-TIQBOD5V.js} +2 -2
  17. package/dist/prod/{chunk-KGIBYNMP.js → chunk-VXOLR3OR.js} +4 -3
  18. package/dist/prod/data/image-P327FLYY.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +19 -19
  21. package/dist/prod/locales/{en-2ZA2LKRK.js → en-7BECMN3G.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +1 -1
  25. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +4 -0
  26. package/dist/types/excalidraw/clipboard.d.ts +1 -0
  27. package/dist/types/excalidraw/components/App.d.ts +8 -0
  28. package/package.json +4 -4
  29. package/dist/prod/data/image-I7AV73WO.js +0 -1
  30. /package/dist/dev/{chunk-D7VSTSAC.js.map → chunk-AKYL2SH7.js.map} +0 -0
  31. /package/dist/dev/data/{image-7IWBMQLB.js.map → image-AIHWJUYD.js.map} +0 -0
  32. /package/dist/dev/locales/{en-JINXO2V2.js.map → en-CBVTFJ6O.js.map} +0 -0
@@ -2,12 +2,12 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-E77EFOSN.js";
6
- import "../chunk-D7VSTSAC.js";
5
+ } from "../chunk-DPY7NUSG.js";
6
+ import "../chunk-AKYL2SH7.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
9
9
  decodePngMetadata,
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-7IWBMQLB.js.map
13
+ //# sourceMappingURL=image-AIHWJUYD.js.map
@@ -4090,6 +4090,62 @@ body.excalidraw-color-dnd-active * {
4090
4090
  line-height: 1;
4091
4091
  }
4092
4092
 
4093
+ /* components/HintViewer.scss */
4094
+ .excalidraw .HintViewer {
4095
+ pointer-events: none;
4096
+ box-sizing: border-box;
4097
+ position: absolute;
4098
+ display: flex;
4099
+ flex-direction: column;
4100
+ justify-content: center;
4101
+ left: 0;
4102
+ top: 100%;
4103
+ max-width: 100%;
4104
+ width: 100%;
4105
+ margin-top: 0.5rem;
4106
+ text-align: center;
4107
+ color: #fff;
4108
+ font-size: 0.75rem;
4109
+ opacity: 0.6;
4110
+ }
4111
+ .excalidraw--mobile.excalidraw .HintViewer {
4112
+ position: static;
4113
+ padding-right: 2rem;
4114
+ }
4115
+ .excalidraw .HintViewer > span {
4116
+ align-self: center;
4117
+ max-width: 100%;
4118
+ padding: 0.25rem 0.5rem;
4119
+ background-color: rgba(0, 0, 0, 0.55);
4120
+ border-radius: 4px;
4121
+ white-space: pre-line;
4122
+ }
4123
+ .excalidraw .HintViewer kbd {
4124
+ display: inline-block;
4125
+ margin: 0 1px;
4126
+ font-family: monospace;
4127
+ border: 1px solid currentColor;
4128
+ border-radius: 4px;
4129
+ padding: 1px 3px;
4130
+ font-size: 10px;
4131
+ }
4132
+ .excalidraw .view-mode-hint {
4133
+ position: absolute;
4134
+ top: 0;
4135
+ right: 0;
4136
+ left: 0;
4137
+ display: flex;
4138
+ justify-content: center;
4139
+ }
4140
+ .excalidraw .view-mode-hint .HintViewer {
4141
+ position: static;
4142
+ align-items: center;
4143
+ width: auto;
4144
+ }
4145
+ .excalidraw.theme--dark .HintViewer {
4146
+ color: #fff;
4147
+ }
4148
+
4093
4149
  /* components/ImageExportDialog.scss */
4094
4150
  .excalidraw {
4095
4151
  --ImageExportModal-preview-border: #d6d6d6;
@@ -4864,46 +4920,6 @@ body.excalidraw-color-dnd-active * {
4864
4920
  width: 0.9em;
4865
4921
  }
4866
4922
 
4867
- /* components/HintViewer.scss */
4868
- .excalidraw .HintViewer {
4869
- pointer-events: none;
4870
- box-sizing: border-box;
4871
- position: absolute;
4872
- display: flex;
4873
- flex-direction: column;
4874
- justify-content: center;
4875
- left: 0;
4876
- top: 100%;
4877
- max-width: 100%;
4878
- width: 100%;
4879
- margin-top: 0.5rem;
4880
- text-align: center;
4881
- color: var(--color-gray-40);
4882
- font-size: 0.75rem;
4883
- }
4884
- .excalidraw--mobile.excalidraw .HintViewer {
4885
- position: static;
4886
- padding-right: 2rem;
4887
- }
4888
- .excalidraw .HintViewer > span {
4889
- padding: 0.25rem;
4890
- }
4891
- .excalidraw .HintViewer kbd {
4892
- display: inline-block;
4893
- margin: 0 1px;
4894
- font-family: monospace;
4895
- border: 1px solid var(--color-gray-40);
4896
- border-radius: 4px;
4897
- padding: 1px 3px;
4898
- font-size: 10px;
4899
- }
4900
- .excalidraw.theme--dark .HintViewer {
4901
- color: var(--color-gray-60);
4902
- }
4903
- .excalidraw.theme--dark .HintViewer kbd {
4904
- border-color: var(--color-gray-60);
4905
- }
4906
-
4907
4923
  /* components/LayerUI.scss */
4908
4924
  .excalidraw .layer-ui__wrapper.animate {
4909
4925
  transition: width 0.1s ease-in-out;
@@ -6529,6 +6545,26 @@ body.excalidraw-cursor-resize * {
6529
6545
  width: 100%;
6530
6546
  height: 100%;
6531
6547
  }
6548
+ @keyframes smart-zoom-key-pulse {
6549
+ 0%, 100% {
6550
+ background-color: var(--color-surface-low);
6551
+ box-shadow: 0 0 0 1px var(--color-surface-lowest), 0 0 0 2px transparent;
6552
+ }
6553
+ 50% {
6554
+ background-color: var(--color-primary-light);
6555
+ box-shadow: 0 0 0 1px var(--color-surface-lowest), 0 0 0 2px var(--color-primary-light);
6556
+ }
6557
+ }
6558
+ .excalidraw .smart-zoom-button button.smart-zoom-button--key-held {
6559
+ animation: smart-zoom-key-pulse 1.4s ease-in-out infinite;
6560
+ }
6561
+ @media (prefers-reduced-motion: reduce) {
6562
+ .excalidraw .smart-zoom-button button.smart-zoom-button--key-held {
6563
+ animation: none;
6564
+ background-color: var(--color-primary-light);
6565
+ box-shadow: 0 0 0 1px var(--color-primary-light);
6566
+ }
6567
+ }
6532
6568
  .excalidraw .reset-zoom-button {
6533
6569
  font-family: var(--ui-font);
6534
6570
  }