@andreyyolkin/keycloakify-vue 0.1.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.
Files changed (349) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/keycloakify-vue/account/DefaultPage.vue +55 -0
  4. package/keycloakify-vue/account/DefaultPage.vue.d.ts +14 -0
  5. package/keycloakify-vue/account/KcContext/index.d.ts +1 -0
  6. package/keycloakify-vue/account/KcContext/index.js +0 -0
  7. package/keycloakify-vue/account/Template.useInitialize.d.ts +13 -0
  8. package/keycloakify-vue/account/Template.useInitialize.js +20 -0
  9. package/keycloakify-vue/account/Template.vue +178 -0
  10. package/keycloakify-vue/account/Template.vue.d.ts +17 -0
  11. package/keycloakify-vue/account/TemplateProps.d.ts +9 -0
  12. package/keycloakify-vue/account/TemplateProps.js +0 -0
  13. package/keycloakify-vue/account/i18n/i18n.d.ts +11 -0
  14. package/keycloakify-vue/account/i18n/i18n.js +0 -0
  15. package/keycloakify-vue/account/i18n/i18nBuilder.d.ts +18 -0
  16. package/keycloakify-vue/account/i18n/i18nBuilder.js +29 -0
  17. package/keycloakify-vue/account/i18n/index.d.ts +1 -0
  18. package/keycloakify-vue/account/i18n/index.js +1 -0
  19. package/keycloakify-vue/account/i18n/useI18n.d.ts +28 -0
  20. package/keycloakify-vue/account/i18n/useI18n.js +67 -0
  21. package/keycloakify-vue/account/index.d.ts +4 -0
  22. package/keycloakify-vue/account/index.js +8 -0
  23. package/keycloakify-vue/account/pages/Account.vue +182 -0
  24. package/keycloakify-vue/account/pages/Account.vue.d.ts +9 -0
  25. package/keycloakify-vue/account/pages/Applications.vue +192 -0
  26. package/keycloakify-vue/account/pages/Applications.vue.d.ts +9 -0
  27. package/keycloakify-vue/account/pages/FederatedIdentity.vue +123 -0
  28. package/keycloakify-vue/account/pages/FederatedIdentity.vue.d.ts +9 -0
  29. package/keycloakify-vue/account/pages/Log.vue +64 -0
  30. package/keycloakify-vue/account/pages/Log.vue.d.ts +9 -0
  31. package/keycloakify-vue/account/pages/NotImplemented.vue +24 -0
  32. package/keycloakify-vue/account/pages/NotImplemented.vue.d.ts +6 -0
  33. package/keycloakify-vue/account/pages/PageProps.d.ts +9 -0
  34. package/keycloakify-vue/account/pages/PageProps.js +0 -0
  35. package/keycloakify-vue/account/pages/Password.vue +247 -0
  36. package/keycloakify-vue/account/pages/Password.vue.d.ts +9 -0
  37. package/keycloakify-vue/account/pages/Sessions.vue +84 -0
  38. package/keycloakify-vue/account/pages/Sessions.vue.d.ts +9 -0
  39. package/keycloakify-vue/account/pages/Totp.vue +308 -0
  40. package/keycloakify-vue/account/pages/Totp.vue.d.ts +9 -0
  41. package/keycloakify-vue/bin/index.js +14 -0
  42. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcContext.js +0 -0
  43. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
  44. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.js +18 -0
  45. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
  46. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/i18n.js +5 -0
  47. package/keycloakify-vue/login/DefaultPage.vue +167 -0
  48. package/keycloakify-vue/login/DefaultPage.vue.d.ts +20 -0
  49. package/keycloakify-vue/login/Template.useInitialize.d.ts +18 -0
  50. package/keycloakify-vue/login/Template.useInitialize.js +49 -0
  51. package/keycloakify-vue/login/Template.vue +239 -0
  52. package/keycloakify-vue/login/Template.vue.d.ts +26 -0
  53. package/keycloakify-vue/login/TemplateProps.d.ts +14 -0
  54. package/keycloakify-vue/login/TemplateProps.js +0 -0
  55. package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
  56. package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue.d.ts +15 -0
  57. package/keycloakify-vue/login/components/FieldErrors.vue +35 -0
  58. package/keycloakify-vue/login/components/FieldErrors.vue.d.ts +14 -0
  59. package/keycloakify-vue/login/components/GroupLabel.vue +68 -0
  60. package/keycloakify-vue/login/components/GroupLabel.vue.d.ts +14 -0
  61. package/keycloakify-vue/login/components/InputFieldByType.vue +94 -0
  62. package/keycloakify-vue/login/components/InputFieldByType.vue.d.ts +4 -0
  63. package/keycloakify-vue/login/components/InputFieldByTypeProps.d.ts +12 -0
  64. package/keycloakify-vue/login/components/InputFieldByTypeProps.js +0 -0
  65. package/keycloakify-vue/login/components/InputTag.vue +105 -0
  66. package/keycloakify-vue/login/components/InputTag.vue.d.ts +7 -0
  67. package/keycloakify-vue/login/components/InputTagSelects.vue +108 -0
  68. package/keycloakify-vue/login/components/InputTagSelects.vue.d.ts +4 -0
  69. package/keycloakify-vue/login/components/LogoutOtherSessions.vue +27 -0
  70. package/keycloakify-vue/login/components/LogoutOtherSessions.vue.d.ts +9 -0
  71. package/keycloakify-vue/login/components/PasswordWrapper.vue +42 -0
  72. package/keycloakify-vue/login/components/PasswordWrapper.vue.d.ts +20 -0
  73. package/keycloakify-vue/login/components/SelectTag.vue +74 -0
  74. package/keycloakify-vue/login/components/SelectTag.vue.d.ts +4 -0
  75. package/keycloakify-vue/login/components/TermsAcceptance.vue +59 -0
  76. package/keycloakify-vue/login/components/TermsAcceptance.vue.d.ts +13 -0
  77. package/keycloakify-vue/login/components/TextareaTag.vue +47 -0
  78. package/keycloakify-vue/login/components/TextareaTag.vue.d.ts +4 -0
  79. package/keycloakify-vue/login/components/UserProfileFormFields.vue +119 -0
  80. package/keycloakify-vue/login/components/UserProfileFormFields.vue.d.ts +33 -0
  81. package/keycloakify-vue/login/components/UserProfileFormFieldsProps.d.ts +22 -0
  82. package/keycloakify-vue/login/components/UserProfileFormFieldsProps.js +0 -0
  83. package/keycloakify-vue/login/components/inputLabel.d.ts +4 -0
  84. package/keycloakify-vue/login/components/inputLabel.js +15 -0
  85. package/keycloakify-vue/login/i18n/i18n.d.ts +11 -0
  86. package/keycloakify-vue/login/i18n/i18n.js +0 -0
  87. package/keycloakify-vue/login/i18n/i18nBuilder.d.ts +18 -0
  88. package/keycloakify-vue/login/i18n/i18nBuilder.js +29 -0
  89. package/keycloakify-vue/login/i18n/index.d.ts +1 -0
  90. package/keycloakify-vue/login/i18n/index.js +1 -0
  91. package/keycloakify-vue/login/i18n/useI18n.d.ts +28 -0
  92. package/keycloakify-vue/login/i18n/useI18n.js +67 -0
  93. package/keycloakify-vue/login/index.d.ts +5 -0
  94. package/keycloakify-vue/login/index.js +10 -0
  95. package/keycloakify-vue/login/lib/useUserProfileForm.d.ts +53 -0
  96. package/keycloakify-vue/login/lib/useUserProfileForm.js +50 -0
  97. package/keycloakify-vue/login/pages/Code.vue +54 -0
  98. package/keycloakify-vue/login/pages/Code.vue.d.ts +9 -0
  99. package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue +69 -0
  100. package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue.d.ts +9 -0
  101. package/keycloakify-vue/login/pages/DeleteCredential.vue +56 -0
  102. package/keycloakify-vue/login/pages/DeleteCredential.vue.d.ts +9 -0
  103. package/keycloakify-vue/login/pages/Error.vue +41 -0
  104. package/keycloakify-vue/login/pages/Error.vue.d.ts +9 -0
  105. package/keycloakify-vue/login/pages/FrontchannelLogout.vue +67 -0
  106. package/keycloakify-vue/login/pages/FrontchannelLogout.vue.d.ts +9 -0
  107. package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue +77 -0
  108. package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue.d.ts +14 -0
  109. package/keycloakify-vue/login/pages/Info.vue +61 -0
  110. package/keycloakify-vue/login/pages/Info.vue.d.ts +9 -0
  111. package/keycloakify-vue/login/pages/LinkIdpAction.vue +66 -0
  112. package/keycloakify-vue/login/pages/LinkIdpAction.vue.d.ts +9 -0
  113. package/keycloakify-vue/login/pages/Login.vue +230 -0
  114. package/keycloakify-vue/login/pages/Login.vue.d.ts +9 -0
  115. package/keycloakify-vue/login/pages/LoginConfigTotp.vue +233 -0
  116. package/keycloakify-vue/login/pages/LoginConfigTotp.vue.d.ts +9 -0
  117. package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue +57 -0
  118. package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue.d.ts +9 -0
  119. package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
  120. package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue.d.ts +9 -0
  121. package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue +52 -0
  122. package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue.d.ts +9 -0
  123. package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
  124. package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue.d.ts +9 -0
  125. package/keycloakify-vue/login/pages/LoginOauthGrant.vue +131 -0
  126. package/keycloakify-vue/login/pages/LoginOauthGrant.vue.d.ts +9 -0
  127. package/keycloakify-vue/login/pages/LoginOtp.vue +135 -0
  128. package/keycloakify-vue/login/pages/LoginOtp.vue.d.ts +9 -0
  129. package/keycloakify-vue/login/pages/LoginPageExpired.vue +44 -0
  130. package/keycloakify-vue/login/pages/LoginPageExpired.vue.d.ts +9 -0
  131. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.d.ts +21 -0
  132. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.js +74 -0
  133. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
  134. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue.d.ts +9 -0
  135. package/keycloakify-vue/login/pages/LoginPassword.useScript.d.ts +23 -0
  136. package/keycloakify-vue/login/pages/LoginPassword.useScript.js +64 -0
  137. package/keycloakify-vue/login/pages/LoginPassword.vue +191 -0
  138. package/keycloakify-vue/login/pages/LoginPassword.vue.d.ts +9 -0
  139. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.d.ts +9 -0
  140. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.js +139 -0
  141. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
  142. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue.d.ts +9 -0
  143. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
  144. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue.d.ts +9 -0
  145. package/keycloakify-vue/login/pages/LoginResetOtp.vue +88 -0
  146. package/keycloakify-vue/login/pages/LoginResetOtp.vue.d.ts +9 -0
  147. package/keycloakify-vue/login/pages/LoginResetPassword.vue +114 -0
  148. package/keycloakify-vue/login/pages/LoginResetPassword.vue.d.ts +9 -0
  149. package/keycloakify-vue/login/pages/LoginUpdatePassword.vue +145 -0
  150. package/keycloakify-vue/login/pages/LoginUpdatePassword.vue.d.ts +9 -0
  151. package/keycloakify-vue/login/pages/LoginUpdateProfile.vue +94 -0
  152. package/keycloakify-vue/login/pages/LoginUpdateProfile.vue.d.ts +14 -0
  153. package/keycloakify-vue/login/pages/LoginUsername.useScript.d.ts +23 -0
  154. package/keycloakify-vue/login/pages/LoginUsername.useScript.js +64 -0
  155. package/keycloakify-vue/login/pages/LoginUsername.vue +263 -0
  156. package/keycloakify-vue/login/pages/LoginUsername.vue.d.ts +9 -0
  157. package/keycloakify-vue/login/pages/LoginVerifyEmail.vue +39 -0
  158. package/keycloakify-vue/login/pages/LoginVerifyEmail.vue.d.ts +9 -0
  159. package/keycloakify-vue/login/pages/LoginX509Info.vue +120 -0
  160. package/keycloakify-vue/login/pages/LoginX509Info.vue.d.ts +9 -0
  161. package/keycloakify-vue/login/pages/LogoutConfirm.vue +73 -0
  162. package/keycloakify-vue/login/pages/LogoutConfirm.vue.d.ts +9 -0
  163. package/keycloakify-vue/login/pages/NotImplemented.vue +12 -0
  164. package/keycloakify-vue/login/pages/NotImplemented.vue.d.ts +6 -0
  165. package/keycloakify-vue/login/pages/PageProps.d.ts +9 -0
  166. package/keycloakify-vue/login/pages/PageProps.js +0 -0
  167. package/keycloakify-vue/login/pages/Register.vue +158 -0
  168. package/keycloakify-vue/login/pages/Register.vue.d.ts +14 -0
  169. package/keycloakify-vue/login/pages/SamlPostForm.vue +75 -0
  170. package/keycloakify-vue/login/pages/SamlPostForm.vue.d.ts +9 -0
  171. package/keycloakify-vue/login/pages/SelectAuthenticator.vue +65 -0
  172. package/keycloakify-vue/login/pages/SelectAuthenticator.vue.d.ts +9 -0
  173. package/keycloakify-vue/login/pages/SelectOrganization.vue +89 -0
  174. package/keycloakify-vue/login/pages/SelectOrganization.vue.d.ts +9 -0
  175. package/keycloakify-vue/login/pages/Terms.vue +56 -0
  176. package/keycloakify-vue/login/pages/Terms.vue.d.ts +9 -0
  177. package/keycloakify-vue/login/pages/UpdateEmail.vue +100 -0
  178. package/keycloakify-vue/login/pages/UpdateEmail.vue.d.ts +14 -0
  179. package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.d.ts +22 -0
  180. package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.js +53 -0
  181. package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue +186 -0
  182. package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue.d.ts +9 -0
  183. package/keycloakify-vue/login/pages/WebauthnError.vue +84 -0
  184. package/keycloakify-vue/login/pages/WebauthnError.vue.d.ts +9 -0
  185. package/keycloakify-vue/login/pages/WebauthnRegister.useScript.d.ts +28 -0
  186. package/keycloakify-vue/login/pages/WebauthnRegister.useScript.js +75 -0
  187. package/keycloakify-vue/login/pages/WebauthnRegister.vue +105 -0
  188. package/keycloakify-vue/login/pages/WebauthnRegister.vue.d.ts +9 -0
  189. package/keycloakify-vue/tools/useInsertLinkTags.d.ts +12 -0
  190. package/keycloakify-vue/tools/useInsertLinkTags.js +47 -0
  191. package/keycloakify-vue/tools/useInsertScriptTags.d.ts +19 -0
  192. package/keycloakify-vue/tools/useInsertScriptTags.js +56 -0
  193. package/keycloakify-vue/tools/useSetClassName.d.ts +4 -0
  194. package/keycloakify-vue/tools/useSetClassName.js +16 -0
  195. package/package.json +553 -0
  196. package/src/account/DefaultPage.vue +55 -0
  197. package/src/account/KcContext/index.ts +1 -0
  198. package/src/account/Template.useInitialize.ts +34 -0
  199. package/src/account/Template.vue +178 -0
  200. package/src/account/TemplateProps.ts +11 -0
  201. package/src/account/i18n/i18n.ts +16 -0
  202. package/src/account/i18n/i18nBuilder.ts +100 -0
  203. package/src/account/i18n/index.ts +1 -0
  204. package/src/account/i18n/useI18n.ts +128 -0
  205. package/src/account/index.ts +4 -0
  206. package/src/account/pages/Account.vue +182 -0
  207. package/src/account/pages/Applications.vue +192 -0
  208. package/src/account/pages/FederatedIdentity.vue +123 -0
  209. package/src/account/pages/Log.vue +64 -0
  210. package/src/account/pages/NotImplemented.vue +24 -0
  211. package/src/account/pages/PageProps.ts +10 -0
  212. package/src/account/pages/Password.vue +247 -0
  213. package/src/account/pages/Sessions.vue +84 -0
  214. package/src/account/pages/Totp.vue +308 -0
  215. package/src/bin/initialize-account-theme/boilerplate/KcContext.ts +11 -0
  216. package/src/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
  217. package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +22 -0
  218. package/src/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
  219. package/src/bin/initialize-account-theme/boilerplate/i18n.ts +8 -0
  220. package/src/login/DefaultPage.vue +167 -0
  221. package/src/login/Template.useInitialize.ts +71 -0
  222. package/src/login/Template.vue +239 -0
  223. package/src/login/TemplateProps.ts +17 -0
  224. package/src/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
  225. package/src/login/components/FieldErrors.vue +35 -0
  226. package/src/login/components/GroupLabel.vue +68 -0
  227. package/src/login/components/InputFieldByType.vue +94 -0
  228. package/src/login/components/InputFieldByTypeProps.ts +13 -0
  229. package/src/login/components/InputTag.vue +105 -0
  230. package/src/login/components/InputTagSelects.vue +108 -0
  231. package/src/login/components/LogoutOtherSessions.vue +27 -0
  232. package/src/login/components/PasswordWrapper.vue +42 -0
  233. package/src/login/components/SelectTag.vue +74 -0
  234. package/src/login/components/TermsAcceptance.vue +59 -0
  235. package/src/login/components/TextareaTag.vue +47 -0
  236. package/src/login/components/UserProfileFormFields.vue +119 -0
  237. package/src/login/components/UserProfileFormFieldsProps.ts +22 -0
  238. package/src/login/components/inputLabel.ts +18 -0
  239. package/src/login/i18n/i18n.ts +16 -0
  240. package/src/login/i18n/i18nBuilder.ts +100 -0
  241. package/src/login/i18n/index.ts +1 -0
  242. package/src/login/i18n/useI18n.ts +128 -0
  243. package/src/login/index.ts +5 -0
  244. package/src/login/lib/useUserProfileForm.ts +121 -0
  245. package/src/login/pages/Code.vue +54 -0
  246. package/src/login/pages/DeleteAccountConfirm.vue +69 -0
  247. package/src/login/pages/DeleteCredential.vue +56 -0
  248. package/src/login/pages/Error.vue +41 -0
  249. package/src/login/pages/FrontchannelLogout.vue +67 -0
  250. package/src/login/pages/IdpReviewUserProfile.vue +77 -0
  251. package/src/login/pages/Info.vue +61 -0
  252. package/src/login/pages/LinkIdpAction.vue +66 -0
  253. package/src/login/pages/Login.vue +230 -0
  254. package/src/login/pages/LoginConfigTotp.vue +233 -0
  255. package/src/login/pages/LoginIdpLinkConfirm.vue +57 -0
  256. package/src/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
  257. package/src/login/pages/LoginIdpLinkEmail.vue +52 -0
  258. package/src/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
  259. package/src/login/pages/LoginOauthGrant.vue +131 -0
  260. package/src/login/pages/LoginOtp.vue +135 -0
  261. package/src/login/pages/LoginPageExpired.vue +44 -0
  262. package/src/login/pages/LoginPasskeysConditionalAuthenticate.useScript.ts +96 -0
  263. package/src/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
  264. package/src/login/pages/LoginPassword.useScript.ts +88 -0
  265. package/src/login/pages/LoginPassword.vue +191 -0
  266. package/src/login/pages/LoginRecoveryAuthnCodeConfig.useScript.ts +152 -0
  267. package/src/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
  268. package/src/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
  269. package/src/login/pages/LoginResetOtp.vue +88 -0
  270. package/src/login/pages/LoginResetPassword.vue +114 -0
  271. package/src/login/pages/LoginUpdatePassword.vue +145 -0
  272. package/src/login/pages/LoginUpdateProfile.vue +94 -0
  273. package/src/login/pages/LoginUsername.useScript.ts +88 -0
  274. package/src/login/pages/LoginUsername.vue +263 -0
  275. package/src/login/pages/LoginVerifyEmail.vue +39 -0
  276. package/src/login/pages/LoginX509Info.vue +120 -0
  277. package/src/login/pages/LogoutConfirm.vue +73 -0
  278. package/src/login/pages/NotImplemented.vue +12 -0
  279. package/src/login/pages/PageProps.ts +10 -0
  280. package/src/login/pages/Register.vue +158 -0
  281. package/src/login/pages/SamlPostForm.vue +75 -0
  282. package/src/login/pages/SelectAuthenticator.vue +65 -0
  283. package/src/login/pages/SelectOrganization.vue +89 -0
  284. package/src/login/pages/Terms.vue +56 -0
  285. package/src/login/pages/UpdateEmail.vue +100 -0
  286. package/src/login/pages/WebauthnAuthenticate.useScript.ts +75 -0
  287. package/src/login/pages/WebauthnAuthenticate.vue +186 -0
  288. package/src/login/pages/WebauthnError.vue +84 -0
  289. package/src/login/pages/WebauthnRegister.useScript.ts +109 -0
  290. package/src/login/pages/WebauthnRegister.vue +105 -0
  291. package/src/tools/useInsertLinkTags.ts +62 -0
  292. package/src/tools/useInsertScriptTags.ts +75 -0
  293. package/src/tools/useSetClassName.ts +15 -0
  294. package/stories/account/KcContext.ts +13 -0
  295. package/stories/account/KcContextMock.ts +26 -0
  296. package/stories/account/KcPage.vue +26 -0
  297. package/stories/account/KcPageStory.vue +13 -0
  298. package/stories/account/i18n.ts +7 -0
  299. package/stories/account/pages/Account.stories.ts +22 -0
  300. package/stories/account/pages/Applications.stories.ts +70 -0
  301. package/stories/account/pages/FederatedIdentity.stories.ts +64 -0
  302. package/stories/account/pages/Log.stories.ts +42 -0
  303. package/stories/account/pages/Password.stories.ts +22 -0
  304. package/stories/account/pages/Sessions.stories.ts +41 -0
  305. package/stories/account/pages/Totp.stories.ts +33 -0
  306. package/stories/kc.gen.ts +17 -0
  307. package/stories/login/KcContext.ts +13 -0
  308. package/stories/login/KcContextMock.ts +26 -0
  309. package/stories/login/KcPage.vue +28 -0
  310. package/stories/login/KcPageStory.vue +13 -0
  311. package/stories/login/i18n.ts +7 -0
  312. package/stories/login/pages/Code.stories.ts +50 -0
  313. package/stories/login/pages/DeleteAccountConfirm.stories.ts +32 -0
  314. package/stories/login/pages/DeleteCredential.stories.ts +23 -0
  315. package/stories/login/pages/Error.stories.ts +53 -0
  316. package/stories/login/pages/FrontchannelLogout.stories.ts +24 -0
  317. package/stories/login/pages/IdpReviewUserProfile.stories.ts +56 -0
  318. package/stories/login/pages/Info.stories.ts +52 -0
  319. package/stories/login/pages/LinkIdpAction.stories.ts +30 -0
  320. package/stories/login/pages/Login.stories.ts +76 -0
  321. package/stories/login/pages/LoginConfigTotp.stories.ts +53 -0
  322. package/stories/login/pages/LoginIdpLinkConfirm.stories.ts +34 -0
  323. package/stories/login/pages/LoginIdpLinkConfirmOverride.stories.ts +14 -0
  324. package/stories/login/pages/LoginIdpLinkEmail.stories.ts +60 -0
  325. package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.ts +42 -0
  326. package/stories/login/pages/LoginOauthGrant.stories.ts +95 -0
  327. package/stories/login/pages/LoginOtp.stories.ts +92 -0
  328. package/stories/login/pages/LoginPageExpired.stories.ts +29 -0
  329. package/stories/login/pages/LoginPasskeysConditionalAuthenticate.stories.ts +14 -0
  330. package/stories/login/pages/LoginPassword.stories.ts +49 -0
  331. package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.ts +28 -0
  332. package/stories/login/pages/LoginRecoveryAuthnCodeInput.stories.ts +14 -0
  333. package/stories/login/pages/LoginResetOtp.stories.ts +69 -0
  334. package/stories/login/pages/LoginResetPassword.stories.ts +48 -0
  335. package/stories/login/pages/LoginUpdatePassword.stories.ts +52 -0
  336. package/stories/login/pages/LoginUpdateProfile.stories.ts +29 -0
  337. package/stories/login/pages/LoginUsername.stories.ts +25 -0
  338. package/stories/login/pages/LoginVerifyEmail.stories.ts +63 -0
  339. package/stories/login/pages/LoginX509Info.stories.ts +29 -0
  340. package/stories/login/pages/LogoutConfirm.stories.ts +35 -0
  341. package/stories/login/pages/Register.stories.ts +76 -0
  342. package/stories/login/pages/SamlPostForm.stories.ts +14 -0
  343. package/stories/login/pages/SelectAuthenticator.stories.ts +89 -0
  344. package/stories/login/pages/SelectOrganization.stories.ts +63 -0
  345. package/stories/login/pages/Terms.stories.ts +78 -0
  346. package/stories/login/pages/UpdateEmail.stories.ts +28 -0
  347. package/stories/login/pages/WebauthnAuthenticate.stories.ts +147 -0
  348. package/stories/login/pages/WebauthnError.stories.ts +77 -0
  349. package/stories/login/pages/WebauthnRegister.stories.ts +54 -0
@@ -0,0 +1,26 @@
1
+ <script setup lang="ts">
2
+ import type { ClassKey } from 'keycloakify/account/lib/kcClsx';
3
+ import { DefaultPage, Template } from '../../src/account';
4
+ import type { KcContext } from './KcContext';
5
+ import { useI18n } from './i18n';
6
+
7
+ const props = defineProps<{ kcContext: KcContext }>();
8
+
9
+ const { i18n } = useI18n({ kcContext: props.kcContext });
10
+
11
+ const classes = {} satisfies { [key in ClassKey]?: string };
12
+
13
+ // `doUseDefaultCss: false` so Template's `isReadyToRender` gate resolves
14
+ // immediately — pages render reliably (unstyled) in the library's Storybook.
15
+ const doUseDefaultCss = false;
16
+ </script>
17
+
18
+ <template>
19
+ <DefaultPage
20
+ :kcContext="kcContext"
21
+ :i18n="i18n"
22
+ :classes="classes"
23
+ :Template="Template"
24
+ :doUseDefaultCss="doUseDefaultCss"
25
+ />
26
+ </template>
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+ import { computed } from 'vue';
3
+ import { getKcContextMock, type KcPageStoryProps } from './KcContextMock';
4
+ import KcPage from './KcPage.vue';
5
+
6
+ const props = defineProps<KcPageStoryProps>();
7
+
8
+ const kcContextMock = computed(() => getKcContextMock({ pageId: props.pageId, overrides: props.kcContext }));
9
+ </script>
10
+
11
+ <template>
12
+ <KcPage :kcContext="kcContextMock" />
13
+ </template>
@@ -0,0 +1,7 @@
1
+ import { i18nBuilder } from '../../src/account/i18n/i18nBuilder';
2
+ import type { ThemeName } from '../kc.gen';
3
+
4
+ const { useI18n, ofTypeI18n } = i18nBuilder.withThemeName<ThemeName>().build();
5
+
6
+ type I18n = typeof ofTypeI18n;
7
+ export { useI18n, type I18n };
@@ -0,0 +1,22 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/account.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'account.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithReferrer: Story = {
17
+ args: {
18
+ kcContext: {
19
+ referrer: { url: '#', name: 'myApp' },
20
+ },
21
+ },
22
+ };
@@ -0,0 +1,70 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/applications.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'applications.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithConsentedScopes: Story = {
17
+ args: {
18
+ kcContext: {
19
+ applications: {
20
+ applications: [
21
+ {
22
+ realmRolesAvailable: [
23
+ {
24
+ name: 'realmRoleName1',
25
+ description: 'realm role description 1',
26
+ },
27
+ {
28
+ name: 'realmRoleName2',
29
+ description: 'realm role description 2',
30
+ },
31
+ ],
32
+ resourceRolesAvailable: {
33
+ resource1: [
34
+ {
35
+ roleName: 'Resource Role Name 1',
36
+ roleDescription: 'Resource role 1 description',
37
+ clientName: 'Client Name 1',
38
+ clientId: 'client1',
39
+ },
40
+ ],
41
+ },
42
+ additionalGrants: ['offline_access'],
43
+ clientScopesGranted: ['openid', 'profile', 'email'],
44
+ effectiveUrl: '#',
45
+ client: {
46
+ clientId: 'my-app',
47
+ name: 'My Application',
48
+ consentRequired: true,
49
+ id: 'my-app-id',
50
+ },
51
+ },
52
+ {
53
+ realmRolesAvailable: [],
54
+ resourceRolesAvailable: {},
55
+ additionalGrants: [],
56
+ clientScopesGranted: [],
57
+ effectiveUrl: '#',
58
+ client: {
59
+ clientId: 'another-app',
60
+ name: 'Another Application',
61
+ consentRequired: false,
62
+ id: 'another-app-id',
63
+ },
64
+ },
65
+ ],
66
+ },
67
+ stateChecker: 'test-state-checker',
68
+ },
69
+ },
70
+ };
@@ -0,0 +1,64 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/federatedIdentity.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'federatedIdentity.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const ConnectedAndUnconnected: Story = {
17
+ args: {
18
+ kcContext: {
19
+ federatedIdentity: {
20
+ identities: [
21
+ {
22
+ providerId: 'google',
23
+ displayName: 'Google',
24
+ userName: 'john.doe@gmail.com',
25
+ connected: true,
26
+ },
27
+ {
28
+ providerId: 'github',
29
+ displayName: 'GitHub',
30
+ userName: '',
31
+ connected: false,
32
+ },
33
+ ],
34
+ removeLinkPossible: true,
35
+ },
36
+ stateChecker: 'test-state-checker',
37
+ url: {
38
+ socialUrl: '/social',
39
+ },
40
+ },
41
+ },
42
+ };
43
+
44
+ export const RemoveLinkNotPossible: Story = {
45
+ args: {
46
+ kcContext: {
47
+ federatedIdentity: {
48
+ identities: [
49
+ {
50
+ providerId: 'google',
51
+ displayName: 'Google',
52
+ userName: 'john.doe@gmail.com',
53
+ connected: true,
54
+ },
55
+ ],
56
+ removeLinkPossible: false,
57
+ },
58
+ stateChecker: 'test-state-checker',
59
+ url: {
60
+ socialUrl: '/social',
61
+ },
62
+ },
63
+ },
64
+ };
@@ -0,0 +1,42 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/log.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'log.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithEvents: Story = {
17
+ args: {
18
+ kcContext: {
19
+ log: {
20
+ events: [
21
+ {
22
+ date: new Date('2024-01-15T10:30:00Z').getTime(),
23
+ event: 'LOGIN',
24
+ ipAddress: '192.168.1.100',
25
+ client: 'my-app',
26
+ details: [
27
+ { key: 'auth_method', value: 'openid-connect' },
28
+ { key: 'token_id', value: 'abc123' },
29
+ ],
30
+ },
31
+ {
32
+ date: new Date('2024-01-14T08:15:00Z').getTime(),
33
+ event: 'LOGOUT',
34
+ ipAddress: '192.168.1.101',
35
+ client: 'another-app',
36
+ details: [],
37
+ },
38
+ ],
39
+ },
40
+ },
41
+ },
42
+ };
@@ -0,0 +1,22 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/password.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'password.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const PasswordNotSet: Story = {
17
+ args: {
18
+ kcContext: {
19
+ password: { passwordSet: false },
20
+ },
21
+ },
22
+ };
@@ -0,0 +1,41 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/sessions.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'sessions.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithSessions: Story = {
17
+ args: {
18
+ kcContext: {
19
+ sessions: {
20
+ sessions: [
21
+ {
22
+ id: 'session-1',
23
+ ipAddress: '192.168.1.100',
24
+ started: '1/15/2024, 10:30:00 AM',
25
+ lastAccess: '1/15/2024, 11:45:00 AM',
26
+ expires: '1/15/2024, 12:30:00 PM',
27
+ clients: ['my-app', 'another-app'],
28
+ },
29
+ {
30
+ id: 'session-2',
31
+ ipAddress: '10.0.0.5',
32
+ started: '1/14/2024, 9:00:00 AM',
33
+ lastAccess: '1/14/2024, 9:30:00 AM',
34
+ expires: '1/14/2024, 10:00:00 AM',
35
+ clients: ['mobile-app'],
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ },
41
+ };
@@ -0,0 +1,33 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'account/totp.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'totp.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const Manual: Story = {
17
+ args: {
18
+ kcContext: {
19
+ mode: 'manual',
20
+ },
21
+ },
22
+ };
23
+
24
+ export const Enabled: Story = {
25
+ args: {
26
+ kcContext: {
27
+ totp: {
28
+ enabled: true,
29
+ otpCredentials: [{ id: 'cred1', userLabel: 'My Phone' }],
30
+ },
31
+ },
32
+ },
33
+ };
@@ -0,0 +1,17 @@
1
+ export type ThemeName = 'keycloakify-vue';
2
+
3
+ export const themeNames: ThemeName[] = ['keycloakify-vue'];
4
+
5
+ export type KcEnvName = never;
6
+
7
+ export const kcEnvNames: KcEnvName[] = [];
8
+
9
+ export const kcEnvDefaults: Record<KcEnvName, string> = {};
10
+
11
+ export type KcContext = import('./login/KcContext').KcContext;
12
+
13
+ declare global {
14
+ interface Window {
15
+ kcContext?: KcContext;
16
+ }
17
+ }
@@ -0,0 +1,13 @@
1
+ /* eslint-disable @typescript-eslint/no-empty-object-type */
2
+ import type { ExtendKcContext } from 'keycloakify/login';
3
+ import type { KcEnvName, ThemeName } from '../kc.gen';
4
+
5
+ export type KcContextExtension = {
6
+ themeName: ThemeName;
7
+
8
+ properties: Record<KcEnvName, string> & {};
9
+ };
10
+
11
+ export type KcContextExtensionPerPage = {};
12
+
13
+ export type KcContext = ExtendKcContext<KcContextExtension, KcContextExtensionPerPage>;
@@ -0,0 +1,26 @@
1
+ import { createGetKcContextMock } from 'keycloakify/login/KcContext';
2
+ import type { DeepPartial } from 'keycloakify/tools/DeepPartial';
3
+ import { kcEnvDefaults, themeNames } from '../kc.gen';
4
+ import type { KcContext, KcContextExtension, KcContextExtensionPerPage } from './KcContext';
5
+
6
+ const kcContextExtension: KcContextExtension = {
7
+ themeName: themeNames[0],
8
+ properties: {
9
+ ...kcEnvDefaults,
10
+ },
11
+ };
12
+ const kcContextExtensionPerPage: KcContextExtensionPerPage = {};
13
+
14
+ export const { getKcContextMock } = createGetKcContextMock({
15
+ kcContextExtension,
16
+ kcContextExtensionPerPage,
17
+ overrides: {},
18
+ overridesPerPage: {},
19
+ });
20
+
21
+ type PageId = KcContext['pageId'];
22
+
23
+ export type KcPageStoryProps = {
24
+ pageId: PageId;
25
+ kcContext?: DeepPartial<Extract<KcContext, { pageId: PageId }>>;
26
+ };
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
3
+ import { DefaultPage, Template, UserProfileFormFields } from '../../src/login';
4
+ import type { KcContext } from './KcContext';
5
+ import { useI18n } from './i18n';
6
+
7
+ const props = defineProps<{ kcContext: KcContext }>();
8
+
9
+ const { i18n } = useI18n({ kcContext: props.kcContext });
10
+
11
+ const classes = {} satisfies { [key in ClassKey]?: string };
12
+
13
+ // `doUseDefaultCss: false` so Template's `isReadyToRender` gate resolves
14
+ // immediately — pages render reliably (unstyled) in the library's Storybook.
15
+ const doUseDefaultCss = false;
16
+ </script>
17
+
18
+ <template>
19
+ <DefaultPage
20
+ :kcContext="kcContext"
21
+ :i18n="i18n"
22
+ :classes="classes"
23
+ :Template="Template"
24
+ :UserProfileFormFields="UserProfileFormFields"
25
+ :doUseDefaultCss="doUseDefaultCss"
26
+ :doMakeUserConfirmPassword="true"
27
+ />
28
+ </template>
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+ import { computed } from 'vue';
3
+ import { getKcContextMock, type KcPageStoryProps } from './KcContextMock';
4
+ import KcPage from './KcPage.vue';
5
+
6
+ const props = defineProps<KcPageStoryProps>();
7
+
8
+ const kcContextMock = computed(() => getKcContextMock({ pageId: props.pageId, overrides: props.kcContext }));
9
+ </script>
10
+
11
+ <template>
12
+ <KcPage :kcContext="kcContextMock" />
13
+ </template>
@@ -0,0 +1,7 @@
1
+ import { i18nBuilder } from '../../src/login';
2
+ import type { ThemeName } from '../kc.gen';
3
+
4
+ const { useI18n, ofTypeI18n } = i18nBuilder.withThemeName<ThemeName>().build();
5
+
6
+ type I18n = typeof ofTypeI18n;
7
+ export { useI18n, type I18n };
@@ -0,0 +1,50 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'login/code.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'code.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithErrorCode: Story = {
17
+ args: {
18
+ kcContext: {
19
+ code: {
20
+ success: false,
21
+ error: 'Failed to generate code',
22
+ },
23
+ },
24
+ },
25
+ };
26
+
27
+ export const WithFrenchLanguage: Story = {
28
+ args: {
29
+ kcContext: {
30
+ locale: {
31
+ currentLanguageTag: 'fr',
32
+ },
33
+ code: {
34
+ success: true,
35
+ code: 'XYZ789',
36
+ },
37
+ },
38
+ },
39
+ };
40
+
41
+ export const WithHtmlErrorMessage: Story = {
42
+ args: {
43
+ kcContext: {
44
+ code: {
45
+ success: false,
46
+ error: "Something went wrong. <a href='https://example.com'>Try again</a>",
47
+ },
48
+ },
49
+ },
50
+ };
@@ -0,0 +1,32 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'login/delete-account-confirm.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'delete-account-confirm.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithAIAFlow: Story = {
17
+ args: {
18
+ kcContext: {
19
+ triggered_from_aia: true,
20
+ url: { loginAction: '/login-action' },
21
+ },
22
+ },
23
+ };
24
+
25
+ export const WithoutAIAFlow: Story = {
26
+ args: {
27
+ kcContext: {
28
+ triggered_from_aia: false,
29
+ url: { loginAction: '/login-action' },
30
+ },
31
+ },
32
+ };
@@ -0,0 +1,23 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'login/delete-credential.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'delete-credential.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithCustomCredentialLabel: Story = {
17
+ args: {
18
+ kcContext: {
19
+ credentialLabel: 'Test Credential',
20
+ url: { loginAction: '/login-action' },
21
+ },
22
+ },
23
+ };
@@ -0,0 +1,53 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'login/error.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'error.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithAnotherMessage: Story = {
17
+ args: {
18
+ kcContext: {
19
+ message: { summary: 'With another error message' },
20
+ },
21
+ },
22
+ };
23
+
24
+ export const WithHtmlErrorMessage: Story = {
25
+ args: {
26
+ kcContext: {
27
+ message: {
28
+ summary: "<strong>Error:</strong> Something went wrong. <a href='https://example.com'>Go back</a>",
29
+ },
30
+ },
31
+ },
32
+ };
33
+
34
+ export const FrenchError: Story = {
35
+ args: {
36
+ kcContext: {
37
+ locale: { currentLanguageTag: 'fr' },
38
+ message: { summary: "Une erreur s'est produite" },
39
+ },
40
+ },
41
+ };
42
+
43
+ export const WithSkipLink: Story = {
44
+ args: {
45
+ kcContext: {
46
+ message: { summary: 'An error occurred' },
47
+ skipLink: true,
48
+ client: {
49
+ baseUrl: 'https://example.com',
50
+ },
51
+ },
52
+ },
53
+ };
@@ -0,0 +1,24 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import KcPageStory from '../KcPageStory.vue';
3
+
4
+ const meta = {
5
+ title: 'login/frontchannel-logout.ftl',
6
+ component: KcPageStory,
7
+ args: { pageId: 'frontchannel-logout.ftl' },
8
+ } satisfies Meta<typeof KcPageStory>;
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Default: Story = {};
15
+
16
+ export const WithoutRedirectUrl: Story = {
17
+ args: {
18
+ kcContext: {
19
+ logout: {
20
+ clients: [],
21
+ },
22
+ },
23
+ },
24
+ };