@telia-ace/widget-conversation-flamingo 1.1.67 → 1.1.69-rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -3,6 +3,6 @@ export declare class Agent {
3
3
  name: string;
4
4
  private print$;
5
5
  constructor(name: string);
6
- print(text: string): ConversationEntry;
6
+ print(text: string, type?: string): ConversationEntry;
7
7
  subscribe(): import("rxjs").Observable<ConversationEntry>;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversation-flamingo",
3
- "version": "1.1.67",
3
+ "version": "1.1.69-rc.0",
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",
12
+ "@telia-ace/widget-core-flamingo": "1.1.69-rc.0",
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 = [string, {
5
- content: string;
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;