@funkit/connect 9.2.0 → 9.3.0

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 (42) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/__generated__/default_configs.d.ts +31 -2
  3. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  4. package/dist/{chunk-XCM74QX2.js → chunk-FHIMKOGH.js} +24 -1
  5. package/dist/{chunk-WSCXOKCX.js → chunk-NKJYA7IM.js} +24 -1
  6. package/dist/{chunk-SC53AFEE.js → chunk-TWG76V3I.js} +26 -4
  7. package/dist/clients/fanatics.css +5448 -3919
  8. package/dist/clients/fanatics.js +3 -3
  9. package/dist/components/Box/Box.d.ts +44 -44
  10. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  11. package/dist/components/FunButton/FunLinkButton.d.ts +2 -2
  12. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  13. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  14. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  15. package/dist/css/sprinkles.css.d.ts +120 -44
  16. package/dist/domains/relay.d.ts +2 -2
  17. package/dist/hooks/queries/useFops.d.ts +4 -198
  18. package/dist/hooks/statsig/useDynamicConfig.d.ts +3 -1
  19. package/dist/hooks/useCheckoutTransferInit.d.ts +5 -1
  20. package/dist/hooks/usePaymentSources.d.ts +6 -2
  21. package/dist/hooks/useScrollDivider.d.ts +1 -0
  22. package/dist/hooks/useSwappedPreload.d.ts +2 -3
  23. package/dist/index.css +5523 -3943
  24. package/dist/index.js +1127 -835
  25. package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +4 -3
  26. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +6 -0
  27. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +2 -15
  28. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +15 -0
  29. package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -1
  30. package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -5
  31. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  32. package/dist/providers/FunkitThemeProvider.d.ts +114 -0
  33. package/dist/providers/SwappedProvider.d.ts +8 -8
  34. package/dist/themes/baseTheme.js +1 -1
  35. package/dist/themes/darkTheme.js +2 -2
  36. package/dist/themes/lightTheme.js +2 -2
  37. package/dist/utils/checkout.d.ts +4 -4
  38. package/dist/utils/swapped.d.ts +6 -3
  39. package/dist/wallets/walletConnectors/index.js +40 -40
  40. package/package.json +2 -2
  41. package/dist/hooks/useIframePool.d.ts +0 -38
  42. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframePool.d.ts +0 -14
@@ -1,38 +0,0 @@
1
- interface UseIframePoolOptions {
2
- maxSize?: number;
3
- }
4
- interface IframePool {
5
- /** URLs in the pool, ordered by priority (most important first) */
6
- urls: string[];
7
- /** The currently active/visible URL */
8
- activeUrl: string | null;
9
- /** Bulk-set preload URLs (priority order: most important first). Respects maxSize. */
10
- setPreloadUrls: (urls: string[]) => void;
11
- /** Activate a URL — marks it as active and adds it to the pool (evicting tail if full). */
12
- activate: (url: string) => void;
13
- /** Deactivate the current URL (hides overlay, but URL stays in pool). */
14
- deactivate: () => void;
15
- /** URLs that have finished loading (state — use for rendering). */
16
- loadedUrls: string[];
17
- /** Ref to loaded URLs (use in callbacks to avoid stale closures). */
18
- loadedUrlsRef: React.RefObject<string[]>;
19
- /** Mark an iframe as loaded. */
20
- setLoaded: (url: string) => void;
21
- /** Remove all URLs from the pool, clearing all associated state. */
22
- clear: () => void;
23
- /** Store/remove an iframe element ref. */
24
- setRef: (url: string, el: HTMLIFrameElement | null) => void;
25
- /** Get the iframe element for a URL (internal use). */
26
- getRef: (url: string) => HTMLIFrameElement | null;
27
- /** Ref to the active URL (for use in stable callbacks without re-registration). */
28
- activeUrlRef: React.RefObject<string | null>;
29
- }
30
- /**
31
- * Bounded iframe pool with tail eviction.
32
- *
33
- * URLs are stored in priority order (most important first, matching fops order).
34
- * When the pool exceeds `maxSize`, the last (least important) non-active URL
35
- * is evicted.
36
- */
37
- export declare function useIframePool({ maxSize, }?: UseIframePoolOptions): IframePool;
38
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Pooled iframes that live outside the HeightAnimationWrapper.
4
- * Renders both preloaded and on-demand iframes from the provider's pool.
5
- * Uses absolute positioning so it never affects layout measurements.
6
- * When an iframe is active, it overlays the dialog content area.
7
- *
8
- * Wrapped in React.memo to prevent re-renders from parent state changes
9
- * (e.g., modal step transitions, tab toggles). Only re-renders when the
10
- * SwappedContext value changes (poolUrls, activeUrl, or loadedIframeUrls).
11
- */
12
- declare function SwappedIframePool(): React.JSX.Element | null;
13
- declare const _default: React.MemoExoticComponent<typeof SwappedIframePool>;
14
- export default _default;