@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.
Files changed (41) hide show
  1. package/README.md +6 -0
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +1 -1
  4. package/dist/api/sdk.gen.d.ts +1 -2
  5. package/dist/api/sdk.gen.js +0 -7
  6. package/dist/api/types.gen.d.ts +0 -361
  7. package/dist/api/types.gen.js +0 -13
  8. package/dist/components/index.d.ts +0 -3
  9. package/dist/components/index.js +0 -3
  10. package/dist/components/usync-results-view.js +5 -13
  11. package/dist/dialogs/details-modal-element.d.ts +1 -12
  12. package/dist/dialogs/details-modal-element.js +9 -139
  13. package/dist/dialogs/details-modal-token.d.ts +1 -10
  14. package/dist/lang/files/da-dk.d.ts +0 -37
  15. package/dist/lang/files/da-dk.js +0 -37
  16. package/dist/lang/files/de-de.d.ts +0 -37
  17. package/dist/lang/files/de-de.js +0 -37
  18. package/dist/lang/files/en-us.d.ts +0 -37
  19. package/dist/lang/files/en-us.js +0 -37
  20. package/dist/lang/files/es-es.d.ts +0 -37
  21. package/dist/lang/files/es-es.js +0 -37
  22. package/dist/lang/files/fr-fr.d.ts +0 -37
  23. package/dist/lang/files/fr-fr.js +0 -37
  24. package/dist/lang/files/nl-nl.d.ts +0 -37
  25. package/dist/lang/files/nl-nl.js +0 -37
  26. package/dist/repository/SyncAction.respositoy.d.ts +0 -8
  27. package/dist/repository/SyncAction.respositoy.js +0 -6
  28. package/dist/repository/sources/SyncAction.source.d.ts +0 -5
  29. package/dist/repository/sources/SyncAction.source.js +0 -5
  30. package/dist/signalr/signalr.context.js +73 -26
  31. package/package.json +1 -1
  32. package/dist/components/usync-content-preview.d.ts +0 -27
  33. package/dist/components/usync-content-preview.js +0 -540
  34. package/dist/components/usync-content-type-preview.d.ts +0 -25
  35. package/dist/components/usync-content-type-preview.js +0 -548
  36. package/dist/components/usync-data-type-preview.d.ts +0 -21
  37. package/dist/components/usync-data-type-preview.js +0 -293
  38. package/dist/utils/preview/content-type-diff.d.ts +0 -18
  39. package/dist/utils/preview/content-type-diff.js +0 -72
  40. package/dist/utils/preview/content-type-layout.d.ts +0 -39
  41. package/dist/utils/preview/content-type-layout.js +0 -100
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.
@@ -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, CompositionTypeModel, type CopyLegacyData, type CopyLegacyErrors, type CopyLegacyResponse, type CopyLegacyResponses, type DataTypePropertyPresentationModel, type DataTypeResponseModel, type DocumentResponseModel, type DocumentResponseModelWritable, type DocumentTypeCleanupModel, type DocumentTypeCompositionModel, type DocumentTypePropertyTypeContainerResponseModel, type DocumentTypePropertyTypeResponseModel, type DocumentTypeReferenceResponseModel, type DocumentTypeResponseModel, type DocumentTypeSortModel, type DocumentValueResponseModel, type DocumentVariantResponseModel, type DocumentVariantResponseModelWritable, DocumentVariantStateModel, type DownloadData, type DownloadErrors, type DownloadResponse, type DownloadResponses, type FlagModel, 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 MediaResponseModel, type MediaTypeCompositionModel, type MediaTypePropertyTypeContainerResponseModel, type MediaTypePropertyTypeResponseModel, type MediaTypeReferenceResponseModel, type MediaTypeResponseModel, type MediaTypeSortModel, type MediaValueResponseModel, type MediaVariantResponseModel, type MemberTypeCompositionModel, type MemberTypePropertyTypeContainerResponseModel, type MemberTypePropertyTypeResponseModel, type MemberTypePropertyTypeVisibilityModel, type MemberTypeResponseModel, 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 PropertyTypeAppearanceModel, type PropertyTypeValidationModel, type ReferenceByIdModel, type RunningData, type RunningErrors, type RunningResponse, type RunningResponses, type StatusData, type StatusErrors, type StatusResponse, type StatusResponses, type SyncActionButton, type SyncActionGroup, type SyncContentPreviewCulture, type SyncContentPreviewInfo, type SyncFileVersionCheckResult, SyncFolderMode, type SyncHandlerSummary, type SyncItemPreviewResponse, type SyncItemPreviewResponseWritable, 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';
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 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 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, CompositionTypeModel, DocumentVariantStateModel, HandlerStatus, SyncFolderMode, SyncProcessingMode } from './types.gen';
4
+ export { ChangeDetailType, ChangeType, HandlerStatus, SyncFolderMode, SyncProcessingMode } from './types.gen';
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
2
- import type { CheckLegacyData, CheckLegacyErrors, CheckLegacyResponses, CopyLegacyData, CopyLegacyErrors, CopyLegacyResponses, DownloadData, DownloadErrors, DownloadResponses, GetActionsBySetData, GetActionsBySetErrors, GetActionsBySetResponses, GetActionsData, GetActionsErrors, GetActionsResponses, GetAddOnsData, GetAddOnsErrors, GetAddonSplashData, GetAddonSplashErrors, GetAddonSplashResponses, GetAddOnsResponses, GetHandlerSetSettingsData, GetHandlerSetSettingsErrors, GetHandlerSetSettingsResponses, GetPreviewData, GetPreviewErrors, GetPreviewResponses, GetSetsData, GetSetsErrors, GetSetsResponses, GetSettingsData, GetSettingsErrors, GetSettingsResponses, GetSyncFileInfoData, GetSyncFileInfoErrors, GetSyncFileInfoResponses, IgnoreLegacyData, IgnoreLegacyErrors, IgnoreLegacyResponses, ImportSingleData, ImportSingleErrors, ImportSingleResponses, MergeExportFolderData, MergeExportFolderErrors, MergeExportFolderResponses, PerformActionData, PerformActionErrors, PerformActionResponses, ProcessUploadData, ProcessUploadErrors, ProcessUploadResponses, RunningData, RunningErrors, RunningResponses, StatusData, StatusErrors, StatusResponses } from './types.gen';
2
+ import type { CheckLegacyData, CheckLegacyErrors, CheckLegacyResponses, CopyLegacyData, CopyLegacyErrors, CopyLegacyResponses, DownloadData, DownloadErrors, DownloadResponses, GetActionsBySetData, GetActionsBySetErrors, GetActionsBySetResponses, GetActionsData, GetActionsErrors, GetActionsResponses, GetAddOnsData, GetAddOnsErrors, GetAddonSplashData, GetAddonSplashErrors, GetAddonSplashResponses, GetAddOnsResponses, GetHandlerSetSettingsData, GetHandlerSetSettingsErrors, GetHandlerSetSettingsResponses, GetSetsData, GetSetsErrors, GetSetsResponses, GetSettingsData, GetSettingsErrors, GetSettingsResponses, GetSyncFileInfoData, GetSyncFileInfoErrors, GetSyncFileInfoResponses, IgnoreLegacyData, IgnoreLegacyErrors, IgnoreLegacyResponses, ImportSingleData, ImportSingleErrors, ImportSingleResponses, MergeExportFolderData, MergeExportFolderErrors, MergeExportFolderResponses, PerformActionData, PerformActionErrors, PerformActionResponses, ProcessUploadData, ProcessUploadErrors, ProcessUploadResponses, RunningData, RunningErrors, RunningResponses, StatusData, StatusErrors, StatusResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -23,7 +23,6 @@ export declare class ActionsService {
23
23
  static getSyncFileInfo<ThrowOnError extends boolean = true>(options?: Options<GetSyncFileInfoData, ThrowOnError>): RequestResult<GetSyncFileInfoResponses, GetSyncFileInfoErrors, ThrowOnError>;
24
24
  static importSingle<ThrowOnError extends boolean = true>(options?: Options<ImportSingleData, ThrowOnError>): RequestResult<ImportSingleResponses, ImportSingleErrors, ThrowOnError>;
25
25
  static performAction<ThrowOnError extends boolean = true>(options?: Options<PerformActionData, ThrowOnError>): RequestResult<PerformActionResponses, PerformActionErrors, ThrowOnError>;
26
- static getPreview<ThrowOnError extends boolean = true>(options?: Options<GetPreviewData, ThrowOnError>): RequestResult<GetPreviewResponses, GetPreviewErrors, ThrowOnError>;
27
26
  static processUpload<ThrowOnError extends boolean = true>(options?: Options<ProcessUploadData, ThrowOnError>): RequestResult<ProcessUploadResponses, ProcessUploadErrors, ThrowOnError>;
28
27
  static running<ThrowOnError extends boolean = true>(options?: Options<RunningData, ThrowOnError>): RequestResult<RunningResponses, RunningErrors, ThrowOnError>;
29
28
  static status<ThrowOnError extends boolean = true>(options?: Options<StatusData, ThrowOnError>): RequestResult<StatusResponses, StatusErrors, ThrowOnError>;
@@ -54,13 +54,6 @@ export class ActionsService {
54
54
  }
55
55
  });
56
56
  }
57
- static getPreview(options) {
58
- return (options?.client ?? client).get({
59
- security: [{ scheme: 'bearer', type: 'http' }],
60
- url: '/umbraco/usync/api/v1/Preview',
61
- ...options
62
- });
63
- }
64
57
  static processUpload(options) {
65
58
  return (options?.client ?? client).post({
66
59
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -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;
@@ -350,36 +96,6 @@ export type SyncHandlerSummary = {
350
96
  changes: number;
351
97
  inError: boolean;
352
98
  };
353
- export type SyncItemPreviewResponse = {
354
- key: string;
355
- handler: string;
356
- itemType: string;
357
- entityType: string;
358
- isDelete: boolean;
359
- success: boolean;
360
- message?: string | null;
361
- currentDataType?: DataTypeResponseModel | null;
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>;
381
- details: Array<USyncChange>;
382
- };
383
99
  export type SyncLegacyCheckResponse = {
384
100
  hasLegacy: boolean;
385
101
  legacyFolder?: string | null;
@@ -499,57 +215,6 @@ export type USyncSettings = {
499
215
  additionalBadNames: Array<string>;
500
216
  includeWindowsReservedNames: boolean;
501
217
  };
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
218
  export type GetActionsData = {
554
219
  body?: never;
555
220
  path?: never;
@@ -666,32 +331,6 @@ export type PerformActionResponses = {
666
331
  200: PerformActionResponse;
667
332
  };
668
333
  export type PerformActionResponse2 = PerformActionResponses[keyof PerformActionResponses];
669
- export type GetPreviewData = {
670
- body?: never;
671
- path?: never;
672
- query?: {
673
- handler?: string;
674
- key?: string;
675
- };
676
- url: '/umbraco/usync/api/v1/Preview';
677
- };
678
- export type GetPreviewErrors = {
679
- /**
680
- * The resource is protected and requires an authentication token
681
- */
682
- 401: unknown;
683
- /**
684
- * Not Found
685
- */
686
- 404: unknown;
687
- };
688
- export type GetPreviewResponses = {
689
- /**
690
- * OK
691
- */
692
- 200: SyncItemPreviewResponse;
693
- };
694
- export type GetPreviewResponse = GetPreviewResponses[keyof GetPreviewResponses];
695
334
  export type ProcessUploadData = {
696
335
  body?: never;
697
336
  path?: never;
@@ -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';
@@ -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';
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  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");
16
16
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17
17
  };
18
- var _uSyncResultsView_instances, _uSyncResultsView_modalContext, _uSyncResultsView_toggleShowAll, _uSyncResultsView_showDetail, _uSyncResultsView_visibleItems;
18
+ var _uSyncResultsView_instances, _uSyncResultsView_modalContext, _uSyncResultsView_toggleShowAll, _uSyncResultsView_showDetail;
19
19
  import { LitElement, html, customElement, property, css, state, nothing, } from '@umbraco-cms/backoffice/external/lit';
20
20
  import { ChangeType } from '@jumoo/uSync';
21
21
  import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
@@ -98,11 +98,10 @@ _uSyncResultsView_showDetail = async function _uSyncResultsView_showDetail(e) {
98
98
  const detailsModal = __classPrivateFieldGet(this, _uSyncResultsView_modalContext, "f")?.open(this, USYNC_DETAILS_MODAL, {
99
99
  data: {
100
100
  item: e.action,
101
- items: __classPrivateFieldGet(this, _uSyncResultsView_instances, "m", _uSyncResultsView_visibleItems).call(this),
102
- showActions: (item) => !this.hideActions &&
103
- (item.change == ChangeType.CREATE ||
104
- item.change == ChangeType.UPDATE ||
105
- item.change == ChangeType.IMPORT),
101
+ showActions: !this.hideActions &&
102
+ (e.action.change == ChangeType.CREATE ||
103
+ e.action.change == ChangeType.UPDATE ||
104
+ e.action.change == ChangeType.IMPORT),
106
105
  },
107
106
  });
108
107
  const data = await detailsModal?.onSubmit().catch(() => {
@@ -111,13 +110,6 @@ _uSyncResultsView_showDetail = async function _uSyncResultsView_showDetail(e) {
111
110
  if (!data)
112
111
  return;
113
112
  };
114
- _uSyncResultsView_visibleItems = function _uSyncResultsView_visibleItems() {
115
- const groups = this.groupBy(this.results || [], (result) => result.itemType);
116
- return Object.values(groups)
117
- .flat()
118
- .filter((r) => r.change !== ChangeType.EXPORT &&
119
- (this.showAll || r.change !== ChangeType.NO_CHANGE));
120
- };
121
113
  uSyncResultsView.styles = css `
122
114
  :host {
123
115
  display: block;
@@ -1,23 +1,12 @@
1
1
  import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
2
2
  import { nothing } from '@umbraco-cms/backoffice/external/lit';
3
- import { uSyncDetailsModalData, uSyncDetailsModalValue, type SyncItemPreviewResponse } from '@jumoo/uSync';
3
+ import { uSyncDetailsModalData, uSyncDetailsModalValue } from '@jumoo/uSync';
4
4
  import { UUIButtonState } from '@umbraco-cms/backoffice/external/uui';
5
- import '../components/usync-data-type-preview.js';
6
- import '../components/usync-content-type-preview.js';
7
- import '../components/usync-content-preview.js';
8
5
  export declare class uSyncDetailsModalElement extends UmbModalBaseElement<uSyncDetailsModalData, uSyncDetailsModalValue> {
9
6
  #private;
10
7
  importState: UUIButtonState;
11
- private _preview?;
12
- private _tab;
13
- private _item?;
14
- private _index;
15
8
  constructor();
16
- connectedCallback(): void;
17
9
  render(): import("lit-html").TemplateResult<1>;
18
- renderNavigation(): typeof nothing | import("lit-html").TemplateResult<1>;
19
- renderTabs(): typeof nothing | import("lit-html").TemplateResult<1>;
20
- renderPreview(preview: SyncItemPreviewResponse): typeof nothing | import("lit-html").TemplateResult<1>;
21
10
  renderActions(): typeof nothing | import("lit-html").TemplateResult<1>;
22
11
  static styles: import("lit").CSSResult;
23
12
  }