keycloakify 10.0.0-rc.41 → 10.0.0-rc.43
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/bin/453.index.js +4 -4
- package/bin/shared/buildContext.d.ts +49 -0
- package/package.json +2 -1
- package/src/bin/eject-page.ts +4 -4
- package/stories/account/pages/Account.stories.tsx +5 -5
- package/stories/account/pages/FederatedIdentity.stories.tsx +6 -6
- package/stories/account/pages/Log.stories.tsx +5 -5
- package/stories/account/pages/Password.stories.tsx +6 -6
- package/stories/account/pages/Sessions.stories.tsx +6 -6
- package/stories/account/pages/Totp.stories.tsx +8 -8
- package/stories/login/pages/Code.stories.tsx +5 -5
- package/stories/login/pages/DeleteAccountConfirm.stories.tsx +5 -5
- package/stories/login/pages/DeleteCredential.stories.tsx +5 -5
- package/stories/login/pages/Error.stories.tsx +6 -6
- package/stories/login/pages/FrontchannelLogout.stories.tsx +5 -5
- package/stories/login/pages/IdpReviewUserProfile.stories.tsx +5 -5
- package/stories/login/pages/Info.stories.tsx +7 -7
- package/stories/login/pages/Login.stories.tsx +13 -13
- package/stories/login/pages/LoginConfigTotp.stories.tsx +7 -7
- package/stories/login/pages/LoginDeviceVerifyUserCode.stories.tsx +5 -5
- package/stories/login/pages/LoginIdpLinkConfirm.stories.tsx +5 -5
- package/stories/login/pages/LoginIdpLinkEmail.stories.tsx +5 -5
- package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.tsx +5 -5
- package/stories/login/pages/LoginOauthGrant.stories.tsx +5 -5
- package/stories/login/pages/LoginOtp.stories.tsx +5 -5
- package/stories/login/pages/LoginPageExpired.stories.tsx +5 -5
- package/stories/login/pages/LoginPassword.stories.tsx +5 -5
- package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.tsx +5 -5
- package/stories/login/pages/LoginRecoveryAuthnCodeInput.stories.tsx +5 -5
- package/stories/login/pages/LoginResetOtp.stories.tsx +5 -5
- package/stories/login/pages/LoginResetPassword.stories.tsx +6 -6
- package/stories/login/pages/LoginUpdatePassword.stories.tsx +5 -5
- package/stories/login/pages/LoginUpdateProfile.stories.tsx +5 -5
- package/stories/login/pages/LoginUsername.stories.tsx +6 -6
- package/stories/login/pages/LoginVerifyEmail.stories.tsx +5 -5
- package/stories/login/pages/LoginX509Info.stories.tsx +5 -5
- package/stories/login/pages/LogoutConfirm.stories.tsx +5 -5
- package/stories/login/pages/Register.stories.tsx +11 -11
- package/stories/login/pages/SamlPostForm.stories.tsx +5 -5
- package/stories/login/pages/SelectAuthenticator.stories.tsx +6 -6
- package/stories/login/pages/Terms.stories.tsx +7 -7
- package/stories/login/pages/UpdateEmail.stories.tsx +5 -5
- package/stories/login/pages/WebauthnAuthenticate.stories.tsx +5 -5
- package/stories/login/pages/WebauthnError.stories.tsx +5 -5
- package/stories/login/pages/WebauthnRegister.stories.tsx +5 -5
@@ -1,25 +1,25 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-config-totp.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-config-totp.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
19
19
|
|
20
20
|
export const WithManualSetUp: Story = {
|
21
21
|
render: () => (
|
22
|
-
<
|
22
|
+
<KcPageStory
|
23
23
|
kcContext={{
|
24
24
|
mode: "manual"
|
25
25
|
}}
|
@@ -29,7 +29,7 @@ export const WithManualSetUp: Story = {
|
|
29
29
|
|
30
30
|
export const WithError: Story = {
|
31
31
|
render: () => (
|
32
|
-
<
|
32
|
+
<KcPageStory
|
33
33
|
kcContext={{
|
34
34
|
messagesPerField: {
|
35
35
|
get: (fieldName: string) => (fieldName === "totp" ? "Invalid TOTP" : undefined),
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-oauth2-device-verify-user-code.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-oauth2-device-verify-user-code.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-idp-link-confirm.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-idp-link-confirm.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-idp-link-email.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-idp-link-email.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-oauth2-device-verify-user-code.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-oauth2-device-verify-user-code.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-oauth-grant.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-oauth-grant.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-otp.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-otp.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-page-expired.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-page-expired.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-password.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-password.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-recovery-authn-code-config.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-recovery-authn-code-config.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-recovery-authn-code-input.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-recovery-authn-code-input.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-reset-otp.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-reset-otp.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-reset-password.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-reset-password.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
19
19
|
|
20
20
|
export const WithEmailAsUsername: Story = {
|
21
21
|
render: () => (
|
22
|
-
<
|
22
|
+
<KcPageStory
|
23
23
|
kcContext={{
|
24
24
|
realm: {
|
25
25
|
loginWithEmailAllowed: true,
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-update-password.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-update-password.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-update-profile.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-update-profile.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-username.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-username.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
19
19
|
|
20
20
|
export const WithEmailAsUsername: Story = {
|
21
21
|
render: () => (
|
22
|
-
<
|
22
|
+
<KcPageStory
|
23
23
|
kcContext={{
|
24
24
|
realm: {
|
25
25
|
loginWithEmailAllowed: true,
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-verify-email.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-verify-email.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "login-x509-info.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/login-x509-info.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "logout-confirm.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/logout-confirm.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "register.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/register.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
19
19
|
|
20
20
|
export const WithFieldError: Story = {
|
21
21
|
render: () => (
|
22
|
-
<
|
22
|
+
<KcPageStory
|
23
23
|
kcContext={{
|
24
24
|
profile: {
|
25
25
|
attributesByName: {
|
@@ -41,7 +41,7 @@ export const WithFieldError: Story = {
|
|
41
41
|
|
42
42
|
export const WithEmailAsUsername: Story = {
|
43
43
|
render: () => (
|
44
|
-
<
|
44
|
+
<KcPageStory
|
45
45
|
kcContext={{
|
46
46
|
realm: {
|
47
47
|
registrationEmailAsUsername: true
|
@@ -53,7 +53,7 @@ export const WithEmailAsUsername: Story = {
|
|
53
53
|
|
54
54
|
export const WithoutPassword: Story = {
|
55
55
|
render: () => (
|
56
|
-
<
|
56
|
+
<KcPageStory
|
57
57
|
kcContext={{
|
58
58
|
passwordRequired: false
|
59
59
|
}}
|
@@ -63,7 +63,7 @@ export const WithoutPassword: Story = {
|
|
63
63
|
|
64
64
|
export const WithRecaptcha: Story = {
|
65
65
|
render: () => (
|
66
|
-
<
|
66
|
+
<KcPageStory
|
67
67
|
kcContext={{
|
68
68
|
scripts: ["https://www.google.com/recaptcha/api.js?hl=en"],
|
69
69
|
recaptchaRequired: true,
|
@@ -75,7 +75,7 @@ export const WithRecaptcha: Story = {
|
|
75
75
|
|
76
76
|
export const WithRecaptchaFrench: Story = {
|
77
77
|
render: () => (
|
78
|
-
<
|
78
|
+
<KcPageStory
|
79
79
|
kcContext={{
|
80
80
|
locale: {
|
81
81
|
currentLanguageTag: "fr"
|
@@ -90,7 +90,7 @@ export const WithRecaptchaFrench: Story = {
|
|
90
90
|
|
91
91
|
export const WithPresets: Story = {
|
92
92
|
render: () => (
|
93
|
-
<
|
93
|
+
<KcPageStory
|
94
94
|
kcContext={{
|
95
95
|
profile: {
|
96
96
|
attributesByName: {
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "saml-post-form.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/saml-post-form.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import {
|
3
|
+
import { createKcPageStory } from "../KcPageStory";
|
4
4
|
|
5
|
-
const {
|
5
|
+
const { KcPageStory } = createKcPageStory({ pageId: "select-authenticator.ftl" });
|
6
6
|
|
7
7
|
const meta = {
|
8
8
|
title: "login/select-authenticator.ftl",
|
9
|
-
component:
|
10
|
-
} satisfies Meta<typeof
|
9
|
+
component: KcPageStory
|
10
|
+
} satisfies Meta<typeof KcPageStory>;
|
11
11
|
|
12
12
|
export default meta;
|
13
13
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () => <
|
17
|
+
render: () => <KcPageStory />
|
18
18
|
};
|
19
19
|
|
20
20
|
export const WithDifferentAuthenticationMethods: Story = {
|
21
21
|
render: () => (
|
22
|
-
<
|
22
|
+
<KcPageStory
|
23
23
|
kcContext={{
|
24
24
|
auth: {
|
25
25
|
authenticationSelections: [
|