@keycloakify/svelte 0.2.10 → 0.2.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@keycloakify/svelte",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Svelte Components for Keycloakify",
5
5
  "keywords": [
6
6
  "keycloak",
@@ -0,0 +1,37 @@
1
+ <script
2
+ context="module"
3
+ lang="ts"
4
+ >
5
+ import { defineMeta } from '@storybook/addon-svelte-csf';
6
+ import type { KcPageStoryProps } from '../KcPageStory';
7
+ import KcPageStory from '../KcPageStory.svelte';
8
+
9
+ const args: KcPageStoryProps = { pageId: 'link-idp-action.ftl' };
10
+ const { Story } = defineMeta({
11
+ title: 'login/link-idp-action.ftl',
12
+ component: KcPageStory,
13
+ args: args,
14
+ });
15
+ </script>
16
+
17
+ <Story
18
+ name="Default"
19
+ args={{
20
+ ...args,
21
+ kcContext: {
22
+ idpDisplayName: 'GitHub',
23
+ url: { loginAction: '/mock-login-action' },
24
+ },
25
+ }}
26
+ />
27
+
28
+ <Story
29
+ name="DifferentProvider"
30
+ args={{
31
+ ...args,
32
+ kcContext: {
33
+ idpDisplayName: 'Google',
34
+ url: { loginAction: '/custom-login-action' },
35
+ },
36
+ }}
37
+ />
@@ -0,0 +1,17 @@
1
+ <script
2
+ context="module"
3
+ lang="ts"
4
+ >
5
+ import { defineMeta } from '@storybook/addon-svelte-csf';
6
+ import type { KcPageStoryProps } from '../KcPageStory';
7
+ import KcPageStory from '../KcPageStory.svelte';
8
+
9
+ const args: KcPageStoryProps = { pageId: 'select-organization.ftl' };
10
+ const { Story } = defineMeta({
11
+ title: 'login/select-organization.ftl',
12
+ component: KcPageStory,
13
+ args: args,
14
+ });
15
+ </script>
16
+
17
+ <Story name="Default" />