@gluhar/app 5.0.4 → 5.0.5

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
+ ## [5.0.5](https://github.com/gluharco/gluhar/compare/@gluhar/app@5.0.4...@gluhar/app@5.0.5) (2026-01-29)
7
+
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - Add aspect ratio to SanityImg ([739ea62](https://github.com/gluharco/gluhar/commit/739ea620c3a302eed8887c0c5f5c54431b1f8aad))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.0.4](https://github.com/gluharco/gluhar/compare/@gluhar/app@5.0.3...@gluhar/app@5.0.4) (2026-01-27)
7
18
 
8
19
  **📝 Note:** Version bump only for package @gluhar/app
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
3
  "configKey": "gluhar",
4
- "version": "5.0.4",
4
+ "version": "5.0.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
@@ -57,6 +57,7 @@ const src = computed(() => {
57
57
  <template>
58
58
  <img
59
59
  class="object-cover"
60
+ :style="{ aspectRatio: image?.asset?.metadata?.dimensions?.aspectRatio }"
60
61
  :src
61
62
  :alt="l(alt) || l(image.caption) || l(image.alt)"
62
63
  ref="imgRef"
@@ -6,6 +6,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
6
6
  ogImage?: {
7
7
  asset?: {
8
8
  url: string;
9
+ metadata: {
10
+ dimensions: {
11
+ width: number;
12
+ height: number;
13
+ aspectRatio: number;
14
+ };
15
+ };
9
16
  } | undefined;
10
17
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
11
18
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
@@ -16,6 +23,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
16
23
  ogImage?: {
17
24
  asset?: {
18
25
  url: string;
26
+ metadata: {
27
+ dimensions: {
28
+ width: number;
29
+ height: number;
30
+ aspectRatio: number;
31
+ };
32
+ };
19
33
  } | undefined;
20
34
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
21
35
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
@@ -32,6 +46,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
32
46
  ogImage?: {
33
47
  asset?: {
34
48
  url: string;
49
+ metadata: {
50
+ dimensions: {
51
+ width: number;
52
+ height: number;
53
+ aspectRatio: number;
54
+ };
55
+ };
35
56
  } | undefined;
36
57
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
37
58
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
@@ -42,6 +63,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
42
63
  ogImage?: {
43
64
  asset?: {
44
65
  url: string;
66
+ metadata: {
67
+ dimensions: {
68
+ width: number;
69
+ height: number;
70
+ aspectRatio: number;
71
+ };
72
+ };
45
73
  } | undefined;
46
74
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
47
75
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
@@ -58,6 +86,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
58
86
  ogImage?: {
59
87
  asset?: {
60
88
  url: string;
89
+ metadata: {
90
+ dimensions: {
91
+ width: number;
92
+ height: number;
93
+ aspectRatio: number;
94
+ };
95
+ };
61
96
  } | undefined;
62
97
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
63
98
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
@@ -68,6 +103,13 @@ export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
68
103
  ogImage?: {
69
104
  asset?: {
70
105
  url: string;
106
+ metadata: {
107
+ dimensions: {
108
+ width: number;
109
+ height: number;
110
+ aspectRatio: number;
111
+ };
112
+ };
71
113
  } | undefined;
72
114
  caption?: import("@gluhar/i18n/types").LocaleString | undefined;
73
115
  alt?: import("@gluhar/i18n/types").LocaleString | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
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",
@@ -28,6 +28,7 @@
28
28
  "scripts": {
29
29
  "gluhar": "npm run gluhar --prefix ../.. -- --cwd=$PWD",
30
30
  "build": "npm run gluhar build -- -t module",
31
+ "prepack": "npm run build",
31
32
  "dev": "nuxi dev playground",
32
33
  "dev:build": "nuxi build playground",
33
34
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
@@ -63,5 +64,5 @@
63
64
  "nuxt": "^3.13.1",
64
65
  "vitest": "^2.0.5"
65
66
  },
66
- "gitHead": "8bfcb622f16a1b39f680b3580cf18893d2564295"
67
+ "gitHead": "54373f211a12df21895833a4d6389ca02e81a962"
67
68
  }