@sendity/client 0.1.5 → 0.1.7

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.
@@ -9,8 +9,7 @@ type StoredAuthRequest = {
9
9
  id: string;
10
10
  clientSecret: string;
11
11
  };
12
- export declare const HOSTED_SERVER_URL = "https://sendity.io/api";
13
- export declare const HOSTED_VERIFY_URLS: string[];
12
+ export declare const HOSTED_SERVER_URL = "https://sendity.io/api/sendity";
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;
@@ -41,10 +40,13 @@ export declare class Sendity extends HTMLElement {
41
40
  private footerMessageEl;
42
41
  private footerTimerEl;
43
42
  private footerIndicatorEl;
43
+ private secondarySlotContainerEl;
44
+ private secondarySlotEl;
44
45
  private footerObserver;
45
46
  private authStartObserver;
46
47
  private authFlowStarted;
47
48
  private footerWaitTimer;
49
+ private returnWaitTimer;
48
50
  private footerTransitionTimer;
49
51
  private successTransitionTimer;
50
52
  private timerInterval;
@@ -55,7 +57,10 @@ export declare class Sendity extends HTMLElement {
55
57
  private activeAuthRequestId?;
56
58
  private activeAuthRequestSecret?;
57
59
  private activeAuthRequestExpiresAt?;
60
+ private activeVerifyUrls;
58
61
  private authenticated;
62
+ private readonly handleBrowserReturn;
63
+ private readonly handleSecondarySlotChange;
59
64
  private static tailwindCssText;
60
65
  private static tailwindLoading;
61
66
  static get observedAttributes(): string[];
@@ -63,11 +68,16 @@ export declare class Sendity extends HTMLElement {
63
68
  connectedCallback(): void;
64
69
  disconnectedCallback(): void;
65
70
  attributeChangedCallback(): void;
71
+ private isNoCardVariant;
72
+ private syncLayoutVariant;
66
73
  private startWhenVisible;
67
74
  private start;
68
75
  private stop;
76
+ private syncSecondarySlotState;
69
77
  private injectTailwind;
70
78
  private configureFooter;
79
+ private bindBrowserReturnListeners;
80
+ private scheduleBrowserReturnCheck;
71
81
  private isFooterHidden;
72
82
  private observeFooterVisibility;
73
83
  private scheduleFooterWaitingState;
@@ -92,6 +102,7 @@ export declare class Sendity extends HTMLElement {
92
102
  private dispatchPublicEvent;
93
103
  private toPublicAuthenticatedDetail;
94
104
  private primaryChannel;
105
+ private applyVerifyUrlsFromResponse;
95
106
  private authRequestStatusUrl;
96
107
  private authRequestStatusInit;
97
108
  private extractClientSecret;
@@ -107,6 +118,7 @@ export declare class Sendity extends HTMLElement {
107
118
  private showLoading;
108
119
  private showCodeState;
109
120
  private showSuccess;
121
+ private verifiedSigningInMessage;
110
122
  private destinationAddressForChannel;
111
123
  private escapeHtml;
112
124
  private renderVerifiers;
@@ -10,6 +10,7 @@ export type SendityI18n = {
10
10
  toPrefix: string;
11
11
  footerWaiting: string;
12
12
  footerWaitingUntil: string;
13
+ footerReturnedWaiting: string;
13
14
  codeExpired: string;
14
15
  getNewCode: string;
15
16
  };