@funkit/connect 12.11.1 → 12.12.1

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/clients/{chunk-ATNOIBW2.js → chunk-GPI6LBBB.js} +1 -1
  3. package/dist/clients/{chunk-4OOCXIMA.js → chunk-JDQK4VQB.js} +5 -5
  4. package/dist/clients/{chunk-7GPRX32F.js → chunk-JN52EBYV.js} +64 -0
  5. package/dist/clients/{chunk-A2WBB3UO.js → chunk-RBMOSICG.js} +1 -1
  6. package/dist/clients/{chunk-B5KCBBSV.js → chunk-WXHSEFYH.js} +1 -1
  7. package/dist/clients/fanatics.js +2 -2
  8. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  9. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  10. package/dist/clients/internal/nado/withdrawalForm.css +30 -30
  11. package/dist/clients/internal/nado/withdrawalForm.js +3 -3
  12. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  13. package/dist/clients/lighter.js +3 -3
  14. package/dist/clients/mallard.js +2 -2
  15. package/dist/clients/nado.js +3 -3
  16. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +7 -5
  17. package/dist/components/ErrorBoundary/ErrorFallback.d.ts +9 -1
  18. package/dist/index.css +79 -79
  19. package/dist/index.d.ts +2 -1
  20. package/dist/index.js +35717 -35456
  21. package/dist/modals/CheckoutModal/isSourceChangeLike.d.ts +3 -0
  22. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +3 -0
  23. package/dist/providers/FunkitQuoteContext.d.ts +2 -1
  24. package/dist/shadow-css.js +1 -1
  25. package/dist/utils/checkout.d.ts +1 -1
  26. package/dist/utils/externalDomMutation.d.ts +6 -0
  27. package/dist/utils/solanaRelayWallet.d.ts +3 -5
  28. package/dist/wallets/Wallet.d.ts +10 -0
  29. package/dist/wallets/hypercoreWithdrawal.d.ts +8 -0
  30. package/dist/wallets/walletConnectors/index.js +40 -40
  31. package/package.json +6 -6
@@ -0,0 +1,3 @@
1
+ import { FunCheckoutStartingStep } from '../../providers/FunkitCheckoutContext';
2
+ import type { CheckoutModalState } from './stepTransition';
3
+ export declare function isSourceChangeLike({ step }: CheckoutModalState, startingStep: FunCheckoutStartingStep | undefined): boolean;
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import { type AnimationState } from '../../../../hooks/useAnimatedNavigation';
3
+ import type { MergedCheckoutHistoryItem } from '../../../../utils/checkout';
3
4
  import { type BaseActivitySelection } from '../../ActivityTraversalContext';
4
5
  import type { FunProfileView } from '../../ProfileDetails';
5
6
  export declare enum SelectedHomeTab {
6
7
  ASSETS = "assets",
7
8
  CHECKOUTS = "checkouts"
8
9
  }
10
+ /** Buckets checkouts by calendar day, newest day first, each under its date label. */
11
+ export declare function groupCheckoutsByDay(checkouts: MergedCheckoutHistoryItem[]): [string, MergedCheckoutHistoryItem[]][];
9
12
  export declare function Home({ onClose, onChangeView, onSelectActivity, defaultHomeTab, animation, }: {
10
13
  onClose: () => void;
11
14
  onChangeView: (newView: FunProfileView) => void;
@@ -1,6 +1,6 @@
1
1
  import type { Dnum } from 'dnum';
2
2
  import React, { type Dispatch, type ReactNode } from 'react';
3
- import type { FunkitCheckoutQuoteResult } from '../domains/quote';
3
+ import type { CheckedAssetAmount, FunkitCheckoutQuoteResult } from '../domains/quote';
4
4
  import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
5
5
  import type { DisplayedError } from '../components/FunNotification/FunNotification';
6
6
  export type ApprovalMethod = 'approve' | 'sign';
@@ -83,6 +83,7 @@ export declare function shouldShowApprovalMethodToggle({ isPermitToggleGateOn, i
83
83
  targetAssetSupportsPermit: boolean | undefined;
84
84
  targetAssetAllowanceCoversAmount: boolean;
85
85
  }): boolean;
86
+ export declare function getQuoteErrorResponse(error: Error, checkedAmount: CheckedAssetAmount | undefined, newCheckoutItem: FunkitActiveCheckoutItem, quoteState: CheckoutQuoteState): GetCheckoutQuoteResponse;
86
87
  export declare function FunkitQuoteProvider({ children }: {
87
88
  children: ReactNode;
88
89
  }): React.JSX.Element;