@sendity/client 0.1.6 → 0.1.8

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,7 +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";
12
+ export declare const HOSTED_SERVER_URL = "https://sendity.io/api/sendity";
13
13
  export declare const AUTH_REQUEST_TTL_MS: number;
14
14
  export declare const FOOTER_WAIT_DELAY_MS = 15000;
15
15
  export declare const DEFAULT_AUTHENTICATED_EVENT_DELAY_MS = 2000;
@@ -40,10 +40,13 @@ export declare class Sendity extends HTMLElement {
40
40
  private footerMessageEl;
41
41
  private footerTimerEl;
42
42
  private footerIndicatorEl;
43
+ private secondarySlotContainerEl;
44
+ private secondarySlotEl;
43
45
  private footerObserver;
44
46
  private authStartObserver;
45
47
  private authFlowStarted;
46
48
  private footerWaitTimer;
49
+ private returnWaitTimer;
47
50
  private footerTransitionTimer;
48
51
  private successTransitionTimer;
49
52
  private timerInterval;
@@ -56,6 +59,8 @@ export declare class Sendity extends HTMLElement {
56
59
  private activeAuthRequestExpiresAt?;
57
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[];
@@ -68,8 +73,11 @@ export declare class Sendity extends HTMLElement {
68
73
  private startWhenVisible;
69
74
  private start;
70
75
  private stop;
76
+ private syncSecondarySlotState;
71
77
  private injectTailwind;
72
78
  private configureFooter;
79
+ private bindBrowserReturnListeners;
80
+ private scheduleBrowserReturnCheck;
73
81
  private isFooterHidden;
74
82
  private observeFooterVisibility;
75
83
  private scheduleFooterWaitingState;
@@ -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
  };