@sevenfold/setto-client 0.18.0 → 0.19.0
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 +1 -1
- package/dist/types.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { SettoAdminApp } from './admin/App';
|
|
|
27
27
|
export { SettoContext } from './provider';
|
|
28
28
|
export type { SettoContextValue } from './provider';
|
|
29
29
|
export { AuthGate } from './edit-mode/auth-gate';
|
|
30
|
-
export type { SettoConfig, BrandColor, DeploymentRow, SiteRow, ContentFile, PublishFile, PublishResult, } from './types';
|
|
30
|
+
export type { SettoConfig, BrandColor, DeploymentRow, SiteRow, ContentFile, PublishFile, PublishResult, PublishTranslation, } from './types';
|
|
31
31
|
export type { SectionSchema, SectionColorField } from './section-schema';
|
|
32
32
|
export { SettoBlockTree } from './block-tree/SettoBlockTree';
|
|
33
33
|
export type { SettoBlockTreeProps } from './block-tree/SettoBlockTree';
|
package/dist/types.d.ts
CHANGED
|
@@ -85,9 +85,27 @@ export interface PublishFile {
|
|
|
85
85
|
content: string;
|
|
86
86
|
encoding?: 'utf-8' | 'base64';
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* What the other languages did while the customer waited.
|
|
90
|
+
*
|
|
91
|
+
* Absent on a single-language site, which is most of them, and absent when
|
|
92
|
+
* every language was already up to date — there is nothing to report and a row
|
|
93
|
+
* saying so would be noise.
|
|
94
|
+
*/
|
|
95
|
+
export interface PublishTranslation {
|
|
96
|
+
/** Per language, how many strings were written and how many a person owns. */
|
|
97
|
+
languages: Array<{
|
|
98
|
+
language: string;
|
|
99
|
+
translated: number;
|
|
100
|
+
keptByHuman: number;
|
|
101
|
+
}>;
|
|
102
|
+
/** Anything that stopped it or cut it short. Already in Norwegian. */
|
|
103
|
+
note: string | null;
|
|
104
|
+
}
|
|
88
105
|
export interface PublishResult {
|
|
89
106
|
commitSha: string;
|
|
90
107
|
deploymentId: string | null;
|
|
91
108
|
/** Set when GitHub commit succeeded but Supabase tracking row was deferred. */
|
|
92
109
|
trackingDeferred?: boolean;
|
|
110
|
+
translation?: PublishTranslation;
|
|
93
111
|
}
|