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

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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 1.0.0-next.34 (2025-03-12)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - use correct import paths ([#384](https://github.com/ory/elements/pull/384))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - hackerman @aeneasr
10
+
11
+ ## 1.0.0-next.33 (2025-03-07)
12
+
13
+ ### 🚀 Features
14
+
15
+ - add password toggle to input ([#378](https://github.com/ory/elements/pull/378))
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - validation message regression ([#380](https://github.com/ory/elements/pull/380))
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Jonas Hungershausen
24
+ - Pierre Caillaud @pcaillaudm
25
+
1
26
  ## 1.0.0-next.32 (2025-03-06)
2
27
 
3
28
  ### 🚀 Features
package/dist/index.js CHANGED
@@ -873,7 +873,15 @@ function OryForm({ children, onAfterSubmit }) {
873
873
  }
874
874
  );
875
875
  }
876
- var messageIdsToHide = [1040009, 1060003, 1080003, 1010014, 1040005, 1010016];
876
+ var messageIdsToHide = [
877
+ 1040009,
878
+ 1060003,
879
+ 1080003,
880
+ 1010004,
881
+ 1010014,
882
+ 1040005,
883
+ 1010016
884
+ ];
877
885
  function OryCardValidationMessages({ ...props }) {
878
886
  var _a;
879
887
  const { flow } = useOryFlow();
@@ -1046,7 +1054,7 @@ function isUINodeGroupEnum(method) {
1046
1054
  return Object.values(clientFetch.UiNodeGroupEnum).includes(method);
1047
1055
  }
1048
1056
  function OryTwoStepCard() {
1049
- var _a, _b, _c, _d, _e;
1057
+ var _a, _b, _c, _d;
1050
1058
  const { Form, Card } = useComponents();
1051
1059
  const { flow, flowType, formState, dispatchFormState } = useOryFlow();
1052
1060
  const { ui } = flow;
@@ -1087,7 +1095,6 @@ function OryTwoStepCard() {
1087
1095
  };
1088
1096
  }
1089
1097
  }
1090
- const hasError = Boolean((_e = ui.messages) == null ? void 0 : _e.some((m) => m.type === "error"));
1091
1098
  const nonOidcNodes = filterOidcOut(ui.nodes);
1092
1099
  const finalNodes = formState.current === "method_active" ? getFinalNodes(uniqueGroups.groups, formState.method) : [];
1093
1100
  const handleAfterFormSubmit = (method) => {
@@ -1106,7 +1113,7 @@ function OryTwoStepCard() {
1106
1113
  return /* @__PURE__ */ jsxRuntime.jsxs(OryCard, { children: [
1107
1114
  /* @__PURE__ */ jsxRuntime.jsx(OryCardHeader, {}),
1108
1115
  /* @__PURE__ */ jsxRuntime.jsxs(OryCardContent, { children: [
1109
- hasError ? /* @__PURE__ */ jsxRuntime.jsx(OryCardValidationMessages, {}) : void 0,
1116
+ /* @__PURE__ */ jsxRuntime.jsx(OryCardValidationMessages, {}),
1110
1117
  showOidc && /* @__PURE__ */ jsxRuntime.jsx(OryFormSocialButtonsForm, {}),
1111
1118
  /* @__PURE__ */ jsxRuntime.jsxs(OryForm, { onAfterSubmit: handleAfterFormSubmit, children: [
1112
1119
  /* @__PURE__ */ jsxRuntime.jsxs(Form.Group, { children: [