@bigbinary/neeto-molecules 1.0.49 → 1.0.51

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.
@@ -1,5 +1,5 @@
1
+ import { withImmutableActions, useHotKeys } from '@bigbinary/neeto-commons-frontend/react-utils';
1
2
  import React, { useDebugValue } from 'react';
2
- import { useHotKeys } from '@bigbinary/neeto-commons-frontend/react-utils';
3
3
  import { Close } from '@bigbinary/neeto-icons';
4
4
  import { Typography, Kbd, Button } from '@bigbinary/neetoui';
5
5
  import { manager } from '@bigbinary/neetoui/managers';
@@ -601,7 +601,8 @@ function shallow(objA, objB) {
601
601
  return true;
602
602
  }
603
603
 
604
- var useKeyboardShortcutsStore = create(function (set) {
604
+ /** @type {import("neetocommons/react-utils").ZustandStoreHook} */
605
+ var useKeyboardShortcutsStore = create(withImmutableActions(function (set) {
605
606
  return {
606
607
  isOpen: false,
607
608
  setIsOpen: function setIsOpen(arg) {
@@ -618,7 +619,7 @@ var useKeyboardShortcutsStore = create(function (set) {
618
619
  }
619
620
  }
620
621
  };
621
- });
622
+ }));
622
623
  var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
623
624
  return useKeyboardShortcutsStore(function (_ref) {
624
625
  var isOpen = _ref.isOpen,