@sendity/client 0.1.1 → 0.1.3

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.
@@ -38,8 +38,12 @@ export declare class Sendity extends HTMLElement {
38
38
  private footerBrandEl;
39
39
  private footerStatusEl;
40
40
  private footerMessageEl;
41
+ private footerTimerEl;
41
42
  private footerObserver;
42
43
  private footerWaitTimer;
44
+ private footerTransitionTimer;
45
+ private successTransitionTimer;
46
+ private timerInterval;
43
47
  private currentConfig;
44
48
  private destroyed;
45
49
  private lastCode;
@@ -63,9 +67,15 @@ export declare class Sendity extends HTMLElement {
63
67
  private observeFooterVisibility;
64
68
  private scheduleFooterWaitingState;
65
69
  private showFooterWaitingState;
70
+ private startCountdown;
71
+ private stopCountdown;
72
+ private showExpiredState;
73
+ private renderExpiredAction;
74
+ private requestNewAuthRequest;
66
75
  private handleInitialError;
67
76
  private resolveConfig;
68
77
  private parseAuthenticatedEventDelayMs;
78
+ private createAuthRequest;
69
79
  private step;
70
80
  private configureRealtime;
71
81
  private subscribeToBroadcasting;
@@ -82,15 +92,18 @@ export declare class Sendity extends HTMLElement {
82
92
  private waitingFooterMessage;
83
93
  private formatExpiryTime;
84
94
  private localeForLang;
85
- private updateCodeValidityDuration;
86
95
  private fetchAuthorizationAfterAuthenticatedSignal;
87
96
  private updateCode;
88
97
  private renderError;
89
98
  private showLoading;
90
99
  private showCodeState;
91
100
  private showSuccess;
101
+ private destinationAddressForChannel;
92
102
  private escapeHtml;
93
103
  private renderVerifiers;
104
+ private channelClass;
105
+ private channelLabel;
106
+ private destinationText;
94
107
  private iconForUrl;
95
108
  private labelForUrl;
96
109
  private buildLink;
@@ -7,8 +7,11 @@ export type SendityI18n = {
7
7
  sendCodePrompt: string;
8
8
  successGreeting: string;
9
9
  by: string;
10
+ toPrefix: string;
10
11
  footerWaiting: string;
11
12
  footerWaitingUntil: string;
13
+ codeExpired: string;
14
+ getNewCode: string;
12
15
  };
13
16
  templates: {
14
17
  emailSubject: string;