@flamingo-stack/openframe-frontend-core 0.0.295 → 0.0.296
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-HOVJGXF7.js → chunk-5P3B2LZW.js} +3 -3
- package/dist/{chunk-3XIB4VKS.cjs → chunk-66AANIOC.cjs} +9 -9
- package/dist/{chunk-3XIB4VKS.cjs.map → chunk-66AANIOC.cjs.map} +1 -1
- package/dist/{chunk-4W7NYJ3B.cjs → chunk-BOCFIKYS.cjs} +17 -17
- package/dist/{chunk-4W7NYJ3B.cjs.map → chunk-BOCFIKYS.cjs.map} +1 -1
- package/dist/{chunk-NSPOYUBH.js → chunk-D652TJBQ.js} +2 -2
- package/dist/{chunk-5IJ46KAV.js → chunk-EL6QLAWX.js} +4 -3
- package/dist/chunk-EL6QLAWX.js.map +1 -0
- package/dist/{chunk-FT4FCV7L.cjs → chunk-GLLDTKZK.cjs} +3 -3
- package/dist/{chunk-FT4FCV7L.cjs.map → chunk-GLLDTKZK.cjs.map} +1 -1
- package/dist/{chunk-XXI7BNB6.cjs → chunk-IE6OU3WQ.cjs} +4 -3
- package/dist/chunk-IE6OU3WQ.cjs.map +1 -0
- package/dist/{chunk-6BZEAPNT.js → chunk-K2PFPBMF.js} +92 -65
- package/dist/{chunk-6BZEAPNT.js.map → chunk-K2PFPBMF.js.map} +1 -1
- package/dist/{chunk-J3RDKZ32.js → chunk-MBFWU2EM.js} +3 -3
- package/dist/{chunk-YD43AKI5.js → chunk-ME4EVDFP.js} +3 -3
- package/dist/{chunk-OOKKGOPQ.js → chunk-OY7OF7E7.js} +4 -4
- package/dist/{chunk-INDQMNP6.cjs → chunk-QHIXS3W2.cjs} +357 -330
- package/dist/chunk-QHIXS3W2.cjs.map +1 -0
- package/dist/{chunk-6IBA2MQV.cjs → chunk-W6M2FLLT.cjs} +26 -26
- package/dist/{chunk-6IBA2MQV.cjs.map → chunk-W6M2FLLT.cjs.map} +1 -1
- package/dist/{chunk-7KXD7CWD.js → chunk-WHMATDVP.js} +3 -3
- package/dist/{chunk-A2YL7QRX.cjs → chunk-X647HY3F.cjs} +27 -27
- package/dist/{chunk-A2YL7QRX.cjs.map → chunk-X647HY3F.cjs.map} +1 -1
- package/dist/{chunk-ETACGX2A.cjs → chunk-X6BV7MB7.cjs} +13 -13
- package/dist/{chunk-ETACGX2A.cjs.map → chunk-X6BV7MB7.cjs.map} +1 -1
- package/dist/{chunk-5O6N3BKR.cjs → chunk-XREEV72C.cjs} +5 -5
- package/dist/{chunk-5O6N3BKR.cjs.map → chunk-XREEV72C.cjs.map} +1 -1
- package/dist/{chunk-EJXHZX2E.js → chunk-ZP4AVIZP.js} +2 -2
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/error-message-display.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/chat/types/component.types.d.ts +2 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notifications-context.d.ts +5 -1
- package/dist/components/features/notifications/notifications-context.d.ts.map +1 -1
- package/dist/components/index.cjs +88 -88
- package/dist/components/index.js +8 -8
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +19 -19
- package/dist/components/onboarding-guides/index.js +3 -3
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +65 -65
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +20 -20
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.js +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/components/chat/chat-container.tsx +5 -7
- package/src/components/chat/error-message-display.tsx +49 -31
- package/src/components/chat/types/component.types.ts +2 -0
- package/src/components/features/notifications/notification-drawer.tsx +18 -7
- package/src/components/features/notifications/notifications-context.tsx +7 -0
- package/src/components/ui/button/split-button.tsx +5 -2
- package/src/stories/NotificationDrawer.stories.tsx +2 -0
- package/dist/chunk-5IJ46KAV.js.map +0 -1
- package/dist/chunk-INDQMNP6.cjs.map +0 -1
- package/dist/chunk-XXI7BNB6.cjs.map +0 -1
- /package/dist/{chunk-HOVJGXF7.js.map → chunk-5P3B2LZW.js.map} +0 -0
- /package/dist/{chunk-NSPOYUBH.js.map → chunk-D652TJBQ.js.map} +0 -0
- /package/dist/{chunk-J3RDKZ32.js.map → chunk-MBFWU2EM.js.map} +0 -0
- /package/dist/{chunk-YD43AKI5.js.map → chunk-ME4EVDFP.js.map} +0 -0
- /package/dist/{chunk-OOKKGOPQ.js.map → chunk-OY7OF7E7.js.map} +0 -0
- /package/dist/{chunk-7KXD7CWD.js.map → chunk-WHMATDVP.js.map} +0 -0
- /package/dist/{chunk-EJXHZX2E.js.map → chunk-ZP4AVIZP.js.map} +0 -0
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
useControllableState,
|
|
94
94
|
useEntityCardLink,
|
|
95
95
|
useEntityCardPlaceholder
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-D652TJBQ.js";
|
|
97
97
|
import {
|
|
98
98
|
COMPACT_CARD_ICON_SLOT,
|
|
99
99
|
COMPACT_CARD_IMAGE_SLOT,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
init_button2,
|
|
169
169
|
init_split_button,
|
|
170
170
|
usePortalContainer
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-EL6QLAWX.js";
|
|
172
172
|
import {
|
|
173
173
|
init_next_link,
|
|
174
174
|
next_link_default
|
|
@@ -1080,47 +1080,63 @@ ThinkingDisplay.displayName = "ThinkingDisplay";
|
|
|
1080
1080
|
// src/components/chat/error-message-display.tsx
|
|
1081
1081
|
init_cn();
|
|
1082
1082
|
import { forwardRef as forwardRef5, useState as useState5 } from "react";
|
|
1083
|
-
import { AlertCircle, ChevronDown } from "lucide-react";
|
|
1084
1083
|
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1084
|
+
var iconTint = {
|
|
1085
|
+
error: "text-ods-error",
|
|
1086
|
+
warning: "text-ods-warning",
|
|
1087
|
+
info: "text-ods-text-secondary"
|
|
1088
|
+
};
|
|
1085
1089
|
var ErrorMessageDisplay = forwardRef5(
|
|
1086
|
-
({ className, title, details, ...props }, ref) => {
|
|
1087
|
-
const [
|
|
1090
|
+
({ className, title, details, type = "error", ...props }, ref) => {
|
|
1091
|
+
const [expanded, setExpanded] = useState5(false);
|
|
1092
|
+
const { innerRef, containerStyle } = useCollapsible({ expanded });
|
|
1093
|
+
const hasDetails = Boolean(details);
|
|
1088
1094
|
return /* @__PURE__ */ jsxs6(
|
|
1089
1095
|
"div",
|
|
1090
1096
|
{
|
|
1091
1097
|
ref,
|
|
1092
1098
|
className: cn(
|
|
1093
|
-
"bg-[var(--
|
|
1099
|
+
"bg-ods-card rounded-md p-[var(--spacing-system-xsf)] mb-[var(--spacing-system-xsf)]",
|
|
1094
1100
|
className
|
|
1095
1101
|
),
|
|
1096
1102
|
...props,
|
|
1097
1103
|
children: [
|
|
1098
|
-
/* @__PURE__ */
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1104
|
+
/* @__PURE__ */ jsxs6(
|
|
1105
|
+
"button",
|
|
1106
|
+
{
|
|
1107
|
+
type: "button",
|
|
1108
|
+
onClick: hasDetails ? () => setExpanded((prev) => !prev) : void 0,
|
|
1109
|
+
"aria-expanded": hasDetails ? expanded : void 0,
|
|
1110
|
+
"aria-label": hasDetails ? expanded ? "Collapse details" : "Expand details" : void 0,
|
|
1111
|
+
disabled: !hasDetails,
|
|
1112
|
+
className: cn(
|
|
1113
|
+
"flex w-full items-center gap-[var(--spacing-system-xsf)] text-left",
|
|
1114
|
+
hasDetails ? "cursor-pointer" : "cursor-default"
|
|
1115
|
+
),
|
|
1116
|
+
children: [
|
|
1117
|
+
/* @__PURE__ */ jsx7(AlertCircleIcon, { size: 16, className: cn("shrink-0", iconTint[type]) }),
|
|
1118
|
+
/* @__PURE__ */ jsx7(
|
|
1119
|
+
"span",
|
|
1120
|
+
{
|
|
1121
|
+
className: cn(
|
|
1122
|
+
"min-w-0 flex-1 font-mono text-sm font-medium uppercase leading-5 tracking-[-0.28px]",
|
|
1123
|
+
expanded ? "text-ods-text-primary" : "truncate text-ods-text-secondary"
|
|
1124
|
+
),
|
|
1125
|
+
children: title
|
|
1126
|
+
}
|
|
1127
|
+
),
|
|
1128
|
+
hasDetails && /* @__PURE__ */ jsx7(ExpandChevron, { expanded })
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
),
|
|
1132
|
+
hasDetails && /* @__PURE__ */ jsx7("div", { style: containerStyle, children: /* @__PURE__ */ jsx7(
|
|
1133
|
+
"div",
|
|
1134
|
+
{
|
|
1135
|
+
ref: innerRef,
|
|
1136
|
+
className: "px-[var(--spacing-system-lf)] pt-[var(--spacing-system-xsf)]",
|
|
1137
|
+
children: /* @__PURE__ */ jsx7("p", { className: "text-sm font-medium leading-5 text-ods-text-primary", children: details })
|
|
1138
|
+
}
|
|
1139
|
+
) })
|
|
1124
1140
|
]
|
|
1125
1141
|
}
|
|
1126
1142
|
);
|
|
@@ -1355,16 +1371,14 @@ import { Fragment, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
|
1355
1371
|
var ConnectionIndicator = ({ status }) => {
|
|
1356
1372
|
const getStatusStyles = () => {
|
|
1357
1373
|
switch (status) {
|
|
1358
|
-
// ODS
|
|
1359
|
-
//
|
|
1360
|
-
// (`bg-green-500` / `bg-red-500`) would diverge from the theme and
|
|
1361
|
-
// is forbidden by the host's design-token policy.
|
|
1374
|
+
// ODS semantic status tokens — preset-defined utilities aliasing the same
|
|
1375
|
+
// green/yellow/red as the raw ods-attention palette (which is CSS-vars only).
|
|
1362
1376
|
case "connected":
|
|
1363
|
-
return "bg-ods-
|
|
1377
|
+
return "bg-ods-success";
|
|
1364
1378
|
case "connecting":
|
|
1365
|
-
return "bg-ods-
|
|
1379
|
+
return "bg-ods-warning animate-pulse";
|
|
1366
1380
|
case "disconnected":
|
|
1367
|
-
return "bg-ods-
|
|
1381
|
+
return "bg-ods-error";
|
|
1368
1382
|
default:
|
|
1369
1383
|
return "bg-ods-text-tertiary";
|
|
1370
1384
|
}
|
|
@@ -8624,7 +8638,7 @@ import {
|
|
|
8624
8638
|
|
|
8625
8639
|
// src/components/ui/select.tsx
|
|
8626
8640
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
8627
|
-
import { ChevronDown
|
|
8641
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
8628
8642
|
init_cn();
|
|
8629
8643
|
import * as React27 from "react";
|
|
8630
8644
|
import { jsx as jsx69, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
@@ -8689,7 +8703,7 @@ var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
8689
8703
|
className
|
|
8690
8704
|
),
|
|
8691
8705
|
...props,
|
|
8692
|
-
children: /* @__PURE__ */ jsx69(
|
|
8706
|
+
children: /* @__PURE__ */ jsx69(ChevronDown, { className: "h-4 w-4" })
|
|
8693
8707
|
}
|
|
8694
8708
|
));
|
|
8695
8709
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
@@ -11410,7 +11424,7 @@ DrawerFooter.displayName = "DrawerFooter";
|
|
|
11410
11424
|
init_cn();
|
|
11411
11425
|
import * as React46 from "react";
|
|
11412
11426
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
11413
|
-
import { ChevronDown as
|
|
11427
|
+
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
11414
11428
|
import { jsx as jsx92, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11415
11429
|
var Accordion = AccordionPrimitive.Root;
|
|
11416
11430
|
var AccordionItem = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
|
|
@@ -11426,7 +11440,7 @@ var AccordionTrigger = React46.forwardRef(({ className, children, ...props }, re
|
|
|
11426
11440
|
...props,
|
|
11427
11441
|
children: [
|
|
11428
11442
|
children,
|
|
11429
|
-
/* @__PURE__ */ jsx92(
|
|
11443
|
+
/* @__PURE__ */ jsx92(ChevronDown2, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
11430
11444
|
]
|
|
11431
11445
|
}
|
|
11432
11446
|
) }));
|
|
@@ -11702,7 +11716,7 @@ init_cn();
|
|
|
11702
11716
|
import * as React49 from "react";
|
|
11703
11717
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
11704
11718
|
import { cva as cva6 } from "class-variance-authority";
|
|
11705
|
-
import { ChevronDown as
|
|
11719
|
+
import { ChevronDown as ChevronDown3 } from "lucide-react";
|
|
11706
11720
|
import { jsx as jsx95, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
11707
11721
|
var NavigationMenu = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs76(
|
|
11708
11722
|
NavigationMenuPrimitive.Root,
|
|
@@ -11746,7 +11760,7 @@ var NavigationMenuTrigger = React49.forwardRef(({ className, children, ...props
|
|
|
11746
11760
|
children,
|
|
11747
11761
|
" ",
|
|
11748
11762
|
/* @__PURE__ */ jsx95(
|
|
11749
|
-
|
|
11763
|
+
ChevronDown3,
|
|
11750
11764
|
{
|
|
11751
11765
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
11752
11766
|
"aria-hidden": "true"
|
|
@@ -12029,7 +12043,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
|
12029
12043
|
|
|
12030
12044
|
// src/components/ui/release-changelog-section.tsx
|
|
12031
12045
|
import { useState as useState30, useRef as useRef17, useEffect as useEffect20 } from "react";
|
|
12032
|
-
import { ChevronDown as
|
|
12046
|
+
import { ChevronDown as ChevronDown4 } from "lucide-react";
|
|
12033
12047
|
import { jsx as jsx100, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
12034
12048
|
var PREVIEW_COLLAPSED_HEIGHT = 120;
|
|
12035
12049
|
function ReleaseChangelogSection({
|
|
@@ -12067,7 +12081,7 @@ function ReleaseChangelogSection({
|
|
|
12067
12081
|
/* @__PURE__ */ jsx100(Badge, { variant: "secondary", className: "ml-2", children: entries.length })
|
|
12068
12082
|
] }),
|
|
12069
12083
|
/* @__PURE__ */ jsx100(
|
|
12070
|
-
|
|
12084
|
+
ChevronDown4,
|
|
12071
12085
|
{
|
|
12072
12086
|
className: `h-4 w-4 text-ods-text-secondary shrink-0 transition-transform duration-200 ${!collapsed ? "rotate-180" : ""}`
|
|
12073
12087
|
}
|
|
@@ -12112,7 +12126,7 @@ function ReleaseChangelogSection({
|
|
|
12112
12126
|
children: [
|
|
12113
12127
|
/* @__PURE__ */ jsx100("span", { children: previewExpanded ? "Show less" : `Show ${entries.length - 1} more` }),
|
|
12114
12128
|
/* @__PURE__ */ jsx100(
|
|
12115
|
-
|
|
12129
|
+
ChevronDown4,
|
|
12116
12130
|
{
|
|
12117
12131
|
className: `w-3.5 h-3.5 transition-transform duration-300 ${previewExpanded ? "rotate-180" : ""}`
|
|
12118
12132
|
}
|
|
@@ -13192,11 +13206,11 @@ function BulletList({
|
|
|
13192
13206
|
// src/components/ui/chevron-button.tsx
|
|
13193
13207
|
init_cn();
|
|
13194
13208
|
import * as React60 from "react";
|
|
13195
|
-
import { ChevronUp as ChevronUp2, ChevronDown as
|
|
13209
|
+
import { ChevronUp as ChevronUp2, ChevronDown as ChevronDown5 } from "lucide-react";
|
|
13196
13210
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
13197
13211
|
var ChevronButton = React60.forwardRef(
|
|
13198
13212
|
({ className, direction = "down", size = "md", isExpanded, backgroundColor, borderColor, ...props }, ref) => {
|
|
13199
|
-
const Icon2 = (isExpanded ? ChevronUp2 :
|
|
13213
|
+
const Icon2 = (isExpanded ? ChevronUp2 : ChevronDown5) || (direction === "up" ? ChevronUp2 : ChevronDown5);
|
|
13200
13214
|
const sizeClasses2 = {
|
|
13201
13215
|
sm: "h-4 w-4",
|
|
13202
13216
|
md: "h-5 w-5",
|
|
@@ -14662,7 +14676,7 @@ function AuthProvidersList({
|
|
|
14662
14676
|
}
|
|
14663
14677
|
|
|
14664
14678
|
// src/components/features/changelog-manager.tsx
|
|
14665
|
-
import { Trash2 as Trash22, Plus as Plus3, ChevronDown as
|
|
14679
|
+
import { Trash2 as Trash22, Plus as Plus3, ChevronDown as ChevronDown6, ChevronUp as ChevronUp3, Eye as Eye3, EyeOff } from "lucide-react";
|
|
14666
14680
|
import { useState as useState40, useEffect as useEffect27 } from "react";
|
|
14667
14681
|
import { jsx as jsx136, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
14668
14682
|
function ChangelogManager({
|
|
@@ -14750,7 +14764,7 @@ function ChangelogManager({
|
|
|
14750
14764
|
size: "icon",
|
|
14751
14765
|
onClick: () => toggleExpanded(index),
|
|
14752
14766
|
className: "shrink-0",
|
|
14753
|
-
children: isExpanded ? /* @__PURE__ */ jsx136(ChevronUp3, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx136(
|
|
14767
|
+
children: isExpanded ? /* @__PURE__ */ jsx136(ChevronUp3, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx136(ChevronDown6, { className: "h-4 w-4" })
|
|
14754
14768
|
}
|
|
14755
14769
|
),
|
|
14756
14770
|
/* @__PURE__ */ jsx136("div", { className: "flex-1 min-w-0", children: hasContent ? /* @__PURE__ */ jsx136("p", { className: "font-['DM_Sans'] font-medium text-[14px] text-ods-text-primary truncate", children: entry.title }) : /* @__PURE__ */ jsx136("p", { className: "font-['DM_Sans'] font-medium text-[14px] text-ods-text-secondary italic", children: "New entry (click to edit)" }) }),
|
|
@@ -18307,7 +18321,7 @@ var AIWarningsSection = ({
|
|
|
18307
18321
|
|
|
18308
18322
|
// src/components/features/ai-enrich/AIEnrichSection.tsx
|
|
18309
18323
|
init_button2();
|
|
18310
|
-
import { CheckCircle as CheckCircle2, AlertCircle
|
|
18324
|
+
import { CheckCircle as CheckCircle2, AlertCircle, Loader2 as Loader28, X as X9 } from "lucide-react";
|
|
18311
18325
|
import { jsx as jsx165, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
18312
18326
|
var AIEnrichSection = ({
|
|
18313
18327
|
onEnrich,
|
|
@@ -18448,7 +18462,7 @@ var AIEnrichSection = ({
|
|
|
18448
18462
|
"flex items-center gap-3 p-3 rounded-lg",
|
|
18449
18463
|
status === "success" ? "bg-[--ods-attention-green-success]/10" : "bg-[--ods-attention-red-error]/10"
|
|
18450
18464
|
), children: [
|
|
18451
|
-
status === "success" ? /* @__PURE__ */ jsx165(CheckCircle2, { className: "h-5 w-5 text-[--ods-attention-green-success]" }) : /* @__PURE__ */ jsx165(
|
|
18465
|
+
status === "success" ? /* @__PURE__ */ jsx165(CheckCircle2, { className: "h-5 w-5 text-[--ods-attention-green-success]" }) : /* @__PURE__ */ jsx165(AlertCircle, { className: "h-5 w-5 text-[--ods-attention-red-error]" }),
|
|
18452
18466
|
/* @__PURE__ */ jsx165("span", { className: cn(
|
|
18453
18467
|
"text-sm font-medium",
|
|
18454
18468
|
status === "success" ? "text-[--ods-attention-green-success]" : "text-[--ods-attention-red-error]"
|
|
@@ -19349,7 +19363,7 @@ function ViewToggle({
|
|
|
19349
19363
|
// src/components/features/policy-configuration-panel.tsx
|
|
19350
19364
|
init_cn();
|
|
19351
19365
|
import { useRef as useRef26, useEffect as useEffect33, useState as useState51 } from "react";
|
|
19352
|
-
import { ChevronDown as
|
|
19366
|
+
import { ChevronDown as ChevronDown7 } from "lucide-react";
|
|
19353
19367
|
init_button2();
|
|
19354
19368
|
|
|
19355
19369
|
// src/components/dropdown-menu.tsx
|
|
@@ -19511,7 +19525,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
19511
19525
|
Button,
|
|
19512
19526
|
{
|
|
19513
19527
|
variant: "outline",
|
|
19514
|
-
rightIcon: /* @__PURE__ */ jsx179(
|
|
19528
|
+
rightIcon: /* @__PURE__ */ jsx179(ChevronDown7, { className: "h-6 w-6 text-ods-text-secondary" }),
|
|
19515
19529
|
className: "md:!text-sm bg-ods-card border border-ods-border rounded-md flex gap-2 items-center justify-between !px-2 py-2 w-[180px] hover:bg-ods-bg-hover transition-colors text-ods-text-primary h-auto",
|
|
19516
19530
|
children: getApprovalLevelLabel(policy.approvalLevel, editMode)
|
|
19517
19531
|
}
|
|
@@ -19567,7 +19581,7 @@ var CategorySection = ({
|
|
|
19567
19581
|
Button,
|
|
19568
19582
|
{
|
|
19569
19583
|
variant: "outline",
|
|
19570
|
-
rightIcon: /* @__PURE__ */ jsx179(
|
|
19584
|
+
rightIcon: /* @__PURE__ */ jsx179(ChevronDown7, { className: "h-6 w-6 text-ods-text-secondary" }),
|
|
19571
19585
|
className: "md:!text-sm bg-ods-card border border-ods-border rounded-md flex gap-2 items-center justify-between !px-2 py-2 w-[256px] hover:bg-ods-bg-hover transition-colors h-auto",
|
|
19572
19586
|
children: /* @__PURE__ */ jsx179("span", { className: cn(
|
|
19573
19587
|
"md:!text-sm font-medium",
|
|
@@ -19618,7 +19632,7 @@ var CategorySection = ({
|
|
|
19618
19632
|
onCategoryToggle(category.id);
|
|
19619
19633
|
},
|
|
19620
19634
|
leftIcon: /* @__PURE__ */ jsx179(
|
|
19621
|
-
|
|
19635
|
+
ChevronDown7,
|
|
19622
19636
|
{
|
|
19623
19637
|
className: cn(
|
|
19624
19638
|
"h-6 w-6 text-ods-text-primary transition-transform duration-300",
|
|
@@ -20058,6 +20072,7 @@ function NotificationsProvider({
|
|
|
20058
20072
|
defaultShowDesktopPopups = false,
|
|
20059
20073
|
onShowDesktopPopupsChange,
|
|
20060
20074
|
onHistoryClick,
|
|
20075
|
+
historyHref,
|
|
20061
20076
|
actions,
|
|
20062
20077
|
hasMore = false,
|
|
20063
20078
|
isLoadingMore = false,
|
|
@@ -20163,6 +20178,7 @@ function NotificationsProvider({
|
|
|
20163
20178
|
setShowDesktopPopups,
|
|
20164
20179
|
desktopPopupsConfigured,
|
|
20165
20180
|
onHistoryClick,
|
|
20181
|
+
historyHref,
|
|
20166
20182
|
hasMore,
|
|
20167
20183
|
isLoadingMore,
|
|
20168
20184
|
loadMore: onLoadMore,
|
|
@@ -20189,6 +20205,7 @@ function NotificationsProvider({
|
|
|
20189
20205
|
toggle,
|
|
20190
20206
|
setShowPopups,
|
|
20191
20207
|
onHistoryClick,
|
|
20208
|
+
historyHref,
|
|
20192
20209
|
hasMore,
|
|
20193
20210
|
isLoadingMore,
|
|
20194
20211
|
onLoadMore,
|
|
@@ -20210,7 +20227,7 @@ function useOptionalNotifications() {
|
|
|
20210
20227
|
|
|
20211
20228
|
// src/components/features/notifications/notification-drawer.tsx
|
|
20212
20229
|
import { useEffect as useEffect38, useRef as useRef29 } from "react";
|
|
20213
|
-
|
|
20230
|
+
init_button2();
|
|
20214
20231
|
init_cn();
|
|
20215
20232
|
|
|
20216
20233
|
// src/components/features/notifications/notification-tile.tsx
|
|
@@ -20337,6 +20354,7 @@ function NotificationDrawer({
|
|
|
20337
20354
|
setShowDesktopPopups,
|
|
20338
20355
|
desktopPopupsConfigured,
|
|
20339
20356
|
onHistoryClick,
|
|
20357
|
+
historyHref,
|
|
20340
20358
|
hasMore,
|
|
20341
20359
|
isLoadingMore,
|
|
20342
20360
|
loadMore,
|
|
@@ -20398,7 +20416,8 @@ function NotificationDrawer({
|
|
|
20398
20416
|
onClick: onHistoryClick ? () => {
|
|
20399
20417
|
onHistoryClick();
|
|
20400
20418
|
close();
|
|
20401
|
-
} : void 0
|
|
20419
|
+
} : void 0,
|
|
20420
|
+
historyHref
|
|
20402
20421
|
}
|
|
20403
20422
|
)
|
|
20404
20423
|
] })
|
|
@@ -20529,15 +20548,23 @@ function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
|
20529
20548
|
] })
|
|
20530
20549
|
] });
|
|
20531
20550
|
}
|
|
20532
|
-
function NotificationsHistoryButton({ onClick }) {
|
|
20551
|
+
function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
20533
20552
|
return /* @__PURE__ */ jsx184(
|
|
20534
|
-
|
|
20553
|
+
SplitButton,
|
|
20535
20554
|
{
|
|
20536
20555
|
variant: "outline",
|
|
20537
20556
|
fullWidth: true,
|
|
20538
|
-
disabled: !onClick,
|
|
20539
20557
|
onClick,
|
|
20540
|
-
|
|
20558
|
+
mainDisabled: !onClick,
|
|
20559
|
+
leftIcon: /* @__PURE__ */ jsx184(ClockHistoryIcon, { className: "text-ods-text-secondary" }),
|
|
20560
|
+
groupAriaLabel: "Notifications history",
|
|
20561
|
+
iconAction: {
|
|
20562
|
+
icon: /* @__PURE__ */ jsx184(ArrowRightUpIcon, { className: "text-ods-text-secondary" }),
|
|
20563
|
+
"aria-label": "Open notifications history in a new tab",
|
|
20564
|
+
href: historyHref,
|
|
20565
|
+
openInNewTab: true,
|
|
20566
|
+
disabled: !historyHref
|
|
20567
|
+
},
|
|
20541
20568
|
children: "Notifications History"
|
|
20542
20569
|
}
|
|
20543
20570
|
);
|
|
@@ -39563,4 +39590,4 @@ export {
|
|
|
39563
39590
|
LogsList,
|
|
39564
39591
|
assets
|
|
39565
39592
|
};
|
|
39566
|
-
//# sourceMappingURL=chunk-
|
|
39593
|
+
//# sourceMappingURL=chunk-K2PFPBMF.js.map
|