@sbc-connect/nuxt-auth 0.9.0 → 0.9.2
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.
- package/CHANGELOG.md +16 -0
- package/app/components/Connect/Modal/InvalidIdp.vue +18 -4
- package/i18n/locales/en-CA.ts +3 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-auth
|
|
2
2
|
|
|
3
|
+
## 0.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151](https://github.com/bcgov/connect-nuxt/pull/151) [`90714ac`](https://github.com/bcgov/connect-nuxt/commit/90714ac914683d730c911725e38a83b0d1f5d8f2) Thanks [@deetz99](https://github.com/deetz99)! - Invalid IDP Modal: Text update to modal content.
|
|
8
|
+
|
|
9
|
+
## 0.9.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#149](https://github.com/bcgov/connect-nuxt/pull/149) [`467e679`](https://github.com/bcgov/connect-nuxt/commit/467e679f8bf4b2f3b9ec2294fd28a2a6c5ef3dba) Thanks [@deetz99](https://github.com/deetz99)! - Update dependencies
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`467e679`](https://github.com/bcgov/connect-nuxt/commit/467e679f8bf4b2f3b9ec2294fd28a2a6c5ef3dba)]:
|
|
16
|
+
- @sbc-connect/nuxt-forms@0.7.1
|
|
17
|
+
- @sbc-connect/nuxt-base@0.7.2
|
|
18
|
+
|
|
3
19
|
## 0.9.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
2
|
+
defineProps<{
|
|
3
3
|
currentIdp: ConnectLoginSource
|
|
4
4
|
redirectUrl: string
|
|
5
5
|
}>()
|
|
6
|
+
|
|
7
|
+
const { t, locale } = useI18n()
|
|
8
|
+
|
|
9
|
+
const formattedIdps = computed(() => {
|
|
10
|
+
const allowedIdps = useAppConfig().connect.login.idps
|
|
11
|
+
const labels = allowedIdps.map(idp => t(`connect.label.${idp}`))
|
|
12
|
+
|
|
13
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat#using_format
|
|
14
|
+
const formatter = new Intl.ListFormat(locale.value, {
|
|
15
|
+
style: 'long',
|
|
16
|
+
type: 'disjunction'
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
return formatter.format(labels)
|
|
20
|
+
})
|
|
6
21
|
</script>
|
|
7
22
|
|
|
8
23
|
<template>
|
|
@@ -18,18 +33,17 @@ const props = defineProps<{
|
|
|
18
33
|
id="invalid-idp-title"
|
|
19
34
|
class="text-xl font-bold text-neutral-highlighted"
|
|
20
35
|
>
|
|
21
|
-
{{ $t('connect.invalidIdp.title'
|
|
36
|
+
{{ $t('connect.invalidIdp.title', { idp: currentIdp }) }}
|
|
22
37
|
</h2>
|
|
23
38
|
</div>
|
|
24
39
|
<div>
|
|
25
40
|
<div role="alert">
|
|
26
|
-
<span>{{ $t('connect.invalidIdp.content') }}</span>
|
|
41
|
+
<span>{{ $t('connect.invalidIdp.content', { allowedIdps: formattedIdps }) }}</span>
|
|
27
42
|
</div>
|
|
28
43
|
</div>
|
|
29
44
|
<div class="flex flex-wrap items-center justify-center gap-4">
|
|
30
45
|
<UButton
|
|
31
46
|
:label="$t('connect.label.logout')"
|
|
32
|
-
:aria-label="$t('connect.label.logout')"
|
|
33
47
|
size="xl"
|
|
34
48
|
class="font-bold"
|
|
35
49
|
@click="useConnectAuth().logout(redirectUrl)"
|
package/i18n/locales/en-CA.ts
CHANGED
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
accountOptionsMenu: 'Account Options Menu',
|
|
10
10
|
accountSettings: 'Account Settings',
|
|
11
11
|
back: 'Back',
|
|
12
|
+
bcros: 'BCROS',
|
|
12
13
|
bceid: 'BCeID',
|
|
13
14
|
bcsc: 'BC Services Card',
|
|
14
15
|
createAccount: 'Create Account',
|
|
@@ -74,8 +75,8 @@ export default {
|
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
invalidIdp: {
|
|
77
|
-
title: 'You\'re logged in with your',
|
|
78
|
-
content: 'To continue,
|
|
78
|
+
title: 'You\'re logged in with your {idp}',
|
|
79
|
+
content: 'To continue, please log out and sign in again using your {allowedIdps} Account credentials.'
|
|
79
80
|
},
|
|
80
81
|
text: {
|
|
81
82
|
alertExistingAccountFound: '{boldStart}Note:{boldEnd} It looks like you already have an account with Service BC Connect. You can use an existing account to proceed or create a new one.',
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-auth",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"repository": "github:bcgov/connect-nuxt",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@axe-core/playwright": "4.11.
|
|
10
|
-
"dotenv": "17.
|
|
9
|
+
"@axe-core/playwright": "4.11.1",
|
|
10
|
+
"dotenv": "17.3.1",
|
|
11
11
|
"nuxt": "4.2.2",
|
|
12
12
|
"typescript": "5.9.3",
|
|
13
|
-
"vue-tsc": "3.2.
|
|
13
|
+
"vue-tsc": "3.2.5",
|
|
14
14
|
"@sbc-connect/eslint-config": "0.0.8",
|
|
15
|
-
"@sbc-connect/
|
|
16
|
-
"@sbc-connect/
|
|
15
|
+
"@sbc-connect/vitest-config": "0.1.1",
|
|
16
|
+
"@sbc-connect/playwright-config": "0.1.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@pinia/colada": "0.
|
|
20
|
-
"@pinia/colada-nuxt": "0.3.
|
|
19
|
+
"@pinia/colada": "1.0.0",
|
|
20
|
+
"@pinia/colada-nuxt": "0.3.2",
|
|
21
21
|
"@pinia/nuxt": "0.11.3",
|
|
22
|
-
"keycloak-js": "26.2.
|
|
22
|
+
"keycloak-js": "26.2.3",
|
|
23
23
|
"pinia": "3.0.4",
|
|
24
24
|
"pinia-plugin-persistedstate": "4.7.1",
|
|
25
|
-
"@sbc-connect/nuxt-base": "0.7.
|
|
26
|
-
"@sbc-connect/nuxt-forms": "0.7.
|
|
25
|
+
"@sbc-connect/nuxt-base": "0.7.2",
|
|
26
|
+
"@sbc-connect/nuxt-forms": "0.7.1"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"preinstall": "npx only-allow pnpm",
|