@telia-ace/widget-conversational-agent 1.1.123-rc.23 → 1.1.123-rc.25

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 -6
  2. package/index.mjs +6 -6
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -71,7 +71,7 @@
71
71
  svg=${u.svg}
72
72
  size="lg"
73
73
  ></telia-icon>`:$}default:return $}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var e,t,s,i,r,o,a;return w`<div
74
- class=${rt({"trigger-container":!0,hidden:!this.triggerVisible})}
74
+ class=${rt({"trigger-container":!0,"ace-hidden":!this.triggerVisible})}
75
75
  ${ae(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`
@@ -141,7 +141,7 @@
141
141
  gap: 1rem;
142
142
  }
143
143
 
144
- .trigger-container.hidden {
144
+ .trigger-container.ace-hidden {
145
145
  display: none;
146
146
  }
147
147
 
@@ -450,19 +450,19 @@
450
450
  }
451
451
  }
452
452
 
453
- :host(.expanded) {
453
+ :host(.ace-expanded) {
454
454
  opacity: 1;
455
455
  animation: slideUp 0.3s linear;
456
456
  }
457
457
 
458
- :host(.hidden) {
458
+ :host(.ace-hidden) {
459
459
  opacity: 0;
460
460
  animation: slideDown 0.3s linear;
461
461
  pointer-events: none;
462
462
  }
463
463
 
464
- :host(.hidden.embedded),
465
- :host(.expanded.embedded) {
464
+ :host(.ace-hidden.embedded),
465
+ :host(.ace-expanded.embedded) {
466
466
  animation: none;
467
467
  }
468
468
  `;let At=ni;Ho([C({attribute:!0})],At.prototype,"fullscreen");Ho([C({attribute:!1}),yu({context:Hs})],At.prototype,"application");var xu=Object.defineProperty,Fs=(n,e,t,s)=>{for(var i=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(i=o(e,t,i)||i);return i&&xu(e,t,i),i};const si=class si extends M{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(e){this.widget=e.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const e=globalThis.widgets;e&&(this.widget=e.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return $;if(this.widget.renderStrategy===Bs.Trigger){const e=new ye;return e.application=this.widget,e}return this.widget.render()}};si.styles=[Z`
package/index.mjs CHANGED
@@ -3199,7 +3199,7 @@ const ei = class ei extends M {
3199
3199
  return w`<div
3200
3200
  class=${rt({
3201
3201
  "trigger-container": !0,
3202
- hidden: !this.triggerVisible
3202
+ "ace-hidden": !this.triggerVisible
3203
3203
  })}
3204
3204
  ${ae(this.containerRef)}
3205
3205
  >
@@ -3283,7 +3283,7 @@ ei.styles = [
3283
3283
  gap: 1rem;
3284
3284
  }
3285
3285
 
3286
- .trigger-container.hidden {
3286
+ .trigger-container.ace-hidden {
3287
3287
  display: none;
3288
3288
  }
3289
3289
 
@@ -3843,19 +3843,19 @@ ni.styles = Z`
3843
3843
  }
3844
3844
  }
3845
3845
 
3846
- :host(.expanded) {
3846
+ :host(.ace-expanded) {
3847
3847
  opacity: 1;
3848
3848
  animation: slideUp 0.3s linear;
3849
3849
  }
3850
3850
 
3851
- :host(.hidden) {
3851
+ :host(.ace-hidden) {
3852
3852
  opacity: 0;
3853
3853
  animation: slideDown 0.3s linear;
3854
3854
  pointer-events: none;
3855
3855
  }
3856
3856
 
3857
- :host(.hidden.embedded),
3858
- :host(.expanded.embedded) {
3857
+ :host(.ace-hidden.embedded),
3858
+ :host(.ace-expanded.embedded) {
3859
3859
  animation: none;
3860
3860
  }
3861
3861
  `;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversational-agent",
3
- "version": "1.1.123-rc.23",
3
+ "version": "1.1.123-rc.25",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
- "@telia-ace/widget-conversation-flamingo": "1.1.123-rc.23",
9
+ "@telia-ace/widget-conversation-flamingo": "1.1.123-rc.25",
10
10
  "rxjs": "^7.8.2",
11
- "@telia-ace/widget-core-flamingo": "1.1.123-rc.23",
11
+ "@telia-ace/widget-core-flamingo": "1.1.123-rc.25",
12
12
  "lit": "^3.0.2",
13
13
  "@lit/context": "^1.1.4"
14
14
  },