@uniformdev/tms-sdk 19.154.1-alpha.24 → 19.154.1-alpha.26
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 +5 -3
- package/dist/index.d.ts +5 -3
- package/package.json +7 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentInstance, RootComponentInstance, EntryData, CanvasClient, CompositionGetResponse, ContentClient, Entry } from '@uniformdev/canvas';
|
|
2
|
+
import { CanvasEditorEntityType } from '@uniformdev/mesh-sdk';
|
|
2
3
|
|
|
3
4
|
type ComponentTranslationPayload = Pick<ComponentInstance, '_id' | 'type' | 'parameters' | 'slots' | '_overrides'>;
|
|
5
|
+
type EntityType = CanvasEditorEntityType;
|
|
4
6
|
type TranslationPayload = {
|
|
5
7
|
schemaVersion: number;
|
|
6
8
|
metadata: {
|
|
@@ -9,7 +11,7 @@ type TranslationPayload = {
|
|
|
9
11
|
uniformTargetLocale: string;
|
|
10
12
|
uniformReleaseId?: string;
|
|
11
13
|
targetLang: string;
|
|
12
|
-
entityType:
|
|
14
|
+
entityType: EntityType;
|
|
13
15
|
entity: {
|
|
14
16
|
id: string;
|
|
15
17
|
slug: string | null | undefined;
|
|
@@ -41,7 +43,7 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
41
43
|
uniformReleaseId: string | undefined;
|
|
42
44
|
targetLang: string;
|
|
43
45
|
entity: RootComponentInstance | EntryData;
|
|
44
|
-
entityType:
|
|
46
|
+
entityType: EntityType;
|
|
45
47
|
/**
|
|
46
48
|
* Ignore modified content in target locales and collect all supported parameters for translation
|
|
47
49
|
*/
|
|
@@ -123,4 +125,4 @@ declare const translateEntry: ({ entry, translationPayload, overrideModifiedTarg
|
|
|
123
125
|
overrideModifiedTargetLocale: boolean;
|
|
124
126
|
}) => EntityTranslationResult<Entry>;
|
|
125
127
|
|
|
126
|
-
export { type CollectTranslationPayloadResult, type ComponentTranslationPayload, type EntityTranslationResult, type MaybePromise, type MergeCompositionTranslationToUniformOptions, type MergeEntryTranslationToUniformOptions, type MergeTranslationToUniformOptions, type TranslationPayload, collectTranslationPayload, getCompositionForTranslation, getEntryForTranslation, mergeCompositionTranslationToUniform, mergeEntryTranslationToUniform, mergeTranslationToUniform, translateComposition, translateEntry };
|
|
128
|
+
export { type CollectTranslationPayloadResult, type ComponentTranslationPayload, type EntityTranslationResult, type EntityType, type MaybePromise, type MergeCompositionTranslationToUniformOptions, type MergeEntryTranslationToUniformOptions, type MergeTranslationToUniformOptions, type TranslationPayload, collectTranslationPayload, getCompositionForTranslation, getEntryForTranslation, mergeCompositionTranslationToUniform, mergeEntryTranslationToUniform, mergeTranslationToUniform, translateComposition, translateEntry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentInstance, RootComponentInstance, EntryData, CanvasClient, CompositionGetResponse, ContentClient, Entry } from '@uniformdev/canvas';
|
|
2
|
+
import { CanvasEditorEntityType } from '@uniformdev/mesh-sdk';
|
|
2
3
|
|
|
3
4
|
type ComponentTranslationPayload = Pick<ComponentInstance, '_id' | 'type' | 'parameters' | 'slots' | '_overrides'>;
|
|
5
|
+
type EntityType = CanvasEditorEntityType;
|
|
4
6
|
type TranslationPayload = {
|
|
5
7
|
schemaVersion: number;
|
|
6
8
|
metadata: {
|
|
@@ -9,7 +11,7 @@ type TranslationPayload = {
|
|
|
9
11
|
uniformTargetLocale: string;
|
|
10
12
|
uniformReleaseId?: string;
|
|
11
13
|
targetLang: string;
|
|
12
|
-
entityType:
|
|
14
|
+
entityType: EntityType;
|
|
13
15
|
entity: {
|
|
14
16
|
id: string;
|
|
15
17
|
slug: string | null | undefined;
|
|
@@ -41,7 +43,7 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
41
43
|
uniformReleaseId: string | undefined;
|
|
42
44
|
targetLang: string;
|
|
43
45
|
entity: RootComponentInstance | EntryData;
|
|
44
|
-
entityType:
|
|
46
|
+
entityType: EntityType;
|
|
45
47
|
/**
|
|
46
48
|
* Ignore modified content in target locales and collect all supported parameters for translation
|
|
47
49
|
*/
|
|
@@ -123,4 +125,4 @@ declare const translateEntry: ({ entry, translationPayload, overrideModifiedTarg
|
|
|
123
125
|
overrideModifiedTargetLocale: boolean;
|
|
124
126
|
}) => EntityTranslationResult<Entry>;
|
|
125
127
|
|
|
126
|
-
export { type CollectTranslationPayloadResult, type ComponentTranslationPayload, type EntityTranslationResult, type MaybePromise, type MergeCompositionTranslationToUniformOptions, type MergeEntryTranslationToUniformOptions, type MergeTranslationToUniformOptions, type TranslationPayload, collectTranslationPayload, getCompositionForTranslation, getEntryForTranslation, mergeCompositionTranslationToUniform, mergeEntryTranslationToUniform, mergeTranslationToUniform, translateComposition, translateEntry };
|
|
128
|
+
export { type CollectTranslationPayloadResult, type ComponentTranslationPayload, type EntityTranslationResult, type EntityType, type MaybePromise, type MergeCompositionTranslationToUniformOptions, type MergeEntryTranslationToUniformOptions, type MergeTranslationToUniformOptions, type TranslationPayload, collectTranslationPayload, getCompositionForTranslation, getEntryForTranslation, mergeCompositionTranslationToUniform, mergeEntryTranslationToUniform, mergeTranslationToUniform, translateComposition, translateEntry };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/tms-sdk",
|
|
3
|
-
"version": "19.154.1-alpha.
|
|
3
|
+
"version": "19.154.1-alpha.26+791f903a70",
|
|
4
4
|
"description": "Uniform Translation Management System SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,10 +33,13 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@uniformdev/canvas": "19.154.1-alpha.
|
|
37
|
-
"@uniformdev/richtext": "19.154.1-alpha.
|
|
36
|
+
"@uniformdev/canvas": "19.154.1-alpha.26+791f903a70",
|
|
37
|
+
"@uniformdev/richtext": "19.154.1-alpha.26+791f903a70",
|
|
38
38
|
"dequal": "2.0.3",
|
|
39
39
|
"immer": "10.0.4"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@uniformdev/mesh-sdk": "19.154.1-alpha.26+791f903a70"
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "791f903a7000c4e5402004190fad51d8cb2b13d5"
|
|
42
45
|
}
|