@jumoo/usync 17.5.3-prerelease.16 → 18.2.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.
- package/dist/api/client.gen.js +1 -1
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.js +1 -2
- package/dist/api/sdk.gen.d.ts +18 -31
- package/dist/api/sdk.gen.js +93 -152
- package/dist/api/types.gen.d.ts +113 -152
- package/dist/components/usync-action-box.js +15 -5
- package/dist/components/usync-progress-box.js +13 -5
- package/dist/components/usync-result-row.js +4 -0
- package/dist/components/usync-results-group-view.js +11 -3
- package/dist/components/usync-results-view.js +6 -13
- package/dist/constants.js +1 -1
- package/dist/dialogs/details-modal-element.d.ts +0 -15
- package/dist/dialogs/details-modal-element.js +19 -219
- package/dist/dialogs/details-modal-token.d.ts +1 -10
- package/dist/dialogs/error-modal-element.js +1 -0
- package/dist/dialogs/single-import-modal.element.js +2 -1
- package/dist/exports.d.ts +0 -1
- package/dist/exports.js +0 -1
- package/dist/lang/files/da-dk.d.ts +0 -37
- package/dist/lang/files/da-dk.js +0 -37
- package/dist/lang/files/de-de.d.ts +0 -37
- package/dist/lang/files/de-de.js +0 -37
- package/dist/lang/files/en-us.d.ts +1 -50
- package/dist/lang/files/en-us.js +1 -50
- package/dist/lang/files/es-es.d.ts +0 -37
- package/dist/lang/files/es-es.js +0 -37
- package/dist/lang/files/fr-fr.d.ts +0 -37
- package/dist/lang/files/fr-fr.js +0 -37
- package/dist/lang/files/nl-nl.d.ts +0 -37
- package/dist/lang/files/nl-nl.js +0 -37
- package/dist/manifests.js +0 -2
- package/dist/repository/SyncAction.respositoy.d.ts +34 -22
- package/dist/repository/SyncAction.respositoy.js +0 -6
- package/dist/repository/sources/SyncAction.source.d.ts +33 -18
- package/dist/repository/sources/SyncAction.source.js +9 -14
- package/dist/repository/sources/SyncMigration.source.js +4 -4
- package/dist/repository/sources/SyncSettings.source.d.ts +16 -6
- package/dist/repository/sources/SyncSettings.source.js +5 -5
- package/dist/workspace/components/usync-action-button.d.ts +3 -2
- package/dist/workspace/components/usync-action-button.js +35 -27
- package/dist/workspace/views/default/default.element.js +2 -2
- package/dist/workspace/workspace.context.d.ts +10 -5
- package/package.json +10 -3
- package/dist/components/usync-content-preview.d.ts +0 -27
- package/dist/components/usync-content-preview.js +0 -532
- package/dist/components/usync-content-type-preview.d.ts +0 -25
- package/dist/components/usync-content-type-preview.js +0 -530
- package/dist/components/usync-data-type-preview.d.ts +0 -21
- package/dist/components/usync-data-type-preview.js +0 -295
- package/dist/preview/index.d.ts +0 -1
- package/dist/preview/index.js +0 -1
- package/dist/preview/manifest.d.ts +0 -2
- package/dist/preview/manifest.js +0 -22
- package/dist/preview/types.d.ts +0 -72
- package/dist/preview/types.js +0 -2
- package/dist/utils/preview/content-type-diff.d.ts +0 -18
- package/dist/utils/preview/content-type-diff.js +0 -72
- package/dist/utils/preview/content-type-layout.d.ts +0 -39
- package/dist/utils/preview/content-type-layout.js +0 -100
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _uSyncMigrationDataSource_host;
|
|
13
|
-
import {
|
|
13
|
+
import { getCheckLegacy, postCopyLegacy, postIgnoreLegacy, } from '@jumoo/uSync';
|
|
14
14
|
import { tryExecute } from '@umbraco-cms/backoffice/resources';
|
|
15
15
|
export class uSyncMigrationDataSource {
|
|
16
16
|
constructor(host) {
|
|
@@ -18,13 +18,13 @@ export class uSyncMigrationDataSource {
|
|
|
18
18
|
__classPrivateFieldSet(this, _uSyncMigrationDataSource_host, host, "f");
|
|
19
19
|
}
|
|
20
20
|
async checkLegacy() {
|
|
21
|
-
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"),
|
|
21
|
+
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"), getCheckLegacy());
|
|
22
22
|
}
|
|
23
23
|
async ignoreLegacy() {
|
|
24
|
-
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"),
|
|
24
|
+
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"), postIgnoreLegacy());
|
|
25
25
|
}
|
|
26
26
|
async copyLegacy() {
|
|
27
|
-
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"),
|
|
27
|
+
return await tryExecute(__classPrivateFieldGet(this, _uSyncMigrationDataSource_host, "f"), postCopyLegacy());
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
_uSyncMigrationDataSource_host = new WeakMap();
|
|
@@ -10,14 +10,24 @@ export declare class USyncSettingsDataSource implements SyncSettingsDataSource {
|
|
|
10
10
|
constructor(host: UmbControllerHost);
|
|
11
11
|
getSettings(): Promise<UmbDataSourceResponse<USyncSettings>>;
|
|
12
12
|
getHandlerSettings(setName: string): Promise<UmbDataSourceResponse<USyncHandlerSetSettings>>;
|
|
13
|
-
getAddons(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
13
|
+
getAddons(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
|
|
14
14
|
data: import("@jumoo/uSync").USyncAddonInfo;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
error: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
data: undefined;
|
|
18
|
+
error: unknown;
|
|
19
|
+
}) & {
|
|
20
|
+
request?: Request;
|
|
21
|
+
response?: Response;
|
|
17
22
|
}>>;
|
|
18
|
-
getSets(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
23
|
+
getSets(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
|
|
19
24
|
data: import("@jumoo/uSync").SyncSelectableSet[];
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
error: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
data: undefined;
|
|
28
|
+
error: unknown;
|
|
29
|
+
}) & {
|
|
30
|
+
request?: Request;
|
|
31
|
+
response?: Response;
|
|
22
32
|
}>>;
|
|
23
33
|
}
|
|
@@ -11,23 +11,23 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _USyncSettingsDataSource_host;
|
|
13
13
|
import { tryExecute } from '@umbraco-cms/backoffice/resources';
|
|
14
|
-
import {
|
|
14
|
+
import { getAddOns, getHandlerSettings, getSets, getSettings, } from '@jumoo/uSync';
|
|
15
15
|
export class USyncSettingsDataSource {
|
|
16
16
|
constructor(host) {
|
|
17
17
|
_USyncSettingsDataSource_host.set(this, void 0);
|
|
18
18
|
__classPrivateFieldSet(this, _USyncSettingsDataSource_host, host, "f");
|
|
19
19
|
}
|
|
20
20
|
async getSettings() {
|
|
21
|
-
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"),
|
|
21
|
+
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"), getSettings());
|
|
22
22
|
}
|
|
23
23
|
async getHandlerSettings(setName) {
|
|
24
|
-
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"),
|
|
24
|
+
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"), getHandlerSettings({ query: { id: setName } }));
|
|
25
25
|
}
|
|
26
26
|
async getAddons() {
|
|
27
|
-
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"),
|
|
27
|
+
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"), getAddOns());
|
|
28
28
|
}
|
|
29
29
|
async getSets() {
|
|
30
|
-
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"),
|
|
30
|
+
return await tryExecute(__classPrivateFieldGet(this, _USyncSettingsDataSource_host, "f"), getSets());
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
_USyncSettingsDataSource_host = new WeakMap();
|
|
@@ -8,8 +8,9 @@ export declare class SyncActionButtonElement extends UmbLitElement {
|
|
|
8
8
|
state?: UUIButtonState;
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
_popoverOpen: boolean;
|
|
11
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
|
|
11
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
12
|
+
renderSingleAction(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
renderMultipleActions(parent?: SyncActionButton): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
13
14
|
static styles: import("lit").CSSResult;
|
|
14
15
|
}
|
|
15
16
|
declare global {
|
|
@@ -21,22 +21,21 @@ let SyncActionButtonElement = class SyncActionButtonElement extends UmbLitElemen
|
|
|
21
21
|
this._popoverOpen = false;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
`;
|
|
24
|
+
return (this.button?.children?.length ?? 0) > 0
|
|
25
|
+
? this.renderMultipleActions(this.button)
|
|
26
|
+
: this.renderSingleAction();
|
|
27
|
+
}
|
|
28
|
+
renderSingleAction() {
|
|
29
|
+
return html ` <uui-button
|
|
30
|
+
class="action-button"
|
|
31
|
+
.disabled=${this.disabled}
|
|
32
|
+
label=${this.localize.termOrDefault(`uSync_${this.button?.label}`, this.button?.label ?? '')}
|
|
33
|
+
color=${this.button?.color}
|
|
34
|
+
look=${this.button?.look}
|
|
35
|
+
state=${ifDefined(this.state)}
|
|
36
|
+
@click=${() => __classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onClick).call(this, this.button)}></uui-button>`;
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
renderMultipleActions(parent) {
|
|
40
39
|
if (!this.button?.children)
|
|
41
40
|
return nothing;
|
|
42
41
|
const buttons = this.button?.children.map((item) => {
|
|
@@ -49,21 +48,30 @@ let SyncActionButtonElement = class SyncActionButtonElement extends UmbLitElemen
|
|
|
49
48
|
return nothing;
|
|
50
49
|
const popoverId = `popover_${parent?.key}`;
|
|
51
50
|
return html `
|
|
52
|
-
<uui-button
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
<uui-button-group class="action-button">
|
|
52
|
+
<uui-button
|
|
53
|
+
.disabled=${this.disabled}
|
|
54
|
+
.label=${this.button.label}
|
|
55
|
+
color=${parent?.color}
|
|
56
|
+
look=${parent?.look}
|
|
57
|
+
@click=${() => __classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onClick).call(this, this.button)}>
|
|
58
|
+
${this.localize.termOrDefault(`uSync_${this.button?.label}`, this.button?.label ?? '')}
|
|
59
|
+
</uui-button>
|
|
60
|
+
<uui-button
|
|
61
|
+
.disabled=${this.disabled}
|
|
62
|
+
popovertarget=${popoverId}
|
|
63
|
+
.label=${this.button.label}
|
|
64
|
+
color=${parent?.color}
|
|
65
|
+
look=${parent?.look}
|
|
66
|
+
compact>
|
|
67
|
+
<uui-symbol-expand
|
|
68
|
+
class="expand-symbol"
|
|
69
|
+
.open=${this._popoverOpen}></uui-symbol-expand>
|
|
70
|
+
</uui-button>
|
|
71
|
+
</uui-button-group>
|
|
63
72
|
|
|
64
73
|
<uui-popover-container
|
|
65
74
|
id=${popoverId}
|
|
66
|
-
margin="6"
|
|
67
75
|
placement="bottom-end"
|
|
68
76
|
@toggle=${__classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onPopoverToggle)}>
|
|
69
77
|
<umb-popover-layout>
|
|
@@ -323,9 +323,9 @@ uSyncDefaultViewElement.styles = [
|
|
|
323
323
|
|
|
324
324
|
.action-buttons-box {
|
|
325
325
|
display: grid;
|
|
326
|
-
grid-template-columns: repeat(auto-fit, minmax(
|
|
326
|
+
grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
|
|
327
327
|
position: relative;
|
|
328
|
-
gap: var(--uui-size-space-
|
|
328
|
+
gap: var(--uui-size-space-4);
|
|
329
329
|
flex-wrap: wrap;
|
|
330
330
|
align-content: stretch;
|
|
331
331
|
z-index: 1;
|
|
@@ -33,8 +33,8 @@ export declare class uSyncWorkspaceContext extends UmbControllerBase implements
|
|
|
33
33
|
* Get the current uSync settings
|
|
34
34
|
*/
|
|
35
35
|
getSettings(): Promise<USyncSettings | undefined>;
|
|
36
|
-
getAddons(): Promise<import("@jumoo/uSync").USyncAddonInfo>;
|
|
37
|
-
getSyncFileInfo(): Promise<SyncFileVersionCheckResult>;
|
|
36
|
+
getAddons(): Promise<import("@jumoo/uSync").USyncAddonInfo | undefined>;
|
|
37
|
+
getSyncFileInfo(): Promise<SyncFileVersionCheckResult | undefined>;
|
|
38
38
|
/**
|
|
39
39
|
* Check to see if there is a legacy uSync folder on disk.
|
|
40
40
|
*/
|
|
@@ -64,10 +64,15 @@ export declare class uSyncWorkspaceContext extends UmbControllerBase implements
|
|
|
64
64
|
dismissBackgroundRun(): void;
|
|
65
65
|
uploadFile(): Promise<boolean | undefined>;
|
|
66
66
|
downloadFile(): Promise<void>;
|
|
67
|
-
importSingle(item: USyncActionView): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
67
|
+
importSingle(item: USyncActionView): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
|
|
68
68
|
data: USyncActionView;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
error: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
data: undefined;
|
|
72
|
+
error: unknown;
|
|
73
|
+
}) & {
|
|
74
|
+
request?: Request;
|
|
75
|
+
response?: Response;
|
|
71
76
|
}> | undefined>;
|
|
72
77
|
}
|
|
73
78
|
export default uSyncWorkspaceContext;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"homepage": "https://jumoo.co.uk/uSync",
|
|
9
9
|
"license": "MPL-2.0",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "
|
|
11
|
+
"version": "18.2.1",
|
|
12
12
|
"main": "./dist/usync.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"module": "./dist/usync.js",
|
|
@@ -39,13 +39,17 @@
|
|
|
39
39
|
"email": "info@jumoo.co.uk",
|
|
40
40
|
"url": "https://jumoo.co.uk"
|
|
41
41
|
},
|
|
42
|
+
"site": {
|
|
43
|
+
"port": "16903",
|
|
44
|
+
"api": "uSync"
|
|
45
|
+
},
|
|
42
46
|
"scripts": {
|
|
43
47
|
"client:build": "tsc --project ./tsconfig.dist.json",
|
|
44
48
|
"client:pack": "npm pack --pack-destination ./pack",
|
|
45
49
|
"client:publish": "npm publish --tag next",
|
|
46
50
|
"client:make": "npm run client:build && npm run client:pack && npm run client:publish",
|
|
47
51
|
"client:link": "npm link",
|
|
48
|
-
"generate": "openapi
|
|
52
|
+
"generate-client": "node scripts/generate-openapi.js https://localhost:44304/umbraco/openapi/uSync.json",
|
|
49
53
|
"format:fix": "npm run format -- --write",
|
|
50
54
|
"format": "prettier \"src/**/*.ts\" --check",
|
|
51
55
|
"build": "tsc && vite build",
|
|
@@ -56,9 +60,12 @@
|
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
58
62
|
"@microsoft/signalr": "^10.0.11",
|
|
59
|
-
"@umbraco-cms/backoffice": "^
|
|
63
|
+
"@umbraco-cms/backoffice": "^18.0.0-rc3",
|
|
64
|
+
"chalk": "^6.0.0",
|
|
65
|
+
"cross-env": "^10.1.0",
|
|
60
66
|
"eslint": "^10.13.0",
|
|
61
67
|
"lit": "^3.3.3",
|
|
68
|
+
"node-fetch": "^3.3.2",
|
|
62
69
|
"prettier": "^3.9.10",
|
|
63
70
|
"typescript": "^5.9.3",
|
|
64
71
|
"vite": "^8.3.4",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
-
import { type PropertyValues, nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
3
|
-
import '@umbraco-cms/backoffice/components';
|
|
4
|
-
import type { SyncItemPreviewResponse } from '../api';
|
|
5
|
-
/**
|
|
6
|
-
* Shows the current and incoming versions of a content or media item side by
|
|
7
|
-
* side, laid out the way the backoffice editor shows them, with every value
|
|
8
|
-
* rendered by its real property editor. Values that change are highlighted.
|
|
9
|
-
*/
|
|
10
|
-
export declare class uSyncContentPreviewElement extends UmbLitElement {
|
|
11
|
-
#private;
|
|
12
|
-
preview?: SyncItemPreviewResponse;
|
|
13
|
-
/** the tab shown on both sides (by name) */
|
|
14
|
-
private _activeTab?;
|
|
15
|
-
/** the culture shown on both sides (undefined for invariant items) */
|
|
16
|
-
private _culture?;
|
|
17
|
-
private _onlyChanges;
|
|
18
|
-
protected willUpdate(changed: PropertyValues<this>): void;
|
|
19
|
-
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
20
|
-
static styles: import("lit").CSSResult;
|
|
21
|
-
}
|
|
22
|
-
export default uSyncContentPreviewElement;
|
|
23
|
-
declare global {
|
|
24
|
-
interface HTMLElementTagNameMap {
|
|
25
|
-
'usync-content-preview': uSyncContentPreviewElement;
|
|
26
|
-
}
|
|
27
|
-
}
|