@mychoice/mychoice-sdk-modules 2.0.0 → 2.0.2
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/README.md +2 -2
- package/dist/cjs/index.js +74 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init/AppConfig/AppConfig.d.ts +1 -1
- package/dist/cjs/init/AppConfig/interfaces.d.ts +1 -1
- package/dist/cjs/init/AppContainer/AppContainer.d.ts +1 -1
- package/dist/cjs/init/AppHeader/AppHeader.d.ts +1 -1
- package/dist/cjs/init/AppLoader/AppLoader.d.ts +1 -1
- package/dist/cjs/init/AppModal/AppModal.d.ts +1 -1
- package/dist/cjs/init/AppModal/interfaces.d.ts +1 -1
- package/dist/cjs/init/AppRouterListener/AppRouterListener.d.ts +1 -1
- package/dist/cjs/init/AppRoutes/AppRoutes.d.ts +1 -1
- package/dist/cjs/init/AppRoutes/BrokerKeys.d.ts +1 -1
- package/dist/cjs/init/AppRoutes/routeTypes/RouteWrapperPrivate.d.ts +1 -1
- package/dist/cjs/init/AppRoutes/routeTypes/RouteWrapperPublic.d.ts +1 -1
- package/dist/cjs/init/AppRoutes/routeTypes/RouteWrapperRestricted.d.ts +1 -1
- package/dist/cjs/init/AppTitle/AppTitle.d.ts +1 -1
- package/dist/cjs/init/AppWrapper/AppWrapper.d.ts +1 -1
- package/dist/cjs/init/AppWrapper/interfaces.d.ts +1 -1
- package/dist/cjs/init/StoryAppWrapper/StoryAppWrapper.d.ts +1 -1
- package/dist/cjs/init/StoryAppWrapper/interfaces.d.ts +1 -1
- package/dist/cjs/init/helper.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/PageDiscount.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/helpers.d.ts +2 -2
- package/dist/cjs/insurances/car/pages/discount/sections/SectionDiscountInfo.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/sections/blocks/BlockVehLinks.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/discount/sections/blocks/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/PageDriver.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/TabDriver.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/helpers.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverCancellation/SectionDriverCancellation.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverHistory/SectionDriverHistory.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverAccident.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverSuspension.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverTicket.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverInfo/SectionDriverInfo.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverInsurancePolicy/SectionDriverInsurancePolicy.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/driver/sections/SectionDriverLicence/SectionDriverLicence.d.ts +1 -1
- package/dist/cjs/insurances/{life/pages/quote/sections/SectionQuoteRecalc.d.ts → car/pages/quote/PageAllQuotes.d.ts} +1 -1
- package/dist/cjs/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/SectionConfirm.d.ts +1 -0
- package/dist/cjs/insurances/car/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/SectionQuoteRecalc.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/blocks/BlockQuoteStatistics.d.ts +2 -0
- package/dist/cjs/insurances/car/pages/quote/sections/index.d.ts +1 -0
- package/dist/cjs/insurances/car/pages/vehicle/PageVehicle.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/TabVehicle.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/helpers.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/sections/SectionCoverage.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/sections/SectionMain.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/sections/blocks/BlockCarConditionInfo.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/vehicle/sections/blocks/BlockCarInfo.d.ts +1 -1
- package/dist/cjs/insurances/helpers.d.ts +2 -2
- package/dist/cjs/insurances/home/pages/address/PageAddress.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/address/sections/SectionAddress.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/applicant/PageApplicant.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/applicant/sections/SectionApplicantCancellation/SectionApplicantCancellation.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/applicant/sections/SectionApplicantClaim/SectionApplicantClaim.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/applicant/sections/SectionApplicantInfo/SectionApplicantInfo.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/applicant/sections/SectionApplicantInsurancePolicy/SectionApplicantInsurancePolicy.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/PageDiscount.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/sections/SectionDiscountInfo.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/sections/blocks/BlockDwellingInfo.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/discount/sections/blocks/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/dwelling/PageProperty.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/dwelling/helpers.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/dwelling/sections/SectionDwelling.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/quote/PageQuote.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/cjs/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/applicant/PageApplicant.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/coverage/PageCoverage.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/quote/PageQuote.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/cjs/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/cjs/shared/boxes/Container/Container.d.ts +1 -1
- package/dist/cjs/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/DateSelectFormBox/DateSelectFormBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/DateSelectFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/InputFormBox/InputFormBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/InputFormBox/InputFormEmailBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/InputFormBox/InputFormLicenceBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/InputFormBox/InputFormPhoneBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/InputFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/LabelFormBox/LabelFormBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/LabelFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/SelectFormBox/SelectFormBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/SwitchButtonBox/SwitchButtonBox.d.ts +1 -1
- package/dist/cjs/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/cjs/shared/headers/HeaderDesktop/Mychoice.d.ts +1 -1
- package/dist/cjs/shared/headers/HeaderDesktop/Partner.d.ts +1 -1
- package/dist/cjs/shared/headers/HeaderDesktop/TheBig.d.ts +1 -1
- package/dist/cjs/shared/headers/HeaderMobile/MyChoice.d.ts +1 -1
- package/dist/cjs/shared/headers/constants.d.ts +1 -1
- package/dist/cjs/shared/headers/interfaces.d.ts +1 -1
- package/dist/cjs/shared/loaders/LoaderPrimary/LoaderPrimary.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalAddress/ModalAddress.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalConfirm/ModalConfirm.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalFinale/ModalFinale.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalMessage/ModalMessage.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalPostal/ModalPostal.d.ts +1 -1
- package/dist/cjs/shared/modals/ModalQuoteRequest/ModalQuoteRequest.d.ts +1 -1
- package/dist/cjs/shared/modals/interfaces.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationBottom/NavigationBottom.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationBottom/NavigationBottomTheBig.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTab/NavigationTab.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTab/NavigationTabMobile.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/NavigationTop.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/components/ButtonsBox.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/components/PostalCodeDataBox.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/components/StepsBox.d.ts +1 -1
- package/dist/cjs/shared/navigations/interfaces.d.ts +1 -1
- package/dist/cjs/shared/sections/quotes/OfferSection/BestOfferSection.d.ts +3 -0
- package/dist/cjs/shared/sections/quotes/OfferSection/DummyOfferSection.d.ts +3 -0
- package/dist/cjs/shared/sections/quotes/OfferSection/OfferSection.d.ts +1 -1
- package/dist/cjs/shared/sections/quotes/interfaces.d.ts +1 -1
- package/dist/esm/index.js +74 -18
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init/AppConfig/AppConfig.d.ts +1 -1
- package/dist/esm/init/AppConfig/interfaces.d.ts +1 -1
- package/dist/esm/init/AppContainer/AppContainer.d.ts +1 -1
- package/dist/esm/init/AppHeader/AppHeader.d.ts +1 -1
- package/dist/esm/init/AppLoader/AppLoader.d.ts +1 -1
- package/dist/esm/init/AppModal/AppModal.d.ts +1 -1
- package/dist/esm/init/AppModal/interfaces.d.ts +1 -1
- package/dist/esm/init/AppRouterListener/AppRouterListener.d.ts +1 -1
- package/dist/esm/init/AppRoutes/AppRoutes.d.ts +1 -1
- package/dist/esm/init/AppRoutes/BrokerKeys.d.ts +1 -1
- package/dist/esm/init/AppRoutes/routeTypes/RouteWrapperPrivate.d.ts +1 -1
- package/dist/esm/init/AppRoutes/routeTypes/RouteWrapperPublic.d.ts +1 -1
- package/dist/esm/init/AppRoutes/routeTypes/RouteWrapperRestricted.d.ts +1 -1
- package/dist/esm/init/AppTitle/AppTitle.d.ts +1 -1
- package/dist/esm/init/AppWrapper/AppWrapper.d.ts +1 -1
- package/dist/esm/init/AppWrapper/interfaces.d.ts +1 -1
- package/dist/esm/init/StoryAppWrapper/StoryAppWrapper.d.ts +1 -1
- package/dist/esm/init/StoryAppWrapper/interfaces.d.ts +1 -1
- package/dist/esm/init/helper.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/PageDiscount.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/helpers.d.ts +2 -2
- package/dist/esm/insurances/car/pages/discount/sections/SectionDiscountInfo.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/sections/blocks/BlockVehLinks.d.ts +1 -1
- package/dist/esm/insurances/car/pages/discount/sections/blocks/interfaces.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/PageDriver.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/TabDriver.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/helpers.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverCancellation/SectionDriverCancellation.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverHistory/SectionDriverHistory.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverAccident.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverSuspension.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverHistory/blocks/BlockDriverTicket.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverInfo/SectionDriverInfo.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverInsurancePolicy/SectionDriverInsurancePolicy.d.ts +1 -1
- package/dist/esm/insurances/car/pages/driver/sections/SectionDriverLicence/SectionDriverLicence.d.ts +1 -1
- package/dist/esm/insurances/{life/pages/quote/sections/SectionQuoteRecalc.d.ts → car/pages/quote/PageAllQuotes.d.ts} +1 -1
- package/dist/esm/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/SectionConfirm.d.ts +1 -0
- package/dist/esm/insurances/car/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/SectionQuoteRecalc.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/blocks/BlockQuoteStatistics.d.ts +2 -0
- package/dist/esm/insurances/car/pages/quote/sections/index.d.ts +1 -0
- package/dist/esm/insurances/car/pages/vehicle/PageVehicle.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/TabVehicle.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/helpers.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/sections/SectionCoverage.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/sections/SectionMain.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/sections/blocks/BlockCarConditionInfo.d.ts +1 -1
- package/dist/esm/insurances/car/pages/vehicle/sections/blocks/BlockCarInfo.d.ts +1 -1
- package/dist/esm/insurances/helpers.d.ts +2 -2
- package/dist/esm/insurances/home/pages/address/PageAddress.d.ts +1 -1
- package/dist/esm/insurances/home/pages/address/sections/SectionAddress.d.ts +1 -1
- package/dist/esm/insurances/home/pages/applicant/PageApplicant.d.ts +1 -1
- package/dist/esm/insurances/home/pages/applicant/sections/SectionApplicantCancellation/SectionApplicantCancellation.d.ts +1 -1
- package/dist/esm/insurances/home/pages/applicant/sections/SectionApplicantClaim/SectionApplicantClaim.d.ts +1 -1
- package/dist/esm/insurances/home/pages/applicant/sections/SectionApplicantInfo/SectionApplicantInfo.d.ts +1 -1
- package/dist/esm/insurances/home/pages/applicant/sections/SectionApplicantInsurancePolicy/SectionApplicantInsurancePolicy.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/PageDiscount.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/sections/SectionDiscountInfo.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/sections/blocks/BlockDwellingInfo.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/esm/insurances/home/pages/discount/sections/blocks/interfaces.d.ts +1 -1
- package/dist/esm/insurances/home/pages/dwelling/PageProperty.d.ts +1 -1
- package/dist/esm/insurances/home/pages/dwelling/helpers.d.ts +1 -1
- package/dist/esm/insurances/home/pages/dwelling/sections/SectionDwelling.d.ts +1 -1
- package/dist/esm/insurances/home/pages/quote/PageQuote.d.ts +1 -1
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +1 -1
- package/dist/esm/insurances/home/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/esm/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/esm/insurances/life/pages/applicant/PageApplicant.d.ts +1 -1
- package/dist/esm/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +1 -1
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +1 -1
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +1 -1
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +1 -1
- package/dist/esm/insurances/life/pages/coverage/PageCoverage.d.ts +1 -1
- package/dist/esm/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +1 -1
- package/dist/esm/insurances/life/pages/quote/PageQuote.d.ts +1 -1
- package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +1 -1
- package/dist/esm/insurances/life/pages/quote/sections/SplashScreen.d.ts +1 -1
- package/dist/esm/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +1 -1
- package/dist/esm/shared/boxes/Container/Container.d.ts +1 -1
- package/dist/esm/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/DateSelectFormBox/DateSelectFormBox.d.ts +1 -1
- package/dist/esm/shared/boxes/DateSelectFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/InputFormBox/InputFormBox.d.ts +1 -1
- package/dist/esm/shared/boxes/InputFormBox/InputFormEmailBox.d.ts +1 -1
- package/dist/esm/shared/boxes/InputFormBox/InputFormLicenceBox.d.ts +1 -1
- package/dist/esm/shared/boxes/InputFormBox/InputFormPhoneBox.d.ts +1 -1
- package/dist/esm/shared/boxes/InputFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/LabelFormBox/LabelFormBox.d.ts +1 -1
- package/dist/esm/shared/boxes/LabelFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/SelectFormBox/SelectFormBox.d.ts +1 -1
- package/dist/esm/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/SwitchButtonBox/SwitchButtonBox.d.ts +1 -1
- package/dist/esm/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/esm/shared/headers/HeaderDesktop/Mychoice.d.ts +1 -1
- package/dist/esm/shared/headers/HeaderDesktop/Partner.d.ts +1 -1
- package/dist/esm/shared/headers/HeaderDesktop/TheBig.d.ts +1 -1
- package/dist/esm/shared/headers/HeaderMobile/MyChoice.d.ts +1 -1
- package/dist/esm/shared/headers/constants.d.ts +1 -1
- package/dist/esm/shared/headers/interfaces.d.ts +1 -1
- package/dist/esm/shared/loaders/LoaderPrimary/LoaderPrimary.d.ts +1 -1
- package/dist/esm/shared/modals/ModalAddress/ModalAddress.d.ts +1 -1
- package/dist/esm/shared/modals/ModalConfirm/ModalConfirm.d.ts +1 -1
- package/dist/esm/shared/modals/ModalFinale/ModalFinale.d.ts +1 -1
- package/dist/esm/shared/modals/ModalMessage/ModalMessage.d.ts +1 -1
- package/dist/esm/shared/modals/ModalPostal/ModalPostal.d.ts +1 -1
- package/dist/esm/shared/modals/ModalQuoteRequest/ModalQuoteRequest.d.ts +1 -1
- package/dist/esm/shared/modals/interfaces.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationBottom/NavigationBottom.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationBottom/NavigationBottomTheBig.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTab/NavigationTab.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTab/NavigationTabMobile.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/NavigationTop.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/components/ButtonsBox.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/components/PostalCodeDataBox.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/components/StepsBox.d.ts +1 -1
- package/dist/esm/shared/navigations/interfaces.d.ts +1 -1
- package/dist/esm/shared/sections/quotes/OfferSection/BestOfferSection.d.ts +3 -0
- package/dist/esm/shared/sections/quotes/OfferSection/DummyOfferSection.d.ts +3 -0
- package/dist/esm/shared/sections/quotes/OfferSection/OfferSection.d.ts +1 -1
- package/dist/esm/shared/sections/quotes/interfaces.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# `@
|
|
1
|
+
# `@mychoice/mychoice-sdk-modules`
|
|
2
2
|
|
|
3
3
|
> TODO: description
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
const mychoiceSdkModules1 = require('@
|
|
8
|
+
const mychoiceSdkModules1 = require('@mychoice/mychoice-sdk-modules');
|
|
9
9
|
|
|
10
10
|
// TODO: DEMONSTRATE API
|
|
11
11
|
```
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var mychoiceSdkComponents = require('@
|
|
7
|
-
var mychoiceSdkStore = require('@
|
|
6
|
+
var mychoiceSdkComponents = require('@mychoice/mychoice-sdk-components');
|
|
7
|
+
var mychoiceSdkStore = require('@mychoice/mychoice-sdk-store');
|
|
8
8
|
var reactRouterDom = require('react-router-dom');
|
|
9
9
|
var React = require('react');
|
|
10
|
+
var lodash = require('lodash');
|
|
10
11
|
var GooglePlacesAutocomplete = require('react-google-places-autocomplete');
|
|
11
12
|
var reactSelect = require('react-select');
|
|
12
13
|
var reactHelmet = require('react-helmet');
|
|
@@ -1760,6 +1761,59 @@ const SectionQuoteRecalc$1 = () => {
|
|
|
1760
1761
|
return (jsxRuntime.jsxs("div", { className: "form-container", children: [jsxRuntime.jsx(TabVehicle, { readOnly: true }), jsxRuntime.jsxs("div", { className: `form-section edit-recalc-container ${mychoiceCls}`, children: [jsxRuntime.jsx(SelectFormBox, { options: mychoiceSdkComponents.coverageOptions, name: "comprehensive-coverage", onChange: handleComprehensiveChange, defaultValue: getSelectedOption(mychoiceSdkComponents.coverageOptions, comprehensive.coverage ? comprehensive.deductible : 0), title: "Comprehensive coverage", description: "This deductible is the amount of money that you will pay out of your own pocket if your vehicle is damaged in events not covered by collision coverage. This includes events such as falling or flying objects, vandalism, and theft. Your insurance company covers the cost of repair minus the deductible chosen.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsxRuntime.jsx(SelectFormBox, { options: mychoiceSdkComponents.coverageOptions, name: "collision-coverage", onChange: handleCollisionChange, defaultValue: getSelectedOption(mychoiceSdkComponents.coverageOptions, collision.coverage ? collision.deductible : 0), title: "Collision coverage", description: "This deductible is the specific dollar amount you will pay out of your own pocket if your vehicle is damaged in an accident. Your insurance company covers the remaining amount.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsxRuntime.jsx(SelectFormBox, { options: mychoiceSdkComponents.liabilityOptions, name: "liability-limit", onChange: handleLiabilityChange, defaultValue: getSelectedOption(mychoiceSdkComponents.liabilityOptions, liability.coverage ? liability.limit : 1000000), title: "Third Party Liability", description: "This protects you from lawsuits resulting from accidents causing bodily injury or death to others or property damage.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsxRuntime.jsx(BlockSubmit$2, { className: `${isTheBig ? 'thebig-bold' : 'mychoice'} recalculate`, label: "Recalculate Quote", buttonSize: mychoiceSdkComponents.SizeTypes.Medium, isRecalc: true }), isTheBig && jsxRuntime.jsx(BlockEndorsements, {})] })] }));
|
|
1761
1762
|
};
|
|
1762
1763
|
|
|
1764
|
+
const lockEmoji = '\u{1F512}';
|
|
1765
|
+
const savedPercentage = lodash.random(25, 30);
|
|
1766
|
+
const SectionConfirm = () => {
|
|
1767
|
+
const { discountState, dispatchDiscountState } = mychoiceSdkStore.useStoreFormCarDiscount();
|
|
1768
|
+
const { postPerformLeadsAction } = mychoiceSdkStore.CarQuoteDataHandler();
|
|
1769
|
+
const { quoteState } = mychoiceSdkStore.useStoreFormCarQuote();
|
|
1770
|
+
const { quoterInfo } = discountState;
|
|
1771
|
+
const { items: quotes } = quoteState;
|
|
1772
|
+
const { firstName, lastName, phone } = quoterInfo;
|
|
1773
|
+
const bestQuote = quotes.length ? quotes[0] : null;
|
|
1774
|
+
const [comparedCountMax] = React.useState(lodash.random(1021, 1502));
|
|
1775
|
+
const [comparedCountMin, setComparedCountMin] = React.useState(1000);
|
|
1776
|
+
React.useEffect(() => {
|
|
1777
|
+
if (comparedCountMin < comparedCountMax) {
|
|
1778
|
+
const intervalId = setInterval(() => {
|
|
1779
|
+
setComparedCountMin((prev) => prev + 1);
|
|
1780
|
+
}, 2.5);
|
|
1781
|
+
return () => {
|
|
1782
|
+
clearInterval(intervalId);
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
return () => { };
|
|
1786
|
+
}, [comparedCountMax, comparedCountMin]);
|
|
1787
|
+
const handleFirstNameChange = ({ value }) => {
|
|
1788
|
+
dispatchDiscountState({
|
|
1789
|
+
type: mychoiceSdkStore.StoreFormCarDiscountActionTypes.FormCarDiscountQuoterFirstNameSet,
|
|
1790
|
+
payload: { firstName: value },
|
|
1791
|
+
});
|
|
1792
|
+
};
|
|
1793
|
+
const handleLastNameChange = ({ value }) => {
|
|
1794
|
+
dispatchDiscountState({
|
|
1795
|
+
type: mychoiceSdkStore.StoreFormCarDiscountActionTypes.FormCarDiscountQuoterLastNameSet,
|
|
1796
|
+
payload: { lastName: value },
|
|
1797
|
+
});
|
|
1798
|
+
};
|
|
1799
|
+
const handlePhoneNumberChange = ({ value }) => {
|
|
1800
|
+
dispatchDiscountState({
|
|
1801
|
+
type: mychoiceSdkStore.StoreFormCarDiscountActionTypes.FormCarDiscountQuoterPhoneSet,
|
|
1802
|
+
payload: { phone: value },
|
|
1803
|
+
});
|
|
1804
|
+
};
|
|
1805
|
+
const handleSubmit = async () => {
|
|
1806
|
+
await postPerformLeadsAction?.();
|
|
1807
|
+
window.scrollTo({
|
|
1808
|
+
top: 0,
|
|
1809
|
+
behavior: 'smooth',
|
|
1810
|
+
});
|
|
1811
|
+
};
|
|
1812
|
+
if (!bestQuote)
|
|
1813
|
+
return null;
|
|
1814
|
+
return (jsxRuntime.jsxs("div", { style: { zIndex: '1' }, children: [jsxRuntime.jsxs("div", { className: "shadow-box mb", children: [jsxRuntime.jsx("div", { className: "large-title", children: "10+ Quotes Found" }), jsxRuntime.jsx("p", { children: "Complete the last step to reveal which insurance companies are offering these rates." })] }), jsxRuntime.jsxs("div", { className: "shadow-box", children: [jsxRuntime.jsx("div", { className: "highlighted-heading", children: "Best Offer" }), jsxRuntime.jsx("h1", { children: `$${bestQuote.priceMonthly} / month` }), jsxRuntime.jsx("div", { className: "highlighted-heading", children: jsxRuntime.jsx("span", { children: `$${bestQuote.priceYearly} / year` }) })] }), jsxRuntime.jsxs("div", { className: "statistics-wrapper", children: [jsxRuntime.jsx("div", { className: "counter", id: "output", children: comparedCountMin }), jsxRuntime.jsx("div", { className: "divider" }), jsxRuntime.jsx("div", { style: { textAlign: 'center', fontSize: '1.15rem', marginTop: '10px' }, children: `Canadians have compared rates in the last 24 hours and saved ${savedPercentage}% on average` })] }), jsxRuntime.jsx("div", { style: { marginBottom: '2rem' }, children: jsxRuntime.jsx("div", { className: "all-quotes-form", children: jsxRuntime.jsx("h2", { style: { whiteSpace: 'normal', marginTop: '20px', textAlign: 'center' }, children: `${lockEmoji} Complete the form below to see which companies are offering your quotes.` }) }) }), jsxRuntime.jsx("div", { style: { marginBottom: '1rem' }, children: jsxRuntime.jsx(InputFormBox, { name: "firstName", title: "First Name", onChange: handleFirstNameChange, defaultValue: firstName, placeholder: "Your First Name", error: !firstName && discountState.inValidation, errorMessage: getErrorMessage(firstName, discountState.inValidation) }) }), jsxRuntime.jsx("div", { style: { marginBottom: '1rem' }, children: jsxRuntime.jsx(InputFormBox, { name: "lastname", title: "Last Name", onChange: handleLastNameChange, defaultValue: lastName, placeholder: "Your Last Name", error: !lastName && discountState.inValidation, errorMessage: getErrorMessage(lastName, discountState.inValidation) }) }), jsxRuntime.jsx("div", { style: { marginBottom: '1rem' }, children: jsxRuntime.jsx(InputFormPhoneBox, { name: "phone", onChange: handlePhoneNumberChange, defaultValue: phone, title: "Phone Number", placeholder: "(111) 111-1111", error: !phone && discountState.inValidation, errorMessage: getErrorMessage(phone, discountState.inValidation) }) }), jsxRuntime.jsx("div", { className: "submit-wrapper", children: jsxRuntime.jsx(mychoiceSdkComponents.ButtonBase, { className: "mychoice", size: mychoiceSdkComponents.SizeTypes.Large, category: mychoiceSdkComponents.CategoryTypes.Filled, onClick: handleSubmit, color: mychoiceSdkComponents.ColorTypes.Primary, label: "Get Your Quote" }) }), jsxRuntime.jsxs("div", { className: "extra-info", children: [jsxRuntime.jsx("h5", { children: "On the next page, you will also be able to:" }), jsxRuntime.jsx("div", { className: "next-page-points", children: jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'column' }, children: [jsxRuntime.jsxs("div", { className: "bullet-container", children: [jsxRuntime.jsx("div", { className: "bullet-point", children: "1" }), jsxRuntime.jsx("div", { children: "See what rates insurance carriers are offering" })] }), jsxRuntime.jsxs("div", { className: "bullet-container", children: [jsxRuntime.jsx("div", { className: "bullet-point", children: "2" }), jsxRuntime.jsx("div", { children: "Get in touch with a broker and secure your rate" })] }), jsxRuntime.jsxs("div", { className: "bullet-container", children: [jsxRuntime.jsx("div", { className: "bullet-point", children: "3" }), jsxRuntime.jsx("div", { children: "Potentially save more by speaking with a broker" })] })] }) }), jsxRuntime.jsx("div", { className: "privacy-policy", children: jsxRuntime.jsxs("p", { children: ["Once you submit this form, you are agreeing to have your insurance quote sent to you via email and My Choice will provide your contact information to one of our trusted broker partners, who will contact you after your quote is complete to further assist you in securing your best rate. For more details, see our", jsxRuntime.jsx("a", { href: "https://www.mychoice.ca/privacy-policy/", children: " Privacy Policy" }), "."] }) })] }), jsxRuntime.jsxs("div", { className: "image-section", children: [jsxRuntime.jsx("div", { className: "providers-title", children: "We compare rates from Canada's top providers, including:" }), jsxRuntime.jsxs("div", { className: "providers-carousel", children: [jsxRuntime.jsx("img", { width: "175", height: "70", src: "https://www.mychoice.ca/wp-content/uploads/2023/02/logo-3.png", alt: "S.G.I. Canada" }), jsxRuntime.jsx("img", { width: "175", height: "70", src: "https://www.mychoice.ca/wp-content/uploads/2023/02/logo-5.png", alt: "Onlia Insurance" }), jsxRuntime.jsx("img", { width: "175", height: "70", src: "https://www.mychoice.ca/wp-content/uploads/2023/02/logo-4.png", alt: "Economical insurance" }), jsxRuntime.jsx("img", { width: "175", height: "70", src: "https://www.mychoice.ca/wp-content/uploads/2023/02/logo-1.png", alt: "CAA" }), jsxRuntime.jsx("img", { width: "175", height: "70", src: "https://www.mychoice.ca/wp-content/uploads/2023/06/Coachman-logo-2.png", alt: "Coachman" })] })] })] }));
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1763
1817
|
const SplashScreen$2 = () => {
|
|
1764
1818
|
const { discountState } = mychoiceSdkStore.useStoreFormCarDiscount();
|
|
1765
1819
|
const phoneObject = formatPhoneObject(discountState.quoterInfo.brokerInfo?.phone) || {};
|
|
@@ -1769,6 +1823,7 @@ const SplashScreen$2 = () => {
|
|
|
1769
1823
|
};
|
|
1770
1824
|
|
|
1771
1825
|
const PageCarQuote = () => {
|
|
1826
|
+
const { appConfigState: { appType } } = mychoiceSdkStore.useStoreAppConfig();
|
|
1772
1827
|
const { vehicleFormValidate, vehicleFormIsValid } = mychoiceSdkStore.useValidationVehicle();
|
|
1773
1828
|
const { driverFormValidate, driverFormIsValid } = mychoiceSdkStore.useValidationDriver();
|
|
1774
1829
|
const { carDiscountFormValidate, carDiscountFormIsValid } = mychoiceSdkStore.useValidationCarDiscount();
|
|
@@ -1776,7 +1831,10 @@ const PageCarQuote = () => {
|
|
|
1776
1831
|
const { postRequestQuote } = mychoiceSdkStore.CarQuoteDataHandler();
|
|
1777
1832
|
const { appLoaderState } = mychoiceSdkStore.useStoreAppLoader();
|
|
1778
1833
|
const { appDeviceType } = mychoiceSdkStore.useStoreDeviceType();
|
|
1779
|
-
const { items } = quoteState;
|
|
1834
|
+
const { items, quoteConfirm } = quoteState;
|
|
1835
|
+
const isTheBig = appType === mychoiceSdkComponents.AppTypes.TheBig;
|
|
1836
|
+
const hasConfirmStep = items?.length && !isTheBig && items[0]?.confirmQuote && quoteConfirm;
|
|
1837
|
+
const quoteItems = hasConfirmStep ? items?.slice(0, 3) : items;
|
|
1780
1838
|
mychoiceSdkComponents.useEffectOnce(() => {
|
|
1781
1839
|
if (!vehicleFormIsValid) {
|
|
1782
1840
|
vehicleFormValidate();
|
|
@@ -1795,27 +1853,25 @@ const PageCarQuote = () => {
|
|
|
1795
1853
|
behavior: 'smooth',
|
|
1796
1854
|
});
|
|
1797
1855
|
});
|
|
1798
|
-
return (jsxRuntime.jsx("div", { className: "quote-page-content", children: !appLoaderState.isOpen
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
&& (jsxRuntime.jsx("div", { className: "offer-container", children: !!items?.length
|
|
1811
|
-
&& items.map(({ company, brokerProfile, priceMonthly, priceYearly, }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile || (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
1856
|
+
return (jsxRuntime.jsx("div", { className: "quote-page-content", children: !appLoaderState.isOpen && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: "form-section-container", children: [appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && !hasConfirmStep && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: !!items?.length && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: !quoteState.showCallMessage
|
|
1857
|
+
? (jsxRuntime.jsx("div", { className: "offer-container", children: jsxRuntime.jsx(OfferSection, { isBestOffer: true, offerCompany: items[0]?.company, brokerCompany: items[0]?.brokerProfile, offerPrice: {
|
|
1858
|
+
monthly: items[0]?.priceMonthly,
|
|
1859
|
+
yearly: items[0]?.priceYearly,
|
|
1860
|
+
}, operationHours: {
|
|
1861
|
+
saturdayHours: items[0]?.brokerProfile.hoursSaturday,
|
|
1862
|
+
sundayHours: items[0]?.brokerProfile.hoursSunday,
|
|
1863
|
+
weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
|
|
1864
|
+
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) }))
|
|
1865
|
+
: jsxRuntime.jsx(SplashScreen$2, {}) })) })), (!hasConfirmStep || appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] }), appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile && quoteState.showCallMessage
|
|
1866
|
+
&& jsxRuntime.jsx(SplashScreen$2, {}), !quoteState.showCallMessage && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { style: { position: 'relative', width: '100%' }, children: [hasConfirmStep && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "offer-container", children: jsxRuntime.jsx(SectionConfirm, {}) }), appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile
|
|
1867
|
+
&& (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] })), jsxRuntime.jsx("div", { className: `offer-container ${hasConfirmStep ? 'blur' : ''}`, children: !!items?.length && quoteItems.map(({ company, brokerProfile, priceMonthly, priceYearly, }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile || (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
1812
1868
|
monthly: priceMonthly,
|
|
1813
1869
|
yearly: priceYearly,
|
|
1814
1870
|
}, operationHours: {
|
|
1815
1871
|
saturdayHours: brokerProfile.hoursSaturday,
|
|
1816
1872
|
sundayHours: brokerProfile.hoursSunday,
|
|
1817
1873
|
weekdayHours: brokerProfile.hoursWorkdays,
|
|
1818
|
-
}, phoneNumber: formatPhoneObject(brokerProfile.phone), redirectUrl: brokerProfile.redirectUrl || '' })) }, index))) }))] })) }));
|
|
1874
|
+
}, phoneNumber: formatPhoneObject(brokerProfile.phone), redirectUrl: brokerProfile.redirectUrl || '' })) }, index))) })] }) }))] })) }));
|
|
1819
1875
|
};
|
|
1820
1876
|
|
|
1821
1877
|
const IndicatorsContainer = () => jsxRuntime.jsx(jsxRuntime.Fragment, {});
|