@ory/elements-react 1.0.0-rc.4 → 1.0.0-rc.5

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
@@ -320,6 +320,8 @@ function parseStateFromFlow(flow) {
320
320
  return { current: "method_active", method: "code" };
321
321
  } else if (methodWithMessage) {
322
322
  return { current: "method_active", method: methodWithMessage.group };
323
+ } else if ((_a = flow.flow.ui.messages) == null ? void 0 : _a.some((m) => m.id === 1010016)) {
324
+ return { current: "select_method" };
323
325
  } else if (flow.flow.active && !["default", "identifier_first"].includes(flow.flow.active)) {
324
326
  return { current: "method_active", method: flow.flow.active };
325
327
  } else if (isChoosingMethod(flow)) {
@@ -328,8 +330,6 @@ function parseStateFromFlow(flow) {
328
330
  return { current: "method_active", method: authMethods[0] };
329
331
  }
330
332
  return { current: "select_method" };
331
- } else if ((_a = flow.flow.ui.messages) == null ? void 0 : _a.some((m) => m.id === 1010016)) {
332
- return { current: "select_method" };
333
333
  }
334
334
  return { current: "provide_identifier" };
335
335
  }