@vergelijkdirect/comparison-forms 2.0.0 → 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/vue/comparison-forms.d.ts +16 -1
- package/dist/vue/comparison-forms.js +333 -375
- package/dist/wc/comparison-forms.js +3028 -3149
- package/dist/wc-forms/business-car.cjs +1 -1
- package/dist/wc-forms/business-liability.cjs +1 -1
- package/dist/wc-forms/car.cjs +1 -1
- package/dist/wc-forms/company.schema-BLoMUJDa.cjs +1 -0
- package/dist/wc-forms/house.cjs +1 -1
- package/dist/wc-forms/itc-nSCTLC1V.cjs +1 -0
- package/dist/wc-forms/legal.cjs +1 -1
- package/dist/wc-forms/liability.cjs +1 -1
- package/dist/wc-forms/moped.cjs +1 -1
- package/dist/wc-forms/motor.cjs +1 -1
- package/dist/wc-forms/package.cjs +1 -1
- package/dist/wc-forms/useAddress-DJ4aWwYs.cjs +1 -0
- package/dist/wc-forms/useLicensePlate-98nreTI8.cjs +1 -0
- package/dist/wc-noitc/comparison-forms.umd.cjs +2 -2
- package/package.json +1 -1
- package/dist/wc-forms/company.schema-Dhzxphqu.cjs +0 -1
- package/dist/wc-forms/services-BmRVYKgg.cjs +0 -1
- package/dist/wc-forms/useAddress-CNccyKT4.cjs +0 -1
- package/dist/wc-forms/useLicensePlate-Ct8T-GYB.cjs +0 -1
|
@@ -497,6 +497,16 @@ declare interface ComparisonUserFields {
|
|
|
497
497
|
street?: string;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
+
/**
|
|
501
|
+
* Registers the QA-renderer api for every questionnaire on the page, so a host
|
|
502
|
+
* that embeds `<vd-risk-scanner>` in many places sets the url once at bootstrap
|
|
503
|
+
* instead of on each element. A `qa-url` prop/attribute still wins over this.
|
|
504
|
+
*
|
|
505
|
+
* There is deliberately **no** default: unconfigured and without a prop, the
|
|
506
|
+
* form throws.
|
|
507
|
+
*/
|
|
508
|
+
export declare const configureQa: (config: QaConfig) => void;
|
|
509
|
+
|
|
500
510
|
declare enum FamilyComposition {
|
|
501
511
|
FamilyWithChildren = "I",
|
|
502
512
|
FamilyWithoutChildren = "H",
|
|
@@ -608,6 +618,11 @@ export declare interface PetFormData {
|
|
|
608
618
|
|
|
609
619
|
export declare function petPresenter(data: PetFormData): ComparisonPayload;
|
|
610
620
|
|
|
621
|
+
export declare interface QaConfig {
|
|
622
|
+
/** base url of the QA-renderer api (a missing trailing slash is normalized by the forms) */
|
|
623
|
+
url: string;
|
|
624
|
+
}
|
|
625
|
+
|
|
611
626
|
export declare const QuestionnaireForm: typeof __VLS_export_17;
|
|
612
627
|
|
|
613
628
|
export declare type QuestionnaireFormProps = QuestionnaireSharedProps;
|
|
@@ -638,7 +653,7 @@ export declare const RiskScannerForm: typeof __VLS_export_16;
|
|
|
638
653
|
export declare interface RiskScannerFormProps extends Omit<QuestionnaireSharedProps, 'qaId'> {
|
|
639
654
|
/**
|
|
640
655
|
* base url of the QA API (a missing trailing slash is normalized internally);
|
|
641
|
-
* falls back to
|
|
656
|
+
* falls back to `configureQa({ url })` — submitting without either throws
|
|
642
657
|
*/
|
|
643
658
|
qaUrl?: string;
|
|
644
659
|
qaId?: string;
|