@ones-editor/editor 2.2.8-beta.3 → 2.2.8-beta.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
@@ -25715,7 +25715,8 @@ var __publicField = (obj, key, value) => {
25715
25715
  if (enableHorizontal) {
25716
25716
  animateScrollTo(target, {
25717
25717
  elementToScroll: getScrollContainer$1(target, { horizontal: true }),
25718
- disableHorizontal: false
25718
+ disableHorizontal: false,
25719
+ speed: options.speed
25719
25720
  });
25720
25721
  }
25721
25722
  const mobileClient = editor.options.componentsOptions.mobile;
@@ -25723,7 +25724,8 @@ var __publicField = (obj, key, value) => {
25723
25724
  elementToScroll: (_a = options.elementToScroll) != null ? _a : getScrollContainer$1(target),
25724
25725
  disableHorizontal: true,
25725
25726
  verticalOffset: options == null ? void 0 : options.verticalOffset,
25726
- getClientHeight: mobileClient && clientType.isMobile ? mobileClient.getViewPortHeight : void 0
25727
+ getClientHeight: mobileClient && clientType.isMobile ? mobileClient.getViewPortHeight : void 0,
25728
+ speed: options.speed
25727
25729
  });
25728
25730
  } else if (target.scrollIntoView) {
25729
25731
  target.scrollIntoView({
@@ -40130,7 +40132,13 @@ ${codeText}
40130
40132
  phase: "main",
40131
40133
  fn: ({ state }) => {
40132
40134
  const popper = state.elements.popper;
40133
- if (popper.getBoundingClientRect().top < overflowBoundary.getBoundingClientRect().top) {
40135
+ const popperRect = popper.getBoundingClientRect();
40136
+ const overflowBoundaryRect = overflowBoundary.getBoundingClientRect();
40137
+ const topCheck = popperRect.top < overflowBoundaryRect.top;
40138
+ const bottomCheck = popperRect.bottom > overflowBoundaryRect.bottom;
40139
+ const leftCheck = popperRect.left < overflowBoundaryRect.left;
40140
+ const rightCheck = popperRect.right > overflowBoundaryRect.right;
40141
+ if (topCheck || bottomCheck || leftCheck || rightCheck) {
40134
40142
  popper.setAttribute("data-tippy-hidden", "");
40135
40143
  } else {
40136
40144
  popper.removeAttribute("data-tippy-hidden");
@@ -88326,7 +88334,7 @@ ${data2.flowchartText}
88326
88334
  }
88327
88335
  }
88328
88336
  });
88329
- editor.version = "2.2.8-beta.3";
88337
+ editor.version = "2.2.8-beta.5";
88330
88338
  if (Logger$2.level === LogLevel.DEBUG) {
88331
88339
  window.setReauthFail = (fail) => {
88332
88340
  window.isReauthError = fail;
@@ -88427,7 +88435,7 @@ ${data2.flowchartText}
88427
88435
  });
88428
88436
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88429
88437
  OnesEditorToolbar.register(editor);
88430
- editor.version = "2.2.8-beta.3";
88438
+ editor.version = "2.2.8-beta.5";
88431
88439
  return editor;
88432
88440
  }
88433
88441
  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.8-beta.3",
3
+ "version": "2.2.8-beta.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",