@telia-ace/widget-conversation-flamingo 1.1.70-rc.27 → 1.1.70-rc.28
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
@@ -376,7 +376,7 @@
|
|
376
376
|
animation: slideDown 0.3s linear;
|
377
377
|
pointer-events: none;
|
378
378
|
}
|
379
|
-
`;Sa([w({attribute:!1}),wa({context:Ca})],cn.prototype,"application",2);var ui=(s=>(s.Mandatory="mandatory",s.Preferences="preferences",s.Analytics="analytics",s))(ui||{}),Aa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,hn=(s,e,t,n)=>{for(var i=n>1?void 0:n?Ea(e,t):e,r=s.length-1,o;r>=0;r--)(o=s[r])&&(i=(n?o(e,t,i):o(i))||i);return n&&i&&Aa(e,t,i),i};class Ue extends k{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.
|
379
|
+
`;Sa([w({attribute:!1}),wa({context:Ca})],cn.prototype,"application",2);var ui=(s=>(s.Mandatory="mandatory",s.Preferences="preferences",s.Analytics="analytics",s))(ui||{}),Aa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,hn=(s,e,t,n)=>{for(var i=n>1?void 0:n?Ea(e,t):e,r=s.length-1,o;r>=0;r--)(o=s[r])&&(i=(n?o(e,t,i):o(i))||i);return n&&i&&Aa(e,t,i),i};class Ue extends k{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.ace;e&&(this.widget=e.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return g;if(this.widget.renderStrategy===ln.Trigger){const e=new G;return e.application=this.widget,e}return this.widget.render()}}Ue.styles=[E`
|
380
380
|
:host {
|
381
381
|
display: block;
|
382
382
|
}
|
package/index.mjs
CHANGED
@@ -3751,7 +3751,7 @@ class ze extends k {
|
|
3751
3751
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
3752
3752
|
}
|
3753
3753
|
async getGlobalEnvironment() {
|
3754
|
-
const e = globalThis.
|
3754
|
+
const e = globalThis.ace;
|
3755
3755
|
e && (this.widget = e.applications.find(
|
3756
3756
|
(t) => t.name === this.name
|
3757
3757
|
), await this.activate());
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-conversation-flamingo",
|
3
|
-
"version": "1.1.70-rc.
|
3
|
+
"version": "1.1.70-rc.28",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org"
|
6
6
|
},
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"@lit-labs/motion": "^1.0.4",
|
10
10
|
"@teliads/icons": "^8.4.0",
|
11
11
|
"@teliads/components": "^22.1.1",
|
12
|
-
"@telia-ace/widget-core-flamingo": "1.1.70-rc.
|
12
|
+
"@telia-ace/widget-core-flamingo": "1.1.70-rc.28",
|
13
13
|
"lit-html": "^3.0.2",
|
14
14
|
"rxjs": "^7.8.1",
|
15
15
|
"marked": "^12.0.2"
|