@ory/elements-react 1.0.0-next.29 → 1.0.0-next.30

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 (166) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.mts +3 -6
  3. package/dist/index.d.ts +3 -6
  4. package/dist/index.js +253 -299
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +253 -299
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/theme/default/index.js +258 -248
  9. package/dist/theme/default/index.js.map +1 -1
  10. package/dist/theme/default/index.mjs +215 -205
  11. package/dist/theme/default/index.mjs.map +1 -1
  12. package/package.json +3 -3
  13. package/.storybook/global.css +0 -7
  14. package/.storybook/main.ts +0 -50
  15. package/.storybook/preview-head.html +0 -15
  16. package/.storybook/preview.tsx +0 -68
  17. package/.storybook/public/InterVariable.woff2 +0 -0
  18. package/.storybook/public/inter.css +0 -8
  19. package/.stub-responses/login/1fa/all-methods/initial-form.json +0 -247
  20. package/.stub-responses/login/1fa/all-methods/missing-email.json +0 -265
  21. package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +0 -254
  22. package/.stub-responses/login/1fa/code/code-input.json +0 -135
  23. package/.stub-responses/login/1fa/code/initial-form.json +0 -173
  24. package/.stub-responses/login/1fa/code/invalid-account.json +0 -182
  25. package/.stub-responses/login/1fa/code/missing-email.json +0 -182
  26. package/.stub-responses/login/1fa/code/wrong-credentials.json +0 -124
  27. package/.stub-responses/login/1fa/none/initial-form.json +0 -33
  28. package/.stub-responses/login/1fa/oidc/initial-form.json +0 -279
  29. package/.stub-responses/login/1fa/passkey/initial-form.json +0 -122
  30. package/.stub-responses/login/1fa/password/initial-form.json +0 -154
  31. package/.stub-responses/login/1fa/password/missing-email.json +0 -172
  32. package/.stub-responses/login/1fa/password/wrong-credentials.json +0 -163
  33. package/.stub-responses/login/1fa/webauthn/initial-form.json +0 -76
  34. package/.stub-responses/login/1fa/webauthn/invalid-account.json +0 -83
  35. package/.stub-responses/login/1fa/webauthn/show-trigger.json +0 -105
  36. package/.stub-responses/recovery/disabled/initial-form.json +0 -9
  37. package/.stub-responses/recovery/none/initial-form.json +0 -9
  38. package/.stub-responses/registration/one-step/all-methods/initial-form.json +0 -334
  39. package/.stub-responses/registration/one-step/all-methods/missing-fields.json +0 -343
  40. package/.stub-responses/registration/one-step/disabled/initial-form.json +0 -10
  41. package/.stub-responses/registration/one-step/none/initial-form.json +0 -14
  42. package/.stub-responses/registration/one-step/oidc/initial-form.json +0 -338
  43. package/.stub-responses/registration/one-step/passkey/initial-form.json +0 -177
  44. package/.stub-responses/registration/one-step/password/initial-form.json +0 -154
  45. package/.stub-responses/registration/one-step/password/missing-fields.json +0 -172
  46. package/.stub-responses/registration/one-step/password/second-step.json +0 -164
  47. package/.stub-responses/registration/one-step/webauthn/initial-form.json +0 -185
  48. package/.stub-responses/registration/two-step/all-methods/enter-password.json +0 -242
  49. package/.stub-responses/registration/two-step/all-methods/initial-form.json +0 -180
  50. package/.stub-responses/registration/two-step/all-methods/missing-fields.json +0 -189
  51. package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +0 -244
  52. package/.stub-responses/registration/two-step/password/enter-password.json +0 -108
  53. package/.stub-responses/registration/two-step/password/initial-form.json +0 -134
  54. package/.stub-responses/registration/two-step/password/missing-fields.json +0 -143
  55. package/.stub-responses/registration/two-step/password/password-validation-error.json +0 -110
  56. package/.stub-responses/settings/all-methods/change-password.json +0 -381
  57. package/.stub-responses/settings/all-methods/change-trait.json +0 -377
  58. package/.stub-responses/settings/all-methods/initial-form.json +0 -368
  59. package/.stub-responses/settings/oidc/with-provider.json +0 -230
  60. package/.stub-responses/settings/passkey/initial-form.json +0 -256
  61. package/.stub-responses/settings/webauthn/initial-form.json +0 -263
  62. package/.stub-responses/verification/disabled/initial-form.json +0 -9
  63. package/.stub-responses/verification/none/initial-form.json +0 -9
  64. package/stories/components/login/1fa/all.stories.ts +0 -46
  65. package/stories/components/login/1fa/code.stories.ts +0 -64
  66. package/stories/components/login/1fa/custom.stories.tsx +0 -72
  67. package/stories/components/login/1fa/none.stories.tsx +0 -28
  68. package/stories/components/login/1fa/oidc.stories.tsx +0 -143
  69. package/stories/components/login/1fa/passkey.stories.ts +0 -28
  70. package/stories/components/login/1fa/password.stories.ts +0 -46
  71. package/stories/components/login/1fa/webauthn.stories.ts +0 -46
  72. package/stories/components/registration/one-step/all-methods.stories.ts +0 -37
  73. package/stories/components/registration/one-step/password.stories.ts +0 -37
  74. package/stories/components/registration/one-step/webauthn.stories.ts +0 -28
  75. package/stories/components/registration/two-step/all-methods.stories.ts +0 -55
  76. package/stories/components/registration/two-step/password.stories.ts +0 -55
  77. package/stories/components/settings/all.stories.ts +0 -46
  78. package/stories/components/settings/oidc.stories.ts +0 -28
  79. package/stories/components/settings/passkey.stories.ts +0 -28
  80. package/stories/components/settings/webauthn.stories.ts +0 -28
  81. package/stories/pages/error.tsx +0 -29
  82. package/stories/utils.ts +0 -20
  83. package/storybook-static/InterVariable.woff2 +0 -0
  84. package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +0 -1
  85. package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +0 -595
  86. package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +0 -11
  87. package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +0 -21
  88. package/storybook-static/assets/all.stories-CtQ0yCQi.js +0 -16
  89. package/storybook-static/assets/all.stories-DgIVCzcZ.js +0 -16
  90. package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +0 -1
  91. package/storybook-static/assets/code.stories-BbEryDcA.js +0 -26
  92. package/storybook-static/assets/custom.stories-DH2zHar9.js +0 -6
  93. package/storybook-static/assets/entry-preview-CcFGVifh.js +0 -10
  94. package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +0 -54
  95. package/storybook-static/assets/iframe-C5GAfuxh.js +0 -2
  96. package/storybook-static/assets/index-BVoBHvaS.js +0 -8
  97. package/storybook-static/assets/index-CfOt2XX2.js +0 -24
  98. package/storybook-static/assets/index-DPRSEdy-.js +0 -1
  99. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  100. package/storybook-static/assets/index-FeUjBnvO.js +0 -1
  101. package/storybook-static/assets/index-uubelm5h.js +0 -9
  102. package/storybook-static/assets/initial-form-DWp_1F-f.js +0 -1
  103. package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +0 -9
  104. package/storybook-static/assets/none.stories-TAeRhzd5.js +0 -6
  105. package/storybook-static/assets/oidc.stories-CniWBy7t.js +0 -58
  106. package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +0 -6
  107. package/storybook-static/assets/passkey.stories-CBtjoVSN.js +0 -6
  108. package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +0 -6
  109. package/storybook-static/assets/password.stories-0s6cDl0o.js +0 -11
  110. package/storybook-static/assets/password.stories-B2Wtckz_.js +0 -16
  111. package/storybook-static/assets/password.stories-DX0gkWjH.js +0 -21
  112. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  113. package/storybook-static/assets/preview-BPAmP-pY.js +0 -2
  114. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  115. package/storybook-static/assets/preview-BXtF2ySE.js +0 -234
  116. package/storybook-static/assets/preview-Cur_8nCX.css +0 -1
  117. package/storybook-static/assets/preview-D77C14du.js +0 -34
  118. package/storybook-static/assets/preview-DCjDUH0w.js +0 -27
  119. package/storybook-static/assets/preview-DFmD0pui.js +0 -1
  120. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  121. package/storybook-static/assets/preview-aVwhiz9X.js +0 -1
  122. package/storybook-static/assets/react-18-CtsMCmcS.js +0 -1
  123. package/storybook-static/assets/settings-BqEFC2-V.css +0 -1
  124. package/storybook-static/assets/settings-Bx4osEmB.js +0 -2304
  125. package/storybook-static/assets/webauthn.stories-BzodmV0c.js +0 -6
  126. package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +0 -6
  127. package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +0 -16
  128. package/storybook-static/favicon.svg +0 -1
  129. package/storybook-static/iframe.html +0 -654
  130. package/storybook-static/index.html +0 -173
  131. package/storybook-static/index.json +0 -1
  132. package/storybook-static/inter.css +0 -8
  133. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  134. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  135. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  136. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  137. package/storybook-static/preview-stats.json +0 -2344
  138. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  139. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  140. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  141. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  142. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -394
  143. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  144. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  145. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  146. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  147. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  148. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  149. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  150. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  151. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  152. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -211
  153. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  154. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  155. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  156. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  157. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  158. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  159. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  160. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  161. package/storybook-static/sb-manager/globals-module-info.js +0 -1006
  162. package/storybook-static/sb-manager/globals-runtime.js +0 -54400
  163. package/storybook-static/sb-manager/globals.js +0 -48
  164. package/storybook-static/sb-manager/runtime.js +0 -12089
  165. package/storybook-static/sb-preview/globals.js +0 -33
  166. package/storybook-static/sb-preview/runtime.js +0 -9498
@@ -1,6 +0,0 @@
1
- import{R as r,e as i,g as n}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const o="f1cae1c5-b77d-444a-99da-65af40296baf",p="browser",u="2024-10-29T10:45:46.355386Z",l="2024-10-29T09:45:46.355386Z",c="https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/registration/browser?",y={action:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/registration?flow=f1cae1c5-b77d-444a-99da-65af40296baf",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"Y/Xu30T+fl0y9WgPtVFBgJl20FgPKOGL0PdRtYwrzXgDH90tMgGjBtkD+ucOu3NQere6LwwEcPqGZTlNt8hQ9w==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"romantic-tu-rf98ru5rql.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"pVtWPBf0QI68eZHkr6znbg"},"challenge":"eJAB1_JKWJoO9hi2NnpGS4MJ_hwwaV8tuIM6TeZCAEY","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"romantic-tu-rf98ru5rql.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"pVtWPBf0QI68eZHkr6znbg"},"challenge":"eJAB1_JKWJoO9hi2NnpGS4MJ_hwwaV8tuIM6TeZCAEY","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1040004,text:"Sign up with security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"cb97ee7e-8c82-43a1-897d-32ee254dbfb5",node_type:"script"},messages:[],meta:{}}]},d=null,b="choose_method",m={id:o,type:p,expires_at:u,issued_at:l,request_url:c,ui:y,organization_id:d,state:b},k={title:"Ory Elements/One Step Registration/Methods/WebAuthn",component:r,parameters:{layout:"centered"}},e={args:{flow:n(m),config:i}};var t,a,s;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{
2
- args: {
3
- flow: RegistrationFlowFromJSON(require("$snapshots/registration/one-step/webauthn/initial-form.json")),
4
- config
5
- }
6
- }`,...(s=(a=e.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const _=["ShowForm"];export{e as ShowForm,_ as __namedExportsOrder,k as default};
@@ -1,6 +0,0 @@
1
- import{S as r,e as i,h as n}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const o="60f4e8c2-fbb6-4b8b-b7f4-8c86199b828b",p="browser",u="2024-10-29T10:45:50.970243Z",d="2024-10-29T09:45:50.970243Z",l="https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/settings/browser?return_to=",c={action:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/settings?flow=60f4e8c2-fbb6-4b8b-b7f4-8c86199b828b",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"0daldcQZtQTCubGym72z4Lu7cLxdrB6fayrZQHBEDy0eLIEhAiDoynbmaqggV5WMtsicFEyzKyriKqgABn6ZsQ==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"traits.email",type:"email",value:"dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"profile",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"profile",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"profile",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070003,text:"Save",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_remove",type:"submit",value:"20520f3fd103c796ab8047412a2c2a84405fd6b18ea8458b5ef4c30934fe107c",disabled:!0,node_type:"input"},messages:[],meta:{label:{id:1050018,text:'Remove security key "unnamed"',type:"info",context:{added_at:"2024-10-29T09:45:47Z",added_at_unix:1730195147,display_name:"unnamed"}}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_displayname",type:"text",value:"",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1050013,text:"Name of the security key",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_register_trigger",type:"button",value:'{"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"romantic-tu-rf98ru5rql.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"hQzis_PrSXypRp3ut_GBjA"},"challenge":"8rDRfhrywkkApRhiRXpxmiuwqMsZObncWX7LdzkXaWY","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}}',disabled:!1,onclick:'window.oryWebAuthnRegistration({"publicKey":{"rp":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"romantic-tu-rf98ru5rql.projects.oryapis"},"user":{"name":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","displayName":"ory-cy-e2e-da2f162d-af61-42dd-90dc-e3fcfa7c84a0-Inm4ptsTsi1lsamq-2-tests/elements/webauthn.spec.ts\\u003eGenerate webauthn API responses for Ory Elements Storybook\\u003ewebauthn states","id":"hQzis_PrSXypRp3ut_GBjA"},"challenge":"8rDRfhrywkkApRhiRXpxmiuwqMsZObncWX7LdzkXaWY","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-39},{"type":"public-key","alg":-8}],"timeout":120000,"authenticatorSelection":{"requireResidentKey":false,"userVerification":"discouraged"}}})',onclickTrigger:"oryWebAuthnRegistration",node_type:"input"},messages:[],meta:{label:{id:1050012,text:"Add security key",type:"info"}}},{type:"script",group:"webauthn",attributes:{src:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"b15ab75b-973e-4f2f-a16c-afd3e9219b45",node_type:"script"},messages:[],meta:{}}]},y={id:"850ce2b3-f3eb-497c-a946-9deeb7f1818c",schema_id:"3295c9e92d19a78b10bfa45d7619eedcfb7d7ea4c2e8f163a21613da0ae6d4179f47fb58d1c23060f11126585f380ee9a9ce9a1d451f4b4de9ef33cc93ca763f",schema_url:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/schemas/MzI5NWM5ZTkyZDE5YTc4YjEwYmZhNDVkNzYxOWVlZGNmYjdkN2VhNGMyZThmMTYzYTIxNjEzZGEwYWU2ZDQxNzlmNDdmYjU4ZDFjMjMwNjBmMTExMjY1ODVmMzgwZWU5YTljZTlhMWQ0NTFmNGI0ZGU5ZWYzM2NjOTNjYTc2M2Y",state:"active",state_changed_at:"2024-10-29T09:45:47.097812Z",traits:{email:"dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",nested:{}},verifiable_addresses:[{id:"cacbe442-fb85-4180-aff9-7b36a565bb7c",value:"dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",verified:!1,via:"email",status:"sent",created_at:"2024-10-29T09:45:47.104222Z",updated_at:"2024-10-29T09:45:47.104222Z"}],recovery_addresses:[{id:"f3401149-fb92-44d8-90f4-83cf7e2323cd",value:"dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",via:"email",created_at:"2024-10-29T09:45:47.228338Z",updated_at:"2024-10-29T09:45:47.228338Z"}],metadata_public:null,created_at:"2024-10-29T09:45:47.099762Z",updated_at:"2024-10-29T09:45:47.099762Z",organization_id:null},b="show_form",m={id:o,type:p,expires_at:u,issued_at:d,request_url:l,ui:c,identity:y,state:b},_={title:"Ory Elements/Settings/Methods/Webauthn",component:r,parameters:{layout:"centered"}},e={args:{flow:n(m),config:i}};var t,a,s;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{
2
- args: {
3
- flow: SettingsFlowFromJSON(require("$snapshots/settings/webauthn/initial-form.json")),
4
- config
5
- }
6
- }`,...(s=(a=e.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const k=["ShowForm"];export{e as ShowForm,k as __namedExportsOrder,_ as default};
@@ -1,16 +0,0 @@
1
- import{L as m,e as a,f as s}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const g="fe189118-902c-4f78-a742-342356f2a3ec",y=null,h="browser",b="2024-10-29T10:45:48.76084Z",_="2024-10-29T09:45:48.76084Z",w="https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login/browser?aal=&refresh=&return_to=&organization=&via=",q={action:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login?flow=fe189118-902c-4f78-a742-342356f2a3ec",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"identifier",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.nqwe2lavry0.f4h5y029idj@ory.dev",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"bR+n055e6MR4iRaRuSJ239rLOiMMD6o2yhRwC5aLY1WB7obCtXaOW3s7l92uA18k/0Lta8xc8/HfEUjeL3iDBA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"script",group:"webauthn",attributes:{src:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/.well-known/ory/webauthn.js",async:!0,referrerpolicy:"no-referrer",crossorigin:"anonymous",integrity:"sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",type:"text/javascript",id:"webauthn_script",nonce:"8c70f7a6-efee-4daf-b23b-62b8cbd07d01",node_type:"script"},messages:[],meta:{}},{type:"input",group:"webauthn",attributes:{name:"webauthn_login_trigger",type:"button",value:'{"publicKey":{"challenge":"342M-urm4Mf2NR_-18jkvYqwUQBhbKrE1Z8nPfQylSM","timeout":120000,"rpId":"romantic-tu-rf98ru5rql.projects.oryapis","allowCredentials":[{"type":"public-key","id":"IFIPP9EDx5argEdBKiwqhEBf1rGOqEWLXvTDCTT-EHw"}],"userVerification":"discouraged"}}',disabled:!1,onclick:'window.oryWebAuthnLogin({"publicKey":{"challenge":"342M-urm4Mf2NR_-18jkvYqwUQBhbKrE1Z8nPfQylSM","timeout":120000,"rpId":"romantic-tu-rf98ru5rql.projects.oryapis","allowCredentials":[{"type":"public-key","id":"IFIPP9EDx5argEdBKiwqhEBf1rGOqEWLXvTDCTT-EHw"}],"userVerification":"discouraged"}})',onclickTrigger:"oryWebAuthnLogin",node_type:"input"},messages:[],meta:{label:{id:1010013,text:"Continue",type:"info"}}},{type:"input",group:"webauthn",attributes:{name:"webauthn_login",type:"hidden",value:"",disabled:!1,node_type:"input"},messages:[],meta:{}}],messages:[{id:1010012,text:"Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.",type:"info"}]},v="2024-10-29T09:45:48.763474Z",x="2024-10-29T09:45:48.763474Z",$=!1,T="aal1",E="choose_method",j={id:g,organization_id:y,type:h,expires_at:b,issued_at:_,request_url:w,ui:q,created_at:v,updated_at:x,refresh:$,requested_aal:T,state:E},S="e0e1fbff-1f67-4f43-b686-e2e13f20c31d",Z=null,k="browser",L="2024-10-29T10:45:49.216119Z",M="2024-10-29T09:45:49.216119Z",z="https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login/browser",F={action:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login?flow=e0e1fbff-1f67-4f43-b686-e2e13f20c31d",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"XbAsvaU+Bxq08xhkISVldUEYq1JQJ0+wzZ/nGKgGcdABa2Sn+lCE99Eze934G3ei2fHlt5dD9jroN2WCr5zHRg==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"identifier",type:"text",value:"",required:!0,autocomplete:"username webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"webauthn",attributes:{name:"method",type:"submit",value:"webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010008,text:"Sign in with hardware key",type:"info"}}}],messages:[{id:4000015,text:"This account does not exist or has no security key set up.",type:"error"}]},N="2024-10-29T09:45:49.225749Z",P="2024-10-29T09:45:49.225749Z",A=!1,O="aal1",R="choose_method",B={id:S,organization_id:Z,type:k,expires_at:L,issued_at:M,request_url:z,ui:F,created_at:N,updated_at:P,refresh:A,requested_aal:O,state:R},W="fe189118-902c-4f78-a742-342356f2a3ec",C=null,I="browser",J="2024-10-29T10:45:48.76084Z",D="2024-10-29T09:45:48.76084Z",G="https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login/browser?aal=&refresh=&return_to=&organization=&via=",H={action:"https://romantic-tu-rf98ru5rql.projects.oryapis:8080/self-service/login?flow=fe189118-902c-4f78-a742-342356f2a3ec",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"gmsCHEYS8hdrurAvYH54e3R4YvFXZHN0z84nmCAo7d9umiMNbTqUiGgIMWN3X1GAUfG1uZc3KrPayx9NmdsNjg==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"identifier",type:"text",value:"",required:!0,autocomplete:"username webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"webauthn",attributes:{name:"method",type:"submit",value:"webauthn",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1010008,text:"Sign in with hardware key",type:"info"}}}]},K="2024-10-29T09:45:48.763474Z",Y="2024-10-29T09:45:48.763474Z",U=!1,Q="aal1",X="choose_method",V={id:W,organization_id:C,type:I,expires_at:J,issued_at:D,request_url:G,ui:H,created_at:K,updated_at:Y,refresh:U,requested_aal:Q,state:X},se={title:"Ory Elements/First Factor Login/Methods/WebAuthn",component:m,parameters:{layout:"centered"}},e={args:{flow:s(V),config:a}},t={args:{flow:s(B),config:a}},r={args:{flow:s(j),config:a}};var o,i,n;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
2
- args: {
3
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/webauthn/initial-form.json")),
4
- config
5
- }
6
- }`,...(n=(i=e.parameters)==null?void 0:i.docs)==null?void 0:n.source}}};var u,d,c;t.parameters={...t.parameters,docs:{...(u=t.parameters)==null?void 0:u.docs,source:{originalSource:`{
7
- args: {
8
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/webauthn/invalid-account.json")),
9
- config
10
- }
11
- }`,...(c=(d=t.parameters)==null?void 0:d.docs)==null?void 0:c.source}}};var l,p,f;r.parameters={...r.parameters,docs:{...(l=r.parameters)==null?void 0:l.docs,source:{originalSource:`{
12
- args: {
13
- flow: LoginFlowFromJSON(require("$snapshots/login/1fa/webauthn/show-trigger.json")),
14
- config
15
- }
16
- }`,...(f=(p=r.parameters)==null?void 0:p.docs)==null?void 0:f.source}}};const oe=["ShowForm","InvalidAccount","ShowTrigger"];export{t as InvalidAccount,e as ShowForm,r as ShowTrigger,oe as __namedExportsOrder,se as default};
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" width="164" height="164" version="1.1"><svg xmlns="http://www.w3.org/2000/svg" width="164" height="164" fill="none" viewBox="0 0 164 164"><path fill="#FF4785" d="M22.467 147.762 17.5 15.402a8.062 8.062 0 0 1 7.553-8.35L137.637.016a8.061 8.061 0 0 1 8.565 8.047v144.23a8.063 8.063 0 0 1-8.424 8.054l-107.615-4.833a8.062 8.062 0 0 1-7.695-7.752Z"/><path fill="#fff" fill-rule="evenodd" d="m128.785.57-15.495.968-.755 18.172a1.203 1.203 0 0 0 1.928 1.008l7.06-5.354 5.962 4.697a1.202 1.202 0 0 0 1.946-.987L128.785.569Zm-12.059 60.856c-2.836 2.203-23.965 3.707-23.965.57.447-11.969-4.912-12.494-7.889-12.494-2.828 0-7.59.855-7.59 7.267 0 6.534 6.96 10.223 15.13 14.553 11.607 6.15 25.654 13.594 25.654 32.326 0 17.953-14.588 27.871-33.194 27.871-19.201 0-35.981-7.769-34.086-34.702.744-3.163 25.156-2.411 25.156 0-.298 11.114 2.232 14.383 8.633 14.383 4.912 0 7.144-2.708 7.144-7.267 0-6.9-7.252-10.973-15.595-15.657C64.827 81.933 51.53 74.468 51.53 57.34c0-17.098 11.76-28.497 32.747-28.497 20.988 0 32.449 11.224 32.449 32.584Z" clip-rule="evenodd"/></svg><style>@media (prefers-color-scheme:light){:root{filter:none}}</style></svg>