@mychoice/mychoice-sdk-modules 1.0.2 → 2.0.1
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/cjs/index.js +3216 -2070
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init/AppModal/interfaces.d.ts +1 -1
- package/dist/cjs/init/AppTitle/AppTitle.d.ts +6 -0
- package/dist/cjs/init/AppTitle/MetaFields.d.ts +5 -0
- package/dist/cjs/init/AppTitle/index.d.ts +1 -0
- package/dist/cjs/init/helper.d.ts +1 -1
- package/dist/cjs/init/index.d.ts +0 -1
- package/dist/cjs/insurances/car/pages/discount/helpers.d.ts +14 -0
- package/dist/cjs/insurances/car/pages/driver/helpers.d.ts +5 -0
- package/dist/cjs/insurances/car/pages/index.d.ts +0 -1
- package/dist/cjs/insurances/car/pages/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/index.d.ts +1 -1
- package/dist/cjs/insurances/helpers.d.ts +2 -2
- package/dist/cjs/insurances/home/pages/index.d.ts +1 -0
- package/dist/cjs/insurances/home/pages/quote/PageQuote.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/index.d.ts +1 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/cjs/insurances/home/pages/quote/sections/index.d.ts +2 -0
- package/dist/cjs/insurances/index.d.ts +1 -0
- package/dist/cjs/insurances/life/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/coverage/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/coverage/sections/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/helpers.d.ts +4 -0
- package/dist/cjs/insurances/life/pages/index.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/quote/PageQuote.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/quote/sections/index.d.ts +1 -0
- package/dist/cjs/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
- package/dist/cjs/shared/boxes/InputFormBox/interface.d.ts +3 -2
- package/dist/cjs/shared/boxes/LabelFormBox/interface.d.ts +3 -2
- package/dist/cjs/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/cjs/shared/headers/interfaces.d.ts +3 -3
- package/dist/cjs/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
- package/dist/cjs/shared/modals/ModalAddress/index.d.ts +1 -0
- package/dist/cjs/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
- package/dist/cjs/shared/modals/index.d.ts +1 -0
- package/dist/cjs/shared/modals/interfaces.d.ts +5 -5
- package/dist/cjs/shared/navigations/NavigationTab/interface.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
- package/dist/cjs/shared/navigations/constants/insuranceSteps.d.ts +65 -5
- package/dist/cjs/shared/navigations/interfaces.d.ts +11 -5
- package/dist/cjs/shared/sections/quotes/interfaces.d.ts +2 -1
- package/dist/esm/index.js +3207 -2061
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init/AppModal/interfaces.d.ts +1 -1
- package/dist/esm/init/AppTitle/AppTitle.d.ts +6 -0
- package/dist/esm/init/AppTitle/MetaFields.d.ts +5 -0
- package/dist/esm/init/AppTitle/index.d.ts +1 -0
- package/dist/esm/init/helper.d.ts +1 -1
- package/dist/esm/init/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/discount/helpers.d.ts +14 -0
- package/dist/esm/insurances/car/pages/driver/helpers.d.ts +5 -0
- package/dist/esm/insurances/car/pages/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/interfaces.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/index.d.ts +1 -1
- package/dist/esm/insurances/helpers.d.ts +2 -2
- package/dist/esm/insurances/home/pages/index.d.ts +1 -0
- package/dist/esm/insurances/home/pages/quote/PageQuote.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/index.d.ts +1 -0
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/esm/insurances/home/pages/quote/sections/index.d.ts +2 -0
- package/dist/esm/insurances/index.d.ts +1 -0
- package/dist/esm/insurances/life/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
- package/dist/esm/insurances/life/pages/applicant/sections/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
- package/dist/esm/insurances/life/pages/coverage/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
- package/dist/esm/insurances/life/pages/coverage/sections/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/helpers.d.ts +4 -0
- package/dist/esm/insurances/life/pages/index.d.ts +3 -0
- package/dist/esm/insurances/life/pages/quote/PageQuote.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/esm/insurances/life/pages/quote/sections/index.d.ts +1 -0
- package/dist/esm/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
- package/dist/esm/shared/boxes/InputFormBox/interface.d.ts +3 -2
- package/dist/esm/shared/boxes/LabelFormBox/interface.d.ts +3 -2
- package/dist/esm/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/esm/shared/headers/interfaces.d.ts +3 -3
- package/dist/esm/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
- package/dist/esm/shared/modals/ModalAddress/index.d.ts +1 -0
- package/dist/esm/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
- package/dist/esm/shared/modals/index.d.ts +1 -0
- package/dist/esm/shared/modals/interfaces.d.ts +5 -5
- package/dist/esm/shared/navigations/NavigationTab/interface.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
- package/dist/esm/shared/navigations/constants/insuranceSteps.d.ts +65 -5
- package/dist/esm/shared/navigations/interfaces.d.ts +11 -5
- package/dist/esm/shared/sections/quotes/interfaces.d.ts +2 -1
- package/dist/index.d.ts +113 -51
- package/package.json +8 -5
- package/dist/images/logotype-mychoice-primary.png +0 -0
- package/dist/images/logotype-thebig-primary.png +0 -0
- package/dist/images/pigLoader.mp4 +0 -0
- package/dist/images/powered-by-mychoice.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as _mychoice_mychoice_sdk_components from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
import { AppTypes, InsuranceTypes, SdkFC, SelectOptionInterface,
|
|
3
|
-
import { FormCarConfigStateInterface } from '@mychoice/mychoice-sdk-store';
|
|
2
|
+
import { AppTypes, InsuranceTypes, SdkFC, SelectOptionInterface, DefaultInputProps, OnChangeEventInterface, InputTypes, ValidationStatusTypes, SdkElement, SelectOptionGroupInterface, DateTypes, OfferDetailTitleProps, OfferDetailInfoProps, PriceInterface, OperationHoursInfoProps, NavigationItemInterface, ValidationHookInterface } from '@mychoice/mychoice-sdk-components';
|
|
4
3
|
import * as react from 'react';
|
|
5
|
-
import { FormEvent } from 'react';
|
|
6
4
|
|
|
7
5
|
interface AppWrapperPropsInterface {
|
|
8
6
|
appType?: AppTypes;
|
|
@@ -17,23 +15,15 @@ interface StoryAppWrapperInterface {
|
|
|
17
15
|
|
|
18
16
|
declare const StoryAppWrapper: SdkFC<StoryAppWrapperInterface>;
|
|
19
17
|
|
|
20
|
-
declare const getInsuranceType: () => InsuranceTypes.Car | InsuranceTypes.Home;
|
|
21
|
-
|
|
22
18
|
declare const PageVehicle: SdkFC;
|
|
23
19
|
|
|
24
20
|
declare const PageDriver: SdkFC;
|
|
25
21
|
|
|
26
22
|
declare const PageCarDiscount: SdkFC;
|
|
27
23
|
|
|
28
|
-
declare const
|
|
29
|
-
|
|
30
|
-
declare const getLicenceTypeOptions: (options: SelectOptionInterface[], optionValues: string[], disabled: boolean) => SelectOptionInterface[];
|
|
31
|
-
declare const checkDateIsSpecial: (defaultMinDate: string, specialDate: string) => boolean;
|
|
32
|
-
declare const getLicenceMinDate: (licenceType: DriverLicenceTypes, defaultMinDate: string, config: FormCarConfigStateInterface) => string;
|
|
33
|
-
declare const getLicenceMaxDate: (licenceType: DriverLicenceTypes, minDate: string, config: FormCarConfigStateInterface) => string;
|
|
34
|
-
declare const getDisabledLicenceTypes: (gBlock: boolean, g2Block: boolean, g1Block: boolean) => string[];
|
|
24
|
+
declare const PageCarQuote: SdkFC;
|
|
35
25
|
|
|
36
|
-
|
|
26
|
+
type FormTabProps = {
|
|
37
27
|
createItem?: () => void;
|
|
38
28
|
readOnly?: boolean;
|
|
39
29
|
};
|
|
@@ -51,8 +41,16 @@ declare const PageProperty: SdkFC;
|
|
|
51
41
|
|
|
52
42
|
declare const PageHomeDiscount: SdkFC;
|
|
53
43
|
|
|
54
|
-
declare const
|
|
55
|
-
|
|
44
|
+
declare const PageHomeQuote: SdkFC;
|
|
45
|
+
|
|
46
|
+
declare const PageCoverage: SdkFC;
|
|
47
|
+
|
|
48
|
+
declare const PageLifeApplicant: SdkFC;
|
|
49
|
+
|
|
50
|
+
declare const PageLifeQuote: SdkFC;
|
|
51
|
+
|
|
52
|
+
declare const getSelectedOption: (options: SelectOptionInterface[], val: string | number | boolean | undefined | null) => _mychoice_mychoice_sdk_components.InputValueType;
|
|
53
|
+
declare const getErrorMessage: (value: number | string | boolean | null | undefined, inValidation?: boolean, message?: string) => string;
|
|
56
54
|
declare const getDateErrorMessage: (values: string[], inValidation?: boolean) => "" | "This field is required." | "These fields are required.";
|
|
57
55
|
declare const formatPhoneObject: (phone: string) => {
|
|
58
56
|
number: string;
|
|
@@ -62,7 +60,7 @@ declare const formatPhoneObject: (phone: string) => {
|
|
|
62
60
|
declare const formatTitleToCapital: (name: string) => string;
|
|
63
61
|
declare const capitalize: (text: string) => string;
|
|
64
62
|
|
|
65
|
-
|
|
63
|
+
type InputFormBoxProps = DefaultInputProps & {
|
|
66
64
|
name: string;
|
|
67
65
|
title: string;
|
|
68
66
|
subTitle?: string;
|
|
@@ -71,8 +69,9 @@ declare type InputFormBoxProps = DefaultInputProps & {
|
|
|
71
69
|
errorMessage?: string;
|
|
72
70
|
hintMessage?: string;
|
|
73
71
|
type?: InputTypes;
|
|
72
|
+
manipulateInput?: (value: string) => string;
|
|
74
73
|
};
|
|
75
|
-
|
|
74
|
+
type InputFormEmailBoxProps = InputFormBoxProps & {
|
|
76
75
|
validationStatus?: ValidationStatusTypes;
|
|
77
76
|
};
|
|
78
77
|
|
|
@@ -84,18 +83,18 @@ declare const InputFormEmailBox: SdkFC<InputFormEmailBoxProps>;
|
|
|
84
83
|
|
|
85
84
|
declare const InputFormLicenceBox: SdkFC<InputFormBoxProps>;
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
type LabelFormBoxProps = {
|
|
88
87
|
className?: string;
|
|
89
88
|
title?: string;
|
|
90
89
|
subTitle?: string;
|
|
91
|
-
description?: string;
|
|
90
|
+
description?: string | SdkElement;
|
|
92
91
|
name?: string;
|
|
93
92
|
isRemovable?: boolean;
|
|
94
93
|
onIconClick?: () => void;
|
|
95
94
|
isActive?: boolean;
|
|
96
95
|
};
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
type SelectFormBoxProps$1 = DefaultInputProps & LabelFormBoxProps & {
|
|
99
98
|
name: string;
|
|
100
99
|
title: string;
|
|
101
100
|
options?: SelectOptionInterface[];
|
|
@@ -108,7 +107,7 @@ declare type SelectFormBoxProps$1 = DefaultInputProps & LabelFormBoxProps & {
|
|
|
108
107
|
|
|
109
108
|
declare const SelectFormBox: SdkFC<SelectFormBoxProps$1>;
|
|
110
109
|
|
|
111
|
-
|
|
110
|
+
type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
|
|
112
111
|
name: string;
|
|
113
112
|
title: string;
|
|
114
113
|
options?: SelectOptionInterface[];
|
|
@@ -118,7 +117,7 @@ declare type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
|
|
|
118
117
|
hintMessage?: string;
|
|
119
118
|
autoSelectIfValueIsOutOfOptions?: boolean;
|
|
120
119
|
};
|
|
121
|
-
|
|
120
|
+
type DateSelectFormBoxProps = SelectFormBoxProps & {
|
|
122
121
|
onDateChange: (dateType: DateTypes) => (option: OnChangeEventInterface) => void;
|
|
123
122
|
isDay?: boolean;
|
|
124
123
|
isMonth?: boolean;
|
|
@@ -132,7 +131,7 @@ declare const DateSelectFormBox: SdkFC<DateSelectFormBoxProps>;
|
|
|
132
131
|
|
|
133
132
|
declare const LabelFormBox: SdkFC<LabelFormBoxProps>;
|
|
134
133
|
|
|
135
|
-
|
|
134
|
+
type SwitchButtonBoxProps = LabelFormBoxProps & {
|
|
136
135
|
name: string;
|
|
137
136
|
defaultValue: string;
|
|
138
137
|
items: SelectOptionInterface[];
|
|
@@ -143,7 +142,7 @@ declare type SwitchButtonBoxProps = LabelFormBoxProps & {
|
|
|
143
142
|
|
|
144
143
|
declare const SwitchButtonBox: SdkFC<SwitchButtonBoxProps>;
|
|
145
144
|
|
|
146
|
-
|
|
145
|
+
type OfferSectionProps = {
|
|
147
146
|
phoneNumber?: PhoneObjectInterface;
|
|
148
147
|
offerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
|
|
149
148
|
brokerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
|
|
@@ -151,17 +150,18 @@ declare type OfferSectionProps = {
|
|
|
151
150
|
isBestOffer?: boolean;
|
|
152
151
|
operationHours?: OperationHoursInfoProps;
|
|
153
152
|
redirectUrl?: string;
|
|
153
|
+
fulfillmentUrl?: string;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
declare const OfferSection: SdkFC<OfferSectionProps>;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
type HeaderLogoProps = {
|
|
159
159
|
className?: string;
|
|
160
160
|
};
|
|
161
|
-
|
|
161
|
+
type HeaderTheBigProps = HeaderLogoProps & {
|
|
162
162
|
textBack?: string;
|
|
163
163
|
};
|
|
164
|
-
|
|
164
|
+
type AppNameTypes = AppTypes.MyChoice | AppTypes.Partner | AppTypes.TheBig;
|
|
165
165
|
|
|
166
166
|
declare const HeaderMyChoice: SdkFC<HeaderLogoProps>;
|
|
167
167
|
|
|
@@ -188,41 +188,38 @@ declare const ModalConfirm: SdkFC;
|
|
|
188
188
|
|
|
189
189
|
declare const ModalMessage: SdkFC;
|
|
190
190
|
|
|
191
|
-
declare
|
|
191
|
+
declare const ModalPostal: SdkFC;
|
|
192
|
+
|
|
193
|
+
declare const ModalAddress: SdkFC;
|
|
194
|
+
|
|
195
|
+
declare const ModalFinale: SdkFC;
|
|
196
|
+
|
|
197
|
+
type BaseModalProps = {
|
|
192
198
|
title?: string;
|
|
193
199
|
description?: string;
|
|
194
200
|
};
|
|
195
|
-
|
|
196
|
-
defaultValue?: string;
|
|
197
|
-
error?: string;
|
|
198
|
-
onChange?: (option: OnChangeEventInterface) => void;
|
|
199
|
-
onSubmit?: (event: FormEvent) => void;
|
|
200
|
-
loading?: boolean;
|
|
201
|
-
};
|
|
202
|
-
declare type QuoteRequestModalProps = BaseModalProps & {
|
|
201
|
+
type QuoteRequestModalProps = BaseModalProps & {
|
|
203
202
|
phoneNumber?: string;
|
|
204
203
|
};
|
|
205
204
|
|
|
206
|
-
declare const ModalPostal: SdkFC<InputPostalProps>;
|
|
207
|
-
|
|
208
|
-
declare const ModalFinale: SdkFC;
|
|
209
|
-
|
|
210
205
|
declare const ModalQuoteRequest: SdkFC<QuoteRequestModalProps>;
|
|
211
206
|
|
|
212
|
-
|
|
207
|
+
type StepsProps = {
|
|
213
208
|
partnerId?: string;
|
|
214
209
|
className?: string;
|
|
215
210
|
isMobile?: boolean;
|
|
216
211
|
activeIndex?: number;
|
|
217
212
|
formSteps: NavigationItemInterface[];
|
|
218
213
|
validationHooks: ValidationHookInterface[];
|
|
214
|
+
estimatedTime?: number;
|
|
215
|
+
propertyIsCompleted?: boolean;
|
|
219
216
|
};
|
|
220
|
-
|
|
217
|
+
type PostalCodeDataProps = {
|
|
221
218
|
className?: string;
|
|
222
219
|
title?: string;
|
|
223
220
|
postalCode?: string;
|
|
224
221
|
};
|
|
225
|
-
|
|
222
|
+
type ButtonBoxProps = {
|
|
226
223
|
isMobile?: boolean;
|
|
227
224
|
activeIndex?: number;
|
|
228
225
|
onBackClick?: () => void;
|
|
@@ -230,9 +227,12 @@ declare type ButtonBoxProps = {
|
|
|
230
227
|
clearForm?: () => void;
|
|
231
228
|
formSteps: NavigationItemInterface[];
|
|
232
229
|
validationHooks: ValidationHookInterface[];
|
|
230
|
+
propertyIsCompleted?: boolean;
|
|
231
|
+
};
|
|
232
|
+
type NavigationTopProps = PostalCodeDataProps & ButtonBoxProps & {
|
|
233
|
+
estimatedTime?: number;
|
|
233
234
|
};
|
|
234
|
-
|
|
235
|
-
declare type NavigationBottomProps = {
|
|
235
|
+
type NavigationBottomProps = {
|
|
236
236
|
className?: string;
|
|
237
237
|
activeIndex?: number;
|
|
238
238
|
createItem?: () => void;
|
|
@@ -241,6 +241,7 @@ declare type NavigationBottomProps = {
|
|
|
241
241
|
formSteps: NavigationItemInterface[];
|
|
242
242
|
maxItemCount?: number;
|
|
243
243
|
itemCount?: number;
|
|
244
|
+
specialCallback?: () => void;
|
|
244
245
|
};
|
|
245
246
|
|
|
246
247
|
declare const NavigationTop: SdkFC<NavigationTopProps>;
|
|
@@ -253,7 +254,7 @@ interface NavigationTabInterface {
|
|
|
253
254
|
name: string;
|
|
254
255
|
index: number;
|
|
255
256
|
}
|
|
256
|
-
|
|
257
|
+
type NavigationTabProps = {
|
|
257
258
|
className?: string;
|
|
258
259
|
name: string;
|
|
259
260
|
addButtonLabel: string;
|
|
@@ -273,20 +274,81 @@ declare const NavigationTab: SdkFC<NavigationTabProps>;
|
|
|
273
274
|
declare const NavigationTabMobile: SdkFC<NavigationTabProps>;
|
|
274
275
|
|
|
275
276
|
declare const formSteps: {
|
|
276
|
-
car: {
|
|
277
|
+
car: ({
|
|
277
278
|
key: number;
|
|
278
279
|
path: string;
|
|
279
280
|
name: string;
|
|
280
281
|
title: string;
|
|
282
|
+
mychoiceTitle: string;
|
|
281
283
|
icon: react.ReactElement<any, any> | null;
|
|
282
|
-
}
|
|
283
|
-
home: {
|
|
284
|
+
} | {
|
|
284
285
|
key: number;
|
|
285
286
|
path: string;
|
|
286
287
|
name: string;
|
|
287
288
|
title: string;
|
|
288
289
|
icon: react.ReactElement<any, any> | null;
|
|
289
|
-
|
|
290
|
+
mychoiceTitle?: undefined;
|
|
291
|
+
})[];
|
|
292
|
+
home: ({
|
|
293
|
+
key: number;
|
|
294
|
+
path: string;
|
|
295
|
+
name: string;
|
|
296
|
+
title: string;
|
|
297
|
+
mychoiceTitle: string;
|
|
298
|
+
icon: react.ReactElement<any, any> | null;
|
|
299
|
+
} | {
|
|
300
|
+
key: number;
|
|
301
|
+
path: string;
|
|
302
|
+
name: string;
|
|
303
|
+
title: string;
|
|
304
|
+
icon: react.ReactElement<any, any> | null;
|
|
305
|
+
mychoiceTitle?: undefined;
|
|
306
|
+
})[];
|
|
307
|
+
condo: ({
|
|
308
|
+
key: number;
|
|
309
|
+
path: string;
|
|
310
|
+
name: string;
|
|
311
|
+
title: string;
|
|
312
|
+
mychoiceTitle: string;
|
|
313
|
+
icon: react.ReactElement<any, any> | null;
|
|
314
|
+
} | {
|
|
315
|
+
key: number;
|
|
316
|
+
path: string;
|
|
317
|
+
name: string;
|
|
318
|
+
title: string;
|
|
319
|
+
icon: react.ReactElement<any, any> | null;
|
|
320
|
+
mychoiceTitle?: undefined;
|
|
321
|
+
})[];
|
|
322
|
+
tenant: ({
|
|
323
|
+
key: number;
|
|
324
|
+
path: string;
|
|
325
|
+
name: string;
|
|
326
|
+
title: string;
|
|
327
|
+
mychoiceTitle: string;
|
|
328
|
+
icon: react.ReactElement<any, any> | null;
|
|
329
|
+
} | {
|
|
330
|
+
key: number;
|
|
331
|
+
path: string;
|
|
332
|
+
name: string;
|
|
333
|
+
title: string;
|
|
334
|
+
icon: react.ReactElement<any, any> | null;
|
|
335
|
+
mychoiceTitle?: undefined;
|
|
336
|
+
})[];
|
|
337
|
+
life: ({
|
|
338
|
+
key: number;
|
|
339
|
+
path: string;
|
|
340
|
+
name: string;
|
|
341
|
+
title: string;
|
|
342
|
+
mychoiceTitle: string;
|
|
343
|
+
icon: react.ReactElement<any, any> | null;
|
|
344
|
+
} | {
|
|
345
|
+
key: number;
|
|
346
|
+
path: string;
|
|
347
|
+
name: string;
|
|
348
|
+
title: string;
|
|
349
|
+
icon: react.ReactElement<any, any> | null;
|
|
350
|
+
mychoiceTitle?: undefined;
|
|
351
|
+
})[];
|
|
290
352
|
};
|
|
291
353
|
|
|
292
|
-
export { AppNameTypes, AppWrapper, ButtonBoxProps, DateSelectFormBox, FormTabProps, HeaderLogoProps, HeaderMyChoice, HeaderMyChoiceMobile, HeaderPartner, HeaderTheBig, HeaderTheBigProps, InputFormBox, InputFormEmailBox, InputFormLicenceBox, InputFormPhoneBox, LabelFormBox, LoaderPrimary, ModalConfirm, ModalFinale, ModalMessage, ModalPostal, ModalQuoteRequest, NavigationBottom, NavigationBottomProps, NavigationBottomTheBig, NavigationTab, NavigationTabInterface, NavigationTabMobile, NavigationTabProps, NavigationTop, NavigationTopProps, OfferSection, PageAddress, PageApplicant, PageCarDiscount, PageDriver, PageHomeDiscount,
|
|
354
|
+
export { AppNameTypes, AppWrapper, ButtonBoxProps, DateSelectFormBox, FormTabProps, HeaderLogoProps, HeaderMyChoice, HeaderMyChoiceMobile, HeaderPartner, HeaderTheBig, HeaderTheBigProps, InputFormBox, InputFormEmailBox, InputFormLicenceBox, InputFormPhoneBox, LabelFormBox, LoaderPrimary, ModalAddress, ModalConfirm, ModalFinale, ModalMessage, ModalPostal, ModalQuoteRequest, NavigationBottom, NavigationBottomProps, NavigationBottomTheBig, NavigationTab, NavigationTabInterface, NavigationTabMobile, NavigationTabProps, NavigationTop, NavigationTopProps, OfferSection, PageAddress, PageApplicant, PageCarDiscount, PageCarQuote, PageCoverage, PageDriver, PageHomeDiscount, PageHomeQuote, PageLifeApplicant, PageLifeQuote, PageProperty, PageVehicle, PhoneObjectInterface, PostalCodeDataProps, SelectFormBox, StepsProps, StoryAppWrapper, SwitchButtonBox, capitalize, formSteps, formatPhoneObject, formatTitleToCapital, getDateErrorMessage, getErrorMessage, getSelectedOption, usePathGroups };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mychoice/mychoice-sdk-modules",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"publishConfig": {
|
|
19
|
-
"access": "
|
|
19
|
+
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -30,11 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/hexdivision/mychoice-sdk#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@mychoice/mychoice-sdk-components": "^
|
|
34
|
-
"@mychoice/mychoice-sdk-store": "^
|
|
33
|
+
"@mychoice/mychoice-sdk-components": "^2.0.1",
|
|
34
|
+
"@mychoice/mychoice-sdk-store": "^2.0.1",
|
|
35
35
|
"@types/react-gtm-module": "^2.0.1",
|
|
36
|
+
"@types/react-places-autocomplete": "7.2.9",
|
|
37
|
+
"react-google-places-autocomplete": "4.0.1",
|
|
36
38
|
"react-gtm-module": "^2.0.11",
|
|
39
|
+
"react-helmet": "^6.1.0",
|
|
37
40
|
"react-router-dom": "^6.3.0"
|
|
38
41
|
},
|
|
39
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d343cd66b47905a65fb230f9afbe0ac69f945ea7"
|
|
40
43
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|