@mychoice/mychoice-sdk-components 2.1.86 → 2.2.14

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/dist/index.d.ts CHANGED
@@ -122,6 +122,11 @@ declare const limitedWaiverOfDepreciationOptions: {
122
122
  name: string;
123
123
  value: number;
124
124
  }[];
125
+ declare const accidentBenefitsOptionalOptions: {
126
+ name: string;
127
+ value: string;
128
+ description: string;
129
+ }[];
125
130
  declare const trafficTicketsGroupOptions: {
126
131
  label: string;
127
132
  options: {
@@ -141,7 +146,8 @@ declare const defaultBrokerPhone = "1-855-843-1570";
141
146
  declare enum AppTypes {
142
147
  MyChoice = "MyChoice",
143
148
  Partner = "Partner",
144
- TheBig = "TheBig"
149
+ TheBig = "TheBig",
150
+ BeginInsurance = "BeginInsurance"
145
151
  }
146
152
  declare enum InsuranceTypes {
147
153
  Car = "car",
@@ -790,6 +796,15 @@ declare const getDifferenceInYears: (dateLeft: string, dateRight: string) => num
790
796
  declare const getDifferenceInMonths: (dateLeft: string, dateRight: string) => number;
791
797
  declare const getDifferenceInHours: (dateLeft: string, dateRight: string) => number;
792
798
 
799
+ /**
800
+ * Check if the appType is MyChoice-like (MyChoice or BeginInsurance)
801
+ * Both share the same UI structure but with different branding/colors
802
+ */
803
+ declare const isMyChoiceLike: (appType: AppTypes) => boolean;
804
+ /**
805
+ * Get placeholder email based on appType
806
+ */
807
+ declare const getPlaceholderEmail: (appType: AppTypes) => string;
793
808
  declare const getNumericOptions: (start: number, end: number, suffix?: string) => SelectOptionInterface[];
794
809
  declare const formatPostalCode: (str?: string) => string;
795
810
  declare const postalCodeFormat: (postalCode?: string) => string;
@@ -807,4 +822,4 @@ declare const getInsuranceType: () => InsuranceTypes;
807
822
 
808
823
  declare const useEffectOnce: (effect: () => void | (() => void)) => void;
809
824
 
810
- export { API_APP, API_AUTH, API_FORM_CAR, API_FORM_HOME, API_FORM_LIFE, API_ROOT, AlignTypes, AppTypes, ApplicantListTypes, ButtonArrow, ButtonArrowProps, ButtonBase, ButtonBaseProps, ButtonForm, ButtonFormProps, ButtonMenu, ButtonMenuProps, ButtonTab, ButtonTabArrow, ButtonTabArrowProps, ButtonTabMobile, ButtonTypes, ButtonVariantTypes, CategoryTypes, CheckboxForm, CheckboxProps, ColorTypes, ColorVariablesTypes, CompanyRoleTypes, CoverageTypes, DateTypes, DefaultInputProps, DeviceTypeWidthList, DeviceTypes, DirectionTypes, DriverLicenceTypes, DriverListTypes, DriverPriorityTypes, DwellingInfoTypes, EmailInputProps, GenderTypes, HeaderDropDown, HeaderDropDownProps, HeaderNavGroup, HeaderNavGroupProps, HttpRequestHeaderTypes, IconArrow, IconChecked, IconClock, IconDecline, IconDelete, IconDropdownArrow, IconLoaderPrimary, IconLoaderSecondary, IconSuccess, IconTabArrow, IconTooltip, InfoMessage, InputForm, InputFormEmail, InputFormLicence, InputFormPhone, InputProps, InputTypes, InputValueType, InsuranceTypes, MAX_LOCAL_STORAGE_HOURS, MAX_LOCAL_STORAGE_HOURS_THEBIG, ModalTypes, MychoiceStep, NavItemInterface, NavigationAddress, NavigationBase, NavigationCar, NavigationDiscount, NavigationItemInterface, NavigationPerson, NavigationProperty, NavigationQuotes, NavigationTabProps, OccupationTypes, OfferDetail, OfferDetailInfoProps, OfferDetailProps, OfferDetailTitle, OfferDetailTitleProps, OfferHeader, OfferHeaderProps, OfferPrice, OfferPriceProps, OnChangeEventInterface, OperationHoursInfo, OperationHoursInfoProps, PROFILE_API, PriceInterface, QuoteEdit, QuoteEditProps, RequestStatusTypes, RequestTypes, ScreenBPList, ScreenBPTypes, SdkChildren, SdkElement, SdkFC, SdkNode, SdkTooltip, SelectDateErrorInterface, SelectDateInterface, SelectForm, SelectOptionGroupInterface, SelectOptionInterface, SelectProps, SizeTypes, StartEndDatesInterface, Step, StepProps, TitleForm, TitleProps, TooltipForm, TooltipProps, UseReducerType, ValidationHookInterface, ValidationOptionsInterface, ValidationStatusTypes, VehicleConditionTypes, VehicleMakeInterface, VehicleModelInterface, VehiclePrimaryUseTypes, addDaysToDate, addMonthsToDate, addYearsToDate, applicantRelationshipOptions, auxHeatingTypeOptions, carCondition, carKeepPlace, carStatus, carUsagePurpose, carWinterTiresCheck, checkDateIsSpecial, claimTypeOptions, collisionCoverage, compareDates, comprehensiveCoverage, comprehensiveCoverages, condoBuildingStructureOptions, constructionTypeOptions, coverageOptions, dailyDriveBusinessDistanceList, deepClone, defaultBrokerPhone, defaultLocalIndex, exteriorFinishOptions, fireHallDistanceOptions, fireHydrantDistanceOptions, firstDriveDistanceList, formatPostalCode, garageTypeOptions, genderOptions, getDateOptions, getDayStartEndDates, getDaysOfMonth, getDifferenceInHours, getDifferenceInMonths, getDifferenceInYears, getDisabledLicenceTypes, getEndOfMonth, getEndOfYear, getFormattedDate, getInsuranceType, getInsuranceYearsOptions, getLicenceMaxDate, getLicenceMinDate, getLicenceTypeOptions, getMinDate, getMinDateByYears, getMonthStartEndDates, getNumericOptions, getStartOfMonth, getStartOfYear, getValueIndexInOptions, getValuesFromNumbers, getYearIntervalOptions, getYearStartEndDates, homeBuildingStructureOptions, homeCoverageOptions, homeLiabilityOptions, homeOwnerTypeOptions, insuranceCancellationReasonOptions, insuredYearsOptions, isDateValid, isValueInOptions, liabilityForDamageOptions, liabilityOptions, licenceSuspensionsReasonOptions, lifeCoverageOptions, lifeInsuranceOntarioTypeOptions, lifeInsuranceTypeOptions, lifeProvinceOptions, lifeProvinceOptionsMC, limitedWaiverOfDepreciationOptions, lossOfUseOptions, maritalStatusOptions, numberWithCommas, occupationOptions, optionsIsEqual, postalCodeFormat, ppOptions, primaryHeatingTypeOptions, residentsOptions, smokerOptions, subDaysFromDate, subMonthsFromDate, subYearsFromDate, supportedProvinceCodes, tenantBuildingStructureOptions, trafficTicketsGroupOptions, useEffectOnce, yearlyDriveDistanceList, yesNoOptions };
825
+ export { API_APP, API_AUTH, API_FORM_CAR, API_FORM_HOME, API_FORM_LIFE, API_ROOT, AlignTypes, AppTypes, ApplicantListTypes, ButtonArrow, ButtonArrowProps, ButtonBase, ButtonBaseProps, ButtonForm, ButtonFormProps, ButtonMenu, ButtonMenuProps, ButtonTab, ButtonTabArrow, ButtonTabArrowProps, ButtonTabMobile, ButtonTypes, ButtonVariantTypes, CategoryTypes, CheckboxForm, CheckboxProps, ColorTypes, ColorVariablesTypes, CompanyRoleTypes, CoverageTypes, DateTypes, DefaultInputProps, DeviceTypeWidthList, DeviceTypes, DirectionTypes, DriverLicenceTypes, DriverListTypes, DriverPriorityTypes, DwellingInfoTypes, EmailInputProps, GenderTypes, HeaderDropDown, HeaderDropDownProps, HeaderNavGroup, HeaderNavGroupProps, HttpRequestHeaderTypes, IconArrow, IconChecked, IconClock, IconDecline, IconDelete, IconDropdownArrow, IconLoaderPrimary, IconLoaderSecondary, IconSuccess, IconTabArrow, IconTooltip, InfoMessage, InputForm, InputFormEmail, InputFormLicence, InputFormPhone, InputProps, InputTypes, InputValueType, InsuranceTypes, MAX_LOCAL_STORAGE_HOURS, MAX_LOCAL_STORAGE_HOURS_THEBIG, ModalTypes, MychoiceStep, NavItemInterface, NavigationAddress, NavigationBase, NavigationCar, NavigationDiscount, NavigationItemInterface, NavigationPerson, NavigationProperty, NavigationQuotes, NavigationTabProps, OccupationTypes, OfferDetail, OfferDetailInfoProps, OfferDetailProps, OfferDetailTitle, OfferDetailTitleProps, OfferHeader, OfferHeaderProps, OfferPrice, OfferPriceProps, OnChangeEventInterface, OperationHoursInfo, OperationHoursInfoProps, PROFILE_API, PriceInterface, QuoteEdit, QuoteEditProps, RequestStatusTypes, RequestTypes, ScreenBPList, ScreenBPTypes, SdkChildren, SdkElement, SdkFC, SdkNode, SdkTooltip, SelectDateErrorInterface, SelectDateInterface, SelectForm, SelectOptionGroupInterface, SelectOptionInterface, SelectProps, SizeTypes, StartEndDatesInterface, Step, StepProps, TitleForm, TitleProps, TooltipForm, TooltipProps, UseReducerType, ValidationHookInterface, ValidationOptionsInterface, ValidationStatusTypes, VehicleConditionTypes, VehicleMakeInterface, VehicleModelInterface, VehiclePrimaryUseTypes, accidentBenefitsOptionalOptions, addDaysToDate, addMonthsToDate, addYearsToDate, applicantRelationshipOptions, auxHeatingTypeOptions, carCondition, carKeepPlace, carStatus, carUsagePurpose, carWinterTiresCheck, checkDateIsSpecial, claimTypeOptions, collisionCoverage, compareDates, comprehensiveCoverage, comprehensiveCoverages, condoBuildingStructureOptions, constructionTypeOptions, coverageOptions, dailyDriveBusinessDistanceList, deepClone, defaultBrokerPhone, defaultLocalIndex, exteriorFinishOptions, fireHallDistanceOptions, fireHydrantDistanceOptions, firstDriveDistanceList, formatPostalCode, garageTypeOptions, genderOptions, getDateOptions, getDayStartEndDates, getDaysOfMonth, getDifferenceInHours, getDifferenceInMonths, getDifferenceInYears, getDisabledLicenceTypes, getEndOfMonth, getEndOfYear, getFormattedDate, getInsuranceType, getInsuranceYearsOptions, getLicenceMaxDate, getLicenceMinDate, getLicenceTypeOptions, getMinDate, getMinDateByYears, getMonthStartEndDates, getNumericOptions, getPlaceholderEmail, getStartOfMonth, getStartOfYear, getValueIndexInOptions, getValuesFromNumbers, getYearIntervalOptions, getYearStartEndDates, homeBuildingStructureOptions, homeCoverageOptions, homeLiabilityOptions, homeOwnerTypeOptions, insuranceCancellationReasonOptions, insuredYearsOptions, isDateValid, isMyChoiceLike, isValueInOptions, liabilityForDamageOptions, liabilityOptions, licenceSuspensionsReasonOptions, lifeCoverageOptions, lifeInsuranceOntarioTypeOptions, lifeInsuranceTypeOptions, lifeProvinceOptions, lifeProvinceOptionsMC, limitedWaiverOfDepreciationOptions, lossOfUseOptions, maritalStatusOptions, numberWithCommas, occupationOptions, optionsIsEqual, postalCodeFormat, ppOptions, primaryHeatingTypeOptions, residentsOptions, smokerOptions, subDaysFromDate, subMonthsFromDate, subYearsFromDate, supportedProvinceCodes, tenantBuildingStructureOptions, trafficTicketsGroupOptions, useEffectOnce, yearlyDriveDistanceList, yesNoOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mychoice/mychoice-sdk-components",
3
- "version": "2.1.86",
3
+ "version": "2.2.14",
4
4
  "description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
5
5
  "keywords": [],
6
6
  "author": "GogMes",
@@ -34,5 +34,5 @@
34
34
  "rc-tooltip": "^5.2.2",
35
35
  "react-phone-input-2": "^2.15.0"
36
36
  },
37
- "gitHead": "dd0991517628b3def4d1c1ffa1635efbb8a3bea0"
37
+ "gitHead": "cc0ad353a328188d1259ec1cb95333dd5ceb4b8f"
38
38
  }