@splpi/estore-shared-components 7.0.1 → 7.0.3
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.mts +131 -17
- package/dist/index.d.ts +131 -17
- package/dist/index.js +1380 -459
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1373 -434
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -70,10 +70,40 @@ interface LifePlanApplication1Props {
|
|
|
70
70
|
}
|
|
71
71
|
declare const LifePlanApplication1: ({ initialData, onUpdate, }: LifePlanApplication1Props) => react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
|
+
interface IOcrValue {
|
|
74
|
+
firstName?: string;
|
|
75
|
+
middleName?: string;
|
|
76
|
+
lastName?: string;
|
|
77
|
+
birthDate?: string;
|
|
78
|
+
idType?: string;
|
|
79
|
+
idNumber?: string;
|
|
80
|
+
addressLine?: string;
|
|
81
|
+
}
|
|
82
|
+
/** Shape returned by the host app's address parser (e.g. GeoApifyService.parseAddress). */
|
|
83
|
+
interface IParsedAddress {
|
|
84
|
+
lot: string;
|
|
85
|
+
street: string;
|
|
86
|
+
barangay: string;
|
|
87
|
+
district: string;
|
|
88
|
+
city: string;
|
|
89
|
+
province: string;
|
|
90
|
+
zipCode: string;
|
|
91
|
+
barangayCandidates: string[];
|
|
92
|
+
districtCandidates: string[];
|
|
93
|
+
cityCandidates: string[];
|
|
94
|
+
provinceCandidates: string[];
|
|
95
|
+
geoapifyUsed: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
73
98
|
interface LifePlanApplication2Props {
|
|
74
99
|
onAddressUpdate?: (address: IAddress) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Optional address parser from the host app (e.g. GeoApifyService.parseAddress).
|
|
102
|
+
* When provided, the scanned ID address (OCR) is split into the form fields.
|
|
103
|
+
*/
|
|
104
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
75
105
|
}
|
|
76
|
-
declare const LifePlanApplication2: ({ onAddressUpdate, }: LifePlanApplication2Props) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare const LifePlanApplication2: ({ onAddressUpdate, parseAddress, }: LifePlanApplication2Props) => react_jsx_runtime.JSX.Element;
|
|
77
107
|
|
|
78
108
|
interface LifePlanApplication3Props {
|
|
79
109
|
initialData?: IEmployment;
|
|
@@ -88,20 +118,116 @@ declare const Beneficiary: ({ onUpdate }: BeneficiaryProps) => react_jsx_runtime
|
|
|
88
118
|
|
|
89
119
|
declare const HealthDeclaration: () => react_jsx_runtime.JSX.Element;
|
|
90
120
|
|
|
91
|
-
declare const LifePlanApplicationFormWrapper: ({ openSection, openSectionKey, onValidChange, }: {
|
|
121
|
+
declare const LifePlanApplicationFormWrapper: ({ openSection, openSectionKey, onValidChange, parseAddress, }: {
|
|
92
122
|
openSection?: string;
|
|
93
123
|
openSectionKey?: number;
|
|
94
124
|
onValidChange?: (valid: boolean) => void;
|
|
125
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
95
126
|
}) => react_jsx_runtime.JSX.Element;
|
|
96
127
|
|
|
97
|
-
|
|
128
|
+
interface CartItem {
|
|
129
|
+
planDesc: string;
|
|
130
|
+
mode: string;
|
|
131
|
+
planTerm: string;
|
|
132
|
+
quantity: number;
|
|
133
|
+
price: number;
|
|
134
|
+
total: number;
|
|
135
|
+
contractPrice: number;
|
|
136
|
+
ipInstAmt?: number;
|
|
137
|
+
balance?: number;
|
|
138
|
+
}
|
|
98
139
|
|
|
140
|
+
type NewSalesCheckoutItem = {
|
|
141
|
+
planDesc: CartItem["planDesc"];
|
|
142
|
+
mode: CartItem["mode"];
|
|
143
|
+
ipInstAmt: number;
|
|
144
|
+
planTerm: CartItem["planTerm"];
|
|
145
|
+
quantity: number;
|
|
146
|
+
};
|
|
147
|
+
type NewSalesCheckoutRequest = {
|
|
148
|
+
items: NewSalesCheckoutItem[];
|
|
149
|
+
application: IApplicationData;
|
|
150
|
+
};
|
|
99
151
|
type SharedLifePlanApplicationProps = {
|
|
100
152
|
title?: string;
|
|
101
153
|
description?: string;
|
|
102
154
|
onPaymentError?: (error: unknown) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Called on the payment step with the cart items and application data.
|
|
157
|
+
* Must return the checkout URL (e.g. from PayMongoService.createNewSalesCheckout).
|
|
158
|
+
*/
|
|
159
|
+
onCheckout?: (request: NewSalesCheckoutRequest) => Promise<string | undefined>;
|
|
160
|
+
/** Optional address parser used to fill the address form from the scanned ID. */
|
|
161
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
103
162
|
};
|
|
104
|
-
declare const SharedLifePlanApplication: ({ title, description, onPaymentError, }: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare const SharedLifePlanApplication: ({ title, description, onPaymentError, onCheckout, parseAddress, }: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare const LifePlanApplicationStepWrapper: (props: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const OCR_STORAGE_KEY = "ocrResult";
|
|
168
|
+
type OcrSection = "personal" | "address";
|
|
169
|
+
/** Returns the saved OCR result if it has not been applied to this section yet. */
|
|
170
|
+
declare const readOcrResult: (section: OcrSection) => IOcrValue | null;
|
|
171
|
+
/** Marks the OCR result as used for this section. Returns true the first time only. */
|
|
172
|
+
declare const markOcrApplied: (section: OcrSection) => boolean;
|
|
173
|
+
/** Saves a fresh OCR result (clears any "applied" flags from a previous scan). */
|
|
174
|
+
declare const saveOcrResult: (value: IOcrValue) => void;
|
|
175
|
+
/** Removes the saved OCR result. */
|
|
176
|
+
declare const clearOcrResult: () => void;
|
|
177
|
+
|
|
178
|
+
/** The host app's ID scanner, e.g. `OcrService.scanId`. */
|
|
179
|
+
type ScanIdFn = (file: File) => Promise<IOcrValue>;
|
|
180
|
+
/**
|
|
181
|
+
* Wraps the host app's ID scanner and saves the result so the
|
|
182
|
+
* Life Plan Application form (Step 1 and Step 2) can autofill from it.
|
|
183
|
+
*/
|
|
184
|
+
declare function useOcr(scanIdFn: ScanIdFn): {
|
|
185
|
+
data: IOcrValue | null;
|
|
186
|
+
loading: boolean;
|
|
187
|
+
error: string | null;
|
|
188
|
+
scanId: (file: File) => Promise<IOcrValue>;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
type GetStartedNotifyType = "info" | "error";
|
|
192
|
+
type GetStartedProps = {
|
|
193
|
+
/** Host app's ID scanner, e.g. `OcrService.scanId`. The result is saved for form autofill. */
|
|
194
|
+
scanId: ScanIdFn;
|
|
195
|
+
/** Called on Skip / Continue in the Referral Agent dialog, e.g. `() => router.push("/lifeplan-application")`. */
|
|
196
|
+
onContinue?: () => void;
|
|
197
|
+
/** Shows a message to the user, e.g. `(type, msg) => toast[type](msg)`. Defaults to console. */
|
|
198
|
+
notify?: (type: GetStartedNotifyType, message: string) => void;
|
|
199
|
+
};
|
|
200
|
+
declare const GetStarted: ({ scanId: scanIdFn, onContinue, notify, }: GetStartedProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
202
|
+
interface DocumentTypeConfig {
|
|
203
|
+
/** Unique id for this document slot. */
|
|
204
|
+
id: string;
|
|
205
|
+
/** Human-readable label shown in the card header. */
|
|
206
|
+
label: string;
|
|
207
|
+
/** Optional supporting description under the label. */
|
|
208
|
+
description?: string;
|
|
209
|
+
/** Comma-separated accept string, e.g. "image/png,image/jpeg,.pdf". */
|
|
210
|
+
accept: string;
|
|
211
|
+
/** Maximum allowed file size in megabytes. */
|
|
212
|
+
maxSizeMB: number;
|
|
213
|
+
/** Whether the document is required for submission. */
|
|
214
|
+
required?: boolean;
|
|
215
|
+
/** Short hint shown inside the dropzone. */
|
|
216
|
+
hint?: string;
|
|
217
|
+
/** Which AI processor handles this doc — affects completed-state copy. */
|
|
218
|
+
processor?: "signature" | "extraction" | string;
|
|
219
|
+
/** Icon component (from react-icons) rendered in the header. */
|
|
220
|
+
icon: React$1.ElementType;
|
|
221
|
+
}
|
|
222
|
+
type DocumentStatus = "idle" | "uploading" | "processing" | "completed" | "failed";
|
|
223
|
+
declare function DocumentUploadCard({ config, onStatusChange, onProcess, onError, }: {
|
|
224
|
+
config: DocumentTypeConfig;
|
|
225
|
+
/** Tells the parent when this slot's upload status changes. */
|
|
226
|
+
onStatusChange?: (status: DocumentStatus) => void;
|
|
227
|
+
onProcess?: (file: File) => Promise<unknown>;
|
|
228
|
+
/** Shows an error message (e.g. the host app's toast). Defaults to console.error. */
|
|
229
|
+
onError?: (message: string) => void;
|
|
230
|
+
}): react_jsx_runtime.JSX.Element;
|
|
105
231
|
|
|
106
232
|
type QuickAction = {
|
|
107
233
|
/** React Icons icon component */
|
|
@@ -185,20 +311,8 @@ interface ReusableProfileProps {
|
|
|
185
311
|
}
|
|
186
312
|
declare function ReusableProfile({ user, colorMode: controlledColorMode, onColorModeChange, initialTwoFactorEnabled, initialQuickNavHrefs, availableNavOptions, maxQuickNavItems, enableLocalStorage, storageKey, onSaveAccount, onChangePassword, onSignOut, onTwoFactorChange, onToast, }: ReusableProfileProps): react_jsx_runtime.JSX.Element;
|
|
187
313
|
|
|
188
|
-
interface CartItem {
|
|
189
|
-
planDesc: string;
|
|
190
|
-
mode: string;
|
|
191
|
-
planTerm: string;
|
|
192
|
-
quantity: number;
|
|
193
|
-
price: number;
|
|
194
|
-
total: number;
|
|
195
|
-
contractPrice: number;
|
|
196
|
-
ipInstAmt?: number;
|
|
197
|
-
balance?: number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
314
|
declare const createEmptyApplicationData: () => IApplicationData;
|
|
201
315
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
202
316
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
203
317
|
|
|
204
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, NotifyInstall, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|
|
318
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, type DocumentStatus, type DocumentTypeConfig, DocumentUploadCard, GetStarted, type GetStartedNotifyType, type GetStartedProps, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IOcrValue, type IParsedAddress, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, type NewSalesCheckoutItem, type NewSalesCheckoutRequest, NotifyInstall, OCR_STORAGE_KEY, type OcrSection, type ProfileUser, type ReusableProfileProps, type ScanIdFn, SharedLifePlanApplication, type SharedLifePlanApplicationProps, ReusableProfile as UserProfile, clearOcrResult, createEmptyApplicationData, loadApplicationDataFromLocalStorage, markOcrApplied, readOcrResult, saveApplicationDataToLocalStorage, saveOcrResult, useOcr };
|
package/dist/index.d.ts
CHANGED
|
@@ -70,10 +70,40 @@ interface LifePlanApplication1Props {
|
|
|
70
70
|
}
|
|
71
71
|
declare const LifePlanApplication1: ({ initialData, onUpdate, }: LifePlanApplication1Props) => react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
|
+
interface IOcrValue {
|
|
74
|
+
firstName?: string;
|
|
75
|
+
middleName?: string;
|
|
76
|
+
lastName?: string;
|
|
77
|
+
birthDate?: string;
|
|
78
|
+
idType?: string;
|
|
79
|
+
idNumber?: string;
|
|
80
|
+
addressLine?: string;
|
|
81
|
+
}
|
|
82
|
+
/** Shape returned by the host app's address parser (e.g. GeoApifyService.parseAddress). */
|
|
83
|
+
interface IParsedAddress {
|
|
84
|
+
lot: string;
|
|
85
|
+
street: string;
|
|
86
|
+
barangay: string;
|
|
87
|
+
district: string;
|
|
88
|
+
city: string;
|
|
89
|
+
province: string;
|
|
90
|
+
zipCode: string;
|
|
91
|
+
barangayCandidates: string[];
|
|
92
|
+
districtCandidates: string[];
|
|
93
|
+
cityCandidates: string[];
|
|
94
|
+
provinceCandidates: string[];
|
|
95
|
+
geoapifyUsed: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
73
98
|
interface LifePlanApplication2Props {
|
|
74
99
|
onAddressUpdate?: (address: IAddress) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Optional address parser from the host app (e.g. GeoApifyService.parseAddress).
|
|
102
|
+
* When provided, the scanned ID address (OCR) is split into the form fields.
|
|
103
|
+
*/
|
|
104
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
75
105
|
}
|
|
76
|
-
declare const LifePlanApplication2: ({ onAddressUpdate, }: LifePlanApplication2Props) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare const LifePlanApplication2: ({ onAddressUpdate, parseAddress, }: LifePlanApplication2Props) => react_jsx_runtime.JSX.Element;
|
|
77
107
|
|
|
78
108
|
interface LifePlanApplication3Props {
|
|
79
109
|
initialData?: IEmployment;
|
|
@@ -88,20 +118,116 @@ declare const Beneficiary: ({ onUpdate }: BeneficiaryProps) => react_jsx_runtime
|
|
|
88
118
|
|
|
89
119
|
declare const HealthDeclaration: () => react_jsx_runtime.JSX.Element;
|
|
90
120
|
|
|
91
|
-
declare const LifePlanApplicationFormWrapper: ({ openSection, openSectionKey, onValidChange, }: {
|
|
121
|
+
declare const LifePlanApplicationFormWrapper: ({ openSection, openSectionKey, onValidChange, parseAddress, }: {
|
|
92
122
|
openSection?: string;
|
|
93
123
|
openSectionKey?: number;
|
|
94
124
|
onValidChange?: (valid: boolean) => void;
|
|
125
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
95
126
|
}) => react_jsx_runtime.JSX.Element;
|
|
96
127
|
|
|
97
|
-
|
|
128
|
+
interface CartItem {
|
|
129
|
+
planDesc: string;
|
|
130
|
+
mode: string;
|
|
131
|
+
planTerm: string;
|
|
132
|
+
quantity: number;
|
|
133
|
+
price: number;
|
|
134
|
+
total: number;
|
|
135
|
+
contractPrice: number;
|
|
136
|
+
ipInstAmt?: number;
|
|
137
|
+
balance?: number;
|
|
138
|
+
}
|
|
98
139
|
|
|
140
|
+
type NewSalesCheckoutItem = {
|
|
141
|
+
planDesc: CartItem["planDesc"];
|
|
142
|
+
mode: CartItem["mode"];
|
|
143
|
+
ipInstAmt: number;
|
|
144
|
+
planTerm: CartItem["planTerm"];
|
|
145
|
+
quantity: number;
|
|
146
|
+
};
|
|
147
|
+
type NewSalesCheckoutRequest = {
|
|
148
|
+
items: NewSalesCheckoutItem[];
|
|
149
|
+
application: IApplicationData;
|
|
150
|
+
};
|
|
99
151
|
type SharedLifePlanApplicationProps = {
|
|
100
152
|
title?: string;
|
|
101
153
|
description?: string;
|
|
102
154
|
onPaymentError?: (error: unknown) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Called on the payment step with the cart items and application data.
|
|
157
|
+
* Must return the checkout URL (e.g. from PayMongoService.createNewSalesCheckout).
|
|
158
|
+
*/
|
|
159
|
+
onCheckout?: (request: NewSalesCheckoutRequest) => Promise<string | undefined>;
|
|
160
|
+
/** Optional address parser used to fill the address form from the scanned ID. */
|
|
161
|
+
parseAddress?: (addressLine: string) => Promise<IParsedAddress>;
|
|
103
162
|
};
|
|
104
|
-
declare const SharedLifePlanApplication: ({ title, description, onPaymentError, }: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare const SharedLifePlanApplication: ({ title, description, onPaymentError, onCheckout, parseAddress, }: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare const LifePlanApplicationStepWrapper: (props: SharedLifePlanApplicationProps) => react_jsx_runtime.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const OCR_STORAGE_KEY = "ocrResult";
|
|
168
|
+
type OcrSection = "personal" | "address";
|
|
169
|
+
/** Returns the saved OCR result if it has not been applied to this section yet. */
|
|
170
|
+
declare const readOcrResult: (section: OcrSection) => IOcrValue | null;
|
|
171
|
+
/** Marks the OCR result as used for this section. Returns true the first time only. */
|
|
172
|
+
declare const markOcrApplied: (section: OcrSection) => boolean;
|
|
173
|
+
/** Saves a fresh OCR result (clears any "applied" flags from a previous scan). */
|
|
174
|
+
declare const saveOcrResult: (value: IOcrValue) => void;
|
|
175
|
+
/** Removes the saved OCR result. */
|
|
176
|
+
declare const clearOcrResult: () => void;
|
|
177
|
+
|
|
178
|
+
/** The host app's ID scanner, e.g. `OcrService.scanId`. */
|
|
179
|
+
type ScanIdFn = (file: File) => Promise<IOcrValue>;
|
|
180
|
+
/**
|
|
181
|
+
* Wraps the host app's ID scanner and saves the result so the
|
|
182
|
+
* Life Plan Application form (Step 1 and Step 2) can autofill from it.
|
|
183
|
+
*/
|
|
184
|
+
declare function useOcr(scanIdFn: ScanIdFn): {
|
|
185
|
+
data: IOcrValue | null;
|
|
186
|
+
loading: boolean;
|
|
187
|
+
error: string | null;
|
|
188
|
+
scanId: (file: File) => Promise<IOcrValue>;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
type GetStartedNotifyType = "info" | "error";
|
|
192
|
+
type GetStartedProps = {
|
|
193
|
+
/** Host app's ID scanner, e.g. `OcrService.scanId`. The result is saved for form autofill. */
|
|
194
|
+
scanId: ScanIdFn;
|
|
195
|
+
/** Called on Skip / Continue in the Referral Agent dialog, e.g. `() => router.push("/lifeplan-application")`. */
|
|
196
|
+
onContinue?: () => void;
|
|
197
|
+
/** Shows a message to the user, e.g. `(type, msg) => toast[type](msg)`. Defaults to console. */
|
|
198
|
+
notify?: (type: GetStartedNotifyType, message: string) => void;
|
|
199
|
+
};
|
|
200
|
+
declare const GetStarted: ({ scanId: scanIdFn, onContinue, notify, }: GetStartedProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
202
|
+
interface DocumentTypeConfig {
|
|
203
|
+
/** Unique id for this document slot. */
|
|
204
|
+
id: string;
|
|
205
|
+
/** Human-readable label shown in the card header. */
|
|
206
|
+
label: string;
|
|
207
|
+
/** Optional supporting description under the label. */
|
|
208
|
+
description?: string;
|
|
209
|
+
/** Comma-separated accept string, e.g. "image/png,image/jpeg,.pdf". */
|
|
210
|
+
accept: string;
|
|
211
|
+
/** Maximum allowed file size in megabytes. */
|
|
212
|
+
maxSizeMB: number;
|
|
213
|
+
/** Whether the document is required for submission. */
|
|
214
|
+
required?: boolean;
|
|
215
|
+
/** Short hint shown inside the dropzone. */
|
|
216
|
+
hint?: string;
|
|
217
|
+
/** Which AI processor handles this doc — affects completed-state copy. */
|
|
218
|
+
processor?: "signature" | "extraction" | string;
|
|
219
|
+
/** Icon component (from react-icons) rendered in the header. */
|
|
220
|
+
icon: React$1.ElementType;
|
|
221
|
+
}
|
|
222
|
+
type DocumentStatus = "idle" | "uploading" | "processing" | "completed" | "failed";
|
|
223
|
+
declare function DocumentUploadCard({ config, onStatusChange, onProcess, onError, }: {
|
|
224
|
+
config: DocumentTypeConfig;
|
|
225
|
+
/** Tells the parent when this slot's upload status changes. */
|
|
226
|
+
onStatusChange?: (status: DocumentStatus) => void;
|
|
227
|
+
onProcess?: (file: File) => Promise<unknown>;
|
|
228
|
+
/** Shows an error message (e.g. the host app's toast). Defaults to console.error. */
|
|
229
|
+
onError?: (message: string) => void;
|
|
230
|
+
}): react_jsx_runtime.JSX.Element;
|
|
105
231
|
|
|
106
232
|
type QuickAction = {
|
|
107
233
|
/** React Icons icon component */
|
|
@@ -185,20 +311,8 @@ interface ReusableProfileProps {
|
|
|
185
311
|
}
|
|
186
312
|
declare function ReusableProfile({ user, colorMode: controlledColorMode, onColorModeChange, initialTwoFactorEnabled, initialQuickNavHrefs, availableNavOptions, maxQuickNavItems, enableLocalStorage, storageKey, onSaveAccount, onChangePassword, onSignOut, onTwoFactorChange, onToast, }: ReusableProfileProps): react_jsx_runtime.JSX.Element;
|
|
187
313
|
|
|
188
|
-
interface CartItem {
|
|
189
|
-
planDesc: string;
|
|
190
|
-
mode: string;
|
|
191
|
-
planTerm: string;
|
|
192
|
-
quantity: number;
|
|
193
|
-
price: number;
|
|
194
|
-
total: number;
|
|
195
|
-
contractPrice: number;
|
|
196
|
-
ipInstAmt?: number;
|
|
197
|
-
balance?: number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
314
|
declare const createEmptyApplicationData: () => IApplicationData;
|
|
201
315
|
declare const loadApplicationDataFromLocalStorage: (storageKey?: string) => IApplicationData | null;
|
|
202
316
|
declare const saveApplicationDataToLocalStorage: (data: IApplicationData, storageKey?: string) => void;
|
|
203
317
|
|
|
204
|
-
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, NotifyInstall, type ProfileUser, type ReusableProfileProps, SharedLifePlanApplication, ReusableProfile as UserProfile, createEmptyApplicationData, loadApplicationDataFromLocalStorage, saveApplicationDataToLocalStorage };
|
|
318
|
+
export { Beneficiary, type BeneficiaryClass, BottomQuickActions, type CartItem, type DocumentStatus, type DocumentTypeConfig, DocumentUploadCard, GetStarted, type GetStartedNotifyType, type GetStartedProps, HealthDeclaration, type IAddress, type IApplicationData, type IBeneficiary, type IEmployment, type IHealthDeclaration, type IOcrValue, type IParsedAddress, type IPersonalInfo, type ITransactionData, LifePlanApplication1, LifePlanApplication2, LifePlanApplication3, LifePlanApplicationFormWrapper, LifePlanApplicationStepWrapper, type NavOptionDef, type NewSalesCheckoutItem, type NewSalesCheckoutRequest, NotifyInstall, OCR_STORAGE_KEY, type OcrSection, type ProfileUser, type ReusableProfileProps, type ScanIdFn, SharedLifePlanApplication, type SharedLifePlanApplicationProps, ReusableProfile as UserProfile, clearOcrResult, createEmptyApplicationData, loadApplicationDataFromLocalStorage, markOcrApplied, readOcrResult, saveApplicationDataToLocalStorage, saveOcrResult, useOcr };
|