@jumoo/usync-expansions 17.6.0 → 17.6.1-prerelease.41
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/client.gen.js +104 -123
- package/dist/api/client/index.d.ts +2 -0
- package/dist/api/client/types.gen.d.ts +6 -3
- package/dist/api/client/utils.gen.d.ts +8 -4
- package/dist/api/client/utils.gen.js +3 -3
- package/dist/api/client.gen.d.ts +2 -2
- package/dist/api/client.gen.js +1 -2
- package/dist/api/core/auth.gen.d.ts +7 -0
- package/dist/api/core/params.gen.d.ts +2 -2
- package/dist/api/core/params.gen.js +23 -14
- package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.js +3 -4
- package/dist/api/core/types.gen.d.ts +5 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/sdk.gen.d.ts +18 -17
- package/dist/api/sdk.gen.js +7 -0
- package/dist/api/types.gen.d.ts +40 -0
- package/dist/background/components/pending-list.element.js +10 -10
- package/dist/background/components/pipelines-table.element.js +16 -16
- package/dist/background/components/process-list.element.js +6 -6
- package/dist/background/components/queue-table.element.js +11 -11
- package/dist/background/workspace/background-workspace-element.js +19 -19
- package/dist/components/report-summary-view.js +90 -90
- package/dist/components/usync-property-layout.js +93 -93
- package/dist/index.js +9 -1
- package/dist/lang/en.d.ts +1 -0
- package/dist/lang/en.js +1 -0
- package/dist/licence/components/licence-notice.js +7 -7
- package/dist/licence/components/licence-status.view.js +13 -13
- package/dist/licence/components/styles.js +39 -39
- package/dist/licence/lang/en.js +1 -1
- package/dist/licence/licence.element.js +124 -124
- package/dist/restore/components/restore-point-table.element.js +21 -21
- package/dist/restore/lang/en.js +11 -11
- package/dist/restore/restore.repository.d.ts +5 -0
- package/dist/restore/restore.repository.js +7 -0
- package/dist/restore/steps/restore-create-complete.js +9 -9
- package/dist/restore/steps/restore-create-element.js +31 -31
- package/dist/restore/steps/restore-report-config-element.js +44 -44
- package/dist/restore/steps/restore-report-element.d.ts +1 -0
- package/dist/restore/steps/restore-report-element.js +29 -1
- package/dist/restore/workspace/restore.workspace-view.element.js +42 -42
- package/dist/restore/workspace/restore.workspace.element.js +25 -25
- package/package.json +55 -54
- package/dist/hey-api.d.ts +0 -11
- package/dist/hey-api.js +0 -14
|
@@ -4,10 +4,31 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _uSyncRestoreReportElement_repository, _uSyncRestoreReportElement_previewSource;
|
|
7
13
|
import { ProcessStepElementBase } from '@jumoo/processing';
|
|
8
14
|
import { uSyncRestore } from '@jumoo/usync-expansions';
|
|
9
15
|
import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
|
|
16
|
+
import { SyncRestoreRepository } from '../restore.repository';
|
|
10
17
|
let uSyncRestoreReportElement = class uSyncRestoreReportElement extends ProcessStepElementBase {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
_uSyncRestoreReportElement_repository.set(this, new SyncRestoreRepository(this));
|
|
21
|
+
/**
|
|
22
|
+
* previews come from the restore point being reported on, not this site's uSync folders.
|
|
23
|
+
*/
|
|
24
|
+
_uSyncRestoreReportElement_previewSource.set(this, async (item) => {
|
|
25
|
+
if (!this.pipelineId)
|
|
26
|
+
return undefined;
|
|
27
|
+
const data = await __classPrivateFieldGet(this, _uSyncRestoreReportElement_repository, "f").getPreview(this.pipelineId, item.handler, item.key);
|
|
28
|
+
// the same response as uSync's own preview endpoint, generated in our api.
|
|
29
|
+
return data;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
11
32
|
connectedCallback() {
|
|
12
33
|
super.connectedCallback();
|
|
13
34
|
const changes = this.results?.results['changes'] ?? 0;
|
|
@@ -29,9 +50,16 @@ let uSyncRestoreReportElement = class uSyncRestoreReportElement extends ProcessS
|
|
|
29
50
|
}
|
|
30
51
|
render() {
|
|
31
52
|
const actions = this.results?.results['actions'];
|
|
32
|
-
return html `<usync-results
|
|
53
|
+
return html `<usync-results
|
|
54
|
+
.results=${actions}
|
|
55
|
+
.previewSource=${__classPrivateFieldGet(this, _uSyncRestoreReportElement_previewSource, "f")}
|
|
56
|
+
.previewLabels=${{
|
|
57
|
+
incoming: this.localize.termOrDefault('uSyncReport_previewIncoming', 'Incoming (restore point)'),
|
|
58
|
+
}}></usync-results>`;
|
|
33
59
|
}
|
|
34
60
|
};
|
|
61
|
+
_uSyncRestoreReportElement_repository = new WeakMap();
|
|
62
|
+
_uSyncRestoreReportElement_previewSource = new WeakMap();
|
|
35
63
|
uSyncRestoreReportElement = __decorate([
|
|
36
64
|
customElement(uSyncRestore.steps.restoreReportStep)
|
|
37
65
|
], uSyncRestoreReportElement);
|
|
@@ -46,47 +46,47 @@ let uSyncRestoreWorkspaceViewElement = class uSyncRestoreWorkspaceViewElement ex
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return html `
|
|
50
|
-
<umb-body-layout>
|
|
51
|
-
<usync-licence-notice></usync-licence-notice>
|
|
52
|
-
<div class="content">
|
|
53
|
-
<div>
|
|
54
|
-
<uui-button
|
|
55
|
-
color="positive"
|
|
56
|
-
look="outline"
|
|
57
|
-
label="Create"
|
|
58
|
-
@click=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onCreateRestorePoint)}
|
|
59
|
-
>${this.localize.term('uSyncRestore_create')}</uui-button
|
|
60
|
-
>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
${this.renderTable()}
|
|
64
|
-
</div>
|
|
65
|
-
</umb-body-layout>
|
|
49
|
+
return html `
|
|
50
|
+
<umb-body-layout>
|
|
51
|
+
<usync-licence-notice></usync-licence-notice>
|
|
52
|
+
<div class="content">
|
|
53
|
+
<div>
|
|
54
|
+
<uui-button
|
|
55
|
+
color="positive"
|
|
56
|
+
look="outline"
|
|
57
|
+
label="Create"
|
|
58
|
+
@click=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onCreateRestorePoint)}
|
|
59
|
+
>${this.localize.term('uSyncRestore_create')}</uui-button
|
|
60
|
+
>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
${this.renderTable()}
|
|
64
|
+
</div>
|
|
65
|
+
</umb-body-layout>
|
|
66
66
|
`;
|
|
67
67
|
}
|
|
68
68
|
renderTable() {
|
|
69
69
|
if (this.restorePoints?.length === 0)
|
|
70
70
|
return nothing;
|
|
71
|
-
return html `
|
|
72
|
-
<uui-box
|
|
73
|
-
.headline=${this.localize.term('uSyncRestore_restorePoints')}
|
|
74
|
-
style="--uui-box-default-padding: 0;">
|
|
75
|
-
<div slot="header-actions">
|
|
76
|
-
<uui-button
|
|
77
|
-
color="default"
|
|
78
|
-
look="secondary"
|
|
79
|
-
size="small"
|
|
80
|
-
label="scan"
|
|
81
|
-
@click=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onRestoreLatest)}
|
|
82
|
-
><uui-icon name="icon-paper-plane"></uui-icon> ${this.localize.term('uSyncRestore_restoreLatest')}</uui-button
|
|
83
|
-
>
|
|
84
|
-
</div>
|
|
85
|
-
<usync-restore-point-table
|
|
86
|
-
.restorePoints=${this.restorePoints}
|
|
87
|
-
@delete-restore-point=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onDelete)}
|
|
88
|
-
@restore-restore-point=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onRestore)}></usync-restore-point-table>
|
|
89
|
-
</uui-box>
|
|
71
|
+
return html `
|
|
72
|
+
<uui-box
|
|
73
|
+
.headline=${this.localize.term('uSyncRestore_restorePoints')}
|
|
74
|
+
style="--uui-box-default-padding: 0;">
|
|
75
|
+
<div slot="header-actions">
|
|
76
|
+
<uui-button
|
|
77
|
+
color="default"
|
|
78
|
+
look="secondary"
|
|
79
|
+
size="small"
|
|
80
|
+
label="scan"
|
|
81
|
+
@click=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onRestoreLatest)}
|
|
82
|
+
><uui-icon name="icon-paper-plane"></uui-icon> ${this.localize.term('uSyncRestore_restoreLatest')}</uui-button
|
|
83
|
+
>
|
|
84
|
+
</div>
|
|
85
|
+
<usync-restore-point-table
|
|
86
|
+
.restorePoints=${this.restorePoints}
|
|
87
|
+
@delete-restore-point=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onDelete)}
|
|
88
|
+
@restore-restore-point=${__classPrivateFieldGet(this, _uSyncRestoreWorkspaceViewElement_instances, "m", _uSyncRestoreWorkspaceViewElement_onRestore)}></usync-restore-point-table>
|
|
89
|
+
</uui-box>
|
|
90
90
|
`;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
@@ -178,12 +178,12 @@ _uSyncRestoreWorkspaceViewElement_onDelete = async function _uSyncRestoreWorkspa
|
|
|
178
178
|
// cancelled
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
uSyncRestoreWorkspaceViewElement.styles = css `
|
|
182
|
-
.content {
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: column;
|
|
185
|
-
gap: var(--uui-size-space-4);
|
|
186
|
-
}
|
|
181
|
+
uSyncRestoreWorkspaceViewElement.styles = css `
|
|
182
|
+
.content {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: var(--uui-size-space-4);
|
|
186
|
+
}
|
|
187
187
|
`;
|
|
188
188
|
__decorate([
|
|
189
189
|
state()
|
|
@@ -32,23 +32,23 @@ let uSyncReatoreWorkspaceElement = class uSyncReatoreWorkspaceElement extends Um
|
|
|
32
32
|
__classPrivateFieldSet(this, _uSyncReatoreWorkspaceElement_context, new SyncRestoreWorkspaceContext(this), "f");
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return html `
|
|
36
|
-
<umb-workspace-editor>
|
|
37
|
-
<div slot="header" class="header">
|
|
38
|
-
<h3>Restore points</h3>
|
|
39
|
-
<small>A place you can come back to.</small>
|
|
40
|
-
</div>
|
|
41
|
-
<div slot="action-menu" class="action-menu">
|
|
42
|
-
<uui-button
|
|
43
|
-
color="default"
|
|
44
|
-
look="outline"
|
|
45
|
-
size="small"
|
|
46
|
-
label="scan"
|
|
47
|
-
@click=${__classPrivateFieldGet(this, _uSyncReatoreWorkspaceElement_instances, "m", _uSyncReatoreWorkspaceElement_onScanRestorePoints)}
|
|
48
|
-
><uui-icon name="icon-axis-rotation"></uui-icon> ${this.localize.term('uSyncRestore_scan')}</uui-button
|
|
49
|
-
>
|
|
50
|
-
</div>
|
|
51
|
-
</umb-workspace-editor>
|
|
35
|
+
return html `
|
|
36
|
+
<umb-workspace-editor>
|
|
37
|
+
<div slot="header" class="header">
|
|
38
|
+
<h3>Restore points</h3>
|
|
39
|
+
<small>A place you can come back to.</small>
|
|
40
|
+
</div>
|
|
41
|
+
<div slot="action-menu" class="action-menu">
|
|
42
|
+
<uui-button
|
|
43
|
+
color="default"
|
|
44
|
+
look="outline"
|
|
45
|
+
size="small"
|
|
46
|
+
label="scan"
|
|
47
|
+
@click=${__classPrivateFieldGet(this, _uSyncReatoreWorkspaceElement_instances, "m", _uSyncReatoreWorkspaceElement_onScanRestorePoints)}
|
|
48
|
+
><uui-icon name="icon-axis-rotation"></uui-icon> ${this.localize.term('uSyncRestore_scan')}</uui-button
|
|
49
|
+
>
|
|
50
|
+
</div>
|
|
51
|
+
</umb-workspace-editor>
|
|
52
52
|
`;
|
|
53
53
|
}
|
|
54
54
|
};
|
|
@@ -75,14 +75,14 @@ _uSyncReatoreWorkspaceElement_onScanRestorePoints = async function _uSyncReatore
|
|
|
75
75
|
// console.log('cancel');
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
uSyncReatoreWorkspaceElement.styles = css `
|
|
79
|
-
.header h3 {
|
|
80
|
-
margin: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.action-menu {
|
|
84
|
-
margin-right: var(--uui-size-space-4);
|
|
85
|
-
}
|
|
78
|
+
uSyncReatoreWorkspaceElement.styles = css `
|
|
79
|
+
.header h3 {
|
|
80
|
+
margin: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.action-menu {
|
|
84
|
+
margin-right: var(--uui-size-space-4);
|
|
85
|
+
}
|
|
86
86
|
`;
|
|
87
87
|
uSyncReatoreWorkspaceElement = __decorate([
|
|
88
88
|
customElement('usync-restore-workspace-element')
|
package/package.json
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jumoo/usync-expansions",
|
|
3
|
-
"license": "Custom",
|
|
4
|
-
"version": "17.6.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"description": "uSync.Expansions.Assets",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"./
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"./dist
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"client:
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"@
|
|
42
|
-
"@jumoo/
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"vite
|
|
53
|
-
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jumoo/usync-expansions",
|
|
3
|
+
"license": "Custom",
|
|
4
|
+
"version": "17.6.1-prerelease.41",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "uSync.Expansions.Assets",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Jumoo/uSync.Complete.git"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./dist/index.js",
|
|
16
|
+
"./items": "./dist/items/index.js",
|
|
17
|
+
"./licence": "./dist/licence/index.js",
|
|
18
|
+
"./pipeline": "./dist/pipeline/index.js",
|
|
19
|
+
"./communications": "./dist/communications/index.js",
|
|
20
|
+
"./signalr": "./dist/signalr/index.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"./dist/**/*"
|
|
24
|
+
],
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "Jumoo Ltd",
|
|
27
|
+
"email": "info@jumoo.co.uk",
|
|
28
|
+
"url": "https://jumoo.co.uk"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"client:build": "tsc --project ./tsconfig.dist.json",
|
|
32
|
+
"client:pack": "npm pack --pack-destination ./pack",
|
|
33
|
+
"client:link": "npm link",
|
|
34
|
+
"generate": "rm-rs -r -f ./src/api && node scripts/generate-openapi.js https://localhost:44317/umbraco/swagger/uSyncComplete/swagger.json",
|
|
35
|
+
"format:fix": "npm run format -- --write",
|
|
36
|
+
"format": "prettier \"src/**/*.ts\" --check",
|
|
37
|
+
"build": "tsc && vite build",
|
|
38
|
+
"watch": "vite build --watch"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@hey-api/openapi-ts": "^0.99.0",
|
|
42
|
+
"@jumoo/processing": "https://registry.npmjs.org/@jumoo/processing/-/processing-17.5.2.tgz",
|
|
43
|
+
"@jumoo/usync": "^17.6.1-prerelease.21",
|
|
44
|
+
"@umbraco-cms/backoffice": "^17.6.2",
|
|
45
|
+
"chalk": "^6.0.0",
|
|
46
|
+
"cross-env": "^10.1.0",
|
|
47
|
+
"lit": "^3.3.2",
|
|
48
|
+
"node-fetch": "^3.3.2",
|
|
49
|
+
"prettier": "^3.8.2",
|
|
50
|
+
"rm-rs": "^0.2.3",
|
|
51
|
+
"typescript": "^6.0.2",
|
|
52
|
+
"vite": "^8.0.8",
|
|
53
|
+
"vite-plugin-dts": "^5.0.3"
|
|
54
|
+
}
|
|
55
|
+
}
|
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;
|
package/dist/hey-api.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { umbHttpClient } from '@umbraco-cms/backoffice/http-client';
|
|
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 const createClientConfig = (config) => ({
|
|
12
|
-
...config,
|
|
13
|
-
...umbHttpClient.getConfig(),
|
|
14
|
-
});
|