vim-web 0.3.44-dev.10 → 0.3.44-dev.12

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.
@@ -75879,11 +75879,9 @@ Averrage Date/Second ${avgDataRatePS} kb
75879
75879
  topOffset.useConfirm((v) => sanitize(v, true));
75880
75880
  sideOffset.useConfirm((v) => sanitize(v, true));
75881
75881
  bottomOffset.useConfirm((v) => sanitize(v, true));
75882
- const offsetBox = React2.useMemo(
75883
- () => offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()),
75884
- [topOffset.get(), sideOffset.get(), bottomOffset.get()]
75885
- );
75886
- React2.useEffect(() => section(boxRef.current), [offsetBox]);
75882
+ topOffset.useRegister((v) => section(boxRef.current));
75883
+ sideOffset.useRegister((v) => section(boxRef.current));
75884
+ bottomOffset.useRegister((v) => section(boxRef.current));
75887
75885
  auto.useRegister((v) => {
75888
75886
  if (v) sectionSelection();
75889
75887
  });
@@ -75895,7 +75893,7 @@ Averrage Date/Second ${avgDataRatePS} kb
75895
75893
  visible2.useRegister((v) => adapter.setVisible(v));
75896
75894
  const section = (baseBox) => {
75897
75895
  boxRef.current = baseBox;
75898
- const newBox = addBox(baseBox, offsetBox);
75896
+ const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
75899
75897
  adapter.fitBox(newBox);
75900
75898
  };
75901
75899
  const sectionSelection = async () => {