@sbc-connect/nuxt-auth 0.13.0 → 0.13.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sbc-connect/nuxt-auth
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#176](https://github.com/bcgov/connect-nuxt/pull/176) [`cc88169`](https://github.com/bcgov/connect-nuxt/commit/cc88169964e9c5aa845ac2c7bec6795f6187bf32) Thanks [@deetz99](https://github.com/deetz99)! - Create account page: Add optional body text and hide back button if user has 0 accounts
8
+
3
9
  ## 0.13.0
4
10
 
5
11
  ### Minor Changes
@@ -25,6 +25,12 @@ const pageTitle = computed(() =>
25
25
  ? $t('connect.label.existingAccountFound')
26
26
  : $t('connect.label.sbcAccountCreation')
27
27
  )
28
+ const createAccountDesc = computed(() => {
29
+ const desc = useNuxtApp().$i18n.tm('connect.page.createAccount.description')
30
+ return Array.isArray(desc) && (desc as Array<unknown>).length > 0
31
+ ? desc
32
+ : []
33
+ })
28
34
 
29
35
  useHead({
30
36
  title: pageTitle
@@ -69,9 +75,14 @@ onBeforeMount(() => {
69
75
  <template>
70
76
  <UContainer class="max-w-6xl">
71
77
  <ConnectTransitionFade>
72
- <div class="space-y-6 sm:space-y-10">
78
+ <div class="space-y-4 sm:space-y-6">
73
79
  <h1>{{ pageTitle }}</h1>
74
80
  <ConnectAccountExistingAlert v-if="showAccountList" />
81
+ <div v-else-if="!showAccountList && createAccountDesc.length" class="space-y-2">
82
+ <p v-for="text in createAccountDesc" :key="text">
83
+ {{ $rt(text) }}
84
+ </p>
85
+ </div>
75
86
  </div>
76
87
  </ConnectTransitionFade>
77
88
 
@@ -124,6 +135,7 @@ onBeforeMount(() => {
124
135
  data-testid="create-account-button-wrapper"
125
136
  >
126
137
  <UButton
138
+ v-if="store.userAccounts.length > 0"
127
139
  variant="outline"
128
140
  :label="$t('connect.label.back')"
129
141
  :disabled="isSubmitting"
@@ -62,7 +62,8 @@ export default {
62
62
  phonePlaceholder: 'Enter phone number',
63
63
  phoneExtensionLabel: 'Phone extension (Optional)',
64
64
  addressLabel: 'Address',
65
- countryLabel: 'Country'
65
+ countryLabel: 'Country',
66
+ description: []
66
67
  }
67
68
  },
68
69
  sessionExpiry: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-auth",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",
@@ -22,8 +22,8 @@
22
22
  "keycloak-js": "26.2.4",
23
23
  "pinia": "3.0.4",
24
24
  "pinia-plugin-persistedstate": "4.7.1",
25
- "@sbc-connect/nuxt-forms": "0.7.5",
26
- "@sbc-connect/nuxt-base": "0.10.0"
25
+ "@sbc-connect/nuxt-base": "0.10.0",
26
+ "@sbc-connect/nuxt-forms": "0.7.5"
27
27
  },
28
28
  "scripts": {
29
29
  "preinstall": "npx only-allow pnpm",