@telia-ace/widget-components-copyright-flamingo 1.1.76-rc.15 → 1.1.76-rc.17
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.
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function bi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new qt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new qt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};const Ci="application";class Ct extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=de()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&pe(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===wt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),x`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
287
|
+
*/function bi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new qt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new qt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};const Ci="application";class Ct extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=de()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&pe(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===wt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top?(console.log("This page is embedded in an iframe."),this.renderRoot.host.classList.add("embedded")):console.log("This page is not embedded in an iframe."),x`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
288
288
|
${gi(this.nodes,o=>o)}
|
|
289
289
|
</div>`}}Ct.styles=O`
|
|
290
290
|
:host {
|
|
@@ -331,6 +331,14 @@
|
|
|
331
331
|
position: fixed;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
+
:host(.embedded) {
|
|
335
|
+
padding: 40px !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
:host(.embedded) .widget-container {
|
|
339
|
+
border-radius: var(--border-radius) !important;
|
|
340
|
+
}
|
|
341
|
+
|
|
334
342
|
@media screen and (max-width: 800px) {
|
|
335
343
|
:host(.floating) {
|
|
336
344
|
inset: 0;
|
|
@@ -2110,7 +2110,7 @@ class Ct extends m {
|
|
|
2110
2110
|
render() {
|
|
2111
2111
|
var i, r;
|
|
2112
2112
|
const t = this.application.settings.components.conversation;
|
|
2113
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), x`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2113
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), x`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2114
2114
|
${fi(this.nodes, (o) => o)}
|
|
2115
2115
|
</div>`;
|
|
2116
2116
|
}
|
|
@@ -2160,6 +2160,14 @@ Ct.styles = O`
|
|
|
2160
2160
|
position: fixed;
|
|
2161
2161
|
}
|
|
2162
2162
|
|
|
2163
|
+
:host(.embedded) {
|
|
2164
|
+
padding: 40px !important;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
:host(.embedded) .widget-container {
|
|
2168
|
+
border-radius: var(--border-radius) !important;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2163
2171
|
@media screen and (max-width: 800px) {
|
|
2164
2172
|
:host(.floating) {
|
|
2165
2173
|
inset: 0;
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-
|
|
1
|
+
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-6a418ecd.js")))};module.exports=o;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-copyright-flamingo",
|
|
3
|
-
"version": "1.1.76-rc.
|
|
3
|
+
"version": "1.1.76-rc.17",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.76-rc.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.76-rc.17"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|