@ones-editor/editor 2.1.8-beta.3 → 2.1.8-beta.5
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +85 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4959,6 +4959,60 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
4959
4959
|
border-radius: 0px;
|
|
4960
4960
|
pointer-events: none;
|
|
4961
4961
|
}
|
|
4962
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-inserted-block {
|
|
4963
|
+
position: relative;
|
|
4964
|
+
}
|
|
4965
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-inserted-block::before {
|
|
4966
|
+
content: var(--history-mask-identifier);
|
|
4967
|
+
color: transparent;
|
|
4968
|
+
position: absolute;
|
|
4969
|
+
top: -5px;
|
|
4970
|
+
bottom: -5px;
|
|
4971
|
+
left: -5px;
|
|
4972
|
+
right: -5px;
|
|
4973
|
+
background-color: var(--op-selected-color);
|
|
4974
|
+
border-radius: 3px;
|
|
4975
|
+
pointer-events: none;
|
|
4976
|
+
right: calc(100% - 360px - 5px);
|
|
4977
|
+
}
|
|
4978
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-deleted-block {
|
|
4979
|
+
position: relative;
|
|
4980
|
+
}
|
|
4981
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-deleted-block::before {
|
|
4982
|
+
content: var(--history-mask-identifier);
|
|
4983
|
+
color: transparent;
|
|
4984
|
+
position: absolute;
|
|
4985
|
+
top: -5px;
|
|
4986
|
+
bottom: -5px;
|
|
4987
|
+
left: -5px;
|
|
4988
|
+
right: -5px;
|
|
4989
|
+
background-color: var(--op-selected-color);
|
|
4990
|
+
border-radius: 3px;
|
|
4991
|
+
pointer-events: none;
|
|
4992
|
+
mask-repeat: no-repeat;
|
|
4993
|
+
mask-position: center;
|
|
4994
|
+
mask-size: auto clamp(20px, 10%, 60px);
|
|
4995
|
+
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjAzMjggMjkuNjIzMkw0OC41NjE2IDExLjA2MTZNMzAuMDMyOCAyOS42MjMyTDQ4LjU2MTYgNDguMTg0N00zMC4wMzI4IDI5LjYyMzJMMTEuNDM4NCA0OC4xODQ3TTMwLjAzMjggMjkuNjIzMkwxMS40Mzg0IDExLjA2MTYiIHN0cm9rZT0iI0IyMUI1NyIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
|
|
4996
|
+
background-color: var(--op-color);
|
|
4997
|
+
z-index: 1;
|
|
4998
|
+
right: calc(100% - 360px - 5px);
|
|
4999
|
+
}
|
|
5000
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-deleted-block {
|
|
5001
|
+
position: relative;
|
|
5002
|
+
}
|
|
5003
|
+
.editor-root.history [data-block-type=embed][data-embed-type=office].history-deleted-block::after {
|
|
5004
|
+
content: var(--history-mask-identifier);
|
|
5005
|
+
color: transparent;
|
|
5006
|
+
position: absolute;
|
|
5007
|
+
top: -5px;
|
|
5008
|
+
bottom: -5px;
|
|
5009
|
+
left: -5px;
|
|
5010
|
+
right: -5px;
|
|
5011
|
+
background-color: var(--op-selected-color);
|
|
5012
|
+
border-radius: 3px;
|
|
5013
|
+
pointer-events: none;
|
|
5014
|
+
right: calc(100% - 360px - 5px);
|
|
5015
|
+
}
|
|
4962
5016
|
.editor-root.history .list-block.history-inserted-block {
|
|
4963
5017
|
position: relative;
|
|
4964
5018
|
}
|
|
@@ -5067,10 +5121,10 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5067
5121
|
border-radius: 3px;
|
|
5068
5122
|
pointer-events: none;
|
|
5069
5123
|
}
|
|
5070
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-inserted-block {
|
|
5124
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-inserted-block {
|
|
5071
5125
|
position: relative;
|
|
5072
5126
|
}
|
|
5073
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-inserted-block::before {
|
|
5127
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-inserted-block::before {
|
|
5074
5128
|
content: var(--history-mask-identifier);
|
|
5075
5129
|
color: transparent;
|
|
5076
5130
|
position: absolute;
|
|
@@ -5082,10 +5136,10 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5082
5136
|
border-radius: 3px;
|
|
5083
5137
|
pointer-events: none;
|
|
5084
5138
|
}
|
|
5085
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-deleted-block {
|
|
5139
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-deleted-block {
|
|
5086
5140
|
position: relative;
|
|
5087
5141
|
}
|
|
5088
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-deleted-block::before {
|
|
5142
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-deleted-block::before {
|
|
5089
5143
|
content: var(--history-mask-identifier);
|
|
5090
5144
|
color: transparent;
|
|
5091
5145
|
position: absolute;
|
|
@@ -5103,10 +5157,10 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5103
5157
|
background-color: var(--op-color);
|
|
5104
5158
|
z-index: 1;
|
|
5105
5159
|
}
|
|
5106
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-deleted-block {
|
|
5160
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-deleted-block {
|
|
5107
5161
|
position: relative;
|
|
5108
5162
|
}
|
|
5109
|
-
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], .table-block, .layout-block).history-deleted-block::after {
|
|
5163
|
+
.editor-root.history [data-type=editor-block]:not(.list-block, .text-block, [data-style-quoted=true], [data-block-type=embed][data-embed-type=office], .table-block, .layout-block).history-deleted-block::after {
|
|
5110
5164
|
content: var(--history-mask-identifier);
|
|
5111
5165
|
color: transparent;
|
|
5112
5166
|
position: absolute;
|
|
@@ -5185,10 +5239,29 @@ div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container]
|
|
|
5185
5239
|
border-radius: 0px;
|
|
5186
5240
|
pointer-events: none;
|
|
5187
5241
|
}
|
|
5188
|
-
.editor-root.history .
|
|
5242
|
+
.editor-root.history .mention-box.history-inserted-box {
|
|
5243
|
+
position: relative;
|
|
5244
|
+
}
|
|
5245
|
+
.editor-root.history .mention-box.history-inserted-box::before {
|
|
5246
|
+
content: var(--history-mask-identifier);
|
|
5247
|
+
color: transparent;
|
|
5248
|
+
position: absolute;
|
|
5249
|
+
top: 0px;
|
|
5250
|
+
bottom: 0px;
|
|
5251
|
+
left: 4px;
|
|
5252
|
+
right: 4px;
|
|
5253
|
+
background-color: var(--op-selected-color);
|
|
5254
|
+
border-radius: 0px;
|
|
5255
|
+
pointer-events: none;
|
|
5256
|
+
}
|
|
5257
|
+
.editor-root.history .mention-box.history-deleted-box {
|
|
5258
|
+
text-decoration: line-through;
|
|
5259
|
+
color: var(--primary-color);
|
|
5260
|
+
}
|
|
5261
|
+
.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 {
|
|
5189
5262
|
position: relative;
|
|
5190
5263
|
}
|
|
5191
|
-
.editor-root.history .history-inserted-box:not(.status-box, .file-box, .math-box)::before {
|
|
5264
|
+
.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 {
|
|
5192
5265
|
content: var(--history-mask-identifier);
|
|
5193
5266
|
color: transparent;
|
|
5194
5267
|
position: absolute;
|
|
@@ -75164,7 +75237,8 @@ ${content}
|
|
|
75164
75237
|
return this.applyGapToRect(maskRect);
|
|
75165
75238
|
}
|
|
75166
75239
|
logger$s.warn("unknown tooltip element", reference.tagName, reference.className);
|
|
75167
|
-
|
|
75240
|
+
const rect = reference.getBoundingClientRect();
|
|
75241
|
+
return this.applyGapToRect(rect);
|
|
75168
75242
|
}
|
|
75169
75243
|
}
|
|
75170
75244
|
const logger$r = getLogger("version-dialog");
|
|
@@ -83813,7 +83887,7 @@ ${data2.flowchartText}
|
|
|
83813
83887
|
}
|
|
83814
83888
|
}
|
|
83815
83889
|
});
|
|
83816
|
-
editor.version = "2.1.8-beta.
|
|
83890
|
+
editor.version = "2.1.8-beta.5";
|
|
83817
83891
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
83818
83892
|
window.setReauthFail = (fail) => {
|
|
83819
83893
|
window.isReauthError = fail;
|
|
@@ -83908,7 +83982,7 @@ ${data2.flowchartText}
|
|
|
83908
83982
|
if (!clientType.isMobile) {
|
|
83909
83983
|
OnesEditorToolbar.register(editor);
|
|
83910
83984
|
}
|
|
83911
|
-
editor.version = "2.1.8-beta.
|
|
83985
|
+
editor.version = "2.1.8-beta.5";
|
|
83912
83986
|
return editor;
|
|
83913
83987
|
}
|
|
83914
83988
|
async function showDocVersions(editor, options, serverUrl) {
|