@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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useRef, useEffect, useState, memo, useMemo } from 'react';
|
|
1
|
+
import { useRef, useEffect, useState, memo, useMemo, useLayoutEffect } from 'react';
|
|
2
2
|
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
6
|
import { Typography, Input, Callout, Button, Spinner, Empty } from '@bigbinary/neeto-atoms';
|
|
6
7
|
import { useTranslation } from 'react-i18next';
|
|
7
8
|
import { isNotEmpty } from '@bigbinary/neeto-cist';
|
|
8
9
|
import { isEmpty, assoc } from 'ramda';
|
|
9
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
10
10
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import { useQuery } from '@tanstack/react-query';
|
|
12
12
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/v2/initializers';
|
|
@@ -103,10 +103,10 @@ var useProductSwitcherHotkey = function useProductSwitcherHotkey(setIsOpen, prio
|
|
|
103
103
|
useHotkeys(PRODUCT_SWITCHER_HOTKEYS, handlerRef.current, PRODUCT_SWITCHER_HOTKEY_OPTIONS);
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
// Mirrors the grid layout `grid-cols-
|
|
106
|
+
// Mirrors the grid layout `grid-cols-1 sm:grid-cols-2` (sm breakpoint = 640px),
|
|
107
107
|
// so ArrowUp/ArrowDown move by the correct number of columns.
|
|
108
108
|
var getColumnsPerRow = function getColumnsPerRow() {
|
|
109
|
-
return window.innerWidth < 640 ?
|
|
109
|
+
return window.innerWidth < 640 ? 1 : 2;
|
|
110
110
|
};
|
|
111
111
|
var useKeyboardNavigation = function useKeyboardNavigation() {
|
|
112
112
|
var filteredApps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -247,25 +247,25 @@ var ProductCard = function ProductCard(_ref) {
|
|
|
247
247
|
var isLocked = hasAccess === false;
|
|
248
248
|
var body = /*#__PURE__*/jsxs(Fragment, {
|
|
249
249
|
children: [/*#__PURE__*/jsx("div", {
|
|
250
|
-
className: classnames("flex size-
|
|
250
|
+
className: classnames("flex size-10 shrink-0 items-center justify-center rounded-lg transition-colors [&>svg]:size-5", {
|
|
251
251
|
"bg-background shadow-sm": isCurrentApp,
|
|
252
252
|
"bg-muted": !isCurrentApp,
|
|
253
253
|
"opacity-45": isLocked
|
|
254
254
|
}),
|
|
255
255
|
children: /*#__PURE__*/jsx(Logo, {})
|
|
256
256
|
}), /*#__PURE__*/jsxs("div", {
|
|
257
|
-
className: classnames("flex flex-
|
|
257
|
+
className: classnames("flex min-w-0 flex-1 flex-col text-start", {
|
|
258
258
|
"opacity-45": isLocked
|
|
259
259
|
}),
|
|
260
260
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
261
|
+
className: "pe-4",
|
|
261
262
|
lineClamp: 1,
|
|
262
|
-
variant: "
|
|
263
|
-
weight: "
|
|
263
|
+
variant: "body1",
|
|
264
|
+
weight: "medium",
|
|
264
265
|
children: name
|
|
265
266
|
}), /*#__PURE__*/jsx(Typography, {
|
|
266
|
-
className: "min-h-[2lh]",
|
|
267
267
|
color: "muted",
|
|
268
|
-
lineClamp:
|
|
268
|
+
lineClamp: 1,
|
|
269
269
|
variant: "caption",
|
|
270
270
|
children: description
|
|
271
271
|
})]
|
|
@@ -282,8 +282,8 @@ var ProductCard = function ProductCard(_ref) {
|
|
|
282
282
|
return /*#__PURE__*/jsx("button", _objectSpread$1(_objectSpread$1({
|
|
283
283
|
"data-testid": "".concat(normalizedName, "-app-card"),
|
|
284
284
|
type: "button",
|
|
285
|
-
className: classnames("focus-visible:ring-ring relative flex w-
|
|
286
|
-
"hover:
|
|
285
|
+
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", {
|
|
286
|
+
"hover:bg-muted/40 border-transparent": !isHighlighted,
|
|
287
287
|
"border-border bg-accent": isHighlighted
|
|
288
288
|
}),
|
|
289
289
|
onClick: function onClick() {
|
|
@@ -298,9 +298,9 @@ var ProductCard = function ProductCard(_ref) {
|
|
|
298
298
|
href: url,
|
|
299
299
|
rel: "noreferrer",
|
|
300
300
|
target: "_blank",
|
|
301
|
-
className: classnames("focus-visible:ring-ring relative flex w-
|
|
301
|
+
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", {
|
|
302
302
|
"border-border": isCurrentApp || isHighlighted,
|
|
303
|
-
"hover:
|
|
303
|
+
"hover:bg-muted/40 border-transparent": !isCurrentApp && !isHighlighted,
|
|
304
304
|
"bg-muted/40": isCurrentApp && !isHighlighted,
|
|
305
305
|
"bg-accent": isHighlighted
|
|
306
306
|
}),
|
|
@@ -327,22 +327,41 @@ var Panel = function Panel(_ref) {
|
|
|
327
327
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
328
328
|
lockedAppName = _useState4[0],
|
|
329
329
|
setLockedAppName = _useState4[1];
|
|
330
|
+
var _useState5 = useState(null),
|
|
331
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
332
|
+
initialHeight = _useState6[0],
|
|
333
|
+
setInitialHeight = _useState6[1];
|
|
334
|
+
var panelRef = useRef(null);
|
|
330
335
|
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
331
336
|
data = _useFetchNeetoApps.data,
|
|
332
337
|
isLoading = _useFetchNeetoApps.isLoading;
|
|
333
338
|
var substring = searchTerm.replace(/ /g, "").toLowerCase();
|
|
339
|
+
|
|
340
|
+
// Taglines are matched as typed (spaces kept), so "time tracking" finds
|
|
341
|
+
// Invoice. One letter would match most taglines, so it only matches names.
|
|
342
|
+
var descriptionTerm = searchTerm.trim().toLowerCase();
|
|
334
343
|
var filteredApps = useMemo(function () {
|
|
335
344
|
var _data$neetoApps;
|
|
336
345
|
if (!data) return [];
|
|
337
|
-
|
|
346
|
+
var isNameMatch = function isNameMatch(_ref2) {
|
|
338
347
|
var name = _ref2.name;
|
|
339
348
|
var nameLower = name.toLowerCase();
|
|
340
349
|
var isNeetoPrefixMatch = substring.length <= 4 && "neeto".startsWith(substring);
|
|
341
350
|
if (isNeetoPrefixMatch) return true;
|
|
342
351
|
var productName = substring.startsWith("neeto") ? substring.replace("neeto", "") : substring;
|
|
343
352
|
return nameLower.includes(productName);
|
|
353
|
+
};
|
|
354
|
+
var isDescriptionMatch = function isDescriptionMatch(_ref3) {
|
|
355
|
+
var description = _ref3.description;
|
|
356
|
+
return descriptionTerm.length >= 2 && !!(description !== null && description !== void 0 && description.toLowerCase().includes(descriptionTerm));
|
|
357
|
+
};
|
|
358
|
+
var apps = (_data$neetoApps = data === null || data === void 0 ? void 0 : data.neetoApps) !== null && _data$neetoApps !== void 0 ? _data$neetoApps : [];
|
|
359
|
+
var nameMatches = apps.filter(isNameMatch);
|
|
360
|
+
var descriptionMatches = apps.filter(function (app) {
|
|
361
|
+
return !isNameMatch(app) && isDescriptionMatch(app);
|
|
344
362
|
});
|
|
345
|
-
|
|
363
|
+
return [].concat(_toConsumableArray(nameMatches), _toConsumableArray(descriptionMatches));
|
|
364
|
+
}, [data, substring, descriptionTerm]);
|
|
346
365
|
var handleSelect = function handleSelect(app) {
|
|
347
366
|
if (!app) return;
|
|
348
367
|
if (app.hasAccess === false) {
|
|
@@ -367,6 +386,35 @@ var Panel = function Panel(_ref) {
|
|
|
367
386
|
noAccessBefore = _t$split2[0],
|
|
368
387
|
_t$split2$ = _t$split2[1],
|
|
369
388
|
noAccessAfter = _t$split2$ === void 0 ? "" : _t$split2$;
|
|
389
|
+
|
|
390
|
+
// The panel hugs its products, so filtering would shrink it on every
|
|
391
|
+
// keystroke. Remember the height of the full list and keep it as a minimum
|
|
392
|
+
// while searching, so the panel stays put.
|
|
393
|
+
useLayoutEffect(function () {
|
|
394
|
+
if (initialHeight || isLoading || !panelRef.current) return;
|
|
395
|
+
setInitialHeight(panelRef.current.offsetHeight);
|
|
396
|
+
}, [initialHeight, isLoading]);
|
|
397
|
+
|
|
398
|
+
// A saved height can outgrow the host's max-height once the window gets
|
|
399
|
+
// shorter, clipping the last products. Whenever the host's size changes
|
|
400
|
+
// (it is laid out by then), drop the saved height so it is measured again.
|
|
401
|
+
useEffect(function () {
|
|
402
|
+
var _panelRef$current;
|
|
403
|
+
var host = (_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 ? void 0 : _panelRef$current.parentElement;
|
|
404
|
+
if (!host || typeof ResizeObserver === "undefined") return undefined;
|
|
405
|
+
var lastHeight = null;
|
|
406
|
+
var observer = new ResizeObserver(function (_ref4) {
|
|
407
|
+
var _ref5 = _slicedToArray(_ref4, 1),
|
|
408
|
+
entry = _ref5[0];
|
|
409
|
+
var height = entry.contentRect.height;
|
|
410
|
+
if (lastHeight !== null && height !== lastHeight) setInitialHeight(null);
|
|
411
|
+
lastHeight = height;
|
|
412
|
+
});
|
|
413
|
+
observer.observe(host);
|
|
414
|
+
return function () {
|
|
415
|
+
return observer.disconnect();
|
|
416
|
+
};
|
|
417
|
+
}, []);
|
|
370
418
|
useEffect(function () {
|
|
371
419
|
if (!lockedAppName) return undefined;
|
|
372
420
|
var timer = setTimeout(function () {
|
|
@@ -393,7 +441,7 @@ var Panel = function Panel(_ref) {
|
|
|
393
441
|
});
|
|
394
442
|
}
|
|
395
443
|
return /*#__PURE__*/jsx("div", {
|
|
396
|
-
className: "grid grid-cols-
|
|
444
|
+
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
397
445
|
children: filteredApps.map(function (app, index) {
|
|
398
446
|
return /*#__PURE__*/jsx(ProductCard$1, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, app), {}, {
|
|
399
447
|
onNavigate: onNavigate
|
|
@@ -406,7 +454,11 @@ var Panel = function Panel(_ref) {
|
|
|
406
454
|
});
|
|
407
455
|
};
|
|
408
456
|
return /*#__PURE__*/jsxs("div", {
|
|
409
|
-
className: "flex h-full w-full flex-col",
|
|
457
|
+
className: "flex h-full min-h-0 w-full flex-col",
|
|
458
|
+
ref: panelRef,
|
|
459
|
+
style: initialHeight ? {
|
|
460
|
+
minHeight: initialHeight
|
|
461
|
+
} : undefined,
|
|
410
462
|
children: [/*#__PURE__*/jsxs("div", {
|
|
411
463
|
className: "border-border flex shrink-0 flex-col gap-3 border-b p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
412
464
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
@@ -560,4 +612,4 @@ var useWhatsNewChangesCount = function useWhatsNewChangesCount() {
|
|
|
560
612
|
};
|
|
561
613
|
|
|
562
614
|
export { APP_THEME_LOCALSTORAGE_KEY as A, BILLING_URL as B, DELETE_WORKSPACE_URL as D, ENGAGE_WIDGET_TRIGGER_ID as E, HOTKEY_PRIORITY as H, LEGACY_THEMES as L, MENU_ITEM_CLASSES as M, NEETO_AUTH_BILLING_INFO_URL as N, Panel as P, SLOWNESS_DESCRIPTION_MAX_LENGTH as S, THEMES as T, useProductSwitcherHotkey as a, THEME_ICON_BASE as b, THEME_BUTTON_BASE as c, MY_ORGANIZATION_URL as d, DEFAULT_MENU_LINK_PROPS as e, useWhatsNewChangesCount as u };
|
|
563
|
-
//# sourceMappingURL=useWhatsNewChangesCount-
|
|
615
|
+
//# sourceMappingURL=useWhatsNewChangesCount-QKnN3-nS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWhatsNewChangesCount-QKnN3-nS.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":["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,CAA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AI,IAAI;AACvCT,QAAAA,MAAM,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,QAAQ,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,SAAS,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]}
|
|
@@ -9,7 +9,7 @@ import { Collapsible, CollapsibleTrigger, DropdownMenuItem, CollapsibleContent,
|
|
|
9
9
|
import { isNotPresent, isPresent, truncate, humanize, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
10
10
|
import Profile from '@bigbinary/neeto-team-members-frontend/v2/Profile';
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
|
-
import { M as MENU_ITEM_CLASSES, P as Panel, D as DELETE_WORKSPACE_URL, A as APP_THEME_LOCALSTORAGE_KEY, T as THEMES, L as LEGACY_THEMES, b as THEME_ICON_BASE, c as THEME_BUTTON_BASE, d as MY_ORGANIZATION_URL, B as BILLING_URL, N as NEETO_AUTH_BILLING_INFO_URL, S as SLOWNESS_DESCRIPTION_MAX_LENGTH, u as useWhatsNewChangesCount, a as useProductSwitcherHotkey, e as DEFAULT_MENU_LINK_PROPS, H as HOTKEY_PRIORITY } from '../useWhatsNewChangesCount-
|
|
12
|
+
import { M as MENU_ITEM_CLASSES, P as Panel, D as DELETE_WORKSPACE_URL, A as APP_THEME_LOCALSTORAGE_KEY, T as THEMES, L as LEGACY_THEMES, b as THEME_ICON_BASE, c as THEME_BUTTON_BASE, d as MY_ORGANIZATION_URL, B as BILLING_URL, N as NEETO_AUTH_BILLING_INFO_URL, S as SLOWNESS_DESCRIPTION_MAX_LENGTH, u as useWhatsNewChangesCount, a as useProductSwitcherHotkey, e as DEFAULT_MENU_LINK_PROPS, H as HOTKEY_PRIORITY } from '../useWhatsNewChangesCount-QKnN3-nS.js';
|
|
13
13
|
import KeyboardShortcuts from './KeyboardShortcuts.js';
|
|
14
14
|
import SubscriptionUpgradeRequestModal from './SubscriptionUpgradeRequestModal.js';
|
|
15
15
|
import { g as getNeetoUrl, i as isPerformanceDiagnosticsEnabled, a as getProductBillingUrl, r as reportSlowness } from '../performanceDiagnostics-DJcT0dfG.js';
|
|
@@ -637,7 +637,7 @@ var ProductSwitcher = function ProductSwitcher(_ref) {
|
|
|
637
637
|
children: t("neetoMolecules.sidebar.productSwitcher")
|
|
638
638
|
})
|
|
639
639
|
}), /*#__PURE__*/jsx(DropdownMenuSubContent, {
|
|
640
|
-
className: "z-[99999] h-[min(88vh,41rem)] w-[min(
|
|
640
|
+
className: "z-[99999] flex max-h-[min(88vh,41rem)] w-[min(40rem,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-xl p-0",
|
|
641
641
|
collisionPadding: 16,
|
|
642
642
|
sideOffset: 8,
|
|
643
643
|
children: /*#__PURE__*/jsx(Panel, {
|