@jumoo/translate 17.9.2 → 18.3.1

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.
Files changed (66) hide show
  1. package/dist/api/index.d.ts +2 -3
  2. package/dist/api/sdk.gen.d.ts +118 -122
  3. package/dist/api/types.gen.d.ts +146 -128
  4. package/dist/conditions/inplace-enabled.condition.d.ts +10 -0
  5. package/dist/connectors/repository/connector-repository.d.ts +5 -5
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/content/actions/translate-element.footer-app.d.ts +18 -0
  8. package/dist/content/components/document-sets.element.d.ts +2 -1
  9. package/dist/content/components/document-stats.element.d.ts +2 -1
  10. package/dist/content/components/document-translations.element.d.ts +2 -1
  11. package/dist/content/components/simple-translate.element.d.ts +2 -0
  12. package/dist/content/translation-element-view.element.d.ts +15 -0
  13. package/dist/content/translation-view.context.d.ts +18 -8
  14. package/dist/content/translation-view.element.d.ts +1 -0
  15. package/dist/jobs/jobs.repository.d.ts +10 -10
  16. package/dist/jobs/workspace/translation-job-workspace.context.d.ts +1 -1
  17. package/dist/lang/files/da/da.d.ts +2 -0
  18. package/dist/lang/files/da/tmSettings.da.d.ts +2 -0
  19. package/dist/lang/files/de/de.d.ts +2 -0
  20. package/dist/lang/files/de/tmSettings.de.d.ts +2 -0
  21. package/dist/lang/files/en/en.d.ts +3 -0
  22. package/dist/lang/files/en/tm.en.d.ts +1 -0
  23. package/dist/lang/files/en/tmSettings.en.d.ts +2 -0
  24. package/dist/lang/files/es/es.d.ts +2 -0
  25. package/dist/lang/files/es/tmSettings.es.d.ts +2 -0
  26. package/dist/lang/files/fr/fr.d.ts +2 -0
  27. package/dist/lang/files/fr/tmSettings.fr.d.ts +2 -0
  28. package/dist/lang/files/nl/nl.d.ts +2 -0
  29. package/dist/lang/files/nl/tmSettings.nl.d.ts +2 -0
  30. package/dist/nodes/node.respository.d.ts +33 -18
  31. package/dist/section/tree/manifest.d.ts +1 -1
  32. package/dist/section/tree/types.d.ts +2 -5
  33. package/dist/sets/sets.context.d.ts +15 -9
  34. package/dist/sets/sets.repository.d.ts +26 -15
  35. package/dist/settings/memory/components/manifest.d.ts +2 -0
  36. package/dist/settings/memory/components/memory-copy.modal.d.ts +12 -0
  37. package/dist/settings/memory/components/memory-copy.modal.token.d.ts +10 -0
  38. package/dist/settings/memory/components/memory-edit.modal.d.ts +10 -0
  39. package/dist/settings/memory/components/memory-edit.modal.token.d.ts +11 -0
  40. package/dist/settings/memory/constants.d.ts +3 -0
  41. package/dist/settings/memory/manifest.d.ts +1 -0
  42. package/dist/settings/memory/menu/manifest.d.ts +2 -0
  43. package/dist/settings/memory/menu/memory-menu.element.d.ts +10 -0
  44. package/dist/settings/memory/repository/index.d.ts +2 -0
  45. package/dist/settings/memory/repository/memory.repository.d.ts +54 -0
  46. package/dist/settings/memory/workspace/manifest.d.ts +1 -0
  47. package/dist/settings/memory/workspace/views/default.element.d.ts +13 -0
  48. package/dist/settings/memory/workspace/views/source-detail.element.d.ts +16 -0
  49. package/dist/settings/memory/workspace/workspace.context.d.ts +48 -0
  50. package/dist/settings/memory/workspace/workspace.element.d.ts +7 -0
  51. package/dist/settings/respository/settings.repository.d.ts +12 -9
  52. package/dist/settings/sets/components/create-set-type.modal.d.ts +13 -0
  53. package/dist/settings/sets/components/create-set-type.modal.token.d.ts +7 -0
  54. package/dist/settings/sets/components/set-site-picker.element.d.ts +2 -1
  55. package/dist/settings/sets/components/set-site-picker.modal.d.ts +9 -3
  56. package/dist/settings/sets/components/set-site-picker.modal.token.d.ts +6 -1
  57. package/dist/settings/sets/entity/set-entity-context.d.ts +2 -1
  58. package/dist/settings/workspace/workspace.context.d.ts +3 -3
  59. package/dist/strategies/creation/actions/inplace.actions.d.ts +14 -0
  60. package/dist/strategies/creation/steps/inplace/inplace-config-step.element.d.ts +27 -0
  61. package/dist/strategies/creation/steps/inplace/inplace-job-result-step.element.d.ts +17 -0
  62. package/dist/strategies/creation/steps/inplace/manifest.d.ts +2 -0
  63. package/dist/strategies/creation/translation-creation.context.d.ts +2 -2
  64. package/package.json +9 -13
  65. package/dist/hey-api.d.ts +0 -11
  66. package/dist/section/tree/translations-tree.store.d.ts +0 -8
@@ -0,0 +1,10 @@
1
+ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
2
+ import { UmbConditionConfigBase, UmbConditionControllerArguments, UmbExtensionCondition } from '@umbraco-cms/backoffice/extension-api';
3
+ import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry';
4
+ export declare function isInPlaceEnabled(): Promise<boolean>;
5
+ export type InPlaceEnabledConditionConfig = UmbConditionConfigBase & {};
6
+ export declare class TranslationInPlaceEnabledCondition extends UmbConditionBase<InPlaceEnabledConditionConfig> implements UmbExtensionCondition {
7
+ config: InPlaceEnabledConditionConfig;
8
+ constructor(host: UmbControllerHost, args: UmbConditionControllerArguments<InPlaceEnabledConditionConfig>);
9
+ }
10
+ export { TranslationInPlaceEnabledCondition as api };
@@ -3,9 +3,9 @@ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
3
  export declare class TranslationConnectorRepository extends UmbControllerBase {
4
4
  #private;
5
5
  constructor(host: UmbControllerHost);
6
- getConnectors(): Promise<import("../..").TranslationProviderInfo[]>;
7
- getActiveConnectors(): Promise<import("../..").TranslationProviderInfo[]>;
8
- getByKey(key: string): Promise<import("../..").TranslationProviderInfo>;
9
- getByAlias(alias: string): Promise<import("../..").TranslationProviderInfo>;
10
- saveSettings(key: string, settings: Record<string, any>): Promise<boolean>;
6
+ getConnectors(): Promise<import("../..").TranslationProviderInfo[] | undefined>;
7
+ getActiveConnectors(): Promise<import("../..").TranslationProviderInfo[] | undefined>;
8
+ getByKey(key: string): Promise<import("../..").TranslationProviderInfo | undefined>;
9
+ getByAlias(alias: string): Promise<import("../..").TranslationProviderInfo | undefined>;
10
+ saveSettings(key: string, settings: Record<string, any>): Promise<boolean | undefined>;
11
11
  }
@@ -21,6 +21,7 @@ export declare const translationConstants: {
21
21
  createJob: string;
22
22
  createJobFromNodes: string;
23
23
  approveJob: string;
24
+ inPlaceCreateJob: string;
24
25
  };
25
26
  };
26
27
  export declare const TranslationTimeOptions: Intl.DateTimeFormatOptions;
@@ -0,0 +1,18 @@
1
+ import { nothing } from '@umbraco-cms/backoffice/external/lit';
2
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
+ /**
4
+ * Library (element) equivalent of the document translation footer app -
5
+ * renders the quick-translate button inside the element editor.
6
+ */
7
+ export declare class TranslationElementFooterApp extends UmbLitElement {
8
+ unique?: string;
9
+ constructor();
10
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
11
+ static styles: import("lit").CSSResult[];
12
+ }
13
+ export default TranslationElementFooterApp;
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'jumoo-tm-element-translation-footer-app': TranslationElementFooterApp;
17
+ }
18
+ }
@@ -1,7 +1,8 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
- import { TranslationSet } from '../../api';
2
+ import { TranslationEntityType, TranslationSet } from '../../api';
3
3
  export declare class TranslationDocumentSetsElement extends UmbLitElement {
4
4
  unique?: string;
5
+ entityType: TranslationEntityType;
5
6
  sets?: TranslationSet[];
6
7
  constructor();
7
8
  render(): import("lit-html").TemplateResult<1>;
@@ -1,7 +1,8 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
- import { WordCountInfo } from '../../api';
2
+ import { TranslationEntityType, WordCountInfo } from '../../api';
3
3
  export declare class TranslationDocumentStatsElement extends UmbLitElement {
4
4
  unique?: string;
5
+ entityType: TranslationEntityType;
5
6
  stats?: WordCountInfo;
6
7
  constructor();
7
8
  render(): import("lit-html").TemplateResult<1>;
@@ -1,10 +1,11 @@
1
1
  import { CSSResultGroup, nothing } from '@umbraco-cms/backoffice/external/lit';
2
2
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
- import { TranslationNodeStatus } from '../../api';
3
+ import { TranslationEntityType, TranslationNodeStatus } from '../../api';
4
4
  import { UmbTableColumn, UmbTableConfig } from '@umbraco-cms/backoffice/components';
5
5
  export declare class TranslationDocumentTranslations extends UmbLitElement {
6
6
  #private;
7
7
  unique?: string;
8
+ entityType: TranslationEntityType;
8
9
  currentCulture?: string | null;
9
10
  status?: TranslationNodeStatus[];
10
11
  _tableConfig: UmbTableConfig;
@@ -3,6 +3,8 @@ import { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/ext
3
3
  export declare class TranslationSimpleTranslate extends UmbLitElement {
4
4
  #private;
5
5
  unique?: string;
6
+ /** UDI entity type (document / element) of the thing being translated. */
7
+ entityType: string;
6
8
  look: UUIInterfaceLook;
7
9
  color: UUIInterfaceColor;
8
10
  label: string;
@@ -0,0 +1,15 @@
1
+ import { CSSResultGroup } from '@umbraco-cms/backoffice/external/lit';
2
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
+ /**
4
+ * Library (element) translation workspace view - mirrors the document view
5
+ * but targets the element being edited. Reuses the shared language / sets /
6
+ * stats panels (keyed by the entity unique).
7
+ */
8
+ export declare class TranslationElementViewElement extends UmbLitElement {
9
+ #private;
10
+ key?: string;
11
+ constructor();
12
+ render(): import("lit-html").TemplateResult<1>;
13
+ static styles?: CSSResultGroup;
14
+ }
15
+ export default TranslationElementViewElement;
@@ -1,28 +1,38 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
2
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
3
3
  import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
4
+ import { TranslationEntityType } from '../api';
4
5
  export declare class TranslationDocumentViewContext extends UmbControllerBase {
5
6
  #private;
6
7
  readonly unique: import("rxjs").Observable<string | undefined>;
7
8
  constructor(host: UmbControllerHost);
8
9
  setUnique(unique: string): void;
9
- getStats(key: string, includeChildren: boolean): Promise<import("..").WordCountInfo>;
10
- getSetInfo(key: string): Promise<import("..").TranslationSet[] | undefined>;
11
- getStatus(key: string): Promise<import("..").TranslationNodeStatus[]>;
12
- cloneTranslation(contentId: number, source: string, target: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
10
+ getStats(key: string, includeChildren: boolean, entityType?: TranslationEntityType): Promise<import("..").WordCountInfo | undefined>;
11
+ getSetInfo(key: string, entityType?: TranslationEntityType): Promise<import("..").TranslationSet[] | undefined>;
12
+ getStatus(key: string, entityType?: TranslationEntityType): Promise<import("..").TranslationNodeStatus[] | undefined>;
13
+ cloneTranslation(contentId: number, source: string, target: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
13
14
  data: unknown;
14
- request: Request;
15
- response: Response;
15
+ error: undefined;
16
+ } | {
17
+ data: undefined;
18
+ error: unknown;
19
+ }) & {
20
+ request?: Request;
21
+ response?: Response;
16
22
  }>>;
17
- startCreate(key?: string, language?: string): Promise<void>;
23
+ startCreate(key?: string, language?: string, primaryType?: string): Promise<void>;
18
24
  /**
19
25
  * starts the same create-job pipeline as {@link startCreate}, but for a
20
26
  * flattened bulk selection of content ids (see the content section's bulk
21
27
  * translation dashboard). the pipeline itself doesn't care how the ids were
22
28
  * picked, so this is just a second entry point into the same modal.
29
+ *
30
+ * document-only for now - the bulk dashboard only ever picks from the
31
+ * Content tree, so there's no entity-type ambiguity to thread through here.
23
32
  */
24
33
  startBulkCreate(contentIds: string[]): Promise<void>;
25
- startSimple(key: string, language?: string): Promise<void>;
34
+ startSimple(key: string, language?: string, primaryType?: string): Promise<void>;
35
+ startInPlace(key?: string, primaryType?: string): Promise<void>;
26
36
  }
27
37
  export default TranslationDocumentViewContext;
28
38
  export declare const JUMOO_TM_DOCUMENT_VIEW_CONTEXT: UmbContextToken<TranslationDocumentViewContext, TranslationDocumentViewContext>;
@@ -3,6 +3,7 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
3
  export declare class TranslationViewElement extends UmbLitElement {
4
4
  #private;
5
5
  key?: string;
6
+ _inPlaceEnabled: boolean;
6
7
  currentCulture?: string | null;
7
8
  constructor();
8
9
  render(): import("lit-html").TemplateResult<1>;
@@ -14,11 +14,11 @@ export type TranslationJobCheckResult = {
14
14
  export declare class TranslationJobsRespository extends UmbControllerBase {
15
15
  #private;
16
16
  constructor(host: UmbControllerHost);
17
- getJob(unique: string): Promise<import("..").TranslationJobView>;
18
- getAllJobs(): Promise<import("..").TranslationJobView[]>;
19
- getAllByStatus(minStatus: JobStatus, maxStatus: JobStatus, page: number): Promise<import("..").PagedModelTranslationJobViewModel>;
20
- getAllByStatusAndCulture(minStatus: JobStatus, maxStatus: JobStatus, culture: string, page: number): Promise<import("..").PagedModelTranslationJobViewModel>;
21
- getCultureInfo(culture: string): Promise<import("..").CultureInfoView>;
17
+ getJob(unique: string): Promise<import("..").TranslationJobView | undefined>;
18
+ getAllJobs(): Promise<import("..").TranslationJobView[] | undefined>;
19
+ getAllByStatus(minStatus: JobStatus, maxStatus: JobStatus, page: number): Promise<import("..").PagedModelTranslationJobViewModel | undefined>;
20
+ getAllByStatusAndCulture(minStatus: JobStatus, maxStatus: JobStatus, culture: string, page: number): Promise<import("..").PagedModelTranslationJobViewModel | undefined>;
21
+ getCultureInfo(culture: string): Promise<import("..").CultureInfoView | undefined>;
22
22
  check(unique: string): Promise<TranslationJobCheckResult>;
23
23
  resetStatus(unique: string, JobStatus: JobStatus): Promise<void>;
24
24
  CancelJob(unique: string): Promise<void>;
@@ -27,9 +27,9 @@ export declare class TranslationJobsRespository extends UmbControllerBase {
27
27
  removeJobs(jobs: string[]): Promise<void>;
28
28
  cancelJobs(jobs: string[]): Promise<void>;
29
29
  checkJobs(jobs: string[]): Promise<void>;
30
- getHistory(unique: string): Promise<import("..").TranslationAuditItem[]>;
31
- updateCopyProperties(unique: string, copyProperties: boolean): Promise<boolean>;
32
- getStatusSummaryRange(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").SummaryItem[]>;
33
- getStatusSummaryCount(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").StatusSummaryCount>;
34
- getStatus(unique: string): Promise<JobStatus>;
30
+ getHistory(unique: string): Promise<import("..").TranslationAuditItem[] | undefined>;
31
+ updateCopyProperties(unique: string, copyProperties: boolean): Promise<boolean | undefined>;
32
+ getStatusSummaryRange(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").SummaryItem[] | undefined>;
33
+ getStatusSummaryCount(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").StatusSummaryCount | undefined>;
34
+ getStatus(unique: string): Promise<JobStatus | undefined>;
35
35
  }
@@ -30,7 +30,7 @@ export declare class TranslationJobWorkspaceContext extends UmbEditableWorkspace
30
30
  remove(): Promise<void>;
31
31
  archive(): Promise<void>;
32
32
  reset(status: JobStatus): Promise<void>;
33
- getHistory(unique: string): Promise<import("../..").TranslationAuditItem[]>;
33
+ getHistory(unique: string): Promise<import("../..").TranslationAuditItem[] | undefined>;
34
34
  protected submit(): Promise<void>;
35
35
  }
36
36
  export { TranslationJobWorkspaceContext as api };
@@ -322,6 +322,8 @@ declare const _default: {
322
322
  licencedDomainsDescription: string;
323
323
  useLegacySubmit: string;
324
324
  useLegacySubmitDescription: string;
325
+ translateInPlace: string;
326
+ translateInPlaceDescription: string;
325
327
  };
326
328
  tmStats: {
327
329
  pages: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -322,6 +322,8 @@ declare const _default: {
322
322
  licencedDomainsDescription: string;
323
323
  useLegacySubmit: string;
324
324
  useLegacySubmitDescription: string;
325
+ translateInPlace: string;
326
+ translateInPlaceDescription: string;
325
327
  };
326
328
  tmStats: {
327
329
  pages: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -388,6 +388,8 @@ declare const _default: {
388
388
  licencedDomainsDescription: string;
389
389
  useLegacySubmit: string;
390
390
  useLegacySubmitDescription: string;
391
+ translateInPlace: string;
392
+ translateInPlaceDescription: string;
391
393
  };
392
394
  tmStats: {
393
395
  pages: string;
@@ -412,6 +414,7 @@ declare const _default: {
412
414
  };
413
415
  tm: {
414
416
  create: string;
417
+ translateInPlace: string;
415
418
  language: string;
416
419
  languagePickerDescription: string;
417
420
  options: string;
@@ -1,6 +1,7 @@
1
1
  export declare const tmLocalizations: {
2
2
  tm: {
3
3
  create: string;
4
+ translateInPlace: string;
4
5
  language: string;
5
6
  languagePickerDescription: string;
6
7
  options: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -322,6 +322,8 @@ declare const _default: {
322
322
  licencedDomainsDescription: string;
323
323
  useLegacySubmit: string;
324
324
  useLegacySubmitDescription: string;
325
+ translateInPlace: string;
326
+ translateInPlaceDescription: string;
325
327
  };
326
328
  tmStats: {
327
329
  pages: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -322,6 +322,8 @@ declare const _default: {
322
322
  licencedDomainsDescription: string;
323
323
  useLegacySubmit: string;
324
324
  useLegacySubmitDescription: string;
325
+ translateInPlace: string;
326
+ translateInPlaceDescription: string;
325
327
  };
326
328
  tmStats: {
327
329
  pages: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -322,6 +322,8 @@ declare const _default: {
322
322
  licencedDomainsDescription: string;
323
323
  useLegacySubmit: string;
324
324
  useLegacySubmitDescription: string;
325
+ translateInPlace: string;
326
+ translateInPlaceDescription: string;
325
327
  };
326
328
  tmStats: {
327
329
  pages: string;
@@ -42,5 +42,7 @@ export declare const tmSettingsLocalizations: {
42
42
  licencedDomainsDescription: string;
43
43
  useLegacySubmit: string;
44
44
  useLegacySubmitDescription: string;
45
+ translateInPlace: string;
46
+ translateInPlaceDescription: string;
45
47
  };
46
48
  };
@@ -1,30 +1,45 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
2
  import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
- import { BulkSelectionRequestItem, NodeStatus, TranslationValue } from '../api';
3
+ import { BulkSelectionRequestItem, NodeStatus, TranslationEntityType, TranslationValue } from '../api';
4
4
  export declare class TranslationNodeRespository extends UmbControllerBase {
5
5
  #private;
6
6
  constructor(host: UmbControllerHost);
7
- getNode(unique: string): Promise<import("..").TranslationNode>;
8
- getPending(culture: string, page: number): Promise<import("..").PagedModelTranslationNodeModel>;
9
- getSummaries(): Promise<import("..").SummaryItem[]>;
10
- getSummaryCount(status: NodeStatus): Promise<number>;
11
- getCultureInfo(culture: string): Promise<import("..").CultureInfoView>;
12
- deleteNodes(nodeIds: string[]): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
7
+ getNode(unique: string): Promise<import("..").TranslationNode | undefined>;
8
+ getPending(culture: string, page: number): Promise<import("..").PagedModelTranslationNodeModel | undefined>;
9
+ getSummaries(): Promise<import("..").SummaryItem[] | undefined>;
10
+ getSummaryCount(status: NodeStatus): Promise<number | undefined>;
11
+ getCultureInfo(culture: string): Promise<import("..").CultureInfoView | undefined>;
12
+ deleteNodes(nodeIds: string[]): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
13
13
  data: unknown;
14
- request: Request;
15
- response: Response;
14
+ error: undefined;
15
+ } | {
16
+ data: undefined;
17
+ error: unknown;
18
+ }) & {
19
+ request?: Request;
20
+ response?: Response;
16
21
  }>>;
17
- getWordCountInfo(unique: string, includeChildren: boolean): Promise<import("..").WordCountInfo>;
18
- getNodeStatus(key: string): Promise<import("..").TranslationNodeStatus[]>;
19
- getBulkSelection(items: BulkSelectionRequestItem[]): Promise<import("..").BulkSelectionResult>;
20
- updateTranslationValue(nodeId: number, value: TranslationValue): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
22
+ getWordCountInfo(unique: string, includeChildren: boolean, entityType?: TranslationEntityType): Promise<import("..").WordCountInfo | undefined>;
23
+ getNodeStatus(key: string, entityType?: TranslationEntityType): Promise<import("..").TranslationNodeStatus[] | undefined>;
24
+ getBulkSelection(items: BulkSelectionRequestItem[]): Promise<import("..").BulkSelectionResult | undefined>;
25
+ updateTranslationValue(nodeId: number, value: TranslationValue): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
21
26
  data: unknown;
22
- request: Request;
23
- response: Response;
27
+ error: undefined;
28
+ } | {
29
+ data: undefined;
30
+ error: unknown;
31
+ }) & {
32
+ request?: Request;
33
+ response?: Response;
24
34
  }>>;
25
- cloneNode(contentId: number, source: string, target: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
35
+ cloneNode(contentId: number, source: string, target: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
26
36
  data: unknown;
27
- request: Request;
28
- response: Response;
37
+ error: undefined;
38
+ } | {
39
+ data: undefined;
40
+ error: unknown;
41
+ }) & {
42
+ request?: Request;
43
+ response?: Response;
29
44
  }>>;
30
45
  }
@@ -1 +1 @@
1
- export declare const manifests: (import("@umbraco-cms/backoffice/extension-registry").ManifestRepository<import("@umbraco-cms/backoffice/extension-api").UmbApi> | import("@umbraco-cms/backoffice/tree").ManifestTreeItem | import("@umbraco-cms/backoffice/tree").ManifestTree | import("@umbraco-cms/backoffice/menu").ManifestMenu | import("@umbraco-cms/backoffice/section").ManifestSectionSidebarApp | import("@umbraco-cms/backoffice/tree").ManifestMenuItemTreeKind | import("@umbraco-cms/backoffice/extension-registry").ManifestTreeStore)[];
1
+ export declare const manifests: (import("@umbraco-cms/backoffice/tree").ManifestTreeItem | import("@umbraco-cms/backoffice/tree").ManifestTree | import("@umbraco-cms/backoffice/menu").ManifestMenu | import("@umbraco-cms/backoffice/section").ManifestSectionSidebarApp | import("@umbraco-cms/backoffice/tree").ManifestMenuItemTreeKind | import("@umbraco-cms/backoffice/extension-registry").ManifestRepository<import("@umbraco-cms/backoffice/extension-api").UmbApi>)[];
@@ -1,11 +1,8 @@
1
- import { NamedEntityTreeItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
2
1
  import { UmbTreeItemModel, UmbTreeRootModel } from '@umbraco-cms/backoffice/tree';
2
+ import { TranslationLanguageItemResponseModel } from '../../api';
3
3
  export interface TranslationTreeItemModel extends UmbTreeItemModel {
4
4
  }
5
- export interface TranslationTreeItemResponseModel extends NamedEntityTreeItemResponseModel {
6
- icon: string;
7
- entityType: string;
8
- }
5
+ export type TranslationTreeItemResponseModel = TranslationLanguageItemResponseModel;
9
6
  export interface TranslationTreeRootModel extends UmbTreeRootModel {
10
7
  }
11
8
  export declare const JUMOO_TRANSLATION_ROOT_ENTITY_TYPE = "jumoo-translation-root";
@@ -1,24 +1,30 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
2
  import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
3
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
4
- import { TranslationSet, TranslationSetNotifications } from '../api';
4
+ import { TranslationEntityType, TranslationSet, TranslationSetNotifications } from '../api';
5
5
  export declare class TranslationSetsContext extends UmbControllerBase {
6
6
  #private;
7
7
  constructor(host: UmbControllerHost);
8
8
  sets: import("rxjs").Observable<TranslationSet[]>;
9
9
  getSets(): Promise<TranslationSet[]>;
10
- getSet(unique: string): Promise<TranslationSet>;
11
- getSetById(id: number): Promise<TranslationSet>;
10
+ getSet(unique: string): Promise<TranslationSet | undefined>;
11
+ getSetById(id: number): Promise<TranslationSet | undefined>;
12
+ getNewSet(entityType?: TranslationEntityType): Promise<TranslationSet | undefined>;
12
13
  save(set: TranslationSet): Promise<TranslationSet | undefined>;
13
14
  delete(unique: string): Promise<unknown>;
14
- getNotifySettings(unique: string): Promise<TranslationSetNotifications>;
15
- saveNotifySettings(settings: TranslationSetNotifications): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
15
+ getNotifySettings(unique: string): Promise<TranslationSetNotifications | undefined>;
16
+ saveNotifySettings(settings: TranslationSetNotifications): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
16
17
  data: TranslationSetNotifications;
17
- request: Request;
18
- response: Response;
18
+ error: undefined;
19
+ } | {
20
+ data: undefined;
21
+ error: unknown;
22
+ }) & {
23
+ request?: Request;
24
+ response?: Response;
19
25
  }>>;
20
- getSetsForContent(unique: string): Promise<TranslationSet[] | undefined>;
21
- getSetsByUniqueAndEntityType(unique: string, entityType: string, simple: boolean): Promise<import("..").TranslationSetsResults>;
26
+ getSetsForContent(unique: string, entityType?: TranslationEntityType): Promise<TranslationSet[] | undefined>;
27
+ getSetsByUniqueAndEntityType(unique: string, entityType: string, simple: boolean): Promise<import("..").TranslationSetsResults | undefined>;
22
28
  }
23
29
  export default TranslationSetsContext;
24
30
  export declare const JUMOO_TM_SETS_CONTEXT: UmbContextToken<TranslationSetsContext, TranslationSetsContext>;
@@ -1,27 +1,38 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
2
  import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
- import { TranslationSet, TranslationSetNotifications, TranslationSetsResults } from '../api';
3
+ import { TranslationEntityType, TranslationSet, TranslationSetNotifications, TranslationSetsResults } from '../api';
4
4
  export declare class TranslationSetsRespository extends UmbControllerBase {
5
5
  #private;
6
6
  constructor(host: UmbControllerHost);
7
- getSets(): Promise<TranslationSet[]>;
8
- getSet(unique: string): Promise<TranslationSet>;
9
- getSetById(id: number): Promise<TranslationSet>;
7
+ getSets(): Promise<TranslationSet[] | undefined>;
8
+ getSet(unique: string): Promise<TranslationSet | undefined>;
9
+ getSetById(id: number): Promise<TranslationSet | undefined>;
10
+ getNewSet(entityType?: TranslationEntityType): Promise<TranslationSet | undefined>;
10
11
  save(set: TranslationSet): Promise<TranslationSet | undefined>;
11
- delete(unique: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
12
+ delete(unique: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
12
13
  data: unknown;
13
- request: Request;
14
- response: Response;
14
+ error: undefined;
15
+ } | {
16
+ data: undefined;
17
+ error: unknown;
18
+ }) & {
19
+ request?: Request;
20
+ response?: Response;
15
21
  }>>;
16
- getNotifySettings(unique: string): Promise<TranslationSetNotifications>;
17
- saveNotifySettings(settings: TranslationSetNotifications): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
22
+ getNotifySettings(unique: string): Promise<TranslationSetNotifications | undefined>;
23
+ saveNotifySettings(settings: TranslationSetNotifications): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
18
24
  data: TranslationSetNotifications;
19
- request: Request;
20
- response: Response;
25
+ error: undefined;
26
+ } | {
27
+ data: undefined;
28
+ error: unknown;
29
+ }) & {
30
+ request?: Request;
31
+ response?: Response;
21
32
  }>>;
22
- getSetsByUniqueAndEntityType(unique: string, entityType: string, simple: boolean): Promise<TranslationSetsResults>;
23
- getSetsForContent(unique: string): Promise<TranslationSet[] | undefined>;
24
- getInstalledCultures(): Promise<import("..").CultureInfoView[]>;
25
- getContentCultureInfo(key: string): Promise<import("..").CultureInfoView[]>;
33
+ getSetsByUniqueAndEntityType(unique: string, entityType: string, simple: boolean): Promise<TranslationSetsResults | undefined>;
34
+ getSetsForContent(unique: string, entityType?: TranslationEntityType): Promise<TranslationSet[] | undefined>;
35
+ getInstalledCultures(): Promise<import("..").CultureInfoView[] | undefined>;
36
+ getContentCultureInfo(key: string, entityType?: TranslationEntityType): Promise<import("..").CultureInfoView[] | undefined>;
26
37
  }
27
38
  export default TranslationSetsRespository;
@@ -0,0 +1,2 @@
1
+ declare const manifests: UmbExtensionManifest[];
2
+ export { manifests };
@@ -0,0 +1,12 @@
1
+ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
2
+ import { MemoryCopyModalData, MemoryCopyModalResult } from './memory-copy.modal.token.js';
3
+ export declare class TranslationMemoryCopyModal extends UmbModalBaseElement<MemoryCopyModalData, MemoryCopyModalResult> {
4
+ #private;
5
+ private _connectors;
6
+ private _selectedAlias;
7
+ private _isLoading;
8
+ connectedCallback(): Promise<void>;
9
+ render(): import("lit-html").TemplateResult<1>;
10
+ static styles: import("lit").CSSResult;
11
+ }
12
+ export default TranslationMemoryCopyModal;
@@ -0,0 +1,10 @@
1
+ import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
2
+ export interface MemoryCopyModalData {
3
+ fromSource: string;
4
+ fromSourceName: string;
5
+ }
6
+ export interface MemoryCopyModalResult {
7
+ toSource: string;
8
+ }
9
+ export declare const JUMOO_TM_MEMORY_COPY_MODAL_ALIAS = "jumoo-tm-memory-copy-modal";
10
+ export declare const JUMOO_TM_MEMORY_COPY_MODAL: UmbModalToken<MemoryCopyModalData, MemoryCopyModalResult>;
@@ -0,0 +1,10 @@
1
+ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
2
+ import { MemoryEditModalData, MemoryEditModalResult } from './memory-edit.modal.token.js';
3
+ export declare class TranslationMemoryEditModal extends UmbModalBaseElement<MemoryEditModalData, MemoryEditModalResult> {
4
+ #private;
5
+ private _translation;
6
+ connectedCallback(): void;
7
+ render(): import("lit-html").TemplateResult<1>;
8
+ static styles: import("lit").CSSResult;
9
+ }
10
+ export default TranslationMemoryEditModal;
@@ -0,0 +1,11 @@
1
+ import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
2
+ export interface MemoryEditModalData {
3
+ id: number;
4
+ sourceText: string;
5
+ translation: string;
6
+ }
7
+ export interface MemoryEditModalResult {
8
+ translation: string;
9
+ }
10
+ export declare const JUMOO_TM_MEMORY_EDIT_MODAL_ALIAS = "jumoo-tm-memory-edit-modal";
11
+ export declare const JUMOO_TM_MEMORY_EDIT_MODAL: UmbModalToken<MemoryEditModalData, MemoryEditModalResult>;
@@ -0,0 +1,3 @@
1
+ export declare const JUMOO_TM_MEMORY_SETTINGS_CONTEXT_ALIAS = "jumoo-tm-memory-settings-context";
2
+ export declare const JUMOO_TM_MEMORY_SETTINGS_WORKSPACE_ALIAS = "jumoo-tm-memory-settings-workspace";
3
+ export declare const JUMOO_TM_MEMORY_WORKSPACE_ENTITY_TYPE = "jumoo-tm-memory-entity-root";
@@ -0,0 +1 @@
1
+ export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
@@ -0,0 +1,2 @@
1
+ import { ManifestTranslationSettingsMenuItem } from '@jumoo/translate';
2
+ export declare const manifests: ManifestTranslationSettingsMenuItem[];
@@ -0,0 +1,10 @@
1
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ import { ManifestMenuItem, UmbMenuItemElement } from '@umbraco-cms/backoffice/menu';
3
+ export declare class TranslationMemoryMenuItem extends UmbLitElement implements UmbMenuItemElement {
4
+ manifest: ManifestMenuItem;
5
+ hasChildren: boolean;
6
+ itemPath?: string;
7
+ constructor();
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ }
10
+ export default TranslationMemoryMenuItem;
@@ -0,0 +1,2 @@
1
+ export { TranslationMemoryRepository } from './memory.repository';
2
+ export type { default as TranslationMemoryRepositoryDefault, SourceMemoryCountData, } from './memory.repository';