keycloakify 10.0.0-rc.80 → 10.0.0-rc.81
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
@@ -14,7 +14,15 @@ export default meta;
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
15
15
|
|
16
16
|
export const Default: Story = {
|
17
|
-
render: () =>
|
17
|
+
render: () => (
|
18
|
+
<KcPageStory
|
19
|
+
kcContext={{
|
20
|
+
"x-keycloakify": {
|
21
|
+
realmMessageBundleTermsText: "<p>My terms in <strong>English</strong></p>"
|
22
|
+
}
|
23
|
+
}}
|
24
|
+
/>
|
25
|
+
)
|
18
26
|
};
|
19
27
|
|
20
28
|
export const French: Story = {
|
@@ -23,18 +31,29 @@ export const French: Story = {
|
|
23
31
|
kcContext={{
|
24
32
|
locale: {
|
25
33
|
currentLanguageTag: "fr"
|
34
|
+
},
|
35
|
+
"x-keycloakify": {
|
36
|
+
// cSpell: disable
|
37
|
+
realmMessageBundleTermsText: "<p>Mes terme en <strong>Français</strong></p>"
|
38
|
+
// cSpell: enable
|
26
39
|
}
|
27
40
|
}}
|
28
41
|
/>
|
29
42
|
)
|
30
43
|
};
|
31
44
|
|
32
|
-
|
45
|
+
// NOTE: Only works if using `useDownloadTerms()`
|
46
|
+
export const RenderedFromMarkdown: Story = {
|
47
|
+
render: () => <KcPageStory />
|
48
|
+
};
|
49
|
+
|
50
|
+
// NOTE: Only works if using `useDownloadTerms()`
|
51
|
+
export const RenderedFromMarkdownFrench: Story = {
|
33
52
|
render: () => (
|
34
53
|
<KcPageStory
|
35
54
|
kcContext={{
|
36
55
|
locale: {
|
37
|
-
currentLanguageTag: "
|
56
|
+
currentLanguageTag: "fr"
|
38
57
|
}
|
39
58
|
}}
|
40
59
|
/>
|