@uploadcare/file-uploader 1.8.1 → 1.9.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.
@@ -215,7 +215,7 @@ export class CameraSource extends UploaderBlock {
215
215
 
216
216
  CameraSource.template = /* HTML */ `
217
217
  <uc-activity-header>
218
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
218
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
219
219
  <uc-icon name="back"></uc-icon>
220
220
  </button>
221
221
  <div set="@hidden: !cameraSelectHidden">
@@ -227,7 +227,12 @@ CameraSource.template = /* HTML */ `
227
227
  set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
228
228
  >
229
229
  </uc-select>
230
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
230
+ <button
231
+ type="button"
232
+ class="uc-mini-btn uc-close-btn"
233
+ set="onclick: *closeModal"
234
+ l10n="@title:a11y-activity-header-button-close"
235
+ >
231
236
  <uc-icon name="close"></uc-icon>
232
237
  </button>
233
238
  </uc-activity-header>
@@ -249,14 +249,19 @@ export class ExternalSource extends UploaderBlock {
249
249
 
250
250
  ExternalSource.template = /* HTML */ `
251
251
  <uc-activity-header>
252
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
252
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
253
253
  <uc-icon name="back"></uc-icon>
254
254
  </button>
255
255
  <div>
256
256
  <uc-icon set="@name: activityIcon"></uc-icon>
257
257
  <span>{{activityCaption}}</span>
258
258
  </div>
259
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
259
+ <button
260
+ type="button"
261
+ class="uc-mini-btn uc-close-btn"
262
+ set="onclick: *historyBack"
263
+ l10n="@title:a11y-activity-header-button-close"
264
+ >
260
265
  <uc-icon name="close"></uc-icon>
261
266
  </button>
262
267
  </uc-activity-header>
@@ -2,7 +2,6 @@ export class Icon extends Block {
2
2
  init$: {
3
3
  name: string;
4
4
  href: string;
5
- title: string;
6
5
  };
7
6
  }
8
7
  export namespace Icon {
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"AAGA;IAII;;;;MAKC;CAmBJ;;;;sBA9BqB,yBAAyB"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"AAGA;IAII;;;MAIC;CAmBJ;;;;sBA7BqB,yBAAyB"}
@@ -9,7 +9,6 @@ export class Icon extends Block {
9
9
  ...this.init$,
10
10
  name: '',
11
11
  href: '',
12
- title: '',
13
12
  };
14
13
  }
15
14
 
@@ -33,12 +32,10 @@ export class Icon extends Block {
33
32
 
34
33
  Icon.template = /* HTML */ `
35
34
  <svg ref="svg" xmlns="http://www.w3.org/2000/svg">
36
- <title>{{title}}</title>
37
35
  <use set="@href: href;"></use>
38
36
  </svg>
39
37
  `;
40
38
 
41
39
  Icon.bindAttributes({
42
40
  name: 'name',
43
- title: 'title',
44
41
  });
@@ -38,14 +38,19 @@ export class UrlSource extends UploaderBlock {
38
38
 
39
39
  UrlSource.template = /* HTML */ `
40
40
  <uc-activity-header>
41
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
41
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
42
42
  <uc-icon name="back"></uc-icon>
43
43
  </button>
44
44
  <div>
45
45
  <uc-icon name="url"></uc-icon>
46
46
  <span l10n="caption-from-url"></span>
47
47
  </div>
48
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
48
+ <button
49
+ type="button"
50
+ class="uc-mini-btn uc-close-btn"
51
+ set="onclick: *closeModal"
52
+ l10n="@title:a11y-activity-header-button-close"
53
+ >
49
54
  <uc-icon name="close"></uc-icon>
50
55
  </button>
51
56
  </uc-activity-header>
package/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME: "blocks";
3
- export const PACKAGE_VERSION: "1.8.1";
3
+ export const PACKAGE_VERSION: "1.9.0";
4
4
  //# sourceMappingURL=env.d.ts.map
package/env.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME = 'blocks';
3
- export const PACKAGE_VERSION = '1.8.1';
3
+ export const PACKAGE_VERSION = '1.9.0';
package/index.ssr.d.ts CHANGED
@@ -543,7 +543,7 @@ export const Modal: {
543
543
  bindAttributes: () => void;
544
544
  };
545
545
  export const PACKAGE_NAME: "blocks";
546
- export const PACKAGE_VERSION: "1.8.1";
546
+ export const PACKAGE_VERSION: "1.9.0";
547
547
  export const PresenceToggle: {
548
548
  new (): {};
549
549
  template: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAYE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EA0FE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;EAeE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8FE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
package/index.ssr.js CHANGED
@@ -55,7 +55,7 @@ export const BtnUi = class {
55
55
  export const CameraSource = class {
56
56
  static template = `
57
57
  <uc-activity-header>
58
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
58
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
59
59
  <uc-icon name="back"></uc-icon>
60
60
  </button>
61
61
  <div set="@hidden: !cameraSelectHidden">
@@ -67,7 +67,12 @@ export const CameraSource = class {
67
67
  set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
68
68
  >
69
69
  </uc-select>
70
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
70
+ <button
71
+ type="button"
72
+ class="uc-mini-btn uc-close-btn"
73
+ set="onclick: *closeModal"
74
+ l10n="@title:a11y-activity-header-button-close"
75
+ >
71
76
  <uc-icon name="close"></uc-icon>
72
77
  </button>
73
78
  </uc-activity-header>
@@ -675,14 +680,19 @@ export const EditorToolbar = class {
675
680
  export const ExternalSource = class {
676
681
  static template = `
677
682
  <uc-activity-header>
678
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
683
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
679
684
  <uc-icon name="back"></uc-icon>
680
685
  </button>
681
686
  <div>
682
687
  <uc-icon set="@name: activityIcon"></uc-icon>
683
688
  <span>{{activityCaption}}</span>
684
689
  </div>
685
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *historyBack">
690
+ <button
691
+ type="button"
692
+ class="uc-mini-btn uc-close-btn"
693
+ set="onclick: *historyBack"
694
+ l10n="@title:a11y-activity-header-button-close"
695
+ >
686
696
  <uc-icon name="close"></uc-icon>
687
697
  </button>
688
698
  </uc-activity-header>
@@ -915,11 +925,10 @@ export const FormInput = class {
915
925
  export const Icon = class {
916
926
  static template = `
917
927
  <svg ref="svg" xmlns="http://www.w3.org/2000/svg">
918
- <title>{{title}}</title>
919
928
  <use set="@href: href;"></use>
920
929
  </svg>
921
930
  `;
922
- static observedAttributes = ["name", "title"];
931
+ static observedAttributes = ["name"];
923
932
  static reg = () => {};
924
933
  static styleAttrs = [];
925
934
  static is = `sym-1`;
@@ -974,7 +983,7 @@ export const Modal = class {
974
983
  static bindAttributes = () => {};
975
984
  };
976
985
  export const PACKAGE_NAME = `blocks`;
977
- export const PACKAGE_VERSION = `1.8.1`;
986
+ export const PACKAGE_VERSION = `1.9.0`;
978
987
  export const PresenceToggle = class {
979
988
  static template = `<slot></slot> `;
980
989
  static reg = () => {};
@@ -1449,14 +1458,19 @@ export const UploaderBlock = class {
1449
1458
  export const UrlSource = class {
1450
1459
  static template = `
1451
1460
  <uc-activity-header>
1452
- <button type="button" class="uc-mini-btn" set="onclick: *historyBack">
1461
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
1453
1462
  <uc-icon name="back"></uc-icon>
1454
1463
  </button>
1455
1464
  <div>
1456
1465
  <uc-icon name="url"></uc-icon>
1457
1466
  <span l10n="caption-from-url"></span>
1458
1467
  </div>
1459
- <button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
1468
+ <button
1469
+ type="button"
1470
+ class="uc-mini-btn uc-close-btn"
1471
+ set="onclick: *closeModal"
1472
+ l10n="@title:a11y-activity-header-button-close"
1473
+ >
1460
1474
  <uc-icon name="close"></uc-icon>
1461
1475
  </button>
1462
1476
  </uc-activity-header>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",