@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.
@@ -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 the ITC client's qa config when omitted
656
+ * falls back to `configureQa({ url })` submitting without either throws
642
657
  */
643
658
  qaUrl?: string;
644
659
  qaId?: string;