From 79687b2008ea4741e173d77201174e835a68801e Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Wed, 4 Sep 2024 15:38:53 +0200 Subject: [PATCH 1/4] chore: bump elements to 0.4.0 --- package-lock.json | 8 ++++---- package.json | 2 +- src/routes/login.ts | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c4e0fe76..6f2b4030 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@ory/client": "1.14.3", - "@ory/elements-markup": "0.3.0-rc.1", + "@ory/elements-markup": "0.4.0", "@redtea/format-axios-error": "2.1.1", "accept-language-parser": "1.5.0", "axios": "1.7.4", @@ -593,9 +593,9 @@ } }, "node_modules/@ory/elements-markup": { - "version": "0.3.0-rc.1", - "resolved": "https://registry.npmjs.org/@ory/elements-markup/-/elements-markup-0.3.0-rc.1.tgz", - "integrity": "sha512-y6SIekUtLKC4OiB2DC6lPFnyqPFS/yw3ALBe1Wd/m2pWpPJJisaHhIjwyCWrHqBEyG6MuzSHt6AR0S5UDVq3gA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@ory/elements-markup/-/elements-markup-0.4.0.tgz", + "integrity": "sha512-7ehBb5z0TnCyRBXhPSgeESZbykphrsg+e1ChJyVfqrqQr5izZLvz5uoWQEZivU0k6aC/WLc7BcmdtP2e6vz8TA==", "license": "Apache License 2.0", "engines": { "node": ">=16.16.0", diff --git a/package.json b/package.json index 9d1f2fb5..42915b5a 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "prettier": "ory-prettier-styles", "dependencies": { "@ory/client": "1.14.3", - "@ory/elements-markup": "0.3.0-rc.1", + "@ory/elements-markup": "0.4.0", "@redtea/format-axios-error": "2.1.1", "accept-language-parser": "1.5.0", "axios": "1.7.4", diff --git a/src/routes/login.ts b/src/routes/login.ts index e8683791..d8af923c 100644 --- a/src/routes/login.ts +++ b/src/routes/login.ts @@ -180,6 +180,7 @@ export const createLoginRoute: RouteCreator = forgotPasswordURL: initRecoveryUrl, signupURL: initRegistrationUrl, logoutURL: logoutUrl, + loginURL: initFlowUrl, }, }, { locale: res.locals.lang }, From 808212e2a3aee682ee1f505fee8dae375a14ef6c Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Wed, 4 Sep 2024 15:39:10 +0200 Subject: [PATCH 2/4] 0.21.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f2b4030..27c2d6c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.20.1", + "version": "0.21.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.20.1", + "version": "0.21.0", "license": "Apache-2.0", "dependencies": { "@ory/client": "1.14.3", diff --git a/package.json b/package.json index 42915b5a..c2dda46d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ory/kratos-selfservice-ui-node", - "version": "0.20.1", + "version": "0.21.0", "description": "A reference implementation of a selfservice UI for ORY Kratos in node.js", "homepage": "https://github.com/ory/kratos-selfservice-ui-node#readme", "bugs": { From b2687023b9a6f69da719d9e18b338f1a9b11dc4a Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Wed, 4 Sep 2024 16:25:42 +0200 Subject: [PATCH 3/4] chore: add captcha group --- src/pkg/index.ts | 4 ++-- views/partials/js_setup.hbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/index.ts b/src/pkg/index.ts index 9c1a71b5..061c7eb4 100644 --- a/src/pkg/index.ts +++ b/src/pkg/index.ts @@ -116,8 +116,8 @@ export const redirectOnSoftError = export const handlebarsHelpers: UnknownObject = { jsonPretty: (context: any) => JSON.stringify(context, null, 2), onlyNodes: ( - nodes: Array, - groups: string, + nodes: UiNode[], + groups: string[], attributes: string, withoutDefaultGroup?: boolean, withoutDefaultAttributes?: boolean, diff --git a/views/partials/js_setup.hbs b/views/partials/js_setup.hbs index 0e08b766..c118610f 100644 --- a/views/partials/js_setup.hbs +++ b/views/partials/js_setup.hbs @@ -1,5 +1,5 @@ {{! This inserts the webauthn.js script tag}} -{{#each (onlyNodes nodes "webauthn" "text/javascript")}} +{{#each (onlyNodes nodes ["webauthn", "captcha"] "text/javascript")}}