gt-sanity 1.0.2 → 1.0.4
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.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +337 -268
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +340 -271
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/actions/translateAction.tsx +24 -0
- package/src/components/TranslateButton.tsx +29 -0
- package/src/components/TranslationsProvider.tsx +35 -29
- package/src/components/tab/TranslationView.tsx +135 -87
- package/src/index.ts +15 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeserializerRule } from '@portabletext/block-tools';
|
|
2
|
+
import { DocumentActionComponent } from 'sanity';
|
|
2
3
|
import { GT } from 'generaltranslation';
|
|
3
4
|
import { ObjectField } from 'sanity';
|
|
4
5
|
import { Plugin as Plugin_2 } from 'sanity';
|
|
@@ -197,6 +198,8 @@ export declare type SerializedDocument = {
|
|
|
197
198
|
content: string;
|
|
198
199
|
};
|
|
199
200
|
|
|
201
|
+
export declare const translateAction: DocumentActionComponent;
|
|
202
|
+
|
|
200
203
|
declare type TranslateDocumentFilter = {
|
|
201
204
|
documentId?: string;
|
|
202
205
|
type?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeserializerRule } from '@portabletext/block-tools';
|
|
2
|
+
import { DocumentActionComponent } from 'sanity';
|
|
2
3
|
import { GT } from 'generaltranslation';
|
|
3
4
|
import { ObjectField } from 'sanity';
|
|
4
5
|
import { Plugin as Plugin_2 } from 'sanity';
|
|
@@ -197,6 +198,8 @@ export declare type SerializedDocument = {
|
|
|
197
198
|
content: string;
|
|
198
199
|
};
|
|
199
200
|
|
|
201
|
+
export declare const translateAction: DocumentActionComponent;
|
|
202
|
+
|
|
200
203
|
declare type TranslateDocumentFilter = {
|
|
201
204
|
documentId?: string;
|
|
202
205
|
type?: string;
|