vim-web 0.3.44-dev.72 → 0.3.44-dev.73

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
@@ -74567,6 +74567,26 @@ async function getFamilyTypeNameMap(document2) {
74567
74567
  })
74568
74568
  );
74569
74569
  }
74570
+ class MutableState {
74571
+ constructor(initial) {
74572
+ __publicField(this, "_value");
74573
+ __publicField(this, "_onChange", new distExports.SimpleEventDispatcher());
74574
+ this._value = initial;
74575
+ }
74576
+ get() {
74577
+ return this._value;
74578
+ }
74579
+ set(value) {
74580
+ if (value === this._value) return;
74581
+ this._value = value;
74582
+ this._onChange.dispatch(value);
74583
+ }
74584
+ confirm() {
74585
+ }
74586
+ get onChange() {
74587
+ return this._onChange.asEvent();
74588
+ }
74589
+ }
74570
74590
  function useRefresher() {
74571
74591
  const [refresh, setRefresh] = useState(false);
74572
74592
  return {
@@ -74801,6 +74821,7 @@ function useArgFuncRef(fn) {
74801
74821
  }
74802
74822
  const reactUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74803
74823
  __proto__: null,
74824
+ MutableState,
74804
74825
  useActionRef,
74805
74826
  useArgActionRef,
74806
74827
  useArgFuncRef,