@ones-editor/editor 1.1.3-bate.3 → 1.1.3-bate.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/dist/index.js
CHANGED
|
@@ -5411,15 +5411,17 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-embe
|
|
|
5411
5411
|
}
|
|
5412
5412
|
:root .iframe-embed-auth-error-tips {
|
|
5413
5413
|
width: 100%;
|
|
5414
|
-
height:
|
|
5415
|
-
line-height:
|
|
5414
|
+
height: 34px;
|
|
5415
|
+
line-height: 34px;
|
|
5416
5416
|
background-color: #f7f8fa;
|
|
5417
5417
|
text-align: center;
|
|
5418
5418
|
color: #bebfc2;
|
|
5419
|
+
box-shadow: 0px 2px 4px 0px rgba(45, 45, 46, 0.15), 0px 0px 1px 0px rgba(45, 45, 46, 0.1);
|
|
5419
5420
|
}
|
|
5420
5421
|
:root .iframe-embed-auth-error-tips span {
|
|
5421
5422
|
cursor: pointer;
|
|
5422
5423
|
color: #0064ff;
|
|
5424
|
+
user-select: none;
|
|
5423
5425
|
}.editor-content .editing {
|
|
5424
5426
|
background-color: rgba(205, 205, 205, 0.2509803922);
|
|
5425
5427
|
}
|
|
@@ -26777,9 +26779,8 @@ ${codeText}
|
|
|
26777
26779
|
if (!this.editor.isBlockWritable(block)) {
|
|
26778
26780
|
const deletedKeys = Array.from(delta.delete).filter((key) => key !== "comments");
|
|
26779
26781
|
const insertedKeys = Object.keys(delta.insert).filter((key) => key !== "comments");
|
|
26780
|
-
if (deletedKeys.length > 0 || insertedKeys.length > 0)
|
|
26781
|
-
|
|
26782
|
-
}
|
|
26782
|
+
if (deletedKeys.length > 0 || insertedKeys.length > 0)
|
|
26783
|
+
;
|
|
26783
26784
|
}
|
|
26784
26785
|
const oldData = cloneDeep__default.default(this.getBlockData(containerId, blockIndex));
|
|
26785
26786
|
const newData = cloneDeep__default.default(applyBlockDataDelta(oldData, delta));
|
|
@@ -34151,6 +34152,11 @@ ${codeText}
|
|
|
34151
34152
|
}
|
|
34152
34153
|
}
|
|
34153
34154
|
}
|
|
34155
|
+
emitPermissionError() {
|
|
34156
|
+
const err = new Error(PermissionError.msg);
|
|
34157
|
+
err.code = PermissionError.err;
|
|
34158
|
+
this.events.emit("error", err);
|
|
34159
|
+
}
|
|
34154
34160
|
emitAuthRecover() {
|
|
34155
34161
|
this.events.emit("authRecover");
|
|
34156
34162
|
}
|
|
@@ -34193,6 +34199,8 @@ ${codeText}
|
|
|
34193
34199
|
} finally {
|
|
34194
34200
|
this.end(false);
|
|
34195
34201
|
}
|
|
34202
|
+
} else if (err === PermissionError.err) {
|
|
34203
|
+
this.emitPermissionError();
|
|
34196
34204
|
} else {
|
|
34197
34205
|
logger$2n.error(`unknown message received: ${JSON.stringify(msg)}`);
|
|
34198
34206
|
this.emitAuthError();
|
|
@@ -64931,7 +64939,7 @@ ${codeText}
|
|
|
64931
64939
|
__publicField(this, "currentBlockElement", null);
|
|
64932
64940
|
__publicField(this, "resizing", false);
|
|
64933
64941
|
__publicField(this, "handleHoveringBlockChange", (newBlock, oldBlock) => {
|
|
64934
|
-
if (this.resizing
|
|
64942
|
+
if (this.resizing) {
|
|
64935
64943
|
return;
|
|
64936
64944
|
}
|
|
64937
64945
|
if (oldBlock && isWebpageBlock(oldBlock)) {
|
|
@@ -75080,6 +75088,7 @@ ${data.flowchartText}
|
|
|
75080
75088
|
exports2.FileExtError = FileExtError;
|
|
75081
75089
|
exports2.GroupOrder = GroupOrder;
|
|
75082
75090
|
exports2.HeadingBlockScrollListener = HeadingBlockScrollListener;
|
|
75091
|
+
exports2.IframeKindEmbedDocCallbacks = IframeKindEmbedDocCallbacks;
|
|
75083
75092
|
exports2.ImageBox = ImageBox;
|
|
75084
75093
|
exports2.InlineBoxCommandProvider = InlineBoxCommandProvider;
|
|
75085
75094
|
exports2.InputtingInsertion = InputtingInsertion;
|