@telia-ace/widget-conversation-flamingo 1.1.67-rc.7 → 1.1.67-rc.8
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/index.mjs +5 -5
- package/package.json +2 -2
- package/types.d.ts +9 -3
package/index.js
CHANGED
@@ -569,8 +569,8 @@
|
|
569
569
|
* SPDX-License-Identifier: BSD-3-Clause
|
570
570
|
*/const Ha=(s,e,t)=>{for(const n of e)if(n[0]===s)return(0,n[1])();return t==null?void 0:t()};var Da=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Na=(s,e,t,n)=>{for(var i=n>1?void 0:n?Ba(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&&Da(e,t,i),i};class pn extends k{render(){return m`
|
571
571
|
<div class="message-group">
|
572
|
-
${this.group.items.map(([e,t])=>m`
|
573
|
-
${Ha(e,[["html",()=>m`<message-type-html .message=${t} />`],["markdown",()=>m`<message-type-markdown .message=${t} />`]],()=>{const
|
572
|
+
${this.group.items.map(([e,t,n])=>m`
|
573
|
+
${Ha(e,[["html",()=>m`<message-type-html .message=${t} />`],["markdown",()=>m`<message-type-markdown .message=${t} />`]],()=>{const i=customElements.get(e);if(!i)return g;const r=new i(n||null);return m`${r}`})}
|
574
574
|
`)}
|
575
575
|
</div>
|
576
576
|
`}}pn.styles=[A`
|
package/index.mjs
CHANGED
@@ -4311,7 +4311,7 @@ class un extends k {
|
|
4311
4311
|
return m`
|
4312
4312
|
<div class="message-group">
|
4313
4313
|
${this.group.items.map(
|
4314
|
-
([e, t]) => m`
|
4314
|
+
([e, t, n]) => m`
|
4315
4315
|
${Ua(
|
4316
4316
|
e,
|
4317
4317
|
[
|
@@ -4322,11 +4322,11 @@ class un extends k {
|
|
4322
4322
|
]
|
4323
4323
|
],
|
4324
4324
|
() => {
|
4325
|
-
const
|
4326
|
-
if (!
|
4325
|
+
const i = customElements.get(e);
|
4326
|
+
if (!i)
|
4327
4327
|
return g;
|
4328
|
-
const
|
4329
|
-
return m`${
|
4328
|
+
const r = new i(n || null);
|
4329
|
+
return m`${r}`;
|
4330
4330
|
}
|
4331
4331
|
)}
|
4332
4332
|
`
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-conversation-flamingo",
|
3
|
-
"version": "1.1.67-rc.
|
3
|
+
"version": "1.1.67-rc.8",
|
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.67-rc.
|
12
|
+
"@telia-ace/widget-core-flamingo": "1.1.67-rc.8",
|
13
13
|
"lit-html": "^3.0.2",
|
14
14
|
"rxjs": "^7.8.1",
|
15
15
|
"marked": "^12.0.2"
|
package/types.d.ts
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
export type ConversationMessageGroup = {
|
2
2
|
items: ConversationMessage[];
|
3
3
|
};
|
4
|
-
export type ConversationMessage = [
|
5
|
-
|
6
|
-
|
4
|
+
export type ConversationMessage = [
|
5
|
+
string,
|
6
|
+
{
|
7
|
+
content: string;
|
8
|
+
},
|
9
|
+
{
|
10
|
+
[key: string]: string;
|
11
|
+
}?
|
12
|
+
];
|
7
13
|
export type ConversationMessageSender = {
|
8
14
|
name?: string;
|
9
15
|
avatar?: string | symbol;
|