@ory/elements-react 1.0.0-next.21 → 1.0.0-next.23

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.23 (2025-01-21)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - don't short circuit code method selector ([#336](https://github.com/ory/elements/pull/336))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - hackerman @aeneasr
10
+ - Jonas Hungershausen
11
+
12
+ ## 1.0.0-next.3 (2025-01-21)
13
+
14
+ ### 🚀 Features
15
+
16
+ - expose get flow factory ([#333](https://github.com/ory/elements/pull/333))
17
+
18
+ ### ❤️ Thank You
19
+
20
+ - hackerman @aeneasr
21
+
1
22
  ## 1.0.0-next.21 (2025-01-18)
2
23
 
3
24
  This was a version bump only for @ory/elements-react to align it with other projects, there were no code changes.
package/dist/index.js CHANGED
@@ -225,7 +225,7 @@ function parseStateFromFlow(flow) {
225
225
  return { current: "method_active", method: flow.flow.active };
226
226
  } else if (isChoosingMethod(flow.flow.ui.nodes)) {
227
227
  const authMethods = nodesToAuthMethodGroups(flow.flow.ui.nodes);
228
- if (authMethods.length === 1) {
228
+ if (authMethods.length === 1 && authMethods[0] !== "code") {
229
229
  return { current: "method_active", method: authMethods[0] };
230
230
  }
231
231
  return { current: "select_method" };