@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/dist/index.mjs CHANGED
@@ -879,12 +879,8 @@ function useOryFormSubmit(onAfterSubmit) {
879
879
  flowContainer.setFlowContainer(flow);
880
880
  methods.reset(computeDefaultValues(flow.flow.ui.nodes));
881
881
  };
882
- const onRedirect = (url, external) => {
883
- if (external) {
884
- window.location.href = url;
885
- return;
886
- }
887
- window.location.href = url;
882
+ const onRedirect = (url, _external) => {
883
+ window.location.assign(url);
888
884
  };
889
885
  const onSubmit = async (data) => {
890
886
  switch (flowContainer.flowType) {
@@ -1185,14 +1181,14 @@ function AuthMethodList({ options, setSelectedGroup }) {
1185
1181
  setSelectedGroup(group);
1186
1182
  }
1187
1183
  };
1188
- return options.map((option) => /* @__PURE__ */ jsx(
1184
+ return /* @__PURE__ */ jsx(Card.AuthMethodListContainer, { children: options.map((option) => /* @__PURE__ */ jsx(
1189
1185
  Card.AuthMethodListItem,
1190
1186
  {
1191
1187
  group: option,
1192
1188
  onClick: () => handleClick(option)
1193
1189
  },
1194
1190
  option
1195
- ));
1191
+ )) });
1196
1192
  }
1197
1193
  function OryFormGroupDivider() {
1198
1194
  const { Card } = useComponents();