@uploadcare/file-uploader 0.50.1 → 1.1.0

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 (106) hide show
  1. package/README.md +16 -16
  2. package/abstract/Block.d.ts.map +1 -1
  3. package/abstract/Block.js +4 -2
  4. package/abstract/SolutionBlock.js +2 -2
  5. package/abstract/connectBlocksFrom.d.ts +1 -1
  6. package/abstract/connectBlocksFrom.js +4 -4
  7. package/abstract/registerBlocks.d.ts.map +1 -1
  8. package/abstract/registerBlocks.js +3 -2
  9. package/blocks/ActivityHeader/activity-header.css +2 -2
  10. package/blocks/CameraSource/CameraSource.js +8 -8
  11. package/blocks/CameraSource/camera-source.css +14 -14
  12. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +1 -1
  13. package/blocks/CloudImageEditor/src/EditorButtonControl.js +1 -1
  14. package/blocks/CloudImageEditor/src/EditorFilterControl.js +1 -1
  15. package/blocks/CloudImageEditor/src/EditorImageCropper.js +1 -1
  16. package/blocks/CloudImageEditor/src/EditorSlider.js +2 -2
  17. package/blocks/CloudImageEditor/src/EditorToolbar.js +20 -20
  18. package/blocks/CloudImageEditor/src/css/common.css +142 -142
  19. package/blocks/CloudImageEditor/src/css/icons.css +2 -2
  20. package/blocks/CloudImageEditor/src/elements/button/{LrBtnUi.d.ts → BtnUi.d.ts} +3 -3
  21. package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
  22. package/blocks/CloudImageEditor/src/elements/button/{LrBtnUi.js → BtnUi.js} +4 -4
  23. package/blocks/CloudImageEditor/src/index.d.ts +1 -1
  24. package/blocks/CloudImageEditor/src/index.js +1 -1
  25. package/blocks/CloudImageEditor/src/template.js +8 -8
  26. package/blocks/CloudImageEditor/src/util.d.ts.map +1 -1
  27. package/blocks/CloudImageEditor/src/util.js +2 -0
  28. package/blocks/CloudImageEditorActivity/index.css +2 -2
  29. package/blocks/Config/Config.d.ts +1 -1
  30. package/blocks/Config/Config.js +7 -7
  31. package/blocks/Config/config.css +1 -1
  32. package/blocks/Copyright/copyright.css +4 -4
  33. package/blocks/DropArea/DropArea.d.ts +1 -1
  34. package/blocks/DropArea/DropArea.js +4 -4
  35. package/blocks/DropArea/drop-area.css +34 -34
  36. package/blocks/ExternalSource/ExternalSource.js +5 -5
  37. package/blocks/ExternalSource/external-source.css +9 -9
  38. package/blocks/FileItem/FileItem.js +5 -5
  39. package/blocks/FileItem/file-item.css +22 -22
  40. package/blocks/Icon/icon.css +2 -2
  41. package/blocks/Img/ImgConfig.js +1 -1
  42. package/blocks/Img/configurations.d.ts +1 -1
  43. package/blocks/Img/configurations.js +1 -1
  44. package/blocks/Img/test.css +5 -5
  45. package/blocks/Modal/Modal.js +1 -1
  46. package/blocks/Modal/modal.css +15 -15
  47. package/blocks/ProgressBar/progress-bar.css +3 -3
  48. package/blocks/ProgressBarCommon/ProgressBarCommon.js +1 -1
  49. package/blocks/ProgressBarCommon/progress-bar-common.css +2 -2
  50. package/blocks/Range/range.css +8 -8
  51. package/blocks/Select/select.css +2 -2
  52. package/blocks/SimpleBtn/SimpleBtn.js +4 -4
  53. package/blocks/SimpleBtn/simple-btn.css +11 -11
  54. package/blocks/SourceBtn/SourceBtn.js +1 -1
  55. package/blocks/SourceBtn/source-btn.css +5 -5
  56. package/blocks/SourceList/SourceList.js +1 -1
  57. package/blocks/StartFrom/start-from.css +5 -5
  58. package/blocks/UploadList/UploadList.js +6 -6
  59. package/blocks/UploadList/upload-list.css +10 -10
  60. package/blocks/UrlSource/UrlSource.js +5 -5
  61. package/blocks/UrlSource/url-source.css +4 -4
  62. package/blocks/themes/{lr-basic → uc-basic}/common.css +19 -19
  63. package/blocks/themes/{lr-basic → uc-basic}/config.css +1 -1
  64. package/blocks/themes/{lr-basic → uc-basic}/theme.css +7 -7
  65. package/env.d.ts +1 -1
  66. package/env.d.ts.map +1 -1
  67. package/env.js +1 -1
  68. package/index.ssr.d.ts +10 -10
  69. package/index.ssr.d.ts.map +1 -1
  70. package/index.ssr.js +108 -108
  71. package/package.json +1 -1
  72. package/solutions/adaptive-image/index.js +1 -1
  73. package/solutions/cloud-image-editor/CloudImageEditor.js +1 -1
  74. package/solutions/cloud-image-editor/index.css +1 -1
  75. package/solutions/file-uploader/inline/FileUploaderInline.js +12 -12
  76. package/solutions/file-uploader/inline/index.css +12 -12
  77. package/solutions/file-uploader/minimal/FileUploaderMinimal.js +6 -6
  78. package/solutions/file-uploader/minimal/index.css +25 -25
  79. package/solutions/file-uploader/regular/FileUploaderRegular.js +15 -15
  80. package/solutions/file-uploader/regular/index.css +1 -1
  81. package/types/global.d.ts +2 -2
  82. package/types/jsx.d.ts +37 -37
  83. package/utils/cdn-utils.d.ts.map +1 -1
  84. package/utils/cdn-utils.js +0 -2
  85. package/web/blocks.iife.min.js +4 -4
  86. package/web/blocks.min.js +4 -4
  87. package/web/{lr-file-uploader-regular.min.css → uc-basic.min.css} +1 -1
  88. package/web/{lr-cloud-image-editor.min.css → uc-cloud-image-editor.min.css} +1 -1
  89. package/web/uc-cloud-image-editor.min.js +29 -0
  90. package/web/{lr-file-uploader-inline.min.css → uc-file-uploader-inline.min.css} +1 -1
  91. package/web/uc-file-uploader-inline.min.js +29 -0
  92. package/web/{lr-file-uploader-minimal.min.css → uc-file-uploader-minimal.min.css} +1 -1
  93. package/web/uc-file-uploader-minimal.min.js +28 -0
  94. package/web/{lr-basic.min.css → uc-file-uploader-regular.min.css} +1 -1
  95. package/web/uc-file-uploader-regular.min.js +29 -0
  96. package/web/uc-img.min.js +28 -0
  97. package/blocks/CloudImageEditor/src/elements/button/LrBtnUi.d.ts.map +0 -1
  98. package/web/lr-cloud-image-editor.min.js +0 -29
  99. package/web/lr-file-uploader-inline.min.js +0 -29
  100. package/web/lr-file-uploader-minimal.min.js +0 -28
  101. package/web/lr-file-uploader-regular.min.js +0 -29
  102. package/web/lr-img.min.js +0 -28
  103. /package/blocks/themes/{lr-basic → uc-basic}/index.css +0 -0
  104. /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.d.ts +0 -0
  105. /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.d.ts.map +0 -0
  106. /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.js +0 -0
package/index.ssr.js CHANGED
@@ -41,25 +41,38 @@ 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
+ };
44
57
  export const CameraSource = class {
45
58
  static template = `
46
- <lr-activity-header>
59
+ <uc-activity-header>
47
60
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
48
- <lr-icon name="back"></lr-icon>
61
+ <uc-icon name="back"></uc-icon>
49
62
  </button>
50
63
  <div set="@hidden: !cameraSelectHidden">
51
- <lr-icon name="camera"></lr-icon>
64
+ <uc-icon name="camera"></uc-icon>
52
65
  <span l10n="caption-camera"></span>
53
66
  </div>
54
- <lr-select
67
+ <uc-select
55
68
  class="uc-camera-select"
56
69
  set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
57
70
  >
58
- </lr-select>
71
+ </uc-select>
59
72
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
60
- <lr-icon name="close"></lr-icon>
73
+ <uc-icon name="close"></uc-icon>
61
74
  </button>
62
- </lr-activity-header>
75
+ </uc-activity-header>
63
76
  <div class="uc-content">
64
77
  <video
65
78
  autoplay
@@ -76,7 +89,7 @@ export const CameraSource = class {
76
89
  ></button>
77
90
  </div>
78
91
  <button type="button" class="uc-shot-btn" set="onclick: onShot; @disabled: shotBtnDisabled">
79
- <lr-icon name="camera"></lr-icon>
92
+ <uc-icon name="camera"></uc-icon>
80
93
  </button>
81
94
  </div>
82
95
  `;
@@ -130,32 +143,32 @@ export const CloudImageEditor = class {
130
143
  static template = `
131
144
  <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>
132
145
  <div class="uc-wrapper uc-wrapper_desktop">
133
- <lr-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
146
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
134
147
  <div class="uc-network_problems_content">
135
148
  <div class="uc-network_problems_icon">
136
- <lr-icon name="sad"></lr-icon>
149
+ <uc-icon name="sad"></uc-icon>
137
150
  </div>
138
151
  <div class="uc-network_problems_text">Network error</div>
139
152
  </div>
140
153
  <div class="uc-network_problems_footer">
141
- <lr-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></lr-btn-ui>
154
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
142
155
  </div>
143
- </lr-presence-toggle>
156
+ </uc-presence-toggle>
144
157
  <div class="uc-viewport">
145
158
  <div class="uc-file_type_outer">
146
159
  <div class="uc-file_type">{{fileType}}</div>
147
160
  </div>
148
161
  <div class="uc-image_container" ref="img-container-el">
149
162
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
150
- <lr-editor-image-cropper ref="cropper-el"></lr-editor-image-cropper>
151
- <lr-editor-image-fader ref="fader-el"></lr-editor-image-fader>
163
+ <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
164
+ <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
152
165
  </div>
153
166
  <div class="uc-info_pan">{{msg}}</div>
154
167
  </div>
155
168
  <div class="uc-toolbar">
156
- <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
169
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
157
170
  <div class="uc-toolbar_content uc-toolbar_content__editor">
158
- <lr-editor-toolbar></lr-editor-toolbar>
171
+ <uc-editor-toolbar></uc-editor-toolbar>
159
172
  </div>
160
173
  </div>
161
174
  </div>
@@ -216,32 +229,32 @@ export const CloudImageEditorBlock = class {
216
229
  static template = `
217
230
  <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>
218
231
  <div class="uc-wrapper uc-wrapper_desktop">
219
- <lr-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
232
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
220
233
  <div class="uc-network_problems_content">
221
234
  <div class="uc-network_problems_icon">
222
- <lr-icon name="sad"></lr-icon>
235
+ <uc-icon name="sad"></uc-icon>
223
236
  </div>
224
237
  <div class="uc-network_problems_text">Network error</div>
225
238
  </div>
226
239
  <div class="uc-network_problems_footer">
227
- <lr-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></lr-btn-ui>
240
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
228
241
  </div>
229
- </lr-presence-toggle>
242
+ </uc-presence-toggle>
230
243
  <div class="uc-viewport">
231
244
  <div class="uc-file_type_outer">
232
245
  <div class="uc-file_type">{{fileType}}</div>
233
246
  </div>
234
247
  <div class="uc-image_container" ref="img-container-el">
235
248
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
236
- <lr-editor-image-cropper ref="cropper-el"></lr-editor-image-cropper>
237
- <lr-editor-image-fader ref="fader-el"></lr-editor-image-fader>
249
+ <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
250
+ <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
238
251
  </div>
239
252
  <div class="uc-info_pan">{{msg}}</div>
240
253
  </div>
241
254
  <div class="uc-toolbar">
242
- <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
255
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
243
256
  <div class="uc-toolbar_content uc-toolbar_content__editor">
244
- <lr-editor-toolbar></lr-editor-toolbar>
257
+ <uc-editor-toolbar></uc-editor-toolbar>
245
258
  </div>
246
259
  </div>
247
260
  </div>
@@ -386,8 +399,8 @@ export const DropArea = class {
386
399
  <div data-default-slot hidden></div>
387
400
  <div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
388
401
  <div class="uc-icon-container" set="@hidden: !withIcon">
389
- <lr-icon name="default"></lr-icon>
390
- <lr-icon name="arrow-down"></lr-icon>
402
+ <uc-icon name="default"></uc-icon>
403
+ <uc-icon name="arrow-down"></uc-icon>
391
404
  </div>
392
405
  <span class="uc-text">{{text}}</span>
393
406
  </div>
@@ -447,7 +460,7 @@ export const DropArea = class {
447
460
  export const EditorCropButtonControl = class {
448
461
  static template = `
449
462
  <button type="button" role="option">
450
- <lr-icon set="@name: icon;"></lr-icon>
463
+ <uc-icon set="@name: icon;"></uc-icon>
451
464
  <div class="uc-title" ref="title-el">{{title}}</div>
452
465
  </button>
453
466
  `;
@@ -459,7 +472,7 @@ export const EditorCropButtonControl = class {
459
472
  export const EditorFilterControl = class {
460
473
  static template = `
461
474
  <button type="button" role="option">
462
- <lr-icon set="@name: icon;"></lr-icon>
475
+ <uc-icon set="@name: icon;"></uc-icon>
463
476
  <div class="uc-title" ref="title-el">{{title}}</div>
464
477
  </button>
465
478
  `;
@@ -471,7 +484,7 @@ export const EditorFilterControl = class {
471
484
  export const EditorImageCropper = class {
472
485
  static template = `
473
486
  <canvas class="uc-canvas" ref="canvas-el"></canvas>
474
- <lr-crop-frame ref="frame-el"></lr-crop-frame>
487
+ <uc-crop-frame ref="frame-el"></uc-crop-frame>
475
488
  `;
476
489
  static reg = () => {};
477
490
  static styleAttrs = [];
@@ -487,7 +500,7 @@ export const EditorImageFader = class {
487
500
  export const EditorOperationControl = class {
488
501
  static template = `
489
502
  <button type="button" role="option">
490
- <lr-icon set="@name: icon;"></lr-icon>
503
+ <uc-icon set="@name: icon;"></uc-icon>
491
504
  <div class="uc-title" ref="title-el">{{title}}</div>
492
505
  </button>
493
506
  `;
@@ -505,10 +518,10 @@ export const EditorScroller = class {
505
518
  };
506
519
  export const EditorSlider = class {
507
520
  static template = `
508
- <lr-slider-ui
521
+ <uc-slider-ui
509
522
  ref="slider-el"
510
523
  set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
511
- ></lr-slider-ui>
524
+ ></uc-slider-ui>
512
525
  `;
513
526
  static reg = () => {};
514
527
  static styleAttrs = [];
@@ -517,25 +530,25 @@ export const EditorSlider = class {
517
530
  };
518
531
  export const EditorToolbar = class {
519
532
  static template = `
520
- <lr-line-loader-ui set="active: showLoader"></lr-line-loader-ui>
533
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
521
534
  <div class="uc-info-tooltip_container">
522
535
  <div class="uc-info-tooltip_wrapper">
523
536
  <div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
524
537
  </div>
525
538
  </div>
526
539
  <div class="uc-toolbar-container">
527
- <lr-presence-toggle
540
+ <uc-presence-toggle
528
541
  role="tablist"
529
542
  class="uc-sub-toolbar"
530
543
  set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
531
544
  >
532
545
  <div class="uc-tab-content-row">
533
- <lr-presence-toggle
546
+ <uc-presence-toggle
534
547
  id="tab_crop"
535
548
  class="uc-tab-content"
536
549
  set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
537
550
  >
538
- <lr-editor-scroller hidden-scrollbar>
551
+ <uc-editor-scroller hidden-scrollbar>
539
552
  <div class="uc-controls-list_align">
540
553
  <div
541
554
  role="listbox"
@@ -544,15 +557,15 @@ export const EditorToolbar = class {
544
557
  ref="controls-list-crop"
545
558
  ></div>
546
559
  </div>
547
- </lr-editor-scroller>
548
- </lr-presence-toggle>
560
+ </uc-editor-scroller>
561
+ </uc-presence-toggle>
549
562
 
550
- <lr-presence-toggle
563
+ <uc-presence-toggle
551
564
  id="tab_tuning"
552
565
  class="uc-tab-content"
553
566
  set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
554
567
  >
555
- <lr-editor-scroller hidden-scrollbar>
568
+ <uc-editor-scroller hidden-scrollbar>
556
569
  <div class="uc-controls-list_align">
557
570
  <div
558
571
  role="listbox"
@@ -561,15 +574,15 @@ export const EditorToolbar = class {
561
574
  ref="controls-list-tuning"
562
575
  ></div>
563
576
  </div>
564
- </lr-editor-scroller>
565
- </lr-presence-toggle>
577
+ </uc-editor-scroller>
578
+ </uc-presence-toggle>
566
579
 
567
- <lr-presence-toggle
580
+ <uc-presence-toggle
568
581
  id="tab_filters"
569
582
  class="uc-tab-content"
570
583
  set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
571
584
  >
572
- <lr-editor-scroller hidden-scrollbar>
585
+ <uc-editor-scroller hidden-scrollbar>
573
586
  <div class="uc-controls-list_align">
574
587
  <div
575
588
  role="listbox"
@@ -578,75 +591,75 @@ export const EditorToolbar = class {
578
591
  ref="controls-list-filters"
579
592
  ></div>
580
593
  </div>
581
- </lr-editor-scroller>
582
- </lr-presence-toggle>
594
+ </uc-editor-scroller>
595
+ </uc-presence-toggle>
583
596
  </div>
584
597
  <div class="uc-controls-row">
585
- <lr-presence-toggle
598
+ <uc-presence-toggle
586
599
  class="uc-tab-toggles"
587
600
  set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
588
601
  >
589
602
  <div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
590
603
 
591
- <lr-presence-toggle
604
+ <uc-presence-toggle
592
605
  class="uc-tab-toggle"
593
606
  set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
594
607
  >
595
- <lr-btn-ui
608
+ <uc-btn-ui
596
609
  theme="tab"
597
610
  ref="tab-toggle-crop"
598
611
  data-id="crop"
599
612
  icon="crop"
600
613
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop"
601
614
  >
602
- </lr-btn-ui>
603
- </lr-presence-toggle>
615
+ </uc-btn-ui>
616
+ </uc-presence-toggle>
604
617
 
605
- <lr-presence-toggle
618
+ <uc-presence-toggle
606
619
  class="uc-tab-toggle"
607
620
  set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
608
621
  >
609
- <lr-btn-ui
622
+ <uc-btn-ui
610
623
  theme="tab"
611
624
  ref="tab-toggle-tuning"
612
625
  data-id="tuning"
613
626
  icon="tuning"
614
627
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning"
615
628
  >
616
- </lr-btn-ui>
617
- </lr-presence-toggle>
629
+ </uc-btn-ui>
630
+ </uc-presence-toggle>
618
631
 
619
- <lr-presence-toggle
632
+ <uc-presence-toggle
620
633
  class="uc-tab-toggle"
621
634
  set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
622
635
  >
623
- <lr-btn-ui
636
+ <uc-btn-ui
624
637
  theme="tab"
625
638
  ref="tab-toggle-filters"
626
639
  data-id="filters"
627
640
  icon="filters"
628
641
  set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters"
629
642
  >
630
- </lr-btn-ui>
631
- </lr-presence-toggle>
643
+ </uc-btn-ui>
644
+ </uc-presence-toggle>
632
645
 
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>
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>
636
649
  </div>
637
- </lr-presence-toggle>
638
- <lr-presence-toggle
650
+ </uc-presence-toggle>
651
+ <uc-presence-toggle
639
652
  class="uc-sub-toolbar"
640
653
  set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
641
654
  >
642
655
  <div class="uc-slider">
643
- <lr-editor-slider ref="slider-el"></lr-editor-slider>
656
+ <uc-editor-slider ref="slider-el"></uc-editor-slider>
644
657
  </div>
645
658
  <div class="uc-controls-row">
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>
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>
648
661
  </div>
649
- </lr-presence-toggle>
662
+ </uc-presence-toggle>
650
663
  </div>
651
664
  `;
652
665
  static reg = () => {};
@@ -656,18 +669,18 @@ export const EditorToolbar = class {
656
669
  };
657
670
  export const ExternalSource = class {
658
671
  static template = `
659
- <lr-activity-header>
672
+ <uc-activity-header>
660
673
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
661
- <lr-icon name="back"></lr-icon>
674
+ <uc-icon name="back"></uc-icon>
662
675
  </button>
663
676
  <div>
664
- <lr-icon set="@name: activityIcon"></lr-icon>
677
+ <uc-icon set="@name: activityIcon"></uc-icon>
665
678
  <span>{{activityCaption}}</span>
666
679
  </div>
667
680
  <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
668
- <lr-icon name="close"></lr-icon>
681
+ <uc-icon name="close"></uc-icon>
669
682
  </button>
670
- </lr-activity-header>
683
+ </uc-activity-header>
671
684
  <div class="uc-content">
672
685
  <div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
673
686
  <div class="uc-toolbar">
@@ -733,7 +746,7 @@ export const FileItem = class {
733
746
  <div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
734
747
  <div class="uc-thumb" set="style.backgroundImage: thumbUrl">
735
748
  <div class="uc-badge">
736
- <lr-icon set="@name: badgeIcon"></lr-icon>
749
+ <uc-icon set="@name: badgeIcon"></uc-icon>
737
750
  </div>
738
751
  </div>
739
752
  <div class="uc-file-name-wrapper">
@@ -747,7 +760,7 @@ export const FileItem = class {
747
760
  class="uc-edit-btn uc-mini-btn"
748
761
  set="onclick: onEdit; @hidden: !isEditable"
749
762
  >
750
- <lr-icon name="edit-file"></lr-icon>
763
+ <uc-icon name="edit-file"></uc-icon>
751
764
  </button>
752
765
  <button
753
766
  type="button"
@@ -755,13 +768,13 @@ export const FileItem = class {
755
768
  class="uc-remove-btn uc-mini-btn"
756
769
  set="onclick: onRemove;"
757
770
  >
758
- <lr-icon name="remove-file"></lr-icon>
771
+ <uc-icon name="remove-file"></uc-icon>
759
772
  </button>
760
773
  <button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
761
- <lr-icon name="upload"></lr-icon>
774
+ <uc-icon name="upload"></uc-icon>
762
775
  </button>
763
776
  </div>
764
- <lr-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </lr-progress-bar>
777
+ <uc-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
765
778
  </div>
766
779
  `;
767
780
  static activeInstances = {};
@@ -924,19 +937,6 @@ export const LineLoaderUi = class {
924
937
  static is = `sym-1`;
925
938
  static bindAttributes = () => {};
926
939
  };
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.50.1`;
953
+ export const PACKAGE_VERSION = `1.1.0`;
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 = ` <lr-progress-bar set="visible: visible; value: value"></lr-progress-bar> `;
969
+ static template = ` <uc-progress-bar set="visible: visible; value: value"></uc-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
- <lr-drop-area set="@disabled: !withDropZone">
1025
+ <uc-drop-area set="@disabled: !withDropZone">
1026
1026
  <button type="button" set="onclick: onClick">
1027
- <lr-icon name="upload"></lr-icon>
1027
+ <uc-icon name="upload"></uc-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
- </lr-drop-area>
1032
+ </uc-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
- <lr-icon set="@name: iconName"></lr-icon>
1104
+ <uc-icon set="@name: iconName"></uc-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
- <lr-activity-header>
1257
+ <uc-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
- <lr-icon name="close"></lr-icon>
1260
+ <uc-icon name="close"></uc-icon>
1261
1261
  </button>
1262
- </lr-activity-header>
1262
+ </uc-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="lr-file-item"></div>
1268
+ <div class="uc-files" repeat="*uploadList" repeat-item-tag="uc-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
- <lr-icon name="add"></lr-icon><span l10n="add-more"></span>
1280
+ <uc-icon name="add"></uc-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
- <lr-drop-area ghost></lr-drop-area>
1296
+ <uc-drop-area ghost></uc-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
- <lr-activity-header>
1391
+ <uc-activity-header>
1392
1392
  <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
1393
- <lr-icon name="back"></lr-icon>
1393
+ <uc-icon name="back"></uc-icon>
1394
1394
  </button>
1395
1395
  <div>
1396
- <lr-icon name="url"></lr-icon>
1396
+ <uc-icon name="url"></uc-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
- <lr-icon name="close"></lr-icon>
1400
+ <uc-icon name="close"></uc-icon>
1401
1401
  </button>
1402
- </lr-activity-header>
1402
+ </uc-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",
3
+ "version": "1.1.0",
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('lr-img');
3
+ Img.reg('uc-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, 'lr-wgt-common'];
5
+ static styleAttrs = [...super.styleAttrs, 'uc-wgt-common'];
6
6
 
7
7
  initCallback() {
8
8
  super.initCallback();