@asgardeo/react 0.18.0 → 0.19.0

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/cjs/index.js CHANGED
@@ -8097,18 +8097,18 @@ var ConsentCheckboxList = ({
8097
8097
  if (isEssential) {
8098
8098
  return true;
8099
8099
  }
8100
- const key = getConsentOptionalKey(purpose.purpose_id, attrName);
8100
+ const key = getConsentOptionalKey(purpose.purposeId, attrName);
8101
8101
  return formValues[key] !== "false";
8102
8102
  };
8103
8103
  const handleChange = (attrName, checked) => {
8104
- const key = getConsentOptionalKey(purpose.purpose_id, attrName);
8104
+ const key = getConsentOptionalKey(purpose.purposeId, attrName);
8105
8105
  onInputChange(key, checked ? "true" : "false");
8106
8106
  };
8107
8107
  if (children) {
8108
8108
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: children({ attributes, handleChange, isChecked, variant }) });
8109
8109
  }
8110
8110
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_css39.cx)((0, import_browser51.withVendorCSSClassPrefix)((0, import_browser51.bem)("consent-checkbox-list")), styles["listContainer"]), children: attributes.map((attr) => {
8111
- const inputId = `consent_${isEssential ? "ess" : "opt"}_${purpose.purpose_id}_${attr}`;
8111
+ const inputId = `consent_${isEssential ? "ess" : "opt"}_${purpose.purposeId}_${attr}`;
8112
8112
  const checked = isChecked(attr);
8113
8113
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
8114
8114
  "div",
@@ -8208,7 +8208,7 @@ var Consent = ({ consentData, formValues, onInputChange, children }) => {
8208
8208
  }
8209
8209
  )
8210
8210
  ] })
8211
- ] }, purpose.purpose_id || purposeIndex)) });
8211
+ ] }, purpose.purposeId || purposeIndex)) });
8212
8212
  };
8213
8213
  var Consent_default = Consent;
8214
8214
 
@@ -8537,12 +8537,12 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8537
8537
  ...p.essential.map((attr) => ({ approved: !isDeny, name: attr })),
8538
8538
  ...p.optional.map(
8539
8539
  (attr) => ({
8540
- approved: isDeny ? false : formValues[getConsentOptionalKey(p.purpose_id, attr)] !== "false",
8540
+ approved: isDeny ? false : formValues[getConsentOptionalKey(p.purposeId, attr)] !== "false",
8541
8541
  name: attr
8542
8542
  })
8543
8543
  )
8544
8544
  ],
8545
- purpose_name: p.purpose_name
8545
+ purposeName: p.purposeName
8546
8546
  })
8547
8547
  )
8548
8548
  };
@@ -9602,14 +9602,14 @@ var SignIn = ({
9602
9602
  name: attr
9603
9603
  })),
9604
9604
  ...(p.optional || []).map((attr) => {
9605
- const key = `__consent_opt__${p.purpose_id}__${attr}`;
9605
+ const key = `__consent_opt__${p.purposeId}__${attr}`;
9606
9606
  return {
9607
9607
  approved: isDeny ? false : processedInputs[key] !== "false",
9608
9608
  name: attr
9609
9609
  };
9610
9610
  })
9611
9611
  ],
9612
- purpose_name: p.purpose_name
9612
+ purposeName: p.purposeName
9613
9613
  }))
9614
9614
  };
9615
9615
  processedInputs["consent_decisions"] = JSON.stringify(decisions);