gt-sanity 1.0.1 → 1.0.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/index.js +4 -3678
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3676
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
- package/src/serialization/BaseSerializationConfig.ts +1 -1
- package/src/utils/serialize.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-sanity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "General Translation integration with Sanity",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -39,20 +39,6 @@
|
|
|
39
39
|
"src",
|
|
40
40
|
"v2-incompatible.js"
|
|
41
41
|
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"release": "npm run build && npm publish --access public",
|
|
44
|
-
"release:alpha": "npm run build && npm publish --access public --tag alpha",
|
|
45
|
-
"release:beta": "npm run build && npm publish --access public --tag beta",
|
|
46
|
-
"release:latest": "npm run build && npm publish --access public --tag latest",
|
|
47
|
-
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
|
|
48
|
-
"format": "prettier --write --cache --ignore-unknown .",
|
|
49
|
-
"link-watch": "plugin-kit link-watch",
|
|
50
|
-
"lint": "eslint .",
|
|
51
|
-
"lint:fix": "eslint . --fix",
|
|
52
|
-
"prepublishOnly": "npm run build",
|
|
53
|
-
"test": "vitest run",
|
|
54
|
-
"watch": "pkg-utils watch --strict"
|
|
55
|
-
},
|
|
56
42
|
"dependencies": {
|
|
57
43
|
"@portabletext/block-tools": "^3.5.5",
|
|
58
44
|
"@portabletext/to-html": "^2.0.14",
|
|
@@ -62,12 +48,13 @@
|
|
|
62
48
|
"@sanity/schema": "^3.98.1",
|
|
63
49
|
"@sanity/ui": "^2.16.4",
|
|
64
50
|
"@sanity/util": "^3.98.1",
|
|
65
|
-
"generaltranslation": "^7.6.3",
|
|
66
51
|
"jsonpath-plus": "^10.3.0",
|
|
67
52
|
"jsonpointer": "^5.0.1",
|
|
68
|
-
"lodash.merge": "^4.6.2"
|
|
53
|
+
"lodash.merge": "^4.6.2",
|
|
54
|
+
"generaltranslation": "7.6.4"
|
|
69
55
|
},
|
|
70
56
|
"devDependencies": {
|
|
57
|
+
"@portabletext/types": "^2.0.15",
|
|
71
58
|
"@sanity/pkg-utils": "^8.1.6",
|
|
72
59
|
"@sanity/plugin-kit": "^4.0.19",
|
|
73
60
|
"@types/lodash.merge": "^4.6.9",
|
|
@@ -95,5 +82,18 @@
|
|
|
95
82
|
},
|
|
96
83
|
"engines": {
|
|
97
84
|
"node": ">=18"
|
|
85
|
+
},
|
|
86
|
+
"scripts": {
|
|
87
|
+
"release": "pnpm run build && pnpm publish --access public",
|
|
88
|
+
"release:alpha": "pnpm run build && pnpm publish --access public --tag alpha",
|
|
89
|
+
"release:beta": "pnpm run build && pnpm publish --access public --tag beta",
|
|
90
|
+
"release:latest": "pnpm run build && pnpm publish --access public --tag latest",
|
|
91
|
+
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
|
|
92
|
+
"format": "prettier --write --cache --ignore-unknown .",
|
|
93
|
+
"link-watch": "plugin-kit link-watch",
|
|
94
|
+
"lint": "eslint .",
|
|
95
|
+
"lint:fix": "eslint . --fix",
|
|
96
|
+
"test": "vitest run",
|
|
97
|
+
"watch": "pkg-utils watch --strict"
|
|
98
98
|
}
|
|
99
|
-
}
|
|
99
|
+
}
|
package/src/utils/serialize.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../serialization/';
|
|
9
9
|
import { PortableTextHtmlComponents } from '@portabletext/to-html';
|
|
10
10
|
import { pluginConfig } from '../adapter/core';
|
|
11
|
-
import
|
|
11
|
+
import merge from 'lodash.merge';
|
|
12
12
|
|
|
13
13
|
export function deserializeDocument(document: string) {
|
|
14
14
|
const deserializers = merge(
|