@telia-ace/widget-conversation-flamingo 1.1.123-rc.9 → 1.1.124-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
2
2
  export declare class Lightbox extends LitElement {
3
- static styles: import('lit').CSSResult[];
3
+ static styles: CSSResultGroup;
4
4
  imageUrl: string;
5
5
  altText?: string;
6
6
  firstUpdated(): void;
@@ -8,5 +8,5 @@ export declare class Lightbox extends LitElement {
8
8
  private escapeListener;
9
9
  private closeLightbox;
10
10
  private handleKeyDown;
11
- render(): import('lit-html').TemplateResult<1>;
11
+ render(): TemplateResult;
12
12
  }
@@ -1,8 +1,8 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
2
2
  export declare class MessageTypeHtml extends LitElement {
3
- static readonly styles: import('lit').CSSResult[];
3
+ static readonly styles: CSSResultGroup;
4
4
  message: {
5
5
  content: string;
6
6
  };
7
- render(): import('lit-html').TemplateResult<1>;
7
+ render(): TemplateResult;
8
8
  }
@@ -1,6 +1,6 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
2
2
  export declare class MessageTypeMarkdown extends LitElement {
3
- static readonly styles: import('lit').CSSResult[];
3
+ static readonly styles: CSSResultGroup;
4
4
  message: {
5
5
  content: string;
6
6
  };
@@ -21,5 +21,5 @@ export declare class MessageTypeMarkdown extends LitElement {
21
21
  firstUpdated(): void;
22
22
  updated(): void;
23
23
  private applyCodeStyles;
24
- render(): import('lit-html').TemplateResult<1>;
24
+ render(): TemplateResult;
25
25
  }
package/models/agent.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { ConversationEntry } from './conversation-entry';
2
3
  export declare class Agent {
3
4
  name: string;
4
5
  private print$;
5
6
  constructor(name: string);
6
7
  print(text: string, type?: string, alias?: string): ConversationEntry;
7
- subscribe(): import('rxjs').Observable<ConversationEntry>;
8
+ subscribe(): Observable<ConversationEntry>;
8
9
  }
@@ -1,4 +1,4 @@
1
- import { BehaviorSubject, Subject } from 'rxjs';
1
+ import { BehaviorSubject, Subject, Observable } from 'rxjs';
2
2
  import { ConversationMessageType } from '../types';
3
3
  import { ConversationEntry } from './conversation-entry';
4
4
  import { Agent } from './agent';
@@ -29,10 +29,10 @@ export declare class ConversationProvider {
29
29
  createSystem(): System;
30
30
  setTypingState(isTyping: boolean): void;
31
31
  setToastMessage(message: string | null): void;
32
- isTyping(): import('rxjs').Observable<boolean>;
33
- actions(): import('rxjs').Observable<ConversationEntry>;
32
+ isTyping(): Observable<boolean>;
33
+ actions(): Observable<ConversationEntry>;
34
34
  playNotification(): void;
35
- onComplete: () => import('rxjs').Observable<void>;
35
+ onComplete: () => Observable<void>;
36
36
  complete(): void;
37
37
  save(data: any): void;
38
38
  rehydrate(_data: Record<string, any>): Promise<void>;
@@ -1,8 +1,9 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { ConversationEntry } from './conversation-entry';
2
3
  export declare class System {
3
4
  private print$;
4
5
  private name;
5
6
  constructor();
6
7
  print(text: string): ConversationEntry;
7
- subscribe(): import('rxjs').Observable<ConversationEntry>;
8
+ subscribe(): Observable<ConversationEntry>;
8
9
  }
package/models/user.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { ConversationEntry } from './conversation-entry';
2
3
  export declare class User {
3
4
  name: string;
4
5
  private print$;
5
6
  constructor(name: string);
6
7
  print(text: string): ConversationEntry;
7
- subscribe(): import('rxjs').Observable<ConversationEntry>;
8
+ subscribe(): Observable<ConversationEntry>;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversation-flamingo",
3
- "version": "1.1.123-rc.9",
3
+ "version": "1.1.124-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.8",
10
10
  "@teliads/icons": "^8.4.0",
11
11
  "@teliads/components": "^22.1.1",
12
- "@telia-ace/widget-core-flamingo": "1.1.123-rc.9",
12
+ "@telia-ace/widget-core-flamingo": "1.1.123",
13
13
  "lit-html": "^3.0.2",
14
14
  "rxjs": "^7.8.2",
15
15
  "marked": "^15.0.12",
package/types.d.ts CHANGED
@@ -7,7 +7,7 @@ export type ConversationMessage = [
7
7
  content: string;
8
8
  },
9
9
  {
10
- [key: string]: string;
10
+ [key: string]: string | boolean;
11
11
  }?
12
12
  ];
13
13
  export type ConversationMessageSender = {
package/typing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
2
2
  export declare class Typing extends LitElement {
3
- static styles: import('lit').CSSResult[];
4
- render(): import('lit-html').TemplateResult<1>;
3
+ static styles: CSSResultGroup;
4
+ render(): TemplateResult;
5
5
  }
@@ -8,7 +8,28 @@
8
8
  "type": "sessionStorage",
9
9
  "lifespan": "Browser session",
10
10
  "purpose": "This storage value stores a record of all messages exchanged during the current conversation session, ensuring continuity and context within the session. If this entry is missing, the conversation history will be lost if the user reloads the page or navigates away"
11
- }
11
+ },
12
+ "userName": {
13
+ "category": "functional",
14
+ "type": "sessionStorage",
15
+ "lifespan": "Browser session",
16
+ "purpose":
17
+ "This storage value is used to store the user information such as name."
18
+ },
19
+ "agentName": {
20
+ "category": "functional",
21
+ "type": "sessionStorage",
22
+ "lifespan": "Browser session",
23
+ "purpose":
24
+ "This storage value is used to store the agent information such as name."
25
+ },
26
+ "auth": {
27
+ "category": "necessary",
28
+ "type": "sessionStorage",
29
+ "lifespan": "Browser session",
30
+ "purpose":
31
+ "This storage value is used to store the authentication token for the user. If this entry is missing, the user will be required to re-authenticate, and their session may not be retained across page reloads or navigation."
32
+ }
12
33
  }
13
34
  }
14
35
  ]