@telia-ace/widget-conversation-flamingo 1.1.33 → 1.1.34-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/conversation.d.ts CHANGED
@@ -5,6 +5,7 @@ import { ConversationSessionState } from './models/conversation-session-state';
5
5
  declare const WidgetElement: (new (...args: any[]) => import("@telia-ace/widget-core-flamingo").WidgetComponentType) & typeof LitElement;
6
6
  export declare class Conversation extends WidgetElement {
7
7
  static styles: import("lit").CSSResultGroup[];
8
+ private toast;
8
9
  connectedCallback(): Promise<void>;
9
10
  _onSendMessage(e: Event): Promise<void>;
10
11
  _addHeaderOptions(): void;
@@ -16,10 +17,14 @@ export declare class Conversation extends WidgetElement {
16
17
  message: string;
17
18
  platform: ConversationPlatform | null;
18
19
  session: ConversationSessionState | null;
20
+ disabled: boolean;
19
21
  conversationContentRef: Ref<HTMLDivElement>;
20
22
  formRef: Ref<HTMLFormElement>;
21
23
  chatScrollHeight: number;
22
24
  private onSessionUpdated;
25
+ disableInput(): void;
26
+ enableInput(): void;
27
+ setToastMessage(message: string | null): void;
23
28
  render(): import("lit-html").TemplateResult<1>;
24
29
  }
25
30
  export default Conversation;
package/entry.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import { LitElement, nothing } from 'lit';
2
2
  import { ConversationEntry } from './models/conversation-entry';
3
+ import { ConversationEntryAction } from './types';
3
4
  export declare class ConversationMessage extends LitElement {
4
5
  static styles: import("lit").CSSResult[];
5
6
  entry: ConversationEntry;
6
7
  connectedCallback(): void;
8
+ _getTimestamp(raw: number): string;
7
9
  _renderTimestamp(name: string, timestamp: number | null): import("lit-html").TemplateResult<1> | typeof nothing;
8
- render(): import("lit-html").TemplateResult<1> | typeof nothing | "";
10
+ _dispatchEntryAction(event: CustomEvent<ConversationEntryAction>): void;
11
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
9
12
  }