@flopay/react 1.20.15 → 2.0.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 (67) hide show
  1. package/README.md +107 -390
  2. package/dist/card-setup-entry.cjs +1 -6
  3. package/dist/card-setup-entry.d.ts +4 -10
  4. package/dist/card-setup-entry.mjs +1 -1
  5. package/dist/chunk-KPRDVWZP.mjs +1 -0
  6. package/dist/chunk-XRYDC367.mjs +1 -0
  7. package/dist/flopay-runtime-card-setup.d.ts +4 -5
  8. package/dist/flopay-runtime-checkout.d.ts +2 -0
  9. package/dist/hosted-runtime-components.d.ts +75 -0
  10. package/dist/index.cjs +1 -47
  11. package/dist/index.d.ts +3 -21
  12. package/dist/index.mjs +1 -21
  13. package/dist/payment-method-setup-entry.cjs +1 -27
  14. package/dist/payment-method-setup-entry.d.ts +5 -12
  15. package/dist/payment-method-setup-entry.mjs +1 -1
  16. package/dist/runtime-context.d.ts +10 -0
  17. package/package.json +3 -6
  18. package/dist/account-bound-elements.d.ts +0 -31
  19. package/dist/automatic-payment-button.d.ts +0 -88
  20. package/dist/buyer-identity-fallback.d.ts +0 -43
  21. package/dist/card-button-content.d.ts +0 -11
  22. package/dist/card-setup-surface.d.ts +0 -12
  23. package/dist/card-setup-theme.d.ts +0 -32
  24. package/dist/checkout-utils.d.ts +0 -172
  25. package/dist/chunk-BU7THP6H.mjs +0 -1
  26. package/dist/chunk-FGCZOMML.mjs +0 -22
  27. package/dist/chunk-ITRFSHZP.mjs +0 -6
  28. package/dist/chunk-PCIHQY3X.mjs +0 -1
  29. package/dist/chunk-VK67324N.mjs +0 -1
  30. package/dist/context.d.ts +0 -46
  31. package/dist/direct-paypal-button.d.ts +0 -155
  32. package/dist/error-banner.d.ts +0 -21
  33. package/dist/external-method-recovery.d.ts +0 -1
  34. package/dist/external-method-telemetry.d.ts +0 -17
  35. package/dist/flopay-card-setup.d.ts +0 -114
  36. package/dist/flopay-checkout.d.ts +0 -292
  37. package/dist/flopay-payment-method-setup-main.d.ts +0 -10
  38. package/dist/flopay-payment-method-setup.d.ts +0 -11
  39. package/dist/hooks.d.ts +0 -36
  40. package/dist/in-app-browser.d.ts +0 -5
  41. package/dist/inline-session-cache.d.ts +0 -1
  42. package/dist/instruments.d.ts +0 -5
  43. package/dist/more-payment-options.d.ts +0 -19
  44. package/dist/one-click-warnings.d.ts +0 -12
  45. package/dist/payment-logos.generated.d.ts +0 -1
  46. package/dist/payment-method-layout-placeholder.d.ts +0 -10
  47. package/dist/payment-method-setup-advertisement.d.ts +0 -36
  48. package/dist/payment-method-setup-paypal-CLV7JDJH.mjs +0 -1
  49. package/dist/payment-method-setup-paypal.d.ts +0 -25
  50. package/dist/payment-method-setup-stripe-526L4P5X.mjs +0 -1
  51. package/dist/payment-method-setup-stripe.d.ts +0 -31
  52. package/dist/payment-method-setup-surface.d.ts +0 -90
  53. package/dist/popup-capability.d.ts +0 -12
  54. package/dist/processing-overlay.d.ts +0 -33
  55. package/dist/provider-callback-ignored.d.ts +0 -8
  56. package/dist/provider.d.ts +0 -40
  57. package/dist/recent-completion.d.ts +0 -1
  58. package/dist/run-latest-abortable-action.d.ts +0 -5
  59. package/dist/saved-payment-flow.d.ts +0 -140
  60. package/dist/split-card-form.d.ts +0 -393
  61. package/dist/stripe-method-presentation.d.ts +0 -115
  62. package/dist/telemetry-bridge.d.ts +0 -41
  63. package/dist/use-external-attempt-reconciliation.d.ts +0 -27
  64. package/dist/use-isomorphic-layout-effect.d.ts +0 -3
  65. package/dist/use-payment-method-layout.d.ts +0 -27
  66. package/dist/vault-card-fields.d.ts +0 -97
  67. package/dist/vault-theme.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,26 +1,8 @@
1
- export type { BeforeButtonClickEvent, CardFieldsEvent, CardFieldsFailedEvent, CardFieldsFailureReason, CardFieldsReadyEvent, CheckoutButtonMethod, DeclineEvent, FloInstrumentEvent, FloPayPaymentCancelEvent, InlineSessionDraft, InlineSessionPatch, PaymentMethodCountryRule, PaymentMethodGroup, PaymentMethodLayoutRules, SentryEventLike, SentryStackFrameLike, WalletPresentation, } from '@flopay/shared';
1
+ export type { CardFieldsEvent, CardFieldsFailedEvent, CardFieldsFailureReason, CardFieldsReadyEvent, DeclineEvent, FloInstrumentEvent, FloPayPaymentCancelEvent, PaymentMethodCountryRule, PaymentMethodGroup, PaymentMethodLayoutRules, SentryEventLike, SentryStackFrameLike, } from '@flopay/shared';
2
2
  export { dropThirdPartyOnlyError } from '@flopay/shared';
3
- export type { FloPayAutomaticPaymentButtonProps, FloPayAutomaticPaymentSuccessEvent, } from './automatic-payment-button.js';
4
- export { FloPayAutomaticPaymentButton } from './automatic-payment-button.js';
5
- export type { DirectPayPalButtonProps, DirectPayPalInitializationState, } from './direct-paypal-button.js';
6
- export { DirectPayPalButton } from './direct-paypal-button.js';
7
- export type { FloPayCardSetupCancelEvent, FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupProps, } from './flopay-card-setup.js';
8
- export { FloPayCardSetup, FloPayCardSetupError } from './flopay-card-setup.js';
9
- export type { FloPayCheckoutProps } from './flopay-checkout.js';
10
- export { FloPayCheckout } from './flopay-checkout.js';
11
- export type { FloPayPaymentMethodSetupCancelEvent, FloPayPaymentMethodSetupCompleteEvent, FloPayPaymentMethodSetupDeclineEvent, FloPayPaymentMethodSetupProps, } from './flopay-payment-method-setup-main.js';
12
- export { FloPayPaymentMethodSetup } from './flopay-payment-method-setup-main.js';
13
3
  export type { FloPayRuntimeCardSetupProps } from './flopay-runtime-card-setup.js';
14
4
  export { FloPayRuntimeCardSetup } from './flopay-runtime-card-setup.js';
15
- export type { FloPayRuntimeCheckoutProps } from './flopay-runtime-checkout.js';
16
- export { FloPayRuntimeCheckout } from './flopay-runtime-checkout.js';
17
5
  export type { FloPayRuntimePaymentMethodSetupProps } from './flopay-runtime-payment-method-setup.js';
18
6
  export { FloPayRuntimePaymentMethodSetup } from './flopay-runtime-payment-method-setup.js';
19
- export type { CheckoutState } from './hooks.js';
20
- export { useCheckout, useFloPay, usePayPalFloPay } from './hooks.js';
21
- export type { FloPayProviderProps } from './provider.js';
22
- export { FloPayProvider } from './provider.js';
23
- export type { SplitCardFormProps } from './split-card-form.js';
24
- export { SplitCardForm } from './split-card-form.js';
25
- export type { VaultCardFieldsProps } from './vault-card-fields.js';
26
- export { VaultCardFields } from './vault-card-fields.js';
7
+ export type { DirectPayPalButtonProps, FloPayAutomaticPaymentButtonProps, FloPayAutomaticPaymentSuccessEvent, FloPayCardSetupProps, FloPayCheckoutProps, FloPayCheckoutProps as FloPayRuntimeCheckoutProps, FloPayPaymentMethodSetupProps, FloPayProviderProps, HiddenPaymentMethod, SplitCardFormProps, VaultCardFieldsProps, } from './hosted-runtime-components.js';
8
+ export { DirectPayPalButton, FloPayAutomaticPaymentButton, FloPayCardSetup, FloPayCheckout, FloPayCheckout as FloPayRuntimeCheckout, FloPayPaymentMethodSetup, FloPayProvider, SplitCardForm, VaultCardFields, } from './hosted-runtime-components.js';