vim-web 0.3.44-dev.35 → 0.3.44-dev.36
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
|
@@ -75906,14 +75906,14 @@ function useSectionBox(adapter) {
|
|
|
75906
75906
|
topOffset.useConfirm((v) => sanitize(v, true));
|
|
75907
75907
|
sideOffset.useConfirm((v) => sanitize(v, true));
|
|
75908
75908
|
bottomOffset.useConfirm((v) => sanitize(v, true));
|
|
75909
|
-
topOffset.useOnChange((v) =>
|
|
75910
|
-
sideOffset.useOnChange((v) =>
|
|
75911
|
-
bottomOffset.useOnChange((v) =>
|
|
75909
|
+
topOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75910
|
+
sideOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75911
|
+
bottomOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
|
|
75912
75912
|
auto.useOnChange((v) => {
|
|
75913
75913
|
if (v) sectionSelection.call();
|
|
75914
75914
|
});
|
|
75915
75915
|
visible2.useOnChange((v) => adapter.setVisible(v));
|
|
75916
|
-
const
|
|
75916
|
+
const sectionBox2 = useArgActionRef((baseBox) => {
|
|
75917
75917
|
if (baseBox === void 0) return;
|
|
75918
75918
|
boxRef.current = baseBox;
|
|
75919
75919
|
const newBox = addBox(baseBox, offsetsToBox3(topOffset.get(), sideOffset.get(), bottomOffset.get()));
|
|
@@ -75922,14 +75922,14 @@ function useSectionBox(adapter) {
|
|
|
75922
75922
|
const sectionSelection = useFuncRef(async () => {
|
|
75923
75923
|
try {
|
|
75924
75924
|
const box = await adapter.getSelectionBox() ?? await adapter.getRendererBox();
|
|
75925
|
-
|
|
75925
|
+
sectionBox2.call(box);
|
|
75926
75926
|
} catch (e) {
|
|
75927
75927
|
console.error(e);
|
|
75928
75928
|
}
|
|
75929
75929
|
});
|
|
75930
75930
|
const sectionReset = useFuncRef(async () => {
|
|
75931
75931
|
const box = await adapter.getRendererBox();
|
|
75932
|
-
|
|
75932
|
+
sectionBox2.call(box);
|
|
75933
75933
|
});
|
|
75934
75934
|
return {
|
|
75935
75935
|
enable,
|
|
@@ -75941,7 +75941,8 @@ function useSectionBox(adapter) {
|
|
|
75941
75941
|
bottomOffset,
|
|
75942
75942
|
sectionSelection,
|
|
75943
75943
|
sectionReset,
|
|
75944
|
-
|
|
75944
|
+
sectionBox: sectionBox2,
|
|
75945
|
+
getBox: () => adapter.getBox()
|
|
75945
75946
|
};
|
|
75946
75947
|
}
|
|
75947
75948
|
const sanitize = (value, strict) => {
|