From c854111b2e5bc6de50b32d0b56312a357d4028fd Mon Sep 17 00:00:00 2001 From: cngonzalez Date: Sun, 7 Aug 2022 15:39:53 -0700 Subject: [PATCH] update to use latest exports from tab (#14) --- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/index.ts | 4 ++++ 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a4dc41..ffa9776 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "sanity-plugin-studio-smartling", - "version": "2.0.1", + "version": "2.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sanity-plugin-studio-smartling", - "version": "2.0.1", + "version": "2.0.3", "license": "MIT", "dependencies": { - "sanity-translations-tab": "^2.0.1" + "sanity-translations-tab": "^2.0.3" }, "devDependencies": { "@sanity/types": "^2.22.3", @@ -13538,9 +13538,9 @@ } }, "node_modules/sanity-translations-tab": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/sanity-translations-tab/-/sanity-translations-tab-2.0.1.tgz", - "integrity": "sha512-Tk11NeYyPIxSR//KqWxe119eBl3RAU2dVRhMarmFW5OH1P+rdBJTDCwY4KiOFVDKYVwM6mloJgRIjbXHWjLDfQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/sanity-translations-tab/-/sanity-translations-tab-2.0.3.tgz", + "integrity": "sha512-Eog4la5T80yMvG29HLPbgpfkBBTTL4+iZPf3UbLW3c+vLEFJPgSl0BeKzmsBWDsIFL8TfTrIXVekuRhilRgGTw==", "dependencies": { "@sanity/client": "^2.11.0", "@sanity/ui": "^0.37.2", @@ -27534,9 +27534,9 @@ } }, "sanity-translations-tab": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/sanity-translations-tab/-/sanity-translations-tab-2.0.1.tgz", - "integrity": "sha512-Tk11NeYyPIxSR//KqWxe119eBl3RAU2dVRhMarmFW5OH1P+rdBJTDCwY4KiOFVDKYVwM6mloJgRIjbXHWjLDfQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/sanity-translations-tab/-/sanity-translations-tab-2.0.3.tgz", + "integrity": "sha512-Eog4la5T80yMvG29HLPbgpfkBBTTL4+iZPf3UbLW3c+vLEFJPgSl0BeKzmsBWDsIFL8TfTrIXVekuRhilRgGTw==", "requires": { "@sanity/client": "^2.11.0", "@sanity/ui": "^0.37.2", diff --git a/package.json b/package.json index 844152c..a95e0ba 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.2", + "version": "2.0.3", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -54,6 +54,6 @@ "typescript": "^4.0.5" }, "dependencies": { - "sanity-translations-tab": "^2.0.1" + "sanity-translations-tab": "^2.0.3" } } diff --git a/src/index.ts b/src/index.ts index 6f1c7ac..967441d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,8 @@ import { defaultStopTypes, customSerializers, Adapter, + documentLevelPatch, + fieldLevelPatch, } from 'sanity-translations-tab' import { SmartlingAdapter } from './adapter' @@ -35,6 +37,8 @@ const defaultFieldLevelConfig: ConfigOptions = { export { TranslationsTab, findLatestDraft, + documentLevelPatch, + fieldLevelPatch, BaseDocumentDeserializer, BaseDocumentSerializer, BaseDocumentMerger,