@ukiahinsure/a2ui-react-adapter 0.1.8 → 0.1.9

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.js CHANGED
@@ -491,7 +491,7 @@ function ensureOptionalCoverageSkipActionMessages(messages, surfaceId) {
491
491
  const nextParent = {
492
492
  ...parent,
493
493
  children: parent.children.flatMap(
494
- (child) => child === submit.id ? [buttonId, child] : [child]
494
+ (child) => child === submit.id ? [child, buttonId] : [child]
495
495
  )
496
496
  };
497
497
  const nextComponents = update.components.map(
@@ -648,6 +648,9 @@ function optionalCoverageFieldFromFieldBindings(components) {
648
648
  if (normalized.includes("employerunioncoverage") || normalized.includes("coverageemployerunioncoverage")) {
649
649
  return "employer_union_coverage";
650
650
  }
651
+ if (normalized.includes("currentcoveragetype") || normalized.includes("coveragecurrentcoveragetype")) {
652
+ return "current_coverage_type";
653
+ }
651
654
  return void 0;
652
655
  }
653
656
  function componentFieldSearchText(component) {