vim-web 0.3.44-dev.6 → 0.3.44-dev.8

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
@@ -67862,9 +67862,9 @@ function controlBarSectionBox(section, hasSelection) {
67862
67862
  id: elementIds.buttonSectionBoxSettings,
67863
67863
  tip: "Section Settings",
67864
67864
  enabled: () => section.getEnable(),
67865
- isOn: () => section.getOffsetVisible(),
67865
+ isOn: () => section.getShowOffsetPanel(),
67866
67866
  style: (on) => buttonDefaultStyle(on),
67867
- action: () => section.setOffsetsVisible(!section.getOffsetVisible()),
67867
+ action: () => section.setShowOffsetPanel(!section.getShowOffsetPanel()),
67868
67868
  icon: slidersHoriz
67869
67869
  }
67870
67870
  ]
@@ -75717,8 +75717,8 @@ function SectionBoxPanel(props) {
75717
75717
  resizeObserver.disconnect();
75718
75718
  }
75719
75719
  };
75720
- }, [props.state.getOffsetVisible()]);
75721
- if (!props.state.getOffsetVisible()) return null;
75720
+ }, [props.state.getShowOffsetPanel()]);
75721
+ if (!props.state.getShowOffsetPanel()) return null;
75722
75722
  const renderField = (id2, label, field) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "vim-sectionbox-offsets-entry vc-text-xs vc-flex vc-items-center vc-justify-center vc-justify-between vc-my-2", children: [
75723
75723
  /* @__PURE__ */ jsxRuntimeExports.jsx("dt", { className: "vc-w-1/2 vc-inline", children: label }),
75724
75724
  /* @__PURE__ */ jsxRuntimeExports.jsx("dd", { className: "vc-w-1/3 vc-inline", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -75726,8 +75726,8 @@ function SectionBoxPanel(props) {
75726
75726
  {
75727
75727
  id: id2,
75728
75728
  type: "text",
75729
- value: props.state.getText(field),
75730
- onChange: (e) => props.state.setText(field, e.target.value),
75729
+ value: props.state.getOffsetText(field),
75730
+ onChange: (e) => props.state.setOffsetText(field, e.target.value),
75731
75731
  className: "vc-border vc-inline vc-border-gray-300 vc-py-1 vc-w-full vc-px-1",
75732
75732
  onBlur: () => props.state.validate(field)
75733
75733
  }
@@ -75751,7 +75751,7 @@ function SectionBoxPanel(props) {
75751
75751
  "button",
75752
75752
  {
75753
75753
  className: "vc-flex vc-border-none vc-bg-transparent vc-text-sm vc-cursor-pointer",
75754
- onClick: () => props.state.setOffsetsVisible(false),
75754
+ onClick: () => props.state.setShowOffsetPanel(false),
75755
75755
  children: close({ height: 12, width: 12, fill: "currentColor" })
75756
75756
  }
75757
75757
  )
@@ -75867,10 +75867,11 @@ function useSectionBox(adapter) {
75867
75867
  setVisible,
75868
75868
  sectionSelection,
75869
75869
  sectionReset: resetBox,
75870
- getOffsetVisible: () => offsetsVisible,
75871
- setOffsetsVisible,
75872
- getText: (field) => offsets[field],
75873
- setText,
75870
+ section: setBox,
75871
+ getShowOffsetPanel: () => offsetsVisible,
75872
+ setShowOffsetPanel: setOffsetsVisible,
75873
+ getOffsetText: (field) => offsets[field],
75874
+ setOffsetText: setText,
75874
75875
  getAuto: () => auto,
75875
75876
  setAuto,
75876
75877
  validate
@@ -75984,6 +75985,7 @@ function VimComponent(props) {
75984
75985
  isolation,
75985
75986
  camera: camera2,
75986
75987
  settings: settings2,
75988
+ sectionBox: sectionBox2,
75987
75989
  contextMenu: {
75988
75990
  customize: (v) => setcontextMenu(() => v)
75989
75991
  },
@@ -76449,7 +76451,7 @@ function UltraComponent(props) {
76449
76451
  props.viewer.selection.onValueChanged.subscribe(() => {
76450
76452
  setSelectState((i) => (i + 1) % 2);
76451
76453
  });
76452
- props.onMount(createComponentRef(props.viewer, modal));
76454
+ props.onMount(createComponentRef(props.viewer, modal, sectionBox2));
76453
76455
  }, []);
76454
76456
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76455
76457
  /* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
@@ -76469,7 +76471,7 @@ function UltraComponent(props) {
76469
76471
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { state: modal })
76470
76472
  ] });
76471
76473
  }
76472
- function createComponentRef(viewer, modal) {
76474
+ function createComponentRef(viewer, modal, sectionBox2) {
76473
76475
  function load(source) {
76474
76476
  const request2 = viewer.loadVim(source);
76475
76477
  void updateProgress(request2, modal);
@@ -76489,6 +76491,7 @@ function createComponentRef(viewer, modal) {
76489
76491
  return {
76490
76492
  viewer,
76491
76493
  modal,
76494
+ sectionBox: sectionBox2,
76492
76495
  dispose: () => {
76493
76496
  },
76494
76497
  load