@ones-editor/editor 2.1.1-beta.66 → 2.1.1-beta.68
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
|
@@ -425,7 +425,6 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-type
|
|
|
425
425
|
height: 100vh;
|
|
426
426
|
z-index: 9900;
|
|
427
427
|
overflow: hidden;
|
|
428
|
-
overscroll-behavior: contain;
|
|
429
428
|
}
|
|
430
429
|
div.editor-root > div.editor-content > div[data-type=editor-container] > div.container-blocks > div[data-type=editor-block][data-document-title] {
|
|
431
430
|
font-size: 30px;
|
|
@@ -1201,7 +1200,6 @@ div.tippy-box button {
|
|
|
1201
1200
|
max-width: 100%;
|
|
1202
1201
|
border-radius: 8px 8px 0px 0px;
|
|
1203
1202
|
box-shadow: 0px 0px 8px 0px rgba(45, 45, 46, 0.1019607843);
|
|
1204
|
-
overscroll-behavior: contain;
|
|
1205
1203
|
}
|
|
1206
1204
|
div[data-command-bar-id=mobile-bottom-menu] .editor-command-bar {
|
|
1207
1205
|
display: flex;
|
|
@@ -5845,7 +5843,7 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
5845
5843
|
div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .command-item .mobile-item-wrap .mobile-item-content {
|
|
5846
5844
|
height: 400px;
|
|
5847
5845
|
overflow-y: auto;
|
|
5848
|
-
overscroll-behavior:
|
|
5846
|
+
overscroll-behavior: none;
|
|
5849
5847
|
}
|
|
5850
5848
|
div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .command-item .mobile-item-wrap .mobile-item-content .mobile-item {
|
|
5851
5849
|
display: flex;
|
|
@@ -6436,8 +6434,13 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
6436
6434
|
border-top: 1px solid #DFE1E5;
|
|
6437
6435
|
}
|
|
6438
6436
|
.command-m-bar > .editor-command-bar-root {
|
|
6437
|
+
scrollbar-width: none;
|
|
6439
6438
|
padding: 0px;
|
|
6440
6439
|
overflow-x: auto;
|
|
6440
|
+
overscroll-behavior: none;
|
|
6441
|
+
}
|
|
6442
|
+
.command-m-bar > .editor-command-bar-root::-webkit-scrollbar {
|
|
6443
|
+
display: none;
|
|
6441
6444
|
}
|
|
6442
6445
|
.command-m-bar > .editor-command-bar-root.overflowing::after {
|
|
6443
6446
|
content: "";
|
|
@@ -6501,32 +6504,6 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
6501
6504
|
position: absolute;
|
|
6502
6505
|
right: 20px;
|
|
6503
6506
|
top: 20px;
|
|
6504
|
-
}
|
|
6505
|
-
.top-command-m-bar {
|
|
6506
|
-
position: fixed;
|
|
6507
|
-
z-index: 111;
|
|
6508
|
-
top: 0px;
|
|
6509
|
-
display: flex;
|
|
6510
|
-
flex-direction: column;
|
|
6511
|
-
align-items: center;
|
|
6512
|
-
background-color: antiquewhite;
|
|
6513
|
-
padding: 0 20px;
|
|
6514
|
-
width: 100%;
|
|
6515
|
-
}
|
|
6516
|
-
.top-command-m-bar .command-m-container {
|
|
6517
|
-
display: flex;
|
|
6518
|
-
width: 100%;
|
|
6519
|
-
}
|
|
6520
|
-
.top-command-m-bar .command-m-container .command-item {
|
|
6521
|
-
width: 80px;
|
|
6522
|
-
height: 40px;
|
|
6523
|
-
display: flex;
|
|
6524
|
-
align-items: center;
|
|
6525
|
-
justify-content: center;
|
|
6526
|
-
}
|
|
6527
|
-
html, body {
|
|
6528
|
-
height: 100%;
|
|
6529
|
-
overscroll-behavior: contain;
|
|
6530
6507
|
}[data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle,
|
|
6531
6508
|
.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle {
|
|
6532
6509
|
position: absolute;
|
|
@@ -25139,6 +25116,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25139
25116
|
return rect.right > visibleRect.right || rect.left < visibleRect.left;
|
|
25140
25117
|
}
|
|
25141
25118
|
function scrollIntoView$1(editor, target, options) {
|
|
25119
|
+
var _a;
|
|
25142
25120
|
if (!target) {
|
|
25143
25121
|
return;
|
|
25144
25122
|
}
|
|
@@ -25151,7 +25129,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25151
25129
|
});
|
|
25152
25130
|
}
|
|
25153
25131
|
animateScrollTo(target, {
|
|
25154
|
-
elementToScroll: getScrollContainer$1(target),
|
|
25132
|
+
elementToScroll: (_a = options.elementToScroll) != null ? _a : getScrollContainer$1(target),
|
|
25155
25133
|
disableHorizontal: true,
|
|
25156
25134
|
verticalOffset: options == null ? void 0 : options.verticalOffset
|
|
25157
25135
|
});
|
|
@@ -65000,7 +64978,7 @@ ${codeText}
|
|
|
65000
64978
|
}
|
|
65001
64979
|
get commands() {
|
|
65002
64980
|
var _a, _b, _c, _d;
|
|
65003
|
-
if (
|
|
64981
|
+
if (clientType.isMobile) {
|
|
65004
64982
|
return [];
|
|
65005
64983
|
}
|
|
65006
64984
|
let standardCommands = [];
|
|
@@ -82235,7 +82213,7 @@ ${content}
|
|
|
82235
82213
|
}
|
|
82236
82214
|
function getBlockProperties$5(editor, block) {
|
|
82237
82215
|
const properties = getStandardEmbedBlockProperties(editor, block, {
|
|
82238
|
-
presetIds: ["add-comment"],
|
|
82216
|
+
presetIds: editor.readonly ? [] : ["add-comment"],
|
|
82239
82217
|
extCommands: [{
|
|
82240
82218
|
id: "refresh",
|
|
82241
82219
|
name: i18n$1.t("webpage.command.refresh"),
|
|
@@ -83041,9 +83019,6 @@ ${content}
|
|
|
83041
83019
|
return false;
|
|
83042
83020
|
},
|
|
83043
83021
|
extCommands: (editor2, block2) => {
|
|
83044
|
-
if (editor2.readonly) {
|
|
83045
|
-
return [];
|
|
83046
|
-
}
|
|
83047
83022
|
const blockContent = getBlockContent(block2);
|
|
83048
83023
|
const drawioImg = blockContent.querySelector(".editor-drawio-content img");
|
|
83049
83024
|
return [{
|
|
@@ -83053,8 +83028,8 @@ ${content}
|
|
|
83053
83028
|
states: !drawioImg ? ["disabled"] : []
|
|
83054
83029
|
}];
|
|
83055
83030
|
},
|
|
83056
|
-
presetIds: ["edit"],
|
|
83057
|
-
extIds: ["separator", "add-comment"]
|
|
83031
|
+
presetIds: editor.readonly ? [] : ["edit"],
|
|
83032
|
+
extIds: editor.readonly ? [] : ["separator", "add-comment"]
|
|
83058
83033
|
});
|
|
83059
83034
|
return { ...properties, abstract: i18n$1.t("drawio.abstract") };
|
|
83060
83035
|
}
|
|
@@ -83288,12 +83263,17 @@ ${content}
|
|
|
83288
83263
|
plantuml: "https://plantuml.com/"
|
|
83289
83264
|
};
|
|
83290
83265
|
class GraphBlockCommands {
|
|
83291
|
-
constructor(graphType, properties) {
|
|
83292
|
-
|
|
83293
|
-
__publicField(this, "extIds", ["separator", "add-comment"]);
|
|
83266
|
+
constructor(editor, graphType, properties) {
|
|
83267
|
+
this.editor = editor;
|
|
83294
83268
|
this.graphType = graphType;
|
|
83295
83269
|
this.properties = properties;
|
|
83296
83270
|
}
|
|
83271
|
+
get presetIds() {
|
|
83272
|
+
return this.editor.readonly ? [] : ["edit"];
|
|
83273
|
+
}
|
|
83274
|
+
get extIds() {
|
|
83275
|
+
return this.editor.readonly ? [] : ["separator", "add-comment"];
|
|
83276
|
+
}
|
|
83297
83277
|
extCommands(editor, block) {
|
|
83298
83278
|
const commands = [
|
|
83299
83279
|
{
|
|
@@ -83302,9 +83282,6 @@ ${content}
|
|
|
83302
83282
|
icon: HelpIcon
|
|
83303
83283
|
}
|
|
83304
83284
|
];
|
|
83305
|
-
if (editor.readonly) {
|
|
83306
|
-
return commands;
|
|
83307
|
-
}
|
|
83308
83285
|
const blockContent = getBlockContent(block);
|
|
83309
83286
|
const graphImg = blockContent.querySelector("img.graph-embed-image");
|
|
83310
83287
|
const graphImgSrc = graphImg == null ? void 0 : graphImg.src;
|
|
@@ -83336,7 +83313,7 @@ ${content}
|
|
|
83336
83313
|
}
|
|
83337
83314
|
}
|
|
83338
83315
|
function getGraphEmbedBlockProperties(editor, block, type, properties) {
|
|
83339
|
-
const standardProperties = getStandardEmbedBlockProperties(editor, block, new GraphBlockCommands(type, properties));
|
|
83316
|
+
const standardProperties = getStandardEmbedBlockProperties(editor, block, new GraphBlockCommands(editor, type, properties));
|
|
83340
83317
|
return { ...standardProperties, abstract: lodash.exports.capitalize(type) };
|
|
83341
83318
|
}
|
|
83342
83319
|
class GraphBase {
|
|
@@ -86773,7 +86750,7 @@ ${data2.flowchartText}
|
|
|
86773
86750
|
}
|
|
86774
86751
|
}
|
|
86775
86752
|
});
|
|
86776
|
-
editor.version = "2.1.1-beta.
|
|
86753
|
+
editor.version = "2.1.1-beta.68";
|
|
86777
86754
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86778
86755
|
window.setReauthFail = (fail) => {
|
|
86779
86756
|
window.isReauthError = fail;
|
|
@@ -86871,7 +86848,7 @@ ${data2.flowchartText}
|
|
|
86871
86848
|
});
|
|
86872
86849
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86873
86850
|
OnesEditorToolbar.register(editor);
|
|
86874
|
-
editor.version = "2.1.1-beta.
|
|
86851
|
+
editor.version = "2.1.1-beta.68";
|
|
86875
86852
|
return editor;
|
|
86876
86853
|
}
|
|
86877
86854
|
async function showDocVersions(editor, options, serverUrl) {
|