Skip to content

Commit

Permalink
chore: bump elements to 0.4.0 (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Sep 10, 2024
1 parent ffe6577 commit a8d7e53
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ory/kratos-selfservice-ui-node",
"version": "0.20.2",
"version": "0.21.1",
"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": {
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/pkg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export const redirectOnSoftError =
export const handlebarsHelpers: UnknownObject = {
jsonPretty: (context: any) => JSON.stringify(context, null, 2),
onlyNodes: (
nodes: Array<UiNode>,
groups: string,
nodes: UiNode[],
groups: string[],
attributes: string,
withoutDefaultGroup?: boolean,
withoutDefaultAttributes?: boolean,
Expand Down
1 change: 1 addition & 0 deletions src/routes/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const createLoginRoute: RouteCreator =
forgotPasswordURL: initRecoveryUrl,
signupURL: initRegistrationUrl,
logoutURL: logoutUrl,
loginURL: initFlowUrl,
},
},
{ locale: res.locals.lang },
Expand Down
2 changes: 1 addition & 1 deletion views/partials/js_setup.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{! This inserts the webauthn.js script tag}}
{{#each (onlyNodes nodes "webauthn" "text/javascript")}}
{{#each (onlyNodes nodes ["webauthn", "captcha"] "text/javascript")}}
<script
src="{{attributes.src}}"
type="{{attributes.type}}"
Expand Down

0 comments on commit a8d7e53

Please sign in to comment.