vim-web 0.3.44-dev.14 → 0.3.44-dev.15

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
@@ -75879,9 +75879,12 @@ function useSectionBox(adapter) {
75879
75879
  bottomOffset.set("1");
75880
75880
  void sectionReset.call();
75881
75881
  });
75882
- topOffset.useValidate((v) => sanitize(v, false));
75883
- sideOffset.useValidate((v) => sanitize(v, false));
75884
- bottomOffset.useValidate((v) => sanitize(v, false));
75882
+ auto.useValidate((v) => v && enable.get());
75883
+ visible2.useValidate((v) => enable.get() && v);
75884
+ showOffsetPanel.useValidate((v) => enable.get() && v);
75885
+ topOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75886
+ sideOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75887
+ bottomOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75885
75888
  topOffset.useConfirm((v) => sanitize(v, true));
75886
75889
  sideOffset.useConfirm((v) => sanitize(v, true));
75887
75890
  bottomOffset.useConfirm((v) => sanitize(v, true));
@@ -75891,12 +75894,12 @@ function useSectionBox(adapter) {
75891
75894
  auto.useOnChange((v) => {
75892
75895
  if (v) sectionSelection.call();
75893
75896
  });
75897
+ visible2.useOnChange((v) => adapter.setVisible(v));
75894
75898
  useEffect(() => {
75895
75899
  return adapter.onSelectionChanged.sub(() => {
75896
75900
  if (auto.get()) sectionSelection.call();
75897
75901
  });
75898
75902
  }, []);
75899
- visible2.useOnChange((v) => adapter.setVisible(v));
75900
75903
  const section = useArgActionRef((baseBox) => {
75901
75904
  boxRef.current = baseBox;
75902
75905
  const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));