@telia-ace/widget-conversation-flamingo 1.1.67 → 1.1.68
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +3 -0
- package/index.js +173 -82
- package/index.mjs +1631 -1437
- package/message-types/lightbox.d.ts +12 -0
- package/message-types/message-type-markdown.d.ts +12 -0
- package/models/agent.d.ts +1 -1
- package/package.json +2 -2
- package/types.d.ts +9 -3
@@ -0,0 +1,12 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export declare class Lightbox extends LitElement {
|
3
|
+
static styles: import("lit").CSSResult[];
|
4
|
+
imageUrl: string;
|
5
|
+
altText?: string;
|
6
|
+
firstUpdated(): void;
|
7
|
+
disconnectedCallback(): void;
|
8
|
+
private escapeListener;
|
9
|
+
private closeLightbox;
|
10
|
+
private handleKeyDown;
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export declare class MessageTypeMarkdown extends LitElement {
|
3
|
+
static styles: import("lit").CSSResult[];
|
4
|
+
message: {
|
5
|
+
content: string;
|
6
|
+
};
|
7
|
+
showLightbox: boolean;
|
8
|
+
imageUrl: string;
|
9
|
+
altText: string;
|
10
|
+
firstUpdated(): Promise<void>;
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
12
|
+
}
|
package/models/agent.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-conversation-flamingo",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.68",
|
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.
|
12
|
+
"@telia-ace/widget-core-flamingo": "1.1.68",
|
13
13
|
"lit-html": "^3.0.2",
|
14
14
|
"rxjs": "^7.8.1"
|
15
15
|
},
|
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;
|