@ones-editor/editor 2.1.1-beta.67 → 2.1.1-beta.69

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: contain;
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
  });
@@ -49751,6 +49729,7 @@ ${codeText}
49751
49729
  this.linkPopup.addListener("show", this.onShow);
49752
49730
  this.linkPopup.addListener("shown", this.handleShown);
49753
49731
  this.linkPopup.manualShow(target);
49732
+ tippy$1.hideAll();
49754
49733
  });
49755
49734
  this.editor = editor;
49756
49735
  this.content = content;
@@ -59157,6 +59136,17 @@ $$${mathData.mathjaxText}$$
59157
59136
  name: "",
59158
59137
  type: "separator"
59159
59138
  };
59139
+ function isCodeTextBlock$1(editor, block) {
59140
+ if (!isTextKindBlock(editor, block)) {
59141
+ return false;
59142
+ }
59143
+ const container = getParentContainer(block);
59144
+ const parentBlock = getParentBlock(container);
59145
+ if (!parentBlock) {
59146
+ return false;
59147
+ }
59148
+ return getBlockType(parentBlock) === "code";
59149
+ }
59160
59150
  class ReadonlyToolbar {
59161
59151
  constructor(editor) {
59162
59152
  __publicField(this, "toolbar");
@@ -59352,6 +59342,9 @@ $$${mathData.mathjaxText}$$
59352
59342
  if (!firstBlock) {
59353
59343
  return;
59354
59344
  }
59345
+ if (isCodeTextBlock$1(this.editor, firstBlock.block)) {
59346
+ return;
59347
+ }
59355
59348
  if (selectedBlocks.length === 1) {
59356
59349
  if (isEmbedBlock(firstBlock.block)) {
59357
59350
  return;
@@ -86772,7 +86765,7 @@ ${data2.flowchartText}
86772
86765
  }
86773
86766
  }
86774
86767
  });
86775
- editor.version = "2.1.1-beta.67";
86768
+ editor.version = "2.1.1-beta.69";
86776
86769
  if (Logger$2.level === LogLevel.DEBUG) {
86777
86770
  window.setReauthFail = (fail) => {
86778
86771
  window.isReauthError = fail;
@@ -86870,7 +86863,7 @@ ${data2.flowchartText}
86870
86863
  });
86871
86864
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86872
86865
  OnesEditorToolbar.register(editor);
86873
- editor.version = "2.1.1-beta.67";
86866
+ editor.version = "2.1.1-beta.69";
86874
86867
  return editor;
86875
86868
  }
86876
86869
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.1.1-beta.67",
3
+ "version": "2.1.1-beta.69",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",