keycloakify 10.0.0-rc.122 → 10.0.0-rc.123
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 +4 -7
- package/src/bin/start-keycloak/myrealm-realm-24.json +1 -1
- package/src/tools/useInsertLinkTags.ts +9 -1
- package/src/tools/useInsertScriptTags.ts +9 -1
- package/stories/account-spa/index.stories.tsx +94 -0
- package/stories/intro/intro.stories.tsx +90 -0
- package/tools/useInsertLinkTags.js +7 -1
- package/tools/useInsertLinkTags.js.map +1 -1
- package/tools/useInsertScriptTags.js +7 -1
- package/tools/useInsertScriptTags.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "10.0.0-rc.
|
3
|
+
"version": "10.0.0-rc.123",
|
4
4
|
"description": "Create Keycloak themes using React",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -673,6 +673,8 @@
|
|
673
673
|
"stories/account/pages/Password.stories.tsx",
|
674
674
|
"stories/account/pages/Sessions.stories.tsx",
|
675
675
|
"stories/account/pages/Totp.stories.tsx",
|
676
|
+
"stories/account-spa/index.stories.tsx",
|
677
|
+
"stories/intro/intro.stories.tsx",
|
676
678
|
"stories/login/pages/Code.stories.tsx",
|
677
679
|
"stories/login/pages/DeleteAccountConfirm.stories.tsx",
|
678
680
|
"stories/login/pages/DeleteCredential.stories.tsx",
|
@@ -854,14 +856,10 @@
|
|
854
856
|
"@emotion/react": "^11.11.4",
|
855
857
|
"@octokit/rest": "^20.1.1",
|
856
858
|
"@storybook/addon-a11y": "^6.5.16",
|
857
|
-
"@storybook/addon-actions": "^6.5.13",
|
858
|
-
"@storybook/addon-essentials": "^6.5.13",
|
859
|
-
"@storybook/addon-interactions": "^6.5.13",
|
860
|
-
"@storybook/addon-links": "^6.5.13",
|
861
859
|
"@storybook/builder-webpack5": "^6.5.13",
|
862
860
|
"@storybook/manager-webpack5": "^6.5.13",
|
863
861
|
"@storybook/react": "^6.5.13",
|
864
|
-
"
|
862
|
+
"eslint-plugin-storybook": "^0.6.7",
|
865
863
|
"@types/babel__generator": "^7.6.4",
|
866
864
|
"@types/make-fetch-happen": "^10.0.1",
|
867
865
|
"@types/minimist": "^1.2.2",
|
@@ -874,7 +872,6 @@
|
|
874
872
|
"cheerio": "^1.0.0-rc.12",
|
875
873
|
"chokidar-cli": "^3.0.0",
|
876
874
|
"cli-select": "^1.1.2",
|
877
|
-
"eslint-plugin-storybook": "^0.6.7",
|
878
875
|
"husky": "^4.3.8",
|
879
876
|
"lint-staged": "^11.0.0",
|
880
877
|
"magic-string": "^0.30.7",
|
@@ -449,7 +449,7 @@
|
|
449
449
|
"gender": ["prefer_not_to_say"],
|
450
450
|
"bio": ["Hello I'm Test User and I do not exist."],
|
451
451
|
"phone_number": ["1111111111"],
|
452
|
-
"locale": ["
|
452
|
+
"locale": ["en"],
|
453
453
|
"favorite_media": ["movies", "series"]
|
454
454
|
},
|
455
455
|
"createdTimestamp": 1716183898408,
|
@@ -22,7 +22,15 @@ export function useInsertLinkTags(params: {
|
|
22
22
|
alreadyMountedComponentOrHookNames.has(componentOrHookName);
|
23
23
|
|
24
24
|
if (isAlreadyMounted) {
|
25
|
-
|
25
|
+
reload: {
|
26
|
+
if (
|
27
|
+
new URL(window.location.href).searchParams.get("viewMode") === "docs"
|
28
|
+
) {
|
29
|
+
// NOTE: Special case for Storybook, we want to avoid infinite reload loop.
|
30
|
+
break reload;
|
31
|
+
}
|
32
|
+
window.location.reload();
|
33
|
+
}
|
26
34
|
return;
|
27
35
|
}
|
28
36
|
|
@@ -40,7 +40,15 @@ export function useInsertScriptTags(params: {
|
|
40
40
|
alreadyMountedComponentOrHookNames.has(componentOrHookName);
|
41
41
|
|
42
42
|
if (isAlreadyMounted) {
|
43
|
-
|
43
|
+
reload: {
|
44
|
+
if (
|
45
|
+
new URL(window.location.href).searchParams.get("viewMode") === "docs"
|
46
|
+
) {
|
47
|
+
// NOTE: Special case for Storybook, we want to avoid infinite reload loop.
|
48
|
+
break reload;
|
49
|
+
}
|
50
|
+
window.location.reload();
|
51
|
+
}
|
44
52
|
return;
|
45
53
|
}
|
46
54
|
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
import { useInsertLinkTags } from "../../dist/tools/useInsertLinkTags";
|
4
|
+
import { tss } from "../tss";
|
5
|
+
// @ts-expect-error
|
6
|
+
import screenshotPngUrl from "./screenshot.png";
|
7
|
+
|
8
|
+
const meta = {
|
9
|
+
title: "Account SPA/index.ftl"
|
10
|
+
} satisfies Meta<any>;
|
11
|
+
|
12
|
+
export default meta;
|
13
|
+
|
14
|
+
type Story = StoryObj<typeof meta>;
|
15
|
+
|
16
|
+
export const NotInStorybookButSupported: Story = {
|
17
|
+
render: () => <AccountSpa />
|
18
|
+
};
|
19
|
+
|
20
|
+
function AccountSpa() {
|
21
|
+
console.log(window.location.href);
|
22
|
+
|
23
|
+
useInsertLinkTags({
|
24
|
+
componentOrHookName: "Template",
|
25
|
+
hrefs: []
|
26
|
+
});
|
27
|
+
|
28
|
+
const { classes, theme } = useStyles();
|
29
|
+
|
30
|
+
return (
|
31
|
+
<div className={classes.root}>
|
32
|
+
<div className={classes.content}>
|
33
|
+
<p>
|
34
|
+
Keycloakify offers two option for creating an account theme:{" "}
|
35
|
+
<a href="https://docs.keycloakify.dev/account-theme#multi-page" target="_blank">
|
36
|
+
Multi Page
|
37
|
+
</a>{" "}
|
38
|
+
or{" "}
|
39
|
+
<a href="https://docs.keycloakify.dev/account-theme#single-page" target="_blank">
|
40
|
+
Single Page
|
41
|
+
</a>
|
42
|
+
. Since the account Single Page does not support Storybook, here is a screenshot of it's default look:
|
43
|
+
<br />
|
44
|
+
<br />
|
45
|
+
<img className={classes.screenshot} alt="image" src={screenshotPngUrl} />
|
46
|
+
<br />
|
47
|
+
<a href="https://docs.keycloakify.dev/account-theme" target="_blank">
|
48
|
+
Learn more
|
49
|
+
</a>
|
50
|
+
</p>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
);
|
54
|
+
}
|
55
|
+
|
56
|
+
const useStyles = tss.withName({ AccountSpa }).create(({ isDark, theme }) => ({
|
57
|
+
root: {
|
58
|
+
height: "100vh",
|
59
|
+
color: isDark ? "white" : "black",
|
60
|
+
backgroundColor: theme.appContentBg,
|
61
|
+
fontFamily: "'Work Sans'",
|
62
|
+
fontSize: "14px",
|
63
|
+
lineHeight: "24px",
|
64
|
+
WebkitFontSmoothing: "antialiased",
|
65
|
+
"& a": {
|
66
|
+
color: theme.colorSecondary,
|
67
|
+
textDecoration: "none",
|
68
|
+
"&:hover": {
|
69
|
+
textDecoration: "underline"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"& h1": {
|
73
|
+
fontSize: "32px",
|
74
|
+
marginBottom: 35
|
75
|
+
},
|
76
|
+
display: "flex",
|
77
|
+
justifyContent: "center"
|
78
|
+
},
|
79
|
+
content: {
|
80
|
+
maxWidth: 750,
|
81
|
+
textAlign: "center",
|
82
|
+
marginTop: 100
|
83
|
+
},
|
84
|
+
keycloakifyLogoWrapper: {
|
85
|
+
display: "flex",
|
86
|
+
justifyContent: "center"
|
87
|
+
},
|
88
|
+
keycloakifyLogo: {
|
89
|
+
width: 400
|
90
|
+
},
|
91
|
+
screenshot: {
|
92
|
+
maxWidth: "100%"
|
93
|
+
}
|
94
|
+
}));
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
import { KeycloakifyRotatingLogo } from "./KeycloakifyRotatingLogo";
|
4
|
+
import { useInsertLinkTags } from "../../dist/tools/useInsertLinkTags";
|
5
|
+
import { useOnFistMount } from "../../dist/tools/useOnFirstMount";
|
6
|
+
import { tss } from "../tss";
|
7
|
+
|
8
|
+
const meta = {
|
9
|
+
title: "Introduction"
|
10
|
+
} satisfies Meta<any>;
|
11
|
+
|
12
|
+
export default meta;
|
13
|
+
|
14
|
+
type Story = StoryObj<typeof meta>;
|
15
|
+
|
16
|
+
export const WhatIsThisWebsite: Story = {
|
17
|
+
render: () => <Introduction />
|
18
|
+
};
|
19
|
+
|
20
|
+
function Introduction() {
|
21
|
+
console.log(window.location.href);
|
22
|
+
|
23
|
+
useInsertLinkTags({
|
24
|
+
componentOrHookName: "Template",
|
25
|
+
hrefs: []
|
26
|
+
});
|
27
|
+
|
28
|
+
const { classes, theme } = useStyles();
|
29
|
+
|
30
|
+
return (
|
31
|
+
<div className={classes.root}>
|
32
|
+
<div className={classes.content}>
|
33
|
+
<div className={classes.keycloakifyLogoWrapper}>
|
34
|
+
<KeycloakifyRotatingLogo className={classes.keycloakifyLogo} />
|
35
|
+
</div>
|
36
|
+
<h1>
|
37
|
+
<a href={theme.brandUrl}>Keycloakify </a> Storybook
|
38
|
+
</h1>
|
39
|
+
|
40
|
+
<p>
|
41
|
+
This website showcases all the Keycloak user-facing pages of the Login and{" "}
|
42
|
+
<a href="https://docs.keycloakify.dev/account-theme#multi-page">Account Multi-Page theme</a>.<br />
|
43
|
+
The storybook serves as a reference to help you determine which pages you would like to personalize.
|
44
|
+
<br />
|
45
|
+
These pages are a direct React adaptation of the{" "}
|
46
|
+
<a href="https://github.com/keycloak/keycloak/tree/24.0.4/themes/src/main/resources/theme/base" target="_blank">
|
47
|
+
built-in FreeMarker Keycloak pages
|
48
|
+
</a>
|
49
|
+
.
|
50
|
+
</p>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
);
|
54
|
+
}
|
55
|
+
|
56
|
+
const useStyles = tss.withName({ Introduction }).create(({ isDark, theme }) => ({
|
57
|
+
root: {
|
58
|
+
height: "100vh",
|
59
|
+
color: isDark ? "white" : "black",
|
60
|
+
backgroundColor: theme.appContentBg,
|
61
|
+
fontFamily: "'Work Sans'",
|
62
|
+
fontSize: "14px",
|
63
|
+
lineHeight: "24px",
|
64
|
+
WebkitFontSmoothing: "antialiased",
|
65
|
+
"& a": {
|
66
|
+
color: theme.colorSecondary,
|
67
|
+
textDecoration: "none",
|
68
|
+
"&:hover": {
|
69
|
+
textDecoration: "underline"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"& h1": {
|
73
|
+
fontSize: "32px",
|
74
|
+
marginBottom: 35
|
75
|
+
},
|
76
|
+
display: "flex",
|
77
|
+
justifyContent: "center"
|
78
|
+
},
|
79
|
+
content: {
|
80
|
+
maxWidth: 750,
|
81
|
+
textAlign: "center"
|
82
|
+
},
|
83
|
+
keycloakifyLogoWrapper: {
|
84
|
+
display: "flex",
|
85
|
+
justifyContent: "center"
|
86
|
+
},
|
87
|
+
keycloakifyLogo: {
|
88
|
+
width: 400
|
89
|
+
}
|
90
|
+
}));
|
@@ -14,7 +14,13 @@ export function useInsertLinkTags(params) {
|
|
14
14
|
useOnFistMount(() => {
|
15
15
|
const isAlreadyMounted = alreadyMountedComponentOrHookNames.has(componentOrHookName);
|
16
16
|
if (isAlreadyMounted) {
|
17
|
-
|
17
|
+
reload: {
|
18
|
+
if (new URL(window.location.href).searchParams.get("viewMode") === "docs") {
|
19
|
+
// NOTE: Special case for Storybook, we want to avoid infinite reload loop.
|
20
|
+
break reload;
|
21
|
+
}
|
22
|
+
window.location.reload();
|
23
|
+
}
|
18
24
|
return;
|
19
25
|
}
|
20
26
|
alreadyMountedComponentOrHookNames.add(componentOrHookName);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInsertLinkTags.js","sourceRoot":"","sources":["../src/tools/useInsertLinkTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,MAAM,kCAAkC,GAAG,IAAI,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AAI,CAAC,QAAQ,EAAE;gBACX,OAAO;aACV;YAED,uBAAuB,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACR,QAAQ,GAAG,KAAK,CAAC;QACrB,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,uBAAuB,EAAE,CAAC;AACvC,CAAC"}
|
@@ -17,7 +17,13 @@ export function useInsertScriptTags(params) {
|
|
17
17
|
useOnFistMount(() => {
|
18
18
|
const isAlreadyMounted = alreadyMountedComponentOrHookNames.has(componentOrHookName);
|
19
19
|
if (isAlreadyMounted) {
|
20
|
-
|
20
|
+
reload: {
|
21
|
+
if (new URL(window.location.href).searchParams.get("viewMode") === "docs") {
|
22
|
+
// NOTE: Special case for Storybook, we want to avoid infinite reload loop.
|
23
|
+
break reload;
|
24
|
+
}
|
25
|
+
window.location.reload();
|
26
|
+
}
|
21
27
|
return;
|
22
28
|
}
|
23
29
|
alreadyMountedComponentOrHookNames.add(componentOrHookName);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInsertScriptTags.js","sourceRoot":"","sources":["../src/tools/useInsertScriptTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAiBnE,MAAM,kCAAkC,GAAG,IAAI,GAAG,EAAU,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAGnC;IACG,MAAM,EAAE,UAAU,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAAC;IAEnD,cAAc,CAAC,GAAG,EAAE;QAChB,MAAM,gBAAgB,GAClB,kCAAkC,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAEhE,IAAI,gBAAgB,EAAE;YAClB,MAAM,CAAC,QAAQ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