@selfcommunity/react-ui 0.11.0-alpha.67 → 0.11.0-alpha.69
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.
- package/lib/cjs/assets/checkout/general.d.ts +2 -0
- package/lib/cjs/assets/checkout/general.js +3 -0
- package/lib/cjs/assets/checkout/success.d.ts +2 -0
- package/lib/cjs/assets/checkout/success.js +3 -0
- package/lib/cjs/assets/custom/formazione.d.ts +2 -0
- package/lib/cjs/assets/custom/formazione.js +3 -0
- package/lib/cjs/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +20 -2
- package/lib/cjs/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.d.ts +61 -0
- package/lib/cjs/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +106 -0
- package/lib/cjs/components/AcceptRequestUserGroupButton/index.d.ts +3 -0
- package/lib/cjs/components/AcceptRequestUserGroupButton/index.js +5 -0
- package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/cjs/components/BuyButton/BuyButton.d.ts +73 -0
- package/lib/cjs/components/BuyButton/BuyButton.js +196 -0
- package/lib/cjs/components/BuyButton/index.d.ts +3 -0
- package/lib/cjs/components/BuyButton/index.js +5 -0
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -3
- package/lib/cjs/components/Category/Category.d.ts +5 -0
- package/lib/cjs/components/Category/Category.js +5 -5
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.d.ts +4 -0
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +32 -6
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +6 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +9 -2
- package/lib/cjs/components/Checkout/Checkout.d.ts +14 -0
- package/lib/cjs/components/Checkout/Checkout.js +131 -0
- package/lib/cjs/components/Checkout/CheckoutHeaderInfoWidget.d.ts +8 -0
- package/lib/cjs/components/Checkout/CheckoutHeaderInfoWidget.js +34 -0
- package/lib/cjs/components/Checkout/Skeleton.d.ts +21 -0
- package/lib/cjs/components/Checkout/Skeleton.js +87 -0
- package/lib/cjs/components/Checkout/constants.d.ts +1 -0
- package/lib/cjs/components/Checkout/constants.js +4 -0
- package/lib/cjs/components/Checkout/index.d.ts +3 -0
- package/lib/cjs/components/Checkout/index.js +5 -0
- package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +10 -0
- package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +171 -0
- package/lib/cjs/components/CheckoutReturnDialog/index.d.ts +3 -0
- package/lib/cjs/components/CheckoutReturnDialog/index.js +5 -0
- package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.d.ts +8 -0
- package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.js +69 -0
- package/lib/cjs/components/CommunityPaywalls/Skeleton.d.ts +27 -0
- package/lib/cjs/components/CommunityPaywalls/Skeleton.js +53 -0
- package/lib/cjs/components/CommunityPaywalls/constants.d.ts +1 -0
- package/lib/cjs/components/CommunityPaywalls/constants.js +4 -0
- package/lib/cjs/components/CommunityPaywalls/index.d.ts +4 -0
- package/lib/cjs/components/CommunityPaywalls/index.js +8 -0
- package/lib/cjs/components/Composer/Composer.d.ts +1 -0
- package/lib/cjs/components/Composer/Composer.js +82 -18
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +2 -2
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +2 -2
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +2 -2
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +20 -13
- package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +9 -0
- package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +61 -0
- package/lib/cjs/components/Composer/Layer/ScheduledLayer/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Layer/ScheduledLayer/index.js +5 -0
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -1
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +6 -0
- package/lib/cjs/components/Course/Course.d.ts +5 -0
- package/lib/cjs/components/Course/Course.js +3 -3
- package/lib/cjs/components/CourseDashboard/Header.d.ts +2 -2
- package/lib/cjs/components/CourseDashboard/Header.js +8 -1
- package/lib/cjs/components/CourseDashboard/Student.d.ts +2 -2
- package/lib/cjs/components/CourseDashboard/Student.js +15 -4
- package/lib/cjs/components/CourseForm/CourseForm.d.ts +5 -0
- package/lib/cjs/components/CourseForm/CourseForm.js +36 -5
- package/lib/cjs/components/CourseJoinButton/CourseJoinButton.d.ts +1 -6
- package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +9 -7
- package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +1 -1
- package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +10 -0
- package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.js +144 -0
- package/lib/cjs/components/CreatePaymentProductForm/constants.d.ts +1 -0
- package/lib/cjs/components/CreatePaymentProductForm/constants.js +4 -0
- package/lib/cjs/components/CreatePaymentProductForm/index.d.ts +3 -0
- package/lib/cjs/components/CreatePaymentProductForm/index.js +5 -0
- package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -0
- package/lib/cjs/components/Editor/Editor.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/ImageNode.js +6 -6
- package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +1 -1
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/cjs/components/Event/Event.d.ts +5 -0
- package/lib/cjs/components/Event/Event.js +2 -2
- package/lib/cjs/components/EventForm/EventForm.js +47 -16
- package/lib/cjs/components/EventForm/types.d.ts +8 -5
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +7 -1
- package/lib/cjs/components/EventHeader/EventHeader.js +12 -3
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +27 -4
- package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +11 -2
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +23 -13
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +18 -7
- package/lib/cjs/components/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +2 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +16 -6
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +1 -1
- package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/cjs/components/Group/Group.d.ts +6 -1
- package/lib/cjs/components/Group/Group.js +3 -3
- package/lib/cjs/components/GroupForm/GroupForm.js +37 -7
- package/lib/cjs/components/GroupHeader/GroupHeader.js +10 -2
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +3 -1
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.d.ts +7 -2
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +6 -4
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +4 -2
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.d.ts +3 -8
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +30 -8
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +3 -2
- package/lib/cjs/components/LiveStreamForm/types.d.ts +3 -3
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
- package/lib/cjs/components/LiveStreamRoom/types.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +1 -0
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +42 -4
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +6 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +36 -5
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +8 -3
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +1 -1
- package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +6 -0
- package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.js +40 -0
- package/lib/cjs/components/PaymentDetailDialog/index.d.ts +3 -0
- package/lib/cjs/components/PaymentDetailDialog/index.js +5 -0
- package/lib/cjs/components/PaymentOrder/PaymentOrder.d.ts +10 -0
- package/lib/cjs/components/PaymentOrder/PaymentOrder.js +80 -0
- package/lib/cjs/components/PaymentOrder/Skeleton.d.ts +30 -0
- package/lib/cjs/components/PaymentOrder/Skeleton.js +61 -0
- package/lib/cjs/components/PaymentOrder/constants.d.ts +1 -0
- package/lib/cjs/components/PaymentOrder/constants.js +4 -0
- package/lib/cjs/components/PaymentOrder/index.d.ts +3 -0
- package/lib/cjs/components/PaymentOrder/index.js +5 -0
- package/lib/cjs/components/PaymentOrderPdfButton/PaymentOrderPdfButton.d.ts +52 -0
- package/lib/cjs/components/PaymentOrderPdfButton/PaymentOrderPdfButton.js +74 -0
- package/lib/cjs/components/PaymentOrderPdfButton/index.d.ts +3 -0
- package/lib/cjs/components/PaymentOrderPdfButton/index.js +5 -0
- package/lib/cjs/components/PaymentOrders/PaymentOrders.d.ts +17 -0
- package/lib/cjs/components/PaymentOrders/PaymentOrders.js +264 -0
- package/lib/cjs/components/PaymentOrders/index.d.ts +3 -0
- package/lib/cjs/components/PaymentOrders/index.js +5 -0
- package/lib/cjs/components/PaymentProduct/PaymentProduct.d.ts +18 -0
- package/lib/cjs/components/PaymentProduct/PaymentProduct.js +48 -0
- package/lib/cjs/components/PaymentProduct/Skeleton.d.ts +25 -0
- package/lib/cjs/components/PaymentProduct/Skeleton.js +55 -0
- package/lib/cjs/components/PaymentProduct/constants.d.ts +1 -0
- package/lib/cjs/components/PaymentProduct/constants.js +4 -0
- package/lib/cjs/components/PaymentProduct/index.d.ts +3 -0
- package/lib/cjs/components/PaymentProduct/index.js +5 -0
- package/lib/cjs/components/PaymentProductPrice/PaymentProductPrice.d.ts +15 -0
- package/lib/cjs/components/PaymentProductPrice/PaymentProductPrice.js +61 -0
- package/lib/cjs/components/PaymentProductPrice/Skeleton.d.ts +21 -0
- package/lib/cjs/components/PaymentProductPrice/Skeleton.js +46 -0
- package/lib/cjs/components/PaymentProductPrice/constants.d.ts +1 -0
- package/lib/cjs/components/PaymentProductPrice/constants.js +4 -0
- package/lib/cjs/components/PaymentProductPrice/index.d.ts +3 -0
- package/lib/cjs/components/PaymentProductPrice/index.js +5 -0
- package/lib/cjs/components/PaymentProducts/PaymentProducts.d.ts +11 -0
- package/lib/cjs/components/PaymentProducts/PaymentProducts.js +76 -0
- package/lib/cjs/components/PaymentProducts/Skeleton.d.ts +21 -0
- package/lib/cjs/components/PaymentProducts/Skeleton.js +46 -0
- package/lib/cjs/components/PaymentProducts/constants.d.ts +1 -0
- package/lib/cjs/components/PaymentProducts/constants.js +4 -0
- package/lib/cjs/components/PaymentProducts/index.d.ts +3 -0
- package/lib/cjs/components/PaymentProducts/index.js +5 -0
- package/lib/cjs/components/Paywalls/Paywalls.d.ts +10 -0
- package/lib/cjs/components/Paywalls/Paywalls.js +94 -0
- package/lib/cjs/components/Paywalls/Skeleton.d.ts +21 -0
- package/lib/cjs/components/Paywalls/Skeleton.js +46 -0
- package/lib/cjs/components/Paywalls/constants.d.ts +1 -0
- package/lib/cjs/components/Paywalls/constants.js +4 -0
- package/lib/cjs/components/Paywalls/index.d.ts +3 -0
- package/lib/cjs/components/Paywalls/index.js +5 -0
- package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +13 -0
- package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.js +252 -0
- package/lib/cjs/components/PaywallsConfigurator/Skeleton.d.ts +21 -0
- package/lib/cjs/components/PaywallsConfigurator/Skeleton.js +46 -0
- package/lib/cjs/components/PaywallsConfigurator/constants.d.ts +5 -0
- package/lib/cjs/components/PaywallsConfigurator/constants.js +9 -0
- package/lib/cjs/components/PaywallsConfigurator/index.d.ts +4 -0
- package/lib/cjs/components/PaywallsConfigurator/index.js +8 -0
- package/lib/cjs/components/PaywallsDialog/PaywallsDialog.d.ts +8 -0
- package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +43 -0
- package/lib/cjs/components/PaywallsDialog/index.d.ts +3 -0
- package/lib/cjs/components/PaywallsDialog/index.js +5 -0
- package/lib/cjs/components/PdfPreview/PdfPreview.d.ts +8 -0
- package/lib/cjs/components/PdfPreview/PdfPreview.js +94 -0
- package/lib/cjs/components/PdfPreview/Skeleton.d.ts +5 -0
- package/lib/cjs/components/PdfPreview/Skeleton.js +38 -0
- package/lib/cjs/components/PdfPreview/index.d.ts +3 -0
- package/lib/cjs/components/PdfPreview/index.js +5 -0
- package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +11 -0
- package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.js +63 -0
- package/lib/cjs/components/PdfPreviewDialog/index.d.ts +3 -0
- package/lib/cjs/components/PdfPreviewDialog/index.js +5 -0
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +2 -1
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +4 -4
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +2 -10
- package/lib/cjs/components/UserAddPaymentMethodDialog/UserAddPaymentMethodDialog.d.ts +41 -0
- package/lib/cjs/components/UserAddPaymentMethodDialog/UserAddPaymentMethodDialog.js +94 -0
- package/lib/cjs/components/UserAddPaymentMethodDialog/constants.d.ts +1 -0
- package/lib/cjs/components/UserAddPaymentMethodDialog/constants.js +4 -0
- package/lib/cjs/components/UserAddPaymentMethodDialog/index.d.ts +3 -0
- package/lib/cjs/components/UserAddPaymentMethodDialog/index.js +5 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.d.ts +40 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +143 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/constants.d.ts +1 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/constants.js +4 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/index.d.ts +3 -0
- package/lib/cjs/components/UserAddPaymentMethodForm/index.js +5 -0
- package/lib/cjs/components/UserBillingInfo/Skeleton.d.ts +25 -0
- package/lib/cjs/components/UserBillingInfo/Skeleton.js +12 -0
- package/lib/cjs/components/UserBillingInfo/UserBillingInfo.d.ts +35 -0
- package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +492 -0
- package/lib/cjs/components/UserBillingInfo/constants.d.ts +1 -0
- package/lib/cjs/components/UserBillingInfo/constants.js +4 -0
- package/lib/cjs/components/UserBillingInfo/index.d.ts +4 -0
- package/lib/cjs/components/UserBillingInfo/index.js +8 -0
- package/lib/cjs/components/UserBillingInfo/reducer.d.ts +77 -0
- package/lib/cjs/components/UserBillingInfo/reducer.js +96 -0
- package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.d.ts +44 -0
- package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +85 -0
- package/lib/cjs/components/UserChangeAddressDialog/constants.d.ts +1 -0
- package/lib/cjs/components/UserChangeAddressDialog/constants.js +4 -0
- package/lib/cjs/components/UserChangeAddressDialog/index.d.ts +3 -0
- package/lib/cjs/components/UserChangeAddressDialog/index.js +5 -0
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +6 -6
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -5
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +8 -5
- package/lib/cjs/components/UserCounters/UserCounters.js +20 -17
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +9 -6
- package/lib/cjs/components/UserPaymentMethods/Skeleton.d.ts +15 -0
- package/lib/cjs/components/UserPaymentMethods/Skeleton.js +49 -0
- package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.d.ts +19 -0
- package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +338 -0
- package/lib/cjs/components/UserPaymentMethods/constants.d.ts +1 -0
- package/lib/cjs/components/UserPaymentMethods/constants.js +4 -0
- package/lib/cjs/components/UserPaymentMethods/index.d.ts +4 -0
- package/lib/cjs/components/UserPaymentMethods/index.js +8 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/Skeleton.d.ts +22 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/Skeleton.js +37 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/UserPaymentMethodsPortal.d.ts +44 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/UserPaymentMethodsPortal.js +103 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/constants.d.ts +1 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/constants.js +4 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/index.d.ts +4 -0
- package/lib/cjs/components/UserPaymentMethodsPortal/index.js +8 -0
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +7 -5
- package/lib/cjs/constants/Billing.d.ts +10 -0
- package/lib/cjs/constants/Billing.js +60 -0
- package/lib/cjs/constants/ContributionsActionsMenu.d.ts +1 -0
- package/lib/cjs/constants/ContributionsActionsMenu.js +2 -1
- package/lib/cjs/constants/Country.d.ts +5 -0
- package/lib/cjs/constants/Country.js +271 -0
- package/lib/cjs/constants/DefaultDrawerContent.d.ts +1 -0
- package/lib/cjs/constants/DefaultDrawerContent.js +4 -0
- package/lib/cjs/constants/Payments.d.ts +4 -0
- package/lib/cjs/constants/Payments.js +7 -0
- package/lib/cjs/index.d.ts +23 -1
- package/lib/cjs/index.js +54 -2
- package/lib/cjs/shared/AutoPlayer/index.d.ts +0 -5
- package/lib/cjs/shared/AutoPlayer/index.js +5 -4
- package/lib/cjs/shared/ContributionActionsMenu/index.d.ts +4 -0
- package/lib/cjs/shared/ContributionActionsMenu/index.js +56 -5
- package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.d.ts +1 -1
- package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.js +3 -1
- package/lib/cjs/shared/HiddenPurchasableContent/HiddenPurchasableContent.d.ts +44 -0
- package/lib/cjs/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +53 -0
- package/lib/cjs/shared/HiddenPurchasableContent/index.d.ts +3 -0
- package/lib/cjs/shared/HiddenPurchasableContent/index.js +5 -0
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.d.ts +2 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.js +58 -32
- package/lib/cjs/shared/Media/File/DocComponent.d.ts +10 -0
- package/lib/cjs/shared/Media/File/DocComponent.js +34 -0
- package/lib/cjs/shared/Media/File/PreviewComponent.d.ts +2 -2
- package/lib/cjs/shared/Media/File/PreviewComponent.js +15 -17
- package/lib/cjs/shared/Media/File/TriggerButton.js +14 -1
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/File/filter.d.ts +2 -2
- package/lib/cjs/shared/Media/File/filter.js +5 -1
- package/lib/cjs/shared/Media/File/index.js +2 -2
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
- package/lib/cjs/shared/Tags/index.js +7 -3
- package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/cjs/types/composer.d.ts +1 -1
- package/lib/cjs/types/index.d.ts +2 -1
- package/lib/cjs/types/index.js +5 -1
- package/lib/cjs/types/payment.d.ts +25 -0
- package/lib/cjs/types/payment.js +29 -0
- package/lib/cjs/utils/address.d.ts +10 -0
- package/lib/cjs/utils/address.js +24 -0
- package/lib/cjs/utils/checkout.d.ts +2 -0
- package/lib/cjs/utils/checkout.js +23 -0
- package/lib/cjs/utils/payment.d.ts +17 -0
- package/lib/cjs/utils/payment.js +69 -0
- package/lib/esm/assets/checkout/general.d.ts +2 -0
- package/lib/esm/assets/checkout/general.js +1 -0
- package/lib/esm/assets/checkout/success.d.ts +2 -0
- package/lib/esm/assets/checkout/success.js +1 -0
- package/lib/esm/assets/custom/formazione.d.ts +2 -0
- package/lib/esm/assets/custom/formazione.js +1 -0
- package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +20 -2
- package/lib/esm/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.d.ts +61 -0
- package/lib/esm/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +103 -0
- package/lib/esm/components/AcceptRequestUserGroupButton/index.d.ts +3 -0
- package/lib/esm/components/AcceptRequestUserGroupButton/index.js +2 -0
- package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/esm/components/BuyButton/BuyButton.d.ts +73 -0
- package/lib/esm/components/BuyButton/BuyButton.js +193 -0
- package/lib/esm/components/BuyButton/index.d.ts +3 -0
- package/lib/esm/components/BuyButton/index.js +2 -0
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +6 -4
- package/lib/esm/components/Category/Category.d.ts +5 -0
- package/lib/esm/components/Category/Category.js +5 -5
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.d.ts +4 -0
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +34 -8
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +7 -2
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +9 -2
- package/lib/esm/components/Checkout/Checkout.d.ts +14 -0
- package/lib/esm/components/Checkout/Checkout.js +128 -0
- package/lib/esm/components/Checkout/CheckoutHeaderInfoWidget.d.ts +8 -0
- package/lib/esm/components/Checkout/CheckoutHeaderInfoWidget.js +30 -0
- package/lib/esm/components/Checkout/Skeleton.d.ts +21 -0
- package/lib/esm/components/Checkout/Skeleton.js +84 -0
- package/lib/esm/components/Checkout/constants.d.ts +1 -0
- package/lib/esm/components/Checkout/constants.js +1 -0
- package/lib/esm/components/Checkout/index.d.ts +3 -0
- package/lib/esm/components/Checkout/index.js +2 -0
- package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +10 -0
- package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +168 -0
- package/lib/esm/components/CheckoutReturnDialog/index.d.ts +3 -0
- package/lib/esm/components/CheckoutReturnDialog/index.js +2 -0
- package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.d.ts +8 -0
- package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.js +66 -0
- package/lib/esm/components/CommunityPaywalls/Skeleton.d.ts +27 -0
- package/lib/esm/components/CommunityPaywalls/Skeleton.js +50 -0
- package/lib/esm/components/CommunityPaywalls/constants.d.ts +1 -0
- package/lib/esm/components/CommunityPaywalls/constants.js +1 -0
- package/lib/esm/components/CommunityPaywalls/index.d.ts +4 -0
- package/lib/esm/components/CommunityPaywalls/index.js +4 -0
- package/lib/esm/components/Composer/Composer.d.ts +1 -0
- package/lib/esm/components/Composer/Composer.js +82 -18
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +2 -2
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +2 -2
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +2 -2
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +20 -13
- package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +9 -0
- package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +59 -0
- package/lib/esm/components/Composer/Layer/ScheduledLayer/index.d.ts +3 -0
- package/lib/esm/components/Composer/Layer/ScheduledLayer/index.js +2 -0
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -1
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +6 -0
- package/lib/esm/components/Course/Course.d.ts +5 -0
- package/lib/esm/components/Course/Course.js +3 -3
- package/lib/esm/components/CourseDashboard/Header.d.ts +2 -2
- package/lib/esm/components/CourseDashboard/Header.js +10 -3
- package/lib/esm/components/CourseDashboard/Student.d.ts +2 -2
- package/lib/esm/components/CourseDashboard/Student.js +19 -8
- package/lib/esm/components/CourseForm/CourseForm.d.ts +5 -0
- package/lib/esm/components/CourseForm/CourseForm.js +38 -7
- package/lib/esm/components/CourseJoinButton/CourseJoinButton.d.ts +1 -6
- package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +9 -7
- package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +1 -1
- package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +10 -0
- package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.js +141 -0
- package/lib/esm/components/CreatePaymentProductForm/constants.d.ts +1 -0
- package/lib/esm/components/CreatePaymentProductForm/constants.js +1 -0
- package/lib/esm/components/CreatePaymentProductForm/index.d.ts +3 -0
- package/lib/esm/components/CreatePaymentProductForm/index.js +2 -0
- package/lib/esm/components/EditEventButton/EditEventButton.js +1 -0
- package/lib/esm/components/Editor/Editor.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/ImageNode.js +6 -6
- package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +1 -1
- package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/esm/components/Event/Event.d.ts +5 -0
- package/lib/esm/components/Event/Event.js +2 -2
- package/lib/esm/components/EventForm/EventForm.js +49 -18
- package/lib/esm/components/EventForm/types.d.ts +8 -5
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +7 -1
- package/lib/esm/components/EventHeader/EventHeader.js +14 -5
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +28 -5
- package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +1 -1
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +11 -2
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +14 -4
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +20 -9
- package/lib/esm/components/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +2 -1
- package/lib/esm/components/FeedObject/FeedObject.js +17 -7
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +1 -1
- package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/esm/components/Group/Group.d.ts +6 -1
- package/lib/esm/components/Group/Group.js +3 -3
- package/lib/esm/components/GroupForm/GroupForm.js +39 -9
- package/lib/esm/components/GroupHeader/GroupHeader.js +12 -4
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +3 -1
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.d.ts +7 -2
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +6 -4
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +6 -4
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.d.ts +3 -8
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +32 -10
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +3 -2
- package/lib/esm/components/LiveStreamForm/types.d.ts +3 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
- package/lib/esm/components/LiveStreamRoom/types.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +1 -0
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +44 -6
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +6 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +37 -6
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +8 -3
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +1 -1
- package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +6 -0
- package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.js +37 -0
- package/lib/esm/components/PaymentDetailDialog/index.d.ts +3 -0
- package/lib/esm/components/PaymentDetailDialog/index.js +2 -0
- package/lib/esm/components/PaymentOrder/PaymentOrder.d.ts +10 -0
- package/lib/esm/components/PaymentOrder/PaymentOrder.js +77 -0
- package/lib/esm/components/PaymentOrder/Skeleton.d.ts +30 -0
- package/lib/esm/components/PaymentOrder/Skeleton.js +58 -0
- package/lib/esm/components/PaymentOrder/constants.d.ts +1 -0
- package/lib/esm/components/PaymentOrder/constants.js +1 -0
- package/lib/esm/components/PaymentOrder/index.d.ts +3 -0
- package/lib/esm/components/PaymentOrder/index.js +2 -0
- package/lib/esm/components/PaymentOrderPdfButton/PaymentOrderPdfButton.d.ts +52 -0
- package/lib/esm/components/PaymentOrderPdfButton/PaymentOrderPdfButton.js +71 -0
- package/lib/esm/components/PaymentOrderPdfButton/index.d.ts +3 -0
- package/lib/esm/components/PaymentOrderPdfButton/index.js +2 -0
- package/lib/esm/components/PaymentOrders/PaymentOrders.d.ts +17 -0
- package/lib/esm/components/PaymentOrders/PaymentOrders.js +261 -0
- package/lib/esm/components/PaymentOrders/index.d.ts +3 -0
- package/lib/esm/components/PaymentOrders/index.js +2 -0
- package/lib/esm/components/PaymentProduct/PaymentProduct.d.ts +18 -0
- package/lib/esm/components/PaymentProduct/PaymentProduct.js +45 -0
- package/lib/esm/components/PaymentProduct/Skeleton.d.ts +25 -0
- package/lib/esm/components/PaymentProduct/Skeleton.js +52 -0
- package/lib/esm/components/PaymentProduct/constants.d.ts +1 -0
- package/lib/esm/components/PaymentProduct/constants.js +1 -0
- package/lib/esm/components/PaymentProduct/index.d.ts +3 -0
- package/lib/esm/components/PaymentProduct/index.js +2 -0
- package/lib/esm/components/PaymentProductPrice/PaymentProductPrice.d.ts +15 -0
- package/lib/esm/components/PaymentProductPrice/PaymentProductPrice.js +58 -0
- package/lib/esm/components/PaymentProductPrice/Skeleton.d.ts +21 -0
- package/lib/esm/components/PaymentProductPrice/Skeleton.js +42 -0
- package/lib/esm/components/PaymentProductPrice/constants.d.ts +1 -0
- package/lib/esm/components/PaymentProductPrice/constants.js +1 -0
- package/lib/esm/components/PaymentProductPrice/index.d.ts +3 -0
- package/lib/esm/components/PaymentProductPrice/index.js +2 -0
- package/lib/esm/components/PaymentProducts/PaymentProducts.d.ts +11 -0
- package/lib/esm/components/PaymentProducts/PaymentProducts.js +73 -0
- package/lib/esm/components/PaymentProducts/Skeleton.d.ts +21 -0
- package/lib/esm/components/PaymentProducts/Skeleton.js +43 -0
- package/lib/esm/components/PaymentProducts/constants.d.ts +1 -0
- package/lib/esm/components/PaymentProducts/constants.js +1 -0
- package/lib/esm/components/PaymentProducts/index.d.ts +3 -0
- package/lib/esm/components/PaymentProducts/index.js +2 -0
- package/lib/esm/components/Paywalls/Paywalls.d.ts +10 -0
- package/lib/esm/components/Paywalls/Paywalls.js +91 -0
- package/lib/esm/components/Paywalls/Skeleton.d.ts +21 -0
- package/lib/esm/components/Paywalls/Skeleton.js +43 -0
- package/lib/esm/components/Paywalls/constants.d.ts +1 -0
- package/lib/esm/components/Paywalls/constants.js +1 -0
- package/lib/esm/components/Paywalls/index.d.ts +3 -0
- package/lib/esm/components/Paywalls/index.js +2 -0
- package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +13 -0
- package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.js +249 -0
- package/lib/esm/components/PaywallsConfigurator/Skeleton.d.ts +21 -0
- package/lib/esm/components/PaywallsConfigurator/Skeleton.js +43 -0
- package/lib/esm/components/PaywallsConfigurator/constants.d.ts +5 -0
- package/lib/esm/components/PaywallsConfigurator/constants.js +6 -0
- package/lib/esm/components/PaywallsConfigurator/index.d.ts +4 -0
- package/lib/esm/components/PaywallsConfigurator/index.js +4 -0
- package/lib/esm/components/PaywallsDialog/PaywallsDialog.d.ts +8 -0
- package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +40 -0
- package/lib/esm/components/PaywallsDialog/index.d.ts +3 -0
- package/lib/esm/components/PaywallsDialog/index.js +2 -0
- package/lib/esm/components/PdfPreview/PdfPreview.d.ts +8 -0
- package/lib/esm/components/PdfPreview/PdfPreview.js +90 -0
- package/lib/esm/components/PdfPreview/Skeleton.d.ts +5 -0
- package/lib/esm/components/PdfPreview/Skeleton.js +35 -0
- package/lib/esm/components/PdfPreview/index.d.ts +3 -0
- package/lib/esm/components/PdfPreview/index.js +2 -0
- package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +11 -0
- package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.js +60 -0
- package/lib/esm/components/PdfPreviewDialog/index.d.ts +3 -0
- package/lib/esm/components/PdfPreviewDialog/index.js +2 -0
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -3
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +4 -4
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +2 -10
- package/lib/esm/components/UserAddPaymentMethodDialog/UserAddPaymentMethodDialog.d.ts +41 -0
- package/lib/esm/components/UserAddPaymentMethodDialog/UserAddPaymentMethodDialog.js +91 -0
- package/lib/esm/components/UserAddPaymentMethodDialog/constants.d.ts +1 -0
- package/lib/esm/components/UserAddPaymentMethodDialog/constants.js +1 -0
- package/lib/esm/components/UserAddPaymentMethodDialog/index.d.ts +3 -0
- package/lib/esm/components/UserAddPaymentMethodDialog/index.js +2 -0
- package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.d.ts +40 -0
- package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +140 -0
- package/lib/esm/components/UserAddPaymentMethodForm/constants.d.ts +1 -0
- package/lib/esm/components/UserAddPaymentMethodForm/constants.js +1 -0
- package/lib/esm/components/UserAddPaymentMethodForm/index.d.ts +3 -0
- package/lib/esm/components/UserAddPaymentMethodForm/index.js +2 -0
- package/lib/esm/components/UserBillingInfo/Skeleton.d.ts +25 -0
- package/lib/esm/components/UserBillingInfo/Skeleton.js +9 -0
- package/lib/esm/components/UserBillingInfo/UserBillingInfo.d.ts +35 -0
- package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +490 -0
- package/lib/esm/components/UserBillingInfo/constants.d.ts +1 -0
- package/lib/esm/components/UserBillingInfo/constants.js +1 -0
- package/lib/esm/components/UserBillingInfo/index.d.ts +4 -0
- package/lib/esm/components/UserBillingInfo/index.js +4 -0
- package/lib/esm/components/UserBillingInfo/reducer.d.ts +77 -0
- package/lib/esm/components/UserBillingInfo/reducer.js +91 -0
- package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.d.ts +44 -0
- package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +82 -0
- package/lib/esm/components/UserChangeAddressDialog/constants.d.ts +1 -0
- package/lib/esm/components/UserChangeAddressDialog/constants.js +1 -0
- package/lib/esm/components/UserChangeAddressDialog/index.d.ts +3 -0
- package/lib/esm/components/UserChangeAddressDialog/index.js +2 -0
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +6 -6
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -5
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +8 -5
- package/lib/esm/components/UserCounters/UserCounters.js +20 -17
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +11 -8
- package/lib/esm/components/UserPaymentMethods/Skeleton.d.ts +15 -0
- package/lib/esm/components/UserPaymentMethods/Skeleton.js +47 -0
- package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.d.ts +19 -0
- package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +336 -0
- package/lib/esm/components/UserPaymentMethods/constants.d.ts +1 -0
- package/lib/esm/components/UserPaymentMethods/constants.js +1 -0
- package/lib/esm/components/UserPaymentMethods/index.d.ts +4 -0
- package/lib/esm/components/UserPaymentMethods/index.js +4 -0
- package/lib/esm/components/UserPaymentMethodsPortal/Skeleton.d.ts +22 -0
- package/lib/esm/components/UserPaymentMethodsPortal/Skeleton.js +35 -0
- package/lib/esm/components/UserPaymentMethodsPortal/UserPaymentMethodsPortal.d.ts +44 -0
- package/lib/esm/components/UserPaymentMethodsPortal/UserPaymentMethodsPortal.js +100 -0
- package/lib/esm/components/UserPaymentMethodsPortal/constants.d.ts +1 -0
- package/lib/esm/components/UserPaymentMethodsPortal/constants.js +1 -0
- package/lib/esm/components/UserPaymentMethodsPortal/index.d.ts +4 -0
- package/lib/esm/components/UserPaymentMethodsPortal/index.js +4 -0
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +7 -5
- package/lib/esm/constants/Billing.d.ts +10 -0
- package/lib/esm/constants/Billing.js +57 -0
- package/lib/esm/constants/ContributionsActionsMenu.d.ts +1 -0
- package/lib/esm/constants/ContributionsActionsMenu.js +1 -0
- package/lib/esm/constants/Country.d.ts +5 -0
- package/lib/esm/constants/Country.js +268 -0
- package/lib/esm/constants/DefaultDrawerContent.d.ts +1 -0
- package/lib/esm/constants/DefaultDrawerContent.js +1 -0
- package/lib/esm/constants/Payments.d.ts +4 -0
- package/lib/esm/constants/Payments.js +4 -0
- package/lib/esm/index.d.ts +23 -1
- package/lib/esm/index.js +23 -1
- package/lib/esm/shared/AutoPlayer/index.d.ts +0 -5
- package/lib/esm/shared/AutoPlayer/index.js +5 -4
- package/lib/esm/shared/ContributionActionsMenu/index.d.ts +4 -0
- package/lib/esm/shared/ContributionActionsMenu/index.js +58 -7
- package/lib/esm/shared/CourseUsersTable/CourseUsersTable.d.ts +1 -1
- package/lib/esm/shared/CourseUsersTable/SeeProgressButton.js +5 -3
- package/lib/esm/shared/HiddenPurchasableContent/HiddenPurchasableContent.d.ts +44 -0
- package/lib/esm/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +50 -0
- package/lib/esm/shared/HiddenPurchasableContent/index.d.ts +3 -0
- package/lib/esm/shared/HiddenPurchasableContent/index.js +2 -0
- package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.d.ts +2 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +60 -33
- package/lib/esm/shared/Media/File/DocComponent.d.ts +10 -0
- package/lib/esm/shared/Media/File/DocComponent.js +31 -0
- package/lib/esm/shared/Media/File/PreviewComponent.d.ts +2 -2
- package/lib/esm/shared/Media/File/PreviewComponent.js +17 -19
- package/lib/esm/shared/Media/File/TriggerButton.js +14 -1
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/File/filter.d.ts +2 -2
- package/lib/esm/shared/Media/File/filter.js +2 -1
- package/lib/esm/shared/Media/File/index.js +2 -2
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/esm/shared/StickyBox/index.d.ts +4 -4
- package/lib/esm/shared/Tags/index.js +7 -3
- package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/esm/types/composer.d.ts +1 -1
- package/lib/esm/types/index.d.ts +2 -1
- package/lib/esm/types/index.js +2 -1
- package/lib/esm/types/payment.d.ts +25 -0
- package/lib/esm/types/payment.js +26 -0
- package/lib/esm/utils/address.d.ts +10 -0
- package/lib/esm/utils/address.js +19 -0
- package/lib/esm/utils/checkout.d.ts +2 -0
- package/lib/esm/utils/checkout.js +19 -0
- package/lib/esm/utils/payment.d.ts +17 -0
- package/lib/esm/utils/payment.js +62 -0
- package/lib/umd/{c473ce30406a3dad83e1.eot → 30b299174b4fa1fb9ce8.eot} +0 -0
- package/lib/umd/362.js +2 -0
- package/lib/umd/{ba74e493633796d551d1.ttf → 3b49304a98beb1239bc7.ttf} +0 -0
- package/lib/umd/ab247f43e550f5f6d0f8.woff2 +0 -0
- package/lib/umd/assets/icons.svg +75 -69
- package/lib/umd/{b6dbec3d5816ff8baef1.woff → ce10db0c87e7112cb315.woff} +0 -0
- package/lib/umd/react-ui.js +1 -1
- package/package.json +15 -8
- package/lib/umd/578.js +0 -2
- package/lib/umd/60a7fdeaadfe844bc015.woff2 +0 -0
- /package/lib/umd/{578.js.LICENSE.txt → 362.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
import { __awaiter, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, Fragment, useEffect, useImperativeHandle, useReducer, useRef, useState } from 'react';
|
|
4
|
+
import { Autocomplete, Box, Button, Checkbox, FormControlLabel, FormGroup, Grid, Icon, InputAdornment, TextField, Tooltip, Typography, styled } from '@mui/material';
|
|
5
|
+
import { camelCase } from '@selfcommunity/utils';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import { useThemeProps } from '@mui/system';
|
|
8
|
+
import { PREFIX } from './constants';
|
|
9
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
10
|
+
import { UserBillingInfoMode, VAT_EXAMPLE } from '../../constants/Billing';
|
|
11
|
+
import { reducer, getInitialState, actionTypes } from './reducer';
|
|
12
|
+
import { countries, COUNTRY_CODES } from '../../constants/Country';
|
|
13
|
+
import UserBillingInfoSkeleton from './Skeleton';
|
|
14
|
+
import Grow from '@mui/material/Grow';
|
|
15
|
+
import { LoadingButton } from '@mui/lab';
|
|
16
|
+
import { useSnackbar } from 'notistack';
|
|
17
|
+
// import {getCountryOption} from '../../utils/address';
|
|
18
|
+
import { useSCPaymentsEnabled, useSCUser } from '@selfcommunity/react-core';
|
|
19
|
+
const classes = {
|
|
20
|
+
root: `${PREFIX}-root`,
|
|
21
|
+
label: `${PREFIX}-label`,
|
|
22
|
+
textBox: `${PREFIX}-textbox`,
|
|
23
|
+
error: `${PREFIX}-error`
|
|
24
|
+
};
|
|
25
|
+
const Root = styled(Box, {
|
|
26
|
+
name: PREFIX,
|
|
27
|
+
slot: 'Root'
|
|
28
|
+
})(({ theme }) => ({
|
|
29
|
+
[`& .${classes.label}`]: {
|
|
30
|
+
fontSize: '18px',
|
|
31
|
+
color: 'rgb(48, 49, 61)'
|
|
32
|
+
},
|
|
33
|
+
[`& .${classes.error}`]: {
|
|
34
|
+
color: theme.palette.secondary.main
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
/**
|
|
38
|
+
* > API documentation for the Community-JS UserBillingInfo. Learn about the available props and the CSS API.
|
|
39
|
+
|
|
40
|
+
#### Import
|
|
41
|
+
|
|
42
|
+
```jsx
|
|
43
|
+
import {UserBillingInfo} from '@selfcommunity/react-ui';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Component Name
|
|
47
|
+
|
|
48
|
+
The name `SCUserBillingInfo` can be used when providing style overrides in the theme.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
#### CSS
|
|
52
|
+
|
|
53
|
+
|Rule Name|Global class|Description|
|
|
54
|
+
|---|---|---|
|
|
55
|
+
|root|.SCUserBillingInfo-root|Styles applied to the root element.|
|
|
56
|
+
|
|
57
|
+
* @param inProps
|
|
58
|
+
* @param ref
|
|
59
|
+
*/
|
|
60
|
+
const UserBillingInfo = (inProps, ref) => {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
// PROPS
|
|
63
|
+
const props = useThemeProps({
|
|
64
|
+
props: inProps,
|
|
65
|
+
name: PREFIX
|
|
66
|
+
});
|
|
67
|
+
const { id = PREFIX, className, buttonLabel = _jsx(FormattedMessage, { id: "ui.userBillingInfo.save", defaultMessage: "ui.userBillingInfo.save" }), mode = UserBillingInfoMode.EDIT, onLoad, onSave, onError, inlineDisplay = false, onChange, onBack, onChangeViewMode, disableButtons = false } = props, rest = __rest(props, ["id", "className", "buttonLabel", "mode", "onLoad", "onSave", "onError", "inlineDisplay", "onChange", "onBack", "onChangeViewMode", "disableButtons"]);
|
|
68
|
+
// CONTEXT
|
|
69
|
+
const scUserContext = useSCUser();
|
|
70
|
+
// STATE
|
|
71
|
+
const [state, dispatch] = useReducer(reducer, getInitialState({ mode }));
|
|
72
|
+
const [customer, setCustomer] = useState();
|
|
73
|
+
// HOOKS
|
|
74
|
+
const { isPaymentsEnabled } = useSCPaymentsEnabled();
|
|
75
|
+
const { enqueueSnackbar } = useSnackbar();
|
|
76
|
+
const intl = useIntl();
|
|
77
|
+
// REFS
|
|
78
|
+
const componentRef = useRef(null);
|
|
79
|
+
const getStripeAccountData = () => {
|
|
80
|
+
var _a;
|
|
81
|
+
const _state = { name: '', address: {}, phone: '', metadata: {} };
|
|
82
|
+
_state.name = (state.name || '').trim();
|
|
83
|
+
_state.phone = (state.phone || '').trim();
|
|
84
|
+
_state.address.city = (state.address_city || '').trim();
|
|
85
|
+
_state.address.country = (((_a = state.address_country) === null || _a === void 0 ? void 0 : _a.code) || '').trim();
|
|
86
|
+
_state.address.line1 = (state.address_line1 || '').trim();
|
|
87
|
+
_state.address.line2 = (state.address_line2 || '').trim();
|
|
88
|
+
_state.address.postal_code = (state.address_postal_code || '').trim();
|
|
89
|
+
_state.address.state = (state.address_state || '').trim();
|
|
90
|
+
_state.metadata.tax_code = (state.tax_code ? state.tax_code : '').trim();
|
|
91
|
+
_state.metadata.pec = (state.pec && state.isBusiness ? state.pec : '').trim();
|
|
92
|
+
_state.metadata.sdi = (state.sdi && state.isBusiness ? state.sdi : '').trim();
|
|
93
|
+
return _state;
|
|
94
|
+
};
|
|
95
|
+
const getAccountData = () => {
|
|
96
|
+
const _state = {};
|
|
97
|
+
_state.name = (state.name || '').trim();
|
|
98
|
+
_state.phone = (state.phone || '').trim();
|
|
99
|
+
_state.address_city = (state.address_city || '').trim();
|
|
100
|
+
_state.address_country = state.address_country;
|
|
101
|
+
_state.address_line1 = (state.address_line1 || '').trim();
|
|
102
|
+
_state.address_line2 = (state.address_line2 || '').trim();
|
|
103
|
+
_state.address_postal_code = (state.address_postal_code || '').trim();
|
|
104
|
+
_state.address_state = (state.address_state || '').trim();
|
|
105
|
+
_state.tax_code = (state.tax_code || '').trim();
|
|
106
|
+
_state.tax_id_data = state.tax_id_data;
|
|
107
|
+
_state.pec = (state.pec || '').trim();
|
|
108
|
+
_state.sdi = (state.sdi || '').trim();
|
|
109
|
+
return _state;
|
|
110
|
+
};
|
|
111
|
+
const isCustomerCompleted = (displayErrors = true, account = state) => {
|
|
112
|
+
var _a;
|
|
113
|
+
let _completed = true;
|
|
114
|
+
const _errors = {
|
|
115
|
+
nameError: '',
|
|
116
|
+
addressLine1Error: '',
|
|
117
|
+
addressPostalCodeError: '',
|
|
118
|
+
addressCityError: '',
|
|
119
|
+
addressStateError: '',
|
|
120
|
+
addressCountryError: '',
|
|
121
|
+
taxCodeError: '',
|
|
122
|
+
taxIdDataError: '',
|
|
123
|
+
error: ''
|
|
124
|
+
};
|
|
125
|
+
_completed = Boolean(account.name &&
|
|
126
|
+
account.address_line1 &&
|
|
127
|
+
account.address_postal_code &&
|
|
128
|
+
account.address_city &&
|
|
129
|
+
account.address_state &&
|
|
130
|
+
account.address_country &&
|
|
131
|
+
account.tax_code);
|
|
132
|
+
if (!_completed) {
|
|
133
|
+
if (!account.name) {
|
|
134
|
+
_errors[`nameError`] = intl.formatMessage({
|
|
135
|
+
id: 'component.billingInfo.error',
|
|
136
|
+
defaultMessage: 'component.billingInfo.error'
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
if (!account.address_line1) {
|
|
140
|
+
_errors[`addressLine1Error`] = intl.formatMessage({
|
|
141
|
+
id: 'component.billingInfo.error',
|
|
142
|
+
defaultMessage: 'component.billingInfo.error'
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
if (!account.address_postal_code) {
|
|
146
|
+
_errors[`addressPostalCodeError`] = intl.formatMessage({
|
|
147
|
+
id: 'component.billingInfo.error',
|
|
148
|
+
defaultMessage: 'component.billingInfo.error'
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
if (!account.address_city) {
|
|
152
|
+
_errors[`addressCityError`] = intl.formatMessage({
|
|
153
|
+
id: 'component.billingInfo.error',
|
|
154
|
+
defaultMessage: 'component.billingInfo.error'
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if (!account.address_state) {
|
|
158
|
+
_errors[`addressStateError`] = intl.formatMessage({
|
|
159
|
+
id: 'component.billingInfo.error',
|
|
160
|
+
defaultMessage: 'component.billingInfo.error'
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
if (!account.address_country) {
|
|
164
|
+
_errors[`addressCountryError`] = intl.formatMessage({
|
|
165
|
+
id: 'component.billingInfo.error',
|
|
166
|
+
defaultMessage: 'component.billingInfo.error'
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
if (!account.tax_code && !account.isBusiness) {
|
|
170
|
+
_errors[`taxCodeError`] = intl.formatMessage({
|
|
171
|
+
id: 'component.billingInfo.error',
|
|
172
|
+
defaultMessage: 'component.billingInfo.error'
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (account.isBusiness) {
|
|
177
|
+
if (!account.tax_id_data || !account.tax_id_data.value) {
|
|
178
|
+
_errors[`taxIdDataError`] = intl.formatMessage({
|
|
179
|
+
id: 'component.billingInfo.error',
|
|
180
|
+
defaultMessage: 'component.billingInfo.error'
|
|
181
|
+
});
|
|
182
|
+
_completed = false;
|
|
183
|
+
}
|
|
184
|
+
if (((_a = account.address_country) === null || _a === void 0 ? void 0 : _a.code) === COUNTRY_CODES.IT && !account.sdi && !account.pec) {
|
|
185
|
+
_errors[`sdiError`] = intl.formatMessage({
|
|
186
|
+
id: 'component.billingInfo.sdiPecError',
|
|
187
|
+
defaultMessage: 'component.billingInfo.sdiPecError'
|
|
188
|
+
});
|
|
189
|
+
_errors[`pecError`] = intl.formatMessage({
|
|
190
|
+
id: 'component.billingInfo.sdiPecError',
|
|
191
|
+
defaultMessage: 'component.billingInfo.sdiPecError'
|
|
192
|
+
});
|
|
193
|
+
_completed = false;
|
|
194
|
+
}
|
|
195
|
+
if (account.pec && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(account.pec)) {
|
|
196
|
+
_errors[`pecError`] = intl.formatMessage({
|
|
197
|
+
id: 'component.billingInfo.pecError',
|
|
198
|
+
defaultMessage: 'component.billingInfo.pecError'
|
|
199
|
+
});
|
|
200
|
+
_completed = false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (!_completed && displayErrors) {
|
|
204
|
+
dispatch({
|
|
205
|
+
type: actionTypes.SET_ERRORS,
|
|
206
|
+
payload: Object.assign(Object.assign({}, _errors), {
|
|
207
|
+
error: intl.formatMessage({
|
|
208
|
+
id: 'component.billingInfo.errors',
|
|
209
|
+
defaultMessage: 'component.billingInfo.errors'
|
|
210
|
+
})
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
dispatch({ type: actionTypes.RESET_ERRORS });
|
|
216
|
+
}
|
|
217
|
+
return _completed;
|
|
218
|
+
};
|
|
219
|
+
const handleSaveAddress = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
221
|
+
// @ts-ignore
|
|
222
|
+
return yield updateCustomerAddress(customer.id, getStripeAccountData());
|
|
223
|
+
});
|
|
224
|
+
const handleSaveTaxId = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
225
|
+
/* if (!state.isBusiness && state.initialData.isBusiness && state.tax_id_data && state.tax_id_data.id) {
|
|
226
|
+
return deleteCustomerTaxId(state.tax_id_data.id).then((response) => {
|
|
227
|
+
if (!response.error) {
|
|
228
|
+
dispatch({type: actionTypes.SET_DATA, payload: {tax_id_data: null, taxIdVerificationStatus: null}});
|
|
229
|
+
}
|
|
230
|
+
return Promise.resolve(response);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
if (state.isBusiness && state.tax_id_data && state.tax_id_data.value && state.address_country) {
|
|
234
|
+
if (state.tax_id_data && state.tax_id_data.id) {
|
|
235
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
return deleteCustomerTaxId(state.tax_id_data.id).then((response) => {
|
|
238
|
+
if (response.error || (response.taxId && !response.taxId.deleted)) {
|
|
239
|
+
return Promise.resolve(response);
|
|
240
|
+
}
|
|
241
|
+
// Reset taxId and verification
|
|
242
|
+
dispatch({type: actionTypes.SET_DATA, payload: {tax_id_data: null, taxIdVerificationStatus: null}});
|
|
243
|
+
return createCustomerTaxId({
|
|
244
|
+
type: state.address_country.taxType,
|
|
245
|
+
value: state.tax_id_data.value
|
|
246
|
+
}).then((res) => {
|
|
247
|
+
if (res) {
|
|
248
|
+
console.log(res);
|
|
249
|
+
dispatch({
|
|
250
|
+
type: actionTypes.SET_DATA,
|
|
251
|
+
payload: {
|
|
252
|
+
tax_id_data: res.taxId,
|
|
253
|
+
taxIdVerificationStatus: res.taxId?.verification?.status
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
return Promise.resolve(res);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return createCustomerTaxId({
|
|
263
|
+
type: state.address_country.taxType,
|
|
264
|
+
value: state.tax_id_data.value
|
|
265
|
+
}).then((res) => {
|
|
266
|
+
dispatch({
|
|
267
|
+
type: actionTypes.SET_DATA,
|
|
268
|
+
payload: {tax_id_data: res.taxId, taxIdVerificationStatus: res.taxId?.verification?.status}
|
|
269
|
+
});
|
|
270
|
+
return res;
|
|
271
|
+
});
|
|
272
|
+
} */
|
|
273
|
+
return Promise.resolve(() => ({}));
|
|
274
|
+
});
|
|
275
|
+
const handleChange = (name) => {
|
|
276
|
+
return function (event, value) {
|
|
277
|
+
let _value = event.target.value;
|
|
278
|
+
if (name === 'address_country') {
|
|
279
|
+
_value = value !== null && value !== void 0 ? value : null;
|
|
280
|
+
}
|
|
281
|
+
if (name === 'tax_id_data') {
|
|
282
|
+
_value = Object.assign(Object.assign({}, state.tax_id_data), { value: event.target.value });
|
|
283
|
+
}
|
|
284
|
+
const newState = { [`${name}`]: _value, [`${camelCase(name)}Error`]: null };
|
|
285
|
+
if (name === 'tax_id_data') {
|
|
286
|
+
newState.taxIdVerificationStatus = null;
|
|
287
|
+
}
|
|
288
|
+
dispatch({ type: actionTypes.SET_DATA, payload: newState });
|
|
289
|
+
if (onChange) {
|
|
290
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
291
|
+
// @ts-ignore
|
|
292
|
+
const account = getAccountData();
|
|
293
|
+
onChange(account);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
const handleSubmit = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
298
|
+
dispatch({ type: actionTypes.RESET_ERRORS });
|
|
299
|
+
if (!state.isProcessing && isCustomerCompleted()) {
|
|
300
|
+
dispatch({ type: actionTypes.PROCESSING, payload: { isProcessing: true } });
|
|
301
|
+
const customer = yield handleSaveAddress();
|
|
302
|
+
if (!customer.error) {
|
|
303
|
+
dispatch({
|
|
304
|
+
type: actionTypes.SET_INITIAL_DATA,
|
|
305
|
+
payload: { initial_data: getAccountData(), initial_data_completed: true }
|
|
306
|
+
});
|
|
307
|
+
const taxId = yield handleSaveTaxId();
|
|
308
|
+
if (taxId.error) {
|
|
309
|
+
console.log(taxId);
|
|
310
|
+
onError && onError(taxId.error);
|
|
311
|
+
dispatch({
|
|
312
|
+
type: actionTypes.SET_ERRORS,
|
|
313
|
+
payload: {
|
|
314
|
+
taxIdDataError: intl.formatMessage({
|
|
315
|
+
id: 'component.billingInfo.vatError',
|
|
316
|
+
defaultMessage: 'component.billingInfo.vatError'
|
|
317
|
+
})
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "pwa.common.error", defaultMessage: "pwa.common.error" }), {
|
|
321
|
+
variant: 'error',
|
|
322
|
+
autoHideDuration: 3000
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "pwa.common.success", defaultMessage: "pwa.common.success" }), {
|
|
327
|
+
variant: 'success',
|
|
328
|
+
autoHideDuration: 3000
|
|
329
|
+
});
|
|
330
|
+
if (onSave) {
|
|
331
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
332
|
+
// @ts-ignore
|
|
333
|
+
const account = getAccountData(state);
|
|
334
|
+
if (mode) {
|
|
335
|
+
dispatch({ type: actionTypes.SET_MODE, payload: { mode } });
|
|
336
|
+
}
|
|
337
|
+
onSave(account);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
dispatch({ type: actionTypes.PROCESSING, payload: { isProcessing: false } });
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
console.log(customer.error);
|
|
344
|
+
onError && onError(customer.error);
|
|
345
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "pwa.common.error", defaultMessage: "pwa.common.error" }), {
|
|
346
|
+
variant: 'error',
|
|
347
|
+
autoHideDuration: 3000
|
|
348
|
+
});
|
|
349
|
+
dispatch({ type: actionTypes.PROCESSING, payload: { isProcessing: false } });
|
|
350
|
+
}
|
|
351
|
+
dispatch({ type: actionTypes.PROCESSING, payload: { isProcessing: false } });
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
const handleSetBusiness = (event) => {
|
|
355
|
+
dispatch({ type: actionTypes.SET_DATA, payload: { isBusiness: event.target.checked } });
|
|
356
|
+
};
|
|
357
|
+
const handleBack = () => {
|
|
358
|
+
dispatch({ type: actionTypes.RESET_DATA });
|
|
359
|
+
dispatch({ type: actionTypes.RESET_ERRORS });
|
|
360
|
+
handleChangeViewMode();
|
|
361
|
+
onBack && onBack();
|
|
362
|
+
};
|
|
363
|
+
const handleChangeViewMode = () => {
|
|
364
|
+
const _mode = state.mode === UserBillingInfoMode.READ ? UserBillingInfoMode.EDIT : UserBillingInfoMode.READ;
|
|
365
|
+
dispatch({ type: actionTypes.SET_MODE, payload: { mode: _mode } });
|
|
366
|
+
onChangeViewMode && onChangeViewMode(_mode);
|
|
367
|
+
};
|
|
368
|
+
useEffect(() => {
|
|
369
|
+
if (state.isLoading) {
|
|
370
|
+
/* getCustomer()
|
|
371
|
+
.then((resCustomer) => {
|
|
372
|
+
getAllCustomerTaxIds().then((resTaxIds) => {
|
|
373
|
+
setCustomer(resCustomer.customer);
|
|
374
|
+
const payload = {
|
|
375
|
+
isLoading: false,
|
|
376
|
+
name: resCustomer.customer.name,
|
|
377
|
+
phone: resCustomer.customer.phone,
|
|
378
|
+
...(resCustomer.customer.address &&
|
|
379
|
+
resCustomer.customer.address.line1 !== undefined && {
|
|
380
|
+
address_line1: resCustomer.customer.address.line1
|
|
381
|
+
}),
|
|
382
|
+
...(resCustomer.customer.address &&
|
|
383
|
+
resCustomer.customer.address.line2 !== undefined && {
|
|
384
|
+
address_line2: resCustomer.customer.address.line2
|
|
385
|
+
}),
|
|
386
|
+
...(resCustomer.customer.address &&
|
|
387
|
+
resCustomer.customer.address.postal_code !== undefined && {
|
|
388
|
+
address_postal_code: resCustomer.customer.address.postal_code
|
|
389
|
+
}),
|
|
390
|
+
...(resCustomer.customer.address &&
|
|
391
|
+
resCustomer.customer.address.city !== undefined && {address_city: resCustomer.customer.address.city}),
|
|
392
|
+
...(resCustomer.customer.address &&
|
|
393
|
+
resCustomer.customer.address.state !== undefined && {
|
|
394
|
+
address_state: resCustomer.customer.address.state
|
|
395
|
+
}),
|
|
396
|
+
...(resCustomer.customer.address &&
|
|
397
|
+
resCustomer.customer.address.country !== undefined && {
|
|
398
|
+
address_country: getCountryOption(resCustomer.customer.address.country)
|
|
399
|
+
}),
|
|
400
|
+
...(resCustomer.customer.metadata.tax_code && {tax_code: resCustomer.customer.metadata.tax_code}),
|
|
401
|
+
...(resCustomer.customer.metadata.sdi && {sdi: resCustomer.customer.metadata.sdi}),
|
|
402
|
+
...(resCustomer.customer.metadata.pec && {pec: resCustomer.customer.metadata.pec}),
|
|
403
|
+
isBusiness: false
|
|
404
|
+
};
|
|
405
|
+
if (resTaxIds.taxIds && resTaxIds.taxIds.data.length > 0) {
|
|
406
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
407
|
+
// @ts-ignore
|
|
408
|
+
payload['tax_id_data'] = resTaxIds.taxIds.data[0];
|
|
409
|
+
payload['isBusiness'] = Boolean(resTaxIds.taxIds.data[0].value);
|
|
410
|
+
payload['taxIdVerificationStatus'] = resTaxIds.taxIds.data[0].verification?.status;
|
|
411
|
+
}
|
|
412
|
+
const _completed = isCustomerCompleted(false, payload);
|
|
413
|
+
payload['mode'] = _completed ? mode : UserBillingInfoMode.EDIT;
|
|
414
|
+
dispatch({
|
|
415
|
+
type: actionTypes.SET_INITIAL_DATA,
|
|
416
|
+
payload: {initial_data: payload, initial_data_completed: _completed}
|
|
417
|
+
});
|
|
418
|
+
dispatch({type: actionTypes.SET_DATA, payload});
|
|
419
|
+
onLoad && onLoad(getAccountData(), _completed);
|
|
420
|
+
});
|
|
421
|
+
})
|
|
422
|
+
.catch((e) => {
|
|
423
|
+
enqueueSnackbar(<FormattedMessage id="pwa.common.error" defaultMessage="pwa.common.error" />, {
|
|
424
|
+
variant: 'error',
|
|
425
|
+
autoHideDuration: 3000
|
|
426
|
+
});
|
|
427
|
+
}); */
|
|
428
|
+
}
|
|
429
|
+
}, []);
|
|
430
|
+
useEffect(() => {
|
|
431
|
+
dispatch({ type: actionTypes.SET_MODE, payload: { mode } });
|
|
432
|
+
}, [mode]);
|
|
433
|
+
useImperativeHandle(ref, () => ({
|
|
434
|
+
isBillingInfoCompleted: () => {
|
|
435
|
+
return isCustomerCompleted();
|
|
436
|
+
},
|
|
437
|
+
showError: (error) => {
|
|
438
|
+
dispatch({ type: actionTypes.SET_ERRORS, payload: { error } });
|
|
439
|
+
},
|
|
440
|
+
billingMode: () => {
|
|
441
|
+
return state.mode;
|
|
442
|
+
}
|
|
443
|
+
}));
|
|
444
|
+
if (!isPaymentsEnabled || !scUserContext.user) {
|
|
445
|
+
return null;
|
|
446
|
+
}
|
|
447
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className), id: id }, rest, { ref: componentRef }, { children: _jsx(Fragment, { children: state.isLoading ? (_jsx(UserBillingInfoSkeleton, { mode: mode })) : (_jsx(Fragment, { children: state.mode === UserBillingInfoMode.READ ? (_jsxs(_Fragment, { children: [state.name ? (_jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ variant: 'body1' }, { children: state.name })), _jsxs(Typography, Object.assign({ variant: 'body1' }, { children: [state.address_line1, _jsx("br", {}), state.address_line2] })), _jsxs(Typography, Object.assign({ variant: 'body1' }, { children: [state.address_postal_code, " - ", state.address_city, " - ", state.address_country && state.address_country.label] })), Boolean(state.tax_code && !state.isBusiness) && _jsx(Typography, Object.assign({ variant: 'body1' }, { children: state.tax_code })), state.isBusiness && (_jsxs(_Fragment, { children: [state.tax_id_data && _jsxs(Typography, Object.assign({ variant: 'body1' }, { children: ["VAT: ", state.tax_id_data.value] })), state.sdi && _jsxs(Typography, Object.assign({ variant: 'body1' }, { children: ["SDI: ", state.sdi] })), state.pec && _jsxs(Typography, Object.assign({ variant: 'body1' }, { children: ["PEC: ", state.pec] }))] }))] })) : (_jsx(Typography, Object.assign({ variant: 'body1' }, { children: _jsx(FormattedMessage, { id: "ui.userBillingInfo.noInfo", defaultMessage: "ui.userBillingInfo.noInfo" }) }))), state.initialDataCompleted && (_jsx(Button, Object.assign({ sx: { mt: 1 }, variant: 'contained', size: 'small', disabled: Boolean(disableButtons), onClick: handleChangeViewMode }, { children: _jsx(FormattedMessage, { id: "component.CheckoutForm.billingInfoChangeButton", defaultMessage: "component.CheckoutForm.billingInfoChangeButton" }) })))] })) : (_jsx(Box, { children: _jsxs(Grid, Object.assign({ container: true, spacing: 3 }, { children: [_jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "name", name: "name", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.name", defaultMessage: "ui.userBillingInfo.name" }), onChange: handleChange('name'), value: state.name, error: Boolean(state.nameError), helperText: state.nameError, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "address_line1", name: "address_line1", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.address1", defaultMessage: "ui.userBillingInfo.address1" }), onChange: handleChange('address_line1'), value: state.address_line1, error: Boolean(state.addressLine1Error), helperText: state.addressLine1Error, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "address_line2", name: "address_line2", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.address2", defaultMessage: "ui.userBillingInfo.address2" }), onChange: handleChange('address_line2'), value: state.address_line2, error: Boolean(state.addressLine2Error), helperText: state.addressLine2Error, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(Autocomplete, { id: "country-select-demo", options: countries, value: state.address_country, fullWidth: true, onChange: handleChange('address_country'), getOptionLabel: (option) => option.label, renderOption: (props, option) => {
|
|
448
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
449
|
+
// @ts-ignore
|
|
450
|
+
const { key } = props, rest = __rest(props, ["key"]);
|
|
451
|
+
return (_jsxs(Box, Object.assign({ component: "li", sx: { '& > img': { mr: 2, flexShrink: 0 } } }, rest, { children: [_jsx("img", { loading: "lazy", width: "20", srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`, src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`, alt: "" }), option.label, " (", option.code, ")"] }), key));
|
|
452
|
+
}, renderInput: (params) => (_jsx(TextField, Object.assign({}, params, { label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.country", defaultMessage: "ui.userBillingInfo.country" }), fullWidth: true, id: "address_country", name: "address_country", error: Boolean(state.addressCountryError), InputProps: Object.assign(Object.assign({}, params.InputProps), (state.address_country && {
|
|
453
|
+
startAdornment: (_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx("img", { loading: "lazy", width: "20", srcSet: `https://flagcdn.com/w40/${state.address_country.code.toLowerCase()}.png 2x`, src: `https://flagcdn.com/w20/${state.address_country.code.toLowerCase()}.png`, alt: "" }) })))
|
|
454
|
+
})), inputProps: Object.assign(Object.assign({}, params.inputProps), { autoComplete: 'new-password' // disable autocomplete and autofill
|
|
455
|
+
}) }))) }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "address_state", name: "address_state", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.state", defaultMessage: "ui.userBillingInfo.state" }), onChange: handleChange('address_state'), value: state.address_state, error: Boolean(state.addressStateError), helperText: state.addressStateError, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "address_postal_code", name: "address_postal_code", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.postalCode", defaultMessage: "ui.userBillingInfo.postalCode" }), onChange: handleChange('address_postal_code'), value: state.address_postal_code, error: Boolean(state.addressPostalCodeError), helperText: state.addressPostalCodeError, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "address_city", name: "address_city", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.city", defaultMessage: "ui.userBillingInfo.city" }), onChange: handleChange('address_city'), value: state.address_city, error: Boolean(state.addressCityError), helperText: state.addressCityError, InputProps: {
|
|
456
|
+
startAdornment: (_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx(Icon, { children: "public" }) })))
|
|
457
|
+
}, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "phone", name: "phone", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.phone", defaultMessage: "ui.userBillingInfo.phone" }), onChange: handleChange('phone'), value: state.phone, error: Boolean(state.phoneError), helperText: state.phoneError, InputProps: {
|
|
458
|
+
startAdornment: (_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx(Icon, { children: "person" }) })))
|
|
459
|
+
}, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "tax_code", name: "tax_code", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.taxCode", defaultMessage: "ui.userBillingInfo.taxCode" }), onChange: handleChange('tax_code'), value: state.tax_code, error: Boolean(state.taxCodeError), helperText: state.taxCodeError, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12 }, { children: _jsx(FormGroup, { children: _jsx(FormControlLabel, { disabled: Boolean(disableButtons), control: _jsx(Checkbox, Object.assign({ checked: state.isBusiness }, ((state.taxIdDataError || state.sdiError || state.pecError) && { color: 'secondary' }), { className: classNames({
|
|
460
|
+
[classes.error]: state.taxIdDataError || state.sdiError || state.pecError
|
|
461
|
+
}), onChange: handleSetBusiness })), label: _jsx("span", Object.assign({ className: classNames({
|
|
462
|
+
[classes.error]: state.taxIdDataError || state.sdiError || state.pecError
|
|
463
|
+
}) }, { children: intl.formatMessage({
|
|
464
|
+
id: 'component.billingInfo.accountBusiness',
|
|
465
|
+
defaultMessage: 'component.billingInfo.accountBusiness'
|
|
466
|
+
}) })) }) }) })), state.isBusiness && (_jsx(Grow, Object.assign({ in: state.isBusiness }, { children: _jsx(Grid, Object.assign({ item: true, xs: 12 }, { children: _jsxs(Grid, Object.assign({ container: true, spacing: 3 }, { children: [_jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "tax_id_data", name: "tax_id_data", label: _jsx(FormattedMessage, { id: "ui.userBillingInfo.taxId", defaultMessage: "ui.userBillingInfo.taxId" }), onChange: handleChange('tax_id_data'), value: state.tax_id_data ? state.tax_id_data.value : null, error: Boolean(state.taxIdDataError), helperText: `${state.taxIdDataError ? state.taxIdDataError : ''} ${state.address_country && state.address_country.code && VAT_EXAMPLE[state.address_country.code]
|
|
467
|
+
? intl.formatMessage({
|
|
468
|
+
id: 'component.billingInfo.requiredFormat',
|
|
469
|
+
defaultMessage: 'component.billingInfo.requiredFormat'
|
|
470
|
+
}) + VAT_EXAMPLE[state.address_country.code]
|
|
471
|
+
: ''}`, placeholder: state.address_country && state.address_country.code && VAT_EXAMPLE[state.address_country.code]
|
|
472
|
+
? VAT_EXAMPLE[state.address_country.code]
|
|
473
|
+
: '', InputProps: {
|
|
474
|
+
endAdornment: state.taxIdVerificationStatus !== null && (_jsx(InputAdornment, Object.assign({ position: "end" }, { children: state.taxIdVerificationStatus === 'verified' ? (_jsx(Icon, Object.assign({ color: "primary" }, { children: "done" }))) : state.taxIdVerificationStatus === 'pending' ? (_jsx(Tooltip, Object.assign({ id: "tooltip-warning", title: _jsx(FormattedMessage, { id: "ui.userBillingInfo.taxCheckPending", defaultMessage: "ui.userBillingInfo.taxCheckPending" }), enterDelay: 300, leaveDelay: 300, placement: "top" }, { children: _jsx(Icon, Object.assign({ color: "warning" }, { children: "help" })) }))) : (_jsx(Tooltip, Object.assign({ id: "tooltip-warning", title: _jsx(FormattedMessage, { id: "ui.userBillingInfo.taxCheckWarning", defaultMessage: "ui.userBillingInfo.taxCheckWarning" }), enterDelay: 300, leaveDelay: 300, placement: "top" }, { children: _jsx(Icon, Object.assign({ color: "warning" }, { children: "help" })) }))) })))
|
|
475
|
+
}, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "sdi", name: "sdi", label: `${intl.formatMessage({ id: 'component.billingInfo.sdi', defaultMessage: 'component.billingInfo.sdi' })} ${((_a = state.address_country) === null || _a === void 0 ? void 0 : _a.code) === COUNTRY_CODES.IT
|
|
476
|
+
? intl.formatMessage({
|
|
477
|
+
id: 'component.billingInfo.field.optional',
|
|
478
|
+
defaultMessage: 'component.billingInfo.field.optional'
|
|
479
|
+
})
|
|
480
|
+
: ''}`, onChange: handleChange('sdi'), value: state.sdi, error: Boolean(state.sdiError), helperText: state.sdiError, fullWidth: true }) })), _jsx(Grid, Object.assign({ item: true, xs: 12, sm: inlineDisplay ? 12 : 6 }, { children: _jsx(TextField, { variant: "outlined", id: "pec", name: "pec", label: `${intl.formatMessage({ id: 'component.billingInfo.pec', defaultMessage: 'component.billingInfo.pec' })} ${((_b = state.address_country) === null || _b === void 0 ? void 0 : _b.code) === COUNTRY_CODES.IT
|
|
481
|
+
? intl.formatMessage({
|
|
482
|
+
id: 'component.billingInfo.field.optional',
|
|
483
|
+
defaultMessage: 'component.billingInfo.field.optional'
|
|
484
|
+
})
|
|
485
|
+
: ''}`, onChange: handleChange('pec'), value: state.pec, error: Boolean(state.pecError), helperText: state.pecError, InputProps: {
|
|
486
|
+
type: 'email',
|
|
487
|
+
startAdornment: (_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx(Icon, { children: "email" }) })))
|
|
488
|
+
}, fullWidth: true }) }))] })) })) }))), state.error && (_jsx(Grid, Object.assign({ item: true, xs: 12 }, { children: _jsx(Typography, Object.assign({ align: "left", color: "secondary" }, { children: state.error })) }))), _jsx(Grid, Object.assign({ item: true, xs: 12 }, { children: _jsxs(Typography, Object.assign({ align: "left" }, { children: [_jsx(LoadingButton, Object.assign({ variant: "contained", size: "small", color: "primary", disabled: state.isProcessing || Boolean(disableButtons), loading: state.isProcessing, onClick: handleSubmit }, { children: buttonLabel })), onBack && state.initialDataCompleted && (_jsx(Button, Object.assign({ variant: "text", size: "small", onClick: handleBack, disabled: Boolean(disableButtons) }, { children: _jsx(FormattedMessage, { id: "ui.userBillingInfo.back", defaultMessage: "ui.userBillingInfo.back" }) })))] })) }))] })) })) })) }) })));
|
|
489
|
+
};
|
|
490
|
+
export default forwardRef(UserBillingInfo);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCUserBillingInfo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCUserBillingInfo';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const actionTypes: {
|
|
2
|
+
LOADING: string;
|
|
3
|
+
SET_MODE: string;
|
|
4
|
+
SET_DATA: string;
|
|
5
|
+
RESET_DATA: string;
|
|
6
|
+
SET_ERRORS: string;
|
|
7
|
+
SET_INITIAL_DATA: string;
|
|
8
|
+
RESET_ERRORS: string;
|
|
9
|
+
PROCESSING: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const initialState: {
|
|
12
|
+
initialData: any;
|
|
13
|
+
initialDataCompleted: boolean;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
isProcessing: boolean;
|
|
16
|
+
isBusiness: boolean;
|
|
17
|
+
mode: any;
|
|
18
|
+
name: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
address_line1: string;
|
|
21
|
+
address_line2: string;
|
|
22
|
+
address_postal_code: string;
|
|
23
|
+
address_city: string;
|
|
24
|
+
address_state: string;
|
|
25
|
+
address_country: any;
|
|
26
|
+
tax_code: string;
|
|
27
|
+
tax_id_data: any;
|
|
28
|
+
sdi: string;
|
|
29
|
+
pec: string;
|
|
30
|
+
error: any;
|
|
31
|
+
nameError: any;
|
|
32
|
+
addressLine1Error: any;
|
|
33
|
+
addressLine2Error: any;
|
|
34
|
+
addressPostalCodeError: any;
|
|
35
|
+
addressCityError: any;
|
|
36
|
+
addressStateError: any;
|
|
37
|
+
addressCountryError: any;
|
|
38
|
+
taxCodeError: any;
|
|
39
|
+
taxIdDataError: any;
|
|
40
|
+
sdiError: any;
|
|
41
|
+
pecError: any;
|
|
42
|
+
taxIdVerificationStatus: any;
|
|
43
|
+
};
|
|
44
|
+
export declare function getInitialState(data?: {}): {
|
|
45
|
+
initialData: {};
|
|
46
|
+
initialDataCompleted: boolean;
|
|
47
|
+
isLoading: boolean;
|
|
48
|
+
isProcessing: boolean;
|
|
49
|
+
isBusiness: boolean;
|
|
50
|
+
mode: any;
|
|
51
|
+
name: string;
|
|
52
|
+
phone: string;
|
|
53
|
+
address_line1: string;
|
|
54
|
+
address_line2: string;
|
|
55
|
+
address_postal_code: string;
|
|
56
|
+
address_city: string;
|
|
57
|
+
address_state: string;
|
|
58
|
+
address_country: any;
|
|
59
|
+
tax_code: string;
|
|
60
|
+
tax_id_data: any;
|
|
61
|
+
sdi: string;
|
|
62
|
+
pec: string;
|
|
63
|
+
error: any;
|
|
64
|
+
nameError: any;
|
|
65
|
+
addressLine1Error: any;
|
|
66
|
+
addressLine2Error: any;
|
|
67
|
+
addressPostalCodeError: any;
|
|
68
|
+
addressCityError: any;
|
|
69
|
+
addressStateError: any;
|
|
70
|
+
addressCountryError: any;
|
|
71
|
+
taxCodeError: any;
|
|
72
|
+
taxIdDataError: any;
|
|
73
|
+
sdiError: any;
|
|
74
|
+
pecError: any;
|
|
75
|
+
taxIdVerificationStatus: any;
|
|
76
|
+
};
|
|
77
|
+
export declare function reducer(state: any, action: any): any;
|