@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,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
5
|
import { adjustHref } from '../../utils/adjustHref';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Target } from '../model/LinkProps';
|
|
2
|
+
|
|
3
|
+
export interface LocationNavigator {
|
|
4
|
+
assign: (url: string, target?: Target) => void;
|
|
5
|
+
readonly origin: string;
|
|
6
|
+
readonly href: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function locationNavigator(): LocationNavigator {
|
|
10
|
+
return locationNavigator._impl();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
locationNavigator._impl = (): LocationNavigator => ({
|
|
14
|
+
assign: (url, target) => {
|
|
15
|
+
globalThis.open(url, target || '_self');
|
|
16
|
+
},
|
|
17
|
+
get origin() {
|
|
18
|
+
return globalThis.location.origin;
|
|
19
|
+
},
|
|
20
|
+
get href() {
|
|
21
|
+
return globalThis.location.href;
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
locationNavigator.setup = (impl: () => LocationNavigator) => {
|
|
26
|
+
locationNavigator._impl = impl;
|
|
27
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { env } from '../Env';
|
|
2
|
-
import { type Router } from '../
|
|
2
|
+
import { useRouter, type Router } from '../external/useRouter';
|
|
3
3
|
import { type LinkProps } from '../model/LinkProps';
|
|
4
4
|
import { getBasePath } from '../utils/getBasePath';
|
|
5
5
|
import { isURL, joinPath, withoutQuery } from '../utils/url';
|
|
6
|
-
import { useRouter } from './useRouter';
|
|
7
6
|
|
|
8
7
|
export function useActiveRoute<T extends LinkProps>(items: T[] | undefined = []): [number, T] {
|
|
9
8
|
const router = useRouter();
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
+
import { locationNavigator } from '../../../external/locationNavigator';
|
|
1
2
|
import { type Target } from '../../../model/LinkProps';
|
|
2
3
|
import { type PreventableEventWithTarget } from '../../../ui-kit/PreventableEvent';
|
|
3
4
|
import { adjustSessionQuery } from '../../../utils/adjustSessionQuery';
|
|
4
|
-
import { tableFunc } from '../../../utils/tableFunc';
|
|
5
5
|
import { isURL } from '../../../utils/url';
|
|
6
6
|
|
|
7
7
|
export const forwardQuery = (ev: PreventableEventWithTarget) => {
|
|
8
8
|
const anchor = (ev.target as Element | null)?.closest('a');
|
|
9
|
+
const navigator = locationNavigator();
|
|
9
10
|
|
|
10
|
-
if (isURL(anchor?.href) && !anchor?.href?.startsWith(
|
|
11
|
+
if (isURL(anchor?.href) && !anchor?.href?.startsWith(navigator.origin)) {
|
|
11
12
|
ev.preventDefault();
|
|
12
13
|
ev.stopPropagation();
|
|
13
14
|
|
|
14
15
|
const url = adjustSessionQuery(anchor?.href) || anchor?.href;
|
|
15
16
|
if (url) {
|
|
16
|
-
|
|
17
|
-
transition?.(url);
|
|
17
|
+
navigator.assign(url, anchor?.target as Target);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
const getTransition = tableFunc<Target, (url: string) => void>([
|
|
23
|
-
[(_) => _ === '_blank', (url) => globalThis.open(url, '_blank')],
|
|
24
|
-
[(_) => _ === '_parent', (url) => globalThis.parent && (globalThis.parent.location.href = url)],
|
|
25
|
-
[
|
|
26
|
-
(_) => _ === '_top',
|
|
27
|
-
(url) => {
|
|
28
|
-
globalThis.top && (globalThis.top.location.href = url);
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
[() => true, (url) => globalThis.location && (globalThis.location.href = url)],
|
|
32
|
-
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useEventListener } from '@redneckz/uni-jsx/lib/hooks/useEventListener';
|
|
3
|
+
import { handlerDecorator } from '../external/handlerDecorator';
|
|
3
4
|
import { saveSessionQuery } from '../utils/getSessionQuery';
|
|
4
|
-
import { handlerDecorator } from './handlerDecorator';
|
|
5
5
|
import { applyAspects } from './useAspects/applyAspects';
|
|
6
6
|
import { useAspects } from './useAspects/useAspects';
|
|
7
7
|
|
package/src/hooks/useLink.ts
CHANGED
|
@@ -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/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';
|
package/src/setup-fixture.ts
CHANGED
|
@@ -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="Продукт"
|
package/src/ui-kit/Icon/Icon.tsx
CHANGED
|
@@ -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/src/utils/adjustSrc.ts
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type ApplicationStatusContent } from './ApplicationStatusContent';
|
|
3
|
-
declare type ApplicationStatusProps = ApplicationStatusContent & UniBlockProps;
|
|
4
|
-
export declare const ApplicationStatus: import("@redneckz/uni-jsx").UNIComponent<ApplicationStatusProps, any, any>;
|
|
5
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Статус заявки
|
|
6
|
-
*/
|
|
7
|
-
export declare type ApplicationStatusContent = UniBlockContent & {
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
interval?: number;
|
|
11
|
-
sectionInfoTitle?: string;
|
|
12
|
-
sectionInfo?: (LabelProps & DescriptionProps)[];
|
|
13
|
-
sectionAdditionalTitle?: string;
|
|
14
|
-
sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
|
|
15
|
-
buttonText?: string;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
infoCard?: InfoCardProps;
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type ApplicationStatusContent } from './ApplicationStatusContent';
|
|
3
|
-
declare type ApplicationStatusProps = ApplicationStatusContent & UniBlockProps;
|
|
4
|
-
export declare const ApplicationStatus: import("@redneckz/uni-jsx").UNIComponent<ApplicationStatusProps, any, any>;
|
|
5
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ApplicationStatus = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useMobileMode_1 = require("../../hooks/useMobileMode");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
-
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
9
|
-
const InfoCard_1 = require("../../ui-kit/InfoCard/InfoCard");
|
|
10
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
|
-
const TimerCircle_1 = require("../../ui-kit/TimerCircle/TimerCircle");
|
|
12
|
-
const style_1 = require("../../utils/style");
|
|
13
|
-
const Headline_1 = require("../Headline/Headline");
|
|
14
|
-
exports.ApplicationStatus = (0, uni_jsx_1.JSX)(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { ...props, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col md:flex-row items-center", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? (0, jsx_runtime_1.jsx)(TimerCircle_1.TimerCircle, { interval: interval }) : null] }), (0, jsx_runtime_1.jsx)(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), (0, jsx_runtime_1.jsx)(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? ((0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
15
|
-
text: infoCard?.link?.text,
|
|
16
|
-
} })) : null, buttonText ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-lg", children: buttonText }) : null] })));
|
|
17
|
-
const SectionInfo = ({ title, items, countColumns = false, }) => {
|
|
18
|
-
const isMobile = (0, useMobileMode_1.useMobileMode)();
|
|
19
|
-
if (!items) {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("hr", { className: "w-full h-px bg-main-gray border-0" }), (0, jsx_runtime_1.jsxs)("div", { className: "p-xl", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text", size: "text-h5", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('grid grid-cols-1 gap-m', (0, inputColumnStyle_1.inputColumnStyles)(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { children: renderItem(item) }, index))) })) : null] })] }));
|
|
23
|
-
};
|
|
24
|
-
const renderItem = ({ label, description }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-l", children: label }), (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
|
|
25
|
-
//# sourceMappingURL=ApplicationStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStatus.js","sourceRoot":"","sources":["../../../src/components/ApplicationStatus/ApplicationStatus.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Статус заявки
|
|
6
|
-
*/
|
|
7
|
-
export declare type ApplicationStatusContent = UniBlockContent & {
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
interval?: number;
|
|
11
|
-
sectionInfoTitle?: string;
|
|
12
|
-
sectionInfo?: (LabelProps & DescriptionProps)[];
|
|
13
|
-
sectionAdditionalTitle?: string;
|
|
14
|
-
sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
|
|
15
|
-
buttonText?: string;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
infoCard?: InfoCardProps;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStatusContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationStatus/ApplicationStatusContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlerDecorator.js","sourceRoot":"","sources":["../../src/hooks/handlerDecorator.ts"],"names":[],"mappings":"AAAA,iDAAiD;;;AAI1C,MAAM,gBAAgB,GAGzB,CAAC,OAAO,EAAE,EAAE;IACd,OAAO,wBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B;AAEF,wBAAgB,CAAC,KAAK,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;AAE9C,wBAAgB,CAAC,KAAK,GAAG,CAAC,IAAI,EAAE,EAAE;IAChC,wBAAgB,CAAC,KAAK,GAAG,IAAI,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useNavigator = void 0;
|
|
3
|
-
function useNavigator() {
|
|
4
|
-
return useNavigator._impl();
|
|
5
|
-
}
|
|
6
|
-
exports.useNavigator = useNavigator;
|
|
7
|
-
useNavigator._impl = () => ({
|
|
8
|
-
assign: (url) => globalThis.location.assign(url),
|
|
9
|
-
});
|
|
10
|
-
useNavigator.setup = (impl) => {
|
|
11
|
-
useNavigator._impl = impl;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useNavigator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigator.js","sourceRoot":"","sources":["../../src/hooks/useNavigator.ts"],"names":[],"mappings":";;AAIA,SAAgB,YAAY;IAC1B,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC;AAC9B,CAAC;AAFD,oCAEC;AAED,YAAY,CAAC,KAAK,GAAG,GAAc,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;CACjD,CAAC,CAAC;AAEH,YAAY,CAAC,KAAK,GAAG,CAAC,IAAqB,EAAE,EAAE;IAC7C,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRouter.js","sourceRoot":"","sources":["../../src/hooks/useRouter.ts"],"names":[],"mappings":";;AAeA,SAAgB,SAAS;IACvB,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAFD,8BAEC;AAED,SAAS,CAAC,KAAK,GAAG,GAAW,EAAE,CAAC,CAAC;IAC/B,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,IAAI,IAAI,GAAG;IACtC,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,QAAQ,IAAI,GAAG;IAC9C,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,GAAG,EAAE;QACT,aAAa;IACf,CAAC;IACD,OAAO,EAAE,GAAG,EAAE;QACZ,aAAa;IACf,CAAC;IACD,IAAI,EAAE,GAAG,EAAE;QACT,aAAa;IACf,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,CAAC,KAAK,GAAG,CAAC,IAAkB,EAAE,EAAE;IACvC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC;AACzB,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=FeedbackTypeField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/FeedbackTypeField.tsx"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type ApplicationStatusContent } from './ApplicationStatusContent';
|
|
3
|
-
declare type ApplicationStatusProps = ApplicationStatusContent & UniBlockProps;
|
|
4
|
-
export declare const ApplicationStatus: import("@redneckz/uni-jsx").UNIComponent<ApplicationStatusProps, any, any>;
|
|
5
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useMobileMode } from '../../hooks/useMobileMode.js';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
-
import { Button } from '../../ui-kit/Button/Button.js';
|
|
6
|
-
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle.js';
|
|
7
|
-
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard.js';
|
|
8
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
9
|
-
import { TimerCircle } from '../../ui-kit/TimerCircle/TimerCircle.js';
|
|
10
|
-
import { style } from '../../utils/style.js';
|
|
11
|
-
import { Headline } from '../Headline/Headline.js';
|
|
12
|
-
export const ApplicationStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (_jsxs(BlockWrapper, { ...props, children: [_jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [_jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? _jsx(TimerCircle, { interval: interval }) : null] }), _jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), _jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (_jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
13
|
-
text: infoCard?.link?.text,
|
|
14
|
-
} })) : null, buttonText ? _jsx(Button, { className: "w-full mt-lg", children: buttonText }) : null] })));
|
|
15
|
-
const SectionInfo = ({ title, items, countColumns = false, }) => {
|
|
16
|
-
const isMobile = useMobileMode();
|
|
17
|
-
if (!items) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return (_jsxs("div", { children: [_jsx("hr", { className: "w-full h-px bg-main-gray border-0" }), _jsxs("div", { className: "p-xl", children: [title ? (_jsx(Text, { color: "text-primary-text", size: "text-h5", children: _jsx("div", { className: style({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? (_jsx("div", { className: style('grid grid-cols-1 gap-m', inputColumnStyles(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => (_jsx("div", { children: renderItem(item) }, index))) })) : null] })] }));
|
|
21
|
-
};
|
|
22
|
-
const renderItem = ({ label, description }) => (_jsxs("div", { className: "flex flex-col", children: [_jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), _jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
|
|
23
|
-
//# sourceMappingURL=ApplicationStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStatus.js","sourceRoot":"","sources":["../../../src/components/ApplicationStatus/ApplicationStatus.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Статус заявки
|
|
6
|
-
*/
|
|
7
|
-
export declare type ApplicationStatusContent = UniBlockContent & {
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
interval?: number;
|
|
11
|
-
sectionInfoTitle?: string;
|
|
12
|
-
sectionInfo?: (LabelProps & DescriptionProps)[];
|
|
13
|
-
sectionAdditionalTitle?: string;
|
|
14
|
-
sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
|
|
15
|
-
buttonText?: string;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
infoCard?: InfoCardProps;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStatusContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationStatus/ApplicationStatusContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlerDecorator.js","sourceRoot":"","sources":["../../src/hooks/handlerDecorator.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAIjD,MAAM,CAAC,MAAM,gBAAgB,GAGzB,CAAC,OAAO,EAAE,EAAE;IACd,OAAO,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,gBAAgB,CAAC,KAAK,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;AAE9C,gBAAgB,CAAC,KAAK,GAAG,CAAC,IAAI,EAAE,EAAE;IAChC,gBAAgB,CAAC,KAAK,GAAG,IAAI,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function useNavigator() {
|
|
2
|
-
return useNavigator._impl();
|
|
3
|
-
}
|
|
4
|
-
useNavigator._impl = () => ({
|
|
5
|
-
assign: (url) => globalThis.location.assign(url),
|
|
6
|
-
});
|
|
7
|
-
useNavigator.setup = (impl) => {
|
|
8
|
-
useNavigator._impl = impl;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useNavigator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigator.js","sourceRoot":"","sources":["../../src/hooks/useNavigator.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,YAAY,CAAC,KAAK,GAAG,GAAc,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;CACjD,CAAC,CAAC;AAEH,YAAY,CAAC,KAAK,GAAG,CAAC,IAAqB,EAAE,EAAE;IAC7C,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRouter.js","sourceRoot":"","sources":["../../src/hooks/useRouter.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,SAAS;IACvB,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,SAAS,CAAC,KAAK,GAAG,GAAW,EAAE,CAAC,CAAC;IAC/B,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,IAAI,IAAI,GAAG;IACtC,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,QAAQ,IAAI,GAAG;IAC9C,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,GAAG,EAAE;QACT,aAAa;IACf,CAAC;IACD,OAAO,EAAE,GAAG,EAAE;QACZ,aAAa;IACf,CAAC;IACD,IAAI,EAAE,GAAG,EAAE;QACT,aAAa;IACf,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,CAAC,KAAK,GAAG,CAAC,IAAkB,EAAE,EAAE;IACvC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC;AACzB,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=FeedbackTypeField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/FeedbackTypeField.tsx"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type ApplicationStatusContent } from './ApplicationStatusContent';
|
|
3
|
-
declare type ApplicationStatusProps = ApplicationStatusContent & UniBlockProps;
|
|
4
|
-
export declare const ApplicationStatus: import("@redneckz/uni-jsx").UNIComponent<ApplicationStatusProps, any, any>;
|
|
5
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type DescriptionProps, type LabelProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type InfoCardProps } from '../../ui-kit/InfoCard/InfoCard';
|
|
3
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
/**
|
|
5
|
-
* @title Статус заявки
|
|
6
|
-
*/
|
|
7
|
-
export declare type ApplicationStatusContent = UniBlockContent & {
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
interval?: number;
|
|
11
|
-
sectionInfoTitle?: string;
|
|
12
|
-
sectionInfo?: (LabelProps & DescriptionProps)[];
|
|
13
|
-
sectionAdditionalTitle?: string;
|
|
14
|
-
sectionInfoAdditional?: (LabelProps & DescriptionProps)[];
|
|
15
|
-
buttonText?: string;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
infoCard?: InfoCardProps;
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type ApplicationStatusContent } from './ApplicationStatusContent';
|
|
3
|
-
declare type ApplicationStatusProps = ApplicationStatusContent & UniBlockProps;
|
|
4
|
-
export declare const ApplicationStatus: import("@redneckz/uni-jsx").UNIComponent<ApplicationStatusProps, any, any>;
|
|
5
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ApplicationStatus = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useMobileMode_1 = require("../../hooks/useMobileMode");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
-
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
9
|
-
const InfoCard_1 = require("../../ui-kit/InfoCard/InfoCard");
|
|
10
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
|
-
const TimerCircle_1 = require("../../ui-kit/TimerCircle/TimerCircle");
|
|
12
|
-
const style_1 = require("../../utils/style");
|
|
13
|
-
const Headline_1 = require("../Headline/Headline");
|
|
14
|
-
exports.ApplicationStatus = (0, uni_jsx_1.JSX)(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { ...props, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col md:flex-row items-center", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? (0, jsx_runtime_1.jsx)(TimerCircle_1.TimerCircle, { interval: interval }) : null] }), (0, jsx_runtime_1.jsx)(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), (0, jsx_runtime_1.jsx)(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? ((0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
15
|
-
text: infoCard?.link?.text,
|
|
16
|
-
} })) : null, buttonText ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-lg", children: buttonText }) : null] })));
|
|
17
|
-
const SectionInfo = ({ title, items, countColumns = false, }) => {
|
|
18
|
-
const isMobile = (0, useMobileMode_1.useMobileMode)();
|
|
19
|
-
if (!items) {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("hr", { className: "w-full h-px bg-main-gray border-0" }), (0, jsx_runtime_1.jsxs)("div", { className: "p-xl", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text", size: "text-h5", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('grid grid-cols-1 gap-m', (0, inputColumnStyle_1.inputColumnStyles)(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { children: renderItem(item) }, index))) })) : null] })] }));
|
|
23
|
-
};
|
|
24
|
-
const renderItem = ({ label, description }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-l", children: label }), (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
|
|
25
|
-
//# sourceMappingURL=ApplicationStatus.js.map
|