@ory/elements-react 1.0.0-next.27 → 1.0.0-next.29

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,24 @@
1
+ ## 1.0.0-next.29 (2025-02-27)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - remove untranslated aria label from auth list item ([#365](https://github.com/ory/elements/pull/365))
6
+ - spacing in auth method list ([#359](https://github.com/ory/elements/pull/359))
7
+
8
+ ### ❤️ Thank You
9
+
10
+ - Jonas Hungershausen
11
+
12
+ ## 1.0.0-next.28 (2025-02-20)
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - safari click handler and redirect handling ([#361](https://github.com/ory/elements/pull/361))
17
+
18
+ ### ❤️ Thank You
19
+
20
+ - Jonas Hungershausen
21
+
1
22
  ## 1.0.0-next.27 (2025-02-18)
2
23
 
3
24
  ### 🩹 Fixes
package/dist/index.d.mts CHANGED
@@ -266,6 +266,12 @@ type OryFlowComponents = {
266
266
  * The HorizontalDivider component is rendered between groups.
267
267
  */
268
268
  Divider: ComponentType<OryCardDividerProps>;
269
+ /**
270
+ * The AuthMethodListContainer component is rendered around the "method" chooser step in the identifier_first login flow.
271
+ *
272
+ * This is only used, if login is configured to use identifier_first authentication.
273
+ */
274
+ AuthMethodListContainer: ComponentType<PropsWithChildren>;
269
275
  /**
270
276
  * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
271
277
  *
package/dist/index.d.ts CHANGED
@@ -266,6 +266,12 @@ type OryFlowComponents = {
266
266
  * The HorizontalDivider component is rendered between groups.
267
267
  */
268
268
  Divider: ComponentType<OryCardDividerProps>;
269
+ /**
270
+ * The AuthMethodListContainer component is rendered around the "method" chooser step in the identifier_first login flow.
271
+ *
272
+ * This is only used, if login is configured to use identifier_first authentication.
273
+ */
274
+ AuthMethodListContainer: ComponentType<PropsWithChildren>;
269
275
  /**
270
276
  * The AuthMethodListItem component is rendered on the "method" chooser step in the identifier_first login flow.
271
277
  *
package/dist/index.js CHANGED
@@ -881,12 +881,8 @@ function useOryFormSubmit(onAfterSubmit) {
881
881
  flowContainer.setFlowContainer(flow);
882
882
  methods.reset(computeDefaultValues(flow.flow.ui.nodes));
883
883
  };
884
- const onRedirect = (url, external) => {
885
- if (external) {
886
- window.location.href = url;
887
- return;
888
- }
889
- window.location.href = url;
884
+ const onRedirect = (url, _external) => {
885
+ window.location.assign(url);
890
886
  };
891
887
  const onSubmit = async (data) => {
892
888
  switch (flowContainer.flowType) {
@@ -1187,14 +1183,14 @@ function AuthMethodList({ options, setSelectedGroup }) {
1187
1183
  setSelectedGroup(group);
1188
1184
  }
1189
1185
  };
1190
- return options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
1186
+ return /* @__PURE__ */ jsxRuntime.jsx(Card.AuthMethodListContainer, { children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
1191
1187
  Card.AuthMethodListItem,
1192
1188
  {
1193
1189
  group: option,
1194
1190
  onClick: () => handleClick(option)
1195
1191
  },
1196
1192
  option
1197
- ));
1193
+ )) });
1198
1194
  }
1199
1195
  function OryFormGroupDivider() {
1200
1196
  const { Card } = useComponents();