@laioutr/app-hygraph 1.1.0 → 1.1.2

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.0",
3
+ "version": "1.1.2",
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.0";
6
+ const version = "1.1.2";
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.0",
3
+ "version": "1.1.2",
4
4
  "description": "Laioutr Hygraph App",
5
5
  "repository": "your-org/@laioutr/app-hygraph",
6
6
  "license": "MIT",
@@ -22,23 +22,10 @@
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
- "scripts": {
26
- "dev": "npm run dev:prepare && nuxi dev playground",
27
- "dev:build": "nuxi build playground",
28
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
29
- "lint": "eslint .",
30
- "orchestr-dev": "npm run orchestr-dev:prepare && nuxi dev orchestr-playground",
31
- "orchestr-dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare orchestr-playground",
32
- "prepack": "nuxt-module-build build",
33
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
34
- "test": "vitest run",
35
- "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
36
- "test:watch": "vitest watch"
37
- },
38
25
  "dependencies": {
39
- "@laioutr-core/canonical-types": "^0.20.0",
40
- "@laioutr-core/core-types": "^0.24.0",
41
- "@laioutr-core/kit": "^0.24.0",
26
+ "@laioutr-core/canonical-types": "^0.21.0",
27
+ "@laioutr-core/core-types": "^0.25.0",
28
+ "@laioutr-core/kit": "^0.25.0",
42
29
  "@nuxt/kit": "3.16.2",
43
30
  "@pinia/colada": "0.17.1",
44
31
  "@pinia/colada-nuxt": "0.2.1",
@@ -47,7 +34,6 @@
47
34
  "zod": "3.25.61"
48
35
  },
49
36
  "devDependencies": {
50
- "@laioutr-app/ui": "^1.24.4",
51
37
  "@laioutr-core/orchestr-devtools": "^1.6.6",
52
38
  "@laioutr/eslint-config": "^1.8.8",
53
39
  "@laioutr/prettier-config": "^1.1.0",
@@ -65,10 +51,22 @@
65
51
  "vue-tsc": "2.2.10"
66
52
  },
67
53
  "peerDependencies": {
68
- "@laioutr-core/frontend-core": "^0.24.0"
54
+ "@laioutr-core/frontend-core": "^0.25.0"
69
55
  },
70
56
  "engines": {
71
57
  "node": ">=22.12.0",
72
58
  "pnpm": ">=10.15.0"
59
+ },
60
+ "scripts": {
61
+ "dev": "npm run dev:prepare && nuxi dev playground",
62
+ "dev:build": "nuxi build playground",
63
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
64
+ "lint": "eslint .",
65
+ "orchestr-dev": "npm run orchestr-dev:prepare && nuxi dev orchestr-playground",
66
+ "orchestr-dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare orchestr-playground",
67
+ "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
68
+ "test": "vitest run",
69
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
70
+ "test:watch": "vitest watch"
73
71
  }
74
- }
72
+ }