@uploadcare/file-uploader 0.50.1-alpha.2 → 0.50.1

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 (114) hide show
  1. package/README.md +30 -30
  2. package/abstract/Block.d.ts +4 -2
  3. package/abstract/Block.d.ts.map +1 -1
  4. package/abstract/Block.js +16 -22
  5. package/abstract/SolutionBlock.js +2 -2
  6. package/abstract/UploaderBlock.js +4 -4
  7. package/abstract/connectBlocksFrom.d.ts +1 -1
  8. package/abstract/connectBlocksFrom.js +4 -4
  9. package/abstract/registerBlocks.d.ts.map +1 -1
  10. package/abstract/registerBlocks.js +2 -13
  11. package/blocks/ActivityHeader/activity-header.css +2 -2
  12. package/blocks/CameraSource/CameraSource.js +8 -8
  13. package/blocks/CameraSource/camera-source.css +14 -14
  14. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +2 -2
  15. package/blocks/CloudImageEditor/src/EditorButtonControl.js +1 -1
  16. package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +2 -2
  17. package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -1
  18. package/blocks/CloudImageEditor/src/EditorFilterControl.js +33 -23
  19. package/blocks/CloudImageEditor/src/EditorImageCropper.js +4 -4
  20. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +5 -5
  21. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
  22. package/blocks/CloudImageEditor/src/EditorImageFader.js +17 -15
  23. package/blocks/CloudImageEditor/src/EditorSlider.js +2 -2
  24. package/blocks/CloudImageEditor/src/EditorToolbar.js +24 -24
  25. package/blocks/CloudImageEditor/src/css/common.css +142 -142
  26. package/blocks/CloudImageEditor/src/css/icons.css +2 -2
  27. package/blocks/CloudImageEditor/src/elements/button/{BtnUi.d.ts → LrBtnUi.d.ts} +3 -3
  28. package/blocks/CloudImageEditor/src/elements/button/LrBtnUi.d.ts.map +1 -0
  29. package/blocks/CloudImageEditor/src/elements/button/{BtnUi.js → LrBtnUi.js} +4 -4
  30. package/blocks/CloudImageEditor/src/index.d.ts +1 -1
  31. package/blocks/CloudImageEditor/src/index.js +1 -1
  32. package/blocks/CloudImageEditor/src/template.js +8 -8
  33. package/blocks/CloudImageEditorActivity/index.css +2 -2
  34. package/blocks/Config/Config.d.ts +1 -1
  35. package/blocks/Config/Config.js +7 -7
  36. package/blocks/Config/config.css +1 -1
  37. package/blocks/Copyright/copyright.css +4 -4
  38. package/blocks/DropArea/DropArea.d.ts +1 -1
  39. package/blocks/DropArea/DropArea.js +4 -4
  40. package/blocks/DropArea/drop-area.css +34 -34
  41. package/blocks/ExternalSource/ExternalSource.js +5 -5
  42. package/blocks/ExternalSource/external-source.css +9 -9
  43. package/blocks/FileItem/FileItem.js +6 -6
  44. package/blocks/FileItem/file-item.css +22 -22
  45. package/blocks/Icon/icon.css +2 -2
  46. package/blocks/Img/ImgConfig.js +1 -1
  47. package/blocks/Img/configurations.d.ts +1 -1
  48. package/blocks/Img/configurations.js +1 -1
  49. package/blocks/Img/test.css +5 -5
  50. package/blocks/Modal/Modal.js +1 -1
  51. package/blocks/Modal/modal.css +15 -15
  52. package/blocks/ProgressBar/progress-bar.css +3 -3
  53. package/blocks/ProgressBarCommon/ProgressBarCommon.js +1 -1
  54. package/blocks/ProgressBarCommon/progress-bar-common.css +2 -2
  55. package/blocks/Range/range.css +8 -8
  56. package/blocks/Select/select.css +2 -2
  57. package/blocks/SimpleBtn/SimpleBtn.js +4 -4
  58. package/blocks/SimpleBtn/simple-btn.css +11 -11
  59. package/blocks/SourceBtn/SourceBtn.js +1 -1
  60. package/blocks/SourceBtn/source-btn.css +5 -5
  61. package/blocks/SourceList/SourceList.js +1 -1
  62. package/blocks/StartFrom/start-from.css +5 -5
  63. package/blocks/UploadList/UploadList.js +6 -6
  64. package/blocks/UploadList/upload-list.css +10 -10
  65. package/blocks/UrlSource/UrlSource.js +5 -5
  66. package/blocks/UrlSource/url-source.css +4 -4
  67. package/blocks/themes/{uc-basic → lr-basic}/common.css +19 -19
  68. package/blocks/themes/{uc-basic → lr-basic}/config.css +1 -1
  69. package/blocks/themes/{uc-basic → lr-basic}/theme.css +7 -7
  70. package/env.d.ts +1 -1
  71. package/env.js +1 -1
  72. package/index.ssr.d.ts +10 -10
  73. package/index.ssr.d.ts.map +1 -1
  74. package/index.ssr.js +108 -108
  75. package/package.json +1 -1
  76. package/solutions/adaptive-image/index.js +1 -1
  77. package/solutions/cloud-image-editor/CloudImageEditor.js +1 -1
  78. package/solutions/cloud-image-editor/index.css +1 -1
  79. package/solutions/file-uploader/inline/FileUploaderInline.js +12 -12
  80. package/solutions/file-uploader/inline/index.css +12 -12
  81. package/solutions/file-uploader/minimal/FileUploaderMinimal.js +6 -6
  82. package/solutions/file-uploader/minimal/index.css +25 -25
  83. package/solutions/file-uploader/regular/FileUploaderRegular.js +15 -15
  84. package/solutions/file-uploader/regular/index.css +1 -1
  85. package/types/exported.d.ts +1 -1
  86. package/types/global.d.ts +2 -2
  87. package/types/jsx.d.ts +37 -37
  88. package/web/blocks.iife.min.js +4 -4
  89. package/web/blocks.min.js +2 -2
  90. package/web/lr-basic.min.css +1 -1
  91. package/web/lr-cloud-image-editor.min.css +1 -1
  92. package/web/lr-cloud-image-editor.min.js +4 -4
  93. package/web/lr-file-uploader-inline.min.css +1 -1
  94. package/web/lr-file-uploader-inline.min.js +2 -2
  95. package/web/lr-file-uploader-minimal.min.css +1 -1
  96. package/web/lr-file-uploader-minimal.min.js +3 -3
  97. package/web/lr-file-uploader-regular.min.css +1 -1
  98. package/web/lr-file-uploader-regular.min.js +2 -2
  99. package/web/lr-img.min.js +2 -2
  100. package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +0 -1
  101. package/web/uc-basic.min.css +0 -1
  102. package/web/uc-cloud-image-editor.min.css +0 -1
  103. package/web/uc-cloud-image-editor.min.js +0 -29
  104. package/web/uc-file-uploader-inline.min.css +0 -1
  105. package/web/uc-file-uploader-inline.min.js +0 -29
  106. package/web/uc-file-uploader-minimal.min.css +0 -1
  107. package/web/uc-file-uploader-minimal.min.js +0 -28
  108. package/web/uc-file-uploader-regular.min.css +0 -1
  109. package/web/uc-file-uploader-regular.min.js +0 -29
  110. package/web/uc-img.min.js +0 -28
  111. /package/blocks/themes/{uc-basic → lr-basic}/index.css +0 -0
  112. /package/blocks/themes/{uc-basic → lr-basic}/svg-sprite.d.ts +0 -0
  113. /package/blocks/themes/{uc-basic → lr-basic}/svg-sprite.d.ts.map +0 -0
  114. /package/blocks/themes/{uc-basic → lr-basic}/svg-sprite.js +0 -0
package/index.ssr.js CHANGED
@@ -41,38 +41,25 @@ export const Block = class {
41
41
  static is = `sym-1`;
42
42
  static bindAttributes = () => {};
43
43
  };
44
- export const BtnUi = class {
45
- static observedAttributes = ["text", "icon", "reverse", "theme"];
46
- static template = `
47
- <button type="button" set="@role:aria-role; @aria-controls: aria-controls">
48
- <uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
49
- <div class="uc-text">{{text}}</div>
50
- </button>
51
- `;
52
- static reg = () => {};
53
- static styleAttrs = [];
54
- static is = `sym-1`;
55
- static bindAttributes = () => {};
56
- };
57
44
  export const CameraSource = class {
58
45
  static template = `
59
- <uc-activity-header>
46
+ <lr-activity-header>
60
47
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
61
- <uc-icon name="back"></uc-icon>
48
+ <lr-icon name="back"></lr-icon>
62
49
  </button>
63
50
  <div set="@hidden: !cameraSelectHidden">
64
- <uc-icon name="camera"></uc-icon>
51
+ <lr-icon name="camera"></lr-icon>
65
52
  <span l10n="caption-camera"></span>
66
53
  </div>
67
- <uc-select
54
+ <lr-select
68
55
  class="uc-camera-select"
69
56
  set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
70
57
  >
71
- </uc-select>
58
+ </lr-select>
72
59
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
73
- <uc-icon name="close"></uc-icon>
60
+ <lr-icon name="close"></lr-icon>
74
61
  </button>
75
- </uc-activity-header>
62
+ </lr-activity-header>
76
63
  <div class="uc-content">
77
64
  <video
78
65
  autoplay
@@ -89,7 +76,7 @@ export const CameraSource = class {
89
76
  ></button>
90
77
  </div>
91
78
  <button type="button" class="uc-shot-btn" set="onclick: onShot; @disabled: shotBtnDisabled">
92
- <uc-icon name="camera"></uc-icon>
79
+ <lr-icon name="camera"></lr-icon>
93
80
  </button>
94
81
  </div>
95
82
  `;
@@ -143,32 +130,32 @@ export const CloudImageEditor = class {
143
130
  static template = `
144
131
  <svg width='0' height='0' style='position:absolute'><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='puc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#puc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#suc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#suc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#suc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#suc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#suc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#suc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#suc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#suc-icon-id__h)'/><defs><linearGradient id='suc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
145
132
  <div class="uc-wrapper uc-wrapper_desktop">
146
- <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
133
+ <lr-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
147
134
  <div class="uc-network_problems_content">
148
135
  <div class="uc-network_problems_icon">
149
- <uc-icon name="sad"></uc-icon>
136
+ <lr-icon name="sad"></lr-icon>
150
137
  </div>
151
138
  <div class="uc-network_problems_text">Network error</div>
152
139
  </div>
153
140
  <div class="uc-network_problems_footer">
154
- <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
141
+ <lr-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></lr-btn-ui>
155
142
  </div>
156
- </uc-presence-toggle>
143
+ </lr-presence-toggle>
157
144
  <div class="uc-viewport">
158
145
  <div class="uc-file_type_outer">
159
146
  <div class="uc-file_type">{{fileType}}</div>
160
147
  </div>
161
148
  <div class="uc-image_container" ref="img-container-el">
162
149
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
163
- <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
164
- <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
150
+ <lr-editor-image-cropper ref="cropper-el"></lr-editor-image-cropper>
151
+ <lr-editor-image-fader ref="fader-el"></lr-editor-image-fader>
165
152
  </div>
166
153
  <div class="uc-info_pan">{{msg}}</div>
167
154
  </div>
168
155
  <div class="uc-toolbar">
169
- <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
156
+ <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
170
157
  <div class="uc-toolbar_content uc-toolbar_content__editor">
171
- <uc-editor-toolbar></uc-editor-toolbar>
158
+ <lr-editor-toolbar></lr-editor-toolbar>
172
159
  </div>
173
160
  </div>
174
161
  </div>
@@ -229,32 +216,32 @@ export const CloudImageEditorBlock = class {
229
216
  static template = `
230
217
  <svg width='0' height='0' style='position:absolute'><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='puc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#puc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#suc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#suc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#suc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#suc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#suc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#suc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#suc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#suc-icon-id__h)'/><defs><linearGradient id='suc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='suc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
231
218
  <div class="uc-wrapper uc-wrapper_desktop">
232
- <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
219
+ <lr-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
233
220
  <div class="uc-network_problems_content">
234
221
  <div class="uc-network_problems_icon">
235
- <uc-icon name="sad"></uc-icon>
222
+ <lr-icon name="sad"></lr-icon>
236
223
  </div>
237
224
  <div class="uc-network_problems_text">Network error</div>
238
225
  </div>
239
226
  <div class="uc-network_problems_footer">
240
- <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
227
+ <lr-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></lr-btn-ui>
241
228
  </div>
242
- </uc-presence-toggle>
229
+ </lr-presence-toggle>
243
230
  <div class="uc-viewport">
244
231
  <div class="uc-file_type_outer">
245
232
  <div class="uc-file_type">{{fileType}}</div>
246
233
  </div>
247
234
  <div class="uc-image_container" ref="img-container-el">
248
235
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
249
- <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
250
- <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
236
+ <lr-editor-image-cropper ref="cropper-el"></lr-editor-image-cropper>
237
+ <lr-editor-image-fader ref="fader-el"></lr-editor-image-fader>
251
238
  </div>
252
239
  <div class="uc-info_pan">{{msg}}</div>
253
240
  </div>
254
241
  <div class="uc-toolbar">
255
- <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
242
+ <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
256
243
  <div class="uc-toolbar_content uc-toolbar_content__editor">
257
- <uc-editor-toolbar></uc-editor-toolbar>
244
+ <lr-editor-toolbar></lr-editor-toolbar>
258
245
  </div>
259
246
  </div>
260
247
  </div>
@@ -399,8 +386,8 @@ export const DropArea = class {
399
386
  <div data-default-slot hidden></div>
400
387
  <div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
401
388
  <div class="uc-icon-container" set="@hidden: !withIcon">
402
- <uc-icon name="default"></uc-icon>
403
- <uc-icon name="arrow-down"></uc-icon>
389
+ <lr-icon name="default"></lr-icon>
390
+ <lr-icon name="arrow-down"></lr-icon>
404
391
  </div>
405
392
  <span class="uc-text">{{text}}</span>
406
393
  </div>
@@ -460,7 +447,7 @@ export const DropArea = class {
460
447
  export const EditorCropButtonControl = class {
461
448
  static template = `
462
449
  <button type="button" role="option">
463
- <uc-icon set="@name: icon;"></uc-icon>
450
+ <lr-icon set="@name: icon;"></lr-icon>
464
451
  <div class="uc-title" ref="title-el">{{title}}</div>
465
452
  </button>
466
453
  `;
@@ -472,7 +459,7 @@ export const EditorCropButtonControl = class {
472
459
  export const EditorFilterControl = class {
473
460
  static template = `
474
461
  <button type="button" role="option">
475
- <uc-icon set="@name: icon;"></uc-icon>
462
+ <lr-icon set="@name: icon;"></lr-icon>
476
463
  <div class="uc-title" ref="title-el">{{title}}</div>
477
464
  </button>
478
465
  `;
@@ -484,7 +471,7 @@ export const EditorFilterControl = class {
484
471
  export const EditorImageCropper = class {
485
472
  static template = `
486
473
  <canvas class="uc-canvas" ref="canvas-el"></canvas>
487
- <uc-crop-frame ref="frame-el"></uc-crop-frame>
474
+ <lr-crop-frame ref="frame-el"></lr-crop-frame>
488
475
  `;
489
476
  static reg = () => {};
490
477
  static styleAttrs = [];
@@ -500,7 +487,7 @@ export const EditorImageFader = class {
500
487
  export const EditorOperationControl = class {
501
488
  static template = `
502
489
  <button type="button" role="option">
503
- <uc-icon set="@name: icon;"></uc-icon>
490
+ <lr-icon set="@name: icon;"></lr-icon>
504
491
  <div class="uc-title" ref="title-el">{{title}}</div>
505
492
  </button>
506
493
  `;
@@ -518,10 +505,10 @@ export const EditorScroller = class {
518
505
  };
519
506
  export const EditorSlider = class {
520
507
  static template = `
521
- <uc-slider-ui
508
+ <lr-slider-ui
522
509
  ref="slider-el"
523
510
  set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
524
- ></uc-slider-ui>
511
+ ></lr-slider-ui>
525
512
  `;
526
513
  static reg = () => {};
527
514
  static styleAttrs = [];
@@ -530,25 +517,25 @@ export const EditorSlider = class {
530
517
  };
531
518
  export const EditorToolbar = class {
532
519
  static template = `
533
- <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
520
+ <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
534
521
  <div class="uc-info-tooltip_container">
535
522
  <div class="uc-info-tooltip_wrapper">
536
523
  <div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
537
524
  </div>
538
525
  </div>
539
526
  <div class="uc-toolbar-container">
540
- <uc-presence-toggle
527
+ <lr-presence-toggle
541
528
  role="tablist"
542
529
  class="uc-sub-toolbar"
543
530
  set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
544
531
  >
545
532
  <div class="uc-tab-content-row">
546
- <uc-presence-toggle
533
+ <lr-presence-toggle
547
534
  id="tab_crop"
548
535
  class="uc-tab-content"
549
536
  set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
550
537
  >
551
- <uc-editor-scroller hidden-scrollbar>
538
+ <lr-editor-scroller hidden-scrollbar>
552
539
  <div class="uc-controls-list_align">
553
540
  <div
554
541
  role="listbox"
@@ -557,15 +544,15 @@ export const EditorToolbar = class {
557
544
  ref="controls-list-crop"
558
545
  ></div>
559
546
  </div>
560
- </uc-editor-scroller>
561
- </uc-presence-toggle>
547
+ </lr-editor-scroller>
548
+ </lr-presence-toggle>
562
549
 
563
- <uc-presence-toggle
550
+ <lr-presence-toggle
564
551
  id="tab_tuning"
565
552
  class="uc-tab-content"
566
553
  set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
567
554
  >
568
- <uc-editor-scroller hidden-scrollbar>
555
+ <lr-editor-scroller hidden-scrollbar>
569
556
  <div class="uc-controls-list_align">
570
557
  <div
571
558
  role="listbox"
@@ -574,15 +561,15 @@ export const EditorToolbar = class {
574
561
  ref="controls-list-tuning"
575
562
  ></div>
576
563
  </div>
577
- </uc-editor-scroller>
578
- </uc-presence-toggle>
564
+ </lr-editor-scroller>
565
+ </lr-presence-toggle>
579
566
 
580
- <uc-presence-toggle
567
+ <lr-presence-toggle
581
568
  id="tab_filters"
582
569
  class="uc-tab-content"
583
570
  set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
584
571
  >
585
- <uc-editor-scroller hidden-scrollbar>
572
+ <lr-editor-scroller hidden-scrollbar>
586
573
  <div class="uc-controls-list_align">
587
574
  <div
588
575
  role="listbox"
@@ -591,75 +578,75 @@ export const EditorToolbar = class {
591
578
  ref="controls-list-filters"
592
579
  ></div>
593
580
  </div>
594
- </uc-editor-scroller>
595
- </uc-presence-toggle>
581
+ </lr-editor-scroller>
582
+ </lr-presence-toggle>
596
583
  </div>
597
584
  <div class="uc-controls-row">
598
- <uc-presence-toggle
585
+ <lr-presence-toggle
599
586
  class="uc-tab-toggles"
600
587
  set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
601
588
  >
602
589
  <div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
603
590
 
604
- <uc-presence-toggle
591
+ <lr-presence-toggle
605
592
  class="uc-tab-toggle"
606
593
  set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
607
594
  >
608
- <uc-btn-ui
595
+ <lr-btn-ui
609
596
  theme="tab"
610
597
  ref="tab-toggle-crop"
611
598
  data-id="crop"
612
599
  icon="crop"
613
600
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop"
614
601
  >
615
- </uc-btn-ui>
616
- </uc-presence-toggle>
602
+ </lr-btn-ui>
603
+ </lr-presence-toggle>
617
604
 
618
- <uc-presence-toggle
605
+ <lr-presence-toggle
619
606
  class="uc-tab-toggle"
620
607
  set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
621
608
  >
622
- <uc-btn-ui
609
+ <lr-btn-ui
623
610
  theme="tab"
624
611
  ref="tab-toggle-tuning"
625
612
  data-id="tuning"
626
613
  icon="tuning"
627
614
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning"
628
615
  >
629
- </uc-btn-ui>
630
- </uc-presence-toggle>
616
+ </lr-btn-ui>
617
+ </lr-presence-toggle>
631
618
 
632
- <uc-presence-toggle
619
+ <lr-presence-toggle
633
620
  class="uc-tab-toggle"
634
621
  set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
635
622
  >
636
- <uc-btn-ui
623
+ <lr-btn-ui
637
624
  theme="tab"
638
625
  ref="tab-toggle-filters"
639
626
  data-id="filters"
640
627
  icon="filters"
641
628
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters"
642
629
  >
643
- </uc-btn-ui>
644
- </uc-presence-toggle>
630
+ </lr-btn-ui>
631
+ </lr-presence-toggle>
645
632
 
646
- </uc-presence-toggle>
647
- <uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel"> </uc-btn-ui>
648
- <uc-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply"> </uc-btn-ui>
633
+ </lr-presence-toggle>
634
+ <lr-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel"> </lr-btn-ui>
635
+ <lr-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply"> </lr-btn-ui>
649
636
  </div>
650
- </uc-presence-toggle>
651
- <uc-presence-toggle
637
+ </lr-presence-toggle>
638
+ <lr-presence-toggle
652
639
  class="uc-sub-toolbar"
653
640
  set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
654
641
  >
655
642
  <div class="uc-slider">
656
- <uc-editor-slider ref="slider-el"></uc-editor-slider>
643
+ <lr-editor-slider ref="slider-el"></lr-editor-slider>
657
644
  </div>
658
645
  <div class="uc-controls-row">
659
- <uc-btn-ui theme="secondary" set="onclick: on.cancelSlider;" l10n="@text:cancel"> </uc-btn-ui>
660
- <uc-btn-ui theme="primary" set="onclick: on.applySlider;" l10n="@text:apply"> </uc-btn-ui>
646
+ <lr-btn-ui theme="secondary" set="onclick: on.cancelSlider;" l10n="@text:cancel"> </lr-btn-ui>
647
+ <lr-btn-ui theme="primary" set="onclick: on.applySlider;" l10n="@text:apply"> </lr-btn-ui>
661
648
  </div>
662
- </uc-presence-toggle>
649
+ </lr-presence-toggle>
663
650
  </div>
664
651
  `;
665
652
  static reg = () => {};
@@ -669,18 +656,18 @@ export const EditorToolbar = class {
669
656
  };
670
657
  export const ExternalSource = class {
671
658
  static template = `
672
- <uc-activity-header>
659
+ <lr-activity-header>
673
660
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
674
- <uc-icon name="back"></uc-icon>
661
+ <lr-icon name="back"></lr-icon>
675
662
  </button>
676
663
  <div>
677
- <uc-icon set="@name: activityIcon"></uc-icon>
664
+ <lr-icon set="@name: activityIcon"></lr-icon>
678
665
  <span>{{activityCaption}}</span>
679
666
  </div>
680
667
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
681
- <uc-icon name="close"></uc-icon>
668
+ <lr-icon name="close"></lr-icon>
682
669
  </button>
683
- </uc-activity-header>
670
+ </lr-activity-header>
684
671
  <div class="uc-content">
685
672
  <div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
686
673
  <div class="uc-toolbar">
@@ -746,7 +733,7 @@ export const FileItem = class {
746
733
  <div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
747
734
  <div class="uc-thumb" set="style.backgroundImage: thumbUrl">
748
735
  <div class="uc-badge">
749
- <uc-icon set="@name: badgeIcon"></uc-icon>
736
+ <lr-icon set="@name: badgeIcon"></lr-icon>
750
737
  </div>
751
738
  </div>
752
739
  <div class="uc-file-name-wrapper">
@@ -760,7 +747,7 @@ export const FileItem = class {
760
747
  class="uc-edit-btn uc-mini-btn"
761
748
  set="onclick: onEdit; @hidden: !isEditable"
762
749
  >
763
- <uc-icon name="edit-file"></uc-icon>
750
+ <lr-icon name="edit-file"></lr-icon>
764
751
  </button>
765
752
  <button
766
753
  type="button"
@@ -768,13 +755,13 @@ export const FileItem = class {
768
755
  class="uc-remove-btn uc-mini-btn"
769
756
  set="onclick: onRemove;"
770
757
  >
771
- <uc-icon name="remove-file"></uc-icon>
758
+ <lr-icon name="remove-file"></lr-icon>
772
759
  </button>
773
760
  <button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
774
- <uc-icon name="upload"></uc-icon>
761
+ <lr-icon name="upload"></lr-icon>
775
762
  </button>
776
763
  </div>
777
- <uc-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
764
+ <lr-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </lr-progress-bar>
778
765
  </div>
779
766
  `;
780
767
  static activeInstances = {};
@@ -937,6 +924,19 @@ export const LineLoaderUi = class {
937
924
  static is = `sym-1`;
938
925
  static bindAttributes = () => {};
939
926
  };
927
+ export const LrBtnUi = class {
928
+ static observedAttributes = ["text", "icon", "reverse", "theme"];
929
+ static template = `
930
+ <button type="button" set="@role:aria-role; @aria-controls: aria-controls">
931
+ <lr-icon set="className: iconCss; @name: icon; @hidden: !icon"></lr-icon>
932
+ <div class="uc-text">{{text}}</div>
933
+ </button>
934
+ `;
935
+ static reg = () => {};
936
+ static styleAttrs = [];
937
+ static is = `sym-1`;
938
+ static bindAttributes = () => {};
939
+ };
940
940
  export const Modal = class {
941
941
  static styleAttrs = [];
942
942
  static StateConsumerScope = `modal`;
@@ -950,7 +950,7 @@ export const Modal = class {
950
950
  static bindAttributes = () => {};
951
951
  };
952
952
  export const PACKAGE_NAME = `blocks`;
953
- export const PACKAGE_VERSION = `0.49.0`;
953
+ export const PACKAGE_VERSION = `0.50.1`;
954
954
  export const PresenceToggle = class {
955
955
  static template = `<slot></slot> `;
956
956
  static reg = () => {};
@@ -966,7 +966,7 @@ export const ProgressBar = class {
966
966
  static bindAttributes = () => {};
967
967
  };
968
968
  export const ProgressBarCommon = class {
969
- static template = ` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
969
+ static template = ` <lr-progress-bar set="visible: visible; value: value"></lr-progress-bar> `;
970
970
  static extSrcList = {
971
971
  FACEBOOK: "facebook",
972
972
  DROPBOX: "dropbox",
@@ -1022,14 +1022,14 @@ export const Select = class {
1022
1022
  export const SimpleBtn = class {
1023
1023
  static styleAttrs = [];
1024
1024
  static template = `
1025
- <uc-drop-area set="@disabled: !withDropZone">
1025
+ <lr-drop-area set="@disabled: !withDropZone">
1026
1026
  <button type="button" set="onclick: onClick">
1027
- <uc-icon name="upload"></uc-icon>
1027
+ <lr-icon name="upload"></lr-icon>
1028
1028
  <span l10n="button-text"></span>
1029
1029
  <slot></slot>
1030
1030
  <div class="uc-visual-drop-area" l10n="drop-files-here"></div>
1031
1031
  </button>
1032
- </uc-drop-area>
1032
+ </lr-drop-area>
1033
1033
  `;
1034
1034
  static observedAttributes = ["dropzone"];
1035
1035
  static extSrcList = {
@@ -1101,7 +1101,7 @@ export const SolutionBlock = class {
1101
1101
  export const SourceBtn = class {
1102
1102
  static template = `
1103
1103
  <button type="button">
1104
- <uc-icon set="@name: iconName"></uc-icon>
1104
+ <lr-icon set="@name: iconName"></lr-icon>
1105
1105
  <div class="uc-txt" l10n="src-type"></div>
1106
1106
  </button>
1107
1107
  `;
@@ -1254,18 +1254,18 @@ export const UploadCtxProvider = class {
1254
1254
  };
1255
1255
  export const UploadList = class {
1256
1256
  static template = `
1257
- <uc-activity-header>
1257
+ <lr-activity-header>
1258
1258
  <span class="uc-header-text">{{headerText}}</span>
1259
1259
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
1260
- <uc-icon name="close"></uc-icon>
1260
+ <lr-icon name="close"></lr-icon>
1261
1261
  </button>
1262
- </uc-activity-header>
1262
+ </lr-activity-header>
1263
1263
 
1264
1264
  <div class="uc-no-files" set="@hidden: hasFiles">
1265
1265
  <slot name="empty"><span l10n="no-files"></span></slot>
1266
1266
  </div>
1267
1267
 
1268
- <div class="uc-files" repeat="*uploadList" repeat-item-tag="uc-file-item"></div>
1268
+ <div class="uc-files" repeat="*uploadList" repeat-item-tag="lr-file-item"></div>
1269
1269
 
1270
1270
  <div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
1271
1271
 
@@ -1277,7 +1277,7 @@ export const UploadList = class {
1277
1277
  class="uc-add-more-btn uc-secondary-btn"
1278
1278
  set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
1279
1279
  >
1280
- <uc-icon name="add"></uc-icon><span l10n="add-more"></span>
1280
+ <lr-icon name="add"></lr-icon><span l10n="add-more"></span>
1281
1281
  </button>
1282
1282
  <button
1283
1283
  type="button"
@@ -1293,7 +1293,7 @@ export const UploadList = class {
1293
1293
  ></button>
1294
1294
  </div>
1295
1295
 
1296
- <uc-drop-area ghost></uc-drop-area>
1296
+ <lr-drop-area ghost></lr-drop-area>
1297
1297
  `;
1298
1298
  static extSrcList = {
1299
1299
  FACEBOOK: "facebook",
@@ -1388,18 +1388,18 @@ export const UploaderBlock = class {
1388
1388
  };
1389
1389
  export const UrlSource = class {
1390
1390
  static template = `
1391
- <uc-activity-header>
1391
+ <lr-activity-header>
1392
1392
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
1393
- <uc-icon name="back"></uc-icon>
1393
+ <lr-icon name="back"></lr-icon>
1394
1394
  </button>
1395
1395
  <div>
1396
- <uc-icon name="url"></uc-icon>
1396
+ <lr-icon name="url"></lr-icon>
1397
1397
  <span l10n="caption-from-url"></span>
1398
1398
  </div>
1399
1399
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
1400
- <uc-icon name="close"></uc-icon>
1400
+ <lr-icon name="close"></lr-icon>
1401
1401
  </button>
1402
- </uc-activity-header>
1402
+ </lr-activity-header>
1403
1403
  <form class="uc-content">
1404
1404
  <input placeholder="https://" class="uc-url-input" type="text" ref="input" set="oninput: onInput" />
1405
1405
  <button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "0.50.1-alpha.2",
3
+ "version": "0.50.1",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",
@@ -1,5 +1,5 @@
1
1
  import { Img } from '../../blocks/Img/Img.js';
2
2
 
3
- Img.reg('uc-img');
3
+ Img.reg('lr-img');
4
4
 
5
5
  export { Img };
@@ -2,7 +2,7 @@
2
2
  import { CloudImageEditorBlock } from '../../blocks/CloudImageEditor/src/CloudImageEditorBlock.js';
3
3
 
4
4
  export class CloudImageEditor extends CloudImageEditorBlock {
5
- static styleAttrs = [...super.styleAttrs, 'uc-wgt-common'];
5
+ static styleAttrs = [...super.styleAttrs, 'lr-wgt-common'];
6
6
 
7
7
  initCallback() {
8
8
  super.initCallback();