@theia/scm 1.34.3 → 1.34.4

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 (95) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +31 -31
  3. package/lib/browser/decorations/scm-decorations-service.d.ts +14 -14
  4. package/lib/browser/decorations/scm-decorations-service.js +101 -101
  5. package/lib/browser/decorations/scm-navigator-decorator.d.ts +25 -25
  6. package/lib/browser/decorations/scm-navigator-decorator.js +132 -132
  7. package/lib/browser/decorations/scm-tab-bar-decorator.d.ts +17 -17
  8. package/lib/browser/decorations/scm-tab-bar-decorator.js +93 -93
  9. package/lib/browser/dirty-diff/content-lines.d.ts +12 -12
  10. package/lib/browser/dirty-diff/content-lines.js +106 -106
  11. package/lib/browser/dirty-diff/content-lines.spec.d.ts +1 -1
  12. package/lib/browser/dirty-diff/content-lines.spec.js +39 -39
  13. package/lib/browser/dirty-diff/diff-computer.d.ts +29 -29
  14. package/lib/browser/dirty-diff/diff-computer.js +102 -102
  15. package/lib/browser/dirty-diff/diff-computer.spec.d.ts +1 -1
  16. package/lib/browser/dirty-diff/diff-computer.spec.js +315 -315
  17. package/lib/browser/dirty-diff/dirty-diff-decorator.d.ts +14 -14
  18. package/lib/browser/dirty-diff/dirty-diff-decorator.js +98 -98
  19. package/lib/browser/dirty-diff/dirty-diff-module.d.ts +3 -3
  20. package/lib/browser/dirty-diff/dirty-diff-module.js +24 -24
  21. package/lib/browser/scm-amend-component.d.ts +123 -123
  22. package/lib/browser/scm-amend-component.js +423 -423
  23. package/lib/browser/scm-amend-widget.d.ts +20 -20
  24. package/lib/browser/scm-amend-widget.js +101 -101
  25. package/lib/browser/scm-avatar-service.d.ts +3 -3
  26. package/lib/browser/scm-avatar-service.js +36 -36
  27. package/lib/browser/scm-commit-widget.d.ts +52 -52
  28. package/lib/browser/scm-commit-widget.js +199 -199
  29. package/lib/browser/scm-context-key-service.d.ts +10 -10
  30. package/lib/browser/scm-context-key-service.js +58 -58
  31. package/lib/browser/scm-contribution.d.ts +83 -83
  32. package/lib/browser/scm-contribution.js +353 -353
  33. package/lib/browser/scm-frontend-module.d.ts +6 -6
  34. package/lib/browser/scm-frontend-module.js +130 -130
  35. package/lib/browser/scm-groups-tree-model.d.ts +14 -14
  36. package/lib/browser/scm-groups-tree-model.js +97 -97
  37. package/lib/browser/scm-input.d.ts +53 -53
  38. package/lib/browser/scm-input.js +127 -127
  39. package/lib/browser/scm-layout-migrations.d.ts +9 -9
  40. package/lib/browser/scm-layout-migrations.js +79 -79
  41. package/lib/browser/scm-no-repository-widget.d.ts +8 -8
  42. package/lib/browser/scm-no-repository-widget.js +49 -49
  43. package/lib/browser/scm-preferences.d.ts +11 -11
  44. package/lib/browser/scm-preferences.js +51 -51
  45. package/lib/browser/scm-provider.d.ts +56 -56
  46. package/lib/browser/scm-provider.js +19 -19
  47. package/lib/browser/scm-quick-open-service.d.ts +11 -11
  48. package/lib/browser/scm-quick-open-service.js +73 -73
  49. package/lib/browser/scm-repository.d.ts +17 -17
  50. package/lib/browser/scm-repository.js +41 -41
  51. package/lib/browser/scm-service.d.ts +26 -26
  52. package/lib/browser/scm-service.js +108 -108
  53. package/lib/browser/scm-tree-label-provider.d.ts +7 -7
  54. package/lib/browser/scm-tree-label-provider.js +57 -57
  55. package/lib/browser/scm-tree-model.d.ts +74 -74
  56. package/lib/browser/scm-tree-model.js +348 -348
  57. package/lib/browser/scm-tree-widget.d.ts +201 -201
  58. package/lib/browser/scm-tree-widget.js +664 -664
  59. package/lib/browser/scm-widget.d.ts +40 -40
  60. package/lib/browser/scm-widget.js +218 -218
  61. package/package.json +6 -6
  62. package/src/browser/decorations/scm-decorations-service.ts +78 -78
  63. package/src/browser/decorations/scm-navigator-decorator.ts +121 -121
  64. package/src/browser/decorations/scm-tab-bar-decorator.ts +83 -83
  65. package/src/browser/dirty-diff/content-lines.spec.ts +42 -42
  66. package/src/browser/dirty-diff/content-lines.ts +112 -112
  67. package/src/browser/dirty-diff/diff-computer.spec.ts +387 -387
  68. package/src/browser/dirty-diff/diff-computer.ts +129 -129
  69. package/src/browser/dirty-diff/dirty-diff-decorator.ts +107 -107
  70. package/src/browser/dirty-diff/dirty-diff-module.ts +24 -24
  71. package/src/browser/scm-amend-component.tsx +600 -600
  72. package/src/browser/scm-amend-widget.tsx +77 -77
  73. package/src/browser/scm-avatar-service.ts +27 -27
  74. package/src/browser/scm-commit-widget.tsx +215 -215
  75. package/src/browser/scm-context-key-service.ts +46 -46
  76. package/src/browser/scm-contribution.ts +361 -361
  77. package/src/browser/scm-frontend-module.ts +149 -149
  78. package/src/browser/scm-groups-tree-model.ts +78 -78
  79. package/src/browser/scm-input.ts +164 -164
  80. package/src/browser/scm-layout-migrations.ts +64 -64
  81. package/src/browser/scm-no-repository-widget.tsx +41 -41
  82. package/src/browser/scm-preferences.ts +63 -63
  83. package/src/browser/scm-provider.ts +89 -89
  84. package/src/browser/scm-quick-open-service.ts +48 -48
  85. package/src/browser/scm-repository.ts +52 -52
  86. package/src/browser/scm-service.ts +108 -108
  87. package/src/browser/scm-tree-label-provider.ts +44 -44
  88. package/src/browser/scm-tree-model.ts +405 -405
  89. package/src/browser/scm-tree-widget.tsx +809 -809
  90. package/src/browser/scm-widget.tsx +204 -204
  91. package/src/browser/style/dirty-diff-decorator.css +52 -52
  92. package/src/browser/style/dirty-diff.css +50 -50
  93. package/src/browser/style/index.css +267 -267
  94. package/src/browser/style/scm-amend-component.css +94 -94
  95. package/src/browser/style/scm.svg +4 -4
@@ -1,267 +1,267 @@
1
- /********************************************************************************
2
- * Copyright (C) 2019 Red Hat, Inc. and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
-
17
- .theia-scm-commit {
18
- overflow: hidden;
19
- font-size: var(--theia-ui-font-size1);
20
- max-height: calc(100% - var(--theia-border-width));
21
- position: relative;
22
- }
23
-
24
- .theia-scm {
25
- padding: 5px;
26
- box-sizing: border-box;
27
- height: 100%;
28
- }
29
-
30
- .theia-side-panel .theia-scm {
31
- padding-left: 19px;
32
- }
33
-
34
- .groups-outer-container:focus {
35
- outline: 0;
36
- box-shadow: none;
37
- border: none;
38
- }
39
-
40
- .theia-scm .noWrapInfo {
41
- width: 100%;
42
- align-items: center;
43
- }
44
-
45
- .theia-scm:focus, .theia-scm :focus {
46
- outline: 0;
47
- box-shadow: none;
48
- border: none;
49
- }
50
-
51
- .theia-scm .space-between {
52
- justify-content: space-between;
53
- }
54
-
55
- .theia-scm .changesHeader {
56
- font-weight: bold;
57
- }
58
-
59
- .theia-scm .theia-scm-amend {
60
- margin: 5px 0;
61
- }
62
-
63
- .theia-scm #messageInputContainer {
64
- position: relative;
65
- }
66
-
67
- .theia-scm #repositoryListContainer {
68
- display: flex;
69
- margin-bottom: 5px;
70
- flex: 1;
71
- }
72
-
73
- .theia-scm .groups-outer-container {
74
- overflow-y: auto;
75
- width: 100%;
76
- flex-grow: 1;
77
- }
78
-
79
- .theia-scm .warn {
80
- background-color: var(--theia-inputValidation-warningBackground) !important;
81
- }
82
-
83
- .theia-scm-main-container {
84
- display: flex;
85
- flex-direction: column;
86
- height: 100%;
87
- }
88
-
89
- .theia-scm-input-message-container {
90
- display: flex;
91
- flex-direction: column;
92
- margin: 0px 0px 7px 0px;
93
- max-height: 400px;
94
- }
95
-
96
- .theia-scm-input-message-container textarea {
97
- line-height: var(--theia-content-line-height);
98
- resize: none;
99
- box-sizing: border-box;
100
- min-height: 32px;
101
- padding: 4px;
102
- border: none;
103
- }
104
-
105
- .theia-scm-input-message-container textarea:placeholder-shown {
106
- overflow: hidden;
107
- text-overflow: ellipsis;
108
- white-space: nowrap;
109
- }
110
-
111
- .theia-scm-input-message-container textarea:focus {
112
- outline: var(--theia-border-width) solid var(--theia-focusBorder);
113
- }
114
-
115
- .theia-scm-input-message {
116
- width: 100%;
117
- }
118
-
119
- .theia-scm-input-message-idle:not(:focus) {
120
- border-color: var(--theia-input-border);
121
- }
122
-
123
- .theia-scm-input-message-info {
124
- border-color: var(--theia-inputValidation-infoBorder) !important;
125
- }
126
-
127
- .theia-scm-input-message-success {
128
- border-color: var(--theia-successBackground) !important;
129
- }
130
-
131
- .theia-scm-input-message-warning {
132
- border-color: var(--theia-inputValidation-warningBorder) !important;
133
- }
134
-
135
- .theia-scm-input-message-error {
136
- border-color: var(--theia-inputValidation-errorBorder) !important;
137
- }
138
-
139
- .theia-scm-message,
140
- .theia-scm-input-validation-message {
141
- padding: 4px 4px 4px 4px;
142
- }
143
-
144
- .theia-scm-validation-message-info {
145
- background-color: var(--theia-inputValidation-infoBackground) !important;
146
- color: var(--theia-inputValidation-infoForeground);
147
- border: var(--theia-border-width) solid var(--theia-inputValidation-infoBorder);
148
- border-top: none; /* remove top border since the input declares it already */
149
- }
150
-
151
- .theia-scm-validation-message-success {
152
- background-color: var(--theia-successBackground) !important;
153
- color: var(--theia-inputValidation-warningBackground);
154
- }
155
-
156
- .theia-scm-message-warning,
157
- .theia-scm-validation-message-warning {
158
- background-color: var(--theia-inputValidation-warningBackground) !important;
159
- color: var(--theia-inputValidation-warningForeground);
160
- border: var(--theia-border-width) solid var(--theia-inputValidation-warningBorder);
161
- border-top: none; /* remove top border since the input declares it already */
162
- }
163
-
164
- .theia-scm-validation-message-error {
165
- background-color: var(--theia-inputValidation-errorBackground) !important;
166
- color: var(--theia-inputValidation-errorForeground);
167
- border: var(--theia-border-width) solid var(--theia-inputValidation-errorBorder);
168
- border-top: none; /* remove top border since the input declares it already */
169
- }
170
-
171
- .no-select:focus {
172
- outline: none;
173
- }
174
-
175
- .theia-scm .scmItem {
176
- font-size: var(--theia-ui-font-size1);
177
- display: flex;
178
- align-items: center;
179
- justify-content: space-between;
180
- height: var(--theia-content-line-height);
181
- line-height: var(--theia-content-line-height);
182
- padding: 0px calc(var(--theia-ui-padding)/2);
183
- }
184
-
185
- .theia-scm .scmItem:hover {
186
- cursor: pointer;
187
- }
188
-
189
- .theia-scm:focus-within .scmItem:focus {
190
- background: var(--theia-list-focusBackground);
191
- color: var(--theia-list-focusForeground);
192
- }
193
-
194
- .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
- background: var(--theia-list-inactiveFocusBackground);
196
- }
197
-
198
- .theia-scm:focus-within .scmItem.theia-mod-selected {
199
- background: var(--theia-list-activeSelectionBackground);
200
- color: var(--theia-list-activeSelectionForeground);
201
- }
202
-
203
- .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
- background: var(--theia-list-inactiveSelectionBackground);
205
- color: var(--theia-list-inactiveSelectionForeground);
206
- }
207
-
208
- .theia-scm .scmItem .path {
209
- font-size: var(--theia-ui-font-size0);
210
- margin-left: var(--theia-ui-padding);
211
- opacity: .7;
212
- }
213
-
214
- .theia-scm .scmItem .status {
215
- width: 16px;
216
- text-align: center;
217
- padding-top: 2px;
218
- padding-bottom: 2px;
219
- font-size: var(--theia-ui-font-size0);
220
- }
221
-
222
- .scm-change-count {
223
- float: right;
224
- }
225
-
226
- .scm-theia-header {
227
- display: flex;
228
- align-items: center;
229
- }
230
-
231
- .scm-theia-header:hover {
232
- cursor: pointer;
233
- }
234
-
235
- .theia-scm-inline-actions-container {
236
- display: flex;
237
- justify-content: flex-end;
238
- margin-left: 3px;
239
- min-height: 16px;
240
- }
241
-
242
- .theia-scm-inline-actions {
243
- display: flex;
244
- margin: 0 3px;
245
- }
246
-
247
- .theia-scm-inline-actions a {
248
- color: var(--theia-icon-foreground);
249
- }
250
-
251
- .theia-scm-inline-action {
252
- font-size: var(--theia-ui-font-size1);
253
- margin: 0 2px;
254
- cursor: pointer;
255
- display: flex;
256
- align-items: center;
257
- }
258
-
259
- .theia-scm-inline-action .open-file {
260
- height: var(--theia-icon-size);
261
- width: 12px;
262
- background: var(--theia-icon-open-file) no-repeat center center;
263
- }
264
-
265
- .theia-scm-panel {
266
- overflow: visible;
267
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2019 Red Hat, Inc. and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ .theia-scm-commit {
18
+ overflow: hidden;
19
+ font-size: var(--theia-ui-font-size1);
20
+ max-height: calc(100% - var(--theia-border-width));
21
+ position: relative;
22
+ }
23
+
24
+ .theia-scm {
25
+ padding: 5px;
26
+ box-sizing: border-box;
27
+ height: 100%;
28
+ }
29
+
30
+ .theia-side-panel .theia-scm {
31
+ padding-left: 19px;
32
+ }
33
+
34
+ .groups-outer-container:focus {
35
+ outline: 0;
36
+ box-shadow: none;
37
+ border: none;
38
+ }
39
+
40
+ .theia-scm .noWrapInfo {
41
+ width: 100%;
42
+ align-items: center;
43
+ }
44
+
45
+ .theia-scm:focus, .theia-scm :focus {
46
+ outline: 0;
47
+ box-shadow: none;
48
+ border: none;
49
+ }
50
+
51
+ .theia-scm .space-between {
52
+ justify-content: space-between;
53
+ }
54
+
55
+ .theia-scm .changesHeader {
56
+ font-weight: bold;
57
+ }
58
+
59
+ .theia-scm .theia-scm-amend {
60
+ margin: 5px 0;
61
+ }
62
+
63
+ .theia-scm #messageInputContainer {
64
+ position: relative;
65
+ }
66
+
67
+ .theia-scm #repositoryListContainer {
68
+ display: flex;
69
+ margin-bottom: 5px;
70
+ flex: 1;
71
+ }
72
+
73
+ .theia-scm .groups-outer-container {
74
+ overflow-y: auto;
75
+ width: 100%;
76
+ flex-grow: 1;
77
+ }
78
+
79
+ .theia-scm .warn {
80
+ background-color: var(--theia-inputValidation-warningBackground) !important;
81
+ }
82
+
83
+ .theia-scm-main-container {
84
+ display: flex;
85
+ flex-direction: column;
86
+ height: 100%;
87
+ }
88
+
89
+ .theia-scm-input-message-container {
90
+ display: flex;
91
+ flex-direction: column;
92
+ margin: 0px 0px 7px 0px;
93
+ max-height: 400px;
94
+ }
95
+
96
+ .theia-scm-input-message-container textarea {
97
+ line-height: var(--theia-content-line-height);
98
+ resize: none;
99
+ box-sizing: border-box;
100
+ min-height: 32px;
101
+ padding: 4px;
102
+ border: none;
103
+ }
104
+
105
+ .theia-scm-input-message-container textarea:placeholder-shown {
106
+ overflow: hidden;
107
+ text-overflow: ellipsis;
108
+ white-space: nowrap;
109
+ }
110
+
111
+ .theia-scm-input-message-container textarea:focus {
112
+ outline: var(--theia-border-width) solid var(--theia-focusBorder);
113
+ }
114
+
115
+ .theia-scm-input-message {
116
+ width: 100%;
117
+ }
118
+
119
+ .theia-scm-input-message-idle:not(:focus) {
120
+ border-color: var(--theia-input-border);
121
+ }
122
+
123
+ .theia-scm-input-message-info {
124
+ border-color: var(--theia-inputValidation-infoBorder) !important;
125
+ }
126
+
127
+ .theia-scm-input-message-success {
128
+ border-color: var(--theia-successBackground) !important;
129
+ }
130
+
131
+ .theia-scm-input-message-warning {
132
+ border-color: var(--theia-inputValidation-warningBorder) !important;
133
+ }
134
+
135
+ .theia-scm-input-message-error {
136
+ border-color: var(--theia-inputValidation-errorBorder) !important;
137
+ }
138
+
139
+ .theia-scm-message,
140
+ .theia-scm-input-validation-message {
141
+ padding: 4px 4px 4px 4px;
142
+ }
143
+
144
+ .theia-scm-validation-message-info {
145
+ background-color: var(--theia-inputValidation-infoBackground) !important;
146
+ color: var(--theia-inputValidation-infoForeground);
147
+ border: var(--theia-border-width) solid var(--theia-inputValidation-infoBorder);
148
+ border-top: none; /* remove top border since the input declares it already */
149
+ }
150
+
151
+ .theia-scm-validation-message-success {
152
+ background-color: var(--theia-successBackground) !important;
153
+ color: var(--theia-inputValidation-warningBackground);
154
+ }
155
+
156
+ .theia-scm-message-warning,
157
+ .theia-scm-validation-message-warning {
158
+ background-color: var(--theia-inputValidation-warningBackground) !important;
159
+ color: var(--theia-inputValidation-warningForeground);
160
+ border: var(--theia-border-width) solid var(--theia-inputValidation-warningBorder);
161
+ border-top: none; /* remove top border since the input declares it already */
162
+ }
163
+
164
+ .theia-scm-validation-message-error {
165
+ background-color: var(--theia-inputValidation-errorBackground) !important;
166
+ color: var(--theia-inputValidation-errorForeground);
167
+ border: var(--theia-border-width) solid var(--theia-inputValidation-errorBorder);
168
+ border-top: none; /* remove top border since the input declares it already */
169
+ }
170
+
171
+ .no-select:focus {
172
+ outline: none;
173
+ }
174
+
175
+ .theia-scm .scmItem {
176
+ font-size: var(--theia-ui-font-size1);
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ height: var(--theia-content-line-height);
181
+ line-height: var(--theia-content-line-height);
182
+ padding: 0px calc(var(--theia-ui-padding)/2);
183
+ }
184
+
185
+ .theia-scm .scmItem:hover {
186
+ cursor: pointer;
187
+ }
188
+
189
+ .theia-scm:focus-within .scmItem:focus {
190
+ background: var(--theia-list-focusBackground);
191
+ color: var(--theia-list-focusForeground);
192
+ }
193
+
194
+ .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
+ background: var(--theia-list-inactiveFocusBackground);
196
+ }
197
+
198
+ .theia-scm:focus-within .scmItem.theia-mod-selected {
199
+ background: var(--theia-list-activeSelectionBackground);
200
+ color: var(--theia-list-activeSelectionForeground);
201
+ }
202
+
203
+ .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
+ background: var(--theia-list-inactiveSelectionBackground);
205
+ color: var(--theia-list-inactiveSelectionForeground);
206
+ }
207
+
208
+ .theia-scm .scmItem .path {
209
+ font-size: var(--theia-ui-font-size0);
210
+ margin-left: var(--theia-ui-padding);
211
+ opacity: .7;
212
+ }
213
+
214
+ .theia-scm .scmItem .status {
215
+ width: 16px;
216
+ text-align: center;
217
+ padding-top: 2px;
218
+ padding-bottom: 2px;
219
+ font-size: var(--theia-ui-font-size0);
220
+ }
221
+
222
+ .scm-change-count {
223
+ float: right;
224
+ }
225
+
226
+ .scm-theia-header {
227
+ display: flex;
228
+ align-items: center;
229
+ }
230
+
231
+ .scm-theia-header:hover {
232
+ cursor: pointer;
233
+ }
234
+
235
+ .theia-scm-inline-actions-container {
236
+ display: flex;
237
+ justify-content: flex-end;
238
+ margin-left: 3px;
239
+ min-height: 16px;
240
+ }
241
+
242
+ .theia-scm-inline-actions {
243
+ display: flex;
244
+ margin: 0 3px;
245
+ }
246
+
247
+ .theia-scm-inline-actions a {
248
+ color: var(--theia-icon-foreground);
249
+ }
250
+
251
+ .theia-scm-inline-action {
252
+ font-size: var(--theia-ui-font-size1);
253
+ margin: 0 2px;
254
+ cursor: pointer;
255
+ display: flex;
256
+ align-items: center;
257
+ }
258
+
259
+ .theia-scm-inline-action .open-file {
260
+ height: var(--theia-icon-size);
261
+ width: 12px;
262
+ background: var(--theia-icon-open-file) no-repeat center center;
263
+ }
264
+
265
+ .theia-scm-panel {
266
+ overflow: visible;
267
+ }