@xenterprises/nuxt-x-auth-better 0.2.5 → 0.2.6

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/app/app.config.ts CHANGED
@@ -37,9 +37,10 @@ export default defineAppConfig({
37
37
  tagline: "",
38
38
  layout: "centered" as "centered" | "split",
39
39
  background: {
40
- type: "gradient" as "gradient" | "image" | "solid",
40
+ enabled: true,
41
41
  imageUrl: "",
42
- overlayOpacity: 50,
42
+ overlayOpacity: 55,
43
+ blur: true,
43
44
  },
44
45
  card: {
45
46
  glass: false,
@@ -139,10 +139,16 @@ const logoUrl = computed(() => config.xAuth?.ui?.logoUrl || '')
139
139
  const brandName = computed(() => config.xAuth?.ui?.brandName || '')
140
140
  const loading = computed(() => isLoading.value)
141
141
 
142
- // Background Config
143
- const bgConfig = computed(() => config.xAuth?.ui?.background || {})
144
- const isBgEnabled = computed(() => bgConfig.value.enabled !== false)
145
- const overlayBlur = computed(() => bgConfig.value.blur !== false)
142
+ // Background Config - with robust defaults that survive config overrides
143
+ const bgConfig = computed(() => ({
144
+ enabled: config.xAuth?.ui?.background?.enabled ?? true,
145
+ imageUrl: config.xAuth?.ui?.background?.imageUrl ?? '',
146
+ overlayOpacity: config.xAuth?.ui?.background?.overlayOpacity ?? 55,
147
+ blur: config.xAuth?.ui?.background?.blur ?? true,
148
+ }))
149
+
150
+ const isBgEnabled = computed(() => bgConfig.value.enabled)
151
+ const overlayBlur = computed(() => bgConfig.value.blur)
146
152
 
147
153
  const footerTextColorClass = computed(() => {
148
154
  if (backgroundImageUrl.value && isImageLoaded.value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xenterprises/nuxt-x-auth-better",
3
3
  "type": "module",
4
- "version": "0.2.5",
4
+ "version": "0.2.6",
5
5
  "description": "BetterAuth authentication layer for Nuxt",
6
6
  "license": "UNLICENSED",
7
7
  "author": "X Enterprises",