@sendity/client 0.1.4 → 0.1.6
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.
- package/dist/components/sendity.d.ts +9 -1
- package/dist/sendity-client.js +654 -544
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,6 @@ type StoredAuthRequest = {
|
|
|
10
10
|
clientSecret: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const HOSTED_SERVER_URL = "https://sendity.io/api";
|
|
13
|
-
export declare const HOSTED_VERIFY_URLS: string[];
|
|
14
13
|
export declare const AUTH_REQUEST_TTL_MS: number;
|
|
15
14
|
export declare const FOOTER_WAIT_DELAY_MS = 15000;
|
|
16
15
|
export declare const DEFAULT_AUTHENTICATED_EVENT_DELAY_MS = 2000;
|
|
@@ -28,6 +27,7 @@ export declare class Sendity extends HTMLElement {
|
|
|
28
27
|
private pollTimer;
|
|
29
28
|
private fallbackPollTimer;
|
|
30
29
|
private authenticatedEventTimer;
|
|
30
|
+
private rootEl;
|
|
31
31
|
private codeContainerEl;
|
|
32
32
|
private codeEl;
|
|
33
33
|
private promptEl;
|
|
@@ -39,6 +39,7 @@ export declare class Sendity extends HTMLElement {
|
|
|
39
39
|
private footerStatusEl;
|
|
40
40
|
private footerMessageEl;
|
|
41
41
|
private footerTimerEl;
|
|
42
|
+
private footerIndicatorEl;
|
|
42
43
|
private footerObserver;
|
|
43
44
|
private authStartObserver;
|
|
44
45
|
private authFlowStarted;
|
|
@@ -53,6 +54,7 @@ export declare class Sendity extends HTMLElement {
|
|
|
53
54
|
private activeAuthRequestId?;
|
|
54
55
|
private activeAuthRequestSecret?;
|
|
55
56
|
private activeAuthRequestExpiresAt?;
|
|
57
|
+
private activeVerifyUrls;
|
|
56
58
|
private authenticated;
|
|
57
59
|
private static tailwindCssText;
|
|
58
60
|
private static tailwindLoading;
|
|
@@ -61,6 +63,8 @@ export declare class Sendity extends HTMLElement {
|
|
|
61
63
|
connectedCallback(): void;
|
|
62
64
|
disconnectedCallback(): void;
|
|
63
65
|
attributeChangedCallback(): void;
|
|
66
|
+
private isNoCardVariant;
|
|
67
|
+
private syncLayoutVariant;
|
|
64
68
|
private startWhenVisible;
|
|
65
69
|
private start;
|
|
66
70
|
private stop;
|
|
@@ -69,6 +73,8 @@ export declare class Sendity extends HTMLElement {
|
|
|
69
73
|
private isFooterHidden;
|
|
70
74
|
private observeFooterVisibility;
|
|
71
75
|
private scheduleFooterWaitingState;
|
|
76
|
+
private setFooterIndicatorWaiting;
|
|
77
|
+
private setFooterIndicatorError;
|
|
72
78
|
private showFooterWaitingState;
|
|
73
79
|
private startCountdown;
|
|
74
80
|
private stopCountdown;
|
|
@@ -88,6 +94,7 @@ export declare class Sendity extends HTMLElement {
|
|
|
88
94
|
private dispatchPublicEvent;
|
|
89
95
|
private toPublicAuthenticatedDetail;
|
|
90
96
|
private primaryChannel;
|
|
97
|
+
private applyVerifyUrlsFromResponse;
|
|
91
98
|
private authRequestStatusUrl;
|
|
92
99
|
private authRequestStatusInit;
|
|
93
100
|
private extractClientSecret;
|
|
@@ -103,6 +110,7 @@ export declare class Sendity extends HTMLElement {
|
|
|
103
110
|
private showLoading;
|
|
104
111
|
private showCodeState;
|
|
105
112
|
private showSuccess;
|
|
113
|
+
private verifiedSigningInMessage;
|
|
106
114
|
private destinationAddressForChannel;
|
|
107
115
|
private escapeHtml;
|
|
108
116
|
private renderVerifiers;
|