gt-sanity 1.0.0 → 1.0.1
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 +104 -2892
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -2885
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/serialization/__tests__/BaseDocumentDeserializer/baseDeserialization.test.ts +4 -4
- package/src/serialization/__tests__/global.setup.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.1",
|
|
4
4
|
"description": "General Translation integration with Sanity",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"watch": "pkg-utils watch --strict"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
+
"@portabletext/block-tools": "^3.5.5",
|
|
57
58
|
"@portabletext/to-html": "^2.0.14",
|
|
58
|
-
"@sanity/block-tools": "^3.70.0",
|
|
59
59
|
"@sanity/icons": "^3.7.4",
|
|
60
60
|
"@sanity/incompatible-plugin": "^1.0.5",
|
|
61
61
|
"@sanity/mutator": "^3.98.1",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"@sanity/plugin-kit": "^4.0.19",
|
|
73
73
|
"@types/lodash.merge": "^4.6.9",
|
|
74
74
|
"@types/react": "^19.1.12",
|
|
75
|
-
"jsdom": "^26.1.0",
|
|
76
75
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
77
76
|
"@typescript-eslint/parser": "^8.43.0",
|
|
78
77
|
"eslint-config-sanity": "^7.1.4",
|
|
78
|
+
"jsdom": "^26.1.0",
|
|
79
79
|
"just-clone": "^6.2.0",
|
|
80
80
|
"prettier-plugin-packagejson": "^2.5.19",
|
|
81
81
|
"react": "^19.1.1",
|
|
@@ -30,13 +30,13 @@ const customStyles = require('../__fixtures__/customStyles');
|
|
|
30
30
|
|
|
31
31
|
let mockTestKey = 0;
|
|
32
32
|
|
|
33
|
-
vi.mock('@
|
|
33
|
+
vi.mock('@portabletext/block-tools', async () => {
|
|
34
34
|
const originalModule = await vi.importActual<
|
|
35
|
-
typeof import('@
|
|
36
|
-
>('@
|
|
35
|
+
typeof import('@portabletext/block-tools')
|
|
36
|
+
>('@portabletext/block-tools');
|
|
37
37
|
return {
|
|
38
38
|
...originalModule,
|
|
39
|
-
//not ideal but vi.mock('@
|
|
39
|
+
//not ideal but vi.mock('@portabletext/block-tools/src/util/randomKey.ts' is not working
|
|
40
40
|
htmlToBlocks: (html: string, blockContentType: any, options: any) => {
|
|
41
41
|
const blocks = originalModule.htmlToBlocks(
|
|
42
42
|
html,
|
|
@@ -13,7 +13,7 @@ vi.mock('@portabletext/block-tools', async () => {
|
|
|
13
13
|
>('@portabletext/block-tools');
|
|
14
14
|
return {
|
|
15
15
|
...originalModule,
|
|
16
|
-
//not ideal but vi.mock('@
|
|
16
|
+
//not ideal but vi.mock('@portabletext/block-tools/src/util/randomKey.ts' is not working
|
|
17
17
|
htmlToBlocks: (html: string, blockContentType: any, options: any) => {
|
|
18
18
|
const blocks = originalModule.htmlToBlocks(
|
|
19
19
|
html,
|