@ones-editor/editor 2.1.8-beta.4 → 2.1.8-beta.6
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, EventCallbacks, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser,
|
|
1
|
+
import { DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, EventCallbacks, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser, UploadResourceResult, OnesEditorDocServerMeta, OnesEditorDocServer } from '../../../../@ones-editor/core';
|
|
2
2
|
import { HistoryUser } from '../types';
|
|
3
3
|
export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> implements OnesEditorDoc {
|
|
4
4
|
private server;
|
|
@@ -23,7 +23,7 @@ export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> i
|
|
|
23
23
|
request<T>(): Promise<T>;
|
|
24
24
|
broadcastMessage(): void;
|
|
25
25
|
getUser(): OnesEditorUser;
|
|
26
|
-
getRemoteUsers():
|
|
26
|
+
getRemoteUsers(): import("@ones-editor/core").OnesEditorRemoteUsers;
|
|
27
27
|
destroy(): void;
|
|
28
28
|
private transformBlockIndex;
|
|
29
29
|
onDeleteBlock(containerId: string, blockIndex: number, user: HistoryUser): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { OnesEditorRemoteUsers } from '../../../../@ones-editor/core';
|
|
2
2
|
import { HistoryUser, UserColors } from '../types';
|
|
3
3
|
export * from './block-text';
|
|
4
|
-
export declare function removeOpacityFromHexColor(hexColor: string): string;
|
|
5
4
|
export declare function getUserColors(users: OnesEditorRemoteUsers, user: HistoryUser): UserColors;
|
|
@@ -12,7 +12,6 @@ export declare class OnesEditorVersionsDialog implements OnesEditorCustom {
|
|
|
12
12
|
get versionHelper(): import("@ones-editor/core").OnesEditorDocVersionHelper;
|
|
13
13
|
get editor(): OnesEditor | null;
|
|
14
14
|
constructor(server: OnesEditorDocServer, provider: OnesEditorVersionsProvider);
|
|
15
|
-
private handleBeforeShowTooltip;
|
|
16
15
|
private handleRevert;
|
|
17
16
|
private handleSelectVersion;
|
|
18
17
|
private handleCompareWithVersion;
|
package/dist/index.js
CHANGED
|
@@ -267,7 +267,7 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-type
|
|
|
267
267
|
width: 3px;
|
|
268
268
|
left: -3px;
|
|
269
269
|
/* overflow: hidden; */
|
|
270
|
-
border-right: var(--cursor-color)
|
|
270
|
+
border-right: var(--cursor-color) 2px solid;
|
|
271
271
|
text-overflow: clip;
|
|
272
272
|
display: inline-block;
|
|
273
273
|
/* height: 100%; */
|
|
@@ -283,17 +283,16 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-type
|
|
|
283
283
|
div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] > span[data-type=editor-insertion].remote-cursor-insertion > span[data-type=insertion-content] span[data-cursor-name]:hover::before, div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] > span[data-type=editor-insertion].remote-cursor-insertion.active > span[data-type=insertion-content] span[data-cursor-name]::before {
|
|
284
284
|
content: attr(data-cursor-name);
|
|
285
285
|
position: absolute;
|
|
286
|
-
top: -
|
|
287
|
-
height: 1.1em;
|
|
286
|
+
top: -32px;
|
|
288
287
|
background-color: var(--cursor-color);
|
|
289
288
|
z-index: 27;
|
|
290
|
-
left:
|
|
289
|
+
left: 2px;
|
|
291
290
|
color: #fff;
|
|
292
291
|
white-space: nowrap;
|
|
293
292
|
font-size: 12px;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
293
|
+
padding: 0px 5px;
|
|
294
|
+
border-radius: 3px;
|
|
295
|
+
line-height: 30px;
|
|
297
296
|
}
|
|
298
297
|
div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=box-content] {
|
|
299
298
|
/* background-color: bisque; */
|
|
@@ -4803,10 +4802,28 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4803
4802
|
.editor-root.history .editor-content {
|
|
4804
4803
|
padding: 30px 75px;
|
|
4805
4804
|
}
|
|
4806
|
-
.editor-root.history .table-block.history-inserted-block table
|
|
4805
|
+
.editor-root.history .table-block.history-inserted-block table {
|
|
4806
|
+
position: relative;
|
|
4807
|
+
}
|
|
4808
|
+
.editor-root.history .table-block.history-inserted-block table::before {
|
|
4809
|
+
content: var(--history-mask-identifier);
|
|
4810
|
+
color: transparent;
|
|
4811
|
+
position: absolute;
|
|
4812
|
+
top: -5px;
|
|
4813
|
+
bottom: -5px;
|
|
4814
|
+
left: -5px;
|
|
4815
|
+
right: -5px;
|
|
4816
|
+
background-color: var(--op-selected-color);
|
|
4817
|
+
border-radius: 3px;
|
|
4818
|
+
pointer-events: none;
|
|
4819
|
+
}
|
|
4820
|
+
.editor-root.history .table-block.history-inserted-block table .child {
|
|
4821
|
+
pointer-events: none;
|
|
4822
|
+
}
|
|
4823
|
+
.editor-root.history .table-block.history-updated-block table {
|
|
4807
4824
|
position: relative;
|
|
4808
4825
|
}
|
|
4809
|
-
.editor-root.history .table-block.history-
|
|
4826
|
+
.editor-root.history .table-block.history-updated-block table::before {
|
|
4810
4827
|
content: var(--history-mask-identifier);
|
|
4811
4828
|
color: transparent;
|
|
4812
4829
|
position: absolute;
|
|
@@ -4818,7 +4835,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4818
4835
|
border-radius: 3px;
|
|
4819
4836
|
pointer-events: none;
|
|
4820
4837
|
}
|
|
4821
|
-
.editor-root.history .table-block.history-
|
|
4838
|
+
.editor-root.history .table-block.history-updated-block table .child:not(.history-inserted-container) {
|
|
4822
4839
|
pointer-events: none;
|
|
4823
4840
|
}
|
|
4824
4841
|
.editor-root.history .table-block.history-deleted-block table {
|
|
@@ -4838,6 +4855,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4838
4855
|
mask-repeat: no-repeat;
|
|
4839
4856
|
mask-position: center;
|
|
4840
4857
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
4858
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
4841
4859
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
4842
4860
|
background-color: var(--op-color);
|
|
4843
4861
|
z-index: 1;
|
|
@@ -4910,6 +4928,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4910
4928
|
mask-repeat: no-repeat;
|
|
4911
4929
|
mask-position: center;
|
|
4912
4930
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
4931
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
4913
4932
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
4914
4933
|
background-color: var(--op-color);
|
|
4915
4934
|
z-index: 1;
|
|
@@ -4944,10 +4963,10 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4944
4963
|
border-radius: 3px;
|
|
4945
4964
|
pointer-events: none;
|
|
4946
4965
|
}
|
|
4947
|
-
.editor-root.history .layout-block .history-inserted-container {
|
|
4966
|
+
.editor-root.history .layout-block.history-updated-block .history-inserted-container {
|
|
4948
4967
|
position: relative;
|
|
4949
4968
|
}
|
|
4950
|
-
.editor-root.history .layout-block .history-inserted-container::before {
|
|
4969
|
+
.editor-root.history .layout-block.history-updated-block .history-inserted-container::before {
|
|
4951
4970
|
content: var(--history-mask-identifier);
|
|
4952
4971
|
color: transparent;
|
|
4953
4972
|
position: absolute;
|
|
@@ -4956,7 +4975,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4956
4975
|
left: 0;
|
|
4957
4976
|
right: 0;
|
|
4958
4977
|
background-color: var(--op-selected-color);
|
|
4959
|
-
border-radius:
|
|
4978
|
+
border-radius: 3px;
|
|
4960
4979
|
pointer-events: none;
|
|
4961
4980
|
}
|
|
4962
4981
|
.editor-root.history [data-block-type=embed][data-embed-type=office].history-inserted-block {
|
|
@@ -4992,6 +5011,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4992
5011
|
mask-repeat: no-repeat;
|
|
4993
5012
|
mask-position: center;
|
|
4994
5013
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
5014
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
4995
5015
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
4996
5016
|
background-color: var(--op-color);
|
|
4997
5017
|
z-index: 1;
|
|
@@ -5045,6 +5065,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5045
5065
|
mask-repeat: no-repeat;
|
|
5046
5066
|
mask-position: center;
|
|
5047
5067
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
5068
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
5048
5069
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
5049
5070
|
background-color: var(--op-color);
|
|
5050
5071
|
z-index: 1;
|
|
@@ -5100,6 +5121,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5100
5121
|
mask-repeat: no-repeat;
|
|
5101
5122
|
mask-position: center;
|
|
5102
5123
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
5124
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
5103
5125
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
5104
5126
|
background-color: var(--op-color);
|
|
5105
5127
|
z-index: 1;
|
|
@@ -5153,6 +5175,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5153
5175
|
mask-repeat: no-repeat;
|
|
5154
5176
|
mask-position: center;
|
|
5155
5177
|
mask-size: auto clamp(20px, 10%, 60px);
|
|
5178
|
+
-webkit-mask-size: auto clamp(20px, 10%, 60px);
|
|
5156
5179
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
5157
5180
|
background-color: var(--op-color);
|
|
5158
5181
|
z-index: 1;
|
|
@@ -5239,10 +5262,29 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5239
5262
|
border-radius: 0px;
|
|
5240
5263
|
pointer-events: none;
|
|
5241
5264
|
}
|
|
5242
|
-
.editor-root.history .
|
|
5265
|
+
.editor-root.history .mention-box.history-inserted-box {
|
|
5243
5266
|
position: relative;
|
|
5244
5267
|
}
|
|
5245
|
-
.editor-root.history .
|
|
5268
|
+
.editor-root.history .mention-box.history-inserted-box::before {
|
|
5269
|
+
content: var(--history-mask-identifier);
|
|
5270
|
+
color: transparent;
|
|
5271
|
+
position: absolute;
|
|
5272
|
+
top: 0px;
|
|
5273
|
+
bottom: 0px;
|
|
5274
|
+
left: 4px;
|
|
5275
|
+
right: 4px;
|
|
5276
|
+
background-color: var(--op-selected-color);
|
|
5277
|
+
border-radius: 0px;
|
|
5278
|
+
pointer-events: none;
|
|
5279
|
+
}
|
|
5280
|
+
.editor-root.history .mention-box.history-deleted-box {
|
|
5281
|
+
text-decoration: line-through;
|
|
5282
|
+
color: var(--primary-color);
|
|
5283
|
+
}
|
|
5284
|
+
.editor-root.history [data-type=editor-box]:not(.status-box, .file-box, .math-box, .mention-box).history-inserted-box, .editor-root.history [data-type=editor-box]:not(.status-box, .file-box, .math-box, .mention-box).history-deleted-box {
|
|
5285
|
+
position: relative;
|
|
5286
|
+
}
|
|
5287
|
+
.editor-root.history [data-type=editor-box]:not(.status-box, .file-box, .math-box, .mention-box).history-inserted-box::before, .editor-root.history [data-type=editor-box]:not(.status-box, .file-box, .math-box, .mention-box).history-deleted-box::before {
|
|
5246
5288
|
content: var(--history-mask-identifier);
|
|
5247
5289
|
color: transparent;
|
|
5248
5290
|
position: absolute;
|
|
@@ -5283,13 +5325,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5283
5325
|
.editor-root.history .history-inserted-block .history-inserted-box,
|
|
5284
5326
|
.editor-root.history .history-inserted-block .history-deleted-box,
|
|
5285
5327
|
.editor-root.history .history-inserted-block .history-deleted-block,
|
|
5286
|
-
.editor-root.history .history-inserted-block .history-inserted-block
|
|
5287
|
-
.editor-root.history .history-updated-block .history-inserted-container,
|
|
5288
|
-
.editor-root.history .history-updated-block .history-inserted-text,
|
|
5289
|
-
.editor-root.history .history-updated-block .history-inserted-box,
|
|
5290
|
-
.editor-root.history .history-updated-block .history-deleted-box,
|
|
5291
|
-
.editor-root.history .history-updated-block .history-deleted-block,
|
|
5292
|
-
.editor-root.history .history-updated-block .history-inserted-block {
|
|
5328
|
+
.editor-root.history .history-inserted-block .history-inserted-block {
|
|
5293
5329
|
background-color: unset;
|
|
5294
5330
|
pointer-events: none;
|
|
5295
5331
|
}
|
|
@@ -5327,19 +5363,7 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5327
5363
|
.editor-root.history .history-inserted-block .history-deleted-block::before,
|
|
5328
5364
|
.editor-root.history .history-inserted-block .history-deleted-block::after,
|
|
5329
5365
|
.editor-root.history .history-inserted-block .history-inserted-block::before,
|
|
5330
|
-
.editor-root.history .history-inserted-block .history-inserted-block::after
|
|
5331
|
-
.editor-root.history .history-updated-block .history-inserted-container::before,
|
|
5332
|
-
.editor-root.history .history-updated-block .history-inserted-container::after,
|
|
5333
|
-
.editor-root.history .history-updated-block .history-inserted-text::before,
|
|
5334
|
-
.editor-root.history .history-updated-block .history-inserted-text::after,
|
|
5335
|
-
.editor-root.history .history-updated-block .history-inserted-box::before,
|
|
5336
|
-
.editor-root.history .history-updated-block .history-inserted-box::after,
|
|
5337
|
-
.editor-root.history .history-updated-block .history-deleted-box::before,
|
|
5338
|
-
.editor-root.history .history-updated-block .history-deleted-box::after,
|
|
5339
|
-
.editor-root.history .history-updated-block .history-deleted-block::before,
|
|
5340
|
-
.editor-root.history .history-updated-block .history-deleted-block::after,
|
|
5341
|
-
.editor-root.history .history-updated-block .history-inserted-block::before,
|
|
5342
|
-
.editor-root.history .history-updated-block .history-inserted-block::after {
|
|
5366
|
+
.editor-root.history .history-inserted-block .history-inserted-block::after {
|
|
5343
5367
|
display: none;
|
|
5344
5368
|
}
|
|
5345
5369
|
.version-dialog {
|
|
@@ -29754,7 +29778,7 @@ ${codeText}
|
|
|
29754
29778
|
logger$2O.debug("create editor");
|
|
29755
29779
|
this.setMaxListeners(100);
|
|
29756
29780
|
this.options = {
|
|
29757
|
-
colors: (_a = optionalOptions == null ? void 0 : optionalOptions.colors) != null ? _a : ["#
|
|
29781
|
+
colors: (_a = optionalOptions == null ? void 0 : optionalOptions.colors) != null ? _a : ["#B21B57", "#008796", "#7241CC", "#CC4C08", "#5D8F00", "#BD2C1C", "#D17D00"],
|
|
29758
29782
|
componentsOptions: (_c = (_b = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _b.options) != null ? _c : {},
|
|
29759
29783
|
scrollContainer: optionalOptions == null ? void 0 : optionalOptions.scrollContainer,
|
|
29760
29784
|
enableComments: (_d = optionalOptions == null ? void 0 : optionalOptions.enableComments) != null ? _d : true,
|
|
@@ -30122,18 +30146,7 @@ ${codeText}
|
|
|
30122
30146
|
});
|
|
30123
30147
|
return allCommands;
|
|
30124
30148
|
}
|
|
30125
|
-
const DefaultColors = [
|
|
30126
|
-
"#0064FF",
|
|
30127
|
-
"#EB3723",
|
|
30128
|
-
"#F59300",
|
|
30129
|
-
"#00A865",
|
|
30130
|
-
"#F25A0A",
|
|
30131
|
-
"#70A310",
|
|
30132
|
-
"#009CAD",
|
|
30133
|
-
"#0990D9",
|
|
30134
|
-
"#8851ED",
|
|
30135
|
-
"#D62069"
|
|
30136
|
-
];
|
|
30149
|
+
const DefaultColors = ["#B21B57", "#008796", "#7241CC", "#CC4C08", "#5D8F00", "#BD2C1C", "#D17D00"];
|
|
30137
30150
|
class RemoteUsers extends tinyTypedEmitter.TypedEmitter {
|
|
30138
30151
|
constructor(colors) {
|
|
30139
30152
|
super();
|
|
@@ -74423,8 +74436,7 @@ ${content}
|
|
|
74423
74436
|
};
|
|
74424
74437
|
}
|
|
74425
74438
|
getRemoteUsers() {
|
|
74426
|
-
|
|
74427
|
-
return new RemoteUsers(colors);
|
|
74439
|
+
return this.server.getRemoteUsers();
|
|
74428
74440
|
}
|
|
74429
74441
|
destroy() {
|
|
74430
74442
|
this.clearCallbacks();
|
|
@@ -74538,18 +74550,15 @@ ${content}
|
|
|
74538
74550
|
name: user.displayName
|
|
74539
74551
|
});
|
|
74540
74552
|
}
|
|
74541
|
-
function
|
|
74542
|
-
|
|
74543
|
-
return hexColor.slice(0, 7);
|
|
74544
|
-
}
|
|
74545
|
-
return hexColor;
|
|
74553
|
+
function addOpacity(color, opacity) {
|
|
74554
|
+
return color + Math.round(opacity * 255).toString(16).padStart(2, "0");
|
|
74546
74555
|
}
|
|
74547
74556
|
function getUserColors(users, user) {
|
|
74548
74557
|
const { userId } = user;
|
|
74549
74558
|
const types2 = ["flag", "selection"];
|
|
74550
74559
|
return types2.reduce((acc, cur) => {
|
|
74551
74560
|
const color = users.getFixedUserColor(userId, cur);
|
|
74552
|
-
acc[cur] = cur === "
|
|
74561
|
+
acc[cur] = cur === "selection" ? addOpacity(color, 0.2) : color;
|
|
74553
74562
|
return acc;
|
|
74554
74563
|
}, {});
|
|
74555
74564
|
}
|
|
@@ -75218,7 +75227,8 @@ ${content}
|
|
|
75218
75227
|
return this.applyGapToRect(maskRect);
|
|
75219
75228
|
}
|
|
75220
75229
|
logger$s.warn("unknown tooltip element", reference.tagName, reference.className);
|
|
75221
|
-
|
|
75230
|
+
const rect = reference.getBoundingClientRect();
|
|
75231
|
+
return this.applyGapToRect(rect);
|
|
75222
75232
|
}
|
|
75223
75233
|
}
|
|
75224
75234
|
const logger$r = getLogger("version-dialog");
|
|
@@ -75231,10 +75241,6 @@ ${content}
|
|
|
75231
75241
|
__publicField(this, "provider");
|
|
75232
75242
|
__publicField(this, "versions", []);
|
|
75233
75243
|
__publicField(this, "components");
|
|
75234
|
-
__publicField(this, "handleBeforeShowTooltip", (instance) => {
|
|
75235
|
-
console.log(instance);
|
|
75236
|
-
return false;
|
|
75237
|
-
});
|
|
75238
75244
|
__publicField(this, "handleRevert", async (ver) => {
|
|
75239
75245
|
var _a, _b, _c;
|
|
75240
75246
|
assert(logger$r, this.versionList, "The versionList did not render");
|
|
@@ -75315,7 +75321,7 @@ ${content}
|
|
|
75315
75321
|
this.server = server;
|
|
75316
75322
|
this.provider = provider;
|
|
75317
75323
|
const root2 = createElement("div", ["version-dialog"], null);
|
|
75318
|
-
root2.style.setProperty("--history-mask-identifier",
|
|
75324
|
+
root2.style.setProperty("--history-mask-identifier", `"${HISTORY_MASK_IDENTIFIER}"`);
|
|
75319
75325
|
const mainContainer = createElement("div", ["version-viewer"], root2);
|
|
75320
75326
|
const infoHeader = new VersionInfoHeader(mainContainer, {
|
|
75321
75327
|
onCompareWithVersion: this.handleCompareWithVersion,
|
|
@@ -83757,16 +83763,13 @@ ${data2.flowchartText}
|
|
|
83757
83763
|
...options.shortcuts || []
|
|
83758
83764
|
],
|
|
83759
83765
|
colors: [
|
|
83760
|
-
"#
|
|
83761
|
-
"#
|
|
83762
|
-
"#
|
|
83763
|
-
"#
|
|
83764
|
-
"#
|
|
83765
|
-
"#
|
|
83766
|
-
"#
|
|
83767
|
-
"#0990D9",
|
|
83768
|
-
"#8851ED",
|
|
83769
|
-
"#D62069"
|
|
83766
|
+
"#B21B57",
|
|
83767
|
+
"#008796",
|
|
83768
|
+
"#7241CC",
|
|
83769
|
+
"#CC4C08",
|
|
83770
|
+
"#5D8F00",
|
|
83771
|
+
"#BD2C1C",
|
|
83772
|
+
"#D17D00"
|
|
83770
83773
|
]
|
|
83771
83774
|
});
|
|
83772
83775
|
editor.editorCommandProviders.registerCommandProvider(new TextCommandProvider(editor));
|
|
@@ -83867,7 +83870,7 @@ ${data2.flowchartText}
|
|
|
83867
83870
|
}
|
|
83868
83871
|
}
|
|
83869
83872
|
});
|
|
83870
|
-
editor.version = "2.1.8-beta.
|
|
83873
|
+
editor.version = "2.1.8-beta.6";
|
|
83871
83874
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
83872
83875
|
window.setReauthFail = (fail) => {
|
|
83873
83876
|
window.isReauthError = fail;
|
|
@@ -83962,7 +83965,7 @@ ${data2.flowchartText}
|
|
|
83962
83965
|
if (!clientType.isMobile) {
|
|
83963
83966
|
OnesEditorToolbar.register(editor);
|
|
83964
83967
|
}
|
|
83965
|
-
editor.version = "2.1.8-beta.
|
|
83968
|
+
editor.version = "2.1.8-beta.6";
|
|
83966
83969
|
return editor;
|
|
83967
83970
|
}
|
|
83968
83971
|
async function showDocVersions(editor, options, serverUrl) {
|