@socotra/ec-react-components 2.3.0-next.9 → 2.4.0-next.0
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 +5 -5
- package/dist/index.es.js +8004 -7756
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
11
11
|
import { PolicyResponse } from '@socotra/ec-react-schemas';
|
|
12
12
|
import { QuoteRequest } from '@socotra/ec-react-schemas';
|
|
13
13
|
import { QuoteResponse } from '@socotra/ec-react-schemas';
|
|
14
|
-
import {
|
|
14
|
+
import { SegmentResponse } from '@socotra/ec-react-schemas';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* AccountForm is a form for creating or updating an account. It required a resolved data model, custom data types, and an optional account object to put the form in update mode.
|
|
@@ -33,7 +33,7 @@ export declare const ElementForm: {
|
|
|
33
33
|
* QuoteForm is a form for updating a quote. It required a product data model, custom data types, and quote object to render the form.
|
|
34
34
|
*/
|
|
35
35
|
export declare const PolicyForm: {
|
|
36
|
-
({ policy,
|
|
36
|
+
({ policy, segment, dataModel, id, title, }: Props_4): JSX_2.Element;
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -182,7 +182,7 @@ declare type Props_3 = {
|
|
|
182
182
|
/**
|
|
183
183
|
* The function to call when the form is submitted. It will create an ElementUpdateRequest.
|
|
184
184
|
*/
|
|
185
|
-
handleSubmit
|
|
185
|
+
handleSubmit?: (data: ElementRequest) => void;
|
|
186
186
|
/**
|
|
187
187
|
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
188
188
|
*/
|
|
@@ -225,9 +225,9 @@ declare type Props_4 = {
|
|
|
225
225
|
*/
|
|
226
226
|
policy: PolicyResponse;
|
|
227
227
|
/**
|
|
228
|
-
* The
|
|
228
|
+
* The segment object
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
segment: SegmentResponse;
|
|
231
231
|
/**
|
|
232
232
|
* The resolved data model retrieved from data model response
|
|
233
233
|
*/
|