@leancodepl/kratos 7.7.0 → 7.8.0

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@leancodepl/kratos",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
- "@ory/client": ">=1.4.3",
7
- "axios": "^0.27.2",
6
+ "@ory/client": ">=1.14.3",
7
+ "axios": ">=1.6.0",
8
8
  "lodash": ">=4.0.0",
9
9
  "react-intl": ">=6.0.0",
10
10
  "react-router": ">=6.0.0",
@@ -1,7 +1,7 @@
1
1
  import { JSX } from "react";
2
- import { SettingsFlow, UpdateSettingsFlowBody } from "@ory/client";
2
+ import { SettingsFlow, UiNodeGroupEnum, UpdateSettingsFlowBody } from "@ory/client";
3
3
  import { UserAuthFormAdditionalProps } from "../helpers/userAuthForm";
4
- export type UserSettingsFlowType = "lookupSecret" | "oidc" | "password" | "profile" | "totp" | "webauthn";
4
+ export type UserSettingsFlowType = typeof UiNodeGroupEnum.LookupSecret | typeof UiNodeGroupEnum.Oidc | typeof UiNodeGroupEnum.Passkey | typeof UiNodeGroupEnum.Password | typeof UiNodeGroupEnum.Profile | typeof UiNodeGroupEnum.Totp;
5
5
  export type UserSettingsCardProps = {
6
6
  flow: SettingsFlow;
7
7
  flowType: UserSettingsFlowType;
@@ -1,2 +1,2 @@
1
1
  import type { LinkComponentProps } from "../../types/components";
2
- export declare function DefaultLinkComponent({ href, ...props }: LinkComponentProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DefaultLinkComponent({ href: _href, ...props }: LinkComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementType } from "react";
2
+ import { UiNode } from "@ory/client";
3
+ type IdentifierFirstLoginSectionProps = {
4
+ nodes: UiNode[];
5
+ IdentifierFirstLoginSectionWrapper: ElementType;
6
+ };
7
+ export declare function IdentifierFirstLoginSection({ nodes, IdentifierFirstLoginSectionWrapper, }: IdentifierFirstLoginSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ElementType } from "react";
2
+ import { SettingsFlow } from "@ory/client";
3
+ type WebAuthnSettingsProps = {
4
+ flow: SettingsFlow;
5
+ PasskeySettingsSectionWrapper: ElementType;
6
+ };
7
+ export declare function PasskeySettingsSection({ flow, PasskeySettingsSectionWrapper }: WebAuthnSettingsProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ElementType } from "react";
2
+ import { UiNode } from "@ory/client";
3
+ type ProfileLoginSectionProps = {
4
+ nodes: UiNode[];
5
+ ProfileLoginSectionWrapper: ElementType;
6
+ };
7
+ export declare function ProfileLoginSection({ nodes, ProfileLoginSectionWrapper }: ProfileLoginSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ElementType } from "react";
2
+ import { UiNode } from "@ory/client";
3
+ type ProfileRegistrationSectionProps = {
4
+ nodes: UiNode[];
5
+ ProfileRegistrationSectionWrapper: ElementType;
6
+ };
7
+ export declare function ProfileRegistrationSection({ nodes, ProfileRegistrationSectionWrapper, }: ProfileRegistrationSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -71,5 +71,8 @@ export type KratosComponents = {
71
71
  LookupSecretSettingsSectionWrapper: ElementType;
72
72
  OidcSettingsSectionWrapper: ElementType;
73
73
  TotpSettingsSectionWrapper: ElementType;
74
+ IdentifierFirstLoginSectionWrapper: ElementType;
75
+ ProfileLoginSectionWrapper: ElementType;
76
+ ProfileRegistrationSectionWrapper: ElementType;
74
77
  };
75
78
  export {};
@@ -1,7 +1,10 @@
1
1
  import { UiNode } from "@ory/client";
2
2
  export declare function hasOidc(nodes: UiNode[]): boolean;
3
3
  export declare function hasPassword(nodes: UiNode[]): boolean;
4
- export declare function hasWebauthn(nodes: UiNode[]): boolean;
4
+ export declare function hasDefault(nodes: UiNode[]): boolean;
5
+ export declare function hasProfile(nodes: UiNode[]): boolean;
6
+ export declare function hasPasskey(nodes: UiNode[]): boolean;
7
+ export declare function hasIdentifierFirst(nodes: UiNode[]): boolean;
5
8
  export declare function hasLookupSecret(nodes: UiNode[]): boolean;
6
9
  export declare function hasTotp(nodes: UiNode[]): boolean;
7
10
  export declare function hasCode(nodes: UiNode[]): boolean;
@@ -1,8 +0,0 @@
1
- import { ElementType } from "react";
2
- import { SettingsFlow } from "@ory/client";
3
- type WebAuthnSettingsProps = {
4
- flow: SettingsFlow;
5
- WebAuthnSettingsSectionWrapper: ElementType;
6
- };
7
- export declare function WebAuthnSettingsSection({ flow, WebAuthnSettingsSectionWrapper }: WebAuthnSettingsProps): import("react/jsx-runtime").JSX.Element | null;
8
- export {};