@flamingo-stack/openframe-frontend-core 0.0.189 → 0.0.190-snapshot.20260516164624
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-SA7CUXAO.cjs → chunk-LVBPFEK2.cjs} +73 -43
- package/dist/chunk-LVBPFEK2.cjs.map +1 -0
- package/dist/{chunk-HOMIFMOO.js → chunk-QAXTP73H.js} +136 -106
- package/dist/chunk-QAXTP73H.js.map +1 -0
- 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/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/slash-command-suggestions.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +54 -15
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/shared/product-release/product-release-card.d.ts +35 -2
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +6 -5
- package/src/components/chat/chat-message-enhanced.tsx +33 -17
- package/src/components/chat/chat-message-list.tsx +3 -0
- package/src/components/chat/slash-command-suggestions.tsx +8 -1
- package/src/components/chat/types/component.types.ts +53 -15
- package/src/components/shared/product-release/product-release-card.tsx +144 -30
- package/dist/chunk-HOMIFMOO.js.map +0 -1
- package/dist/chunk-SA7CUXAO.cjs.map +0 -1
|
@@ -4613,7 +4613,7 @@ function SlashCommandSuggestions({
|
|
|
4613
4613
|
children: commands.map((cmd, idx) => {
|
|
4614
4614
|
const meta = cmd.primarySourceId && resolveSourceIcon ? resolveSourceIcon(cmd.primarySourceId) : void 0;
|
|
4615
4615
|
const Icon2 = meta?.Icon;
|
|
4616
|
-
const sourceLabel = meta?.label;
|
|
4616
|
+
const sourceLabel = cmd.label ?? meta?.label;
|
|
4617
4617
|
const isHighlighted = idx === highlightedIdx;
|
|
4618
4618
|
return /* @__PURE__ */ jsxs22(
|
|
4619
4619
|
"div",
|
|
@@ -4790,11 +4790,7 @@ var ChatInput = forwardRef18(
|
|
|
4790
4790
|
const ctrl = new AbortController();
|
|
4791
4791
|
const handle = setTimeout(async () => {
|
|
4792
4792
|
try {
|
|
4793
|
-
const next = await slashCommands.fetchCommands(
|
|
4794
|
-
slashCommands.source,
|
|
4795
|
-
slashPrefix,
|
|
4796
|
-
ctrl.signal
|
|
4797
|
-
);
|
|
4793
|
+
const next = await slashCommands.fetchCommands(slashPrefix, ctrl.signal);
|
|
4798
4794
|
if (!cancelled) {
|
|
4799
4795
|
setSlashSuggestions(next);
|
|
4800
4796
|
setHighlightedIdx(0);
|
|
@@ -5114,7 +5110,7 @@ function normalizeContent(content) {
|
|
|
5114
5110
|
return content;
|
|
5115
5111
|
}
|
|
5116
5112
|
var ChatMessageEnhanced = forwardRef20(
|
|
5117
|
-
({ className, role, content, name, avatar, isTyping = false, timestamp, showAvatar = true, assistantType, authorType: authorTypeProp, assistantIcon, chatRefs, renderEntityCard, ...props }, ref) => {
|
|
5113
|
+
({ className, role, content, name, avatar, isTyping = false, timestamp, showAvatar = true, assistantType, authorType: authorTypeProp, assistantIcon, chatRefs, renderEntityCard, NavLinkAnchor, ...props }, ref) => {
|
|
5118
5114
|
const isUser = role === "user";
|
|
5119
5115
|
const isError = role === "error";
|
|
5120
5116
|
const authorType = authorTypeProp ?? (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae");
|
|
@@ -5198,20 +5194,13 @@ var ChatMessageEnhanced = forwardRef20(
|
|
|
5198
5194
|
return /* @__PURE__ */ jsx30("span", { className: "text-ods-text-primary", children: fallbackTitle });
|
|
5199
5195
|
}
|
|
5200
5196
|
}
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
className: linkClassName,
|
|
5206
|
-
target: typeof href === "string" && href.length > 0 ? "_blank" : void 0,
|
|
5207
|
-
rel: typeof href === "string" && href.length > 0 ? "noopener noreferrer" : void 0,
|
|
5208
|
-
...rest,
|
|
5209
|
-
children
|
|
5210
|
-
}
|
|
5211
|
-
);
|
|
5197
|
+
if (typeof href === "string" && NavLinkAnchor && !href.startsWith("#")) {
|
|
5198
|
+
return /* @__PURE__ */ jsx30(NavLinkAnchor, { href, className: linkClassName, ...rest, children });
|
|
5199
|
+
}
|
|
5200
|
+
return /* @__PURE__ */ jsx30("a", { href, className: linkClassName, ...rest, children });
|
|
5212
5201
|
}
|
|
5213
5202
|
};
|
|
5214
|
-
}, [hasMarkerSupport, chatRefs, renderingPlan]);
|
|
5203
|
+
}, [hasMarkerSupport, chatRefs, renderingPlan, NavLinkAnchor]);
|
|
5215
5204
|
const getAvatarProps = () => {
|
|
5216
5205
|
const displayName = name || (isUser ? "User" : assistantType === "mingo" ? "Mingo" : "Fae");
|
|
5217
5206
|
const initials = displayName.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
@@ -5363,7 +5352,7 @@ var MemoizedChatMessageEnhanced = memo2(ChatMessageEnhanced, (prevProps, nextPro
|
|
|
5363
5352
|
// re-use the same Record instance per turn; mutations create a new map.
|
|
5364
5353
|
// Without this check, a parent re-render with a new (but equivalent)
|
|
5365
5354
|
// refs object would force a full markdown re-render every keystroke.
|
|
5366
|
-
prevProps.chatRefs === nextProps.chatRefs && prevProps.renderEntityCard === nextProps.renderEntityCard;
|
|
5355
|
+
prevProps.chatRefs === nextProps.chatRefs && prevProps.renderEntityCard === nextProps.renderEntityCard && prevProps.NavLinkAnchor === nextProps.NavLinkAnchor;
|
|
5367
5356
|
});
|
|
5368
5357
|
MemoizedChatMessageEnhanced.displayName = "MemoizedChatMessageEnhanced";
|
|
5369
5358
|
|
|
@@ -5563,6 +5552,7 @@ var ChatMessageList = forwardRef21(
|
|
|
5563
5552
|
isFetchingNextPage,
|
|
5564
5553
|
onLoadMore,
|
|
5565
5554
|
renderEntityCard,
|
|
5555
|
+
NavLinkAnchor,
|
|
5566
5556
|
...props
|
|
5567
5557
|
}, ref) => {
|
|
5568
5558
|
const { scrollRef, contentRef, scrollToBottom } = useStickToBottom({
|
|
@@ -5707,7 +5697,8 @@ var ChatMessageList = forwardRef21(
|
|
|
5707
5697
|
authorType: message.authorType,
|
|
5708
5698
|
assistantIcon: message.role !== "user" ? assistantIcon : void 0,
|
|
5709
5699
|
chatRefs: message.chatRefs,
|
|
5710
|
-
renderEntityCard
|
|
5700
|
+
renderEntityCard,
|
|
5701
|
+
NavLinkAnchor
|
|
5711
5702
|
},
|
|
5712
5703
|
message.id
|
|
5713
5704
|
))
|
|
@@ -5746,6 +5737,7 @@ var ChatMessageList = forwardRef21(
|
|
|
5746
5737
|
showAvatar: showAvatars,
|
|
5747
5738
|
assistantType,
|
|
5748
5739
|
assistantIcon,
|
|
5740
|
+
NavLinkAnchor,
|
|
5749
5741
|
className: "py-3"
|
|
5750
5742
|
}
|
|
5751
5743
|
) })
|
|
@@ -16832,13 +16824,14 @@ function OnboardingWalkthrough({
|
|
|
16832
16824
|
// src/components/shared/product-release/product-release-card.tsx
|
|
16833
16825
|
init_cn();
|
|
16834
16826
|
import { ChevronRight as ChevronRight6, Package as Package3 } from "lucide-react";
|
|
16835
|
-
import { jsx as jsx138, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
16827
|
+
import { Fragment as Fragment20, jsx as jsx138, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
16836
16828
|
function ProductReleaseCard({
|
|
16837
16829
|
title,
|
|
16838
16830
|
summary,
|
|
16839
16831
|
version,
|
|
16840
16832
|
formattedDate,
|
|
16841
16833
|
onClick,
|
|
16834
|
+
anchorProps,
|
|
16842
16835
|
className,
|
|
16843
16836
|
size = "default"
|
|
16844
16837
|
}) {
|
|
@@ -16850,38 +16843,75 @@ function ProductReleaseCard({
|
|
|
16850
16843
|
onClick();
|
|
16851
16844
|
}
|
|
16852
16845
|
};
|
|
16853
|
-
|
|
16846
|
+
const isInteractive = !!anchorProps || !!onClick;
|
|
16847
|
+
const outerClassName = cn(
|
|
16848
|
+
// The base frame (`my-1.5 flex … no-underline`) mirrors the
|
|
16849
|
+
// hub's `COMPACT_CARD_OUTER` in `components/shared/compact-
|
|
16850
|
+
// card/compact-card-classes.ts` byte-for-byte. The OSS lib
|
|
16851
|
+
// can't import from the consumer, so the two strings are
|
|
16852
|
+
// kept identical by hand — if you edit one, edit the other.
|
|
16853
|
+
//
|
|
16854
|
+
// The interactive branch ADDS `cursor-pointer` + a focus-
|
|
16855
|
+
// visible ring. The `<a>` form would normally get focus styling
|
|
16856
|
+
// from the browser, but `no-underline` strips the default
|
|
16857
|
+
// affordance, so explicit ring styles match the `<span role>` form.
|
|
16858
|
+
"my-1.5 flex items-start gap-3 w-full p-2",
|
|
16859
|
+
"rounded-lg border border-ods-border bg-ods-card no-underline",
|
|
16860
|
+
isInteractive ? "transition-colors hover:border-ods-text-secondary/40 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ods-card" : "cursor-default",
|
|
16861
|
+
className
|
|
16862
|
+
);
|
|
16863
|
+
const innerChildren = /* @__PURE__ */ jsxs110(Fragment20, { children: [
|
|
16864
|
+
/* @__PURE__ */ jsx138("span", { className: "flex h-14 w-14 aspect-square shrink-0 self-start items-center justify-center rounded-md bg-ods-bg text-ods-accent", children: /* @__PURE__ */ jsx138(Package3, { className: "h-5 w-5" }) }),
|
|
16865
|
+
/* @__PURE__ */ jsxs110("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 min-h-14", children: [
|
|
16866
|
+
/* @__PURE__ */ jsxs110("span", { className: "flex items-center gap-2 min-w-0 h-5", children: [
|
|
16867
|
+
/* @__PURE__ */ jsx138("span", { className: "truncate text-sm font-semibold leading-5 text-ods-text-primary min-w-0", children: title }),
|
|
16868
|
+
version ? /* @__PURE__ */ jsx138("span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 font-mono text-[10px] font-medium text-ods-accent", children: version }) : null
|
|
16869
|
+
] }),
|
|
16870
|
+
/* @__PURE__ */ jsx138("span", { className: "flex items-center min-w-0 h-4", children: /* @__PURE__ */ jsx138("span", { className: "truncate text-[11px] leading-4 text-ods-text-secondary", children: formattedDate || "Product release" }) }),
|
|
16871
|
+
/* @__PURE__ */ jsx138("span", { className: "flex items-center min-w-0 h-4", children: /* @__PURE__ */ jsx138("span", { className: "truncate text-[11px] leading-4 text-ods-text-secondary/80", children: summary || "\xA0" }) })
|
|
16872
|
+
] })
|
|
16873
|
+
] });
|
|
16874
|
+
if (anchorProps) {
|
|
16875
|
+
return /* @__PURE__ */ jsx138("a", { ...anchorProps, className: outerClassName, children: innerChildren });
|
|
16876
|
+
}
|
|
16877
|
+
return /* @__PURE__ */ jsx138(
|
|
16854
16878
|
"span",
|
|
16855
16879
|
{
|
|
16856
16880
|
role: onClick ? "button" : void 0,
|
|
16857
16881
|
tabIndex: onClick ? 0 : void 0,
|
|
16858
16882
|
onClick,
|
|
16859
16883
|
onKeyDown: onClick ? handleKey : void 0,
|
|
16884
|
+
className: outerClassName,
|
|
16885
|
+
children: innerChildren
|
|
16886
|
+
}
|
|
16887
|
+
);
|
|
16888
|
+
}
|
|
16889
|
+
if (anchorProps) {
|
|
16890
|
+
return /* @__PURE__ */ jsxs110(
|
|
16891
|
+
"a",
|
|
16892
|
+
{
|
|
16893
|
+
...anchorProps,
|
|
16860
16894
|
className: cn(
|
|
16861
|
-
|
|
16862
|
-
|
|
16863
|
-
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
|
|
16867
|
-
|
|
16868
|
-
// visible ring because this outer is a `<span role="button">`
|
|
16869
|
-
// (not an `<a>`), so it needs explicit keyboard-focus
|
|
16870
|
-
// styling that the hub's anchor variants get for free.
|
|
16871
|
-
"my-1.5 flex items-start gap-3 w-full p-2",
|
|
16872
|
-
"rounded-lg border border-ods-border bg-ods-card no-underline",
|
|
16873
|
-
onClick ? "transition-colors hover:border-ods-text-secondary/40 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ods-card" : "cursor-default",
|
|
16895
|
+
"bg-ods-card border border-ods-border rounded-[6px]",
|
|
16896
|
+
"flex flex-col md:flex-row",
|
|
16897
|
+
"items-start md:items-center",
|
|
16898
|
+
"gap-3 md:gap-4",
|
|
16899
|
+
"p-4 no-underline",
|
|
16900
|
+
"transition-colors hover:border-ods-text-secondary/40",
|
|
16901
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ods-card",
|
|
16874
16902
|
className
|
|
16875
16903
|
),
|
|
16876
16904
|
children: [
|
|
16877
|
-
/* @__PURE__ */
|
|
16878
|
-
|
|
16879
|
-
/* @__PURE__ */
|
|
16880
|
-
|
|
16881
|
-
|
|
16905
|
+
/* @__PURE__ */ jsxs110("div", { className: "flex-1 w-full md:w-auto min-w-0 flex flex-col justify-center gap-2", children: [
|
|
16906
|
+
/* @__PURE__ */ jsx138("div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ jsx138("h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] line-clamp-2", children: title }) }),
|
|
16907
|
+
/* @__PURE__ */ jsx138("p", { className: "text-h4 text-ods-text-secondary line-clamp-3", children: summary || " " })
|
|
16908
|
+
] }),
|
|
16909
|
+
/* @__PURE__ */ jsxs110("div", { className: "flex items-center gap-2 w-full md:w-auto justify-start md:justify-end shrink-0", children: [
|
|
16910
|
+
/* @__PURE__ */ jsxs110("div", { className: "w-[200px] flex flex-col justify-center gap-2", children: [
|
|
16911
|
+
/* @__PURE__ */ jsx138("p", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] truncate", children: version }),
|
|
16912
|
+
/* @__PURE__ */ jsx138("p", { className: "font-['DM_Sans'] font-medium text-[14px] leading-[20px] text-ods-text-secondary truncate", children: formattedDate })
|
|
16882
16913
|
] }),
|
|
16883
|
-
/* @__PURE__ */ jsx138("
|
|
16884
|
-
/* @__PURE__ */ jsx138("span", { className: "flex items-center min-w-0 h-4", children: /* @__PURE__ */ jsx138("span", { className: "truncate text-[11px] leading-4 text-ods-text-secondary/80", children: summary || "\xA0" }) })
|
|
16914
|
+
/* @__PURE__ */ jsx138("div", { className: "flex items-center justify-center p-3 shrink-0", children: /* @__PURE__ */ jsx138(ChevronRight6, { className: "h-6 w-6 text-ods-text-primary" }) })
|
|
16885
16915
|
] })
|
|
16886
16916
|
]
|
|
16887
16917
|
}
|
|
@@ -17085,7 +17115,7 @@ function ReleaseChangelogSection({
|
|
|
17085
17115
|
import { useState as useState33, useEffect as useEffect25 } from "react";
|
|
17086
17116
|
import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight7 } from "lucide-react";
|
|
17087
17117
|
import Image8 from "next/image";
|
|
17088
|
-
import { Fragment as
|
|
17118
|
+
import { Fragment as Fragment21, jsx as jsx143, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
17089
17119
|
function ImageGalleryModal({
|
|
17090
17120
|
images,
|
|
17091
17121
|
isOpen,
|
|
@@ -17141,7 +17171,7 @@ function ImageGalleryModal({
|
|
|
17141
17171
|
onClose,
|
|
17142
17172
|
className: "max-w-[95vw]",
|
|
17143
17173
|
children: /* @__PURE__ */ jsxs114("div", { className: "relative flex items-center justify-center bg-black rounded-lg", children: [
|
|
17144
|
-
images.length > 1 && /* @__PURE__ */ jsxs114(
|
|
17174
|
+
images.length > 1 && /* @__PURE__ */ jsxs114(Fragment21, { children: [
|
|
17145
17175
|
selectedImageIndex > 0 && /* @__PURE__ */ jsx143("div", { className: "absolute left-4 top-1/2 -translate-y-1/2 z-[10000]", children: /* @__PURE__ */ jsx143(
|
|
17146
17176
|
Button,
|
|
17147
17177
|
{
|
|
@@ -17220,7 +17250,7 @@ import Link3 from "next/link";
|
|
|
17220
17250
|
import React47, { useCallback as useCallback18, useState as useState34 } from "react";
|
|
17221
17251
|
init_cn();
|
|
17222
17252
|
init_button2();
|
|
17223
|
-
import { Fragment as
|
|
17253
|
+
import { Fragment as Fragment22, jsx as jsx144, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
17224
17254
|
var ROW_CLASSES = "flex flex-1 min-w-0 items-center gap-2 px-3 py-3 cursor-pointer transition-colors bg-ods-bg outline-none";
|
|
17225
17255
|
var WRAPPER_CLASSES = "relative flex items-stretch border-b border-ods-border last:border-b-0";
|
|
17226
17256
|
var SECONDARY_ACTION_CLASSES = "flex w-10 shrink-0 items-center justify-center self-stretch border-l border-ods-border transition-colors hover:bg-ods-bg-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus";
|
|
@@ -17322,7 +17352,7 @@ var MenuItem = ({ item, onItemClick }) => {
|
|
|
17322
17352
|
"data-[state=open]:bg-[#2b2b2b] focus:bg-ods-bg-hover"
|
|
17323
17353
|
);
|
|
17324
17354
|
const renderAsLink = !!item.href && item.type !== "submenu" && item.type !== "checkbox";
|
|
17325
|
-
const rowContent = /* @__PURE__ */ jsxs115(
|
|
17355
|
+
const rowContent = /* @__PURE__ */ jsxs115(Fragment22, { children: [
|
|
17326
17356
|
item.icon && /* @__PURE__ */ jsx144(
|
|
17327
17357
|
"div",
|
|
17328
17358
|
{
|
|
@@ -17504,7 +17534,7 @@ var ActionsMenuDropdown = ({
|
|
|
17504
17534
|
|
|
17505
17535
|
// src/components/ui/page-actions.tsx
|
|
17506
17536
|
init_button2();
|
|
17507
|
-
import { Fragment as
|
|
17537
|
+
import { Fragment as Fragment23, jsx as jsx145, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
17508
17538
|
function actionKey(action, idx) {
|
|
17509
17539
|
return `${action.label ?? action.ariaLabel ?? "action"}-${idx}`;
|
|
17510
17540
|
}
|
|
@@ -17635,7 +17665,7 @@ function IconButtonsVariant({
|
|
|
17635
17665
|
const isSingleAction = actions.length === 1 && !actions[0].submenu?.length;
|
|
17636
17666
|
const singleAction = isSingleAction ? actions[0] : null;
|
|
17637
17667
|
const useSingleActionMobile = isSingleAction && !hasMenuActions;
|
|
17638
|
-
return /* @__PURE__ */ jsxs116(
|
|
17668
|
+
return /* @__PURE__ */ jsxs116(Fragment23, { children: [
|
|
17639
17669
|
/* @__PURE__ */ jsxs116("div", { className: cn("hidden md:flex items-center", ACTIONS_GAP, className), children: [
|
|
17640
17670
|
selector,
|
|
17641
17671
|
desktopActions.map((action, idx) => /* @__PURE__ */ jsx145(React48.Fragment, { children: renderActionButton(action) }, actionKey(action, idx))),
|
|
@@ -17662,7 +17692,7 @@ function PrimaryButtonsVariant({
|
|
|
17662
17692
|
return 0;
|
|
17663
17693
|
});
|
|
17664
17694
|
const desktopActions = sortedActions.filter((a) => !a.showOnlyMobile);
|
|
17665
|
-
return /* @__PURE__ */ jsxs116(
|
|
17695
|
+
return /* @__PURE__ */ jsxs116(Fragment23, { children: [
|
|
17666
17696
|
/* @__PURE__ */ jsx145("div", { className: cn("hidden md:flex items-center", ACTIONS_GAP, className), children: desktopActions.map((action, idx) => /* @__PURE__ */ jsx145(React48.Fragment, { children: renderActionButton(action) }, `desktop-${actionKey(action, idx)}`)) }),
|
|
17667
17697
|
/* @__PURE__ */ jsx145(MobileBottomActions, { actions: sortedActions })
|
|
17668
17698
|
] });
|
|
@@ -17675,7 +17705,7 @@ function MenuPrimaryVariant({
|
|
|
17675
17705
|
}) {
|
|
17676
17706
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
17677
17707
|
const hasMenuActions = menuActions.some((g) => g.items.length > 0);
|
|
17678
|
-
return /* @__PURE__ */ jsxs116(
|
|
17708
|
+
return /* @__PURE__ */ jsxs116(Fragment23, { children: [
|
|
17679
17709
|
/* @__PURE__ */ jsxs116("div", { className: cn("hidden md:flex items-center", ACTIONS_GAP, className), children: [
|
|
17680
17710
|
selector,
|
|
17681
17711
|
hasMenuActions && /* @__PURE__ */ jsx145(ActionsMenuDropdown, { groups: menuActions }),
|
|
@@ -17963,7 +17993,7 @@ function DetailPageSkeleton({
|
|
|
17963
17993
|
}
|
|
17964
17994
|
|
|
17965
17995
|
// src/components/shared/product-release/release-detail-page.tsx
|
|
17966
|
-
import { Fragment as
|
|
17996
|
+
import { Fragment as Fragment24, jsx as jsx149, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
17967
17997
|
function DefaultMarkdownRenderer({ content }) {
|
|
17968
17998
|
return /* @__PURE__ */ jsx149("div", { className: "whitespace-pre-wrap", children: content });
|
|
17969
17999
|
}
|
|
@@ -18130,7 +18160,7 @@ function ReleaseDetailPage({
|
|
|
18130
18160
|
srtContent: release?.srt_content,
|
|
18131
18161
|
captionsUrl: release?.captionsUrl
|
|
18132
18162
|
}
|
|
18133
|
-
) : /* @__PURE__ */ jsxs120(
|
|
18163
|
+
) : /* @__PURE__ */ jsxs120(Fragment24, { children: [
|
|
18134
18164
|
youtubeUrl && /* @__PURE__ */ jsx149(
|
|
18135
18165
|
Video2,
|
|
18136
18166
|
{
|
|
@@ -18238,7 +18268,7 @@ function ReleaseDetailPage({
|
|
|
18238
18268
|
(githubReleases?.length || knowledgeBaseLinks?.length || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ jsxs120("div", { className: "space-y-1 w-full", children: [
|
|
18239
18269
|
/* @__PURE__ */ jsx149("p", { className: "text-h5 tracking-[-0.28px] text-ods-text-secondary", children: "Related Links" }),
|
|
18240
18270
|
/* @__PURE__ */ jsx149(Card, { className: "bg-ods-card border-ods-border p-6", children: /* @__PURE__ */ jsxs120("div", { className: "space-y-4", children: [
|
|
18241
|
-
githubReleases && githubReleases.length > 0 && /* @__PURE__ */ jsx149(
|
|
18271
|
+
githubReleases && githubReleases.length > 0 && /* @__PURE__ */ jsx149(Fragment24, { children: githubReleases.map((ghRelease) => /* @__PURE__ */ jsxs120("div", { className: "flex items-start gap-1", children: [
|
|
18242
18272
|
/* @__PURE__ */ jsx149(GitHubIcon, { className: "shrink-0", width: 24, height: 24, color: "var(--color-text-secondary)" }),
|
|
18243
18273
|
/* @__PURE__ */ jsx149("span", { className: "text-h4 text-ods-text-primary", children: "Github Release" }),
|
|
18244
18274
|
/* @__PURE__ */ jsx149(
|
|
@@ -18253,7 +18283,7 @@ function ReleaseDetailPage({
|
|
|
18253
18283
|
),
|
|
18254
18284
|
/* @__PURE__ */ jsx149(ExternalLink, { className: "h-6 w-6 text-[#ffc008] shrink-0" })
|
|
18255
18285
|
] }, ghRelease.id)) }),
|
|
18256
|
-
knowledgeBaseLinks && knowledgeBaseLinks.length > 0 && /* @__PURE__ */ jsx149(
|
|
18286
|
+
knowledgeBaseLinks && knowledgeBaseLinks.length > 0 && /* @__PURE__ */ jsx149(Fragment24, { children: knowledgeBaseLinks.map((linkObj) => {
|
|
18257
18287
|
const path = typeof linkObj === "string" ? linkObj : linkObj.kb_article_path;
|
|
18258
18288
|
const linkId = typeof linkObj === "string" ? path : linkObj.id || path;
|
|
18259
18289
|
return /* @__PURE__ */ jsxs120("div", { className: "flex items-start gap-1", children: [
|
|
@@ -20129,7 +20159,7 @@ function TabContent({
|
|
|
20129
20159
|
init_cn();
|
|
20130
20160
|
import { useState as useState40, useEffect as useEffect31, useMemo as useMemo14, useRef as useRef23, useCallback as useCallback20 } from "react";
|
|
20131
20161
|
import { useSearchParams as useSearchParams3, useRouter as useRouter5, usePathname as usePathname3 } from "next/navigation";
|
|
20132
|
-
import { Fragment as
|
|
20162
|
+
import { Fragment as Fragment25, jsx as jsx171, jsxs as jsxs139 } from "react/jsx-runtime";
|
|
20133
20163
|
function TabNavigation({
|
|
20134
20164
|
activeTab: controlledActiveTab,
|
|
20135
20165
|
onTabChange: controlledOnTabChange,
|
|
@@ -20216,7 +20246,7 @@ function TabNavigation({
|
|
|
20216
20246
|
}
|
|
20217
20247
|
return { background: c };
|
|
20218
20248
|
})();
|
|
20219
|
-
return /* @__PURE__ */ jsxs139(
|
|
20249
|
+
return /* @__PURE__ */ jsxs139(Fragment25, { children: [
|
|
20220
20250
|
/* @__PURE__ */ jsxs139("div", { className: cn("relative w-full", className), children: [
|
|
20221
20251
|
/* @__PURE__ */ jsx171("div", { ref: scrollRef, className: "flex gap-[var(--spacing-system-xxs)] items-center justify-start h-full overflow-x-auto overflow-y-hidden", children: tabs.map((tab) => {
|
|
20222
20252
|
const isActive = activeTab === tab.id;
|
|
@@ -20556,7 +20586,7 @@ function TagKeyValueFilter({
|
|
|
20556
20586
|
}
|
|
20557
20587
|
|
|
20558
20588
|
// src/components/ui/filter-modal.tsx
|
|
20559
|
-
import { Fragment as
|
|
20589
|
+
import { Fragment as Fragment26, jsx as jsx178, jsxs as jsxs144 } from "react/jsx-runtime";
|
|
20560
20590
|
function FilterModal({
|
|
20561
20591
|
isOpen,
|
|
20562
20592
|
onClose,
|
|
@@ -20632,7 +20662,7 @@ function FilterModal({
|
|
|
20632
20662
|
"flex-1 min-h-0 flex flex-col",
|
|
20633
20663
|
!isEmpty && "md:bg-ods-bg md:border md:border-ods-border md:rounded-md md:px-3"
|
|
20634
20664
|
),
|
|
20635
|
-
children: /* @__PURE__ */ jsx178("div", { className: "flex-1 min-h-0 overflow-y-auto flex flex-col gap-4 md:py-3", children: isLoading ? /* @__PURE__ */ jsx178(
|
|
20665
|
+
children: /* @__PURE__ */ jsx178("div", { className: "flex-1 min-h-0 overflow-y-auto flex flex-col gap-4 md:py-3", children: isLoading ? /* @__PURE__ */ jsx178(Fragment26, { children: [0, 1].map((group) => /* @__PURE__ */ jsxs144("div", { className: "flex flex-col gap-1", children: [
|
|
20636
20666
|
/* @__PURE__ */ jsx178(Skeleton, { className: "h-5 w-24" }),
|
|
20637
20667
|
/* @__PURE__ */ jsx178("div", { className: "rounded-md border border-ods-border overflow-hidden", children: [0, 1, 2].map((row) => /* @__PURE__ */ jsxs144(
|
|
20638
20668
|
"div",
|
|
@@ -20652,7 +20682,7 @@ function FilterModal({
|
|
|
20652
20682
|
/* @__PURE__ */ jsx178("p", { className: "text-h4", children: emptyStateTitle }),
|
|
20653
20683
|
/* @__PURE__ */ jsx178("p", { className: "text-h6", children: emptyStateDescription })
|
|
20654
20684
|
] })
|
|
20655
|
-
] }) : /* @__PURE__ */ jsxs144(
|
|
20685
|
+
] }) : /* @__PURE__ */ jsxs144(Fragment26, { children: [
|
|
20656
20686
|
sortConfig && sortConfig.columns.length > 0 && /* @__PURE__ */ jsxs144("div", { className: "flex flex-col gap-1", children: [
|
|
20657
20687
|
/* @__PURE__ */ jsx178("span", { className: "text-h5 text-ods-text-secondary", children: sortConfig.title || "Sort By" }),
|
|
20658
20688
|
/* @__PURE__ */ jsx178("div", { className: "rounded-md border border-ods-border overflow-hidden", children: sortConfig.columns.map((column) => /* @__PURE__ */ jsx178(
|
|
@@ -21314,7 +21344,7 @@ import {
|
|
|
21314
21344
|
safePolygon,
|
|
21315
21345
|
arrow
|
|
21316
21346
|
} from "@floating-ui/react";
|
|
21317
|
-
import { Fragment as
|
|
21347
|
+
import { Fragment as Fragment27, jsx as jsx189, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
21318
21348
|
function parseColoredText(text) {
|
|
21319
21349
|
if (typeof text !== "string") return text;
|
|
21320
21350
|
const parts = [];
|
|
@@ -21339,7 +21369,7 @@ function parseColoredText(text) {
|
|
|
21339
21369
|
const remainingText = text.slice(lastIndex);
|
|
21340
21370
|
parts.push(/* @__PURE__ */ jsx189("span", { children: remainingText }, `text-${keyIndex++}`));
|
|
21341
21371
|
}
|
|
21342
|
-
return parts.length > 0 ? /* @__PURE__ */ jsx189(
|
|
21372
|
+
return parts.length > 0 ? /* @__PURE__ */ jsx189(Fragment27, { children: parts }) : text;
|
|
21343
21373
|
}
|
|
21344
21374
|
function FloatingTooltip({
|
|
21345
21375
|
content,
|
|
@@ -21391,7 +21421,7 @@ function FloatingTooltip({
|
|
|
21391
21421
|
bottom: "top",
|
|
21392
21422
|
left: "right"
|
|
21393
21423
|
}[placement.split("-")[0]];
|
|
21394
|
-
return /* @__PURE__ */ jsxs152(
|
|
21424
|
+
return /* @__PURE__ */ jsxs152(Fragment27, { children: [
|
|
21395
21425
|
/* @__PURE__ */ jsx189("div", { ref: refs.setReference, ...getReferenceProps(), children }),
|
|
21396
21426
|
/* @__PURE__ */ jsx189(FloatingPortal, { children: isOpen && /* @__PURE__ */ jsxs152(
|
|
21397
21427
|
"div",
|
|
@@ -21442,7 +21472,7 @@ function FloatingTooltip({
|
|
|
21442
21472
|
}
|
|
21443
21473
|
|
|
21444
21474
|
// src/components/ui/dashboard-info-card.tsx
|
|
21445
|
-
import { Fragment as
|
|
21475
|
+
import { Fragment as Fragment28, jsx as jsx190, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
21446
21476
|
function DashboardInfoCard({
|
|
21447
21477
|
title,
|
|
21448
21478
|
value,
|
|
@@ -21456,7 +21486,7 @@ function DashboardInfoCard({
|
|
|
21456
21486
|
valueClassName
|
|
21457
21487
|
}) {
|
|
21458
21488
|
const formattedValue = typeof value === "number" ? value.toLocaleString() : value;
|
|
21459
|
-
const cardContent = /* @__PURE__ */ jsxs153(
|
|
21489
|
+
const cardContent = /* @__PURE__ */ jsxs153(Fragment28, { children: [
|
|
21460
21490
|
/* @__PURE__ */ jsxs153("div", { className: "flex-1 flex flex-col", children: [
|
|
21461
21491
|
/* @__PURE__ */ jsx190("p", { className: "text-h5 text-ods-text-secondary", children: title }),
|
|
21462
21492
|
/* @__PURE__ */ jsxs153("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
@@ -21675,7 +21705,7 @@ function DeviceCard({
|
|
|
21675
21705
|
|
|
21676
21706
|
// src/components/ui/device-card-compact.tsx
|
|
21677
21707
|
init_cn();
|
|
21678
|
-
import { Fragment as
|
|
21708
|
+
import { Fragment as Fragment29, jsx as jsx193, jsxs as jsxs156 } from "react/jsx-runtime";
|
|
21679
21709
|
function DeviceCardCompact({
|
|
21680
21710
|
deviceName,
|
|
21681
21711
|
organization,
|
|
@@ -21685,7 +21715,7 @@ function DeviceCardCompact({
|
|
|
21685
21715
|
const hasName = deviceName && deviceName !== "-" && deviceName !== "null";
|
|
21686
21716
|
const hasOrg = organization && organization !== "-" && organization !== "null";
|
|
21687
21717
|
if (!hasName && !hasOrg) {
|
|
21688
|
-
return /* @__PURE__ */ jsx193(
|
|
21718
|
+
return /* @__PURE__ */ jsx193(Fragment29, {});
|
|
21689
21719
|
}
|
|
21690
21720
|
return /* @__PURE__ */ jsxs156(
|
|
21691
21721
|
"div",
|
|
@@ -21964,7 +21994,7 @@ import React77 from "react";
|
|
|
21964
21994
|
init_cn();
|
|
21965
21995
|
import Link7 from "next/link";
|
|
21966
21996
|
init_button2();
|
|
21967
|
-
import { Fragment as
|
|
21997
|
+
import { Fragment as Fragment30, jsx as jsx198, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
21968
21998
|
function MoreActionsMenu({
|
|
21969
21999
|
items,
|
|
21970
22000
|
align = "end",
|
|
@@ -21996,7 +22026,7 @@ function MoreActionsMenu({
|
|
|
21996
22026
|
className: "bg-ods-card border border-ods-border p-0 rounded-[4px] min-w-[200px]",
|
|
21997
22027
|
children: items.map((item, idx) => {
|
|
21998
22028
|
const itemClassName = "flex items-center gap-2 px-4 py-3 bg-ods-bg hover:bg-ods-bg-hover focus:bg-ods-bg-hover border-b border-ods-border last:border-b-0 rounded-none cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed";
|
|
21999
|
-
const content = /* @__PURE__ */ jsxs160(
|
|
22029
|
+
const content = /* @__PURE__ */ jsxs160(Fragment30, { children: [
|
|
22000
22030
|
item.icon && /* @__PURE__ */ jsx198("div", { className: cn(item.danger ? "text-ods-error" : "text-ods-text-secondary", "[&_svg]:size-6 [&_svg]:shrink-0"), children: item.icon }),
|
|
22001
22031
|
/* @__PURE__ */ jsx198("span", { className: "font-medium text-[18px] leading-6 text-ods-text-primary", children: item.label })
|
|
22002
22032
|
] });
|
|
@@ -23195,7 +23225,7 @@ function getHideClasses(hideAt) {
|
|
|
23195
23225
|
}
|
|
23196
23226
|
|
|
23197
23227
|
// src/components/ui/table/table-header.tsx
|
|
23198
|
-
import { Fragment as
|
|
23228
|
+
import { Fragment as Fragment31, jsx as jsx213, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
23199
23229
|
function TableHeader({
|
|
23200
23230
|
columns,
|
|
23201
23231
|
className,
|
|
@@ -23306,10 +23336,10 @@ function TableHeader({
|
|
|
23306
23336
|
column.sortable && "cursor-pointer hover:text-ods-text-primary transition-colors"
|
|
23307
23337
|
),
|
|
23308
23338
|
onClick: () => handleSort(column),
|
|
23309
|
-
children: column.renderHeader ? /* @__PURE__ */ jsxs173(
|
|
23339
|
+
children: column.renderHeader ? /* @__PURE__ */ jsxs173(Fragment31, { children: [
|
|
23310
23340
|
column.renderHeader(),
|
|
23311
23341
|
getSortIcon(column)
|
|
23312
|
-
] }) : /* @__PURE__ */ jsxs173(
|
|
23342
|
+
] }) : /* @__PURE__ */ jsxs173(Fragment31, { children: [
|
|
23313
23343
|
/* @__PURE__ */ jsx213("span", { className: "text-h5 text-ods-text-secondary uppercase whitespace-nowrap", children: column.label }),
|
|
23314
23344
|
getSortIcon(column)
|
|
23315
23345
|
] })
|
|
@@ -23364,7 +23394,7 @@ function TableCell({
|
|
|
23364
23394
|
|
|
23365
23395
|
// src/components/ui/table/table-skeleton.tsx
|
|
23366
23396
|
init_cn();
|
|
23367
|
-
import { Fragment as
|
|
23397
|
+
import { Fragment as Fragment32, jsx as jsx215, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
23368
23398
|
var ROW_HEIGHT_DESKTOP = "h-[68px] md:h-[80px]";
|
|
23369
23399
|
var ROW_HEIGHT_MOBILE = "h-[68px]";
|
|
23370
23400
|
function TableCardSkeleton({
|
|
@@ -23375,7 +23405,7 @@ function TableCardSkeleton({
|
|
|
23375
23405
|
className,
|
|
23376
23406
|
rowClassName
|
|
23377
23407
|
}) {
|
|
23378
|
-
return /* @__PURE__ */ jsx215(
|
|
23408
|
+
return /* @__PURE__ */ jsx215(Fragment32, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs174(
|
|
23379
23409
|
"div",
|
|
23380
23410
|
{
|
|
23381
23411
|
className: cn(
|
|
@@ -23530,7 +23560,7 @@ function TableRow({
|
|
|
23530
23560
|
}
|
|
23531
23561
|
|
|
23532
23562
|
// src/components/ui/table/table.tsx
|
|
23533
|
-
import { Fragment as
|
|
23563
|
+
import { Fragment as Fragment33, jsx as jsx217, jsxs as jsxs176 } from "react/jsx-runtime";
|
|
23534
23564
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
23535
23565
|
const hasActions = Boolean(rowActions?.length) || Boolean(renderRowActions);
|
|
23536
23566
|
const result = [...columns];
|
|
@@ -23730,7 +23760,7 @@ function Table({
|
|
|
23730
23760
|
hasActions: Boolean(rowActions) && rowActions.length > 0,
|
|
23731
23761
|
hasChevron: Boolean(rowHref)
|
|
23732
23762
|
}
|
|
23733
|
-
) : data.length === 0 ? /* @__PURE__ */ jsx217(TableEmptyState, { message: emptyMessage }) : /* @__PURE__ */ jsxs176(
|
|
23763
|
+
) : data.length === 0 ? /* @__PURE__ */ jsx217(TableEmptyState, { message: emptyMessage }) : /* @__PURE__ */ jsxs176(Fragment33, { children: [
|
|
23734
23764
|
data.map((item, index) => /* @__PURE__ */ jsx217(
|
|
23735
23765
|
TableRow,
|
|
23736
23766
|
{
|
|
@@ -24351,7 +24381,7 @@ function DataTableColumnFilter({
|
|
|
24351
24381
|
}
|
|
24352
24382
|
|
|
24353
24383
|
// src/components/ui/data-table/data-table-header.tsx
|
|
24354
|
-
import { Fragment as
|
|
24384
|
+
import { Fragment as Fragment34, jsx as jsx226, jsxs as jsxs183 } from "react/jsx-runtime";
|
|
24355
24385
|
function DataTableHeader({
|
|
24356
24386
|
className,
|
|
24357
24387
|
stickyHeader,
|
|
@@ -24445,7 +24475,7 @@ function HeaderLabel({ header }) {
|
|
|
24445
24475
|
if (typeof headerDef === "string") {
|
|
24446
24476
|
return /* @__PURE__ */ jsx226("span", { className: "text-h5 text-ods-text-secondary uppercase whitespace-nowrap transition-colors duration-200 group-hover:text-ods-text-primary", children: headerDef });
|
|
24447
24477
|
}
|
|
24448
|
-
return /* @__PURE__ */ jsx226(
|
|
24478
|
+
return /* @__PURE__ */ jsx226(Fragment34, { children: flexRender(headerDef, header.getContext()) });
|
|
24449
24479
|
}
|
|
24450
24480
|
function SortIcon({ sorted }) {
|
|
24451
24481
|
if (sorted === "asc") return /* @__PURE__ */ jsx226(Arrow01UpIcon, { className: "w-4 h-4 text-ods-accent" });
|
|
@@ -24503,7 +24533,7 @@ import { flexRender as flexRender2 } from "@tanstack/react-table";
|
|
|
24503
24533
|
|
|
24504
24534
|
// src/components/ui/data-table/data-table-skeleton.tsx
|
|
24505
24535
|
init_cn();
|
|
24506
|
-
import { Fragment as
|
|
24536
|
+
import { Fragment as Fragment35, jsx as jsx228, jsxs as jsxs185 } from "react/jsx-runtime";
|
|
24507
24537
|
var ROW_HEIGHT_DESKTOP2 = "h-[68px] md:h-[80px]";
|
|
24508
24538
|
var ROW_HEIGHT_MOBILE2 = "h-[68px]";
|
|
24509
24539
|
function DataTableSkeleton({
|
|
@@ -24514,7 +24544,7 @@ function DataTableSkeleton({
|
|
|
24514
24544
|
const table = useDataTableContext();
|
|
24515
24545
|
const columns = table.getVisibleFlatColumns();
|
|
24516
24546
|
const firstColumnId = columns[0]?.id;
|
|
24517
|
-
return /* @__PURE__ */ jsx228(
|
|
24547
|
+
return /* @__PURE__ */ jsx228(Fragment35, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs185(
|
|
24518
24548
|
"div",
|
|
24519
24549
|
{
|
|
24520
24550
|
className: cn(
|
|
@@ -24570,7 +24600,7 @@ function DataTableSkeleton({
|
|
|
24570
24600
|
}
|
|
24571
24601
|
|
|
24572
24602
|
// src/components/ui/data-table/data-table-row.tsx
|
|
24573
|
-
import { Fragment as
|
|
24603
|
+
import { Fragment as Fragment36, jsx as jsx229, jsxs as jsxs186 } from "react/jsx-runtime";
|
|
24574
24604
|
function DataTableRowImpl({
|
|
24575
24605
|
row,
|
|
24576
24606
|
onClick,
|
|
@@ -24642,7 +24672,7 @@ function CellContent({ children }) {
|
|
|
24642
24672
|
if (typeof children === "string" || typeof children === "number") {
|
|
24643
24673
|
return /* @__PURE__ */ jsx229("span", { className: "text-h4 text-ods-text-primary truncate", children });
|
|
24644
24674
|
}
|
|
24645
|
-
return /* @__PURE__ */ jsx229(
|
|
24675
|
+
return /* @__PURE__ */ jsx229(Fragment36, { children });
|
|
24646
24676
|
}
|
|
24647
24677
|
|
|
24648
24678
|
// src/components/ui/data-table/data-table-body.tsx
|
|
@@ -24717,7 +24747,7 @@ function DataTableBody({
|
|
|
24717
24747
|
|
|
24718
24748
|
// src/components/ui/data-table/data-table-infinite-footer.tsx
|
|
24719
24749
|
import { useEffect as useEffect35, useRef as useRef29 } from "react";
|
|
24720
|
-
import { Fragment as
|
|
24750
|
+
import { Fragment as Fragment37, jsx as jsx231, jsxs as jsxs188 } from "react/jsx-runtime";
|
|
24721
24751
|
function DataTableInfiniteFooter({
|
|
24722
24752
|
hasNextPage,
|
|
24723
24753
|
isFetchingNextPage,
|
|
@@ -24741,7 +24771,7 @@ function DataTableInfiniteFooter({
|
|
|
24741
24771
|
observer.observe(sentinel);
|
|
24742
24772
|
return () => observer.disconnect();
|
|
24743
24773
|
}, [hasNextPage, isFetchingNextPage, rootMargin]);
|
|
24744
|
-
return /* @__PURE__ */ jsxs188(
|
|
24774
|
+
return /* @__PURE__ */ jsxs188(Fragment37, { children: [
|
|
24745
24775
|
isFetchingNextPage && /* @__PURE__ */ jsx231(DataTableSkeleton, { rows: skeletonRows }),
|
|
24746
24776
|
hasNextPage && /* @__PURE__ */ jsx231("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" })
|
|
24747
24777
|
] });
|
|
@@ -26247,7 +26277,7 @@ function FileUpload({
|
|
|
26247
26277
|
import * as React87 from "react";
|
|
26248
26278
|
import { Loader2 as Loader25 } from "lucide-react";
|
|
26249
26279
|
init_cn();
|
|
26250
|
-
import { Fragment as
|
|
26280
|
+
import { Fragment as Fragment39, jsx as jsx239, jsxs as jsxs196 } from "react/jsx-runtime";
|
|
26251
26281
|
var DEFAULT_MAX_SIZE = 25 * 1024 * 1024;
|
|
26252
26282
|
function formatSize(bytes) {
|
|
26253
26283
|
const mb = bytes / (1024 * 1024);
|
|
@@ -26373,7 +26403,7 @@ function ImageUploader({
|
|
|
26373
26403
|
!interactive && "opacity-60",
|
|
26374
26404
|
!hasImage && !interactive && "cursor-not-allowed"
|
|
26375
26405
|
),
|
|
26376
|
-
children: hasImage ? /* @__PURE__ */ jsxs196(
|
|
26406
|
+
children: hasImage ? /* @__PURE__ */ jsxs196(Fragment39, { children: [
|
|
26377
26407
|
/* @__PURE__ */ jsx239("div", { className: "relative min-h-0 w-full flex-1 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx239(
|
|
26378
26408
|
"img",
|
|
26379
26409
|
{
|
|
@@ -26410,7 +26440,7 @@ function ImageUploader({
|
|
|
26410
26440
|
)
|
|
26411
26441
|
] }),
|
|
26412
26442
|
loading && /* @__PURE__ */ jsx239("div", { className: "absolute inset-0 flex items-center justify-center rounded-md bg-ods-overlay", children: /* @__PURE__ */ jsx239(Loader25, { className: "size-8 animate-spin text-ods-text-on-dark" }) })
|
|
26413
|
-
] }) : loading ? /* @__PURE__ */ jsx239(Loader25, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs196(
|
|
26443
|
+
] }) : loading ? /* @__PURE__ */ jsx239(Loader25, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs196(Fragment39, { children: [
|
|
26414
26444
|
/* @__PURE__ */ jsx239("div", { className: "flex shrink-0 items-center justify-center rounded-full border border-ods-border bg-ods-card p-[var(--spacing-system-s)]", children: /* @__PURE__ */ jsx239(ImagePlusIcon, { className: "size-6 text-ods-text-primary" }) }),
|
|
26415
26445
|
/* @__PURE__ */ jsxs196("div", { className: "flex w-full flex-col items-center text-center", children: [
|
|
26416
26446
|
/* @__PURE__ */ jsx239("p", { className: "text-h4 text-ods-text-primary", children: label }),
|
|
@@ -26752,7 +26782,7 @@ init_cn();
|
|
|
26752
26782
|
// src/components/ui/ticket-note-card.tsx
|
|
26753
26783
|
import * as React89 from "react";
|
|
26754
26784
|
init_cn();
|
|
26755
|
-
import { Fragment as
|
|
26785
|
+
import { Fragment as Fragment40, jsx as jsx243, jsxs as jsxs200 } from "react/jsx-runtime";
|
|
26756
26786
|
function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
26757
26787
|
const [isEditing, setIsEditing] = React89.useState(false);
|
|
26758
26788
|
const [editText, setEditText] = React89.useState(note.text);
|
|
@@ -26826,7 +26856,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
26826
26856
|
children: /* @__PURE__ */ jsx243(XmarkIcon, { className: "size-5" })
|
|
26827
26857
|
}
|
|
26828
26858
|
)
|
|
26829
|
-
] }) : /* @__PURE__ */ jsxs200(
|
|
26859
|
+
] }) : /* @__PURE__ */ jsxs200(Fragment40, { children: [
|
|
26830
26860
|
/* @__PURE__ */ jsx243("p", { className: "text-h4 text-ods-text-primary", children: note.text }),
|
|
26831
26861
|
/* @__PURE__ */ jsxs200("p", { className: "text-h6 text-ods-text-secondary truncate", children: [
|
|
26832
26862
|
note.authorName,
|
|
@@ -26926,7 +26956,7 @@ function TicketNotesSection({
|
|
|
26926
26956
|
}
|
|
26927
26957
|
|
|
26928
26958
|
// src/components/ui/ticket-info-section.tsx
|
|
26929
|
-
import { Fragment as
|
|
26959
|
+
import { Fragment as Fragment41, jsx as jsx245, jsxs as jsxs202 } from "react/jsx-runtime";
|
|
26930
26960
|
function InfoCell2({ value, label, icon, onClick }) {
|
|
26931
26961
|
return /* @__PURE__ */ jsx245("div", { className: "flex-1 min-w-0 overflow-hidden", children: /* @__PURE__ */ jsxs202("div", { className: "flex flex-col justify-center", children: [
|
|
26932
26962
|
/* @__PURE__ */ jsxs202("div", { className: "flex items-center gap-1 w-full min-w-0", children: [
|
|
@@ -27035,7 +27065,7 @@ function TicketInfoSection({
|
|
|
27035
27065
|
)
|
|
27036
27066
|
] })
|
|
27037
27067
|
] }),
|
|
27038
|
-
expanded && /* @__PURE__ */ jsxs202(
|
|
27068
|
+
expanded && /* @__PURE__ */ jsxs202(Fragment41, { children: [
|
|
27039
27069
|
createdAt && /* @__PURE__ */ jsx245("div", { className: "grid grid-cols-2 gap-4 px-4 py-3 bg-ods-bg border-b border-ods-border items-center", children: /* @__PURE__ */ jsx245(InfoCell2, { value: createdAt, label: "Created" }) }),
|
|
27040
27070
|
/* @__PURE__ */ jsxs202("div", { className: "flex flex-col gap-4 p-4 bg-ods-bg border-b border-ods-border", children: [
|
|
27041
27071
|
description && /* @__PURE__ */ jsx245(SimpleMarkdownRenderer, { content: description }),
|
|
@@ -29916,7 +29946,7 @@ SelectButton.displayName = "SelectButton";
|
|
|
29916
29946
|
import { useState as useState65 } from "react";
|
|
29917
29947
|
import { Globe as Globe3, ExternalLink as ExternalLink5, Upload as Upload5, X as X11, Loader2 as Loader29, Sparkles as Sparkles2 } from "lucide-react";
|
|
29918
29948
|
import Image14 from "next/image";
|
|
29919
|
-
import { Fragment as
|
|
29949
|
+
import { Fragment as Fragment42, jsx as jsx269, jsxs as jsxs221 } from "react/jsx-runtime";
|
|
29920
29950
|
function SEOEditorPreview({
|
|
29921
29951
|
seoTitle,
|
|
29922
29952
|
seoDescription,
|
|
@@ -29965,7 +29995,7 @@ function SEOEditorPreview({
|
|
|
29965
29995
|
/* @__PURE__ */ jsxs221("div", { className: "space-y-2", children: [
|
|
29966
29996
|
/* @__PURE__ */ jsxs221("div", { className: "flex items-center gap-2", children: [
|
|
29967
29997
|
/* @__PURE__ */ jsx269(Label, { className: "font-['DM_Sans'] text-[14px] font-medium text-ods-text-primary", children: "SEO Title" }),
|
|
29968
|
-
aiConfidenceSeoTitle !== void 0 && /* @__PURE__ */ jsxs221(
|
|
29998
|
+
aiConfidenceSeoTitle !== void 0 && /* @__PURE__ */ jsxs221(Fragment42, { children: [
|
|
29969
29999
|
/* @__PURE__ */ jsxs221(Badge, { variant: "secondary", className: "flex items-center gap-1", children: [
|
|
29970
30000
|
/* @__PURE__ */ jsx269(Sparkles2, { className: "h-3 w-3" }),
|
|
29971
30001
|
"AI Generated"
|
|
@@ -29996,7 +30026,7 @@ function SEOEditorPreview({
|
|
|
29996
30026
|
/* @__PURE__ */ jsxs221("div", { className: "space-y-2", children: [
|
|
29997
30027
|
/* @__PURE__ */ jsxs221("div", { className: "flex items-center gap-2", children: [
|
|
29998
30028
|
/* @__PURE__ */ jsx269(Label, { className: "font-['DM_Sans'] text-[14px] font-medium text-ods-text-primary", children: "SEO Keywords" }),
|
|
29999
|
-
aiConfidenceSeoKeywords !== void 0 && /* @__PURE__ */ jsxs221(
|
|
30029
|
+
aiConfidenceSeoKeywords !== void 0 && /* @__PURE__ */ jsxs221(Fragment42, { children: [
|
|
30000
30030
|
/* @__PURE__ */ jsxs221(Badge, { variant: "secondary", className: "flex items-center gap-1", children: [
|
|
30001
30031
|
/* @__PURE__ */ jsx269(Sparkles2, { className: "h-3 w-3" }),
|
|
30002
30032
|
"AI Generated"
|
|
@@ -30028,7 +30058,7 @@ function SEOEditorPreview({
|
|
|
30028
30058
|
/* @__PURE__ */ jsxs221("div", { className: "space-y-2 flex flex-col h-full", children: [
|
|
30029
30059
|
/* @__PURE__ */ jsxs221("div", { className: "flex items-center gap-2", children: [
|
|
30030
30060
|
/* @__PURE__ */ jsx269(Label, { className: "font-['DM_Sans'] text-[14px] font-medium text-ods-text-primary", children: "SEO Description" }),
|
|
30031
|
-
aiConfidenceSeoDescription !== void 0 && /* @__PURE__ */ jsxs221(
|
|
30061
|
+
aiConfidenceSeoDescription !== void 0 && /* @__PURE__ */ jsxs221(Fragment42, { children: [
|
|
30032
30062
|
/* @__PURE__ */ jsxs221(Badge, { variant: "secondary", className: "flex items-center gap-1", children: [
|
|
30033
30063
|
/* @__PURE__ */ jsx269(Sparkles2, { className: "h-3 w-3" }),
|
|
30034
30064
|
"AI Generated"
|
|
@@ -30102,7 +30132,7 @@ function SEOEditorPreview({
|
|
|
30102
30132
|
{
|
|
30103
30133
|
className: "h-full min-h-[280px] border-2 border-dashed border-ods-border rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-ods-accent transition-colors bg-ods-bg-hover",
|
|
30104
30134
|
onClick: () => onOgImageUpload && fileInputRef?.click(),
|
|
30105
|
-
children: isUploading ? /* @__PURE__ */ jsx269(Loader29, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs221(
|
|
30135
|
+
children: isUploading ? /* @__PURE__ */ jsx269(Loader29, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs221(Fragment42, { children: [
|
|
30106
30136
|
/* @__PURE__ */ jsx269(Upload5, { className: "h-8 w-8 text-ods-text-secondary mb-2" }),
|
|
30107
30137
|
/* @__PURE__ */ jsx269("span", { className: "text-sm text-ods-text-secondary font-['DM_Sans']", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
30108
30138
|
] })
|
|
@@ -32224,7 +32254,7 @@ var DropdownMenuShortcut = ({
|
|
|
32224
32254
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
32225
32255
|
|
|
32226
32256
|
// src/components/features/policy-configuration-panel.tsx
|
|
32227
|
-
import { Fragment as
|
|
32257
|
+
import { Fragment as Fragment43, jsx as jsx293, jsxs as jsxs240 } from "react/jsx-runtime";
|
|
32228
32258
|
var approvalLevelOptions = [
|
|
32229
32259
|
{ value: "ALLOW", label: "Allow" },
|
|
32230
32260
|
{ value: "ASK_USER", label: "Ask User" },
|
|
@@ -32286,7 +32316,7 @@ var CategorySection = ({
|
|
|
32286
32316
|
onPolicyPermissionChange
|
|
32287
32317
|
}) => {
|
|
32288
32318
|
const { contentRef, height } = useAnimatedHeight(category.isExpanded);
|
|
32289
|
-
return /* @__PURE__ */ jsxs240(
|
|
32319
|
+
return /* @__PURE__ */ jsxs240(Fragment43, { children: [
|
|
32290
32320
|
/* @__PURE__ */ jsxs240(
|
|
32291
32321
|
"div",
|
|
32292
32322
|
{
|
|
@@ -32427,7 +32457,7 @@ init_button2();
|
|
|
32427
32457
|
init_cn();
|
|
32428
32458
|
import { getCountries as getCountries2 } from "libphonenumber-js";
|
|
32429
32459
|
import { useEffect as useEffect49, useState as useState70 } from "react";
|
|
32430
|
-
import { Fragment as
|
|
32460
|
+
import { Fragment as Fragment44, jsx as jsx294, jsxs as jsxs241 } from "react/jsx-runtime";
|
|
32431
32461
|
function WaitlistForm({
|
|
32432
32462
|
id = "waitlist-form",
|
|
32433
32463
|
className,
|
|
@@ -32569,7 +32599,7 @@ function WaitlistForm({
|
|
|
32569
32599
|
error: showConsentError ? "Please agree to SMS notifications to continue." : void 0,
|
|
32570
32600
|
disabled: isSubmitting,
|
|
32571
32601
|
label: smsCheckboxLabel,
|
|
32572
|
-
description: /* @__PURE__ */ jsxs241(
|
|
32602
|
+
description: /* @__PURE__ */ jsxs241(Fragment44, { children: [
|
|
32573
32603
|
consentText,
|
|
32574
32604
|
" View our ",
|
|
32575
32605
|
/* @__PURE__ */ jsx294(
|
|
@@ -32738,7 +32768,7 @@ import { CSS } from "@dnd-kit/utilities";
|
|
|
32738
32768
|
import Link11 from "next/link";
|
|
32739
32769
|
import * as React99 from "react";
|
|
32740
32770
|
init_cn();
|
|
32741
|
-
import { Fragment as
|
|
32771
|
+
import { Fragment as Fragment45, jsx as jsx296, jsxs as jsxs243 } from "react/jsx-runtime";
|
|
32742
32772
|
var PRIORITY_COLOR_CLASS = {
|
|
32743
32773
|
low: "text-ods-text-secondary",
|
|
32744
32774
|
medium: "text-ods-info",
|
|
@@ -32803,7 +32833,7 @@ function TicketCard({
|
|
|
32803
32833
|
] })
|
|
32804
32834
|
] }) : null
|
|
32805
32835
|
] }) : null;
|
|
32806
|
-
const body = /* @__PURE__ */ jsxs243(
|
|
32836
|
+
const body = /* @__PURE__ */ jsxs243(Fragment45, { children: [
|
|
32807
32837
|
/* @__PURE__ */ jsxs243("div", { className: "flex items-start gap-[var(--spacing-system-sf)]", children: [
|
|
32808
32838
|
/* @__PURE__ */ jsxs243("div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
32809
32839
|
/* @__PURE__ */ jsx296("p", { className: "text-h3 truncate text-ods-text-primary", children: ticket.title }),
|
|
@@ -32897,7 +32927,7 @@ var TicketCardSkeleton = React100.forwardRef(
|
|
|
32897
32927
|
TicketCardSkeleton.displayName = "TicketCardSkeleton";
|
|
32898
32928
|
|
|
32899
32929
|
// src/components/features/board/board-column.tsx
|
|
32900
|
-
import { Fragment as
|
|
32930
|
+
import { Fragment as Fragment46, jsx as jsx298, jsxs as jsxs245 } from "react/jsx-runtime";
|
|
32901
32931
|
function BoardColumn({
|
|
32902
32932
|
column,
|
|
32903
32933
|
collapsed = false,
|
|
@@ -32932,7 +32962,7 @@ function BoardColumn({
|
|
|
32932
32962
|
onAddTicket: !collapsed && onAddTicket ? () => onAddTicket(column.id) : void 0
|
|
32933
32963
|
}
|
|
32934
32964
|
),
|
|
32935
|
-
!collapsed && /* @__PURE__ */ jsxs245(
|
|
32965
|
+
!collapsed && /* @__PURE__ */ jsxs245(Fragment46, { children: [
|
|
32936
32966
|
/* @__PURE__ */ jsx298("div", { "aria-hidden": true, className: "-mx-[var(--spacing-system-sf)] h-px shrink-0 bg-ods-border" }),
|
|
32937
32967
|
/* @__PURE__ */ jsx298(
|
|
32938
32968
|
ColumnBody,
|
|
@@ -33020,7 +33050,7 @@ function SkeletonStack({ count = 4 }) {
|
|
|
33020
33050
|
() => Array.from({ length: count }, () => Math.random().toString(36).slice(2)),
|
|
33021
33051
|
[count]
|
|
33022
33052
|
);
|
|
33023
|
-
return /* @__PURE__ */ jsx298(
|
|
33053
|
+
return /* @__PURE__ */ jsx298(Fragment46, { children: keys.map((k) => /* @__PURE__ */ jsx298(TicketCardSkeleton, {}, k)) });
|
|
33024
33054
|
}
|
|
33025
33055
|
function EmptyState3() {
|
|
33026
33056
|
return /* @__PURE__ */ jsxs245("div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-lf)] p-[var(--spacing-system-lf)] text-center text-ods-text-secondary", children: [
|
|
@@ -33926,4 +33956,4 @@ export {
|
|
|
33926
33956
|
TMCG_SOCIAL_PLATFORMS,
|
|
33927
33957
|
assets
|
|
33928
33958
|
};
|
|
33929
|
-
//# sourceMappingURL=chunk-
|
|
33959
|
+
//# sourceMappingURL=chunk-QAXTP73H.js.map
|