@laioutr/app-hygraph 1.1.1 → 1.1.3

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laioutr/app-hygraph",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "configKey": "@laioutr/app-hygraph",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { defu } from 'defu';
3
3
  import { registerLaioutrApp } from '@laioutr-core/kit';
4
4
 
5
5
  const name = "@laioutr/app-hygraph";
6
- const version = "1.1.1";
6
+ const version = "1.1.3";
7
7
 
8
8
  const module = defineNuxtModule({
9
9
  meta: {
@@ -1,5 +1,5 @@
1
1
  import { MediaImage } from '@laioutr-core/core-types/common';
2
2
  /**
3
- * Map a Hygraph asset to a Media object
3
+ * Map a Hygraph asset to a Media object.
4
4
  */
5
5
  export declare const mapHygraphMedia: (asset: any) => MediaImage;
@@ -2,7 +2,8 @@ export const mapHygraphMedia = (asset) => ({
2
2
  type: "image",
3
3
  sources: [
4
4
  {
5
- provider: "hygraph",
5
+ // SVGs are returned as none so they won't be processed by Nuxt Image.
6
+ provider: asset.mimeType === "image/svg+xml" ? "none" : "hygraph",
6
7
  src: asset.url,
7
8
  width: asset.width,
8
9
  height: asset.height,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laioutr/app-hygraph",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Laioutr Hygraph App",
5
5
  "repository": "your-org/@laioutr/app-hygraph",
6
6
  "license": "MIT",
@@ -64,7 +64,7 @@
64
64
  "vue-tsc": "2.2.10"
65
65
  },
66
66
  "peerDependencies": {
67
- "@laioutr-core/frontend-core": "^0.25.0"
67
+ "@laioutr-core/frontend-core": "^0.26.0"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=22.12.0",