@mychoice/mychoice-sdk-modules 2.1.1 → 2.1.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.
@@ -1,2 +1 @@
1
1
  export { AppWrapper } from './AppWrapper';
2
- export { StoryAppWrapper } from './StoryAppWrapper';
package/dist/esm/index.js CHANGED
@@ -3973,7 +3973,7 @@ const AppRouteWrapper = (props) => {
3973
3973
  }
3974
3974
  }
3975
3975
  }, [carPostal, homePostal, lifePostal, isReady]);
3976
- return (jsx(Fragment, { children: isReady && (jsxs(Fragment, { children: [jsx(AppHeader, {}), jsx(AppModal, {}), insuranceType && (jsx(NavigationTop, { title: `${insuranceType.replace(/^./, insuranceType[0].toUpperCase())} Insurance Quote`, postalCode: postalCode, formSteps: steps, validationHooks: validationHooks, clearForm: clearFormData, propertyIsCompleted: isCompleted })), insuranceType && appType === AppTypes.MyChoice && (jsx("div", { className: "step-progress-bar", children: jsx("span", { style: { width: progressLength } }) })), jsx("div", { className: `${insuranceType ? 'form-page-content' : ''} ${insuranceType && appType === AppTypes.MyChoice ? 'mychoice' : ''}`, children: insuranceType && appType === AppTypes.MyChoice && isDesktop && progressLength ? (jsx(Fragment, { children: jsxs("div", { className: "mychoice-content", children: [jsx(StepsBox, { className: "step-box", formSteps: steps, validationHooks: validationHooks, propertyIsCompleted: isCompleted }), children, jsx("div", { className: "empty-steps-container" })] }) })) : children }), !appLoaderState.isOpen && jsx(ProviderImageFooter, {})] })) }));
3976
+ return (jsx(Fragment, { children: isReady && (jsxs(Fragment, { children: [jsx(AppHeader, {}), jsx(AppModal, {}), insuranceType && (jsx(NavigationTop, { title: `${insuranceType.replace(/^./, insuranceType[0].toUpperCase())} Insurance Quote`, postalCode: postalCode, formSteps: steps, validationHooks: validationHooks, clearForm: clearFormData, propertyIsCompleted: isCompleted })), insuranceType && appType === AppTypes.MyChoice && (jsx("div", { className: "step-progress-bar", children: jsx("span", { style: { width: progressLength } }) })), jsx("div", { className: `${insuranceType ? 'form-page-content' : ''} ${insuranceType && appType === AppTypes.MyChoice ? 'mychoice' : ''}`, children: insuranceType && appType === AppTypes.MyChoice && isDesktop && progressLength ? (jsx(Fragment, { children: jsxs("div", { className: "mychoice-content", children: [jsx(StepsBox, { className: "step-box", formSteps: steps, validationHooks: validationHooks, propertyIsCompleted: isCompleted }), children, jsx("div", { className: "empty-steps-container" })] }) })) : children }), !appLoaderState.isOpen && insuranceType === InsuranceTypes.Car && jsx(ProviderImageFooter, {})] })) }));
3977
3977
  };
3978
3978
  const NestedRoutes = () => {
3979
3979
  const insuranceType = getInsuranceType();
@@ -4299,58 +4299,5 @@ AppWrapper.defaultProps = {
4299
4299
  insuranceType: InsuranceTypes.Car,
4300
4300
  };
4301
4301
 
4302
- const StoreConfig = () => {
4303
- const { dispatchAppConfigState } = useStoreAppConfig();
4304
- const { dispatchDriverBaseState } = useStoreFormCarDriverBase();
4305
- const { dispatchVehicleState } = useStoreFormCarVehicle();
4306
- const { dispatchDeviceState } = useStoreAppDevice();
4307
- const windowResize = () => {
4308
- dispatchDeviceState({
4309
- type: StoreConfigAppDeviceActionTypes.AppDeviceSetSize,
4310
- payload: {
4311
- width: window.innerWidth,
4312
- height: window.innerHeight,
4313
- },
4314
- });
4315
- };
4316
- useEffectOnce(() => {
4317
- dispatchDriverBaseState({
4318
- type: StoreFormCarDriverBaseActionTypes.FormCarDriverGetLocal,
4319
- });
4320
- dispatchVehicleState({
4321
- type: StoreFormCarVehicleActionTypes.FormCarVehicleGetLocal,
4322
- });
4323
- dispatchAppConfigState({
4324
- type: StoreConfigAppConfigActionTypes.AppConfigSetIsReady,
4325
- payload: true,
4326
- });
4327
- window.addEventListener('resize', windowResize);
4328
- windowResize();
4329
- });
4330
- return null;
4331
- };
4332
- const StoryAppWrapperConfig = (props) => {
4333
- const { children } = props;
4334
- const { appConfigState, dispatchAppConfigState } = useStoreAppConfig();
4335
- useEffectOnce(() => {
4336
- dispatchAppConfigState({
4337
- type: StoreConfigAppConfigActionTypes.AppConfigSetDrawWrapper,
4338
- payload: true,
4339
- });
4340
- });
4341
- return (jsxs(Fragment, { children: [jsx(StoreConfig, {}), appConfigState.drawWrapper
4342
- && (jsxs(Fragment, { children: [jsx(AppModal, {}), children] }))] }));
4343
- };
4344
- const StoryAppWrapper = (props) => {
4345
- const { appType, children } = props;
4346
- useEffectOnce(() => {
4347
- initHttpResponse();
4348
- });
4349
- return (jsx(StoreProvider, { children: jsx(BrowserRouter, { children: jsx(StoryAppWrapperConfig, { appType: appType, children: children }) }) }));
4350
- };
4351
- StoryAppWrapper.defaultProps = {
4352
- appType: AppTypes.MyChoice,
4353
- };
4354
-
4355
- export { AppWrapper, DateSelectFormBox, HeaderMyChoice, HeaderMyChoiceMobile, HeaderPartner, HeaderTheBig, InputFormBox, InputFormEmailBox, InputFormLicenceBox, InputFormPhoneBox, LabelFormBox, LoaderPrimary, ModalAddress, ModalConfirm, ModalFinale, ModalMessage, ModalPostal, ModalQuoteRequest, NavigationBottom, NavigationBottomTheBig, NavigationTab, NavigationTabMobile, NavigationTop, OfferSection, PageAddress, PageApplicant, PageCarDiscount, PageCarQuote, PageCoverage, PageDriver, PageHomeDiscount, PageHomeQuote, PageLifeApplicant, PageLifeQuote, PageProperty, PageVehicle, ProviderImageFooter, SelectFormBox, StoryAppWrapper, SwitchButtonBox, capitalize, formSteps, formatPhoneObject, formatTitleToCapital, getDateErrorMessage, getErrorMessage, getSelectedOption, usePathGroups };
4302
+ export { AppWrapper, DateSelectFormBox, HeaderMyChoice, HeaderMyChoiceMobile, HeaderPartner, HeaderTheBig, InputFormBox, InputFormEmailBox, InputFormLicenceBox, InputFormPhoneBox, LabelFormBox, LoaderPrimary, ModalAddress, ModalConfirm, ModalFinale, ModalMessage, ModalPostal, ModalQuoteRequest, NavigationBottom, NavigationBottomTheBig, NavigationTab, NavigationTabMobile, NavigationTop, OfferSection, PageAddress, PageApplicant, PageCarDiscount, PageCarQuote, PageCoverage, PageDriver, PageHomeDiscount, PageHomeQuote, PageLifeApplicant, PageLifeQuote, PageProperty, PageVehicle, ProviderImageFooter, SelectFormBox, SwitchButtonBox, capitalize, formSteps, formatPhoneObject, formatTitleToCapital, getDateErrorMessage, getErrorMessage, getSelectedOption, usePathGroups };
4356
4303
  //# sourceMappingURL=index.js.map