@bigbinary/neeto-molecules 1.0.50 → 1.0.52
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/BrowserSupport.cjs.js +252 -55
- package/dist/BrowserSupport.cjs.js.map +1 -1
- package/dist/BrowserSupport.js +254 -57
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/KeyboardShortcuts.cjs.js +4 -3
- package/dist/KeyboardShortcuts.cjs.js.map +1 -1
- package/dist/KeyboardShortcuts.js +4 -3
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +10 -6
- package/types/BrowserSupport.d.ts +42 -21
|
@@ -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
|
-
|
|
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,
|