@gluhar/app 2.6.3 → 2.6.4

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.6.4](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.6.3...@gluhar/app@2.6.4) (2025-02-24)
7
+
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - Add alt to SanityImg ([03da745](https://github.com/gluharry/gluhar/commit/03da74506269b733515c5860de5537e58d1f24f5))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.6.3](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.6.2...@gluhar/app@2.6.3) (2025-02-24)
7
18
 
8
19
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
3
  "configKey": "gluhar",
4
- "version": "2.6.3",
4
+ "version": "2.6.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, ref, useMessages } from "#imports";
3
+ import type { LocaleString } from "@gluhar/i18n/types";
3
4
  import type { SanityImage } from "@gluhar/sanity/types";
4
5
  // @ts-ignore
5
6
  import imageUrlBuilder from "@sanity/image-url/lib/browser/image-url.esm"; // INFO this is a strange fix
@@ -10,6 +11,7 @@ import sanityConfig from "~/config/sanity.config";
10
11
  const props = defineProps<{
11
12
  image?: SanityImage;
12
13
  by?: "width" | "height" | "both";
14
+ alt?: LocaleString;
13
15
  width?: number;
14
16
  height?: number;
15
17
  format?: ImageFormat | null;
@@ -53,7 +55,7 @@ const src = computed(() => {
53
55
  <img
54
56
  class="object-cover"
55
57
  :src
56
- :alt="l(image.caption) || l(image.alt)"
58
+ :alt="l(alt) || l(image.caption) || l(image.alt)"
57
59
  ref="imgRef"
58
60
  v-if="image"
59
61
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -59,5 +59,5 @@
59
59
  "nuxt": "^3.13.1",
60
60
  "vitest": "^2.0.5"
61
61
  },
62
- "gitHead": "21ed2d20737e62d19b517b893c49523e8a966892"
62
+ "gitHead": "b63817ef3957c56a31ed68a50c0ec578cdcbeb15"
63
63
  }