From 987688471efaee014e6396b8039707b6f8c79bd4 Mon Sep 17 00:00:00 2001 From: cedvdb Date: Sat, 9 Nov 2024 18:47:38 +0100 Subject: [PATCH] add web exports (#1957) * add web exports * readd missing import --------- Co-authored-by: cedvandenbosch --- packages/stripe_web/lib/flutter_stripe_web.dart | 1 - packages/stripe_web/lib/src/widgets/payment_element.dart | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/stripe_web/lib/flutter_stripe_web.dart b/packages/stripe_web/lib/flutter_stripe_web.dart index e975c0cc..7a85ebd8 100644 --- a/packages/stripe_web/lib/flutter_stripe_web.dart +++ b/packages/stripe_web/lib/flutter_stripe_web.dart @@ -9,4 +9,3 @@ export 'src/widgets/card_field.dart' hide WebStripeCardState; export 'src/widgets/express_checkout_element.dart' hide ExpressCheckoutElementState; export 'src/widgets/payment_element.dart' hide PaymentElementState; -export 'src/widgets/payment_element.dart'; diff --git a/packages/stripe_web/lib/src/widgets/payment_element.dart b/packages/stripe_web/lib/src/widgets/payment_element.dart index eddbb6c2..21bfb07c 100644 --- a/packages/stripe_web/lib/src/widgets/payment_element.dart +++ b/packages/stripe_web/lib/src/widgets/payment_element.dart @@ -10,7 +10,14 @@ import 'package:web/web.dart' as web; import '../../flutter_stripe_web.dart'; export 'package:stripe_js/stripe_api.dart' - show PaymentElementLayout, ElementAppearance, ElementTheme; + show + PaymentElementLayout, + ElementAppearance, + ElementTheme, + ElementAppearanceLabels; + +// TODO: should not use src of other package +export 'package:stripe_js/src/api/elements/payment_element_options.dart'; typedef PaymentElementTheme = js.ElementTheme;