@devite/nuxt-sanity 1.5.2 → 2.0.0
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/README.md +3 -3
- package/dist/module.d.mts +62 -14
- package/dist/module.d.ts +62 -14
- package/dist/module.json +3 -3
- package/dist/module.mjs +98 -4
- package/dist/runtime/client/DefaultSanityClient.d.ts +15 -0
- package/dist/runtime/client/DefaultSanityClient.js +44 -0
- package/dist/runtime/client/MinimalSanityClient.d.ts +15 -0
- package/dist/runtime/client/MinimalSanityClient.js +59 -0
- package/dist/runtime/client/SanityClient.d.ts +10 -0
- package/dist/runtime/client/SanityClient.js +7 -0
- package/dist/runtime/components/SanityComponent.vue +34 -20
- package/dist/runtime/components/SanityImageAsset.vue +9 -5
- package/dist/runtime/components/SanityLinkExternal.vue +2 -1
- package/dist/runtime/components/SanityLinkInternal.vue +5 -7
- package/dist/runtime/components/SanityPage.vue +23 -14
- package/dist/runtime/components/SanityRichText.vue +14 -18
- package/dist/runtime/composables/useLazySanityQuery.d.ts +4 -0
- package/dist/runtime/composables/useLazySanityQuery.js +4 -0
- package/dist/runtime/composables/useSanityLiveMode.d.ts +1 -0
- package/dist/runtime/composables/useSanityLiveMode.js +16 -0
- package/dist/runtime/composables/useSanityQuery.d.ts +30 -0
- package/dist/runtime/composables/useSanityQuery.js +69 -0
- package/dist/runtime/composables/useSanityVisualEditing.d.ts +8 -0
- package/dist/runtime/composables/useSanityVisualEditing.js +44 -0
- package/dist/runtime/composables/useSanityVisualEditingState.d.ts +4 -0
- package/dist/runtime/composables/useSanityVisualEditingState.js +12 -0
- package/dist/runtime/plugins/visual-editing.d.ts +2 -0
- package/dist/runtime/plugins/visual-editing.js +30 -0
- package/dist/runtime/server/routes/preview/disable.d.ts +2 -0
- package/dist/runtime/server/routes/preview/disable.js +6 -0
- package/dist/runtime/server/routes/preview/enable.d.ts +2 -0
- package/dist/runtime/server/routes/preview/enable.js +20 -0
- package/dist/runtime/server/routes/proxy.d.ts +2 -0
- package/dist/runtime/server/routes/proxy.js +19 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/useSanityClient.d.ts +3 -0
- package/dist/runtime/server/utils/useSanityClient.js +17 -0
- package/dist/runtime/utils/getOrCreateSanityClient.d.ts +4 -0
- package/dist/runtime/utils/getOrCreateSanityClient.js +15 -0
- package/dist/runtime/utils/groq.d.ts +8 -0
- package/dist/runtime/utils/groq.js +6 -0
- package/dist/runtime/utils/projections.d.ts +4 -4
- package/dist/runtime/utils/projections.js +1 -1
- package/dist/runtime/utils/resolveImageAssetById.d.ts +2 -2
- package/dist/runtime/utils/resolveImageAssetById.js +2 -2
- package/dist/runtime/utils/resolveInternalLink.d.ts +2 -2
- package/dist/runtime/utils/resolveInternalLink.js +2 -2
- package/dist/runtime/utils/useSanityClient.d.ts +2 -0
- package/dist/runtime/utils/useSanityClient.js +8 -0
- package/dist/types.d.mts +1 -7
- package/dist/types.d.ts +1 -7
- package/package.json +29 -14
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devite/nuxt-sanity",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Advanced Sanity integration for Nuxt.js.",
|
|
5
5
|
"repository": "devite-io/nuxt-sanity",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -23,35 +23,50 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@nuxt/image": "^1.8.1",
|
|
26
|
-
"@nuxt/kit": "^3.
|
|
27
|
-
"@nuxtjs/sanity": "^1.12.2",
|
|
26
|
+
"@nuxt/kit": "^3.14.1592",
|
|
28
27
|
"@portabletext/vue": "^1.0.11",
|
|
29
28
|
"@sanity/client": "^6.24.1",
|
|
30
|
-
"@sanity/
|
|
29
|
+
"@sanity/core-loader": "^1.7.19",
|
|
30
|
+
"@sanity/preview-url-secret": "^2.0.5",
|
|
31
|
+
"@sanity/types": "^3.66.1",
|
|
32
|
+
"@sanity/visual-editing": "^2.10.5",
|
|
33
|
+
"defu": "^6.1.4",
|
|
34
|
+
"ofetch": "^1.4.1",
|
|
35
|
+
"ohash": "^1.1.4"
|
|
31
36
|
},
|
|
32
37
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@nuxt/eslint-config": "^0.5.7",
|
|
38
|
+
"@nuxt/eslint-config": "^0.7.2",
|
|
35
39
|
"@nuxt/module-builder": "^0.8.4",
|
|
36
|
-
"@nuxt/schema": "^3.
|
|
40
|
+
"@nuxt/schema": "^3.14.1592",
|
|
37
41
|
"@nuxt/test-utils": "^3.15.1",
|
|
38
|
-
"@types/node": "
|
|
42
|
+
"@types/node": "latest",
|
|
39
43
|
"changelogen": "^0.5.7",
|
|
40
|
-
"eslint": "^9.
|
|
41
|
-
"
|
|
42
|
-
"
|
|
44
|
+
"eslint": "^9.16.0",
|
|
45
|
+
"h3": "^1.13.0",
|
|
46
|
+
"nuxt": "^3.14.1592",
|
|
47
|
+
"prettier": "^3.4.2",
|
|
48
|
+
"typescript": "~5.6.3",
|
|
43
49
|
"vitest": "^2.1.8",
|
|
50
|
+
"vue-router": "^4.5.0",
|
|
44
51
|
"vue-tsc": "^2.1.10"
|
|
45
52
|
},
|
|
53
|
+
"resolutions": {
|
|
54
|
+
"@devite/nuxt-sanity": "link:."
|
|
55
|
+
},
|
|
56
|
+
"build": {
|
|
57
|
+
"externals": [
|
|
58
|
+
"@sanity/client"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
46
61
|
"scripts": {
|
|
47
62
|
"dev": "nuxi dev playground",
|
|
48
63
|
"dev:cms": "cd playground/cms && pnpm dev",
|
|
49
64
|
"dev:build": "nuxi build playground",
|
|
50
65
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
51
66
|
"release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access=public && git push --follow-tags",
|
|
52
|
-
"lint": "eslint .",
|
|
67
|
+
"lint": "eslint --fix .",
|
|
53
68
|
"test": "vitest run --passWithNoTests",
|
|
54
69
|
"test:watch": "vitest watch",
|
|
55
|
-
"test:types": "vue-tsc --noEmit
|
|
70
|
+
"test:types": "vue-tsc --noEmit"
|
|
56
71
|
}
|
|
57
72
|
}
|