@telia-ace/widget-conversational-hub 1.1.120-rc.20 → 1.1.120-rc.22

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 (3) hide show
  1. package/index.js +6 -4
  2. package/index.mjs +6 -4
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -70,23 +70,25 @@
70
70
  class="trigger-icon"
71
71
  svg=${u.svg}
72
72
  size="lg"
73
- ></telia-icon>`:x}default:return x}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var e,t,s,i;return w`<div
73
+ ></telia-icon>`:x}default:return x}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var e,t,s,i,r,o,a;return w`<div
74
74
  class=${rt({"trigger-container":!0,hidden:!this.triggerVisible})}
75
75
  ${oe(this.containerRef)}
76
76
  >
77
77
  ${!this.active&&((i=(s=(t=(e=this.application)==null?void 0:e.settings)==null?void 0:t.branding)==null?void 0:s.other)!=null&&i.showButtonLabel)?w`
78
78
  <button
79
- label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
79
+ type="button"
80
+ aria-label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
80
81
  class="trigger-label"
81
82
  @click=${this.toggleActive}
82
83
  ${vs({keyframeOptions:{},in:lu,stabilizeOut:!0,skipInitial:!1})}
83
84
  >
84
- ${this.application.settings.branding.other.buttonLabelText}
85
+ ${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}
85
86
  </button>
86
87
  `:x}
87
88
 
88
89
  <button
89
- label="Widget trigger"
90
+ type="button"
91
+ aria-label="${((a=(o=(r=this.application)==null?void 0:r.settings)==null?void 0:o.branding.other)==null?void 0:a.buttonLabelText)??"Widget trigger"}"
90
92
  class=${rt({trigger:!0,active:this.active,rendered:this.loaded})}
91
93
  @click=${this.toggleActive}
92
94
  >
package/index.mjs CHANGED
@@ -3193,7 +3193,7 @@ const ei = class ei extends M {
3193
3193
  this.triggerVisible = !0;
3194
3194
  }
3195
3195
  render() {
3196
- var e, t, s, i;
3196
+ var e, t, s, i, r, o, a;
3197
3197
  return w`<div
3198
3198
  class=${rt({
3199
3199
  "trigger-container": !0,
@@ -3203,7 +3203,8 @@ const ei = class ei extends M {
3203
3203
  >
3204
3204
  ${!this.active && ((i = (s = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? w`
3205
3205
  <button
3206
- label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
3206
+ type="button"
3207
+ aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
3207
3208
  class="trigger-label"
3208
3209
  @click=${this.toggleActive}
3209
3210
  ${vs({
@@ -3213,12 +3214,13 @@ const ei = class ei extends M {
3213
3214
  skipInitial: !1
3214
3215
  })}
3215
3216
  >
3216
- ${this.application.settings.branding.other.buttonLabelText}
3217
+ ${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
3217
3218
  </button>
3218
3219
  ` : x}
3219
3220
 
3220
3221
  <button
3221
- label="Widget trigger"
3222
+ type="button"
3223
+ aria-label="${((a = (o = (r = this.application) == null ? void 0 : r.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
3222
3224
  class=${rt({
3223
3225
  trigger: !0,
3224
3226
  active: this.active,
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversational-hub",
3
- "version": "1.1.120-rc.20",
3
+ "version": "1.1.120-rc.22",
4
4
  "dependencies": {
5
- "@telia-ace/widget-conversation-flamingo": "1.1.120-rc.20",
5
+ "@telia-ace/widget-conversation-flamingo": "1.1.120-rc.22",
6
6
  "rxjs": "^7.8.2",
7
- "@telia-ace/widget-core-flamingo": "1.1.120-rc.20",
7
+ "@telia-ace/widget-core-flamingo": "1.1.120-rc.22",
8
8
  "lit": "^3.0.2",
9
9
  "@lit/context": "^1.1.4"
10
10
  },