@whop/embedded-components-vanilla-js 0.0.5-beta.30 → 0.0.5-beta.32

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.
@@ -101,16 +101,14 @@ interface BalanceElementEvents {
101
101
  ready: (element: BalanceElement) => void;
102
102
  optionsUpdated: (options: BalanceElementOptions) => void;
103
103
  snapshot: (snapshot: BalanceElementSnapshot) => void;
104
- showTotalBalanceBreakdown: (ev: CustomEvent<BalanceElement>) => void;
105
- showPendingBalanceBreakdown: (ev: CustomEvent<BalanceElement>) => void;
104
+ showAvailableBalanceBreakdown: (ev: CustomEvent<BalanceElement>) => void;
106
105
  showRegularReserveBalanceBreakdown: (ev: CustomEvent<BalanceElement>) => void;
107
106
  showBnplReserveBalanceBreakdown: (ev: CustomEvent<BalanceElement>) => void;
108
107
  }
109
108
  interface BalanceElementOptions {
110
109
  hidePendingBalance?: boolean;
111
110
  onReady?: (element: BalanceElement) => void;
112
- onShowTotalBalanceBreakdown?: (ev: CustomEvent<BalanceElement>) => void;
113
- onShowPendingBalanceBreakdown?: (ev: CustomEvent<BalanceElement>) => void;
111
+ onShowAvailableBalanceBreakdown?: (ev: CustomEvent<BalanceElement>) => void;
114
112
  onShowRegularReserveBalanceBreakdown?: (ev: CustomEvent<BalanceElement>) => void;
115
113
  onShowBnplReserveBalanceBreakdown?: (ev: CustomEvent<BalanceElement>) => void;
116
114
  }
@@ -176,22 +174,6 @@ interface GenerateWithdrawalReceiptElementSnapshot {
176
174
  }
177
175
  type GenerateWithdrawalReceiptElement = WhopElement<GenerateWithdrawalReceiptElementOptions, GenerateWithdrawalReceiptElementEvents, GenerateWithdrawalReceiptElementSnapshot>;
178
176
 
179
- interface PendingBalanceBreakdownElementEvents {
180
- error: (error: unknown) => void;
181
- ready: (element: PendingBalanceBreakdownElement) => void;
182
- optionsUpdated: (options: PendingBalanceBreakdownElementOptions) => void;
183
- close: (ev: CustomEvent) => void;
184
- snapshot: (snapshot: PendingBalanceBreakdownElementSnapshot) => void;
185
- }
186
- interface PendingBalanceBreakdownElementOptions {
187
- onReady?: (element: PendingBalanceBreakdownElement) => void;
188
- onClose?: (ev: CustomEvent) => void;
189
- }
190
- interface PendingBalanceBreakdownElementSnapshot {
191
- state: "loading" | "ready";
192
- }
193
- type PendingBalanceBreakdownElement = WhopElement<PendingBalanceBreakdownElementOptions, PendingBalanceBreakdownElementEvents, PendingBalanceBreakdownElementSnapshot>;
194
-
195
177
  interface RegularReserveBalanceBreakdownElementEvents {
196
178
  error: (error: unknown) => void;
197
179
  ready: (element: RegularReserveBalanceBreakdownElement) => void;
@@ -467,10 +449,6 @@ type PayoutsSessionElements = {
467
449
  TotalBalanceBreakdownElementOptions,
468
450
  TotalBalanceBreakdownElement
469
451
  ];
470
- "pending-balance-breakdown-element": [
471
- PendingBalanceBreakdownElementOptions,
472
- PendingBalanceBreakdownElement
473
- ];
474
452
  "generate-withdrawal-receipt-element": [
475
453
  GenerateWithdrawalReceiptElementOptions,
476
454
  GenerateWithdrawalReceiptElement
@@ -492,7 +470,6 @@ interface PayoutsSession extends TypedEmitter<PayoutsSessionEvents> {
492
470
  showChangeAccountCountryModal: <Force extends boolean = false>(options: ChangeAccountCountryElementOptions | ((modal: ModalContainer) => ChangeAccountCountryElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
493
471
  showResetAccountModal: <Force extends boolean = false>(options: ResetAccountElementOptions | ((modal: ModalContainer) => ResetAccountElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
494
472
  showTotalBalanceBreakdownModal: <Force extends boolean = false>(options: TotalBalanceBreakdownElementOptions | ((modal: ModalContainer) => TotalBalanceBreakdownElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
495
- showPendingBalanceBreakdownModal: <Force extends boolean = false>(options: PendingBalanceBreakdownElementOptions | ((modal: ModalContainer) => PendingBalanceBreakdownElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
496
473
  showRegularReserveBalanceBreakdownModal: <Force extends boolean = false>(options: RegularReserveBalanceBreakdownElementOptions | ((modal: ModalContainer) => RegularReserveBalanceBreakdownElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
497
474
  showBnplReserveBalanceBreakdownModal: <Force extends boolean = false>(options: BnplReserveBalanceBreakdownElementOptions | ((modal: ModalContainer) => BnplReserveBalanceBreakdownElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
498
475
  showGenerateWithdrawalReceiptModal: <Force extends boolean = false>(options: GenerateWithdrawalReceiptElementOptions | ((modal: ModalContainer) => GenerateWithdrawalReceiptElementOptions), force?: Force) => Force extends true ? ModalContainer : ModalContainer | undefined;
@@ -527,4 +504,4 @@ interface WhopElementsEvents {
527
504
  optionsUpdated: (options: WhopElementsOptions) => void;
528
505
  }
529
506
 
530
- export type { AddPayoutMethodElement, AddPayoutMethodElementOptions, AddPayoutMethodElementSnapshot, Appearance, AutomaticWithdrawElement, AutomaticWithdrawElementOptions, AutomaticWithdrawElementSnapshot, BalanceElement, BalanceElementOptions, BalanceElementSnapshot, BnplReserveBalanceBreakdownElement, BnplReserveBalanceBreakdownElementOptions, BnplReserveBalanceBreakdownElementSnapshot, ChangeAccountCountryElement, ChangeAccountCountryElementOptions, ChangeAccountCountryElementSnapshot, ExpandedPayoutsSessionOptions, GenerateWithdrawalReceiptElement, GenerateWithdrawalReceiptElementOptions, GenerateWithdrawalReceiptElementSnapshot, GetToken, I18nSupportedLocale, PayoutsSession, PayoutsSessionElements, PayoutsSessionEvents, PayoutsSessionOptions, PendingBalanceBreakdownElement, PendingBalanceBreakdownElementOptions, PendingBalanceBreakdownElementSnapshot, RegularReserveBalanceBreakdownElement, RegularReserveBalanceBreakdownElementOptions, RegularReserveBalanceBreakdownElementSnapshot, ResetAccountElement, ResetAccountElementOptions, ResetAccountElementSnapshot, StatusBannerElement, StatusBannerElementOptions, StatusBannerElementSnapshot, StatusBannerType, TotalBalanceBreakdownElement, TotalBalanceBreakdownElementOptions, TotalBalanceBreakdownElementSnapshot, VerifyElement, VerifyElementOptions, VerifyElementSnapshot, WhopElement, WhopElements, WhopElementsConstructor, WhopElementsEvents, WhopElementsOptions, WithdrawButtonElement, WithdrawButtonElementOptions, WithdrawElement, WithdrawElementOptions, WithdrawElementSnapshot, WithdrawalBreakdownElement, WithdrawalBreakdownElementOptions, WithdrawalBreakdownElementSnapshot, WithdrawalsElement, WithdrawalsElementOptions, WithdrawalsElementSnapshot };
507
+ export type { AddPayoutMethodElement, AddPayoutMethodElementOptions, AddPayoutMethodElementSnapshot, Appearance, AutomaticWithdrawElement, AutomaticWithdrawElementOptions, AutomaticWithdrawElementSnapshot, BalanceElement, BalanceElementOptions, BalanceElementSnapshot, BnplReserveBalanceBreakdownElement, BnplReserveBalanceBreakdownElementOptions, BnplReserveBalanceBreakdownElementSnapshot, ChangeAccountCountryElement, ChangeAccountCountryElementOptions, ChangeAccountCountryElementSnapshot, ExpandedPayoutsSessionOptions, GenerateWithdrawalReceiptElement, GenerateWithdrawalReceiptElementOptions, GenerateWithdrawalReceiptElementSnapshot, GetToken, I18nSupportedLocale, PayoutsSession, PayoutsSessionElements, PayoutsSessionEvents, PayoutsSessionOptions, RegularReserveBalanceBreakdownElement, RegularReserveBalanceBreakdownElementOptions, RegularReserveBalanceBreakdownElementSnapshot, ResetAccountElement, ResetAccountElementOptions, ResetAccountElementSnapshot, StatusBannerElement, StatusBannerElementOptions, StatusBannerElementSnapshot, StatusBannerType, TotalBalanceBreakdownElement, TotalBalanceBreakdownElementOptions, TotalBalanceBreakdownElementSnapshot, VerifyElement, VerifyElementOptions, VerifyElementSnapshot, WhopElement, WhopElements, WhopElementsConstructor, WhopElementsEvents, WhopElementsOptions, WithdrawButtonElement, WithdrawButtonElementOptions, WithdrawElement, WithdrawElementOptions, WithdrawElementSnapshot, WithdrawalBreakdownElement, WithdrawalBreakdownElementOptions, WithdrawalBreakdownElementSnapshot, WithdrawalsElement, WithdrawalsElementOptions, WithdrawalsElementSnapshot };
package/dist/url.js CHANGED
@@ -22,6 +22,6 @@ __export(url_exports, {
22
22
  SCRIPT_URL: () => SCRIPT_URL
23
23
  });
24
24
  module.exports = __toCommonJS(url_exports);
25
- const ORIGIN = "https://0-0-5-beta-30.elements.whop.com/";
25
+ const ORIGIN = "https://0-0-5-beta-32.elements.whop.com/";
26
26
  const SCRIPT_URL = new URL(`/release/elements.js`, ORIGIN).toString();
27
27
  //# sourceMappingURL=url.js.map
package/dist/url.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const ORIGIN = "https://0-0-5-beta-30.elements.whop.com/";
1
+ const ORIGIN = "https://0-0-5-beta-32.elements.whop.com/";
2
2
  const SCRIPT_URL = new URL(`/release/elements.js`, ORIGIN).toString();
3
3
  export { ORIGIN, SCRIPT_URL };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/embedded-components-vanilla-js",
3
- "version": "0.0.5-beta.30",
3
+ "version": "0.0.5-beta.32",
4
4
  "description": "Whop Elements loading utility",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",