@burtson-labs/bandit-engine 2.0.122 → 2.0.124

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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-42TFNHCE.mjs";
3
+ } from "./chunk-QPZC6GTA.mjs";
4
4
  import "./chunk-ONQMRE2G.mjs";
5
- import "./chunk-CY6WSCRS.mjs";
5
+ import "./chunk-WSNV6EX5.mjs";
6
6
  import "./chunk-K2JGFKEB.mjs";
7
- import "./chunk-LR55TJK5.mjs";
7
+ import "./chunk-JJTUEC2E.mjs";
8
8
  import "./chunk-6ONL4SRK.mjs";
9
9
  import "./chunk-EORIRPPX.mjs";
10
10
  import "./chunk-43MLINPL.mjs";
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
13
13
  export {
14
14
  chat_default as default
15
15
  };
16
- //# sourceMappingURL=chat-OWN4ESDC.mjs.map
16
+ //# sourceMappingURL=chat-QBDECLF3.mjs.map
@@ -24,7 +24,7 @@ import {
24
24
  useNotificationService,
25
25
  useTTS,
26
26
  useVoiceStore
27
- } from "./chunk-LR55TJK5.mjs";
27
+ } from "./chunk-JJTUEC2E.mjs";
28
28
  import {
29
29
  brandingService_default,
30
30
  toTitleCase,
@@ -2803,4 +2803,4 @@ export {
2803
2803
  MAX_WINDOWED_HEIGHT,
2804
2804
  chat_modal_default
2805
2805
  };
2806
- //# sourceMappingURL=chunk-W2Q2AF45.mjs.map
2806
+ //# sourceMappingURL=chunk-4RRQQPFZ.mjs.map
@@ -3680,7 +3680,7 @@ import {
3680
3680
  useMediaQuery as useMediaQuery2,
3681
3681
  Snackbar
3682
3682
  } from "@mui/material";
3683
- import { X as CloseIcon2, Bug as BugReportIcon, Lightbulb as LightbulbIcon, TrendingUp as TrendingUpIcon, HelpCircle as HelpIcon, MessageSquare as MessageIcon, Camera as PhotoCameraIcon, Paperclip as AttachFileIcon, Trash2 as DeleteIcon2, Mail as MailIcon, Brain as PsychologyAltRounded, Paperclip as AttachFileRounded } from "lucide-react";
3683
+ import { X as CloseIcon2, Bug as BugReportIcon, Lightbulb as LightbulbIcon, TrendingUp as TrendingUpIcon, HelpCircle as HelpIcon, MessageSquare as MessageIcon, Camera as PhotoCameraIcon, Paperclip as AttachFileIcon, Trash2 as DeleteIcon2, Mail as MailIcon } from "lucide-react";
3684
3684
  import { useTheme as useTheme4, alpha as alpha2 } from "@mui/material/styles";
3685
3685
  import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
3686
3686
  var feedbackCategories = {
@@ -4141,7 +4141,7 @@ var FeedbackModal = ({
4141
4141
  sx: {
4142
4142
  display: "grid",
4143
4143
  gridTemplateRows: "auto auto auto auto",
4144
- rowGap: "24px",
4144
+ rowGap: "16px",
4145
4145
  columnGap: "0px",
4146
4146
  width: "100%"
4147
4147
  },
@@ -4157,35 +4157,6 @@ var FeedbackModal = ({
4157
4157
  mb: 0
4158
4158
  },
4159
4159
  children: [
4160
- /* @__PURE__ */ jsxs5(
4161
- Box6,
4162
- {
4163
- sx: {
4164
- gridColumn: "1 / -1",
4165
- display: "flex",
4166
- alignItems: "center",
4167
- gap: "8px",
4168
- mb: 0,
4169
- mt: 2,
4170
- alignSelf: "end"
4171
- },
4172
- children: [
4173
- /* @__PURE__ */ jsx6(MessageIcon, { size: 20, color: theme.palette.text.primary }),
4174
- /* @__PURE__ */ jsx6(
4175
- Typography4,
4176
- {
4177
- variant: "h6",
4178
- sx: {
4179
- fontWeight: 600,
4180
- color: theme.palette.text.primary,
4181
- mb: 0
4182
- },
4183
- children: "Feedback Details"
4184
- }
4185
- )
4186
- ]
4187
- }
4188
- ),
4189
4160
  /* @__PURE__ */ jsx6(
4190
4161
  TextField,
4191
4162
  {
@@ -4327,7 +4298,7 @@ var FeedbackModal = ({
4327
4298
  {
4328
4299
  fullWidth: true,
4329
4300
  multiline: true,
4330
- rows: 5,
4301
+ rows: 3,
4331
4302
  label: "Description",
4332
4303
  value: formData.description,
4333
4304
  onChange: handleInputChange("description"),
@@ -4378,118 +4349,37 @@ var FeedbackModal = ({
4378
4349
  /* @__PURE__ */ jsxs5(
4379
4350
  Box6,
4380
4351
  {
4381
- className: "impact-assessment-card impact-section",
4382
- sx: {
4383
- flex: 1,
4384
- minWidth: 300,
4385
- display: "flex",
4386
- flexDirection: "column",
4387
- height: "100%",
4388
- p: 0
4389
- },
4352
+ className: "impact-section",
4353
+ sx: { flex: 1, minWidth: 260, display: "flex", flexDirection: "column" },
4390
4354
  children: [
4391
- /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4392
- /* @__PURE__ */ jsx6(PsychologyAltRounded, { size: 20, color: theme.palette.warning.main }),
4393
- /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Impact Assessment" })
4355
+ /* @__PURE__ */ jsxs5(Typography4, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
4356
+ "How annoying is this?",
4357
+ " ",
4358
+ ["\u{1F60A}", "\u{1F610}", "\u{1F644}", "\u{1F620}", "\u{1F92C}"][(formData.annoyanceLevel ?? 3) - 1],
4359
+ " ",
4360
+ "(",
4361
+ formData.annoyanceLevel ?? 3,
4362
+ "/5)"
4394
4363
  ] }),
4395
- /* @__PURE__ */ jsx6("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsx6(
4396
- Paper3,
4364
+ /* @__PURE__ */ jsx6(Box6, { sx: { px: 1 }, children: /* @__PURE__ */ jsx6(
4365
+ Slider,
4397
4366
  {
4398
- variant: "outlined",
4367
+ size: "small",
4368
+ value: formData.annoyanceLevel,
4369
+ onChange: (_, value) => setFormData((prev) => ({ ...prev, annoyanceLevel: value })),
4370
+ min: 1,
4371
+ max: 5,
4372
+ step: 1,
4373
+ marks: true,
4399
4374
  sx: {
4400
- p: 4,
4401
- borderRadius: 3,
4402
- minHeight: 180,
4403
- background: theme.palette.mode === "dark" ? "linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%)" : "linear-gradient(135deg, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.03) 100%)",
4404
- border: `1px solid ${theme.palette.divider}`,
4405
- transition: "all 0.2s ease",
4406
- display: "flex",
4407
- flexDirection: "column",
4408
- flex: 1,
4409
- justifyContent: "center",
4410
- height: "100%",
4411
- "&:hover": {
4412
- transform: "translateY(-2px)",
4413
- boxShadow: theme.palette.mode === "dark" ? "0 8px 24px rgba(0,0,0,0.4)" : "0 8px 24px rgba(0,0,0,0.12)"
4375
+ "& .MuiSlider-track": {
4376
+ background: `linear-gradient(90deg, ${theme.palette.success.main}, ${theme.palette.warning.main}, ${theme.palette.error.main})`,
4377
+ border: "none"
4378
+ },
4379
+ "& .MuiSlider-thumb": {
4380
+ background: `linear-gradient(135deg, ${theme.palette.warning.main}, ${theme.palette.warning.dark})`
4414
4381
  }
4415
- },
4416
- children: /* @__PURE__ */ jsxs5(Stack, { spacing: 3, children: [
4417
- /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, display: "flex", alignItems: "center", gap: 2 }, children: [
4418
- /* @__PURE__ */ jsx6(
4419
- Box6,
4420
- {
4421
- sx: {
4422
- width: 28,
4423
- height: 28,
4424
- borderRadius: "50%",
4425
- bgcolor: theme.palette.warning.main + "20",
4426
- display: "flex",
4427
- alignItems: "center",
4428
- justifyContent: "center",
4429
- fontSize: "14px"
4430
- },
4431
- children: /* @__PURE__ */ jsx6(PsychologyAltRounded, { size: 22, color: theme.palette.warning.main })
4432
- }
4433
- ),
4434
- "How annoying is this issue? (",
4435
- formData.annoyanceLevel,
4436
- "/5)"
4437
- ] }),
4438
- /* @__PURE__ */ jsx6(Box6, { sx: { px: 2, py: 1 }, children: /* @__PURE__ */ jsx6(
4439
- Slider,
4440
- {
4441
- value: formData.annoyanceLevel,
4442
- onChange: (_, value) => setFormData((prev) => ({ ...prev, annoyanceLevel: value })),
4443
- min: 1,
4444
- max: 5,
4445
- step: 1,
4446
- marks: [
4447
- { value: 1, label: "\u{1F60A} Not at all" },
4448
- { value: 2, label: "\u{1F610} Slightly" },
4449
- { value: 3, label: "\u{1F644} Moderately" },
4450
- { value: 4, label: "\u{1F620} Very" },
4451
- { value: 5, label: "\u{1F92C} Extremely" }
4452
- ],
4453
- sx: {
4454
- height: 8,
4455
- "& .MuiSlider-mark": {
4456
- backgroundColor: theme.palette.divider,
4457
- width: 3,
4458
- height: 3
4459
- },
4460
- "& .MuiSlider-markLabel": {
4461
- fontSize: "0.8rem",
4462
- color: theme.palette.text.secondary,
4463
- transform: "translateX(-50%)",
4464
- whiteSpace: "nowrap",
4465
- top: 32,
4466
- fontWeight: 500
4467
- },
4468
- "& .MuiSlider-thumb": {
4469
- width: 24,
4470
- height: 24,
4471
- background: `linear-gradient(135deg, ${theme.palette.warning.main}, ${theme.palette.warning.dark})`,
4472
- boxShadow: `0 4px 12px ${theme.palette.warning.main}40`,
4473
- "&:hover, &.Mui-focusVisible": {
4474
- boxShadow: `0 0 0 12px ${theme.palette.warning.main}20, 0 4px 12px ${theme.palette.warning.main}40`
4475
- }
4476
- },
4477
- "& .MuiSlider-track": {
4478
- background: `linear-gradient(90deg, ${theme.palette.success.main}, ${theme.palette.warning.main}, ${theme.palette.error.main})`,
4479
- height: 6,
4480
- border: "none"
4481
- },
4482
- "& .MuiSlider-rail": {
4483
- height: 6,
4484
- backgroundColor: theme.palette.divider,
4485
- opacity: 0.3
4486
- },
4487
- mb: 5
4488
- // Space for labels
4489
- }
4490
- }
4491
- ) })
4492
- ] })
4382
+ }
4493
4383
  }
4494
4384
  ) })
4495
4385
  ]
@@ -4508,109 +4398,63 @@ var FeedbackModal = ({
4508
4398
  p: 0
4509
4399
  },
4510
4400
  children: [
4511
- /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4512
- /* @__PURE__ */ jsx6(AttachFileRounded, { size: 20, color: theme.palette.primary.main }),
4513
- /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Attachments" })
4514
- ] }),
4515
- /* @__PURE__ */ jsx6("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsxs5(
4516
- Box6,
4517
- {
4518
- sx: {
4519
- height: "100%",
4520
- display: "flex",
4521
- flexDirection: "column",
4522
- justifyContent: "center",
4523
- p: 0,
4524
- mb: 0,
4525
- backgroundColor: "transparent",
4526
- boxShadow: "none",
4527
- border: "none"
4528
- },
4529
- onClick: () => fileInputRef.current?.click(),
4530
- children: [
4531
- /* @__PURE__ */ jsx6(
4532
- "input",
4533
- {
4534
- ref: fileInputRef,
4535
- type: "file",
4536
- accept: "image/*",
4537
- style: { display: "none" },
4538
- onChange: handleFileUpload
4539
- }
4540
- ),
4541
- /* @__PURE__ */ jsxs5(
4542
- Box6,
4543
- {
4544
- sx: {
4545
- flex: 1,
4546
- display: "flex",
4547
- flexDirection: "column",
4548
- justifyContent: "center",
4549
- alignItems: "center",
4550
- p: 2,
4551
- border: "2px dashed",
4552
- borderColor: (theme2) => theme2.palette.divider,
4553
- borderRadius: 2,
4554
- height: "100%",
4555
- mb: 0,
4556
- backgroundColor: "transparent",
4557
- boxShadow: "none"
4558
- },
4559
- children: [
4560
- /* @__PURE__ */ jsx6(
4561
- Avatar2,
4562
- {
4563
- sx: {
4564
- width: 56,
4565
- height: 56,
4566
- bgcolor: theme.palette.primary.main + "15",
4567
- color: theme.palette.primary.main,
4568
- boxShadow: `0 4px 16px ${theme.palette.primary.main}20`,
4569
- transition: "all 0.3s ease"
4570
- },
4571
- children: /* @__PURE__ */ jsx6(AttachFileIcon, { size: 28 })
4572
- }
4573
- ),
4574
- /* @__PURE__ */ jsxs5(Box6, { sx: { textAlign: "center" }, children: [
4575
- /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, mb: 1, fontSize: "1.1rem" }, children: "Attach One Image" }),
4576
- /* @__PURE__ */ jsx6(Typography4, { variant: "body2", color: "text.secondary", sx: { mb: 1, fontSize: "0.95rem" }, children: "Click here to upload a single image" }),
4577
- /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", sx: {
4578
- opacity: 0.8,
4579
- fontSize: "0.85rem",
4580
- background: theme.palette.mode === "dark" ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)",
4581
- px: 2,
4582
- py: 0.5,
4583
- borderRadius: 1
4584
- }, children: "Support: Images only (JPG, PNG, GIF) - Max 10MB" })
4585
- ] })
4586
- ]
4587
- }
4588
- ),
4589
- (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ jsx6(
4590
- Alert3,
4591
- {
4592
- severity: "info",
4593
- sx: {
4594
- mt: "auto",
4595
- textAlign: "left",
4596
- fontSize: "0.75rem",
4597
- py: 0.5,
4598
- background: theme.palette.mode === "dark" ? "linear-gradient(135deg, rgba(33,150,243,0.1) 0%, rgba(25,118,210,0.1) 100%)" : "linear-gradient(135deg, rgba(33,150,243,0.05) 0%, rgba(25,118,210,0.05) 100%)",
4599
- border: `1px solid ${theme.palette.info.main}30`,
4600
- "& .MuiAlert-icon": {
4601
- color: theme.palette.info.main,
4602
- fontSize: "0.875rem"
4603
- },
4604
- "& .MuiAlert-message": {
4605
- fontSize: "0.75rem"
4606
- }
4607
- },
4608
- children: /* @__PURE__ */ jsx6(Typography4, { variant: "caption", sx: { fontWeight: 600, display: "block" }, children: formData.images && formData.images.length > 0 ? "\u{1F4CE} Image will be copied to clipboard - paste in email!" : "\u{1F4CE} Files ready for email attachment" })
4401
+ /* @__PURE__ */ jsx6("div", { style: { display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ jsxs5(Box6, { onClick: () => fileInputRef.current?.click(), children: [
4402
+ /* @__PURE__ */ jsx6(
4403
+ "input",
4404
+ {
4405
+ ref: fileInputRef,
4406
+ type: "file",
4407
+ accept: "image/*",
4408
+ style: { display: "none" },
4409
+ onChange: handleFileUpload
4410
+ }
4411
+ ),
4412
+ /* @__PURE__ */ jsxs5(
4413
+ Box6,
4414
+ {
4415
+ sx: {
4416
+ display: "flex",
4417
+ alignItems: "center",
4418
+ gap: 1,
4419
+ px: 1.5,
4420
+ py: 1,
4421
+ border: "1px dashed",
4422
+ borderColor: (theme2) => theme2.palette.divider,
4423
+ borderRadius: 2,
4424
+ cursor: "pointer",
4425
+ color: theme.palette.text.secondary,
4426
+ "&:hover": { borderColor: theme.palette.primary.main, color: theme.palette.primary.main }
4427
+ },
4428
+ children: [
4429
+ /* @__PURE__ */ jsx6(AttachFileIcon, { size: 18 }),
4430
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: "Attach an image" }),
4431
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", sx: { ml: "auto" }, children: "JPG/PNG/GIF \xB7 10MB" })
4432
+ ]
4433
+ }
4434
+ ),
4435
+ (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ jsx6(
4436
+ Alert3,
4437
+ {
4438
+ severity: "info",
4439
+ sx: {
4440
+ mt: "auto",
4441
+ textAlign: "left",
4442
+ fontSize: "0.75rem",
4443
+ py: 0.5,
4444
+ background: theme.palette.mode === "dark" ? "linear-gradient(135deg, rgba(33,150,243,0.1) 0%, rgba(25,118,210,0.1) 100%)" : "linear-gradient(135deg, rgba(33,150,243,0.05) 0%, rgba(25,118,210,0.05) 100%)",
4445
+ border: `1px solid ${theme.palette.info.main}30`,
4446
+ "& .MuiAlert-icon": {
4447
+ color: theme.palette.info.main,
4448
+ fontSize: "0.875rem"
4449
+ },
4450
+ "& .MuiAlert-message": {
4451
+ fontSize: "0.75rem"
4609
4452
  }
4610
- )
4611
- ]
4612
- }
4613
- ) }),
4453
+ },
4454
+ children: /* @__PURE__ */ jsx6(Typography4, { variant: "caption", sx: { fontWeight: 600, display: "block" }, children: formData.images && formData.images.length > 0 ? "\u{1F4CE} Image will be copied to clipboard - paste in email!" : "\u{1F4CE} Files ready for email attachment" })
4455
+ }
4456
+ )
4457
+ ] }) }),
4614
4458
  formData.images && formData.images.length > 0 && /* @__PURE__ */ jsxs5(Box6, { sx: { mt: 2 }, children: [
4615
4459
  /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.5 }, children: [
4616
4460
  /* @__PURE__ */ jsx6(PhotoCameraIcon, { size: 16 }),
@@ -8943,10 +8787,6 @@ export {
8943
8787
  ComposeIcon,
8944
8788
  CloudDoneIcon,
8945
8789
  CloudOffIcon,
8946
- ErrorOutlineIcon,
8947
- HomeIcon,
8948
- NotesIcon,
8949
- NotesIconOutlined,
8950
8790
  RecordVoiceOverIcon,
8951
8791
  SettingsIcon,
8952
8792
  SyncIcon,
@@ -9051,4 +8891,4 @@ export {
9051
8891
  FeedbackButton,
9052
8892
  useNotificationService
9053
8893
  };
9054
- //# sourceMappingURL=chunk-LR55TJK5.mjs.map
8894
+ //# sourceMappingURL=chunk-JJTUEC2E.mjs.map