@jumoo/usync 18.2.0 → 18.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/LICENCE +372 -372
  2. package/README.md +16 -10
  3. package/dist/components/usync-action-box.js +71 -71
  4. package/dist/components/usync-change-detail.js +409 -409
  5. package/dist/components/usync-change-view.js +49 -49
  6. package/dist/components/usync-progress-box.js +113 -113
  7. package/dist/components/usync-result-row.js +65 -65
  8. package/dist/components/usync-results-group-view.js +63 -63
  9. package/dist/components/usync-results-view.js +64 -64
  10. package/dist/components/usync-sync-file-info-view.js +10 -10
  11. package/dist/constants.js +1 -1
  12. package/dist/dialogs/details-modal-element.js +45 -45
  13. package/dist/dialogs/error-modal-element.js +22 -22
  14. package/dist/dialogs/legacy-modal-element.js +22 -22
  15. package/dist/dialogs/single-import-modal.element.js +31 -31
  16. package/dist/icons/svg/logo.js +20 -20
  17. package/dist/lang/files/da-dk.js +12 -12
  18. package/dist/lang/files/de-de.js +12 -12
  19. package/dist/lang/files/en-us.js +12 -12
  20. package/dist/lang/files/es-es.js +12 -12
  21. package/dist/lang/files/fr-fr.js +12 -12
  22. package/dist/lang/files/nl-nl.js +12 -12
  23. package/dist/signalr/signalr.context.js +73 -26
  24. package/dist/tree/usync.menu-element.js +8 -8
  25. package/dist/workspace/components/usync-action-button.js +53 -53
  26. package/dist/workspace/components/usync-file-picker.element.js +33 -33
  27. package/dist/workspace/components/usync-file-upload.element.js +25 -25
  28. package/dist/workspace/dialogs/import-modal.element.js +22 -22
  29. package/dist/workspace/views/addons/addons.element.js +97 -97
  30. package/dist/workspace/views/default/default.element.js +186 -186
  31. package/dist/workspace/views/legacy/legacy.element.js +81 -81
  32. package/dist/workspace/views/settings/components/usyncSettingItem.element.js +38 -38
  33. package/dist/workspace/views/settings/settings.element.js +124 -124
  34. package/dist/workspace/workspace.element.js +16 -16
  35. package/package.json +77 -77
package/README.md CHANGED
@@ -1,10 +1,16 @@
1
- ## uSync ui library.
2
-
3
- The uSync UI library ,is used by other uSync packages, to
4
- show things like changes, and updates ,etc.
5
-
6
- > [!IMPORTANT]
7
- > Most packages do not need to export thier client library
8
- as a npm package, unless your client library is also going
9
- to be used by child packages.
10
-
1
+ ## uSync ui library.
2
+
3
+ The uSync UI library ,is used by other uSync packages, to
4
+ show things like changes, and updates ,etc.
5
+
6
+ > [!IMPORTANT]
7
+ > Most packages do not need to export thier client library
8
+ as a npm package, unless your client library is also going
9
+ to be used by child packages.
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.
@@ -25,26 +25,26 @@ let uSyncActionBox = class uSyncActionBox extends UmbLitElement {
25
25
  }
26
26
  render() {
27
27
  const dropdownButtons = this.group.buttons.map((b) => {
28
- return html `
29
- <usync-action-button
30
- .button=${b}
31
- .disabled=${this.disabled}
32
- state=${ifDefined(this.state)}
33
- @usync-action-click=${(e) => __classPrivateFieldGet(this, _uSyncActionBox_instances, "m", _uSyncActionBox_onAction).call(this, e, this.group)}></usync-action-button>
28
+ return html `
29
+ <usync-action-button
30
+ .button=${b}
31
+ .disabled=${this.disabled}
32
+ state=${ifDefined(this.state)}
33
+ @usync-action-click=${(e) => __classPrivateFieldGet(this, _uSyncActionBox_instances, "m", _uSyncActionBox_onAction).call(this, e, this.group)}></usync-action-button>
34
34
  `;
35
35
  });
36
- return html `
37
- <uui-box class="action-box ${this.disabled ? 'disabled' : ''}">
38
- <div class="box-content">
39
- <div class="box-heading">
40
- <h2 class="box-heading" title=${this.getLastSyncDate()}>
41
- ${this.localize.termOrDefault(`uSync_group${this.group?.groupName}`, this.group?.groupName ?? '')}
42
- </h2>
43
- <umb-icon name=${this.group?.icon}></umb-icon>
44
- </div>
45
- <div class="box-buttons">${dropdownButtons}</div>
46
- </div>
47
- </uui-box>
36
+ return html `
37
+ <uui-box class="action-box ${this.disabled ? 'disabled' : ''}">
38
+ <div class="box-content">
39
+ <div class="box-heading">
40
+ <h2 class="box-heading" title=${this.getLastSyncDate()}>
41
+ ${this.localize.termOrDefault(`uSync_group${this.group?.groupName}`, this.group?.groupName ?? '')}
42
+ </h2>
43
+ <umb-icon name=${this.group?.icon}></umb-icon>
44
+ </div>
45
+ <div class="box-buttons">${dropdownButtons}</div>
46
+ </div>
47
+ </uui-box>
48
48
  `;
49
49
  }
50
50
  getLastSyncDate() {
@@ -59,59 +59,59 @@ _uSyncActionBox_onAction = function _uSyncActionBox_onAction(e, group) {
59
59
  return;
60
60
  this.dispatchEvent(new uSyncActionPerformEvent(group, e.button.key, e.button.force, e.button.clean, e.button.file));
61
61
  };
62
- uSyncActionBox.styles = css `
63
- :host {
64
- flex-grow: 1;
65
- }
66
-
67
- .action-box {
68
- transition: opacity 0.2s ease-in-out;
69
- --uui-box-default-padding: var(--uui-size-space-4) 0;
70
- }
71
-
72
- .box-content {
73
- display: flex;
74
- flex-direction: column;
75
- align-items: center;
76
- }
77
-
78
- .box-heading {
79
- font-size: var(--uui-type-h3-size);
80
- cursor: help;
81
- margin: var(--uui-size-space-3);
82
- }
83
-
84
- umb-icon {
85
- margin: var(--uui-size-4) 0 var(--uui-size-4);
86
- font-size: var(--uui-type-h2-size);
87
- color: var(--uui-color-text-alt);
88
- }
89
-
90
- uui-button {
91
- margin: 0 var(--uui-size-space-2);
92
- font-size: var(--uui-size-6);
93
- }
94
-
95
- .box-buttons {
96
- margin: var(--uui-size-space-2) 0;
97
- }
98
-
99
- .disabled {
100
- opacity: 0.4;
101
- }
102
-
103
- .last-sync {
104
- color: var(--uui-color-text-alt);
105
- font-style: italic;
106
- font-size: var(--uui-size-5);
107
- }
108
-
109
- .box-heading {
110
- display: flex;
111
- flex-direction: row-reverse;
112
- gap: var(--uui-size-2);
113
- align-items: center;
114
- }
62
+ uSyncActionBox.styles = css `
63
+ :host {
64
+ flex-grow: 1;
65
+ }
66
+
67
+ .action-box {
68
+ transition: opacity 0.2s ease-in-out;
69
+ --uui-box-default-padding: var(--uui-size-space-4) 0;
70
+ }
71
+
72
+ .box-content {
73
+ display: flex;
74
+ flex-direction: column;
75
+ align-items: center;
76
+ }
77
+
78
+ .box-heading {
79
+ font-size: var(--uui-type-h3-size);
80
+ cursor: help;
81
+ margin: var(--uui-size-space-3);
82
+ }
83
+
84
+ umb-icon {
85
+ margin: var(--uui-size-4) 0 var(--uui-size-4);
86
+ font-size: var(--uui-type-h2-size);
87
+ color: var(--uui-color-text-alt);
88
+ }
89
+
90
+ uui-button {
91
+ margin: 0 var(--uui-size-space-2);
92
+ font-size: var(--uui-size-6);
93
+ }
94
+
95
+ .box-buttons {
96
+ margin: var(--uui-size-space-2) 0;
97
+ }
98
+
99
+ .disabled {
100
+ opacity: 0.4;
101
+ }
102
+
103
+ .last-sync {
104
+ color: var(--uui-color-text-alt);
105
+ font-style: italic;
106
+ font-size: var(--uui-size-5);
107
+ }
108
+
109
+ .box-heading {
110
+ display: flex;
111
+ flex-direction: row-reverse;
112
+ gap: var(--uui-size-2);
113
+ align-items: center;
114
+ }
115
115
  `;
116
116
  __decorate([
117
117
  property({ type: Object })