@jumoo/translate 17.9.3-prerelease.16 → 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 (69) 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/components/job-item-table.element.d.ts +1 -2
  16. package/dist/jobs/jobs.repository.d.ts +10 -10
  17. package/dist/jobs/workspace/translation-job-workspace.context.d.ts +1 -1
  18. package/dist/jobs/workspace/views/default-job-view.element.d.ts +0 -1
  19. package/dist/lang/files/da/da.d.ts +2 -0
  20. package/dist/lang/files/da/tmSettings.da.d.ts +2 -0
  21. package/dist/lang/files/de/de.d.ts +2 -0
  22. package/dist/lang/files/de/tmSettings.de.d.ts +2 -0
  23. package/dist/lang/files/en/en.d.ts +3 -0
  24. package/dist/lang/files/en/tm.en.d.ts +1 -0
  25. package/dist/lang/files/en/tmSettings.en.d.ts +2 -0
  26. package/dist/lang/files/es/es.d.ts +2 -0
  27. package/dist/lang/files/es/tmSettings.es.d.ts +2 -0
  28. package/dist/lang/files/fr/fr.d.ts +2 -0
  29. package/dist/lang/files/fr/tmSettings.fr.d.ts +2 -0
  30. package/dist/lang/files/nl/nl.d.ts +2 -0
  31. package/dist/lang/files/nl/tmSettings.nl.d.ts +2 -0
  32. package/dist/nodes/components/nodes-table.element.d.ts +0 -1
  33. package/dist/nodes/node.respository.d.ts +33 -18
  34. package/dist/section/tree/manifest.d.ts +1 -1
  35. package/dist/section/tree/types.d.ts +2 -5
  36. package/dist/sets/sets.context.d.ts +15 -9
  37. package/dist/sets/sets.repository.d.ts +26 -15
  38. package/dist/settings/memory/components/manifest.d.ts +2 -0
  39. package/dist/settings/memory/components/memory-copy.modal.d.ts +12 -0
  40. package/dist/settings/memory/components/memory-copy.modal.token.d.ts +10 -0
  41. package/dist/settings/memory/components/memory-edit.modal.d.ts +10 -0
  42. package/dist/settings/memory/components/memory-edit.modal.token.d.ts +11 -0
  43. package/dist/settings/memory/constants.d.ts +3 -0
  44. package/dist/settings/memory/manifest.d.ts +1 -0
  45. package/dist/settings/memory/menu/manifest.d.ts +2 -0
  46. package/dist/settings/memory/menu/memory-menu.element.d.ts +10 -0
  47. package/dist/settings/memory/repository/index.d.ts +2 -0
  48. package/dist/settings/memory/repository/memory.repository.d.ts +54 -0
  49. package/dist/settings/memory/workspace/manifest.d.ts +1 -0
  50. package/dist/settings/memory/workspace/views/default.element.d.ts +13 -0
  51. package/dist/settings/memory/workspace/views/source-detail.element.d.ts +16 -0
  52. package/dist/settings/memory/workspace/workspace.context.d.ts +48 -0
  53. package/dist/settings/memory/workspace/workspace.element.d.ts +7 -0
  54. package/dist/settings/respository/settings.repository.d.ts +12 -9
  55. package/dist/settings/sets/components/create-set-type.modal.d.ts +13 -0
  56. package/dist/settings/sets/components/create-set-type.modal.token.d.ts +7 -0
  57. package/dist/settings/sets/components/set-site-picker.element.d.ts +2 -1
  58. package/dist/settings/sets/components/set-site-picker.modal.d.ts +9 -3
  59. package/dist/settings/sets/components/set-site-picker.modal.token.d.ts +6 -1
  60. package/dist/settings/sets/entity/set-entity-context.d.ts +2 -1
  61. package/dist/settings/workspace/workspace.context.d.ts +3 -3
  62. package/dist/strategies/creation/actions/inplace.actions.d.ts +14 -0
  63. package/dist/strategies/creation/steps/inplace/inplace-config-step.element.d.ts +27 -0
  64. package/dist/strategies/creation/steps/inplace/inplace-job-result-step.element.d.ts +17 -0
  65. package/dist/strategies/creation/steps/inplace/manifest.d.ts +2 -0
  66. package/dist/strategies/creation/translation-creation.context.d.ts +2 -2
  67. package/package.json +46 -55
  68. package/dist/hey-api.d.ts +0 -11
  69. package/dist/section/tree/translations-tree.store.d.ts +0 -8
@@ -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';
@@ -0,0 +1,54 @@
1
+ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
+ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
+ import { PagedMemoryResponse, TranslationMemory } from '../../../api/index.js';
4
+ export interface SourceMemoryCountData {
5
+ source: string;
6
+ total: number;
7
+ approved: number;
8
+ }
9
+ export declare class TranslationMemoryRepository extends UmbControllerBase {
10
+ #private;
11
+ constructor(host: UmbControllerHost);
12
+ /**
13
+ * Get the count of translation memory entries
14
+ * @returns Promise containing the count of memory entries
15
+ */
16
+ getCount(): Promise<number | undefined>;
17
+ /**
18
+ * Get all translation memory entries
19
+ * @returns Promise containing an array of translation memory entries
20
+ */
21
+ getAll(): Promise<TranslationMemory[] | undefined>;
22
+ /**
23
+ * Get translation memory entries by source
24
+ * @param translationSource - The translation source to filter by
25
+ * @returns Promise containing an array of translation memory entries for the specified source
26
+ */
27
+ getBySource(translationSource: string): Promise<TranslationMemory[] | undefined>;
28
+ /**
29
+ * Get all available translation sources
30
+ * @returns Promise containing an array of translation source names
31
+ */
32
+ getSources(): Promise<string[] | undefined>;
33
+ /**
34
+ * Get memory counts by source for all sources
35
+ * @returns Promise containing an array of source memory count data
36
+ */
37
+ getMemoryCountsBySource(): Promise<SourceMemoryCountData[] | undefined>;
38
+ copyMemory(fromSource: string, toSource: string): Promise<number | undefined>;
39
+ getMemoryBySourcePaged(translationSource: string, skip: number, take: number, search?: string, approvedOnly?: boolean): Promise<PagedMemoryResponse | undefined>;
40
+ deleteMemoryEntry(id: number): Promise<boolean>;
41
+ updateMemoryEntry(id: number, translation: string): Promise<TranslationMemory | undefined>;
42
+ /**
43
+ * Delete all translation memory entries
44
+ * @returns Promise indicating success or failure
45
+ */
46
+ deleteAll(): Promise<boolean>;
47
+ /**
48
+ * Delete translation memory entries by source
49
+ * @param translationSource - The translation source to delete entries for
50
+ * @returns Promise indicating success or failure
51
+ */
52
+ deleteBySource(translationSource: string): Promise<boolean>;
53
+ }
54
+ export default TranslationMemoryRepository;
@@ -0,0 +1 @@
1
+ export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
@@ -0,0 +1,13 @@
1
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ import './source-detail.element.js';
3
+ export declare class TranslationMemoryDefaultViewElement extends UmbLitElement {
4
+ #private;
5
+ private _sourceCounts;
6
+ private _connectorNames;
7
+ private _isLoading;
8
+ private _selectedSource;
9
+ constructor();
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ static styles: import("lit").CSSResult;
12
+ }
13
+ export default TranslationMemoryDefaultViewElement;
@@ -0,0 +1,16 @@
1
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ export declare class TranslationMemorySourceDetailElement extends UmbLitElement {
3
+ #private;
4
+ source: string;
5
+ private _items;
6
+ private _total;
7
+ private _page;
8
+ private _pageSize;
9
+ private _search;
10
+ private _isLoading;
11
+ private _approvedOnly;
12
+ constructor();
13
+ render(): import("lit-html").TemplateResult<1>;
14
+ static styles: import("lit").CSSResult;
15
+ }
16
+ export default TranslationMemorySourceDetailElement;
@@ -0,0 +1,48 @@
1
+ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
+ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
3
+ import { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
4
+ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
5
+ import { SourceMemoryCountData } from '../repository';
6
+ import { PagedMemoryResponse, TranslationMemory } from '../../../api';
7
+ export declare class TranslationMemoryWorkspaceContext extends UmbControllerBase implements UmbWorkspaceContext {
8
+ #private;
9
+ readonly workspaceAlias: string;
10
+ getEntityType(): string;
11
+ constructor(host: UmbControllerHost);
12
+ /**
13
+ * Get the count of translation memory entries
14
+ */
15
+ getMemoryCount(): Promise<number | undefined>;
16
+ /**
17
+ * Get all translation memory entries
18
+ */
19
+ getAllMemoryEntries(): Promise<TranslationMemory[] | undefined>;
20
+ /**
21
+ * Get translation memory entries by source
22
+ * @param translationSource - The translation source to filter by
23
+ */
24
+ getMemoryEntriesBySource(translationSource: string): Promise<TranslationMemory[] | undefined>;
25
+ /**
26
+ * Get all available translation sources
27
+ */
28
+ getMemorySources(): Promise<string[] | undefined>;
29
+ /**
30
+ * Get memory counts by source for all sources
31
+ */
32
+ getMemoryCountsBySource(): Promise<SourceMemoryCountData[] | undefined>;
33
+ copyMemory(fromSource: string, toSource: string): Promise<number | undefined>;
34
+ getMemoryBySourcePaged(translationSource: string, skip: number, take: number, search?: string, approvedOnly?: boolean): Promise<PagedMemoryResponse | undefined>;
35
+ deleteMemoryEntry(id: number): Promise<boolean>;
36
+ updateMemoryEntry(id: number, translation: string): Promise<TranslationMemory | undefined>;
37
+ /**
38
+ * Delete all translation memory entries
39
+ */
40
+ deleteAllMemoryEntries(): Promise<boolean>;
41
+ /**
42
+ * Delete translation memory entries by source
43
+ * @param translationSource - The translation source to delete entries for
44
+ */
45
+ deleteMemoryEntriesBySource(translationSource: string): Promise<boolean>;
46
+ }
47
+ export default TranslationMemoryWorkspaceContext;
48
+ export declare const JUMOO_TRANSLATIONS_MEMORY_WORKSPACE_CONTEXT: UmbContextToken<TranslationMemoryWorkspaceContext, TranslationMemoryWorkspaceContext>;
@@ -0,0 +1,7 @@
1
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ export declare class TranslationMemoryWorkspaceElement extends UmbLitElement {
3
+ #private;
4
+ constructor();
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
7
+ export default TranslationMemoryWorkspaceElement;
@@ -3,20 +3,23 @@ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
3
  import { LicenceInfo } from '@jumoo/translate';
4
4
  export declare class TranslationManagerSettingsRepository extends UmbControllerBase {
5
5
  constructor(host: UmbControllerHost);
6
- getSettings(): Promise<import("@jumoo/translate").TranslateSettings>;
7
- getSetup(): Promise<import("@jumoo/translate").TranslateSetupInfo>;
6
+ getSettings(): Promise<import("@jumoo/translate").TranslateSettings | undefined>;
7
+ getSetup(): Promise<import("@jumoo/translate").TranslateSetupInfo | undefined>;
8
8
  /**
9
9
  * @description checks to see if there any updates avalible for this version
10
10
  * @returns information about avalible versions
11
11
  */
12
- getUpdate(): Promise<import("@jumoo/translate").TranslateUpdate>;
13
- saveLicence(licence: LicenceInfo): Promise<{
12
+ getUpdate(): Promise<import("@jumoo/translate").TranslateUpdate | undefined>;
13
+ saveLicence(licence: LicenceInfo): Promise<({
14
14
  data: unknown;
15
- request: Request;
16
- response: Response;
17
- }>;
18
- getProvidersContent(): Promise<{
19
- [key: string]: import("@jumoo/translate").JsonNode;
15
+ error: undefined;
16
+ } | {
17
+ data: undefined;
18
+ error: unknown;
19
+ }) & {
20
+ request?: Request;
21
+ response?: Response;
20
22
  }>;
23
+ getProvidersContent(): Promise<import("@jumoo/translate").JsonObject | undefined>;
21
24
  }
22
25
  export default TranslationManagerSettingsRepository;
@@ -0,0 +1,13 @@
1
+ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
2
+ import { CreateSetTypeModalData, CreateSetTypeModalResult } from './create-set-type.modal.token';
3
+ export declare class CreateSetTypeModal extends UmbModalBaseElement<CreateSetTypeModalData, CreateSetTypeModalResult> {
4
+ #private;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ static styles: import("lit").CSSResult;
7
+ }
8
+ export default CreateSetTypeModal;
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ 'jumoo-tm-create-set-type-modal': CreateSetTypeModal;
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
2
+ export interface CreateSetTypeModalData {
3
+ }
4
+ export interface CreateSetTypeModalResult {
5
+ }
6
+ export declare const JUMOO_TM_CREATE_SET_TYPE_MODAL_ALIAS = "jumoo-tm-create-set-type-modal";
7
+ export declare const JUMOO_TM_CREATE_SET_TYPE_MODAL: UmbModalToken<CreateSetTypeModalData, CreateSetTypeModalResult>;
@@ -1,9 +1,10 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
- import { SiteUpdateValues } from '@jumoo/translate';
2
+ import { SiteUpdateValues, TranslationEntityType } from '@jumoo/translate';
3
3
  export declare class TransaltionSetSitePickerElement extends UmbLitElement {
4
4
  #private;
5
5
  sites: SiteUpdateValues[];
6
6
  multiple: boolean;
7
+ entityType: TranslationEntityType;
7
8
  render(): import("lit-html").TemplateResult<1>;
8
9
  renderAdd(): import("lit-html").TemplateResult<1>;
9
10
  static styles: import("lit").CSSResult;
@@ -2,17 +2,23 @@ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
2
2
  import { CultureInfoView, SiteUpdateValues } from '@jumoo/translate';
3
3
  import { nothing } from 'lit';
4
4
  import { TranslationSitePickerData, TranslationSitePickerResult } from './set-site-picker.modal.token';
5
- import { UmbDocumentItemModel } from '@umbraco-cms/backoffice/document';
5
+ /** shared shape of the bits we read off a picked document / element item */
6
+ type PickedItem = {
7
+ variants: Array<{
8
+ name: string;
9
+ culture: string | null;
10
+ }>;
11
+ };
6
12
  export declare class TranslationSetSitePickerModal extends UmbModalBaseElement<TranslationSitePickerData, TranslationSitePickerResult> {
7
13
  #private;
8
14
  site: SiteUpdateValues;
9
15
  selection: string[];
10
16
  installedCultures: CultureInfoView[];
11
17
  nodeCultures: CultureInfoView[];
12
- selectedDocument?: UmbDocumentItemModel;
18
+ selectedDocument?: PickedItem;
13
19
  constructor();
14
20
  connectedCallback(): Promise<void>;
15
- GetSelectedDocument(): Promise<UmbDocumentItemModel | undefined>;
21
+ GetSelectedDocument(): Promise<PickedItem | undefined>;
16
22
  GetDocumentName(unique: string, culture?: string): Promise<string>;
17
23
  render(): import("lit-html").TemplateResult<1>;
18
24
  renderPicker(): import("lit-html").TemplateResult<1>;
@@ -1,6 +1,11 @@
1
- import { SiteUpdateValues } from '@jumoo/translate';
1
+ import { SiteUpdateValues, TranslationEntityType } from '@jumoo/translate';
2
2
  import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
3
3
  export interface TranslationSitePickerData {
4
+ /**
5
+ * Which store to pick from - documents (content tree) or the library
6
+ * element tree. Defaults to documents when unset.
7
+ */
8
+ entityType?: TranslationEntityType;
4
9
  }
5
10
  export interface TranslationSitePickerResult {
6
11
  site?: SiteUpdateValues;
@@ -2,7 +2,7 @@ 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
4
  import { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
5
- import { TranslationSet, TranslationSetNotifications } from '@jumoo/translate';
5
+ import { TranslationEntityType, TranslationSet, TranslationSetNotifications } from '@jumoo/translate';
6
6
  export declare class TranslationSetWorkspaceContext extends UmbControllerBase implements UmbWorkspaceContext {
7
7
  #private;
8
8
  readonly workspaceAlias: string;
@@ -13,6 +13,7 @@ export declare class TranslationSetWorkspaceContext extends UmbControllerBase im
13
13
  getEntityType(): string;
14
14
  constructor(host: UmbControllerHost);
15
15
  load(unique: string): Promise<TranslationSet | undefined>;
16
+ loadNew(entityType?: TranslationEntityType): Promise<TranslationSet | undefined>;
16
17
  getUnqiue(): string | undefined;
17
18
  getSetKey(): Promise<string | undefined>;
18
19
  getNotifiySettings(unique: string): Promise<TranslationSetNotifications | undefined>;
@@ -9,9 +9,9 @@ export declare class TranslationSettingsWorkspaceContext extends UmbControllerBa
9
9
  getEntityType(): string;
10
10
  constructor(host: UmbControllerHost);
11
11
  readonly settings: import("rxjs").Observable<TranslateSettings | undefined>;
12
- getSettings(): Promise<TranslateSettings>;
13
- getSetup(): Promise<import("@jumoo/translate").TranslateSetupInfo>;
14
- getUpdate(): Promise<import("@jumoo/translate").TranslateUpdate>;
12
+ getSettings(): Promise<TranslateSettings | undefined>;
13
+ getSetup(): Promise<import("@jumoo/translate").TranslateSetupInfo | undefined>;
14
+ getUpdate(): Promise<import("@jumoo/translate").TranslateUpdate | undefined>;
15
15
  updateLicence(key: string, domains: string): Promise<void>;
16
16
  saveLicence(licence: LicenceInfo): Promise<void>;
17
17
  }
@@ -0,0 +1,14 @@
1
+ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
2
+ import { UmbEntityActionArgs, UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
3
+ /**
4
+ * "Translate in place" entity action (issue #95).
5
+ *
6
+ * Unlike {@link TranslationCreateAction} this is deliberately NOT gated by the
7
+ * "content is in a translation set" condition - it is available on any content
8
+ * item so an editor can translate a duplicated/copied page that has no set.
9
+ */
10
+ export declare class TranslationInPlaceAction extends UmbEntityActionBase<never> {
11
+ constructor(host: UmbControllerHost, args: UmbEntityActionArgs<never>);
12
+ execute(): Promise<void>;
13
+ }
14
+ export default TranslationInPlaceAction;
@@ -0,0 +1,27 @@
1
+ import { ProcessStepElement, ProcessStepElementBase } from '@jumoo/processing';
2
+ import { TranslationProviderInfo } from '@jumoo/translate';
3
+ interface LanguageOption {
4
+ unique: string;
5
+ name: string;
6
+ }
7
+ /**
8
+ * Config step for the zero-config "translate in place" flow (issue #95).
9
+ *
10
+ * There is no translation set here - the editor picks the language the content is
11
+ * written in today (source), one or more languages to translate it into (targets)
12
+ * and a connector. Everything is pushed onto the pipeline options as
13
+ * `inPlace: true`, `sourceCulture` and `cultures`.
14
+ */
15
+ export declare class TranslationInPlaceConfigStepElement extends ProcessStepElementBase implements ProcessStepElement {
16
+ #private;
17
+ _languages: LanguageOption[];
18
+ _connectors?: TranslationProviderInfo[];
19
+ _sourceCulture?: string;
20
+ _targetCultures: string[];
21
+ _providerKey?: string;
22
+ constructor();
23
+ connectedCallback(): Promise<void>;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ static styles: import("lit").CSSResult[];
26
+ }
27
+ export default TranslationInPlaceConfigStepElement;
@@ -0,0 +1,17 @@
1
+ import { ProcessStepElement, ProcessStepElementBase } from '@jumoo/processing';
2
+ /**
3
+ * Results step for the "translate in place" flow (issue #95).
4
+ *
5
+ * A distinct custom element (tag `jumoo-translation-inplace-results`) is required
6
+ * because the pipeline renders the results action by tag name. It shows the
7
+ * created job(s) with a link to review/approve - in-place content is written back
8
+ * and published when the job is approved, so this intentionally does NOT claim the
9
+ * content is already published.
10
+ */
11
+ export declare class TranslationInPlaceJobResultStep extends ProcessStepElementBase implements ProcessStepElement {
12
+ #private;
13
+ connectedCallback(): void;
14
+ render(): import("lit-html").TemplateResult<1>;
15
+ static styles: import("lit").CSSResult[];
16
+ }
17
+ export default TranslationInPlaceJobResultStep;
@@ -0,0 +1,2 @@
1
+ import { ManifestProcessStep } from '@jumoo/processing';
2
+ export declare const manifests: ManifestProcessStep[];
@@ -6,8 +6,8 @@ export declare class TranslationCreationContext extends UmbControllerBase {
6
6
  constructor(host: UmbControllerHost);
7
7
  getSets(unique: string, entityType: string, simple: boolean): Promise<import("@jumoo/translate").TranslationSet[] | undefined>;
8
8
  getSetsForContent(unique: string): Promise<import("@jumoo/translate").TranslationSet[] | undefined>;
9
- getConnectors(): Promise<import("@jumoo/translate").TranslationProviderInfo[]>;
10
- getNode(unique: string): Promise<import("@jumoo/translate").TranslationNode>;
9
+ getConnectors(): Promise<import("@jumoo/translate").TranslationProviderInfo[] | undefined>;
10
+ getNode(unique: string): Promise<import("@jumoo/translate").TranslationNode | undefined>;
11
11
  getSet(unique: string): Promise<import("@jumoo/translate").TranslationSet | undefined>;
12
12
  getSetById(id: number): Promise<import("@jumoo/translate").TranslationSet | undefined>;
13
13
  }
package/package.json CHANGED
@@ -1,55 +1,46 @@
1
- {
2
- "name": "@jumoo/translate",
3
- "licence": "Custom",
4
- "version": "17.9.3-prerelease.16",
5
- "description": "Jumoo Translation Client",
6
- "type": "module",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/Jumoo/Jumoo.TranslationManager.git",
10
- "directory": "Jumoo.TranslationManager.Client/translation-client"
11
- },
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "exports": {
16
- ".": "./dist/index.js",
17
- "./api": "./dist/api/index.js"
18
- },
19
- "files": [
20
- "./dist/**/*"
21
- ],
22
- "author": {
23
- "name": "Jumoo",
24
- "email": "info@jumoo.co.uk",
25
- "url": "https://jumoo.co.uk"
26
- },
27
- "scripts": {
28
- "client:build": "tsc --project ./tsconfig.dist.json",
29
- "client:pack": "npm pack --pack-destination ./pack",
30
- "client:publish": "npm publish -tag next",
31
- "client:make": "npm run client:build && npm run client:pack && npm run client:publish",
32
- "client:link": "npm link",
33
- "generate": "openapi-ts",
34
- "format:fix": "npm run format -- --write",
35
- "format": "prettier \"src/**/*.ts\" --check",
36
- "build": "tsc && vite build",
37
- "watch": "vite build --watch",
38
- "make": "npm run build && npm run client:make"
39
- },
40
- "devDependencies": {
41
- "@hey-api/openapi-ts": "^0.99.0",
42
- "@jumoo/processing": "^17.3.1",
43
- "@rollup/plugin-node-resolve": "^16.0.3",
44
- "@umbraco-cms/backoffice": "^17.3.0",
45
- "lit": "^3.3.2",
46
- "prettier": "^3.8.3",
47
- "rm-rs": "^0.2.3",
48
- "typescript": "^5.8.3",
49
- "vite": "^8.0.9",
50
- "vite-plugin-checker": "^0.14.5",
51
- "vite-plugin-dts": "^5.0.3",
52
- "vite-plugin-static-copy": "^4.1.0",
53
- "vite-tsconfig-paths": "^6.1.1"
54
- }
55
- }
1
+ {
2
+ "name": "@jumoo/translate",
3
+ "licence": "Custom",
4
+ "version": "18.3.1",
5
+ "description": "Jumoo Translation Client",
6
+ "type": "module",
7
+ "publishConfig": {
8
+ "access": "restricted"
9
+ },
10
+ "exports": {
11
+ ".": "./dist/index.js",
12
+ "./api": "./dist/api/index.js"
13
+ },
14
+ "files": [
15
+ "./dist/**/*"
16
+ ],
17
+ "author": {
18
+ "name": "Jumoo",
19
+ "email": "info@jumoo.co.uk",
20
+ "url": "https://jumoo.co.uk"
21
+ },
22
+ "scripts": {
23
+ "client:build": "tsc --project ./tsconfig.dist.json",
24
+ "client:pack": "npm pack --pack-destination ./pack",
25
+ "client:publish": "npm publish -tag next",
26
+ "client:make": "npm run client:build && npm run client:pack && npm run client:publish",
27
+ "client:link": "npm link",
28
+ "generate-client": "node scripts/generate-openapi.js https://localhost:44380/umbraco/openapi/translationmanager.json",
29
+ "format:fix": "npm run format -- --write",
30
+ "format": "prettier \"src/**/*.ts\" --check",
31
+ "build": "tsc && vite build",
32
+ "watch": "vite build --watch",
33
+ "make": "npm run build && npm run client:make"
34
+ },
35
+ "devDependencies": {
36
+ "@hey-api/openapi-ts": "^0.99.0",
37
+ "@jumoo/processing": "^18.0.0",
38
+ "@umbraco-cms/backoffice": "^18.0.0",
39
+ "chalk": "^5.6.2",
40
+ "cross-env": "^10.1.0",
41
+ "node-fetch": "^3.3.2",
42
+ "prettier": "^3.8.3",
43
+ "typescript": "^6.0.3",
44
+ "vite": "^8.1.3"
45
+ }
46
+ }
package/dist/hey-api.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { CreateClientConfig } from './api/client.gen';
2
- /**
3
- * Pre-configure the generated client by copying the Umbraco HTTP client's config.
4
- *
5
- * Called automatically by the generated client during initialization (via runtimeConfigPath).
6
- * Inherits baseUrl, credentials, auth, and headers from umbHttpClient — which is already
7
- * configured by the backoffice before extensions load.
8
- *
9
- * @see https://heyapi.dev/openapi-ts/clients/fetch#configuration
10
- */
11
- export declare const createClientConfig: CreateClientConfig;
@@ -1,8 +0,0 @@
1
- import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
2
- import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
- import { UmbUniqueTreeStore } from '@umbraco-cms/backoffice/tree';
4
- export declare class TranslationTreeStore extends UmbUniqueTreeStore {
5
- constructor(host: UmbControllerHost);
6
- }
7
- export declare const JUMOO_TM_TREE_STORE_CONTEXT: UmbContextToken<TranslationTreeStore, TranslationTreeStore>;
8
- export { TranslationTreeStore as api };