@worktile/theia 2.3.1 → 2.3.2

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.
@@ -13282,7 +13282,7 @@
13282
13282
  TheQuickInsertComponent.prototype.checkStatus = function () {
13283
13283
  var _a;
13284
13284
  var editor = this.editor;
13285
- if (this.isVisible && isCleanEmptyParagraph(editor) && !this.hasExcludeAttribute()) {
13285
+ if (this.isVisible && isCleanEmptyParagraph(editor) && !this.hasExcludeAttribute() && !this.isRichMediaScope()) {
13286
13286
  var block = slate.Node.ancestor(editor, [(_a = editor === null || editor === void 0 ? void 0 : editor.selection) === null || _a === void 0 ? void 0 : _a.anchor.path[0]]);
13287
13287
  var rootNode = i1.AngularEditor.toDOMNode(editor, block);
13288
13288
  this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
@@ -13294,10 +13294,12 @@
13294
13294
  var _a;
13295
13295
  var editor = this.editor;
13296
13296
  if (editor === null || editor === void 0 ? void 0 : editor.selection) {
13297
+ var editableElement = i1.EDITOR_TO_ELEMENT.get(editor);
13298
+ var paddingLeft = window.getComputedStyle(editableElement, null).paddingLeft;
13299
+ var paddingLeftPixels = coercePixelsFromCssValue(paddingLeft);
13297
13300
  var block = slate.Node.ancestor(editor, [(_a = editor === null || editor === void 0 ? void 0 : editor.selection) === null || _a === void 0 ? void 0 : _a.anchor.path[0]]);
13298
13301
  var rootNode = i1.AngularEditor.toDOMNode(editor, block);
13299
- var firstElementChild = rootNode.firstElementChild;
13300
- return (firstElementChild === null || firstElementChild === void 0 ? void 0 : firstElementChild.offsetLeft) > 0;
13302
+ return rootNode.offsetLeft > paddingLeftPixels;
13301
13303
  }
13302
13304
  return false;
13303
13305
  };