@sanity/document-internationalization 6.2.18 → 6.2.19
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.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import { InternationalizedArrayItem, PluginConfig as PluginConfig$1 } from "sani
|
|
|
3
3
|
declare function useDeleteTranslationAction(props: DocumentActionProps): DocumentActionDescription;
|
|
4
4
|
declare namespace useDeleteTranslationAction {
|
|
5
5
|
var action: string;
|
|
6
|
-
}
|
|
7
|
-
declare namespace useDeleteTranslationAction {
|
|
8
6
|
var displayName: string;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
@@ -15,15 +13,11 @@ declare const DeleteTranslationAction: (props: DocumentActionProps) => DocumentA
|
|
|
15
13
|
declare function useDuplicateWithTranslationsAction({ id, type, onComplete }: DocumentActionProps): DocumentActionDescription;
|
|
16
14
|
declare namespace useDuplicateWithTranslationsAction {
|
|
17
15
|
var action: string;
|
|
18
|
-
}
|
|
19
|
-
declare namespace useDuplicateWithTranslationsAction {
|
|
20
16
|
var displayName: string;
|
|
21
17
|
}
|
|
22
18
|
declare function DuplicateWithTranslationsAction(props: DocumentActionProps): DocumentActionDescription;
|
|
23
19
|
declare namespace DuplicateWithTranslationsAction {
|
|
24
20
|
var action: string;
|
|
25
|
-
}
|
|
26
|
-
declare namespace DuplicateWithTranslationsAction {
|
|
27
21
|
var displayName: string;
|
|
28
22
|
}
|
|
29
23
|
type Language = {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/actions/DeleteTranslationAction.tsx","../src/actions/DuplicateWithTranslationsAction.tsx","../src/types.ts","../src/components/DocumentInternationalizationContext.tsx","../src/components/DocumentInternationalizationMenu.tsx","../src/plugin.tsx"],"mappings":";;4CAmCE,OAAO,sBACN
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/actions/DeleteTranslationAction.tsx","../src/actions/DuplicateWithTranslationsAction.tsx","../src/types.ts","../src/components/DocumentInternationalizationContext.tsx","../src/components/DocumentInternationalizationMenu.tsx","../src/plugin.tsx"],"mappings":";;4CAmCE,OAAO,sBACN;;;;;;;;;cA6FU,0BAAuB,OAAW,wBAAsB;sDC5EnE,IACA,MAEA,cACC,sBAAsB;;;;;iDAqMvB,OAAO,sBACN;;;;;KCjPS;EACV,IAAI,KAAK;EACT;;KAGU,qBAAqB,eAAe,QAAQ,iBAAiB,QAAQ;KAErE;EACV,gBAAgB;EAChB,aAAa;EACb;EACA;EACA;EACA,QAAQ;;KAGE;EACV,oBAAoB;EACpB;EACA;EACA;EACA;EACA,iBAAiB;EACjB;EACA;EACA,aAAa,MAAM,uBAAuB;EAC1C,4CAA4C,KAAK;;;;;;EAMjD;;;;EAIA,+BAA+B,KAC7B;;;;EAMF;;KAMU,sBAAsB,SAAS,KAAK;EAC9C,oBAAoB;EACpB,+BAA+B,KAC7B;;KAKQ,uBAAuB,2BAA2B;EAC5D;EACA,OAAO;;KAGG;EACV;EACA;EACA,cAAc;;KAGJ,mBAAmB;EAC7B;EACA,cAAc;;KAGJ;EACV,YAAY;EACZ;;UAIe;EACf;;IAEE;;;;YAKQ,qBAAqB;YACrB,qBAAqB;YACrB,uBAAuB;YACvB,qCAAqC;YACrC,oBAAoB;YACpB,wBAAwB;YACxB,oBAAoB;YACpB,wBAAwB;YACxB,qBAAqB;YACrB,sBAAsB;YACtB,sBAAsB;YACtB,6BAA6B;YAC7B,oBAAoB;YACpB,sBAAsB;YACtB,oBAAoB;YACpB,mBAAmB;YACnB,qBAAqB;;iBC5GjB,0CAA0C;iBCO1C,iCACd,OAAO,wCACN,MAAM,IAAI;cCHA,+CAA4B,OAAA"}
|
package/dist/index.js
CHANGED
|
@@ -340,7 +340,7 @@ function useTranslationMetadata(id) {
|
|
|
340
340
|
const documenti18nLocaleNamespace = "document-internationalization", documentInternationalizationUsEnglishLocaleBundle = defineLocaleResourceBundle({
|
|
341
341
|
locale: "en-US",
|
|
342
342
|
namespace: documenti18nLocaleNamespace,
|
|
343
|
-
resources: () => import("./
|
|
343
|
+
resources: () => import("./resources-lLK--p0G.js")
|
|
344
344
|
}), DISABLED_REASON_KEY = {
|
|
345
345
|
METADATA_NOT_FOUND: "action.duplicate.disabled.missing-metadata",
|
|
346
346
|
MULTIPLE_METADATA: "action.duplicate.disabled.multiple-metadata",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-lLK--p0G.js","names":[],"sources":["../src/i18n/resources.ts"],"sourcesContent":["export default {\n 'action.duplicate.label': 'Duplicate with translations',\n 'action.duplicate.disabled.missing-metadata':\n 'The document cannot be duplicated because the metadata document is missing',\n 'action.duplicate.disabled.multiple-metadata':\n 'The document cannot be duplicated because there are multiple metadata documents',\n}\n"],"mappings":"AAAA,IAAA,oBAAe;CACb,0BAA0B;CAC1B,8CACE;CACF,+CACE;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/document-internationalization",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.19",
|
|
4
4
|
"description": "Create unique translations of a document based on its language, joined by a shared reference document.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sanity/icons": "^5.
|
|
31
|
-
"@sanity/mutator": "^6.
|
|
30
|
+
"@sanity/icons": "^5.1.0",
|
|
31
|
+
"@sanity/mutator": "^6.4.0",
|
|
32
32
|
"@sanity/ui": "^3.3.5",
|
|
33
|
-
"@sanity/util": "^6.
|
|
33
|
+
"@sanity/util": "^6.4.0",
|
|
34
34
|
"@sanity/uuid": "^3.0.3",
|
|
35
35
|
"rxjs": "^7.8.2",
|
|
36
|
-
"sanity-plugin-utils": "^2.0.
|
|
36
|
+
"sanity-plugin-utils": "^2.0.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@sanity/tsconfig": "^2.2.0",
|
|
40
|
-
"@sanity/tsdown-config": "^0.
|
|
40
|
+
"@sanity/tsdown-config": "^0.14.0",
|
|
41
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.2",
|
|
43
43
|
"@types/node": "^24.13.3",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"jsdom": "^29.1.1",
|
|
48
48
|
"react": "^19.2.7",
|
|
49
49
|
"react-dom": "^19.2.7",
|
|
50
|
-
"sanity": "^6.
|
|
50
|
+
"sanity": "^6.4.0",
|
|
51
51
|
"styled-components": "^6.4.3",
|
|
52
|
-
"tsdown": "^0.22.
|
|
53
|
-
"sanity-plugin-internationalized-array": "5.1.
|
|
52
|
+
"tsdown": "^0.22.7",
|
|
53
|
+
"sanity-plugin-internationalized-array": "5.1.19"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^19.2",
|
|
57
57
|
"react-dom": "^19.2",
|
|
58
58
|
"sanity": "^5 || ^6.0.0-0",
|
|
59
|
-
"sanity-plugin-internationalized-array": "^5.1.
|
|
59
|
+
"sanity-plugin-internationalized-array": "^5.1.19"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20.19 <22 || >=22.12"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","names":[],"sources":["../../src/i18n/resources.ts"],"sourcesContent":["export default {\n 'action.duplicate.label': 'Duplicate with translations',\n 'action.duplicate.disabled.missing-metadata':\n 'The document cannot be duplicated because the metadata document is missing',\n 'action.duplicate.disabled.multiple-metadata':\n 'The document cannot be duplicated because there are multiple metadata documents',\n}\n"],"mappings":"AAAA,IAAA,oBAAe;CACb,0BAA0B;CAC1B,8CACE;CACF,+CACE;AACJ"}
|