vim-web 0.5.0-dev.15 → 0.5.0-dev.17

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/vim-web.js CHANGED
@@ -72792,7 +72792,7 @@ function scrollToSelection(div) {
72792
72792
  return;
72793
72793
  }
72794
72794
  if (rectElem.top < rectContainer.top || rectElem.top < 0) {
72795
- selection.scrollIntoView();
72795
+ selection.scrollIntoView({ block: "nearest", inline: "nearest" });
72796
72796
  }
72797
72797
  }
72798
72798
  const isControlKey = (e) => {
@@ -75346,7 +75346,7 @@ class ComponentLoader {
75346
75346
  }
75347
75347
  }
75348
75348
  function MessageBox(props) {
75349
- const [minimized, setMinimized] = React__default.useState(false);
75349
+ const [minimized, setMinimized] = React__default.useState(props.value.minimize ?? false);
75350
75350
  const p = props.value;
75351
75351
  if (!p.title || !p.body) return null;
75352
75352
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "vim-message-box vc-p-6 vc-max-h-[80%] vc-max-w-[80%] vc-w-[424px] vc-bg-white vc-rounded-md vc-shadow-message vc-shadow-[0px_4px_16px_rgba(33,39,51,0.5)] vc-font-roboto", children: [