@wise/dynamic-flow-client 3.34.1 → 3.34.2

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/build/main.js CHANGED
@@ -8748,6 +8748,19 @@ var oneOfSchemaToComponent = (schemaMapperProps, mapperProps) => {
8748
8748
  required = false
8749
8749
  } = schemaMapperProps;
8750
8750
  const initialModel = (_a = model != null ? model : schema.default) != null ? _a : null;
8751
+ if (schema.oneOf.length === 1 && isFormSectionSchema(schema.oneOf[0])) {
8752
+ return mapSchemaToComponent(
8753
+ {
8754
+ uid,
8755
+ schema: supressSchemaTitleAndDescription(schema.oneOf[0]),
8756
+ model: initialModel,
8757
+ localValue,
8758
+ validationErrors: initialError,
8759
+ required
8760
+ },
8761
+ mapperProps
8762
+ );
8763
+ }
8751
8764
  const options = schema.oneOf.map((childSchema, index) => {
8752
8765
  const { title = "", description, image, icon, keywords = [] } = childSchema;
8753
8766
  return {