@jumoo/usync 17.5.2-prerelease.15 → 17.5.2
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/README.md +6 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/sdk.gen.d.ts +1 -2
- package/dist/api/sdk.gen.js +0 -7
- package/dist/api/types.gen.d.ts +0 -361
- package/dist/api/types.gen.js +0 -13
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/usync-results-view.js +5 -13
- package/dist/dialogs/details-modal-element.d.ts +1 -12
- package/dist/dialogs/details-modal-element.js +9 -139
- package/dist/dialogs/details-modal-token.d.ts +1 -10
- 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 +0 -37
- package/dist/lang/files/en-us.js +0 -37
- 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/repository/SyncAction.respositoy.d.ts +0 -8
- package/dist/repository/SyncAction.respositoy.js +0 -6
- package/dist/repository/sources/SyncAction.source.d.ts +0 -5
- package/dist/repository/sources/SyncAction.source.js +0 -5
- package/dist/signalr/signalr.context.js +73 -26
- package/package.json +1 -1
- package/dist/components/usync-content-preview.d.ts +0 -27
- package/dist/components/usync-content-preview.js +0 -540
- package/dist/components/usync-content-type-preview.d.ts +0 -25
- package/dist/components/usync-content-type-preview.js +0 -548
- package/dist/components/usync-data-type-preview.d.ts +0 -21
- package/dist/components/usync-data-type-preview.js +0 -293
- 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
|
@@ -24,43 +24,6 @@ declare const _default: {
|
|
|
24
24
|
showAll: string;
|
|
25
25
|
detailHeadline: string;
|
|
26
26
|
detailHeader: string;
|
|
27
|
-
detailPosition: string;
|
|
28
|
-
previewTab: string;
|
|
29
|
-
changesTab: string;
|
|
30
|
-
previewCurrent: string;
|
|
31
|
-
previewIncoming: string;
|
|
32
|
-
previewNotInSite: string;
|
|
33
|
-
previewDeleted: string;
|
|
34
|
-
previewFailed: string;
|
|
35
|
-
previewEditor: string;
|
|
36
|
-
previewEditorDesc: string;
|
|
37
|
-
previewConfiguration: string;
|
|
38
|
-
previewNoConfiguration: string;
|
|
39
|
-
previewPropertyEditor: string;
|
|
40
|
-
previewPropertyEditorUi: string;
|
|
41
|
-
previewDocumentType: string;
|
|
42
|
-
previewMediaType: string;
|
|
43
|
-
previewMemberType: string;
|
|
44
|
-
previewElementType: string;
|
|
45
|
-
previewAllowedAtRoot: string;
|
|
46
|
-
previewVariesByCulture: string;
|
|
47
|
-
previewVariesBySegment: string;
|
|
48
|
-
previewCompositions: string;
|
|
49
|
-
previewGenericTab: string;
|
|
50
|
-
previewNoProperties: string;
|
|
51
|
-
previewMissingDataType: string;
|
|
52
|
-
previewNewDataType: string;
|
|
53
|
-
previewNew: string;
|
|
54
|
-
previewParent: string;
|
|
55
|
-
previewRoot: string;
|
|
56
|
-
previewSortOrder: string;
|
|
57
|
-
previewTemplate: string;
|
|
58
|
-
previewPublished: string;
|
|
59
|
-
previewNotPublished: string;
|
|
60
|
-
previewTrashed: string;
|
|
61
|
-
previewCulture: string;
|
|
62
|
-
previewOnlyChanges: string;
|
|
63
|
-
previewNoValueChanges: string;
|
|
64
27
|
runningInBackground: string;
|
|
65
28
|
connectionLost: string;
|
|
66
29
|
importSingle: string;
|
package/dist/lang/files/nl-nl.js
CHANGED
|
@@ -24,43 +24,6 @@ export default {
|
|
|
24
24
|
showAll: 'Alle items weergeven',
|
|
25
25
|
detailHeadline: 'Gedetecteerde wijzigingen',
|
|
26
26
|
detailHeader: 'Wat er anders is',
|
|
27
|
-
detailPosition: '%0% van %1%',
|
|
28
|
-
previewTab: 'Visueel',
|
|
29
|
-
changesTab: 'Wijzigingen',
|
|
30
|
-
previewCurrent: 'Huidig (deze site)',
|
|
31
|
-
previewIncoming: 'Inkomend (uSync-bestanden)',
|
|
32
|
-
previewNotInSite: 'Dit item bestaat nog niet op de site',
|
|
33
|
-
previewDeleted: 'Dit item wordt door de import verwijderd of hernoemd',
|
|
34
|
-
previewFailed: 'Het inkomende item kon niet worden opgebouwd voor het voorbeeld',
|
|
35
|
-
previewEditor: 'Editor-voorbeeld',
|
|
36
|
-
previewEditorDesc: 'Zo ziet dit datatype eruit voor redacteuren',
|
|
37
|
-
previewConfiguration: 'Configuratie',
|
|
38
|
-
previewNoConfiguration: 'Geen configuratie',
|
|
39
|
-
previewPropertyEditor: 'Property editor',
|
|
40
|
-
previewPropertyEditorUi: 'Property editor UI',
|
|
41
|
-
previewDocumentType: 'Documenttype',
|
|
42
|
-
previewMediaType: 'Mediatype',
|
|
43
|
-
previewMemberType: 'Ledentype',
|
|
44
|
-
previewElementType: 'Elementtype',
|
|
45
|
-
previewAllowedAtRoot: 'Toegestaan in de root',
|
|
46
|
-
previewVariesByCulture: 'Varieert per cultuur',
|
|
47
|
-
previewVariesBySegment: 'Varieert per segment',
|
|
48
|
-
previewCompositions: 'Composities',
|
|
49
|
-
previewGenericTab: 'Algemeen',
|
|
50
|
-
previewNoProperties: 'Geen eigenschappen',
|
|
51
|
-
previewMissingDataType: 'het datatype voor deze eigenschap bestaat nog niet op de site',
|
|
52
|
-
previewNewDataType: 'nieuw datatype',
|
|
53
|
-
previewNew: 'nieuw',
|
|
54
|
-
previewParent: 'Bovenliggend',
|
|
55
|
-
previewRoot: '(root)',
|
|
56
|
-
previewSortOrder: 'Sorteervolgorde',
|
|
57
|
-
previewTemplate: 'Sjabloon',
|
|
58
|
-
previewPublished: 'Gepubliceerd',
|
|
59
|
-
previewNotPublished: 'Niet gepubliceerd',
|
|
60
|
-
previewTrashed: 'In de prullenbak',
|
|
61
|
-
previewCulture: 'Taal',
|
|
62
|
-
previewOnlyChanges: 'Alleen wijzigingen tonen',
|
|
63
|
-
previewNoValueChanges: 'Geen waarden veranderen',
|
|
64
27
|
runningInBackground: 'uSync voert dit proces op de achtergrond uit. Als u van deze pagina navigeert, blijft het doorlopen.',
|
|
65
28
|
connectionLost: 'De verbinding met de server is verbroken. Het proces blijft op de achtergrond draaien, maar u ziet hier geen updates.',
|
|
66
29
|
importSingle: 'Importeren',
|
|
@@ -98,12 +98,4 @@ export declare class uSyncActionRepository extends UmbControllerBase {
|
|
|
98
98
|
request: Request;
|
|
99
99
|
response: Response;
|
|
100
100
|
}>>;
|
|
101
|
-
/**
|
|
102
|
-
* gets the current and incoming versions of an item, when its handler supports previews.
|
|
103
|
-
*/
|
|
104
|
-
getPreview(handler: string, key: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
105
|
-
data: import("@jumoo/uSync").SyncItemPreviewResponse;
|
|
106
|
-
request: Request;
|
|
107
|
-
response: Response;
|
|
108
|
-
}>>;
|
|
109
101
|
}
|
|
@@ -121,11 +121,5 @@ export class uSyncActionRepository extends UmbControllerBase {
|
|
|
121
121
|
async getSyncFileInfo() {
|
|
122
122
|
return await __classPrivateFieldGet(this, _uSyncActionRepository_actionDataSource, "f").getSyncFileInfo();
|
|
123
123
|
}
|
|
124
|
-
/**
|
|
125
|
-
* gets the current and incoming versions of an item, when its handler supports previews.
|
|
126
|
-
*/
|
|
127
|
-
async getPreview(handler, key) {
|
|
128
|
-
return await __classPrivateFieldGet(this, _uSyncActionRepository_actionDataSource, "f").getPreview(handler, key);
|
|
129
|
-
}
|
|
130
124
|
}
|
|
131
125
|
_uSyncActionRepository_actionDataSource = new WeakMap(), _uSyncActionRepository_settingsDataSource = new WeakMap(), _uSyncActionRepository_migrartionDataSource = new WeakMap();
|
|
@@ -34,9 +34,4 @@ export declare class uSyncActionDataSource implements SyncActionDataSource {
|
|
|
34
34
|
request: Request;
|
|
35
35
|
response: Response;
|
|
36
36
|
}>>;
|
|
37
|
-
getPreview(handler: string, key: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
38
|
-
data: import("@jumoo/uSync").SyncItemPreviewResponse;
|
|
39
|
-
request: Request;
|
|
40
|
-
response: Response;
|
|
41
|
-
}>>;
|
|
42
37
|
}
|
|
@@ -53,10 +53,5 @@ export class uSyncActionDataSource {
|
|
|
53
53
|
body: view,
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
|
-
async getPreview(handler, key) {
|
|
57
|
-
return await tryExecute(__classPrivateFieldGet(this, _uSyncActionDataSource_host, "f"), ActionsService.getPreview({
|
|
58
|
-
query: { handler, key },
|
|
59
|
-
}), { disableNotifications: true });
|
|
60
|
-
}
|
|
61
56
|
}
|
|
62
57
|
_uSyncActionDataSource_host = new WeakMap();
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
1
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
2
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
4
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
5
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
6
|
};
|
|
12
|
-
var
|
|
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 _uSyncSignalRContext_instances, _uSyncSignalRContext_connection, _uSyncSignalRContext_auth, _uSyncSignalRContext_server, _uSyncSignalRContext_connect, _uSyncSignalRContext_clientId, _uSyncSignalRContext_connected, _uSyncSignalRContext_update, _uSyncSignalRContext_add, _uSyncSignalRContext_complete, _uSyncSignalRContext_setupConnection;
|
|
13
13
|
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
14
14
|
import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api';
|
|
15
15
|
import { USYNC_SIGNALR_CONTEXT_TOKEN, } from '@jumoo/uSync';
|
|
16
16
|
import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';
|
|
17
|
+
import { UMB_SERVER_CONTEXT } from '@umbraco-cms/backoffice/server';
|
|
17
18
|
import * as signalR from '@jumoo/uSync/external/signalr';
|
|
18
19
|
import { uSyncSignalRReconnectPolicy } from './signalr-reconnect-policy.js';
|
|
19
20
|
export class uSyncSignalRContext extends UmbControllerBase {
|
|
@@ -21,6 +22,9 @@ export class uSyncSignalRContext extends UmbControllerBase {
|
|
|
21
22
|
super(host);
|
|
22
23
|
_uSyncSignalRContext_instances.add(this);
|
|
23
24
|
_uSyncSignalRContext_connection.set(this, void 0);
|
|
25
|
+
_uSyncSignalRContext_auth.set(this, void 0);
|
|
26
|
+
_uSyncSignalRContext_server.set(this, void 0);
|
|
27
|
+
_uSyncSignalRContext_clientId.set(this, null);
|
|
24
28
|
_uSyncSignalRContext_connected.set(this, new UmbObjectState(false));
|
|
25
29
|
this.connected = __classPrivateFieldGet(this, _uSyncSignalRContext_connected, "f").asObservable();
|
|
26
30
|
_uSyncSignalRContext_update.set(this, new UmbObjectState(undefined));
|
|
@@ -31,12 +35,12 @@ export class uSyncSignalRContext extends UmbControllerBase {
|
|
|
31
35
|
this.complete = __classPrivateFieldGet(this, _uSyncSignalRContext_complete, "f").asObservable();
|
|
32
36
|
this.provideContext(USYNC_SIGNALR_CONTEXT_TOKEN, this);
|
|
33
37
|
this.consumeContext(UMB_AUTH_CONTEXT, (auth) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_instances, "m",
|
|
38
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_auth, auth, "f");
|
|
39
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_instances, "m", _uSyncSignalRContext_connect).call(this);
|
|
40
|
+
});
|
|
41
|
+
this.consumeContext(UMB_SERVER_CONTEXT, (server) => {
|
|
42
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_server, server, "f");
|
|
43
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_instances, "m", _uSyncSignalRContext_connect).call(this);
|
|
40
44
|
});
|
|
41
45
|
}
|
|
42
46
|
hostConnected() {
|
|
@@ -49,7 +53,7 @@ export class uSyncSignalRContext extends UmbControllerBase {
|
|
|
49
53
|
});
|
|
50
54
|
}
|
|
51
55
|
getClientId() {
|
|
52
|
-
return __classPrivateFieldGet(this,
|
|
56
|
+
return __classPrivateFieldGet(this, _uSyncSignalRContext_clientId, "f");
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
59
|
* Synchronous read of the current connection state - used by callers
|
|
@@ -75,11 +79,34 @@ export class uSyncSignalRContext extends UmbControllerBase {
|
|
|
75
79
|
__classPrivateFieldGet(this, _uSyncSignalRContext_update, "f").setValue({ message, count: 0, total: 1 });
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
|
-
_uSyncSignalRContext_connection = new WeakMap(), _uSyncSignalRContext_connected = new WeakMap(), _uSyncSignalRContext_update = new WeakMap(), _uSyncSignalRContext_add = new WeakMap(), _uSyncSignalRContext_complete = new WeakMap(), _uSyncSignalRContext_instances = new WeakSet(),
|
|
82
|
+
_uSyncSignalRContext_connection = new WeakMap(), _uSyncSignalRContext_auth = new WeakMap(), _uSyncSignalRContext_server = new WeakMap(), _uSyncSignalRContext_clientId = new WeakMap(), _uSyncSignalRContext_connected = new WeakMap(), _uSyncSignalRContext_update = new WeakMap(), _uSyncSignalRContext_add = new WeakMap(), _uSyncSignalRContext_complete = new WeakMap(), _uSyncSignalRContext_instances = new WeakSet(), _uSyncSignalRContext_connect = function _uSyncSignalRContext_connect() {
|
|
83
|
+
// either context being re-provided replaces the connection, so
|
|
84
|
+
// stop the old one rather than leave it running alongside.
|
|
85
|
+
if (__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f")) {
|
|
86
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f").stop();
|
|
87
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_connection, undefined, "f");
|
|
88
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_clientId, null, "f");
|
|
89
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_connected, "f").setValue(false);
|
|
90
|
+
}
|
|
91
|
+
if (!__classPrivateFieldGet(this, _uSyncSignalRContext_auth, "f") || !__classPrivateFieldGet(this, _uSyncSignalRContext_server, "f"))
|
|
92
|
+
return;
|
|
93
|
+
if (!__classPrivateFieldGet(this, _uSyncSignalRContext_auth, "f").getOpenApiConfiguration())
|
|
94
|
+
return;
|
|
95
|
+
const connection = __classPrivateFieldGet(this, _uSyncSignalRContext_server, "f").getServerConnection();
|
|
96
|
+
// Older Umbraco versions do not expose this setting.
|
|
97
|
+
const skipNegotiation = 'getSignalRSkipNegotiation' in connection &&
|
|
98
|
+
typeof connection.getSignalRSkipNegotiation === 'function' &&
|
|
99
|
+
connection.getSignalRSkipNegotiation() === true;
|
|
100
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_instances, "m", _uSyncSignalRContext_setupConnection).call(this, '/umbraco/SyncHub', __classPrivateFieldGet(this, _uSyncSignalRContext_auth, "f"), skipNegotiation);
|
|
101
|
+
}, _uSyncSignalRContext_setupConnection = function _uSyncSignalRContext_setupConnection(url, auth, skipNegotiation) {
|
|
79
102
|
// the token is fetched on every (re)connect, so a reconnect after
|
|
80
103
|
// the original token has expired still authenticates.
|
|
81
104
|
__classPrivateFieldSet(this, _uSyncSignalRContext_connection, new signalR.HubConnectionBuilder()
|
|
82
|
-
.withUrl(url, {
|
|
105
|
+
.withUrl(url, {
|
|
106
|
+
accessTokenFactory: () => auth.getLatestToken(),
|
|
107
|
+
skipNegotiation,
|
|
108
|
+
transport: skipNegotiation ? signalR.HttpTransportType.WebSockets : undefined,
|
|
109
|
+
})
|
|
83
110
|
.withAutomaticReconnect(new uSyncSignalRReconnectPolicy())
|
|
84
111
|
.configureLogging(signalR.LogLevel.Warning)
|
|
85
112
|
.build(), "f");
|
|
@@ -92,19 +119,39 @@ _uSyncSignalRContext_connection = new WeakMap(), _uSyncSignalRContext_connected
|
|
|
92
119
|
__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f").on('complete', (data) => {
|
|
93
120
|
__classPrivateFieldGet(this, _uSyncSignalRContext_complete, "f").setValue(data);
|
|
94
121
|
});
|
|
95
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f")
|
|
96
|
-
|
|
122
|
+
const connection = __classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f");
|
|
123
|
+
// a stopped connection can still report state while it winds down,
|
|
124
|
+
// only the current one may update connected.
|
|
125
|
+
const setConnected = (connected) => {
|
|
126
|
+
if (__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f") !== connection)
|
|
127
|
+
return;
|
|
128
|
+
if (!connected)
|
|
129
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_clientId, null, "f");
|
|
130
|
+
__classPrivateFieldGet(this, _uSyncSignalRContext_connected, "f").setValue(connected);
|
|
131
|
+
};
|
|
132
|
+
// the connection id comes from the negotiate response, so when
|
|
133
|
+
// negotiation is skipped we have to ask the hub for it.
|
|
134
|
+
const onConnected = async () => {
|
|
135
|
+
const clientId = connection.connectionId ??
|
|
136
|
+
(await connection.invoke('GetConnectionId').catch(() => null));
|
|
137
|
+
if (__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f") !== connection)
|
|
138
|
+
return;
|
|
139
|
+
__classPrivateFieldSet(this, _uSyncSignalRContext_clientId, clientId, "f");
|
|
140
|
+
setConnected(true);
|
|
141
|
+
};
|
|
142
|
+
connection
|
|
143
|
+
.start()
|
|
144
|
+
.then(onConnected)
|
|
145
|
+
.catch((error) => {
|
|
146
|
+
// with negotiation skipped there is no transport fallback, so a
|
|
147
|
+
// blocked WebSocket ends here; status polling covers progress.
|
|
148
|
+
console.warn('uSync: SignalR connection failed', error);
|
|
149
|
+
setConnected(false);
|
|
97
150
|
});
|
|
98
151
|
// the client id changes on reconnect, requests made after this
|
|
99
152
|
// pick up the new one via getClientId().
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f").onreconnected(() => {
|
|
104
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_connected, "f").setValue(true);
|
|
105
|
-
});
|
|
106
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_connection, "f").onclose(() => {
|
|
107
|
-
__classPrivateFieldGet(this, _uSyncSignalRContext_connected, "f").setValue(false);
|
|
108
|
-
});
|
|
153
|
+
connection.onreconnecting(() => setConnected(false));
|
|
154
|
+
connection.onreconnected(onConnected);
|
|
155
|
+
connection.onclose(() => setConnected(false));
|
|
109
156
|
};
|
|
110
157
|
export default uSyncSignalRContext;
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|