@telia-ace/widget-conversation-flamingo 1.1.14 → 1.1.15-rc.0

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-cec07deb.js");exports.Agent=o.Agent;exports.ConversationComponent=o.ConversationComponent;exports.ConversationEntry=o.ConversationEntry;exports.ConversationPlatform=o.ConversationPlatform;exports.ConversationProvider=o.ConversationProvider;exports.User=o.User;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-23b605ae.js");exports.Agent=o.Agent;exports.ConversationComponent=o.ConversationComponent;exports.ConversationEntry=o.ConversationEntry;exports.ConversationPlatform=o.ConversationPlatform;exports.ConversationProvider=o.ConversationProvider;exports.User=o.User;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as n, a as r, d as s, b as e, c as t, U as i } from "./index-7ce12d5a.mjs";
1
+ import { A as n, a as r, d as s, b as e, c as t, U as i } from "./index-ccbeb601.mjs";
2
2
  export {
3
3
  n as Agent,
4
4
  r as ConversationComponent,
@@ -8,12 +8,15 @@ type UserSubmitEvent = {
8
8
  export declare class ConversationProvider {
9
9
  name: string;
10
10
  private print$;
11
+ private typingState$;
11
12
  constructor(name: string);
12
13
  onUserSubmit(action: UserSubmitEvent): void;
13
14
  print(type: ConversationMessageType, text: string): ConversationEntry;
14
15
  printEntry(entry: ConversationEntry): ConversationEntry;
15
16
  createAgent(name: string): Agent;
16
17
  createUser(name: string): User;
18
+ setTypingState(isTyping: boolean): void;
19
+ isTyping(): import("rxjs").Observable<boolean>;
17
20
  actions(): import("rxjs").Observable<ConversationEntry>;
18
21
  }
19
22
  export {};
@@ -1,4 +1,4 @@
1
- import { BehaviorSubject } from 'rxjs';
1
+ import { BehaviorSubject, Observable } from 'rxjs';
2
2
  import { ConversationEntry } from './conversation-entry';
3
3
  import { ConversationProvider } from './conversation-provider';
4
4
  import Conversation from '../conversation';
@@ -8,6 +8,7 @@ export declare class ConversationSessionState {
8
8
  private provider?;
9
9
  constructor(id: string, component: Conversation);
10
10
  private write;
11
- entries(): import("rxjs").Observable<ConversationEntry[]>;
11
+ entries(): Observable<ConversationEntry[]>;
12
12
  setProvider(provider: ConversationProvider): void;
13
+ isTyping(): Observable<boolean>;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversation-flamingo",
3
- "version": "1.1.14",
3
+ "version": "1.1.15-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.14",
12
+ "@telia-ace/widget-core-flamingo": "1.1.15-rc.0",
13
13
  "uuid": "^9.0.1",
14
14
  "lit-html": "^3.0.2",
15
15
  "rxjs": "^7.8.1"
package/typing.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class Typing extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }