@uploadcare/file-uploader 1.3.0-alpha.4 → 1.3.0-alpha.6

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 (68) hide show
  1. package/abstract/Block.d.ts +1 -1
  2. package/abstract/Block.d.ts.map +1 -1
  3. package/abstract/Block.js +5 -13
  4. package/abstract/TypedCollection.js +1 -1
  5. package/abstract/TypedData.js +1 -1
  6. package/abstract/UploaderBlock.d.ts.map +1 -1
  7. package/abstract/UploaderBlock.js +1 -1
  8. package/abstract/UploaderPublicApi.js +1 -1
  9. package/blocks/CameraSource/CameraSource.js +9 -9
  10. package/blocks/CloudImageEditor/src/CropFrame.js +1 -1
  11. package/blocks/CloudImageEditor/src/EditorButtonControl.js +2 -2
  12. package/blocks/CloudImageEditor/src/EditorFilterControl.js +2 -2
  13. package/blocks/CloudImageEditor/src/EditorImageCropper.js +1 -1
  14. package/blocks/CloudImageEditor/src/EditorScroller.js +1 -1
  15. package/blocks/CloudImageEditor/src/EditorSlider.js +2 -2
  16. package/blocks/CloudImageEditor/src/EditorToolbar.js +12 -12
  17. package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +3 -3
  18. package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +1 -1
  19. package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +1 -1
  20. package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +2 -2
  21. package/blocks/CloudImageEditor/src/template.js +4 -4
  22. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
  23. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +1 -1
  24. package/blocks/Copyright/Copyright.js +1 -1
  25. package/blocks/DropArea/DropArea.d.ts.map +1 -1
  26. package/blocks/DropArea/DropArea.js +3 -3
  27. package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
  28. package/blocks/ExternalSource/ExternalSource.js +7 -7
  29. package/blocks/FileItem/FileItem.d.ts.map +1 -1
  30. package/blocks/FileItem/FileItem.js +10 -10
  31. package/blocks/FormInput/FormInput.js +1 -1
  32. package/blocks/Icon/Icon.js +2 -2
  33. package/blocks/Img/ImgConfig.d.ts +1 -1
  34. package/blocks/Img/ImgConfig.d.ts.map +1 -1
  35. package/blocks/Img/ImgConfig.js +1 -1
  36. package/blocks/Modal/Modal.js +1 -1
  37. package/blocks/ProgressBar/ProgressBar.js +1 -1
  38. package/blocks/ProgressBarCommon/ProgressBarCommon.js +2 -2
  39. package/blocks/Select/Select.js +2 -2
  40. package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
  41. package/blocks/SimpleBtn/SimpleBtn.js +3 -3
  42. package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
  43. package/blocks/SourceBtn/SourceBtn.js +2 -2
  44. package/blocks/SourceList/SourceList.js +1 -1
  45. package/blocks/StartFrom/StartFrom.js +1 -1
  46. package/blocks/UploadList/UploadList.d.ts.map +1 -1
  47. package/blocks/UploadList/UploadList.js +8 -8
  48. package/blocks/UrlSource/UrlSource.js +5 -5
  49. package/env.d.ts +1 -1
  50. package/env.js +1 -1
  51. package/index.d.ts +1 -1
  52. package/index.js +1 -1
  53. package/index.ssr.d.ts +1 -1
  54. package/index.ssr.js +73 -73
  55. package/package.json +4 -3
  56. package/solutions/file-uploader/inline/FileUploaderInline.js +1 -2
  57. package/solutions/file-uploader/regular/FileUploaderRegular.js +2 -4
  58. package/symbiote.js +19 -0
  59. package/web/file-uploader.iife.min.js +5 -4
  60. package/web/file-uploader.min.js +5 -4
  61. package/web/uc-cloud-image-editor.min.js +5 -4
  62. package/web/uc-file-uploader-inline.min.js +5 -4
  63. package/web/uc-file-uploader-minimal.min.js +4 -3
  64. package/web/uc-file-uploader-regular.min.js +5 -4
  65. package/web/uc-img.min.js +4 -3
  66. package/abstract/bindCompatibilityFallbackProcessor.d.ts +0 -3
  67. package/abstract/bindCompatibilityFallbackProcessor.d.ts.map +0 -1
  68. package/abstract/bindCompatibilityFallbackProcessor.js +0 -16
package/index.ssr.js CHANGED
@@ -52,8 +52,8 @@ export const Block = class {
52
52
  export const BtnUi = class {
53
53
  static observedAttributes = ["text", "icon", "reverse", "theme"];
54
54
  static template = `
55
- <button type="button" bind="@role:aria-role; @aria-controls: aria-controls">
56
- <uc-icon bind="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
55
+ <button type="button" set="@role:aria-role; @aria-controls: aria-controls">
56
+ <uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
57
57
  <div class="uc-text">{{text}}</div>
58
58
  </button>
59
59
  `;
@@ -67,19 +67,19 @@ export const BtnUi = class {
67
67
  export const CameraSource = class {
68
68
  static template = `
69
69
  <uc-activity-header>
70
- <button type="button" class="uc-mini-btn" bind="onclick: *historyBack">
70
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
71
71
  <uc-icon name="back"></uc-icon>
72
72
  </button>
73
- <div bind="@hidden: !cameraSelectHidden">
73
+ <div set="@hidden: !cameraSelectHidden">
74
74
  <uc-icon name="camera"></uc-icon>
75
75
  <span l10n="caption-camera"></span>
76
76
  </div>
77
77
  <uc-select
78
78
  class="uc-camera-select"
79
- bind="options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
79
+ set="options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
80
80
  >
81
81
  </uc-select>
82
- <button type="button" class="uc-mini-btn uc-close-btn" bind="onclick: *closeModal">
82
+ <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
83
83
  <uc-icon name="close"></uc-icon>
84
84
  </button>
85
85
  </uc-activity-header>
@@ -87,18 +87,18 @@ export const CameraSource = class {
87
87
  <video
88
88
  autoplay
89
89
  playsinline
90
- bind="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
90
+ set="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
91
91
  ref="video"
92
92
  ></video>
93
- <div class="uc-message-box" bind="@hidden: messageHidden">
93
+ <div class="uc-message-box" set="@hidden: messageHidden">
94
94
  <span l10n="l10nMessage"></span>
95
95
  <button
96
96
  type="button"
97
- bind="onclick: onRequestPermissions; @hidden: requestBtnHidden"
97
+ set="onclick: onRequestPermissions; @hidden: requestBtnHidden"
98
98
  l10n="camera-permissions-request"
99
99
  ></button>
100
100
  </div>
101
- <button type="button" class="uc-shot-btn" bind="onclick: onShot; @disabled: shotBtnDisabled">
101
+ <button type="button" class="uc-shot-btn" set="onclick: onShot; @disabled: shotBtnDisabled">
102
102
  <uc-icon name="camera"></uc-icon>
103
103
  </button>
104
104
  </div>
@@ -155,7 +155,7 @@ export const CloudImageEditor = class {
155
155
  static template = `
156
156
  <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>
157
157
  <div class="uc-wrapper uc-wrapper_desktop">
158
- <uc-presence-toggle class="uc-network_problems_splash" bind="visible: presence.networkProblems;">
158
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
159
159
  <div class="uc-network_problems_content">
160
160
  <div class="uc-network_problems_icon">
161
161
  <uc-icon name="sad"></uc-icon>
@@ -163,7 +163,7 @@ export const CloudImageEditor = class {
163
163
  <div class="uc-network_problems_text">Network error</div>
164
164
  </div>
165
165
  <div class="uc-network_problems_footer">
166
- <uc-btn-ui theme="primary" text="Retry" bind="onclick: *on.retryNetwork"></uc-btn-ui>
166
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
167
167
  </div>
168
168
  </uc-presence-toggle>
169
169
  <div class="uc-viewport">
@@ -178,7 +178,7 @@ export const CloudImageEditor = class {
178
178
  <div class="uc-info_pan">{{msg}}</div>
179
179
  </div>
180
180
  <div class="uc-toolbar">
181
- <uc-line-loader-ui bind="active: showLoader"></uc-line-loader-ui>
181
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
182
182
  <div class="uc-toolbar_content uc-toolbar_content__editor">
183
183
  <uc-editor-toolbar></uc-editor-toolbar>
184
184
  </div>
@@ -245,7 +245,7 @@ export const CloudImageEditorBlock = class {
245
245
  static template = `
246
246
  <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>
247
247
  <div class="uc-wrapper uc-wrapper_desktop">
248
- <uc-presence-toggle class="uc-network_problems_splash" bind="visible: presence.networkProblems;">
248
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
249
249
  <div class="uc-network_problems_content">
250
250
  <div class="uc-network_problems_icon">
251
251
  <uc-icon name="sad"></uc-icon>
@@ -253,7 +253,7 @@ export const CloudImageEditorBlock = class {
253
253
  <div class="uc-network_problems_text">Network error</div>
254
254
  </div>
255
255
  <div class="uc-network_problems_footer">
256
- <uc-btn-ui theme="primary" text="Retry" bind="onclick: *on.retryNetwork"></uc-btn-ui>
256
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
257
257
  </div>
258
258
  </uc-presence-toggle>
259
259
  <div class="uc-viewport">
@@ -268,7 +268,7 @@ export const CloudImageEditorBlock = class {
268
268
  <div class="uc-info_pan">{{msg}}</div>
269
269
  </div>
270
270
  <div class="uc-toolbar">
271
- <uc-line-loader-ui bind="active: showLoader"></uc-line-loader-ui>
271
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
272
272
  <div class="uc-toolbar_content uc-toolbar_content__editor">
273
273
  <uc-editor-toolbar></uc-editor-toolbar>
274
274
  </div>
@@ -420,8 +420,8 @@ export const DropArea = class {
420
420
  static template = `
421
421
  <slot>
422
422
  <div data-default-slot hidden></div>
423
- <div ref="content-wrapper" class="uc-content-wrapper" bind="@hidden: !isVisible">
424
- <div class="uc-icon-container" bind="@hidden: !withIcon">
423
+ <div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
424
+ <div class="uc-icon-container" set="@hidden: !withIcon">
425
425
  <uc-icon name="default"></uc-icon>
426
426
  <uc-icon name="arrow-down"></uc-icon>
427
427
  </div>
@@ -485,7 +485,7 @@ export const DropArea = class {
485
485
  export const EditorCropButtonControl = class {
486
486
  static template = `
487
487
  <button type="button" role="option">
488
- <uc-icon bind="@name: icon;"></uc-icon>
488
+ <uc-icon set="@name: icon;"></uc-icon>
489
489
  <div class="uc-title" ref="title-el">{{title}}</div>
490
490
  </button>
491
491
  `;
@@ -499,7 +499,7 @@ export const EditorCropButtonControl = class {
499
499
  export const EditorFilterControl = class {
500
500
  static template = `
501
501
  <button type="button" role="option">
502
- <uc-icon bind="@name: icon;"></uc-icon>
502
+ <uc-icon set="@name: icon;"></uc-icon>
503
503
  <div class="uc-title" ref="title-el">{{title}}</div>
504
504
  </button>
505
505
  `;
@@ -533,7 +533,7 @@ export const EditorImageFader = class {
533
533
  export const EditorOperationControl = class {
534
534
  static template = `
535
535
  <button type="button" role="option">
536
- <uc-icon bind="@name: icon;"></uc-icon>
536
+ <uc-icon set="@name: icon;"></uc-icon>
537
537
  <div class="uc-title" ref="title-el">{{title}}</div>
538
538
  </button>
539
539
  `;
@@ -557,7 +557,7 @@ export const EditorSlider = class {
557
557
  static template = `
558
558
  <uc-slider-ui
559
559
  ref="slider-el"
560
- bind="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
560
+ set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
561
561
  ></uc-slider-ui>
562
562
  `;
563
563
  static reg = () => {};
@@ -569,7 +569,7 @@ export const EditorSlider = class {
569
569
  };
570
570
  export const EditorToolbar = class {
571
571
  static template = `
572
- <uc-line-loader-ui bind="active: showLoader"></uc-line-loader-ui>
572
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
573
573
  <div class="uc-info-tooltip_container">
574
574
  <div class="uc-info-tooltip_wrapper">
575
575
  <div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
@@ -579,13 +579,13 @@ export const EditorToolbar = class {
579
579
  <uc-presence-toggle
580
580
  role="tablist"
581
581
  class="uc-sub-toolbar"
582
- bind="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
582
+ set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
583
583
  >
584
584
  <div class="uc-tab-content-row">
585
585
  <uc-presence-toggle
586
586
  id="tab_crop"
587
587
  class="uc-tab-content"
588
- bind="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
588
+ set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
589
589
  >
590
590
  <uc-editor-scroller hidden-scrollbar>
591
591
  <div class="uc-controls-list_align">
@@ -602,7 +602,7 @@ export const EditorToolbar = class {
602
602
  <uc-presence-toggle
603
603
  id="tab_tuning"
604
604
  class="uc-tab-content"
605
- bind="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
605
+ set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
606
606
  >
607
607
  <uc-editor-scroller hidden-scrollbar>
608
608
  <div class="uc-controls-list_align">
@@ -619,7 +619,7 @@ export const EditorToolbar = class {
619
619
  <uc-presence-toggle
620
620
  id="tab_filters"
621
621
  class="uc-tab-content"
622
- bind="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
622
+ set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
623
623
  >
624
624
  <uc-editor-scroller hidden-scrollbar>
625
625
  <div class="uc-controls-list_align">
@@ -636,67 +636,67 @@ export const EditorToolbar = class {
636
636
  <div class="uc-controls-row">
637
637
  <uc-presence-toggle
638
638
  class="uc-tab-toggles"
639
- bind="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
639
+ set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
640
640
  >
641
641
  <div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
642
642
 
643
643
  <uc-presence-toggle
644
644
  class="uc-tab-toggle"
645
- bind="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
645
+ set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
646
646
  >
647
647
  <uc-btn-ui
648
648
  theme="tab"
649
649
  ref="tab-toggle-crop"
650
650
  data-id="crop"
651
651
  icon="crop"
652
- bind="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop"
652
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop"
653
653
  >
654
654
  </uc-btn-ui>
655
655
  </uc-presence-toggle>
656
656
 
657
657
  <uc-presence-toggle
658
658
  class="uc-tab-toggle"
659
- bind="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
659
+ set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
660
660
  >
661
661
  <uc-btn-ui
662
662
  theme="tab"
663
663
  ref="tab-toggle-tuning"
664
664
  data-id="tuning"
665
665
  icon="tuning"
666
- bind="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning"
666
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning"
667
667
  >
668
668
  </uc-btn-ui>
669
669
  </uc-presence-toggle>
670
670
 
671
671
  <uc-presence-toggle
672
672
  class="uc-tab-toggle"
673
- bind="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
673
+ set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
674
674
  >
675
675
  <uc-btn-ui
676
676
  theme="tab"
677
677
  ref="tab-toggle-filters"
678
678
  data-id="filters"
679
679
  icon="filters"
680
- bind="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters"
680
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters"
681
681
  >
682
682
  </uc-btn-ui>
683
683
  </uc-presence-toggle>
684
684
 
685
685
  </uc-presence-toggle>
686
- <uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" bind="onclick: on.cancel"> </uc-btn-ui>
687
- <uc-btn-ui theme="primary-icon" icon="done" bind="onclick: on.apply"> </uc-btn-ui>
686
+ <uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel"> </uc-btn-ui>
687
+ <uc-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply"> </uc-btn-ui>
688
688
  </div>
689
689
  </uc-presence-toggle>
690
690
  <uc-presence-toggle
691
691
  class="uc-sub-toolbar"
692
- bind="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
692
+ set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
693
693
  >
694
694
  <div class="uc-slider">
695
695
  <uc-editor-slider ref="slider-el"></uc-editor-slider>
696
696
  </div>
697
697
  <div class="uc-controls-row">
698
- <uc-btn-ui theme="secondary" bind="onclick: on.cancelSlider;" l10n="@text:cancel"> </uc-btn-ui>
699
- <uc-btn-ui theme="primary" bind="onclick: on.applySlider;" l10n="@text:apply"> </uc-btn-ui>
698
+ <uc-btn-ui theme="secondary" set="onclick: on.cancelSlider;" l10n="@text:cancel"> </uc-btn-ui>
699
+ <uc-btn-ui theme="primary" set="onclick: on.applySlider;" l10n="@text:apply"> </uc-btn-ui>
700
700
  </div>
701
701
  </uc-presence-toggle>
702
702
  </div>
@@ -711,27 +711,27 @@ export const EditorToolbar = class {
711
711
  export const ExternalSource = class {
712
712
  static template = `
713
713
  <uc-activity-header>
714
- <button type="button" class="uc-mini-btn" bind="onclick: *historyBack">
714
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
715
715
  <uc-icon name="back"></uc-icon>
716
716
  </button>
717
717
  <div>
718
- <uc-icon bind="@name: activityIcon"></uc-icon>
718
+ <uc-icon set="@name: activityIcon"></uc-icon>
719
719
  <span>{{activityCaption}}</span>
720
720
  </div>
721
- <button type="button" class="uc-mini-btn uc-close-btn" bind="onclick: *historyBack">
721
+ <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
722
722
  <uc-icon name="close"></uc-icon>
723
723
  </button>
724
724
  </uc-activity-header>
725
725
  <div class="uc-content">
726
726
  <div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
727
727
  <div class="uc-toolbar">
728
- <button type="button" class="uc-cancel-btn uc-secondary-btn" bind="onclick: onCancel" l10n="cancel"></button>
728
+ <button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel" l10n="cancel"></button>
729
729
  <div></div>
730
- <div bind="@hidden: !multiple" class="uc-selected-counter"><span l10n="selected-count"></span>{{counter}}</div>
730
+ <div set="@hidden: !multiple" class="uc-selected-counter"><span l10n="selected-count"></span>{{counter}}</div>
731
731
  <button
732
732
  type="button"
733
733
  class="uc-done-btn uc-primary-btn"
734
- bind="onclick: onDone; @disabled: !counter"
734
+ set="onclick: onDone; @disabled: !counter"
735
735
  l10n="done"
736
736
  ></button>
737
737
  </div>
@@ -786,22 +786,22 @@ export const ExternalSource = class {
786
786
  };
787
787
  export const FileItem = class {
788
788
  static template = `
789
- <div class="uc-inner" bind="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
790
- <div class="uc-thumb" bind="style.backgroundImage: thumbUrl">
789
+ <div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
790
+ <div class="uc-thumb" set="style.backgroundImage: thumbUrl">
791
791
  <div class="uc-badge">
792
- <uc-icon bind="@name: badgeIcon"></uc-icon>
792
+ <uc-icon set="@name: badgeIcon"></uc-icon>
793
793
  </div>
794
794
  </div>
795
795
  <div class="uc-file-name-wrapper">
796
- <span class="uc-file-name" bind="@title: itemName">{{itemName}}</span>
797
- <span class="uc-file-error" bind="@hidden: !errorText">{{errorText}}</span>
796
+ <span class="uc-file-name" set="@title: itemName">{{itemName}}</span>
797
+ <span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
798
798
  </div>
799
799
  <div class="uc-file-actions">
800
800
  <button
801
801
  type="button"
802
802
  l10n="@title:file-item-edit-button"
803
803
  class="uc-edit-btn uc-mini-btn"
804
- bind="onclick: onEdit; @hidden: !isEditable"
804
+ set="onclick: onEdit; @hidden: !isEditable"
805
805
  >
806
806
  <uc-icon name="edit-file"></uc-icon>
807
807
  </button>
@@ -809,15 +809,15 @@ export const FileItem = class {
809
809
  type="button"
810
810
  l10n="@title:file-item-remove-button"
811
811
  class="uc-remove-btn uc-mini-btn"
812
- bind="onclick: onRemove;"
812
+ set="onclick: onRemove;"
813
813
  >
814
814
  <uc-icon name="remove-file"></uc-icon>
815
815
  </button>
816
- <button type="button" class="uc-upload-btn uc-mini-btn" bind="onclick: onUpload;">
816
+ <button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
817
817
  <uc-icon name="upload"></uc-icon>
818
818
  </button>
819
819
  </div>
820
- <uc-progress-bar class="uc-progress-bar" bind="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
820
+ <uc-progress-bar class="uc-progress-bar" set="value: progressValue; visible: progressVisible;"> </uc-progress-bar>
821
821
  </div>
822
822
  `;
823
823
  static activeInstances = {};
@@ -944,7 +944,7 @@ export const FormInput = class {
944
944
  export const Icon = class {
945
945
  static template = `
946
946
  <svg ref="svg" xmlns="http://www.w3.org/2000/svg">
947
- <use bind="@href: href;"></use>
947
+ <use set="@href: href;"></use>
948
948
  </svg>
949
949
  `;
950
950
  static observedAttributes = ["name"];
@@ -1010,7 +1010,7 @@ export const Modal = class {
1010
1010
  static addShadowStyles = () => {};
1011
1011
  };
1012
1012
  export const PACKAGE_NAME = `blocks`;
1013
- export const PACKAGE_VERSION = `1.2.0`;
1013
+ export const PACKAGE_VERSION = `1.3.0`;
1014
1014
  export const PresenceToggle = class {
1015
1015
  static template = ` <slot></slot> `;
1016
1016
  static reg = () => {};
@@ -1030,7 +1030,7 @@ export const ProgressBar = class {
1030
1030
  static addShadowStyles = () => {};
1031
1031
  };
1032
1032
  export const ProgressBarCommon = class {
1033
- static template = ` <uc-progress-bar bind="visible: visible; value: value"></uc-progress-bar> `;
1033
+ static template = ` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
1034
1034
  static extSrcList = {
1035
1035
  FACEBOOK: "facebook",
1036
1036
  DROPBOX: "dropbox",
@@ -1094,7 +1094,7 @@ export const PubSub = class {
1094
1094
  static toLocaleString = () => {};
1095
1095
  };
1096
1096
  export const Select = class {
1097
- static template = ` <select ref="select" bind="innerHTML: selectHtml; onchange: onSelect"></select> `;
1097
+ static template = ` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
1098
1098
  static reg = () => {};
1099
1099
  static styleAttrs = [];
1100
1100
  static is = `sym-1`;
@@ -1105,8 +1105,8 @@ export const Select = class {
1105
1105
  export const SimpleBtn = class {
1106
1106
  static styleAttrs = [];
1107
1107
  static template = `
1108
- <uc-drop-area bind="@disabled: !withDropZone">
1109
- <button type="button" bind="onclick: onClick">
1108
+ <uc-drop-area set="@disabled: !withDropZone">
1109
+ <button type="button" set="onclick: onClick">
1110
1110
  <uc-icon name="upload"></uc-icon>
1111
1111
  <span l10n="button-text"></span>
1112
1112
  <slot></slot>
@@ -1169,7 +1169,7 @@ export const SliderUi = class {
1169
1169
  class="uc-input"
1170
1170
  type="range"
1171
1171
  ref="input-el"
1172
- bind="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
1172
+ set="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
1173
1173
  />
1174
1174
  `;
1175
1175
  static reg = () => {};
@@ -1190,7 +1190,7 @@ export const SolutionBlock = class {
1190
1190
  export const SourceBtn = class {
1191
1191
  static template = `
1192
1192
  <button type="button">
1193
- <uc-icon bind="@name: iconName"></uc-icon>
1193
+ <uc-icon set="@name: iconName"></uc-icon>
1194
1194
  <div class="uc-txt" l10n="src-type"></div>
1195
1195
  </button>
1196
1196
  `;
@@ -1360,39 +1360,39 @@ export const UploadList = class {
1360
1360
  static template = `
1361
1361
  <uc-activity-header>
1362
1362
  <span class="uc-header-text">{{headerText}}</span>
1363
- <button type="button" class="uc-mini-btn uc-close-btn" bind="onclick: *closeModal">
1363
+ <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
1364
1364
  <uc-icon name="close"></uc-icon>
1365
1365
  </button>
1366
1366
  </uc-activity-header>
1367
1367
 
1368
- <div class="uc-no-files" bind="@hidden: hasFiles">
1368
+ <div class="uc-no-files" set="@hidden: hasFiles">
1369
1369
  <slot name="empty"><span l10n="no-files"></span></slot>
1370
1370
  </div>
1371
1371
 
1372
1372
  <div class="uc-files" itemize="*uploadList" item-tag="uc-file-item"></div>
1373
1373
 
1374
- <div class="uc-common-error" bind="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
1374
+ <div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
1375
1375
 
1376
1376
  <div class="uc-toolbar">
1377
- <button type="button" class="uc-cancel-btn uc-secondary-btn" bind="onclick: onCancel;" l10n="clear"></button>
1377
+ <button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel;" l10n="clear"></button>
1378
1378
  <div class="uc-toolbar-spacer"></div>
1379
1379
  <button
1380
1380
  type="button"
1381
1381
  class="uc-add-more-btn uc-secondary-btn"
1382
- bind="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
1382
+ set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
1383
1383
  >
1384
1384
  <uc-icon name="add"></uc-icon><span l10n="add-more"></span>
1385
1385
  </button>
1386
1386
  <button
1387
1387
  type="button"
1388
1388
  class="uc-upload-btn uc-primary-btn"
1389
- bind="@hidden: !uploadBtnVisible; onclick: onUpload;"
1389
+ set="@hidden: !uploadBtnVisible; onclick: onUpload;"
1390
1390
  l10n="upload"
1391
1391
  ></button>
1392
1392
  <button
1393
1393
  type="button"
1394
1394
  class="uc-done-btn uc-primary-btn"
1395
- bind="@hidden: !doneBtnVisible; onclick: onDone; @disabled: !doneBtnEnabled"
1395
+ set="@hidden: !doneBtnVisible; onclick: onDone; @disabled: !doneBtnEnabled"
1396
1396
  l10n="done"
1397
1397
  ></button>
1398
1398
  </div>
@@ -1497,23 +1497,23 @@ export const UploaderBlock = class {
1497
1497
  export const UrlSource = class {
1498
1498
  static template = `
1499
1499
  <uc-activity-header>
1500
- <button type="button" class="uc-mini-btn" bind="onclick: *historyBack">
1500
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
1501
1501
  <uc-icon name="back"></uc-icon>
1502
1502
  </button>
1503
1503
  <div>
1504
1504
  <uc-icon name="url"></uc-icon>
1505
1505
  <span l10n="caption-from-url"></span>
1506
1506
  </div>
1507
- <button type="button" class="uc-mini-btn uc-close-btn" bind="onclick: *closeModal">
1507
+ <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
1508
1508
  <uc-icon name="close"></uc-icon>
1509
1509
  </button>
1510
1510
  </uc-activity-header>
1511
1511
  <form class="uc-content">
1512
- <input placeholder="https://" class="uc-url-input" type="text" ref="input" bind="oninput: onInput" />
1512
+ <input placeholder="https://" class="uc-url-input" type="text" ref="input" set="oninput: onInput" />
1513
1513
  <button
1514
1514
  type="submit"
1515
1515
  class="uc-url-upload-btn uc-primary-btn"
1516
- bind="onclick: onUpload; @disabled: importDisabled"
1516
+ set="onclick: onUpload; @disabled: importDisabled"
1517
1517
  l10n="upload-url"
1518
1518
  ></button>
1519
1519
  </form>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.3.0-alpha.4",
3
+ "version": "1.3.0-alpha.6",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",
@@ -50,9 +50,10 @@
50
50
  "./types/jsx": "./types/jsx.d.ts",
51
51
  "./locales/*": "./locales/*"
52
52
  },
53
- "repository": "https://github.com/uploadcare/blocks/",
53
+ "repository": "https://github.com/uploadcare/file-uploader/",
54
54
  "files": [
55
55
  "{abstract,blocks,solutions,web,utils,types,locales}/**/*.{js,css,d.ts,d.ts.map}",
56
+ "symbiote.js",
56
57
  "index.{js,d.ts,d.ts.map}",
57
58
  "index.ssr.{js,d.ts,d.ts.map}",
58
59
  "env.{js,d.ts,d.ts.map}",
@@ -134,7 +135,7 @@
134
135
  "author": "Uploadcare Inc.",
135
136
  "license": "MIT",
136
137
  "dependencies": {
137
- "@symbiotejs/symbiote": "^2.3.0",
138
+ "@symbiotejs/symbiote": "^2.3.1",
138
139
  "@types/sinon": "^17.0.3",
139
140
  "@uploadcare/image-shrink": "^6.14.1",
140
141
  "@uploadcare/upload-client": "^6.14.1",
@@ -64,7 +64,7 @@ FileUploaderInline.template = html` <uc-start-from>
64
64
  type="button"
65
65
  l10n="start-from-cancel"
66
66
  class="uc-cancel-btn uc-secondary-btn"
67
- bind="onclick: cancel; @hidden: !couldCancel"
67
+ set="onclick: cancel; @hidden: !couldCancel"
68
68
  ></button>
69
69
  <uc-copyright></uc-copyright>
70
70
  </uc-start-from>
@@ -72,5 +72,4 @@ FileUploaderInline.template = html` <uc-start-from>
72
72
  <uc-camera-source></uc-camera-source>
73
73
  <uc-url-source></uc-url-source>
74
74
  <uc-external-source></uc-external-source>
75
- <uc-progress-bar></uc-progress-bar>
76
75
  <uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>`;
@@ -42,13 +42,13 @@ export class FileUploaderRegular extends SolutionBlock {
42
42
  }
43
43
 
44
44
  FileUploaderRegular.template = html`
45
- <uc-simple-btn bind="@hidden: isHidden"></uc-simple-btn>
45
+ <uc-simple-btn set="@hidden: isHidden"></uc-simple-btn>
46
46
 
47
47
  <uc-modal strokes block-body-scrolling>
48
48
  <uc-start-from>
49
49
  <uc-drop-area with-icon clickable></uc-drop-area>
50
50
  <uc-source-list wrap></uc-source-list>
51
- <button type="button" l10n="start-from-cancel" class="uc-secondary-btn" bind="onclick: *historyBack"></button>
51
+ <button type="button" l10n="start-from-cancel" class="uc-secondary-btn" set="onclick: *historyBack"></button>
52
52
  <uc-copyright></uc-copyright>
53
53
  </uc-start-from>
54
54
  <uc-upload-list></uc-upload-list>
@@ -57,8 +57,6 @@ FileUploaderRegular.template = html`
57
57
  <uc-external-source></uc-external-source>
58
58
  <uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
59
59
  </uc-modal>
60
-
61
- <uc-progress-bar-common></uc-progress-bar-common>
62
60
  `;
63
61
 
64
62
  FileUploaderRegular.bindAttributes({