@jumoo/usync 17.5.2-prerelease.15 → 17.5.3-prerelease.16
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/client.gen.js +1 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.gen.d.ts +1 -325
- 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-content-preview.js +7 -15
- package/dist/components/usync-content-type-preview.js +10 -28
- package/dist/components/usync-data-type-preview.js +4 -2
- package/dist/dialogs/details-modal-element.d.ts +9 -5
- package/dist/dialogs/details-modal-element.js +120 -42
- package/dist/exports.d.ts +1 -0
- package/dist/exports.js +1 -0
- package/dist/index.js +9 -1
- package/dist/lang/files/da-dk.d.ts +1 -1
- package/dist/lang/files/da-dk.js +1 -1
- package/dist/lang/files/de-de.d.ts +1 -1
- package/dist/lang/files/de-de.js +1 -1
- package/dist/lang/files/en-us.d.ts +14 -1
- package/dist/lang/files/en-us.js +14 -1
- package/dist/lang/files/es-es.d.ts +1 -1
- package/dist/lang/files/es-es.js +1 -1
- package/dist/lang/files/fr-fr.d.ts +1 -1
- package/dist/lang/files/fr-fr.js +1 -1
- package/dist/lang/files/nl-nl.d.ts +1 -1
- package/dist/lang/files/nl-nl.js +1 -1
- package/dist/manifests.js +2 -0
- package/dist/preview/index.d.ts +1 -0
- package/dist/preview/index.js +1 -0
- package/dist/preview/manifest.d.ts +2 -0
- package/dist/preview/manifest.js +22 -0
- package/dist/preview/types.d.ts +72 -0
- package/dist/preview/types.js +2 -0
- package/dist/signalr/signalr.context.js +73 -26
- package/dist/utils/preview/content-type-layout.d.ts +1 -1
- package/package.json +2 -2
- package/dist/hey-api.d.ts +0 -11
- package/dist/hey-api.js +0 -14
package/README.md
CHANGED
|
@@ -8,3 +8,9 @@ show things like changes, and updates ,etc.
|
|
|
8
8
|
as a npm package, unless your client library is also going
|
|
9
9
|
to be used by child packages.
|
|
10
10
|
|
|
11
|
+
### SignalR negotiation
|
|
12
|
+
|
|
13
|
+
The uSync SignalR client respects `Umbraco:Cms:SignalR:ClientShouldSkipNegotiation`
|
|
14
|
+
when exposed by Umbraco's server context. When enabled, the client connects using
|
|
15
|
+
WebSockets without negotiation. When disabled, or on older Umbraco versions
|
|
16
|
+
that do not expose the setting, negotiation and transport fallback remain enabled.
|
package/dist/api/client.gen.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { createClientConfig } from '../hey-api';
|
|
3
2
|
import { createClient, createConfig } from './client';
|
|
4
|
-
export const client = createClient(
|
|
3
|
+
export const client = createClient(createConfig({ baseUrl: 'http://localhost:16903', throwOnError: true }));
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { client, type CreateClientConfig } from './client.gen';
|
|
2
2
|
export { ActionsService, FoldersService, MigrationsService, type Options, SettingsService } from './sdk.gen';
|
|
3
|
-
export { ChangeDetailType, ChangeType, type CheckLegacyData, type CheckLegacyErrors, type CheckLegacyResponse, type CheckLegacyResponses, type ClientOptions,
|
|
3
|
+
export { ChangeDetailType, ChangeType, type CheckLegacyData, type CheckLegacyErrors, type CheckLegacyResponse, type CheckLegacyResponses, type ClientOptions, type CopyLegacyData, type CopyLegacyErrors, type CopyLegacyResponse, type CopyLegacyResponses, type DownloadData, type DownloadErrors, type DownloadResponse, type DownloadResponses, type GetActionsBySetData, type GetActionsBySetErrors, type GetActionsBySetResponse, type GetActionsBySetResponses, type GetActionsData, type GetActionsErrors, type GetActionsResponse, type GetActionsResponses, type GetAddOnsData, type GetAddOnsErrors, type GetAddonSplashData, type GetAddonSplashErrors, type GetAddonSplashResponse, type GetAddonSplashResponses, type GetAddOnsResponse, type GetAddOnsResponses, type GetHandlerSetSettingsData, type GetHandlerSetSettingsErrors, type GetHandlerSetSettingsResponse, type GetHandlerSetSettingsResponses, type GetPreviewData, type GetPreviewErrors, type GetPreviewResponse, type GetPreviewResponses, type GetSetsData, type GetSetsErrors, type GetSetsResponse, type GetSetsResponses, type GetSettingsData, type GetSettingsErrors, type GetSettingsResponse, type GetSettingsResponses, type GetSyncFileInfoData, type GetSyncFileInfoErrors, type GetSyncFileInfoResponse, type GetSyncFileInfoResponses, type HandlerSettings, HandlerStatus, type IgnoreLegacyData, type IgnoreLegacyErrors, type IgnoreLegacyResponse, type IgnoreLegacyResponses, type ImportSingleData, type ImportSingleErrors, type ImportSingleResponse, type ImportSingleResponses, type MergeExportFolderData, type MergeExportFolderErrors, type MergeExportFolderResponse, type MergeExportFolderResponses, type PerformActionData, type PerformActionErrors, type PerformActionRequest, type PerformActionResponse, type PerformActionResponse2, type PerformActionResponses, type ProcessUploadData, type ProcessUploadErrors, type ProcessUploadResponse, type ProcessUploadResponses, type RunningData, type RunningErrors, type RunningResponse, type RunningResponses, type StatusData, type StatusErrors, type StatusResponse, type StatusResponses, type SyncActionButton, type SyncActionGroup, type SyncFileVersionCheckResult, SyncFolderMode, type SyncHandlerSummary, type SyncItemPreviewResponse, type SyncLegacyCheckResponse, type SyncOperationStatusResponse, SyncProcessingMode, type SyncRunningOperationResponse, type SyncSelectableSet, type UploadImportResult, type USyncActionView, type USyncAddonInfo, type USyncAddonSplash, type USyncChange, type USyncHandlerSetSettings, type USyncOptions, type USyncSettings } from './types.gen';
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
export { client } from './client.gen';
|
|
3
3
|
export { ActionsService, FoldersService, MigrationsService, SettingsService } from './sdk.gen';
|
|
4
|
-
export { ChangeDetailType, ChangeType,
|
|
4
|
+
export { ChangeDetailType, ChangeType, HandlerStatus, SyncFolderMode, SyncProcessingMode } from './types.gen';
|
package/dist/api/types.gen.d.ts
CHANGED
|
@@ -27,119 +27,6 @@ export declare enum ChangeType {
|
|
|
27
27
|
CLEAN = "Clean",
|
|
28
28
|
REMOVED = "Removed"
|
|
29
29
|
}
|
|
30
|
-
export declare enum CompositionTypeModel {
|
|
31
|
-
COMPOSITION = "Composition",
|
|
32
|
-
INHERITANCE = "Inheritance"
|
|
33
|
-
}
|
|
34
|
-
export type DataTypePropertyPresentationModel = {
|
|
35
|
-
alias: string;
|
|
36
|
-
value?: unknown;
|
|
37
|
-
};
|
|
38
|
-
export type DataTypeResponseModel = {
|
|
39
|
-
name: string;
|
|
40
|
-
editorAlias: string;
|
|
41
|
-
editorUiAlias: string;
|
|
42
|
-
values: Array<DataTypePropertyPresentationModel>;
|
|
43
|
-
id: string;
|
|
44
|
-
isDeletable: boolean;
|
|
45
|
-
canIgnoreStartNodes: boolean;
|
|
46
|
-
};
|
|
47
|
-
export type DocumentResponseModel = {
|
|
48
|
-
values: Array<DocumentValueResponseModel>;
|
|
49
|
-
variants: Array<DocumentVariantResponseModel>;
|
|
50
|
-
id: string;
|
|
51
|
-
flags: Array<FlagModel>;
|
|
52
|
-
documentType: DocumentTypeReferenceResponseModel;
|
|
53
|
-
template?: ReferenceByIdModel | null;
|
|
54
|
-
isTrashed: boolean;
|
|
55
|
-
};
|
|
56
|
-
export type DocumentTypeCleanupModel = {
|
|
57
|
-
preventCleanup: boolean;
|
|
58
|
-
keepAllVersionsNewerThanDays?: number | null;
|
|
59
|
-
keepLatestVersionPerDayForDays?: number | null;
|
|
60
|
-
};
|
|
61
|
-
export type DocumentTypeCompositionModel = {
|
|
62
|
-
documentType: ReferenceByIdModel;
|
|
63
|
-
compositionType: CompositionTypeModel;
|
|
64
|
-
};
|
|
65
|
-
export type DocumentTypePropertyTypeContainerResponseModel = {
|
|
66
|
-
id: string;
|
|
67
|
-
parent?: ReferenceByIdModel | null;
|
|
68
|
-
name?: string | null;
|
|
69
|
-
type: string;
|
|
70
|
-
sortOrder: number;
|
|
71
|
-
};
|
|
72
|
-
export type DocumentTypePropertyTypeResponseModel = {
|
|
73
|
-
id: string;
|
|
74
|
-
container?: ReferenceByIdModel | null;
|
|
75
|
-
sortOrder: number;
|
|
76
|
-
alias: string;
|
|
77
|
-
name: string;
|
|
78
|
-
description?: string | null;
|
|
79
|
-
dataType: ReferenceByIdModel;
|
|
80
|
-
variesByCulture: boolean;
|
|
81
|
-
variesBySegment: boolean;
|
|
82
|
-
validation: PropertyTypeValidationModel;
|
|
83
|
-
appearance: PropertyTypeAppearanceModel;
|
|
84
|
-
};
|
|
85
|
-
export type DocumentTypeReferenceResponseModel = {
|
|
86
|
-
id: string;
|
|
87
|
-
icon: string;
|
|
88
|
-
collection?: ReferenceByIdModel | null;
|
|
89
|
-
};
|
|
90
|
-
export type DocumentTypeResponseModel = {
|
|
91
|
-
alias: string;
|
|
92
|
-
name: string;
|
|
93
|
-
description?: string | null;
|
|
94
|
-
icon: string;
|
|
95
|
-
allowedAsRoot: boolean;
|
|
96
|
-
variesByCulture: boolean;
|
|
97
|
-
variesBySegment: boolean;
|
|
98
|
-
collection?: ReferenceByIdModel | null;
|
|
99
|
-
isElement: boolean;
|
|
100
|
-
properties: Array<DocumentTypePropertyTypeResponseModel>;
|
|
101
|
-
containers: Array<DocumentTypePropertyTypeContainerResponseModel>;
|
|
102
|
-
id: string;
|
|
103
|
-
allowedTemplates: Array<ReferenceByIdModel>;
|
|
104
|
-
defaultTemplate?: ReferenceByIdModel | null;
|
|
105
|
-
cleanup: DocumentTypeCleanupModel;
|
|
106
|
-
allowedDocumentTypes: Array<DocumentTypeSortModel>;
|
|
107
|
-
compositions: Array<DocumentTypeCompositionModel>;
|
|
108
|
-
};
|
|
109
|
-
export type DocumentTypeSortModel = {
|
|
110
|
-
documentType: ReferenceByIdModel;
|
|
111
|
-
sortOrder: number;
|
|
112
|
-
};
|
|
113
|
-
export type DocumentValueResponseModel = {
|
|
114
|
-
culture?: string | null;
|
|
115
|
-
segment?: string | null;
|
|
116
|
-
alias: string;
|
|
117
|
-
value?: unknown;
|
|
118
|
-
editorAlias: string;
|
|
119
|
-
};
|
|
120
|
-
export type DocumentVariantResponseModel = {
|
|
121
|
-
culture?: string | null;
|
|
122
|
-
segment?: string | null;
|
|
123
|
-
name: string;
|
|
124
|
-
createDate: string;
|
|
125
|
-
updateDate: string;
|
|
126
|
-
state: DocumentVariantStateModel;
|
|
127
|
-
publishDate?: string | null;
|
|
128
|
-
scheduledPublishDate?: string | null;
|
|
129
|
-
scheduledUnpublishDate?: string | null;
|
|
130
|
-
readonly id: string;
|
|
131
|
-
flags: Array<FlagModel>;
|
|
132
|
-
};
|
|
133
|
-
export declare enum DocumentVariantStateModel {
|
|
134
|
-
NOT_CREATED = "NotCreated",
|
|
135
|
-
DRAFT = "Draft",
|
|
136
|
-
PUBLISHED = "Published",
|
|
137
|
-
PUBLISHED_PENDING_CHANGES = "PublishedPendingChanges",
|
|
138
|
-
TRASHED = "Trashed"
|
|
139
|
-
}
|
|
140
|
-
export type FlagModel = {
|
|
141
|
-
alias: string;
|
|
142
|
-
};
|
|
143
30
|
export type HandlerSettings = {
|
|
144
31
|
enabled: boolean;
|
|
145
32
|
actions: Array<string>;
|
|
@@ -159,124 +46,6 @@ export declare enum HandlerStatus {
|
|
|
159
46
|
COMPLETE = "Complete",
|
|
160
47
|
ERROR = "Error"
|
|
161
48
|
}
|
|
162
|
-
export type MediaResponseModel = {
|
|
163
|
-
values: Array<MediaValueResponseModel>;
|
|
164
|
-
variants: Array<MediaVariantResponseModel>;
|
|
165
|
-
id: string;
|
|
166
|
-
flags: Array<FlagModel>;
|
|
167
|
-
isTrashed: boolean;
|
|
168
|
-
mediaType: MediaTypeReferenceResponseModel;
|
|
169
|
-
};
|
|
170
|
-
export type MediaTypeCompositionModel = {
|
|
171
|
-
mediaType: ReferenceByIdModel;
|
|
172
|
-
compositionType: CompositionTypeModel;
|
|
173
|
-
};
|
|
174
|
-
export type MediaTypePropertyTypeContainerResponseModel = {
|
|
175
|
-
id: string;
|
|
176
|
-
parent?: ReferenceByIdModel | null;
|
|
177
|
-
name?: string | null;
|
|
178
|
-
type: string;
|
|
179
|
-
sortOrder: number;
|
|
180
|
-
};
|
|
181
|
-
export type MediaTypePropertyTypeResponseModel = {
|
|
182
|
-
id: string;
|
|
183
|
-
container?: ReferenceByIdModel | null;
|
|
184
|
-
sortOrder: number;
|
|
185
|
-
alias: string;
|
|
186
|
-
name: string;
|
|
187
|
-
description?: string | null;
|
|
188
|
-
dataType: ReferenceByIdModel;
|
|
189
|
-
variesByCulture: boolean;
|
|
190
|
-
variesBySegment: boolean;
|
|
191
|
-
validation: PropertyTypeValidationModel;
|
|
192
|
-
appearance: PropertyTypeAppearanceModel;
|
|
193
|
-
};
|
|
194
|
-
export type MediaTypeReferenceResponseModel = {
|
|
195
|
-
id: string;
|
|
196
|
-
icon: string;
|
|
197
|
-
collection?: ReferenceByIdModel | null;
|
|
198
|
-
};
|
|
199
|
-
export type MediaTypeResponseModel = {
|
|
200
|
-
alias: string;
|
|
201
|
-
name: string;
|
|
202
|
-
description?: string | null;
|
|
203
|
-
icon: string;
|
|
204
|
-
allowedAsRoot: boolean;
|
|
205
|
-
variesByCulture: boolean;
|
|
206
|
-
variesBySegment: boolean;
|
|
207
|
-
collection?: ReferenceByIdModel | null;
|
|
208
|
-
isElement: boolean;
|
|
209
|
-
properties: Array<MediaTypePropertyTypeResponseModel>;
|
|
210
|
-
containers: Array<MediaTypePropertyTypeContainerResponseModel>;
|
|
211
|
-
id: string;
|
|
212
|
-
allowedMediaTypes: Array<MediaTypeSortModel>;
|
|
213
|
-
compositions: Array<MediaTypeCompositionModel>;
|
|
214
|
-
isDeletable: boolean;
|
|
215
|
-
aliasCanBeChanged: boolean;
|
|
216
|
-
};
|
|
217
|
-
export type MediaTypeSortModel = {
|
|
218
|
-
mediaType: ReferenceByIdModel;
|
|
219
|
-
sortOrder: number;
|
|
220
|
-
};
|
|
221
|
-
export type MediaValueResponseModel = {
|
|
222
|
-
culture?: string | null;
|
|
223
|
-
segment?: string | null;
|
|
224
|
-
alias: string;
|
|
225
|
-
value?: unknown;
|
|
226
|
-
editorAlias: string;
|
|
227
|
-
};
|
|
228
|
-
export type MediaVariantResponseModel = {
|
|
229
|
-
culture?: string | null;
|
|
230
|
-
segment?: string | null;
|
|
231
|
-
name: string;
|
|
232
|
-
createDate: string;
|
|
233
|
-
updateDate: string;
|
|
234
|
-
};
|
|
235
|
-
export type MemberTypeCompositionModel = {
|
|
236
|
-
memberType: ReferenceByIdModel;
|
|
237
|
-
compositionType: CompositionTypeModel;
|
|
238
|
-
};
|
|
239
|
-
export type MemberTypePropertyTypeContainerResponseModel = {
|
|
240
|
-
id: string;
|
|
241
|
-
parent?: ReferenceByIdModel | null;
|
|
242
|
-
name?: string | null;
|
|
243
|
-
type: string;
|
|
244
|
-
sortOrder: number;
|
|
245
|
-
};
|
|
246
|
-
export type MemberTypePropertyTypeResponseModel = {
|
|
247
|
-
id: string;
|
|
248
|
-
container?: ReferenceByIdModel | null;
|
|
249
|
-
sortOrder: number;
|
|
250
|
-
alias: string;
|
|
251
|
-
name: string;
|
|
252
|
-
description?: string | null;
|
|
253
|
-
dataType: ReferenceByIdModel;
|
|
254
|
-
variesByCulture: boolean;
|
|
255
|
-
variesBySegment: boolean;
|
|
256
|
-
validation: PropertyTypeValidationModel;
|
|
257
|
-
appearance: PropertyTypeAppearanceModel;
|
|
258
|
-
isSensitive: boolean;
|
|
259
|
-
visibility: MemberTypePropertyTypeVisibilityModel;
|
|
260
|
-
};
|
|
261
|
-
export type MemberTypePropertyTypeVisibilityModel = {
|
|
262
|
-
memberCanView: boolean;
|
|
263
|
-
memberCanEdit: boolean;
|
|
264
|
-
};
|
|
265
|
-
export type MemberTypeResponseModel = {
|
|
266
|
-
alias: string;
|
|
267
|
-
name: string;
|
|
268
|
-
description?: string | null;
|
|
269
|
-
icon: string;
|
|
270
|
-
allowedAsRoot: boolean;
|
|
271
|
-
variesByCulture: boolean;
|
|
272
|
-
variesBySegment: boolean;
|
|
273
|
-
collection?: ReferenceByIdModel | null;
|
|
274
|
-
isElement: boolean;
|
|
275
|
-
properties: Array<MemberTypePropertyTypeResponseModel>;
|
|
276
|
-
containers: Array<MemberTypePropertyTypeContainerResponseModel>;
|
|
277
|
-
id: string;
|
|
278
|
-
compositions: Array<MemberTypeCompositionModel>;
|
|
279
|
-
};
|
|
280
49
|
export type PerformActionRequest = {
|
|
281
50
|
requestId: string;
|
|
282
51
|
action: string;
|
|
@@ -293,18 +62,6 @@ export type PerformActionResponse = {
|
|
|
293
62
|
operationId?: string | null;
|
|
294
63
|
message?: string | null;
|
|
295
64
|
};
|
|
296
|
-
export type PropertyTypeAppearanceModel = {
|
|
297
|
-
labelOnTop: boolean;
|
|
298
|
-
};
|
|
299
|
-
export type PropertyTypeValidationModel = {
|
|
300
|
-
mandatory: boolean;
|
|
301
|
-
mandatoryMessage?: string | null;
|
|
302
|
-
regEx?: string | null;
|
|
303
|
-
regExMessage?: string | null;
|
|
304
|
-
};
|
|
305
|
-
export type ReferenceByIdModel = {
|
|
306
|
-
id: string;
|
|
307
|
-
};
|
|
308
65
|
export type SyncActionButton = {
|
|
309
66
|
key: string;
|
|
310
67
|
label: string;
|
|
@@ -322,17 +79,6 @@ export type SyncActionGroup = {
|
|
|
322
79
|
buttons: Array<SyncActionButton>;
|
|
323
80
|
lastSync?: string | null;
|
|
324
81
|
};
|
|
325
|
-
export type SyncContentPreviewCulture = {
|
|
326
|
-
culture: string;
|
|
327
|
-
published: boolean;
|
|
328
|
-
};
|
|
329
|
-
export type SyncContentPreviewInfo = {
|
|
330
|
-
parent?: string | null;
|
|
331
|
-
sortOrder: number;
|
|
332
|
-
trashed: boolean;
|
|
333
|
-
template?: string | null;
|
|
334
|
-
published: Array<SyncContentPreviewCulture>;
|
|
335
|
-
};
|
|
336
82
|
export type SyncFileVersionCheckResult = {
|
|
337
83
|
isCurrent: boolean;
|
|
338
84
|
formatVersion?: string | null;
|
|
@@ -358,26 +104,7 @@ export type SyncItemPreviewResponse = {
|
|
|
358
104
|
isDelete: boolean;
|
|
359
105
|
success: boolean;
|
|
360
106
|
message?: string | null;
|
|
361
|
-
|
|
362
|
-
incomingDataType?: DataTypeResponseModel | null;
|
|
363
|
-
currentDocumentType?: DocumentTypeResponseModel | null;
|
|
364
|
-
incomingDocumentType?: DocumentTypeResponseModel | null;
|
|
365
|
-
currentMediaType?: MediaTypeResponseModel | null;
|
|
366
|
-
incomingMediaType?: MediaTypeResponseModel | null;
|
|
367
|
-
currentMemberType?: MemberTypeResponseModel | null;
|
|
368
|
-
incomingMemberType?: MemberTypeResponseModel | null;
|
|
369
|
-
currentDocument?: DocumentResponseModel | null;
|
|
370
|
-
incomingDocument?: DocumentResponseModel | null;
|
|
371
|
-
currentMedia?: MediaResponseModel | null;
|
|
372
|
-
incomingMedia?: MediaResponseModel | null;
|
|
373
|
-
currentInfo?: SyncContentPreviewInfo | null;
|
|
374
|
-
incomingInfo?: SyncContentPreviewInfo | null;
|
|
375
|
-
compositionDocumentTypes: Array<DocumentTypeResponseModel>;
|
|
376
|
-
compositionMediaTypes: Array<MediaTypeResponseModel>;
|
|
377
|
-
compositionMemberTypes: Array<MemberTypeResponseModel>;
|
|
378
|
-
dataTypes: Array<DataTypeResponseModel>;
|
|
379
|
-
newDataTypes: Array<string>;
|
|
380
|
-
newCompositions: Array<string>;
|
|
107
|
+
preview?: unknown;
|
|
381
108
|
details: Array<USyncChange>;
|
|
382
109
|
};
|
|
383
110
|
export type SyncLegacyCheckResponse = {
|
|
@@ -499,57 +226,6 @@ export type USyncSettings = {
|
|
|
499
226
|
additionalBadNames: Array<string>;
|
|
500
227
|
includeWindowsReservedNames: boolean;
|
|
501
228
|
};
|
|
502
|
-
export type DocumentResponseModelWritable = {
|
|
503
|
-
values: Array<DocumentValueResponseModel>;
|
|
504
|
-
variants: Array<DocumentVariantResponseModelWritable>;
|
|
505
|
-
id: string;
|
|
506
|
-
flags: Array<FlagModel>;
|
|
507
|
-
documentType: DocumentTypeReferenceResponseModel;
|
|
508
|
-
template?: ReferenceByIdModel | null;
|
|
509
|
-
isTrashed: boolean;
|
|
510
|
-
};
|
|
511
|
-
export type DocumentVariantResponseModelWritable = {
|
|
512
|
-
culture?: string | null;
|
|
513
|
-
segment?: string | null;
|
|
514
|
-
name: string;
|
|
515
|
-
createDate: string;
|
|
516
|
-
updateDate: string;
|
|
517
|
-
state: DocumentVariantStateModel;
|
|
518
|
-
publishDate?: string | null;
|
|
519
|
-
scheduledPublishDate?: string | null;
|
|
520
|
-
scheduledUnpublishDate?: string | null;
|
|
521
|
-
flags: Array<FlagModel>;
|
|
522
|
-
};
|
|
523
|
-
export type SyncItemPreviewResponseWritable = {
|
|
524
|
-
key: string;
|
|
525
|
-
handler: string;
|
|
526
|
-
itemType: string;
|
|
527
|
-
entityType: string;
|
|
528
|
-
isDelete: boolean;
|
|
529
|
-
success: boolean;
|
|
530
|
-
message?: string | null;
|
|
531
|
-
currentDataType?: DataTypeResponseModel | null;
|
|
532
|
-
incomingDataType?: DataTypeResponseModel | null;
|
|
533
|
-
currentDocumentType?: DocumentTypeResponseModel | null;
|
|
534
|
-
incomingDocumentType?: DocumentTypeResponseModel | null;
|
|
535
|
-
currentMediaType?: MediaTypeResponseModel | null;
|
|
536
|
-
incomingMediaType?: MediaTypeResponseModel | null;
|
|
537
|
-
currentMemberType?: MemberTypeResponseModel | null;
|
|
538
|
-
incomingMemberType?: MemberTypeResponseModel | null;
|
|
539
|
-
currentDocument?: DocumentResponseModelWritable | null;
|
|
540
|
-
incomingDocument?: DocumentResponseModelWritable | null;
|
|
541
|
-
currentMedia?: MediaResponseModel | null;
|
|
542
|
-
incomingMedia?: MediaResponseModel | null;
|
|
543
|
-
currentInfo?: SyncContentPreviewInfo | null;
|
|
544
|
-
incomingInfo?: SyncContentPreviewInfo | null;
|
|
545
|
-
compositionDocumentTypes: Array<DocumentTypeResponseModel>;
|
|
546
|
-
compositionMediaTypes: Array<MediaTypeResponseModel>;
|
|
547
|
-
compositionMemberTypes: Array<MemberTypeResponseModel>;
|
|
548
|
-
dataTypes: Array<DataTypeResponseModel>;
|
|
549
|
-
newDataTypes: Array<string>;
|
|
550
|
-
newCompositions: Array<string>;
|
|
551
|
-
details: Array<USyncChange>;
|
|
552
|
-
};
|
|
553
229
|
export type GetActionsData = {
|
|
554
230
|
body?: never;
|
|
555
231
|
path?: never;
|
package/dist/api/types.gen.js
CHANGED
|
@@ -27,19 +27,6 @@ export var ChangeType;
|
|
|
27
27
|
ChangeType["CLEAN"] = "Clean";
|
|
28
28
|
ChangeType["REMOVED"] = "Removed";
|
|
29
29
|
})(ChangeType || (ChangeType = {}));
|
|
30
|
-
export var CompositionTypeModel;
|
|
31
|
-
(function (CompositionTypeModel) {
|
|
32
|
-
CompositionTypeModel["COMPOSITION"] = "Composition";
|
|
33
|
-
CompositionTypeModel["INHERITANCE"] = "Inheritance";
|
|
34
|
-
})(CompositionTypeModel || (CompositionTypeModel = {}));
|
|
35
|
-
export var DocumentVariantStateModel;
|
|
36
|
-
(function (DocumentVariantStateModel) {
|
|
37
|
-
DocumentVariantStateModel["NOT_CREATED"] = "NotCreated";
|
|
38
|
-
DocumentVariantStateModel["DRAFT"] = "Draft";
|
|
39
|
-
DocumentVariantStateModel["PUBLISHED"] = "Published";
|
|
40
|
-
DocumentVariantStateModel["PUBLISHED_PENDING_CHANGES"] = "PublishedPendingChanges";
|
|
41
|
-
DocumentVariantStateModel["TRASHED"] = "Trashed";
|
|
42
|
-
})(DocumentVariantStateModel || (DocumentVariantStateModel = {}));
|
|
43
30
|
export var HandlerStatus;
|
|
44
31
|
(function (HandlerStatus) {
|
|
45
32
|
HandlerStatus["PENDING"] = "Pending";
|
|
@@ -6,6 +6,3 @@ export * from './usync-change-detail.js';
|
|
|
6
6
|
export * from './usync-results-group-view.js';
|
|
7
7
|
export * from './usync-result-row.js';
|
|
8
8
|
export * from './usync-sync-file-info-view.js';
|
|
9
|
-
export * from './usync-data-type-preview.js';
|
|
10
|
-
export * from './usync-content-type-preview.js';
|
|
11
|
-
export * from './usync-content-preview.js';
|
package/dist/components/index.js
CHANGED
|
@@ -7,6 +7,3 @@ export * from './usync-change-detail.js';
|
|
|
7
7
|
export * from './usync-results-group-view.js';
|
|
8
8
|
export * from './usync-result-row.js';
|
|
9
9
|
export * from './usync-sync-file-info-view.js';
|
|
10
|
-
export * from './usync-data-type-preview.js';
|
|
11
|
-
export * from './usync-content-type-preview.js';
|
|
12
|
-
export * from './usync-content-preview.js';
|
|
@@ -19,6 +19,7 @@ var _uSyncContentPreviewElement_instances, _uSyncContentPreviewElement_current,
|
|
|
19
19
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
20
20
|
import { classMap, css, customElement, html, nothing, property, repeat, state, } from '@umbraco-cms/backoffice/external/lit';
|
|
21
21
|
import '@umbraco-cms/backoffice/components';
|
|
22
|
+
import { getPreviewModel, } from '../preview/types.js';
|
|
22
23
|
import { buildContentTypeLayout, } from '../utils/preview/content-type-layout.js';
|
|
23
24
|
import { deepEqual } from '../utils/diff/deep-equal.js';
|
|
24
25
|
/**
|
|
@@ -41,22 +42,13 @@ let uSyncContentPreviewElement = class uSyncContentPreviewElement extends UmbLit
|
|
|
41
42
|
willUpdate(changed) {
|
|
42
43
|
if (!changed.has('preview') || !this.preview)
|
|
43
44
|
return;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
__classPrivateFieldSet(this,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, "f");
|
|
50
|
-
__classPrivateFieldSet(this, _uSyncContentPreviewElement_incoming, {
|
|
51
|
-
item: (isMedia ? preview.incomingMedia : preview.incomingDocument) ?? undefined,
|
|
52
|
-
info: preview.incomingInfo,
|
|
53
|
-
}, "f");
|
|
54
|
-
__classPrivateFieldSet(this, _uSyncContentPreviewElement_type, (isMedia ? preview.currentMediaType : preview.currentDocumentType) ?? undefined, "f");
|
|
55
|
-
const compositions = isMedia
|
|
56
|
-
? preview.compositionMediaTypes
|
|
57
|
-
: preview.compositionDocumentTypes;
|
|
45
|
+
const model = getPreviewModel(this.preview);
|
|
46
|
+
__classPrivateFieldSet(this, _uSyncContentPreviewElement_current, { item: model?.current ?? undefined, info: model?.currentInfo }, "f");
|
|
47
|
+
__classPrivateFieldSet(this, _uSyncContentPreviewElement_incoming, { item: model?.incoming ?? undefined, info: model?.incomingInfo }, "f");
|
|
48
|
+
__classPrivateFieldSet(this, _uSyncContentPreviewElement_type, model?.contentType ?? undefined, "f");
|
|
49
|
+
const compositions = model?.compositions ?? [];
|
|
58
50
|
__classPrivateFieldSet(this, _uSyncContentPreviewElement_compositions, new Map(compositions.map((c) => [c.id, c])), "f");
|
|
59
|
-
__classPrivateFieldSet(this, _uSyncContentPreviewElement_dataTypes, new Map(
|
|
51
|
+
__classPrivateFieldSet(this, _uSyncContentPreviewElement_dataTypes, new Map((model?.dataTypes ?? []).map((d) => [d.id, d])), "f");
|
|
60
52
|
__classPrivateFieldSet(this, _uSyncContentPreviewElement_cultures, [
|
|
61
53
|
...new Set([__classPrivateFieldGet(this, _uSyncContentPreviewElement_current, "f").item, __classPrivateFieldGet(this, _uSyncContentPreviewElement_incoming, "f").item]
|
|
62
54
|
.flatMap((item) => item?.variants ?? [])
|
|
@@ -19,6 +19,7 @@ var _uSyncContentTypePreviewElement_instances, _uSyncContentTypePreviewElement_s
|
|
|
19
19
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
20
20
|
import { classMap, css, customElement, html, nothing, property, repeat, state, } from '@umbraco-cms/backoffice/external/lit';
|
|
21
21
|
import '@umbraco-cms/backoffice/components';
|
|
22
|
+
import { getPreviewModel } from '../preview/types.js';
|
|
22
23
|
import { buildContentTypeLayout, compositionIds, } from '../utils/preview/content-type-layout.js';
|
|
23
24
|
import { diffContentTypes, } from '../utils/preview/content-type-diff.js';
|
|
24
25
|
const KIND_LABELS = {
|
|
@@ -46,11 +47,16 @@ let uSyncContentTypePreviewElement = class uSyncContentTypePreviewElement extend
|
|
|
46
47
|
willUpdate(changed) {
|
|
47
48
|
if (!changed.has('preview') || !this.preview)
|
|
48
49
|
return;
|
|
49
|
-
|
|
50
|
+
const model = getPreviewModel(this.preview);
|
|
51
|
+
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_sides, {
|
|
52
|
+
current: model?.current ?? undefined,
|
|
53
|
+
incoming: model?.incoming ?? undefined,
|
|
54
|
+
compositions: model?.compositions ?? [],
|
|
55
|
+
}, "f");
|
|
50
56
|
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_compositions, new Map(__classPrivateFieldGet(this, _uSyncContentTypePreviewElement_sides, "f").compositions.map((c) => [c.id, c])), "f");
|
|
51
|
-
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_dataTypes, new Map(
|
|
52
|
-
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_newDataTypes, new Set(
|
|
53
|
-
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_newCompositions, new Set(
|
|
57
|
+
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_dataTypes, new Map((model?.dataTypes ?? []).map((d) => [d.id, d])), "f");
|
|
58
|
+
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_newDataTypes, new Set(model?.newDataTypes), "f");
|
|
59
|
+
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_newCompositions, new Set(model?.newCompositions), "f");
|
|
54
60
|
__classPrivateFieldSet(this, _uSyncContentTypePreviewElement_diff, diffContentTypes(__classPrivateFieldGet(this, _uSyncContentTypePreviewElement_sides, "f").current, __classPrivateFieldGet(this, _uSyncContentTypePreviewElement_sides, "f").incoming), "f");
|
|
55
61
|
this._activeTab = undefined;
|
|
56
62
|
}
|
|
@@ -521,28 +527,4 @@ uSyncContentTypePreviewElement = __decorate([
|
|
|
521
527
|
customElement('usync-content-type-preview')
|
|
522
528
|
], uSyncContentTypePreviewElement);
|
|
523
529
|
export { uSyncContentTypePreviewElement };
|
|
524
|
-
function getSides(preview) {
|
|
525
|
-
switch (preview.entityType) {
|
|
526
|
-
case 'document-type':
|
|
527
|
-
return {
|
|
528
|
-
current: preview.currentDocumentType ?? undefined,
|
|
529
|
-
incoming: preview.incomingDocumentType ?? undefined,
|
|
530
|
-
compositions: preview.compositionDocumentTypes,
|
|
531
|
-
};
|
|
532
|
-
case 'media-type':
|
|
533
|
-
return {
|
|
534
|
-
current: preview.currentMediaType ?? undefined,
|
|
535
|
-
incoming: preview.incomingMediaType ?? undefined,
|
|
536
|
-
compositions: preview.compositionMediaTypes,
|
|
537
|
-
};
|
|
538
|
-
case 'member-type':
|
|
539
|
-
return {
|
|
540
|
-
current: preview.currentMemberType ?? undefined,
|
|
541
|
-
incoming: preview.incomingMemberType ?? undefined,
|
|
542
|
-
compositions: preview.compositionMemberTypes,
|
|
543
|
-
};
|
|
544
|
-
default:
|
|
545
|
-
return { compositions: [] };
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
530
|
export default uSyncContentTypePreviewElement;
|
|
@@ -13,6 +13,7 @@ var _uSyncDataTypePreviewElement_instances, _uSyncDataTypePreviewElement_renderS
|
|
|
13
13
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
14
14
|
import { classMap, css, customElement, html, nothing, property, } from '@umbraco-cms/backoffice/external/lit';
|
|
15
15
|
import '@umbraco-cms/backoffice/components';
|
|
16
|
+
import { getPreviewModel } from '../preview/types.js';
|
|
16
17
|
import { deepEqual, prettyJson } from '../utils/diff/index.js';
|
|
17
18
|
/**
|
|
18
19
|
* Shows the current and incoming versions of a data type side by side,
|
|
@@ -27,8 +28,9 @@ let uSyncDataTypePreviewElement = class uSyncDataTypePreviewElement extends UmbL
|
|
|
27
28
|
render() {
|
|
28
29
|
if (!this.preview)
|
|
29
30
|
return nothing;
|
|
30
|
-
const
|
|
31
|
-
const
|
|
31
|
+
const model = getPreviewModel(this.preview);
|
|
32
|
+
const current = model?.current ?? undefined;
|
|
33
|
+
const incoming = model?.incoming ?? undefined;
|
|
32
34
|
return html `
|
|
33
35
|
<div class="sides">
|
|
34
36
|
${__classPrivateFieldGet(this, _uSyncDataTypePreviewElement_instances, "m", _uSyncDataTypePreviewElement_renderSide).call(this, 'current', current, incoming)}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
2
2
|
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
3
|
-
import { uSyncDetailsModalData, uSyncDetailsModalValue
|
|
3
|
+
import { uSyncDetailsModalData, uSyncDetailsModalValue } from '@jumoo/uSync';
|
|
4
4
|
import { UUIButtonState } from '@umbraco-cms/backoffice/external/uui';
|
|
5
|
-
|
|
6
|
-
import '../components/usync-content-type-preview.js';
|
|
7
|
-
import '../components/usync-content-preview.js';
|
|
5
|
+
type DetailsTab = 'changes' | 'diff';
|
|
8
6
|
export declare class uSyncDetailsModalElement extends UmbModalBaseElement<uSyncDetailsModalData, uSyncDetailsModalValue> {
|
|
9
7
|
#private;
|
|
10
8
|
importState: UUIButtonState;
|
|
11
9
|
private _preview?;
|
|
12
10
|
private _tab;
|
|
11
|
+
private _loading;
|
|
13
12
|
private _item?;
|
|
14
13
|
private _index;
|
|
14
|
+
/** the entity types there is a 'usync-item-preview' element for */
|
|
15
|
+
private _previewTypes;
|
|
15
16
|
constructor();
|
|
16
17
|
connectedCallback(): void;
|
|
17
18
|
render(): import("lit-html").TemplateResult<1>;
|
|
19
|
+
renderHeadline(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
18
20
|
renderNavigation(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
19
21
|
renderTabs(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
20
|
-
|
|
22
|
+
renderTab(tab: DetailsTab, key: string, fallback: string, icon: string): import("lit-html").TemplateResult<1>;
|
|
23
|
+
renderTabContent(): import("lit-html").TemplateResult<1>;
|
|
24
|
+
renderPreview(): import("lit-html").TemplateResult<1>;
|
|
21
25
|
renderActions(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
22
26
|
static styles: import("lit").CSSResult;
|
|
23
27
|
}
|