@ory/elements-react 1.0.0-next.32 → 1.0.0-next.33

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.mjs CHANGED
@@ -871,7 +871,15 @@ function OryForm({ children, onAfterSubmit }) {
871
871
  }
872
872
  );
873
873
  }
874
- var messageIdsToHide = [1040009, 1060003, 1080003, 1010014, 1040005, 1010016];
874
+ var messageIdsToHide = [
875
+ 1040009,
876
+ 1060003,
877
+ 1080003,
878
+ 1010004,
879
+ 1010014,
880
+ 1040005,
881
+ 1010016
882
+ ];
875
883
  function OryCardValidationMessages({ ...props }) {
876
884
  var _a;
877
885
  const { flow } = useOryFlow();
@@ -1044,7 +1052,7 @@ function isUINodeGroupEnum(method) {
1044
1052
  return Object.values(UiNodeGroupEnum).includes(method);
1045
1053
  }
1046
1054
  function OryTwoStepCard() {
1047
- var _a, _b, _c, _d, _e;
1055
+ var _a, _b, _c, _d;
1048
1056
  const { Form, Card } = useComponents();
1049
1057
  const { flow, flowType, formState, dispatchFormState } = useOryFlow();
1050
1058
  const { ui } = flow;
@@ -1085,7 +1093,6 @@ function OryTwoStepCard() {
1085
1093
  };
1086
1094
  }
1087
1095
  }
1088
- const hasError = Boolean((_e = ui.messages) == null ? void 0 : _e.some((m) => m.type === "error"));
1089
1096
  const nonOidcNodes = filterOidcOut(ui.nodes);
1090
1097
  const finalNodes = formState.current === "method_active" ? getFinalNodes(uniqueGroups.groups, formState.method) : [];
1091
1098
  const handleAfterFormSubmit = (method) => {
@@ -1104,7 +1111,7 @@ function OryTwoStepCard() {
1104
1111
  return /* @__PURE__ */ jsxs(OryCard, { children: [
1105
1112
  /* @__PURE__ */ jsx(OryCardHeader, {}),
1106
1113
  /* @__PURE__ */ jsxs(OryCardContent, { children: [
1107
- hasError ? /* @__PURE__ */ jsx(OryCardValidationMessages, {}) : void 0,
1114
+ /* @__PURE__ */ jsx(OryCardValidationMessages, {}),
1108
1115
  showOidc && /* @__PURE__ */ jsx(OryFormSocialButtonsForm, {}),
1109
1116
  /* @__PURE__ */ jsxs(OryForm, { onAfterSubmit: handleAfterFormSubmit, children: [
1110
1117
  /* @__PURE__ */ jsxs(Form.Group, { children: [