@bigbinary/neeto-molecules 4.1.56 → 4.1.58
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/{ConfigureView-DAZrBZPv.js → ConfigureView-CLhj1NR4.js} +2 -2
- package/dist/ConfigureView-CLhj1NR4.js.map +1 -0
- package/dist/cjs/{ConfigureView-CAWRNNYI.js → ConfigureView-DuStircF.js} +3 -3
- package/dist/cjs/ConfigureView-DuStircF.js.map +1 -0
- package/dist/cjs/useKeyboardShortcutsPaneState-BG_xVteC.js +39 -0
- package/dist/cjs/useKeyboardShortcutsPaneState-BG_xVteC.js.map +1 -0
- package/dist/cjs/v2/ConfigurePageSidebar.js +2 -2
- package/dist/cjs/v2/FloatingActionMenu.js +10 -15
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/v2/KeyboardShortcuts.js +6 -36
- package/dist/cjs/v2/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/v2/Sidebar.js +3 -3
- package/dist/cjs/v2/Sidebar.js.map +1 -1
- package/dist/cjs/v2/SubHeader.js +3 -3
- package/dist/cjs/v2/SubHeader.js.map +1 -1
- package/dist/useKeyboardShortcutsPaneState-dNIbb_PI.js +37 -0
- package/dist/useKeyboardShortcutsPaneState-dNIbb_PI.js.map +1 -0
- package/dist/v2/ConfigurePageSidebar.js +2 -2
- package/dist/v2/FloatingActionMenu.js +8 -13
- package/dist/v2/FloatingActionMenu.js.map +1 -1
- package/dist/v2/KeyboardShortcuts.js +4 -34
- package/dist/v2/KeyboardShortcuts.js.map +1 -1
- package/dist/v2/Sidebar.js +3 -3
- package/dist/v2/Sidebar.js.map +1 -1
- package/dist/v2/SubHeader.js +3 -3
- package/dist/v2/SubHeader.js.map +1 -1
- package/package.json +2 -2
- package/dist/ConfigureView-DAZrBZPv.js.map +0 -1
- package/dist/cjs/ConfigureView-CAWRNNYI.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useShallow } from 'zustand/shallow';
|
|
2
|
+
import withImmutableActions from '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
|
|
3
|
+
import { create } from 'zustand';
|
|
4
|
+
|
|
5
|
+
/** @type {import("neetocommons/react-utils").ZustandStoreHook} */
|
|
6
|
+
var useKeyboardShortcutsStore = create(withImmutableActions(function (set) {
|
|
7
|
+
return {
|
|
8
|
+
isOpen: false,
|
|
9
|
+
setIsOpen: function setIsOpen(arg) {
|
|
10
|
+
if (typeof arg === "function") {
|
|
11
|
+
set(function (state) {
|
|
12
|
+
return {
|
|
13
|
+
isOpen: arg(state.isOpen)
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
set({
|
|
18
|
+
isOpen: arg
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}));
|
|
24
|
+
var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
|
|
25
|
+
var _useKeyboardShortcuts = useKeyboardShortcutsStore(useShallow(function (store) {
|
|
26
|
+
return {
|
|
27
|
+
isOpen: store["isOpen"],
|
|
28
|
+
setIsOpen: store["setIsOpen"]
|
|
29
|
+
};
|
|
30
|
+
})),
|
|
31
|
+
isOpen = _useKeyboardShortcuts.isOpen,
|
|
32
|
+
setIsOpen = _useKeyboardShortcuts.setIsOpen;
|
|
33
|
+
return [isOpen, setIsOpen];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { useKeyboardShortcutsPaneState as u };
|
|
37
|
+
//# sourceMappingURL=useKeyboardShortcutsPaneState-dNIbb_PI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcutsPaneState-dNIbb_PI.js","sources":["../src/v2/components/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js"],"sourcesContent":["import withImmutableActions from \"neetocommons/react-utils/withImmutableActions\";\nimport { create } from \"zustand\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useKeyboardShortcutsStore = create(\n withImmutableActions(set => ({\n isOpen: false,\n\n setIsOpen: arg => {\n if (typeof arg === \"function\") {\n set(state => ({ isOpen: arg(state.isOpen) }));\n } else {\n set({ isOpen: arg });\n }\n },\n }))\n);\n\nconst useKeyboardShortcutsPaneState = () => {\n const { isOpen, setIsOpen } = useKeyboardShortcutsStore.pick();\n\n return [isOpen, setIsOpen];\n};\n\nexport default useKeyboardShortcutsPaneState;\n"],"names":["useKeyboardShortcutsStore","create","withImmutableActions","set","isOpen","setIsOpen","arg","state","useKeyboardShortcutsPaneState","_useKeyboardShortcuts","useShallow","store"],"mappings":";;;;AAGA;AACA,IAAMA,yBAAyB,GAAGC,MAAM,CACtCC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,MAAM,EAAE,KAAK;AAEbC,IAAAA,SAAS,EAAE,SAAXA,SAASA,CAAEC,GAAG,EAAI;AAChB,MAAA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;QAC7BH,GAAG,CAAC,UAAAI,KAAK,EAAA;UAAA,OAAK;AAAEH,YAAAA,MAAM,EAAEE,GAAG,CAACC,KAAK,CAACH,MAAM;WAAG;AAAA,QAAA,CAAC,CAAC;AAC/C,MAAA,CAAC,MAAM;AACLD,QAAAA,GAAG,CAAC;AAAEC,UAAAA,MAAM,EAAEE;AAAI,SAAC,CAAC;AACtB,MAAA;AACF,IAAA;GACD;AAAA,CAAC,CACJ,CAAC;AAED,IAAME,6BAA6B,GAAG,SAAhCA,6BAA6BA,GAAS;AAC1C,EAAA,IAAAC,qBAAA,GAAAT,yBAAA,CAAAU,UAAA,WAAAC,KAAA,EAAA;AAAA,MAAA,OAAA;AAAQP,QAAAA,MAAM,EAAAO,KAAA,CAAA,QAAA,CAAA;AAAEN,QAAAA,SAAS,EAAAM,KAAA,CAAA,WAAA;AAAA,OAAA;AAAA,IAAA,CAAA,CAAA,CAAA;IAAjBP,MAAM,GAAAK,qBAAA,CAANL,MAAM;IAAEC,SAAS,GAAAI,qBAAA,CAATJ,SAAS;AAEzB,EAAA,OAAO,CAACD,MAAM,EAAEC,SAAS,CAAC;AAC5B;;;;"}
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { SidebarProvider, Sidebar, SidebarContent, SidebarTrigger } from '@bigbinary/neeto-atoms/primitives';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
|
-
import { C as ConfigureView } from '../ConfigureView-
|
|
5
|
+
import { C as ConfigureView } from '../ConfigureView-CLhj1NR4.js';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
8
8
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -13,7 +13,7 @@ import 'ramda';
|
|
|
13
13
|
import '@bigbinary/neeto-commons-frontend/react-utils/useRegisterNavigationCheckpoint';
|
|
14
14
|
import '@bigbinary/neeto-atoms';
|
|
15
15
|
import 'classnames';
|
|
16
|
-
import '@bigbinary/neeto-filters-frontend/
|
|
16
|
+
import '@bigbinary/neeto-filters-frontend/v2';
|
|
17
17
|
import '../createLucideIcon-mNMhCCpf.js';
|
|
18
18
|
|
|
19
19
|
var ConfigurePageSidebar = function ConfigurePageSidebar(_ref) {
|
|
@@ -10,7 +10,7 @@ import { isNotEmpty, isNotPresent, isPresent, truncate, humanize } from '@bigbin
|
|
|
10
10
|
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
11
11
|
import Profile from '@bigbinary/neeto-team-members-frontend/Profile';
|
|
12
12
|
import { isEmpty, toLower, mergeDeepLeft, not } from 'ramda';
|
|
13
|
-
import KeyboardShortcuts from '
|
|
13
|
+
import KeyboardShortcuts from './KeyboardShortcuts.js';
|
|
14
14
|
import SubscriptionUpgradeRequestModal from '../SubscriptionUpgradeRequestModal.js';
|
|
15
15
|
import classnames from 'classnames';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
@@ -31,22 +31,18 @@ import useLocalStorage from '@bigbinary/neeto-commons-frontend/react-utils/useLo
|
|
|
31
31
|
import { getFromLocalStorage } from '@bigbinary/neeto-commons-frontend/utils';
|
|
32
32
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils/axios';
|
|
33
33
|
import { removeFromLocalStorage } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
34
|
-
import CopyToClipboardButton from '
|
|
35
|
-
import '../useKeyboardShortcutsPaneState-
|
|
34
|
+
import CopyToClipboardButton from './CopyToClipboardButton.js';
|
|
35
|
+
import '../useKeyboardShortcutsPaneState-dNIbb_PI.js';
|
|
36
36
|
import 'zustand/shallow';
|
|
37
37
|
import '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
|
|
38
38
|
import 'zustand';
|
|
39
|
-
import '@bigbinary/neeto-icons/Close';
|
|
40
|
-
import '@bigbinary/neetoui/Typography';
|
|
41
|
-
import '@bigbinary/neetoui/Button';
|
|
42
39
|
import '@bigbinary/neetoui/managers';
|
|
43
40
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
44
|
-
import '@bigbinary/neetoui/Kbd';
|
|
45
41
|
import '../ua-parser-OzUiuIwt.js';
|
|
46
|
-
import '../
|
|
42
|
+
import '../x-B1Er0oV4.js';
|
|
43
|
+
import '@bigbinary/neetoui/Button';
|
|
47
44
|
import '@bigbinary/neetoui/Modal';
|
|
48
|
-
import '@bigbinary/
|
|
49
|
-
import '@bigbinary/neeto-icons/Check';
|
|
45
|
+
import '@bigbinary/neetoui/Typography';
|
|
50
46
|
|
|
51
47
|
/**
|
|
52
48
|
* @license lucide-react v1.7.0 - ISC
|
|
@@ -1202,9 +1198,8 @@ var WorkspaceMenu = function WorkspaceMenu() {
|
|
|
1202
1198
|
children: globalProps$1.organization.subdomain
|
|
1203
1199
|
}), /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
1204
1200
|
className: "flex-shrink-0",
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
value: globalProps$1.organization.subdomain
|
|
1201
|
+
value: globalProps$1.organization.subdomain,
|
|
1202
|
+
variant: "ghost"
|
|
1208
1203
|
})]
|
|
1209
1204
|
})]
|
|
1210
1205
|
})
|