@telia-ace/widget-components-widget-header-flamingo 1.1.120-rc.9 → 1.1.120

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,33 +1,40 @@
1
1
  import { LitElement } from 'lit';
2
- import { CreateWidgetHeaderOption } from './types';
2
+ import { Subject } from 'rxjs';
3
+ import { AuthState } from '../../core/src/index.ts';
3
4
  import { WidgetHeaderOption } from './widget-header-option';
5
+ import { CreateWidgetHeaderOption } from './types';
4
6
  declare const WidgetElement: (new (...args: any[]) => import('../../core/src/index.ts').WidgetComponentType) & typeof LitElement;
5
- type authStateType = 'non-authenticated' | 'authenticating' | 'authenticated' | 'chat-ended';
6
7
  export declare class WidgetHeader extends WidgetElement {
7
8
  static readonly styles: import('lit').CSSResultGroup[];
8
9
  optionsIsVisible: boolean;
9
- authState: authStateType;
10
- UserName: string;
10
+ authState: AuthState;
11
+ userName: string;
11
12
  authUrl: string;
12
- provider: any;
13
- idref: any;
13
+ showAuthOptions: boolean;
14
+ private shouldUseAuth;
14
15
  private readonly options;
15
16
  private readonly optionsRef;
16
17
  private readonly optionsTriggerRef;
18
+ actions$: Subject<{
19
+ key: string;
20
+ data?: any;
21
+ }>;
17
22
  addOption(option: CreateWidgetHeaderOption): WidgetHeaderOption;
18
23
  removeOption(option: WidgetHeaderOption): void;
19
- private _onToggleOptionsMenuClick;
20
- private _onMinimizeClick;
21
- notify(type: string, data?: Record<string, any>): void;
22
- connectedCallback(): void;
23
- disconnectedCallback(): void;
24
- private readonly _onClickOutside;
25
- private _onStartAuth;
26
- private _showLogoutForm;
27
- private shouldUseAuth;
28
- _logout(state?: authStateType): void;
24
+ private onToggleOptionsMenuClick;
25
+ private onMinimizeClick;
26
+ private notify;
27
+ private readonly onClickOutside;
28
+ private onStartAuth;
29
+ private onLogoutAuth;
30
+ private readonly onGlobalKeyDown;
31
+ private handleFocusTrap;
29
32
  private renderAuthSection;
30
33
  private renderAuthStatus;
34
+ private setFocusToOptionsTitle;
35
+ connectedCallback(): void;
36
+ updated(changedProps: Map<string, unknown>): void;
37
+ disconnectedCallback(): void;
31
38
  render(): import('lit-html').TemplateResult<1>;
32
39
  }
33
40
  export default WidgetHeader;