Skip to content

Commit

Permalink
chore: add stories
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Oct 29, 2024
1 parent e282e2a commit b756915
Show file tree
Hide file tree
Showing 58 changed files with 3,008 additions and 433 deletions.
1 change: 0 additions & 1 deletion packages/elements-react-stories/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const preview: Preview = {
const withI18next: Decorator = (Story, context) => {
const { locale } = context.globals

// TODO: this needs a refactor, because it doesn't pass the locale to the Ory Provider at the moment.
return (
<Story args={merge({}, { config: { intl: { locale } } }, context.args)} />
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "7829da21-301f-420d-b91d-28eb63dc132b",
"id": "9af3e83e-23c1-41bd-9149-be39ea7c8048",
"organization_id": null,
"type": "browser",
"expires_at": "2024-04-25T13:57:44.135905709Z",
"issued_at": "2024-04-25T12:57:44.135905709Z",
"request_url": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login/browser",
"expires_at": "2024-10-29T10:45:38.857268593Z",
"issued_at": "2024-10-29T09:45:38.857268593Z",
"request_url": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login/browser",
"ui": {
"action": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login?flow=7829da21-301f-420d-b91d-28eb63dc132b",
"action": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login?flow=9af3e83e-23c1-41bd-9149-be39ea7c8048",
"method": "POST",
"nodes": [
{
Expand All @@ -26,7 +26,8 @@
"text": "Sign in with GitHub",
"type": "info",
"context": {
"provider": "GitHub"
"provider": "GitHub",
"provider_id": "github"
}
}
}
Expand All @@ -48,7 +49,8 @@
"text": "Sign in with Google",
"type": "info",
"context": {
"provider": "Google"
"provider": "Google",
"provider_id": "google"
}
}
}
Expand All @@ -59,7 +61,7 @@
"attributes": {
"name": "csrf_token",
"type": "hidden",
"value": "Tw5uN5cojB6RRxpH4O/CsKi7sfcTD/SuGZasUYq1SjOND6q5jAeKO1fjzO/1i73gTsUBZ+hxG00g5I073WPzpg==",
"value": "UpTfUf6a4w2CEUtZR/XLbglQeIWvznS5QdPSKX9WzjJItMMhoXxVRWEfNZ+QxkWFZgm2D0UQCg4wWgROuBHqlQ==",
"required": true,
"disabled": false,
"node_type": "input"
Expand Down Expand Up @@ -95,14 +97,14 @@
"type": "script",
"group": "webauthn",
"attributes": {
"src": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/.well-known/ory/webauthn.js",
"src": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/.well-known/ory/webauthn.js",
"async": true,
"referrerpolicy": "no-referrer",
"crossorigin": "anonymous",
"integrity": "sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",
"type": "text/javascript",
"id": "webauthn_script",
"nonce": "e5274198-d8bc-4622-9cba-0d721930cfb7",
"nonce": "37c7008f-98d4-402d-a319-cf4d0f60e10c",
"node_type": "script"
},
"messages": [],
Expand All @@ -122,7 +124,7 @@
"meta": {
"label": {
"id": 1010008,
"text": "Use security key",
"text": "Sign in with hardware key",
"type": "info"
}
}
Expand Down Expand Up @@ -157,6 +159,8 @@
"name": "passkey_login",
"type": "hidden",
"disabled": false,
"onload": "window.oryPasskeyLoginAutocompleteInit()",
"onloadTrigger": "oryPasskeyLoginAutocompleteInit",
"node_type": "input"
},
"messages": [],
Expand All @@ -168,7 +172,7 @@
"attributes": {
"name": "passkey_challenge",
"type": "hidden",
"value": "{\"publicKey\":{\"challenge\":\"rlZe03JabwF9e5YamwdVljjh8-tbtC9NSS9YjB7layk\",\"timeout\":300000,\"rpId\":\"friendly-franklin-hcfczr99ek.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"value": "{\"publicKey\":{\"challenge\":\"j-AcTnYzHZCKq--PnEMGz72K0nh3BqH2emzwFOj-Dyw\",\"timeout\":300000,\"rpId\":\"dreamy-wiles-28csoig0cg.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"disabled": false,
"node_type": "input"
},
Expand All @@ -189,7 +193,7 @@
"meta": {
"label": {
"id": 1010015,
"text": "Sign in with code",
"text": "Send sign in code",
"type": "info"
}
}
Expand Down Expand Up @@ -227,17 +231,17 @@
"messages": [],
"meta": {
"label": {
"id": 1010001,
"text": "Sign in",
"id": 1010022,
"text": "Sign in with password",
"type": "info"
}
}
}
]
},
"created_at": "2024-04-25T12:57:44.140779Z",
"updated_at": "2024-04-25T12:57:44.140779Z",
"created_at": "2024-10-29T09:45:38.863683Z",
"updated_at": "2024-10-29T09:45:38.863683Z",
"refresh": false,
"requested_aal": "aal1",
"state": "choose_method"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "7829da21-301f-420d-b91d-28eb63dc132b",
"id": "9af3e83e-23c1-41bd-9149-be39ea7c8048",
"organization_id": null,
"type": "browser",
"expires_at": "2024-04-25T13:57:44.135905Z",
"issued_at": "2024-04-25T12:57:44.135905Z",
"request_url": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login/browser",
"expires_at": "2024-10-29T10:45:38.857268Z",
"issued_at": "2024-10-29T09:45:38.857268Z",
"request_url": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login/browser",
"ui": {
"action": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login?flow=7829da21-301f-420d-b91d-28eb63dc132b",
"action": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login?flow=9af3e83e-23c1-41bd-9149-be39ea7c8048",
"method": "POST",
"nodes": [
{
Expand All @@ -26,7 +26,8 @@
"text": "Sign in with GitHub",
"type": "info",
"context": {
"provider": "GitHub"
"provider": "GitHub",
"provider_id": "github"
}
}
}
Expand All @@ -48,7 +49,8 @@
"text": "Sign in with Google",
"type": "info",
"context": {
"provider": "Google"
"provider": "Google",
"provider_id": "google"
}
}
}
Expand All @@ -59,7 +61,7 @@
"attributes": {
"name": "csrf_token",
"type": "hidden",
"value": "3Qz2WjGZ65Vt3YTotnO9NIImqRVnMqZ/2oVugdA5Vy8fDTLUKrbtsKt5UkCjF8JkZFgZhZxMSZzj90/rh+/uug==",
"value": "+sHB0SRt37Hgp5uHUklnNED5kJykBbt0NxZ5OAUNlYDg4d2he4tp+QOp5UGFeunfL6BeFk7bxcNGn69fwkqxJw==",
"required": true,
"disabled": false,
"node_type": "input"
Expand Down Expand Up @@ -104,14 +106,14 @@
"type": "script",
"group": "webauthn",
"attributes": {
"src": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/.well-known/ory/webauthn.js",
"src": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/.well-known/ory/webauthn.js",
"async": true,
"referrerpolicy": "no-referrer",
"crossorigin": "anonymous",
"integrity": "sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",
"type": "text/javascript",
"id": "webauthn_script",
"nonce": "e5274198-d8bc-4622-9cba-0d721930cfb7",
"nonce": "37c7008f-98d4-402d-a319-cf4d0f60e10c",
"node_type": "script"
},
"messages": [],
Expand All @@ -131,7 +133,7 @@
"meta": {
"label": {
"id": 1010008,
"text": "Use security key",
"text": "Sign in with hardware key",
"type": "info"
}
}
Expand Down Expand Up @@ -166,6 +168,8 @@
"name": "passkey_login",
"type": "hidden",
"disabled": false,
"onload": "window.oryPasskeyLoginAutocompleteInit()",
"onloadTrigger": "oryPasskeyLoginAutocompleteInit",
"node_type": "input"
},
"messages": [],
Expand All @@ -177,7 +181,7 @@
"attributes": {
"name": "passkey_challenge",
"type": "hidden",
"value": "{\"publicKey\":{\"challenge\":\"rlZe03JabwF9e5YamwdVljjh8-tbtC9NSS9YjB7layk\",\"timeout\":300000,\"rpId\":\"friendly-franklin-hcfczr99ek.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"value": "{\"publicKey\":{\"challenge\":\"j-AcTnYzHZCKq--PnEMGz72K0nh3BqH2emzwFOj-Dyw\",\"timeout\":300000,\"rpId\":\"dreamy-wiles-28csoig0cg.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"disabled": false,
"node_type": "input"
},
Expand All @@ -198,7 +202,7 @@
"meta": {
"label": {
"id": 1010015,
"text": "Sign in with code",
"text": "Send sign in code",
"type": "info"
}
}
Expand Down Expand Up @@ -245,17 +249,17 @@
"messages": [],
"meta": {
"label": {
"id": 1010001,
"text": "Sign in",
"id": 1010022,
"text": "Sign in with password",
"type": "info"
}
}
}
]
},
"created_at": "2024-04-25T12:57:44.140779Z",
"updated_at": "2024-04-25T12:57:44.140779Z",
"created_at": "2024-10-29T09:45:38.863683Z",
"updated_at": "2024-10-29T09:45:38.863683Z",
"refresh": false,
"requested_aal": "aal1",
"state": "choose_method"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "7829da21-301f-420d-b91d-28eb63dc132b",
"id": "9af3e83e-23c1-41bd-9149-be39ea7c8048",
"organization_id": null,
"type": "browser",
"expires_at": "2024-04-25T13:57:44.135905Z",
"issued_at": "2024-04-25T12:57:44.135905Z",
"request_url": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login/browser",
"expires_at": "2024-10-29T10:45:38.857268Z",
"issued_at": "2024-10-29T09:45:38.857268Z",
"request_url": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login/browser",
"ui": {
"action": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/self-service/login?flow=7829da21-301f-420d-b91d-28eb63dc132b",
"action": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/self-service/login?flow=9af3e83e-23c1-41bd-9149-be39ea7c8048",
"method": "POST",
"nodes": [
{
Expand All @@ -26,7 +26,8 @@
"text": "Sign in with GitHub",
"type": "info",
"context": {
"provider": "GitHub"
"provider": "GitHub",
"provider_id": "github"
}
}
}
Expand All @@ -48,7 +49,8 @@
"text": "Sign in with Google",
"type": "info",
"context": {
"provider": "Google"
"provider": "Google",
"provider_id": "google"
}
}
}
Expand All @@ -59,7 +61,7 @@
"attributes": {
"name": "csrf_token",
"type": "hidden",
"value": "NQhqo0GMPYDefJCT1Fye+FlvOEdEnJ+XO70/ujPAr/v3Ca4tWqM7pRjYRjvBOOGovxGI17/icHQCzx7QZBYWbg==",
"value": "VO8v40NNSxQFr3T/hqQGdaVNPO5o2EZFNXoDeCDwfCxOzzOTHKv9XOahCjlRl4ieyhTyZIIGOPJE89Uf57dYiw==",
"required": true,
"disabled": false,
"node_type": "input"
Expand Down Expand Up @@ -95,14 +97,14 @@
"type": "script",
"group": "webauthn",
"attributes": {
"src": "https://friendly-franklin-hcfczr99ek.projects.oryapis:8080/.well-known/ory/webauthn.js",
"src": "https://dreamy-wiles-28csoig0cg.projects.oryapis:8080/.well-known/ory/webauthn.js",
"async": true,
"referrerpolicy": "no-referrer",
"crossorigin": "anonymous",
"integrity": "sha512-MDzBlwh32rr+eus2Yf1BetIj94m+ULLbewYDulbZjczycs81klNed+qQWG2yi2N03KV5uZlRJJtWdV2x9JNHzQ==",
"type": "text/javascript",
"id": "webauthn_script",
"nonce": "e5274198-d8bc-4622-9cba-0d721930cfb7",
"nonce": "37c7008f-98d4-402d-a319-cf4d0f60e10c",
"node_type": "script"
},
"messages": [],
Expand All @@ -122,7 +124,7 @@
"meta": {
"label": {
"id": 1010008,
"text": "Use security key",
"text": "Sign in with hardware key",
"type": "info"
}
}
Expand Down Expand Up @@ -157,6 +159,8 @@
"name": "passkey_login",
"type": "hidden",
"disabled": false,
"onload": "window.oryPasskeyLoginAutocompleteInit()",
"onloadTrigger": "oryPasskeyLoginAutocompleteInit",
"node_type": "input"
},
"messages": [],
Expand All @@ -168,7 +172,7 @@
"attributes": {
"name": "passkey_challenge",
"type": "hidden",
"value": "{\"publicKey\":{\"challenge\":\"rlZe03JabwF9e5YamwdVljjh8-tbtC9NSS9YjB7layk\",\"timeout\":300000,\"rpId\":\"friendly-franklin-hcfczr99ek.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"value": "{\"publicKey\":{\"challenge\":\"j-AcTnYzHZCKq--PnEMGz72K0nh3BqH2emzwFOj-Dyw\",\"timeout\":300000,\"rpId\":\"dreamy-wiles-28csoig0cg.projects.oryapis\",\"userVerification\":\"preferred\"}}",
"disabled": false,
"node_type": "input"
},
Expand All @@ -189,7 +193,7 @@
"meta": {
"label": {
"id": 1010015,
"text": "Sign in with code",
"text": "Send sign in code",
"type": "info"
}
}
Expand Down Expand Up @@ -227,8 +231,8 @@
"messages": [],
"meta": {
"label": {
"id": 1010001,
"text": "Sign in",
"id": 1010022,
"text": "Sign in with password",
"type": "info"
}
}
Expand All @@ -242,9 +246,9 @@
}
]
},
"created_at": "2024-04-25T12:57:44.140779Z",
"updated_at": "2024-04-25T12:57:44.140779Z",
"created_at": "2024-10-29T09:45:38.863683Z",
"updated_at": "2024-10-29T09:45:38.863683Z",
"refresh": false,
"requested_aal": "aal1",
"state": "choose_method"
}
}
Loading

0 comments on commit b756915

Please sign in to comment.