@redneckz/wildless-cms-uni-blocks 0.14.680 → 0.14.682
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/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +157 -159
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/bundle/external/locationNavigator.d.ts +11 -0
- package/bundle/index.d.ts +3 -3
- package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/bundle/utils/adjustSrc.d.ts +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.js +2 -2
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.js +9 -4
- package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -4
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -4
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +1 -1
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/Video.js +1 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/external/handlerDecorator.js.map +1 -0
- package/dist/external/locationNavigator.d.ts +11 -0
- package/dist/external/locationNavigator.js +21 -0
- package/dist/external/locationNavigator.js.map +1 -0
- package/dist/external/useRouter.js.map +1 -0
- package/dist/hooks/useActiveRoute.js +1 -1
- package/dist/hooks/useActiveRoute.js.map +1 -1
- package/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/dist/hooks/useClickHandler.js +1 -1
- package/dist/hooks/useClickHandler.js.map +1 -1
- package/dist/hooks/useLink.js +2 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/setup-fixture.js +2 -2
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/useButton.js +1 -1
- package/dist/ui-kit/Button/useButton.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +1 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/dist/utils/adjustSrc.d.ts +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.js +2 -2
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.js +9 -4
- package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -4
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -4
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/lib/components/TabsLayout/TabsLayout.js +1 -1
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/Video.js +1 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/external/handlerDecorator.js.map +1 -0
- package/lib/external/locationNavigator.d.ts +11 -0
- package/lib/external/locationNavigator.js +18 -0
- package/lib/external/locationNavigator.js.map +1 -0
- package/lib/external/useRouter.js.map +1 -0
- package/lib/hooks/useActiveRoute.js +1 -1
- package/lib/hooks/useActiveRoute.js.map +1 -1
- package/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/lib/hooks/useClickHandler.js +1 -1
- package/lib/hooks/useClickHandler.js.map +1 -1
- package/lib/hooks/useLink.js +2 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/setup-fixture.js +2 -2
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/useButton.js +1 -1
- package/lib/ui-kit/Button/useButton.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +1 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/lib/utils/adjustSrc.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +141 -130
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/bundle/external/locationNavigator.d.ts +11 -0
- package/mobile/bundle/index.d.ts +3 -3
- package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/bundle/utils/adjustSrc.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +2 -2
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +9 -4
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -4
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -4
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/Video.js +1 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/external/handlerDecorator.js.map +1 -0
- package/mobile/dist/external/locationNavigator.d.ts +11 -0
- package/mobile/dist/external/locationNavigator.js +21 -0
- package/mobile/dist/external/locationNavigator.js.map +1 -0
- package/mobile/dist/external/useRouter.js.map +1 -0
- package/mobile/dist/hooks/useActiveRoute.js +1 -1
- package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
- package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/mobile/dist/hooks/useClickHandler.js +1 -1
- package/mobile/dist/hooks/useClickHandler.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +2 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/index.d.ts +3 -3
- package/mobile/dist/index.js +5 -5
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/setup-fixture.js +2 -2
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/useButton.js +1 -1
- package/mobile/dist/ui-kit/Button/useButton.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/dist/utils/adjustSrc.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +2 -2
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +9 -4
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -4
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -4
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/Video.js +1 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/external/handlerDecorator.js.map +1 -0
- package/mobile/lib/external/locationNavigator.d.ts +11 -0
- package/mobile/lib/external/locationNavigator.js +18 -0
- package/mobile/lib/external/locationNavigator.js.map +1 -0
- package/mobile/lib/external/useRouter.js.map +1 -0
- package/mobile/lib/hooks/useActiveRoute.js +1 -1
- package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
- package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/mobile/lib/hooks/useClickHandler.js +1 -1
- package/mobile/lib/hooks/useClickHandler.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +2 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/index.d.ts +3 -3
- package/mobile/lib/index.js +3 -3
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/setup-fixture.js +2 -2
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/useButton.js +1 -1
- package/mobile/lib/ui-kit/Button/useButton.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/lib/utils/adjustSrc.d.ts +1 -1
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +6 -4
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +11 -4
- package/mobile/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -6
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/components/Video/Video.tsx +1 -1
- package/mobile/src/external/locationNavigator.ts +27 -0
- package/mobile/src/hooks/useActiveRoute.ts +1 -2
- package/mobile/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
- package/mobile/src/hooks/useClickHandler.ts +1 -1
- package/mobile/src/hooks/useLink.ts +2 -2
- package/mobile/src/index.ts +3 -3
- package/mobile/src/setup-fixture.ts +2 -2
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/ui-kit/Button/useButton.ts +1 -1
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
- package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
- package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
- package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
- package/mobile/src/utils/adjustSrc.ts +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/getPaymentSystems.ts +6 -4
- package/src/api/RetailAPI/updateRefreshToken.ts +11 -4
- package/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
- package/src/components/Blocks.ts +0 -2
- package/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
- package/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/src/components/CreditForm/CreditForm.tsx +1 -6
- package/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
- package/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/src/components/TabsLayout/TabsLayout.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/components/Video/Video.tsx +1 -1
- package/src/external/locationNavigator.ts +27 -0
- package/src/hooks/useActiveRoute.ts +1 -2
- package/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
- package/src/hooks/useClickHandler.ts +1 -1
- package/src/hooks/useLink.ts +2 -2
- package/src/index.ts +3 -3
- package/src/setup-fixture.ts +2 -2
- package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/Button/useButton.ts +1 -1
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
- package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
- package/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
- package/src/ui-kit/Icon/Icon.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
- package/src/utils/adjustSrc.ts +1 -1
- package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/bundle/hooks/useNavigator.d.ts +0 -8
- package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
- package/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/dist/hooks/handlerDecorator.js.map +0 -1
- package/dist/hooks/useNavigator.d.ts +0 -8
- package/dist/hooks/useNavigator.js +0 -13
- package/dist/hooks/useNavigator.js.map +0 -1
- package/dist/hooks/useRouter.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +0 -9
- package/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
- package/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/lib/hooks/handlerDecorator.js.map +0 -1
- package/lib/hooks/useNavigator.d.ts +0 -8
- package/lib/hooks/useNavigator.js +0 -10
- package/lib/hooks/useNavigator.js.map +0 -1
- package/lib/hooks/useRouter.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/bundle/hooks/useNavigator.d.ts +0 -8
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/mobile/dist/hooks/handlerDecorator.js.map +0 -1
- package/mobile/dist/hooks/useNavigator.d.ts +0 -8
- package/mobile/dist/hooks/useNavigator.js +0 -13
- package/mobile/dist/hooks/useNavigator.js.map +0 -1
- package/mobile/dist/hooks/useRouter.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/mobile/lib/hooks/handlerDecorator.js.map +0 -1
- package/mobile/lib/hooks/useNavigator.d.ts +0 -8
- package/mobile/lib/hooks/useNavigator.js +0 -10
- package/mobile/lib/hooks/useNavigator.js.map +0 -1
- package/mobile/lib/hooks/useRouter.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
- package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
- package/mobile/src/hooks/useNavigator.ts +0 -15
- package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
- package/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
- package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +0 -129
- package/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
- package/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
- package/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
- package/src/hooks/useNavigator.ts +0 -15
- package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
- /package/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/bundle/{hooks → external}/useRouter.d.ts +0 -0
- /package/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/dist/{hooks → external}/handlerDecorator.js +0 -0
- /package/dist/{hooks → external}/useRouter.d.ts +0 -0
- /package/dist/{hooks → external}/useRouter.js +0 -0
- /package/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/lib/{hooks → external}/handlerDecorator.js +0 -0
- /package/lib/{hooks → external}/useRouter.d.ts +0 -0
- /package/lib/{hooks → external}/useRouter.js +0 -0
- /package/mobile/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/bundle/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/handlerDecorator.js +0 -0
- /package/mobile/dist/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/useRouter.js +0 -0
- /package/mobile/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/lib/{hooks → external}/handlerDecorator.js +0 -0
- /package/mobile/lib/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/lib/{hooks → external}/useRouter.js +0 -0
- /package/mobile/src/{hooks → external}/handlerDecorator.ts +0 -0
- /package/mobile/src/{hooks → external}/useRouter.ts +0 -0
- /package/src/{hooks → external}/handlerDecorator.ts +0 -0
- /package/src/{hooks → external}/useRouter.ts +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { env } from '../Env';
|
|
2
|
+
import { handlerDecorator } from '../external/handlerDecorator';
|
|
3
|
+
import { useRouter } from '../external/useRouter';
|
|
2
4
|
import { type LinkProps, type Target } from '../model/LinkProps';
|
|
3
5
|
import { useDialogManager } from '../ui-kit/DialogManager/useDialogManager';
|
|
4
6
|
import { type PreventableEvent } from '../ui-kit/PreventableEvent';
|
|
@@ -6,8 +8,6 @@ import { adjustBase } from '../utils/adjustBase';
|
|
|
6
8
|
import { adjustHref } from '../utils/adjustHref';
|
|
7
9
|
import { getBasePath } from '../utils/getBasePath';
|
|
8
10
|
import { hasPrefix, isLocalURL } from '../utils/url';
|
|
9
|
-
import { handlerDecorator } from './handlerDecorator';
|
|
10
|
-
import { useRouter } from './useRouter';
|
|
11
11
|
|
|
12
12
|
interface Clickable {
|
|
13
13
|
onClick(ev?: PreventableEvent): void;
|
package/mobile/src/index.ts
CHANGED
|
@@ -2,9 +2,9 @@ export { setupHooks } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
2
2
|
export { setup } from '@redneckz/uni-jsx/lib/setup';
|
|
3
3
|
export { Blocks } from './components/Blocks';
|
|
4
4
|
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
5
|
-
export { handlerDecorator } from './
|
|
6
|
-
export {
|
|
7
|
-
export { useRouter } from './
|
|
5
|
+
export { handlerDecorator } from './external/handlerDecorator';
|
|
6
|
+
export { locationNavigator } from './external/locationNavigator';
|
|
7
|
+
export { useRouter } from './external/useRouter';
|
|
8
8
|
export { projectSettings } from './ProjectSettings';
|
|
9
9
|
export { joinList } from './utils/joinList';
|
|
10
10
|
export * as url from './utils/url';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@redneckz/uni-jsx/lib/setup.react';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import { handlerDecorator } from './
|
|
4
|
-
import { useRouter } from './
|
|
3
|
+
import { handlerDecorator } from './external/handlerDecorator';
|
|
4
|
+
import { useRouter } from './external/useRouter';
|
|
5
5
|
import { projectSettings } from './ProjectSettings';
|
|
6
6
|
import { joinPath } from './utils/url';
|
|
7
7
|
import wlc from './wlc.json';
|
|
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
4
4
|
import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton';
|
|
5
|
+
import { useRouter } from '../../external/useRouter';
|
|
5
6
|
import { useMobileMode } from '../../hooks/useMobileMode';
|
|
6
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
7
7
|
import { type Align } from '../../model/Align';
|
|
8
8
|
import { type VNode } from '../../model/VNode';
|
|
9
9
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getLink } from '../../api/RetailAPI/getLink';
|
|
4
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
4
5
|
import { Button } from '../Button/Button';
|
|
5
6
|
import { Dialog } from '../DialogManager/Dialog';
|
|
6
7
|
import { Img } from '../Img/Img';
|
|
@@ -10,13 +11,15 @@ export interface EsiaLoginDialogProps {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const EsiaLoginDialog = JSX<EsiaLoginDialogProps>(function ({ handleClose }) {
|
|
14
|
+
const navigator = locationNavigator();
|
|
15
|
+
|
|
13
16
|
const handleAuth = useCallback(async () => {
|
|
14
17
|
const resp = await getLink({
|
|
15
|
-
redirectUri:
|
|
18
|
+
redirectUri: navigator.href,
|
|
16
19
|
});
|
|
17
20
|
|
|
18
21
|
if (resp) {
|
|
19
|
-
|
|
22
|
+
navigator.assign(resp.link);
|
|
20
23
|
}
|
|
21
24
|
}, []);
|
|
22
25
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
3
|
import { useDialogManager, type DialogOptions } from '../DialogManager/useDialogManager';
|
|
3
4
|
import { EsiaLoginDialog } from './EsiaLoginDialog';
|
|
4
5
|
|
|
@@ -9,10 +10,11 @@ export interface EsiaLoginDialogProps {
|
|
|
9
10
|
|
|
10
11
|
export const useEsiaLoginDialog = (nextStepLink: string) => {
|
|
11
12
|
const { open, close } = useDialogManager();
|
|
13
|
+
const navigator = locationNavigator();
|
|
12
14
|
|
|
13
15
|
const handleClose = useCallback(() => {
|
|
14
16
|
close();
|
|
15
|
-
|
|
17
|
+
navigator.assign(nextStepLink);
|
|
16
18
|
}, []);
|
|
17
19
|
|
|
18
20
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
1
2
|
import { type JSONRefObject } from '../../../data/JSONRefObject';
|
|
2
|
-
import { UniBlock } from '../../../UniBlock/UniBlock';
|
|
3
3
|
import { type UniBlockProps } from '../../../UniBlock/UniBlockProps';
|
|
4
4
|
import { withValidator } from '../../../validation/withValidator';
|
|
5
5
|
import { SelectControl } from '../../Select/SelectControl';
|
|
@@ -12,7 +12,7 @@ export interface ProductFieldProps extends CustomFieldProps, UniBlockProps {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const ProductField =
|
|
15
|
+
export const ProductField = JSX<ProductFieldProps>(({ field, source }) => (
|
|
16
16
|
<SelectControl
|
|
17
17
|
placeholder="Выберите продукт"
|
|
18
18
|
label="Продукт"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { type IconVersion } from '../../model/IconVersion';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings';
|
|
5
5
|
import { adjustHref } from '../../utils/adjustHref';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { type ImgSource, type Picture } from '../../model/Picture';
|
|
4
4
|
import { adjustSrc } from '../../utils/adjustSrc';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { type LinkDoc } from '../../components/LinkDocs/LinkDocsContent';
|
|
4
|
-
import { useRouter } from '../../
|
|
4
|
+
import { useRouter } from '../../external/useRouter';
|
|
5
5
|
import { type Picture } from '../../model/Picture';
|
|
6
6
|
import { adjustHref } from '../../utils/adjustHref';
|
|
7
7
|
import { Button } from '../Button/Button';
|
package/package.json
CHANGED
|
@@ -14,8 +14,10 @@ export const getPaymentSystems = async () => {
|
|
|
14
14
|
|
|
15
15
|
const data: PaymentSystemResponse = await response?.json();
|
|
16
16
|
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
return (
|
|
18
|
+
data?.paymentSystems?.map((paymentSystem) => ({
|
|
19
|
+
id: paymentSystem.type,
|
|
20
|
+
text: paymentSystem.name,
|
|
21
|
+
})) ?? []
|
|
22
|
+
);
|
|
21
23
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
1
2
|
import { doRequest } from './doRequest';
|
|
2
3
|
|
|
3
4
|
interface UpdateRefreshTokenBody {
|
|
@@ -5,17 +6,23 @@ interface UpdateRefreshTokenBody {
|
|
|
5
6
|
access_token: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
const PORTAL_NATURAL_URL = '/';
|
|
10
|
+
|
|
8
11
|
const UPDATING_INTERVAL = 60000 * 4;
|
|
9
12
|
|
|
10
|
-
export const updateRefreshToken = (
|
|
13
|
+
export const updateRefreshToken = () => {
|
|
11
14
|
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
12
15
|
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
13
16
|
const taskId = globalThis.localStorage.getItem('taskId');
|
|
14
17
|
|
|
18
|
+
const navigator = locationNavigator();
|
|
19
|
+
|
|
15
20
|
if (!accessToken || !refreshToken || !taskId) {
|
|
16
|
-
|
|
21
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
17
22
|
|
|
18
|
-
return () =>
|
|
23
|
+
return () => {
|
|
24
|
+
// do nothing
|
|
25
|
+
};
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
const updateTokenRequest = async () => {
|
|
@@ -27,7 +34,7 @@ export const updateRefreshToken = (failCallback: () => void) => {
|
|
|
27
34
|
});
|
|
28
35
|
|
|
29
36
|
if (res?.status == 401) {
|
|
30
|
-
|
|
37
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
if (res?.ok) {
|
|
@@ -118,7 +118,7 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
|
118
118
|
totalIncome?: number;
|
|
119
119
|
expenses?: number;
|
|
120
120
|
snils?: string;
|
|
121
|
-
conscription?:
|
|
121
|
+
conscription?: Option;
|
|
122
122
|
armyIdFlg?: boolean;
|
|
123
123
|
addressRegistration?: Address;
|
|
124
124
|
participantDateRegistration?: Date | string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { type FormState } from '../../components/ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
4
5
|
import { formatPhone } from '../../utils/formatPhone';
|
|
5
6
|
import { getParticipantContacts } from '../CreditForm/utils';
|
|
@@ -18,12 +19,13 @@ export const getLeadFormTaskData = ({
|
|
|
18
19
|
formData,
|
|
19
20
|
}: getLeadFormTaskDataProps): UpdateUserTaskBody => {
|
|
20
21
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
22
|
+
const navigator = locationNavigator();
|
|
21
23
|
|
|
22
24
|
return {
|
|
23
25
|
sendToBank: true,
|
|
24
26
|
taskKind: 'SHORT',
|
|
25
27
|
task: {
|
|
26
|
-
taskSource:
|
|
28
|
+
taskSource: navigator.origin,
|
|
27
29
|
id: taskId,
|
|
28
30
|
participants: [
|
|
29
31
|
{
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
|
|
3
3
|
import { updateProfileEsia } from '../../api/RetailAPI/updateProfileEsia';
|
|
4
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
4
5
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
6
|
import { type FormState } from './getInitialFormState';
|
|
6
7
|
import { parseEsiaProfile } from './pasreEsiaProfile';
|
|
7
8
|
|
|
8
9
|
export const useInitApplicationLead = (nextStepLink: string) => {
|
|
10
|
+
const navigator = locationNavigator();
|
|
9
11
|
const [isLoading, setIsLoading] = useState(false);
|
|
10
12
|
const [profileId] = useLocalStorage<string>('profileId');
|
|
11
13
|
const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
|
|
@@ -19,7 +21,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
|
|
|
19
21
|
profileId: profileId,
|
|
20
22
|
code,
|
|
21
23
|
state,
|
|
22
|
-
redirectUri:
|
|
24
|
+
redirectUri: navigator.href,
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
data &&
|
|
@@ -28,7 +30,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
|
|
|
28
30
|
...parseEsiaProfile(data),
|
|
29
31
|
});
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
navigator.assign(nextStepLink);
|
|
32
34
|
}
|
|
33
35
|
}, []);
|
|
34
36
|
|
package/src/components/Blocks.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { type BlocksRegistry } from '../model/BlocksRegistry';
|
|
|
3
3
|
import { AdTile } from './AdTile/AdTile';
|
|
4
4
|
import { ApplicationForm } from './ApplicationForm/ApplicationForm';
|
|
5
5
|
import { ApplicationLeadForm } from './ApplicationLeadForm/ApplicationLeadForm';
|
|
6
|
-
import { ApplicationStatus } from './ApplicationStatus/ApplicationStatus';
|
|
7
6
|
import { BankAccountFiltration } from './BankAccountFiltration/BankAccountFiltration';
|
|
8
7
|
import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
9
8
|
import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
|
|
@@ -60,7 +59,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
60
59
|
AdTile,
|
|
61
60
|
ApplicationForm,
|
|
62
61
|
ApplicationLeadForm,
|
|
63
|
-
ApplicationStatus,
|
|
64
62
|
BankAccountFiltration,
|
|
65
63
|
BenefitsBlock,
|
|
66
64
|
BonusBenefitsBlock,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
-
import { useNavigator } from '../../hooks/useNavigator';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
@@ -12,8 +11,6 @@ import { stepsSectionsMap } from './creditCardFormStepsData';
|
|
|
12
11
|
|
|
13
12
|
interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
|
|
14
13
|
|
|
15
|
-
const PORTAL_NATURAL_URL = '/';
|
|
16
|
-
|
|
17
14
|
const WIZARD_STEPS = 6;
|
|
18
15
|
|
|
19
16
|
const WIZARD_TITLES = [
|
|
@@ -34,9 +31,7 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
|
|
|
34
31
|
[formContainerRef],
|
|
35
32
|
);
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
34
|
+
useEffect(updateRefreshToken, []);
|
|
40
35
|
|
|
41
36
|
const handleNextStep = useCallback(() => {
|
|
42
37
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { getFifthStepData } from './getFifthStepData';
|
|
4
5
|
import { getFirstStepData } from './getFirstStepData';
|
|
5
6
|
import { getFourthStepData } from './getFourthStepData';
|
|
6
7
|
import { getSecondStepData } from './getSecondStepData';
|
|
7
|
-
import { getDeliveryData, getSixthStepData } from './getSixthStepData';
|
|
8
|
+
import { getDeliveryData, getOfficeCode, getSixthStepData } from './getSixthStepData';
|
|
8
9
|
import { getThirdStepData } from './getThirdStepData';
|
|
9
10
|
|
|
10
11
|
type getCreditCardFormTaskDataProps = {
|
|
@@ -22,15 +23,15 @@ export const getCreditCardFormTaskData = ({
|
|
|
22
23
|
formData,
|
|
23
24
|
step = 0,
|
|
24
25
|
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
|
|
26
|
+
const navigator = locationNavigator();
|
|
27
|
+
|
|
25
28
|
return {
|
|
26
29
|
sendToBank: true,
|
|
27
30
|
taskKind: 'UNITED',
|
|
28
31
|
task: {
|
|
29
|
-
taskSource:
|
|
32
|
+
taskSource: navigator.origin,
|
|
30
33
|
id: taskId,
|
|
31
|
-
|
|
32
|
-
id: '650', // TODO: Remove hardcode
|
|
33
|
-
},
|
|
34
|
+
...getOfficeCode(formData),
|
|
34
35
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
36
|
participants: [
|
|
36
37
|
{
|
|
@@ -7,6 +7,7 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
7
7
|
familyStatus,
|
|
8
8
|
dependents,
|
|
9
9
|
familyMembers,
|
|
10
|
+
children,
|
|
10
11
|
wages,
|
|
11
12
|
mandatoryPayments,
|
|
12
13
|
incomeAverage,
|
|
@@ -17,12 +18,15 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
17
18
|
retirementIncome,
|
|
18
19
|
snils,
|
|
19
20
|
armyIdFlg,
|
|
21
|
+
conscription,
|
|
20
22
|
} = formData;
|
|
21
23
|
|
|
22
24
|
return {
|
|
23
25
|
maritalStatusCd: familyStatus,
|
|
26
|
+
childrenDependents: children,
|
|
24
27
|
totalDependents: familyMembers,
|
|
25
28
|
otherDependents: dependents,
|
|
29
|
+
militaryStatusCd: conscription,
|
|
26
30
|
participantIncomes: getParticipantIncomes({
|
|
27
31
|
wages,
|
|
28
32
|
mandatoryPayments,
|
|
@@ -12,6 +12,14 @@ export const getDeliveryData = (formData: FormState) => {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
export const getOfficeCode = (formData: FormState) => {
|
|
16
|
+
const { addressRetail } = formData;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
office: addressRetail?.key ? { id: addressRetail.key } : undefined,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
15
23
|
export const getSixthStepData = (formData: FormState) => {
|
|
16
24
|
const { addressCourier } = formData;
|
|
17
25
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatDate } from '../../utils/formatDate';
|
|
2
3
|
import { formatPhone } from '../../utils/formatPhone';
|
|
3
4
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
5
|
import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
|
|
5
6
|
|
|
6
7
|
export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
7
8
|
const {
|
|
9
|
+
beginDate,
|
|
8
10
|
employment,
|
|
9
11
|
organizationName,
|
|
10
12
|
inn,
|
|
@@ -23,6 +25,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
23
25
|
} = formData;
|
|
24
26
|
|
|
25
27
|
return {
|
|
28
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
26
29
|
employmentTypeCd: employment,
|
|
27
30
|
organizationName,
|
|
28
31
|
organizationInn: inn,
|
|
@@ -32,7 +32,7 @@ export const useCreditCardFormAPI = ({
|
|
|
32
32
|
const feedbackValidator = objectValidator(
|
|
33
33
|
getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
|
|
34
34
|
);
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
37
37
|
return console.warn('validation fail');
|
|
38
38
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
-
import { useNavigator } from '../../hooks/useNavigator';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
@@ -13,8 +12,6 @@ import { stepsSectionsMap } from './creditFormStepsData';
|
|
|
13
12
|
|
|
14
13
|
interface CreditFormWizardProps extends CreditFormContent, UniBlockProps {}
|
|
15
14
|
|
|
16
|
-
const PORTAL_NATURAL_URL = '/';
|
|
17
|
-
|
|
18
15
|
const WIZARD_STEPS = 5;
|
|
19
16
|
|
|
20
17
|
const WIZARD_TITLES = [
|
|
@@ -35,9 +32,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
35
32
|
[formContainerRef],
|
|
36
33
|
);
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
35
|
+
useEffect(updateRefreshToken, []);
|
|
41
36
|
|
|
42
37
|
const handleNextStep = useCallback(() => {
|
|
43
38
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { getFifthStepData } from './getFifthStepData';
|
|
4
5
|
import { getFirstStepData } from './getFirstStepData';
|
|
@@ -21,36 +22,37 @@ export const getCreditFormTaskData = ({
|
|
|
21
22
|
profileId,
|
|
22
23
|
formData,
|
|
23
24
|
step = 0,
|
|
24
|
-
}: getCreditFormTaskDataProps): UpdateUserTaskBody =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
}: getCreditFormTaskDataProps): UpdateUserTaskBody => {
|
|
26
|
+
const navigator = locationNavigator();
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
sendToBank: true,
|
|
30
|
+
taskKind: 'UNITED',
|
|
31
|
+
task: {
|
|
32
|
+
taskSource: navigator.origin,
|
|
33
|
+
id: taskId,
|
|
34
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
|
+
participants: [
|
|
36
|
+
{
|
|
37
|
+
id: participantId,
|
|
38
|
+
profile: {
|
|
39
|
+
id: profileId,
|
|
40
|
+
},
|
|
41
|
+
roleCd: {
|
|
42
|
+
key: 'BORROWER',
|
|
43
|
+
value: 'Заемщик',
|
|
44
|
+
},
|
|
45
|
+
...getCurrentStepData(step, formData),
|
|
43
46
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
47
|
+
],
|
|
48
|
+
...getZeroStepData(formData), // moved from participants
|
|
49
|
+
...getFifthStepData(formData),
|
|
50
|
+
esiaAccountTypeCd: {
|
|
51
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
52
|
+
} as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
};
|
|
54
56
|
|
|
55
57
|
const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
|
|
56
58
|
switch (step) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatDate } from '../../utils/formatDate';
|
|
2
3
|
import { formatPhone } from '../../utils/formatPhone';
|
|
3
4
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
5
|
import { getParticipantAddresses, getParticipantContacts } from './utils';
|
|
5
6
|
|
|
6
7
|
export const getSecondStepData = (formData: FormState): Partial<Participant> => {
|
|
7
8
|
const {
|
|
9
|
+
beginDate,
|
|
8
10
|
employment,
|
|
9
11
|
organizationName,
|
|
10
12
|
inn,
|
|
@@ -23,6 +25,7 @@ export const getSecondStepData = (formData: FormState): Partial<Participant> =>
|
|
|
23
25
|
} = formData;
|
|
24
26
|
|
|
25
27
|
return {
|
|
28
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
26
29
|
employmentTypeCd: employment,
|
|
27
30
|
organizationName,
|
|
28
31
|
organizationInn: inn,
|
|
@@ -7,6 +7,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
7
7
|
familyStatus,
|
|
8
8
|
dependents,
|
|
9
9
|
familyMembers,
|
|
10
|
+
children,
|
|
10
11
|
confirmationIncome,
|
|
11
12
|
wages,
|
|
12
13
|
mandatoryPayments,
|
|
@@ -18,6 +19,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
18
19
|
retirementIncome,
|
|
19
20
|
snils,
|
|
20
21
|
armyIdFlg,
|
|
22
|
+
conscription,
|
|
21
23
|
} = formData;
|
|
22
24
|
|
|
23
25
|
return {
|
|
@@ -25,6 +27,8 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
25
27
|
totalDependents: familyMembers,
|
|
26
28
|
incomeCertificateCd: confirmationIncome,
|
|
27
29
|
otherDependents: dependents,
|
|
30
|
+
childrenDependents: children,
|
|
31
|
+
militaryStatusCd: conscription,
|
|
28
32
|
participantIncomes: getParticipantIncomes({
|
|
29
33
|
wages,
|
|
30
34
|
mandatoryPayments,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter';
|
|
4
4
|
import { type BgColorVersion } from '../../model/BgColorVersion';
|
|
5
5
|
import { type BlockVersion } from '../../model/BlockVersion';
|
|
6
6
|
import { type LogoType } from '../../model/LogoType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRouter, type Router } from '../../
|
|
1
|
+
import { useRouter, type Router } from '../../external/useRouter';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { renderBlocksList } from '../../BlockRenderer/renderBlockList';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter';
|
|
4
4
|
import { type BlockDef } from '../../model/ContentPageDef';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { type TabItemBase } from '../../ui-kit/TabsControl/TabItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
5
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|