@flamingo-stack/openframe-frontend-core 0.0.704-snapshot.20261006152423 → 0.0.704
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/{chunk-JEZKGCZI.cjs → chunk-262YQFOS.cjs} +24 -24
- package/dist/{chunk-G5A3PSPV.js → chunk-2G546OND.js} +7 -19
- package/dist/{chunk-7VVFKJY5.js → chunk-2JDVL7UV.js} +18 -70
- package/dist/{chunk-6NJKKO73.cjs → chunk-4DQMTBMK.cjs} +11 -11
- package/dist/{chunk-FCGC42TS.js → chunk-4KGXLVCF.js} +3 -3
- package/dist/{chunk-F6I6XZMN.js → chunk-5QJDM6UV.js} +3 -3
- package/dist/{chunk-YHM5AWTT.js → chunk-6WQIUQUC.js} +5 -5
- package/dist/{chunk-A75QY6CD.cjs → chunk-7JIL3WOH.cjs} +14 -14
- package/dist/{chunk-QFXRPRFT.js → chunk-7LFIKJX2.js} +2 -2
- package/dist/{chunk-4KX6OED2.cjs → chunk-AMYY3PNL.cjs} +42 -42
- package/dist/{chunk-TYWLNCNH.cjs → chunk-C3BWIU7R.cjs} +5 -1
- package/dist/{chunk-7LS22BZU.cjs → chunk-C7XGRLT5.cjs} +6 -6
- package/dist/{chunk-PN2RKPDF.js → chunk-ERCV6HHJ.js} +4 -4
- package/dist/{chunk-DW7G4KG3.js → chunk-FXENTYE5.js} +1 -1
- package/dist/{chunk-WA6GUYQ4.cjs → chunk-HFJW24JJ.cjs} +79 -79
- package/dist/{chunk-ZSAO2HBW.js → chunk-HJAYVKWQ.js} +6 -6
- package/dist/{chunk-F6AFPNDF.js → chunk-I7DFUQMN.js} +6 -5
- package/dist/{chunk-MKXO4Q5P.js → chunk-IHU5ANUY.js} +1 -1
- package/dist/{chunk-OUY3HHW6.cjs → chunk-IZGDG5X6.cjs} +45 -57
- package/dist/{chunk-6SEANMOU.js → chunk-JEYRXT5L.js} +7 -7
- package/dist/{chunk-KOWVJD4V.cjs → chunk-L3IC42IF.cjs} +18 -17
- package/dist/{chunk-3MX5S4CF.cjs → chunk-LDPEQGKT.cjs} +80 -132
- package/dist/{chunk-VESKITRQ.cjs → chunk-LTSTC3N5.cjs} +379 -379
- package/dist/{chunk-2QEUFXNS.cjs → chunk-MGGGBHYD.cjs} +10 -10
- package/dist/{chunk-IHERL5V4.cjs → chunk-MI3JUJ75.cjs} +21 -21
- package/dist/{chunk-HPWWNJE7.cjs → chunk-N3TO7JV3.cjs} +49 -49
- package/dist/{chunk-RBDP4WDE.js → chunk-NRLJUBCS.js} +2 -2
- package/dist/{chunk-X5MQ7JRP.js → chunk-QVSFBSWV.js} +4 -4
- package/dist/{chunk-ZSAGLQOD.cjs → chunk-SYXQLETR.cjs} +9 -9
- package/dist/{chunk-4I45Y3DN.cjs → chunk-UK62YTH6.cjs} +2 -2
- package/dist/{chunk-AQWZNP6A.js → chunk-VTASHWER.js} +3 -3
- package/dist/{chunk-PDWVPI3S.js → chunk-WUJNYGO2.js} +4 -0
- package/dist/{chunk-VA5T32XA.js → chunk-XATTBO5X.js} +1 -1
- package/dist/{chunk-IKTQ3ZAG.cjs → chunk-XIFOBQRQ.cjs} +4 -4
- package/dist/{chunk-YFBM2K6X.cjs → chunk-XJKZ4IKT.cjs} +4 -4
- package/dist/{chunk-DENB2XJC.js → chunk-ZQFZSFQI.js} +2 -2
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +0 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -5
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +2 -4
- package/dist/components/chat/mingo-chat-rail.d.ts +1 -3
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +81 -81
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/index.cjs +47 -51
- package/dist/components/index.js +15 -19
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +4 -4
- package/dist/components/navigation/app-layout-side-panel.d.ts +1 -18
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +8 -10
- package/dist/components/navigation/index.d.ts +0 -1
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +7 -9
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/index.cjs +5 -7
- package/dist/components/ui/index.js +4 -6
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +10 -14
- package/dist/index.js +8 -12
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +1 -5
- package/src/components/chat/chat-message-enhanced.tsx +3 -4
- package/src/components/chat/embeddable-chat.tsx +6 -64
- package/src/components/chat/index.ts +0 -1
- package/src/components/chat/mingo-chat-rail.tsx +7 -24
- package/src/components/navigation/app-layout-side-panel.tsx +2 -30
- package/src/components/navigation/index.ts +0 -1
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/styles/app-globals.css +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXIFOBQRQcjs = require('./chunk-XIFOBQRQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,18 +13,18 @@ var _chunkIKTQ3ZAGcjs = require('./chunk-IKTQ3ZAG.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkMGGGBHYDcjs = require('./chunk-MGGGBHYD.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkLDPEQGKTcjs = require('./chunk-LDPEQGKT.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkC3BWIU7Rcjs = require('./chunk-C3BWIU7R.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -138,8 +138,8 @@ var MOBILE_NAV_PANEL_ID = "mobile-nav-panel";
|
|
|
138
138
|
function MobileNavPanel({ isOpen, config }) {
|
|
139
139
|
const panelRef = _react.useRef.call(void 0, null);
|
|
140
140
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
141
|
-
|
|
142
|
-
const headerHeight =
|
|
141
|
+
_chunkMGGGBHYDcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: config.onClose });
|
|
142
|
+
const headerHeight = _chunkC3BWIU7Rcjs.useHeaderHeight.call(void 0, 64, { enabled: isOpen });
|
|
143
143
|
if (!isOpen) return null;
|
|
144
144
|
const renderNavigationItem = (item) => {
|
|
145
145
|
if (item.element) {
|
|
@@ -190,7 +190,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
193
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[9998]",
|
|
193
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[9998]", _chunkLDPEQGKTcjs.OVERLAY_BACKDROP_CLASS), onClick: config.onClose }),
|
|
194
194
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
195
195
|
"div",
|
|
196
196
|
{
|
|
@@ -245,16 +245,16 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
245
245
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
246
246
|
|
|
247
247
|
function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
248
|
-
const live =
|
|
248
|
+
const live = _chunkXIFOBQRQcjs.useOptionalTicketLive.call(void 0, );
|
|
249
249
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
250
250
|
const targetId = live.nextUnreadTicketId;
|
|
251
|
-
const target = targetId ?
|
|
251
|
+
const target = targetId ? _chunkLTSTC3N5cjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
252
252
|
const handleClick = () => {
|
|
253
253
|
if (onNavigate) onNavigate(target);
|
|
254
254
|
else window.location.assign(target);
|
|
255
255
|
};
|
|
256
256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
257
|
-
|
|
257
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
258
258
|
{
|
|
259
259
|
icon: (
|
|
260
260
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -264,7 +264,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
264
264
|
// existing while updates are unread — never by tinting the glyph.
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
266
266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
267
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
268
268
|
] })
|
|
269
269
|
),
|
|
270
270
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -582,7 +582,7 @@ function Header({ config }) {
|
|
|
582
582
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
583
583
|
!!_optionalChain([config, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.left, 'optionalAccess', _14 => _14.length]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center border-r border-ods-border", children: config.actions.left }),
|
|
584
584
|
_optionalChain([config, 'access', _15 => _15.mobile, 'optionalAccess', _16 => _16.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
586
586
|
{
|
|
587
587
|
className: "border-r border-ods-border lg:hidden",
|
|
588
588
|
onClick: () => {
|
|
@@ -683,7 +683,7 @@ function HeaderSkeleton({ config }) {
|
|
|
683
683
|
// src/components/navigation/client-only-header.tsx
|
|
684
684
|
|
|
685
685
|
function ClientOnlyHeader({ config, skeleton }) {
|
|
686
|
-
const isClient =
|
|
686
|
+
const isClient = _chunkLDPEQGKTcjs.useIsHydrated.call(void 0, );
|
|
687
687
|
if (!isClient) {
|
|
688
688
|
return skeleton || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderSkeleton, { config });
|
|
689
689
|
}
|
|
@@ -697,12 +697,12 @@ var _framermotion = require('framer-motion');
|
|
|
697
697
|
|
|
698
698
|
function SlidingSidebar({ config }) {
|
|
699
699
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
700
|
-
const mounted =
|
|
701
|
-
const headerHeight =
|
|
700
|
+
const mounted = _chunkLDPEQGKTcjs.useIsHydrated.call(void 0, );
|
|
701
|
+
const headerHeight = _chunkC3BWIU7Rcjs.useHeaderHeight.call(void 0, );
|
|
702
702
|
const asideRef = _react.useRef.call(void 0, null);
|
|
703
703
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
704
704
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !config.isOpen });
|
|
705
|
-
|
|
705
|
+
_chunkMGGGBHYDcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
|
|
706
706
|
const toggleExpanded = (itemId) => {
|
|
707
707
|
const newExpanded = new Set(expandedItems);
|
|
708
708
|
if (newExpanded.has(itemId)) {
|
|
@@ -829,7 +829,7 @@ function SlidingSidebar({ config }) {
|
|
|
829
829
|
duration: 0.3,
|
|
830
830
|
ease: [0.4, 0, 0.2, 1]
|
|
831
831
|
},
|
|
832
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[45]",
|
|
832
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkLDPEQGKTcjs.OVERLAY_BACKDROP_CLASS),
|
|
833
833
|
onClick: () => config.onClose()
|
|
834
834
|
}
|
|
835
835
|
) }),
|
|
@@ -970,7 +970,7 @@ var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSi
|
|
|
970
970
|
_react.cloneElement.call(void 0, item.icon, {
|
|
971
971
|
color: isActive && !disabled ? "text-ods-accent" : "text-ods-text-secondary"
|
|
972
972
|
}),
|
|
973
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
973
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.UnreadDot, { size: "fixed" })
|
|
974
974
|
] }),
|
|
975
975
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
976
976
|
"span",
|
|
@@ -1064,14 +1064,14 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
|
|
|
1064
1064
|
const isMdUp = _nullishCoalesce(_chunkRKV5B7EUcjs.useMdUp.call(void 0, ), () => ( false));
|
|
1065
1065
|
const isLgUp = _nullishCoalesce(_chunkRKV5B7EUcjs.useLgUp.call(void 0, ), () => ( false));
|
|
1066
1066
|
const isTablet = isMdUp && !isLgUp;
|
|
1067
|
-
const [desktopMinimized, setDesktopMinimized] =
|
|
1067
|
+
const [desktopMinimized, setDesktopMinimized] = _chunkMGGGBHYDcjs.useLocalStorage.call(void 0, STORAGE_KEY, _nullishCoalesce(config.minimized, () => ( false)));
|
|
1068
1068
|
const [tabletMinimized, setTabletMinimized] = _react.useState.call(void 0, true);
|
|
1069
1069
|
const [tabletFor, setTabletFor] = _react.useState.call(void 0, isTablet);
|
|
1070
1070
|
if (tabletFor !== isTablet) {
|
|
1071
1071
|
setTabletFor(isTablet);
|
|
1072
1072
|
if (isTablet) setTabletMinimized(true);
|
|
1073
1073
|
}
|
|
1074
|
-
const hydrated =
|
|
1074
|
+
const hydrated = _chunkLDPEQGKTcjs.useIsHydrated.call(void 0, );
|
|
1075
1075
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1076
1076
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1077
1077
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1263,7 +1263,7 @@ function HeaderGlobalSearch({
|
|
|
1263
1263
|
"form",
|
|
1264
1264
|
{
|
|
1265
1265
|
onSubmit: handleSubmit,
|
|
1266
|
-
...
|
|
1266
|
+
..._chunkLTSTC3N5cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
1267
1267
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1268
1268
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
1269
1269
|
// Transparent so the cell inherits the bar's background
|
|
@@ -1458,7 +1458,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1458
1458
|
leading: (
|
|
1459
1459
|
// Mobile: Burger Menu Button
|
|
1460
1460
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1461
|
-
|
|
1461
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
1462
1462
|
{
|
|
1463
1463
|
onClick: onToggleMobileMenu,
|
|
1464
1464
|
isActive: isMobileMenuOpen,
|
|
@@ -1484,7 +1484,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1484
1484
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1485
1485
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1486
1486
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1487
|
-
|
|
1487
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
1488
1488
|
{
|
|
1489
1489
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4GFNWALLcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1490
1490
|
"aria-label": "Search",
|
|
@@ -1501,7 +1501,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1501
1501
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1502
1502
|
}
|
|
1503
1503
|
),
|
|
1504
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1504
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.TimeTrackerHeaderButton, { disabled, className: _chunk3ATAYP36cjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1505
1505
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1506
1506
|
NotificationsHeaderButton,
|
|
1507
1507
|
{
|
|
@@ -1521,7 +1521,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1521
1521
|
),
|
|
1522
1522
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBM5MVGH3cjs.DropdownMenu, { children: [
|
|
1523
1523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBM5MVGH3cjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1524
|
-
|
|
1524
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
1525
1525
|
{
|
|
1526
1526
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1527
1527
|
_chunkMMOODW57cjs.SquareAvatar,
|
|
@@ -1606,12 +1606,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1606
1606
|
);
|
|
1607
1607
|
});
|
|
1608
1608
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1609
|
-
const ctx =
|
|
1609
|
+
const ctx = _chunkLTSTC3N5cjs.useOptionalNotifications.call(void 0, );
|
|
1610
1610
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _94 => _94.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1611
1611
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _95 => _95.isOpen]), () => ( false));
|
|
1612
1612
|
const onClick = _optionalChain([ctx, 'optionalAccess', _96 => _96.toggle]);
|
|
1613
1613
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1614
|
-
|
|
1614
|
+
_chunkLTSTC3N5cjs.HeaderButton,
|
|
1615
1615
|
{
|
|
1616
1616
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.BellIcon, { className: "h-6 w-6" }),
|
|
1617
1617
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -1682,7 +1682,6 @@ function AppHeaderSkeleton({
|
|
|
1682
1682
|
|
|
1683
1683
|
|
|
1684
1684
|
var SIDE_PANEL_INSET = 16;
|
|
1685
|
-
var SIDE_PANEL_FRAME_WIDTH = 2;
|
|
1686
1685
|
var MOBILE_QUERY = `not all and ${_chunkRKV5B7EUcjs.breakpoints.md}`;
|
|
1687
1686
|
var REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
1688
1687
|
var MORPH_MS = 300;
|
|
@@ -1763,7 +1762,6 @@ function useAppLayoutSidePanel(config, row) {
|
|
|
1763
1762
|
const minContentWidth = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _98 => _98.minContentWidth]), () => ( 400));
|
|
1764
1763
|
const collapsed = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _99 => _99.collapsed]), () => ( false));
|
|
1765
1764
|
const minimum = { width: minWidth, expanded: false };
|
|
1766
|
-
const defaultWidth = Math.max(minWidth, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _100 => _100.defaultWidth]), () => ( minWidth)));
|
|
1767
1765
|
const [rowWidth, setRowWidth] = _react.useState.call(void 0, 0);
|
|
1768
1766
|
_chunkRKV5B7EUcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
1769
1767
|
if (!enabled || !row) return void 0;
|
|
@@ -1777,13 +1775,13 @@ function useAppLayoutSidePanel(config, row) {
|
|
|
1777
1775
|
const reduceMotion = _chunkRKV5B7EUcjs.useMediaQuery.call(void 0, REDUCED_MOTION_QUERY) === true;
|
|
1778
1776
|
const [morph, setMorph] = _react.useState.call(void 0, null);
|
|
1779
1777
|
const [liveWidth, setLiveWidth] = _react.useState.call(void 0, null);
|
|
1780
|
-
const [storedSize, setStoredSize] = useStoredSize(_optionalChain([config, 'optionalAccess',
|
|
1778
|
+
const [storedSize, setStoredSize] = useStoredSize(_optionalChain([config, 'optionalAccess', _100 => _100.storageKey]), minimum);
|
|
1781
1779
|
const [ownIsOpen, setOwnIsOpen] = _react.useState.call(void 0, false);
|
|
1782
|
-
const isOpen = _nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
1783
|
-
const onOpenChange = _optionalChain([config, 'optionalAccess',
|
|
1780
|
+
const isOpen = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _101 => _101.open]), () => ( ownIsOpen));
|
|
1781
|
+
const onOpenChange = _optionalChain([config, 'optionalAccess', _102 => _102.onOpenChange]);
|
|
1784
1782
|
const setIsOpen = (next) => {
|
|
1785
|
-
if (_optionalChain([config, 'optionalAccess',
|
|
1786
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
1783
|
+
if (_optionalChain([config, 'optionalAccess', _103 => _103.open]) === void 0) setOwnIsOpen(next);
|
|
1784
|
+
_optionalChain([onOpenChange, 'optionalCall', _104 => _104(next)]);
|
|
1787
1785
|
};
|
|
1788
1786
|
const [collapsedSize, setCollapsedSize] = _react.useState.call(void 0, null);
|
|
1789
1787
|
const [prevCollapsed, setPrevCollapsed] = _react.useState.call(void 0, collapsed);
|
|
@@ -1803,8 +1801,8 @@ function useAppLayoutSidePanel(config, row) {
|
|
|
1803
1801
|
_react.useEffect.call(void 0, () => {
|
|
1804
1802
|
const couldDock = prevCanDockRef.current;
|
|
1805
1803
|
prevCanDockRef.current = layout.canDock;
|
|
1806
|
-
if (!couldDock && layout.canDock && _optionalChain([config, 'optionalAccess',
|
|
1807
|
-
}, [layout.canDock, _optionalChain([config, 'optionalAccess',
|
|
1804
|
+
if (!couldDock && layout.canDock && _optionalChain([config, 'optionalAccess', _105 => _105.open])) _optionalChain([onOpenChange, 'optionalCall', _106 => _106(false)]);
|
|
1805
|
+
}, [layout.canDock, _optionalChain([config, 'optionalAccess', _107 => _107.open]), onOpenChange]);
|
|
1808
1806
|
if (!enabled) return null;
|
|
1809
1807
|
const animate = (next) => {
|
|
1810
1808
|
if (!reduceMotion) setMorph(next);
|
|
@@ -1824,7 +1822,6 @@ function useAppLayoutSidePanel(config, row) {
|
|
|
1824
1822
|
let collapsesTo = null;
|
|
1825
1823
|
if (layout.mode === "full" && layout.canDock) collapsesTo = layout.dockedWidth > minWidth ? "column" : "minimum";
|
|
1826
1824
|
else if (layout.mode === "docked" && layout.width > minWidth) collapsesTo = "minimum";
|
|
1827
|
-
const canExpand = layout.mode === "docked" && layout.width <= minWidth && defaultWidth > minWidth && layout.maxDockedWidth > minWidth;
|
|
1828
1825
|
return {
|
|
1829
1826
|
...layout,
|
|
1830
1827
|
minWidth,
|
|
@@ -1845,12 +1842,6 @@ function useAppLayoutSidePanel(config, row) {
|
|
|
1845
1842
|
setSize({ width: minWidth, expanded: false });
|
|
1846
1843
|
}
|
|
1847
1844
|
},
|
|
1848
|
-
canExpand,
|
|
1849
|
-
expand: () => {
|
|
1850
|
-
if (!canExpand) return;
|
|
1851
|
-
animate("narrow");
|
|
1852
|
-
dock(defaultWidth);
|
|
1853
|
-
},
|
|
1854
1845
|
toggle: () => setIsOpen(!isOpen),
|
|
1855
1846
|
close: () => setIsOpen(false),
|
|
1856
1847
|
resize,
|
|
@@ -2033,9 +2024,7 @@ function AppLayoutSidePanel({ config, state }) {
|
|
|
2033
2024
|
canClose: mode === "overlay" || mode === "full" && !canDock,
|
|
2034
2025
|
close,
|
|
2035
2026
|
collapsesTo: state.collapsesTo,
|
|
2036
|
-
collapse: state.collapse
|
|
2037
|
-
canExpand: state.canExpand,
|
|
2038
|
-
expand: state.expand
|
|
2027
|
+
collapse: state.collapse
|
|
2039
2028
|
})
|
|
2040
2029
|
}
|
|
2041
2030
|
)
|
|
@@ -2063,13 +2052,13 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
2063
2052
|
}) {
|
|
2064
2053
|
const panelRef = _react.useRef.call(void 0, null);
|
|
2065
2054
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
2066
|
-
|
|
2055
|
+
_chunkMGGGBHYDcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
|
|
2067
2056
|
const handleItemClick = _react.useCallback.call(void 0,
|
|
2068
2057
|
(item) => {
|
|
2069
2058
|
if (item.onClick) {
|
|
2070
2059
|
item.onClick();
|
|
2071
2060
|
} else if (item.path) {
|
|
2072
|
-
_optionalChain([config, 'access',
|
|
2061
|
+
_optionalChain([config, 'access', _108 => _108.onNavigate, 'optionalCall', _109 => _109(item.path)]);
|
|
2073
2062
|
}
|
|
2074
2063
|
onClose();
|
|
2075
2064
|
},
|
|
@@ -2128,7 +2117,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
2128
2117
|
{
|
|
2129
2118
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
2130
2119
|
"absolute inset-0 z-[100] md:hidden",
|
|
2131
|
-
|
|
2120
|
+
_chunkLDPEQGKTcjs.OVERLAY_BACKDROP_CLASS,
|
|
2132
2121
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
2133
2122
|
isOpen ? "opacity-100" : "pointer-events-none opacity-0"
|
|
2134
2123
|
),
|
|
@@ -2193,7 +2182,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
2193
2182
|
]
|
|
2194
2183
|
}
|
|
2195
2184
|
),
|
|
2196
|
-
_optionalChain([config, 'access',
|
|
2185
|
+
_optionalChain([config, 'access', _110 => _110.topSlot, 'optionalCall', _111 => _111({ minimized: false })]),
|
|
2197
2186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Primary navigation", children: renderNavigationGrid(primaryItems) }),
|
|
2198
2187
|
secondaryItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Secondary navigation", className: "flex flex-col gap-3", children: secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderNavigationItem(item, false) }, item.id)) }),
|
|
2199
2188
|
onLogout && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -2253,7 +2242,7 @@ function AppLayout({
|
|
|
2253
2242
|
isMingoAIActive: sidePanelState.isOpen,
|
|
2254
2243
|
mingoAICloseWhenActive: true
|
|
2255
2244
|
};
|
|
2256
|
-
const contentCovered = _optionalChain([sidePanelState, 'optionalAccess',
|
|
2245
|
+
const contentCovered = _optionalChain([sidePanelState, 'optionalAccess', _112 => _112.coversContent]) === true;
|
|
2257
2246
|
const mobileMenuOpenRef = _react.useRef.call(void 0, mobileMenuOpen);
|
|
2258
2247
|
_react.useEffect.call(void 0, () => {
|
|
2259
2248
|
mobileMenuOpenRef.current = mobileMenuOpen;
|
|
@@ -2284,7 +2273,7 @@ function AppLayout({
|
|
|
2284
2273
|
}),
|
|
2285
2274
|
[]
|
|
2286
2275
|
);
|
|
2287
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2276
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2288
2277
|
topBar,
|
|
2289
2278
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2290
2279
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2308,7 +2297,7 @@ function AppLayout({
|
|
|
2308
2297
|
disabled
|
|
2309
2298
|
}
|
|
2310
2299
|
),
|
|
2311
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.NotificationDrawer, {}),
|
|
2312
2301
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2313
2302
|
"div",
|
|
2314
2303
|
{
|
|
@@ -2327,7 +2316,7 @@ function AppLayout({
|
|
|
2327
2316
|
contentCovered && "hidden",
|
|
2328
2317
|
// While the panel is drawn over the page, keep the page's own
|
|
2329
2318
|
// z-indexed layers (sticky headers, fixed bars) under it.
|
|
2330
|
-
_optionalChain([sidePanelState, 'optionalAccess',
|
|
2319
|
+
_optionalChain([sidePanelState, 'optionalAccess', _113 => _113.overlapsContent]) && "isolate",
|
|
2331
2320
|
mainClassName
|
|
2332
2321
|
),
|
|
2333
2322
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRKV5B7EUcjs.ContentAreaWidthContext.Provider, { value: contentWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children }) })
|
|
@@ -2363,5 +2352,4 @@ function AppLayout({
|
|
|
2363
2352
|
|
|
2364
2353
|
|
|
2365
2354
|
|
|
2366
|
-
|
|
2367
|
-
exports.MingoAiButton = MingoAiButton; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.TicketAlertsButton = TicketAlertsButton; exports.TopNavigation = TopNavigation; exports.Header = Header; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.NavigationItemBadge = NavigationItemBadge; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.SIDE_PANEL_FRAME_WIDTH = SIDE_PANEL_FRAME_WIDTH; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout;
|
|
2355
|
+
exports.MingoAiButton = MingoAiButton; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.TicketAlertsButton = TicketAlertsButton; exports.TopNavigation = TopNavigation; exports.Header = Header; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.NavigationItemBadge = NavigationItemBadge; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ContactForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VTASHWER.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
DevCardRowContent,
|
|
8
8
|
DevCardRowSkeletonList,
|
|
9
9
|
DevSectionPage,
|
|
10
10
|
ListEmptyState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FXENTYE5.js";
|
|
12
12
|
import {
|
|
13
13
|
EmptyState,
|
|
14
14
|
UnifiedPagination
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TOAST_COPY,
|
|
20
20
|
isOptimistic,
|
|
21
21
|
useOptionalTicketLive
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7LFIKJX2.js";
|
|
23
23
|
import {
|
|
24
24
|
AlertDialog,
|
|
25
25
|
AlertDialogAction,
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
Textarea,
|
|
36
36
|
TicketAttachmentsList,
|
|
37
37
|
devSectionAnchorId
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-4KGXLVCF.js";
|
|
39
39
|
import {
|
|
40
40
|
toast,
|
|
41
41
|
useScrollToHash
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IHU5ANUY.js";
|
|
43
43
|
import {
|
|
44
44
|
PAGE_PARAM_LIMITS,
|
|
45
45
|
pageCount,
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
formatRelativeTime,
|
|
56
56
|
useChatAttachments,
|
|
57
57
|
useChatIdentity
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2JDVL7UV.js";
|
|
59
59
|
import {
|
|
60
60
|
STICKY_HEADER_OFFSET_PX,
|
|
61
61
|
scrollElementIntoView
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-WUJNYGO2.js";
|
|
63
63
|
import {
|
|
64
64
|
usePathname,
|
|
65
65
|
useRouter,
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkMGGGBHYDcjs = require('./chunk-MGGGBHYD.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
var _chunkC3BWIU7Rcjs = require('./chunk-C3BWIU7R.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
|
|
@@ -87,7 +88,7 @@ var sourceConfig = {
|
|
|
87
88
|
};
|
|
88
89
|
var SoftwareSourceBadge = ({ source, className }) => {
|
|
89
90
|
const config = sourceConfig[source] || { label: source, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX72J4ACLcjs.PackageIcon, { className: "h-4 w-4" }) };
|
|
90
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
91
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC3BWIU7Rcjs.cn.call(void 0, "inline-flex items-center gap-2 text-ods-text-primary", className), children: [
|
|
91
92
|
config.icon,
|
|
92
93
|
config.label
|
|
93
94
|
] });
|
|
@@ -128,8 +129,8 @@ var ToolBadge = ({
|
|
|
128
129
|
className,
|
|
129
130
|
iconClassName
|
|
130
131
|
}) => {
|
|
131
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
132
|
-
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkLTSTC3N5cjs.getToolLabel.call(void 0, toolType) : "")));
|
|
133
|
+
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3BWIU7Rcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
133
134
|
const linked = (node, linkClassName) => href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", title: text || void 0, className: linkClassName, children: node }) : node;
|
|
134
135
|
if (variant === "chip") {
|
|
135
136
|
return linked(
|
|
@@ -162,31 +163,31 @@ var ToolBadge = ({
|
|
|
162
163
|
// src/components/platform/ShellTypeBadge.tsx
|
|
163
164
|
|
|
164
165
|
var shellIconMap = {
|
|
165
|
-
[
|
|
166
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.POWERSHELL]: {
|
|
166
167
|
icon: _chunkN3COXDBHcjs.PowershellLogoGreyIcon,
|
|
167
168
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
168
169
|
},
|
|
169
|
-
[
|
|
170
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.CMD]: {
|
|
170
171
|
icon: _chunkX72J4ACLcjs.CmdIcon,
|
|
171
172
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
172
173
|
},
|
|
173
|
-
[
|
|
174
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.BASH]: {
|
|
174
175
|
icon: _chunkX72J4ACLcjs.BashIcon,
|
|
175
176
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
176
177
|
},
|
|
177
|
-
[
|
|
178
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.PYTHON]: {
|
|
178
179
|
icon: _chunkN3COXDBHcjs.PythonLogoIcon,
|
|
179
180
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
180
181
|
},
|
|
181
|
-
[
|
|
182
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.NUSHELL]: {
|
|
182
183
|
icon: _chunkX72J4ACLcjs.NushellIcon,
|
|
183
184
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
184
185
|
},
|
|
185
|
-
[
|
|
186
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.DENO]: {
|
|
186
187
|
icon: _chunkX72J4ACLcjs.DenoIcon,
|
|
187
188
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
188
189
|
},
|
|
189
|
-
[
|
|
190
|
+
[_chunkLTSTC3N5cjs.ShellTypeValues.SHELL]: {
|
|
190
191
|
icon: _chunkX72J4ACLcjs.ShellIcon,
|
|
191
192
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
192
193
|
}
|
|
@@ -197,7 +198,7 @@ var defaultIconConfig = {
|
|
|
197
198
|
};
|
|
198
199
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
199
200
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
200
|
-
const label =
|
|
201
|
+
const label = _chunkLTSTC3N5cjs.getShellLabel.call(void 0, normalizedType);
|
|
201
202
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
202
203
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
203
204
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -213,7 +214,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
213
214
|
if (!platforms || platforms.length === 0) {
|
|
214
215
|
return "All Platforms";
|
|
215
216
|
}
|
|
216
|
-
return platforms.map((platform) =>
|
|
217
|
+
return platforms.map((platform) => _chunkLTSTC3N5cjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
217
218
|
}
|
|
218
219
|
function InfoCell({ label, value, avatar, className }) {
|
|
219
220
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -233,7 +234,7 @@ var ScriptInfoSection = ({
|
|
|
233
234
|
author,
|
|
234
235
|
className
|
|
235
236
|
}) => {
|
|
236
|
-
const shellLabel =
|
|
237
|
+
const shellLabel = _chunkLTSTC3N5cjs.getShellLabel.call(void 0, shellType);
|
|
237
238
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
238
239
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
239
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -480,7 +481,7 @@ function OnboardingWalkthrough({
|
|
|
480
481
|
isStepSkipped,
|
|
481
482
|
allStepsComplete,
|
|
482
483
|
markMultipleComplete
|
|
483
|
-
} =
|
|
484
|
+
} = _chunkMGGGBHYDcjs.useOnboardingState.call(void 0, storageKey);
|
|
484
485
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
485
486
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
486
487
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|