@wise/dynamic-flow-client 3.34.0 → 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 {
@@ -14052,7 +14065,7 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
14052
14065
  var ListRenderer = {
14053
14066
  canRenderType: "list",
14054
14067
  render: ({ callToAction, margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: getMargin(margin), children: [
14055
- title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_components42.Header, { as: "h2", title, action: getListAction(callToAction) }),
14068
+ (title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_components42.Header, { as: "h2", title: title != null ? title : "", action: getListAction(callToAction) }),
14056
14069
  items.map((props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DesignSystemListItem, __spreadValues({}, props), props.title))
14057
14070
  ] })
14058
14071
  };