@bigbinary/neeto-molecules 5.12.0 → 5.12.2
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/cjs/{useWhatsNewChangesCount-m9_McvpF.js → useWhatsNewChangesCount-CVyXNMR6.js} +70 -18
- package/dist/cjs/useWhatsNewChangesCount-CVyXNMR6.js.map +1 -0
- package/dist/cjs/v2/FloatingActionMenu.js +2 -2
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/v2/PublishBlock.js +12 -30
- package/dist/cjs/v2/PublishBlock.js.map +1 -1
- package/dist/cjs/v2/Sidebar.js +2 -2
- package/dist/cjs/v2/Sidebar.js.map +1 -1
- package/dist/{useWhatsNewChangesCount-CBvSgaUz.js → useWhatsNewChangesCount-QKnN3-nS.js} +71 -19
- package/dist/useWhatsNewChangesCount-QKnN3-nS.js.map +1 -0
- package/dist/v2/FloatingActionMenu.js +2 -2
- package/dist/v2/FloatingActionMenu.js.map +1 -1
- package/dist/v2/PublishBlock.js +13 -31
- package/dist/v2/PublishBlock.js.map +1 -1
- package/dist/v2/Sidebar.js +2 -2
- package/dist/v2/Sidebar.js.map +1 -1
- package/package.json +3 -3
- package/dist/cjs/useWhatsNewChangesCount-m9_McvpF.js.map +0 -1
- package/dist/useWhatsNewChangesCount-CBvSgaUz.js.map +0 -1
package/dist/cjs/{useWhatsNewChangesCount-m9_McvpF.js → useWhatsNewChangesCount-CVyXNMR6.js}
RENAMED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var useHotkeys = require('@bigbinary/neeto-hotkeys');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
+
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
6
7
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
8
|
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
8
9
|
var reactI18next = require('react-i18next');
|
|
9
10
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
10
11
|
var ramda = require('ramda');
|
|
11
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
12
12
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
var reactQuery = require('@tanstack/react-query');
|
|
14
14
|
var initializers = require('@bigbinary/neeto-commons-frontend/v2/initializers');
|
|
@@ -124,10 +124,10 @@ var useProductSwitcherHotkey = function useProductSwitcherHotkey(setIsOpen, prio
|
|
|
124
124
|
useHotkeys(PRODUCT_SWITCHER_HOTKEYS, handlerRef.current, PRODUCT_SWITCHER_HOTKEY_OPTIONS);
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
// Mirrors the grid layout `grid-cols-
|
|
127
|
+
// Mirrors the grid layout `grid-cols-1 sm:grid-cols-2` (sm breakpoint = 640px),
|
|
128
128
|
// so ArrowUp/ArrowDown move by the correct number of columns.
|
|
129
129
|
var getColumnsPerRow = function getColumnsPerRow() {
|
|
130
|
-
return window.innerWidth < 640 ?
|
|
130
|
+
return window.innerWidth < 640 ? 1 : 2;
|
|
131
131
|
};
|
|
132
132
|
var useKeyboardNavigation = function useKeyboardNavigation() {
|
|
133
133
|
var filteredApps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -268,25 +268,25 @@ var ProductCard$1 = function ProductCard(_ref) {
|
|
|
268
268
|
var isLocked = hasAccess === false;
|
|
269
269
|
var body = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
270
270
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
271
|
-
className: classnames("flex size-
|
|
271
|
+
className: classnames("flex size-10 shrink-0 items-center justify-center rounded-lg transition-colors [&>svg]:size-5", {
|
|
272
272
|
"bg-background shadow-sm": isCurrentApp,
|
|
273
273
|
"bg-muted": !isCurrentApp,
|
|
274
274
|
"opacity-45": isLocked
|
|
275
275
|
}),
|
|
276
276
|
children: /*#__PURE__*/jsxRuntime.jsx(Logo, {})
|
|
277
277
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
278
|
-
className: classnames("flex flex-
|
|
278
|
+
className: classnames("flex min-w-0 flex-1 flex-col text-start", {
|
|
279
279
|
"opacity-45": isLocked
|
|
280
280
|
}),
|
|
281
281
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
282
|
+
className: "pe-4",
|
|
282
283
|
lineClamp: 1,
|
|
283
|
-
variant: "
|
|
284
|
-
weight: "
|
|
284
|
+
variant: "body1",
|
|
285
|
+
weight: "medium",
|
|
285
286
|
children: name
|
|
286
287
|
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
287
|
-
className: "min-h-[2lh]",
|
|
288
288
|
color: "muted",
|
|
289
|
-
lineClamp:
|
|
289
|
+
lineClamp: 1,
|
|
290
290
|
variant: "caption",
|
|
291
291
|
children: description
|
|
292
292
|
})]
|
|
@@ -303,8 +303,8 @@ var ProductCard$1 = function ProductCard(_ref) {
|
|
|
303
303
|
return /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread$1(_objectSpread$1({
|
|
304
304
|
"data-testid": "".concat(normalizedName, "-app-card"),
|
|
305
305
|
type: "button",
|
|
306
|
-
className: classnames("focus-visible:ring-ring relative flex w-
|
|
307
|
-
"hover:
|
|
306
|
+
className: classnames("focus-visible:ring-ring relative flex w-full cursor-pointer items-center gap-3.5 rounded-xl border p-3 transition-colors outline-none focus-visible:ring-2", {
|
|
307
|
+
"hover:bg-muted/40 border-transparent": !isHighlighted,
|
|
308
308
|
"border-border bg-accent": isHighlighted
|
|
309
309
|
}),
|
|
310
310
|
onClick: function onClick() {
|
|
@@ -319,9 +319,9 @@ var ProductCard$1 = function ProductCard(_ref) {
|
|
|
319
319
|
href: url,
|
|
320
320
|
rel: "noreferrer",
|
|
321
321
|
target: "_blank",
|
|
322
|
-
className: classnames("focus-visible:ring-ring relative flex w-
|
|
322
|
+
className: classnames("focus-visible:ring-ring relative flex w-full items-center gap-3.5 rounded-xl border p-3 no-underline transition-colors outline-none focus-visible:ring-2", {
|
|
323
323
|
"border-border": isCurrentApp || isHighlighted,
|
|
324
|
-
"hover:
|
|
324
|
+
"hover:bg-muted/40 border-transparent": !isCurrentApp && !isHighlighted,
|
|
325
325
|
"bg-muted/40": isCurrentApp && !isHighlighted,
|
|
326
326
|
"bg-accent": isHighlighted
|
|
327
327
|
}),
|
|
@@ -348,22 +348,41 @@ var Panel = function Panel(_ref) {
|
|
|
348
348
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
349
349
|
lockedAppName = _useState4[0],
|
|
350
350
|
setLockedAppName = _useState4[1];
|
|
351
|
+
var _useState5 = React.useState(null),
|
|
352
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
353
|
+
initialHeight = _useState6[0],
|
|
354
|
+
setInitialHeight = _useState6[1];
|
|
355
|
+
var panelRef = React.useRef(null);
|
|
351
356
|
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
352
357
|
data = _useFetchNeetoApps.data,
|
|
353
358
|
isLoading = _useFetchNeetoApps.isLoading;
|
|
354
359
|
var substring = searchTerm.replace(/ /g, "").toLowerCase();
|
|
360
|
+
|
|
361
|
+
// Taglines are matched as typed (spaces kept), so "time tracking" finds
|
|
362
|
+
// Invoice. One letter would match most taglines, so it only matches names.
|
|
363
|
+
var descriptionTerm = searchTerm.trim().toLowerCase();
|
|
355
364
|
var filteredApps = React.useMemo(function () {
|
|
356
365
|
var _data$neetoApps;
|
|
357
366
|
if (!data) return [];
|
|
358
|
-
|
|
367
|
+
var isNameMatch = function isNameMatch(_ref2) {
|
|
359
368
|
var name = _ref2.name;
|
|
360
369
|
var nameLower = name.toLowerCase();
|
|
361
370
|
var isNeetoPrefixMatch = substring.length <= 4 && "neeto".startsWith(substring);
|
|
362
371
|
if (isNeetoPrefixMatch) return true;
|
|
363
372
|
var productName = substring.startsWith("neeto") ? substring.replace("neeto", "") : substring;
|
|
364
373
|
return nameLower.includes(productName);
|
|
374
|
+
};
|
|
375
|
+
var isDescriptionMatch = function isDescriptionMatch(_ref3) {
|
|
376
|
+
var description = _ref3.description;
|
|
377
|
+
return descriptionTerm.length >= 2 && !!(description !== null && description !== void 0 && description.toLowerCase().includes(descriptionTerm));
|
|
378
|
+
};
|
|
379
|
+
var apps = (_data$neetoApps = data === null || data === void 0 ? void 0 : data.neetoApps) !== null && _data$neetoApps !== void 0 ? _data$neetoApps : [];
|
|
380
|
+
var nameMatches = apps.filter(isNameMatch);
|
|
381
|
+
var descriptionMatches = apps.filter(function (app) {
|
|
382
|
+
return !isNameMatch(app) && isDescriptionMatch(app);
|
|
365
383
|
});
|
|
366
|
-
|
|
384
|
+
return [].concat(_toConsumableArray(nameMatches), _toConsumableArray(descriptionMatches));
|
|
385
|
+
}, [data, substring, descriptionTerm]);
|
|
367
386
|
var handleSelect = function handleSelect(app) {
|
|
368
387
|
if (!app) return;
|
|
369
388
|
if (app.hasAccess === false) {
|
|
@@ -388,6 +407,35 @@ var Panel = function Panel(_ref) {
|
|
|
388
407
|
noAccessBefore = _t$split2[0],
|
|
389
408
|
_t$split2$ = _t$split2[1],
|
|
390
409
|
noAccessAfter = _t$split2$ === void 0 ? "" : _t$split2$;
|
|
410
|
+
|
|
411
|
+
// The panel hugs its products, so filtering would shrink it on every
|
|
412
|
+
// keystroke. Remember the height of the full list and keep it as a minimum
|
|
413
|
+
// while searching, so the panel stays put.
|
|
414
|
+
React.useLayoutEffect(function () {
|
|
415
|
+
if (initialHeight || isLoading || !panelRef.current) return;
|
|
416
|
+
setInitialHeight(panelRef.current.offsetHeight);
|
|
417
|
+
}, [initialHeight, isLoading]);
|
|
418
|
+
|
|
419
|
+
// A saved height can outgrow the host's max-height once the window gets
|
|
420
|
+
// shorter, clipping the last products. Whenever the host's size changes
|
|
421
|
+
// (it is laid out by then), drop the saved height so it is measured again.
|
|
422
|
+
React.useEffect(function () {
|
|
423
|
+
var _panelRef$current;
|
|
424
|
+
var host = (_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 ? void 0 : _panelRef$current.parentElement;
|
|
425
|
+
if (!host || typeof ResizeObserver === "undefined") return undefined;
|
|
426
|
+
var lastHeight = null;
|
|
427
|
+
var observer = new ResizeObserver(function (_ref4) {
|
|
428
|
+
var _ref5 = _slicedToArray(_ref4, 1),
|
|
429
|
+
entry = _ref5[0];
|
|
430
|
+
var height = entry.contentRect.height;
|
|
431
|
+
if (lastHeight !== null && height !== lastHeight) setInitialHeight(null);
|
|
432
|
+
lastHeight = height;
|
|
433
|
+
});
|
|
434
|
+
observer.observe(host);
|
|
435
|
+
return function () {
|
|
436
|
+
return observer.disconnect();
|
|
437
|
+
};
|
|
438
|
+
}, []);
|
|
391
439
|
React.useEffect(function () {
|
|
392
440
|
if (!lockedAppName) return undefined;
|
|
393
441
|
var timer = setTimeout(function () {
|
|
@@ -414,7 +462,7 @@ var Panel = function Panel(_ref) {
|
|
|
414
462
|
});
|
|
415
463
|
}
|
|
416
464
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
417
|
-
className: "grid grid-cols-
|
|
465
|
+
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
418
466
|
children: filteredApps.map(function (app, index) {
|
|
419
467
|
return /*#__PURE__*/jsxRuntime.jsx(ProductCard, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, app), {}, {
|
|
420
468
|
onNavigate: onNavigate
|
|
@@ -427,7 +475,11 @@ var Panel = function Panel(_ref) {
|
|
|
427
475
|
});
|
|
428
476
|
};
|
|
429
477
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
430
|
-
className: "flex h-full w-full flex-col",
|
|
478
|
+
className: "flex h-full min-h-0 w-full flex-col",
|
|
479
|
+
ref: panelRef,
|
|
480
|
+
style: initialHeight ? {
|
|
481
|
+
minHeight: initialHeight
|
|
482
|
+
} : undefined,
|
|
431
483
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
432
484
|
className: "border-border flex shrink-0 flex-col gap-3 border-b p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
433
485
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
@@ -597,4 +649,4 @@ exports.THEME_BUTTON_BASE = THEME_BUTTON_BASE;
|
|
|
597
649
|
exports.THEME_ICON_BASE = THEME_ICON_BASE;
|
|
598
650
|
exports.useProductSwitcherHotkey = useProductSwitcherHotkey;
|
|
599
651
|
exports.useWhatsNewChangesCount = useWhatsNewChangesCount;
|
|
600
|
-
//# sourceMappingURL=useWhatsNewChangesCount-
|
|
652
|
+
//# sourceMappingURL=useWhatsNewChangesCount-CVyXNMR6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWhatsNewChangesCount-CVyXNMR6.js","sources":["../../node_modules/lucide-react/dist/esm/icons/search-x.mjs","../../src/v2/common/ProductSwitcher/constants.js","../../src/v2/common/ProductSwitcher/hooks/useProductSwitcherHotkey.js","../../src/v2/common/ProductSwitcher/hooks/useKeyboardNavigation.js","../../src/v2/common/ProductSwitcher/apis/neeto_apps.js","../../src/v2/common/ProductSwitcher/hooks/useNeetoApps.js","../../src/v2/common/ProductSwitcher/ProductCard.jsx","../../src/v2/common/ProductSwitcher/Panel.jsx","../../src/v2/components/FloatingActionMenu/constants.js","../../src/v2/components/FloatingActionMenu/hooks/useWhatsNewChangesCount.js"],"sourcesContent":["/**\n * @license lucide-react v1.24.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"m13.5 8.5-5 5\", key: \"1cs55j\" }],\n [\"path\", { d: \"m8.5 8.5 5 5\", key: \"a8mexj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n];\nconst SearchX = createLucideIcon(\"search-x\", __iconNode);\n\nexport { __iconNode, SearchX as default };\n//# sourceMappingURL=search-x.mjs.map\n","export const QUERY_KEYS = { NEETO_APPS_LIST: \"neeto-apps-list\" };\n\nexport const SPECIAL_APP_NAMES = { bugwatch: \"BugWatch\" };\n\n// How long the \"no access\" notice stays before auto-dismissing (ms).\nexport const NO_ACCESS_NOTICE_DURATION = 10000;\n\n// Decides which switcher ctrl/⌘+u opens when more than one is mounted (the\n// sidebar switcher vs the floating action menu one). Higher wins, so the\n// sidebar is preferred and the FAM acts as the fallback.\nexport const HOTKEY_PRIORITY = { SIDEBAR: 2, FLOATING_ACTION_MENU: 1 };\n\n// The global shortcut that opens the product switcher, and its options.\nexport const PRODUCT_SWITCHER_HOTKEYS = [\"ctrl+u\", \"command+u\"];\nexport const PRODUCT_SWITCHER_HOTKEY_OPTIONS = { mode: \"global\" };\n","import { useEffect, useRef } from \"react\";\n\nimport useHotkeys from \"neetohotkeys\";\n\nimport {\n PRODUCT_SWITCHER_HOTKEYS,\n PRODUCT_SWITCHER_HOTKEY_OPTIONS,\n} from \"../constants\";\n\n// The hotkey keys/options are stable module-level constants so neetohotkeys\n// doesn't rebind on every render — two switchers binding the same shortcut\n// would otherwise clobber each other.\n\n// Registry of the currently mounted switchers; each entry exposes its open()\n// and a priority. The shortcut always opens the highest-priority one, so it\n// works whether the sidebar switcher, the FAM switcher, or both are present,\n// and never opens two. open() is idempotent (sets open to true), so it's safe\n// even if more than one binding fires for the same keypress.\nconst switchers = new Set();\n\nconst openPrimarySwitcher = () => {\n let top = null;\n switchers.forEach(current => {\n if (!top || current.priority > top.priority) top = current;\n });\n top?.open();\n};\n\nconst useProductSwitcherHotkey = (setIsOpen, priority, enabled = true) => {\n const entryRef = useRef({});\n entryRef.current.priority = priority;\n entryRef.current.open = () => setIsOpen(true);\n\n // One stable handler per instance so bindings stay independent across the\n // sidebar and FAM switchers (hotkeys-js keeps a distinct binding for each).\n const handlerRef = useRef(() => openPrimarySwitcher());\n\n useEffect(() => {\n if (!enabled) return undefined;\n\n const entry = entryRef.current;\n switchers.add(entry);\n\n return () => {\n switchers.delete(entry);\n };\n }, [enabled]);\n\n useHotkeys(\n PRODUCT_SWITCHER_HOTKEYS,\n handlerRef.current,\n PRODUCT_SWITCHER_HOTKEY_OPTIONS\n );\n};\n\nexport default useProductSwitcherHotkey;\n","import { useState, useEffect, useRef } from \"react\";\n\nimport { isNotEmpty } from \"neetocist\";\nimport { isEmpty } from \"ramda\";\n\n// Mirrors the grid layout `grid-cols-1 sm:grid-cols-2` (sm breakpoint = 640px),\n// so ArrowUp/ArrowDown move by the correct number of columns.\nconst getColumnsPerRow = () => (window.innerWidth < 640 ? 1 : 2);\n\nconst useKeyboardNavigation = (filteredApps = [], onSelect = () => {}) => {\n const [highlightedIndex, setHighlightedIndex] = useState(0);\n const scrollContainerRef = useRef(null);\n\n useEffect(() => setHighlightedIndex(0), [filteredApps]);\n\n useEffect(() => {\n if (!scrollContainerRef.current || isEmpty(filteredApps)) return;\n\n const container = scrollContainerRef.current;\n const highlightedElement = container.querySelector(\n `[data-highlighted-index=\"${highlightedIndex}\"]`\n );\n if (!highlightedElement) return;\n\n const containerRect = container.getBoundingClientRect();\n const elRect = highlightedElement.getBoundingClientRect();\n\n if (elRect.top < containerRect.top) {\n container.scrollTop += elRect.top - containerRect.top;\n } else if (elRect.bottom > containerRect.bottom) {\n container.scrollTop += elRect.bottom - containerRect.bottom;\n }\n }, [highlightedIndex, filteredApps]);\n\n const navigationHandlers = {\n left: prev => (prev === 0 ? filteredApps.length - 1 : prev - 1),\n right: prev => (prev === filteredApps.length - 1 ? 0 : prev + 1),\n up: prev => {\n const columnsPerRow = getColumnsPerRow();\n const newIndex = prev - columnsPerRow;\n if (newIndex >= 0) return newIndex;\n\n const currentCol = prev % columnsPerRow;\n const lastIndex = filteredApps.length - 1;\n\n return lastIndex - ((lastIndex - currentCol) % columnsPerRow);\n },\n down: prev => {\n const columnsPerRow = getColumnsPerRow();\n const newIndex = prev + columnsPerRow;\n if (newIndex < filteredApps.length) return newIndex;\n\n return prev % columnsPerRow;\n },\n };\n\n const handleOpenHighlightedApp = () => {\n const app = filteredApps[highlightedIndex];\n // Delegate to the caller, which decides whether to navigate (has access)\n // or surface the \"no access\" notice (locked product).\n if (app) onSelect(app);\n };\n\n const keyActions = {\n Enter: handleOpenHighlightedApp,\n ArrowLeft: () => setHighlightedIndex(navigationHandlers[\"left\"]),\n ArrowRight: () => setHighlightedIndex(navigationHandlers[\"right\"]),\n ArrowUp: () => setHighlightedIndex(navigationHandlers[\"up\"]),\n ArrowDown: () => setHighlightedIndex(navigationHandlers[\"down\"]),\n };\n\n const handleKeyDown = e => {\n const action = keyActions[e.key];\n if (!action) return;\n\n e.preventDefault();\n e.stopPropagation();\n\n if (isNotEmpty(filteredApps)) action(e);\n };\n\n return { highlightedIndex, handleKeyDown, scrollContainerRef };\n};\n\nexport default useKeyboardNavigation;\n","import axios from \"axios\";\n\nconst fetch = () => axios.get(\"/api/v1/neeto_apps\");\n\nconst neetoAppsApi = { fetch };\n\nexport default neetoAppsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { globalProps } from \"neetocommons/v2/initializers\";\nimport { assoc } from \"ramda\";\n\nimport neetoAppsApi from \"../apis/neeto_apps\";\nimport { QUERY_KEYS } from \"../constants\";\n\nconst lock = app =>\n globalProps.appName?.includes(app.name)\n ? assoc(\"url\", window.location.origin, app)\n : assoc(\"hasAccess\", false, app);\n\nconst mergeLockedApps = ({ neetoApps = [], lockedApps = [], ...data }) => ({\n ...data,\n neetoApps: [...neetoApps, ...lockedApps.map(lock)],\n});\n\nconst useFetchNeetoApps = options =>\n useQuery({\n queryKey: [QUERY_KEYS.NEETO_APPS_LIST],\n queryFn: neetoAppsApi.fetch,\n staleTime: 5 * 60 * 1000,\n select: mergeLockedApps,\n ...options,\n });\n\nexport { useFetchNeetoApps };\n","import { memo } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Lock } from \"lucide-react\";\nimport { Typography } from \"neetoatoms\";\nimport { globalProps } from \"neetocommons/v2/initializers\";\nimport { Neeto } from \"neetoicons/logos\";\nimport * as Logos from \"neetoicons/logos\";\n\nimport { SPECIAL_APP_NAMES } from \"./constants\";\n\nconst ProductCard = ({\n name,\n description,\n url,\n hasAccess,\n isHighlighted = false,\n onNavigate,\n onLockedClick,\n ...otherProps\n}) => {\n const normalizedName = (name || \"\").toLowerCase();\n const specialCase = SPECIAL_APP_NAMES[normalizedName];\n const safeName = name || \"\";\n\n const logoKey = `Neeto${safeName.charAt(0).toUpperCase()}${safeName\n .slice(1)\n .toLowerCase()}`;\n\n const Logo =\n (specialCase ? Logos[`Neeto${specialCase}`] : Logos[logoKey]) ?? Neeto;\n const isCurrentApp = globalProps?.appName?.includes(name);\n // A product that is part of the suite but the user has no access to is shown\n // locked. When the backend omits `hasAccess`, the card stays navigable.\n const isLocked = hasAccess === false;\n\n const body = (\n <>\n <div\n className={classnames(\n \"flex size-10 shrink-0 items-center justify-center rounded-lg transition-colors [&>svg]:size-5\",\n {\n \"bg-background shadow-sm\": isCurrentApp,\n \"bg-muted\": !isCurrentApp,\n \"opacity-45\": isLocked,\n }\n )}\n >\n <Logo />\n </div>\n <div\n className={classnames(\"flex min-w-0 flex-1 flex-col text-start\", {\n \"opacity-45\": isLocked,\n })}\n >\n <Typography\n className=\"pe-4\"\n lineClamp={1}\n variant=\"body1\"\n weight=\"medium\"\n >\n {name}\n </Typography>\n <Typography color=\"muted\" lineClamp={1} variant=\"caption\">\n {description}\n </Typography>\n </div>\n {isCurrentApp && (\n <span className=\"bg-primary ring-primary/20 absolute end-3 top-3 size-2 rounded-full ring-4\" />\n )}\n {isLocked && (\n <span className=\"border-border bg-background text-muted-foreground absolute end-3 top-3 flex size-4.5 items-center justify-center rounded-full border\">\n <Lock size={10} />\n </span>\n )}\n </>\n );\n\n if (isLocked) {\n return (\n <button\n data-testid={`${normalizedName}-app-card`}\n type=\"button\"\n className={classnames(\n \"focus-visible:ring-ring relative flex w-full cursor-pointer items-center gap-3.5 rounded-xl border p-3 transition-colors outline-none focus-visible:ring-2\",\n {\n \"hover:bg-muted/40 border-transparent\": !isHighlighted,\n \"border-border bg-accent\": isHighlighted,\n }\n )}\n onClick={() => onLockedClick?.(name)}\n {...otherProps}\n >\n {body}\n </button>\n );\n }\n\n return (\n <a\n data-testid={`${normalizedName}-app-card`}\n href={url}\n rel=\"noreferrer\"\n target=\"_blank\"\n className={classnames(\n \"focus-visible:ring-ring relative flex w-full items-center gap-3.5 rounded-xl border p-3 no-underline transition-colors outline-none focus-visible:ring-2\",\n {\n \"border-border\": isCurrentApp || isHighlighted,\n \"hover:bg-muted/40 border-transparent\":\n !isCurrentApp && !isHighlighted,\n \"bg-muted/40\": isCurrentApp && !isHighlighted,\n \"bg-accent\": isHighlighted,\n }\n )}\n onClick={onNavigate}\n {...otherProps}\n >\n {body}\n </a>\n );\n};\n\nexport default memo(ProductCard);\n","import { useEffect, useLayoutEffect, useMemo, useRef, useState } from \"react\";\n\nimport { Lock, Search, SearchX, X } from \"lucide-react\";\nimport { Button, Callout, Empty, Input, Spinner, Typography } from \"neetoatoms\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { NO_ACCESS_NOTICE_DURATION } from \"./constants\";\nimport useKeyboardNavigation from \"./hooks/useKeyboardNavigation\";\nimport { useFetchNeetoApps } from \"./hooks/useNeetoApps\";\nimport ProductCard from \"./ProductCard\";\n\nconst Panel = ({ onNavigate, autoFocusSearch = true }) => {\n const { t } = useTranslation();\n const [searchTerm, setSearchTerm] = useState(\"\");\n const [lockedAppName, setLockedAppName] = useState(null);\n const [initialHeight, setInitialHeight] = useState(null);\n const panelRef = useRef(null);\n\n const { data, isLoading } = useFetchNeetoApps();\n\n const substring = searchTerm.replace(/ /g, \"\").toLowerCase();\n\n // Taglines are matched as typed (spaces kept), so \"time tracking\" finds\n // Invoice. One letter would match most taglines, so it only matches names.\n const descriptionTerm = searchTerm.trim().toLowerCase();\n\n const filteredApps = useMemo(() => {\n if (!data) return [];\n\n const isNameMatch = ({ name }) => {\n const nameLower = name.toLowerCase();\n\n const isNeetoPrefixMatch =\n substring.length <= 4 && \"neeto\".startsWith(substring);\n\n if (isNeetoPrefixMatch) return true;\n\n const productName = substring.startsWith(\"neeto\")\n ? substring.replace(\"neeto\", \"\")\n : substring;\n\n return nameLower.includes(productName);\n };\n\n const isDescriptionMatch = ({ description }) =>\n descriptionTerm.length >= 2 &&\n !!description?.toLowerCase().includes(descriptionTerm);\n\n const apps = data?.neetoApps ?? [];\n const nameMatches = apps.filter(isNameMatch);\n const descriptionMatches = apps.filter(\n app => !isNameMatch(app) && isDescriptionMatch(app)\n );\n\n return [...nameMatches, ...descriptionMatches];\n }, [data, substring, descriptionTerm]);\n\n const handleSelect = app => {\n if (!app) return;\n\n if (app.hasAccess === false) {\n setLockedAppName(app.name);\n\n return;\n }\n\n if (app.url) window.open(app.url, \"_blank\", \"noopener,noreferrer\");\n onNavigate();\n };\n\n const { highlightedIndex, handleKeyDown, scrollContainerRef } =\n useKeyboardNavigation(filteredApps, handleSelect);\n\n // The host app's i18next lowercases interpolated values, which would render\n // the product name as \"neetoplanner\". Interpolate a case-invariant sentinel\n // and splice the correctly-cased name back in as plain text instead.\n const [noAccessBefore, noAccessAfter = \"\"] = t(\n \"neetoMolecules.productSwitcher.noAccess\",\n { product: \"\" }\n ).split(\"\");\n\n // The panel hugs its products, so filtering would shrink it on every\n // keystroke. Remember the height of the full list and keep it as a minimum\n // while searching, so the panel stays put.\n useLayoutEffect(() => {\n if (initialHeight || isLoading || !panelRef.current) return;\n\n setInitialHeight(panelRef.current.offsetHeight);\n }, [initialHeight, isLoading]);\n\n // A saved height can outgrow the host's max-height once the window gets\n // shorter, clipping the last products. Whenever the host's size changes\n // (it is laid out by then), drop the saved height so it is measured again.\n useEffect(() => {\n const host = panelRef.current?.parentElement;\n if (!host || typeof ResizeObserver === \"undefined\") return undefined;\n\n let lastHeight = null;\n const observer = new ResizeObserver(([entry]) => {\n const { height } = entry.contentRect;\n if (lastHeight !== null && height !== lastHeight) setInitialHeight(null);\n\n lastHeight = height;\n });\n observer.observe(host);\n\n return () => observer.disconnect();\n }, []);\n\n useEffect(() => {\n if (!lockedAppName) return undefined;\n\n const timer = setTimeout(\n () => setLockedAppName(null),\n NO_ACCESS_NOTICE_DURATION\n );\n\n return () => clearTimeout(timer);\n }, [lockedAppName]);\n\n const renderBody = () => {\n if (isLoading) {\n return (\n <div className=\"flex h-40 items-center justify-center\">\n <Spinner data-testid=\"neeto-ui-spinner\" />\n </div>\n );\n }\n\n if (!filteredApps?.length) {\n return (\n <Empty\n data-testid=\"no-apps-found-title\"\n description={t(\"neetoMolecules.productSwitcher.noApps\")}\n icon={SearchX}\n />\n );\n }\n\n return (\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {filteredApps.map((app, index) => (\n <ProductCard\n key={app.name}\n {...{ ...app, onNavigate }}\n data-highlighted-index={index}\n isHighlighted={index === highlightedIndex}\n onLockedClick={setLockedAppName}\n />\n ))}\n </div>\n );\n };\n\n return (\n <div\n className=\"flex h-full min-h-0 w-full flex-col\"\n ref={panelRef}\n style={initialHeight ? { minHeight: initialHeight } : undefined}\n >\n <div className=\"border-border flex shrink-0 flex-col gap-3 border-b p-4 sm:flex-row sm:items-center sm:justify-between\">\n <Typography as=\"h2\" variant=\"h5\" weight=\"semibold\">\n {t(\"neetoMolecules.productSwitcher.allProducts\")}\n </Typography>\n <div className=\"w-full sm:w-48\">\n <Input\n autoFocus={autoFocusSearch}\n data-testid=\"sidebar-product-switcher-search\"\n placeholder={t(\"neetoMolecules.productSwitcher.search\")}\n prefix={<Search />}\n type=\"search\"\n value={searchTerm}\n onChange={e => setSearchTerm(e.target.value)}\n onKeyDown={handleKeyDown}\n />\n </div>\n </div>\n {lockedAppName && (\n <div className=\"shrink-0 px-4 pt-4\">\n <Callout\n data-testid=\"sidebar-product-switcher-no-access\"\n icon={Lock}\n variant=\"warning\"\n >\n <div className=\"flex items-start justify-between gap-3\">\n <span>\n {noAccessBefore}Neeto{lockedAppName}\n {noAccessAfter}\n </span>\n <Button\n aria-label={t(\"neetoMolecules.productSwitcher.closeNotice\")}\n className=\"-me-1 -mt-1 shrink-0\"\n icon={X}\n size=\"icon-xs\"\n variant=\"ghost\"\n onClick={() => setLockedAppName(null)}\n />\n </div>\n </Callout>\n </div>\n )}\n <div\n className=\"min-h-0 flex-1 overflow-y-auto p-4\"\n ref={scrollContainerRef}\n >\n {renderBody()}\n </div>\n </div>\n );\n};\n\nexport default Panel;\n","import { t } from \"i18next\";\n\nexport const MY_ORGANIZATION_URL = \"/auth/organization/edit\";\nexport const BILLING_URL = \"/auth/admin_billing\";\nexport const DELETE_WORKSPACE_URL = \"/auth/organization/delete\";\nexport const ENGAGE_WIDGET_TRIGGER_ID = \"neetoengage-trigger\";\n\nexport const DEFAULT_MENU_LINK_PROPS = {\n engageProps: {\n id: ENGAGE_WIDGET_TRIGGER_ID,\n label: t(\"neetoMolecules.sidebar.helpLinks.whatsNew\"),\n \"data-testid\": \"help-link-engage-button\",\n },\n keyboardShortcutProps: {\n label: t(\"neetoMolecules.sidebar.helpLinks.keyboardShortcuts\"),\n \"data-testid\": \"help-link-keyboard-shortcut-button\",\n },\n};\n\n// Theme switcher\nexport const APP_THEME_LOCALSTORAGE_KEY = \"appTheme\";\n\nexport const THEMES = { LIGHT: \"light\", DARK: \"dark\" };\n\n// Legacy neetoUI theme classes — kept until full migration is complete.\nexport const LEGACY_THEMES = {\n LIGHT: \"neeto-ui-theme--light\",\n DARK: \"neeto-ui-theme--dark\",\n};\n\nexport const NEETO_AUTH_BILLING_INFO_URL =\n \"/neeto_sso/api/v1/subscription/billing\";\n\nexport const MENU_ITEM_CLASSES =\n \"gap-2.5 px-2.5 py-2 font-medium [&>[data-slot=menu-item-prefix]>svg]:!size-[18px] [&>[data-slot=menu-item-suffix]>svg]:!size-[18px]\";\n\nexport const THEME_BUTTON_BASE =\n \"relative z-10 flex items-center justify-center gap-1 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors focus-visible:outline-none\";\n\nexport const THEME_ICON_BASE = \"transition-transform duration-300 ease-out\";\n\nexport const SLOWNESS_DESCRIPTION_MAX_LENGTH = 2000;\n","import { useEffect, useState } from \"react\";\n\n// Shared source of truth for the neetoEngage changelog unread count.\n//\n// The widget reports the count by calling `window.Nv.onReceiveData({ unreadCount })`\n// whenever it changes (on load and each time entries are marked read). Opening\n// the widget doesn't clear it: the count only drops as entries are read. Both the FloatingActionMenu and the\n// Sidebar surface this count, so this module installs a SINGLE set of\n// `window.Nv` handlers (chaining onto any pre-existing ones) and fans the value\n// out to every subscribed component. Installation happens on the first\n// subscriber and is torn down only when the last one unsubscribes — so\n// interleaved mount/unmount of the two surfaces can never leave a stale handler\n// on the global object.\n\nlet currentCount = null;\nconst subscribers = new Set();\nlet isInstalled = false;\nlet previousOnReceiveData;\n\nconst notify = () => subscribers.forEach(setCount => setCount(currentCount));\n\nconst install = () => {\n if (isInstalled) return;\n isInstalled = true;\n\n const existing = window.Nv || {};\n previousOnReceiveData = existing.onReceiveData;\n\n window.Nv = Object.assign(existing, {\n onReceiveData: data => {\n previousOnReceiveData?.(data);\n // Only react to a numeric unreadCount; `0` clears the badge (a non-zero\n // count would otherwise stay stale until the pane is opened).\n if (typeof data?.unreadCount === \"number\") {\n currentCount = data.unreadCount || null;\n notify();\n }\n },\n });\n};\n\nconst uninstall = () => {\n if (!isInstalled) return;\n isInstalled = false;\n\n if (window.Nv) {\n window.Nv.onReceiveData = previousOnReceiveData;\n }\n // currentCount is kept: the widget only reports it on page load and after a\n // \"Mark as read\", so a surface that remounts (e.g. after navigating to a page\n // without a sidebar and back) would otherwise lose it until a full reload.\n};\n\nconst useWhatsNewChangesCount = () => {\n const [changesCount, setChangesCount] = useState(currentCount);\n\n useEffect(() => {\n install();\n subscribers.add(setChangesCount);\n setChangesCount(currentCount);\n\n return () => {\n subscribers.delete(setChangesCount);\n if (subscribers.size === 0) uninstall();\n };\n }, []);\n\n return changesCount;\n};\n\nexport default useWhatsNewChangesCount;\n"],"names":["createLucideIcon","QUERY_KEYS","NEETO_APPS_LIST","SPECIAL_APP_NAMES","bugwatch","NO_ACCESS_NOTICE_DURATION","HOTKEY_PRIORITY","SIDEBAR","FLOATING_ACTION_MENU","PRODUCT_SWITCHER_HOTKEYS","PRODUCT_SWITCHER_HOTKEY_OPTIONS","mode","switchers","Set","openPrimarySwitcher","_top","top","forEach","current","priority","open","useProductSwitcherHotkey","setIsOpen","enabled","arguments","length","undefined","entryRef","useRef","handlerRef","useEffect","entry","add","useHotkeys","getColumnsPerRow","window","innerWidth","useKeyboardNavigation","filteredApps","onSelect","_useState","useState","_useState2","_slicedToArray","highlightedIndex","setHighlightedIndex","scrollContainerRef","isEmpty","container","highlightedElement","querySelector","concat","containerRect","getBoundingClientRect","elRect","scrollTop","bottom","navigationHandlers","left","prev","right","up","columnsPerRow","newIndex","currentCol","lastIndex","down","handleOpenHighlightedApp","app","keyActions","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","handleKeyDown","e","action","key","preventDefault","stopPropagation","isNotEmpty","fetch","axios","get","neetoAppsApi","lock","_globalProps$appName","globalProps","appName","includes","name","assoc","location","origin","mergeLockedApps","_ref","_ref$neetoApps","neetoApps","_ref$lockedApps","lockedApps","data","_objectWithoutProperties","_excluded","_objectSpread","_toConsumableArray","map","useFetchNeetoApps","options","useQuery","queryKey","queryFn","staleTime","select","ProductCard","_ref2","description","url","hasAccess","_ref$isHighlighted","isHighlighted","onNavigate","onLockedClick","otherProps","normalizedName","toLowerCase","specialCase","safeName","logoKey","charAt","toUpperCase","slice","Logo","Logos","Neeto","isCurrentApp","isLocked","body","_jsxs","_Fragment","children","_jsx","className","classnames","Typography","lineClamp","variant","weight","color","Lock","size","type","onClick","href","rel","target","memo","Panel","_ref$autoFocusSearch","autoFocusSearch","_useTranslation","useTranslation","t","searchTerm","setSearchTerm","_useState3","_useState4","lockedAppName","setLockedAppName","_useState5","_useState6","initialHeight","setInitialHeight","panelRef","_useFetchNeetoApps","isLoading","substring","replace","descriptionTerm","trim","useMemo","_data$neetoApps","isNameMatch","nameLower","isNeetoPrefixMatch","startsWith","productName","isDescriptionMatch","_ref3","apps","nameMatches","filter","descriptionMatches","handleSelect","_useKeyboardNavigatio","_t$split","product","split","_t$split2","noAccessBefore","_t$split2$","noAccessAfter","useLayoutEffect","offsetHeight","_panelRef$current","host","parentElement","ResizeObserver","lastHeight","observer","_ref4","_ref5","height","contentRect","observe","disconnect","timer","setTimeout","clearTimeout","renderBody","Spinner","Empty","icon","SearchX","index","ref","style","minHeight","as","Input","autoFocus","placeholder","prefix","Search","value","onChange","onKeyDown","Callout","Button","X","MY_ORGANIZATION_URL","BILLING_URL","DELETE_WORKSPACE_URL","ENGAGE_WIDGET_TRIGGER_ID","DEFAULT_MENU_LINK_PROPS","engageProps","id","label","keyboardShortcutProps","APP_THEME_LOCALSTORAGE_KEY","THEMES","LIGHT","DARK","LEGACY_THEMES","NEETO_AUTH_BILLING_INFO_URL","MENU_ITEM_CLASSES","THEME_BUTTON_BASE","THEME_ICON_BASE","SLOWNESS_DESCRIPTION_MAX_LENGTH","currentCount","subscribers","isInstalled","previousOnReceiveData","notify","setCount","install","existing","Nv","onReceiveData","Object","assign","_previousOnReceiveDat","unreadCount","uninstall","useWhatsNewChangesCount","changesCount","setChangesCount"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AACjD,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAChD,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IA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EAAE;AACV,MAAA;AACF,IAAA;AACF,GAAC,CAAC;AACJ,CAAC;AAED,IAAMU,SAAS,GAAG,SAAZA,SAASA,GAAS;EACtB,IAAI,CAACZ,WAAW,EAAE;AAClBA,EAAAA,WAAW,GAAG,KAAK;EAEnB,IAAIlO,MAAM,CAACwO,EAAE,EAAE;AACbxO,IAAAA,MAAM,CAACwO,EAAE,CAACC,aAAa,GAAGN,qBAAqB;AACjD,EAAA;AACA;AACA;AACA;AACF,CAAC;AAED,IAAMY,uBAAuB,GAAG,SAA1BA,uBAAuBA,GAAS;AACpC,EAAA,IAAA1O,SAAA,GAAwCC,cAAQ,CAAC0N,YAAY,CAAC;IAAAzN,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvD2O,IAAAA,YAAY,GAAAzO,UAAA,CAAA,CAAA,CAAA;AAAE0O,IAAAA,eAAe,GAAA1O,UAAA,CAAA,CAAA,CAAA;AAEpCZ,EAAAA,eAAS,CAAC,YAAM;AACd2O,IAAAA,OAAO,EAAE;AACTL,IAAAA,WAAW,CAACpO,GAAG,CAACoP,eAAe,CAAC;IAChCA,eAAe,CAACjB,YAAY,CAAC;AAE7B,IAAA,OAAO,YAAM;MACXC,WAAW,CAAA,QAAA,CAAO,CAACgB,eAAe,CAAC;MACnC,IAAIhB,WAAW,CAAC9G,IAAI,KAAK,CAAC,EAAE2H,SAAS,EAAE;IACzC,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AAEN,EAAA,OAAOE,YAAY;AACrB;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -11,7 +11,7 @@ var primitives = require('@bigbinary/neeto-atoms/primitives');
|
|
|
11
11
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
12
12
|
var Profile = require('@bigbinary/neeto-team-members-frontend/v2/Profile');
|
|
13
13
|
var reactI18next = require('react-i18next');
|
|
14
|
-
var useWhatsNewChangesCount = require('../useWhatsNewChangesCount-
|
|
14
|
+
var useWhatsNewChangesCount = require('../useWhatsNewChangesCount-CVyXNMR6.js');
|
|
15
15
|
var v2_KeyboardShortcuts = require('./KeyboardShortcuts.js');
|
|
16
16
|
var v2_SubscriptionUpgradeRequestModal = require('./SubscriptionUpgradeRequestModal.js');
|
|
17
17
|
var performanceDiagnostics = require('../performanceDiagnostics-CS7NTxaH.js');
|
|
@@ -639,7 +639,7 @@ var ProductSwitcher = function ProductSwitcher(_ref) {
|
|
|
639
639
|
children: t("neetoMolecules.sidebar.productSwitcher")
|
|
640
640
|
})
|
|
641
641
|
}), /*#__PURE__*/jsxRuntime.jsx(primitives.DropdownMenuSubContent, {
|
|
642
|
-
className: "z-[99999] h-[min(88vh,41rem)] w-[min(
|
|
642
|
+
className: "z-[99999] flex max-h-[min(88vh,41rem)] w-[min(40rem,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-xl p-0",
|
|
643
643
|
collisionPadding: 16,
|
|
644
644
|
sideOffset: 8,
|
|
645
645
|
children: /*#__PURE__*/jsxRuntime.jsx(useWhatsNewChangesCount.Panel, {
|