@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 +21 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +0 -8
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +71 -62
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +70 -61
- package/dist/theme/default/index.mjs.map +1 -1
- package/dist/theme/default/tailwind/defaults.d.mts +737 -0
- package/dist/theme/default/tailwind/defaults.d.ts +737 -0
- package/package.json +1 -1
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,
|
|
883
|
-
|
|
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();
|