@ones-editor/editor 2.2.16-beta.5 → 2.2.16-beta.6

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
@@ -7036,7 +7036,7 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
7036
7036
  }
7037
7037
  [data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .line,
7038
7038
  .editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .line {
7039
- width: 4px;
7039
+ width: 2px;
7040
7040
  height: 16px;
7041
7041
  background-color: var(--primary-color);
7042
7042
  flex-grow: 1;
@@ -7044,8 +7044,8 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
7044
7044
  }
7045
7045
  [data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .circle,
7046
7046
  .editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle .circle {
7047
- width: 16px;
7048
- height: 16px;
7047
+ width: 8px;
7048
+ height: 8px;
7049
7049
  border-radius: 50%;
7050
7050
  flex-grow: 0;
7051
7051
  flex-shrink: 0;
@@ -81134,8 +81134,8 @@ ${content}
81134
81134
  },
81135
81135
  convertTo: convertTo$6
81136
81136
  };
81137
- const HANDLE_CIRCLE_SIZE = 12;
81138
- const HANDLE_WIDTH = 12;
81137
+ const HANDLE_CIRCLE_SIZE = 7;
81138
+ const HANDLE_WIDTH = 7;
81139
81139
  function createSelectHandle(type) {
81140
81140
  const container = createElement("div", ["select-handle", type], null);
81141
81141
  createElement("div", ["line"], container);
@@ -81238,12 +81238,12 @@ ${content}
81238
81238
  const endRect = getBlockCaretRect(this.editor, endBlock, end);
81239
81239
  const startToolsRect = startBlock.getBoundingClientRect();
81240
81240
  const endToolsRect = endBlock.getBoundingClientRect();
81241
- const startGripperHeight = startRect.height + HANDLE_CIRCLE_SIZE;
81242
- const endGripperHeight = endRect.height + HANDLE_CIRCLE_SIZE;
81241
+ const startGripperHeight = startToolsRect.height + HANDLE_CIRCLE_SIZE;
81242
+ const endGripperHeight = endToolsRect.height + HANDLE_CIRCLE_SIZE;
81243
81243
  const startX = startRect.left - startToolsRect.left - startBlock.clientLeft - HANDLE_WIDTH / 2;
81244
- const startY = startRect.top - startToolsRect.top - startBlock.clientTop - HANDLE_CIRCLE_SIZE;
81244
+ const startY = startBlock.clientTop - HANDLE_CIRCLE_SIZE;
81245
81245
  const endX = endRect.left - endToolsRect.left - endBlock.clientLeft - HANDLE_WIDTH / 2;
81246
- const endY = endRect.top - endToolsRect.top - endBlock.clientTop;
81246
+ const endY = endBlock.clientTop;
81247
81247
  this.startGripper.style.left = `${startX}px`;
81248
81248
  this.startGripper.style.top = `${startY}px`;
81249
81249
  this.endGripper.style.left = `${endX}px`;
@@ -88375,7 +88375,7 @@ ${data2.flowchartText}
88375
88375
  }
88376
88376
  }
88377
88377
  });
88378
- editor.version = "2.2.16-beta.5";
88378
+ editor.version = "2.2.16-beta.6";
88379
88379
  return editor;
88380
88380
  }
88381
88381
  function isDoc(doc2) {
@@ -88469,7 +88469,7 @@ ${data2.flowchartText}
88469
88469
  });
88470
88470
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88471
88471
  OnesEditorToolbar.register(editor);
88472
- editor.version = "2.2.16-beta.5";
88472
+ editor.version = "2.2.16-beta.6";
88473
88473
  return editor;
88474
88474
  }
88475
88475
  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.2.16-beta.5",
3
+ "version": "2.2.16-beta.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",