@burtson-labs/bandit-engine 2.0.122 → 2.0.123

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,11 +1,11 @@
1
1
  import {
2
2
  management_default
3
- } from "../chunk-AYFWADUJ.mjs";
4
- import "../chunk-CY6WSCRS.mjs";
3
+ } from "../chunk-RLMGTTK7.mjs";
4
+ import "../chunk-WSNV6EX5.mjs";
5
5
  import "../chunk-F7JXIW6T.mjs";
6
6
  import "../chunk-K2JGFKEB.mjs";
7
- import "../chunk-W2Q2AF45.mjs";
8
- import "../chunk-LR55TJK5.mjs";
7
+ import "../chunk-4RRQQPFZ.mjs";
8
+ import "../chunk-JJTUEC2E.mjs";
9
9
  import "../chunk-6ONL4SRK.mjs";
10
10
  import "../chunk-EORIRPPX.mjs";
11
11
  import "../chunk-43MLINPL.mjs";
@@ -16923,7 +16923,7 @@ var FeedbackModal = ({
16923
16923
  sx: {
16924
16924
  display: "grid",
16925
16925
  gridTemplateRows: "auto auto auto auto",
16926
- rowGap: "24px",
16926
+ rowGap: "16px",
16927
16927
  columnGap: "0px",
16928
16928
  width: "100%"
16929
16929
  },
@@ -16939,35 +16939,6 @@ var FeedbackModal = ({
16939
16939
  mb: 0
16940
16940
  },
16941
16941
  children: [
16942
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
16943
- import_material13.Box,
16944
- {
16945
- sx: {
16946
- gridColumn: "1 / -1",
16947
- display: "flex",
16948
- alignItems: "center",
16949
- gap: "8px",
16950
- mb: 0,
16951
- mt: 2,
16952
- alignSelf: "end"
16953
- },
16954
- children: [
16955
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.MessageSquare, { size: 20, color: theme.palette.text.primary }),
16956
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
16957
- import_material13.Typography,
16958
- {
16959
- variant: "h6",
16960
- sx: {
16961
- fontWeight: 600,
16962
- color: theme.palette.text.primary,
16963
- mb: 0
16964
- },
16965
- children: "Feedback Details"
16966
- }
16967
- )
16968
- ]
16969
- }
16970
- ),
16971
16942
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
16972
16943
  import_material13.TextField,
16973
16944
  {
@@ -17109,7 +17080,7 @@ var FeedbackModal = ({
17109
17080
  {
17110
17081
  fullWidth: true,
17111
17082
  multiline: true,
17112
- rows: 5,
17083
+ rows: 3,
17113
17084
  label: "Description",
17114
17085
  value: formData.description,
17115
17086
  onChange: handleInputChange("description"),
@@ -17160,118 +17131,37 @@ var FeedbackModal = ({
17160
17131
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
17161
17132
  import_material13.Box,
17162
17133
  {
17163
- className: "impact-assessment-card impact-section",
17164
- sx: {
17165
- flex: 1,
17166
- minWidth: 300,
17167
- display: "flex",
17168
- flexDirection: "column",
17169
- height: "100%",
17170
- p: 0
17171
- },
17134
+ className: "impact-section",
17135
+ sx: { flex: 1, minWidth: 260, display: "flex", flexDirection: "column" },
17172
17136
  children: [
17173
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
17174
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Brain, { size: 20, color: theme.palette.warning.main }),
17175
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Impact Assessment" })
17137
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Typography, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
17138
+ "How annoying is this?",
17139
+ " ",
17140
+ ["\u{1F60A}", "\u{1F610}", "\u{1F644}", "\u{1F620}", "\u{1F92C}"][(formData.annoyanceLevel ?? 3) - 1],
17141
+ " ",
17142
+ "(",
17143
+ formData.annoyanceLevel ?? 3,
17144
+ "/5)"
17176
17145
  ] }),
17177
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17178
- import_material13.Paper,
17146
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Box, { sx: { px: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17147
+ import_material13.Slider,
17179
17148
  {
17180
- variant: "outlined",
17149
+ size: "small",
17150
+ value: formData.annoyanceLevel,
17151
+ onChange: (_, value) => setFormData((prev) => ({ ...prev, annoyanceLevel: value })),
17152
+ min: 1,
17153
+ max: 5,
17154
+ step: 1,
17155
+ marks: true,
17181
17156
  sx: {
17182
- p: 4,
17183
- borderRadius: 3,
17184
- minHeight: 180,
17185
- 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%)",
17186
- border: `1px solid ${theme.palette.divider}`,
17187
- transition: "all 0.2s ease",
17188
- display: "flex",
17189
- flexDirection: "column",
17190
- flex: 1,
17191
- justifyContent: "center",
17192
- height: "100%",
17193
- "&:hover": {
17194
- transform: "translateY(-2px)",
17195
- boxShadow: theme.palette.mode === "dark" ? "0 8px 24px rgba(0,0,0,0.4)" : "0 8px 24px rgba(0,0,0,0.12)"
17157
+ "& .MuiSlider-track": {
17158
+ background: `linear-gradient(90deg, ${theme.palette.success.main}, ${theme.palette.warning.main}, ${theme.palette.error.main})`,
17159
+ border: "none"
17160
+ },
17161
+ "& .MuiSlider-thumb": {
17162
+ background: `linear-gradient(135deg, ${theme.palette.warning.main}, ${theme.palette.warning.dark})`
17196
17163
  }
17197
- },
17198
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Stack, { spacing: 3, children: [
17199
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Typography, { variant: "subtitle1", sx: { fontWeight: 600, display: "flex", alignItems: "center", gap: 2 }, children: [
17200
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17201
- import_material13.Box,
17202
- {
17203
- sx: {
17204
- width: 28,
17205
- height: 28,
17206
- borderRadius: "50%",
17207
- bgcolor: theme.palette.warning.main + "20",
17208
- display: "flex",
17209
- alignItems: "center",
17210
- justifyContent: "center",
17211
- fontSize: "14px"
17212
- },
17213
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Brain, { size: 22, color: theme.palette.warning.main })
17214
- }
17215
- ),
17216
- "How annoying is this issue? (",
17217
- formData.annoyanceLevel,
17218
- "/5)"
17219
- ] }),
17220
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Box, { sx: { px: 2, py: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17221
- import_material13.Slider,
17222
- {
17223
- value: formData.annoyanceLevel,
17224
- onChange: (_, value) => setFormData((prev) => ({ ...prev, annoyanceLevel: value })),
17225
- min: 1,
17226
- max: 5,
17227
- step: 1,
17228
- marks: [
17229
- { value: 1, label: "\u{1F60A} Not at all" },
17230
- { value: 2, label: "\u{1F610} Slightly" },
17231
- { value: 3, label: "\u{1F644} Moderately" },
17232
- { value: 4, label: "\u{1F620} Very" },
17233
- { value: 5, label: "\u{1F92C} Extremely" }
17234
- ],
17235
- sx: {
17236
- height: 8,
17237
- "& .MuiSlider-mark": {
17238
- backgroundColor: theme.palette.divider,
17239
- width: 3,
17240
- height: 3
17241
- },
17242
- "& .MuiSlider-markLabel": {
17243
- fontSize: "0.8rem",
17244
- color: theme.palette.text.secondary,
17245
- transform: "translateX(-50%)",
17246
- whiteSpace: "nowrap",
17247
- top: 32,
17248
- fontWeight: 500
17249
- },
17250
- "& .MuiSlider-thumb": {
17251
- width: 24,
17252
- height: 24,
17253
- background: `linear-gradient(135deg, ${theme.palette.warning.main}, ${theme.palette.warning.dark})`,
17254
- boxShadow: `0 4px 12px ${theme.palette.warning.main}40`,
17255
- "&:hover, &.Mui-focusVisible": {
17256
- boxShadow: `0 0 0 12px ${theme.palette.warning.main}20, 0 4px 12px ${theme.palette.warning.main}40`
17257
- }
17258
- },
17259
- "& .MuiSlider-track": {
17260
- background: `linear-gradient(90deg, ${theme.palette.success.main}, ${theme.palette.warning.main}, ${theme.palette.error.main})`,
17261
- height: 6,
17262
- border: "none"
17263
- },
17264
- "& .MuiSlider-rail": {
17265
- height: 6,
17266
- backgroundColor: theme.palette.divider,
17267
- opacity: 0.3
17268
- },
17269
- mb: 5
17270
- // Space for labels
17271
- }
17272
- }
17273
- ) })
17274
- ] })
17164
+ }
17275
17165
  }
17276
17166
  ) })
17277
17167
  ]
@@ -17290,109 +17180,63 @@ var FeedbackModal = ({
17290
17180
  p: 0
17291
17181
  },
17292
17182
  children: [
17293
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
17294
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Paperclip, { size: 20, color: theme.palette.primary.main }),
17295
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Attachments" })
17296
- ] }),
17297
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
17298
- import_material13.Box,
17299
- {
17300
- sx: {
17301
- height: "100%",
17302
- display: "flex",
17303
- flexDirection: "column",
17304
- justifyContent: "center",
17305
- p: 0,
17306
- mb: 0,
17307
- backgroundColor: "transparent",
17308
- boxShadow: "none",
17309
- border: "none"
17310
- },
17311
- onClick: () => fileInputRef.current?.click(),
17312
- children: [
17313
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17314
- "input",
17315
- {
17316
- ref: fileInputRef,
17317
- type: "file",
17318
- accept: "image/*",
17319
- style: { display: "none" },
17320
- onChange: handleFileUpload
17321
- }
17322
- ),
17323
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
17324
- import_material13.Box,
17325
- {
17326
- sx: {
17327
- flex: 1,
17328
- display: "flex",
17329
- flexDirection: "column",
17330
- justifyContent: "center",
17331
- alignItems: "center",
17332
- p: 2,
17333
- border: "2px dashed",
17334
- borderColor: (theme2) => theme2.palette.divider,
17335
- borderRadius: 2,
17336
- height: "100%",
17337
- mb: 0,
17338
- backgroundColor: "transparent",
17339
- boxShadow: "none"
17340
- },
17341
- children: [
17342
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17343
- import_material13.Avatar,
17344
- {
17345
- sx: {
17346
- width: 56,
17347
- height: 56,
17348
- bgcolor: theme.palette.primary.main + "15",
17349
- color: theme.palette.primary.main,
17350
- boxShadow: `0 4px 16px ${theme.palette.primary.main}20`,
17351
- transition: "all 0.3s ease"
17352
- },
17353
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Paperclip, { size: 28 })
17354
- }
17355
- ),
17356
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { sx: { textAlign: "center" }, children: [
17357
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "h6", sx: { fontWeight: 600, mb: 1, fontSize: "1.1rem" }, children: "Attach One Image" }),
17358
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "body2", color: "text.secondary", sx: { mb: 1, fontSize: "0.95rem" }, children: "Click here to upload a single image" }),
17359
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "caption", color: "text.secondary", sx: {
17360
- opacity: 0.8,
17361
- fontSize: "0.85rem",
17362
- background: theme.palette.mode === "dark" ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)",
17363
- px: 2,
17364
- py: 0.5,
17365
- borderRadius: 1
17366
- }, children: "Support: Images only (JPG, PNG, GIF) - Max 10MB" })
17367
- ] })
17368
- ]
17369
- }
17370
- ),
17371
- (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17372
- import_material13.Alert,
17373
- {
17374
- severity: "info",
17375
- sx: {
17376
- mt: "auto",
17377
- textAlign: "left",
17378
- fontSize: "0.75rem",
17379
- py: 0.5,
17380
- 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%)",
17381
- border: `1px solid ${theme.palette.info.main}30`,
17382
- "& .MuiAlert-icon": {
17383
- color: theme.palette.info.main,
17384
- fontSize: "0.875rem"
17385
- },
17386
- "& .MuiAlert-message": {
17387
- fontSize: "0.75rem"
17388
- }
17389
- },
17390
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { 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" })
17183
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { onClick: () => fileInputRef.current?.click(), children: [
17184
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17185
+ "input",
17186
+ {
17187
+ ref: fileInputRef,
17188
+ type: "file",
17189
+ accept: "image/*",
17190
+ style: { display: "none" },
17191
+ onChange: handleFileUpload
17192
+ }
17193
+ ),
17194
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
17195
+ import_material13.Box,
17196
+ {
17197
+ sx: {
17198
+ display: "flex",
17199
+ alignItems: "center",
17200
+ gap: 1,
17201
+ px: 1.5,
17202
+ py: 1,
17203
+ border: "1px dashed",
17204
+ borderColor: (theme2) => theme2.palette.divider,
17205
+ borderRadius: 2,
17206
+ cursor: "pointer",
17207
+ color: theme.palette.text.secondary,
17208
+ "&:hover": { borderColor: theme.palette.primary.main, color: theme.palette.primary.main }
17209
+ },
17210
+ children: [
17211
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Paperclip, { size: 18 }),
17212
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "body2", sx: { fontWeight: 500 }, children: "Attach an image" }),
17213
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "caption", color: "text.secondary", sx: { ml: "auto" }, children: "JPG/PNG/GIF \xB7 10MB" })
17214
+ ]
17215
+ }
17216
+ ),
17217
+ (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
17218
+ import_material13.Alert,
17219
+ {
17220
+ severity: "info",
17221
+ sx: {
17222
+ mt: "auto",
17223
+ textAlign: "left",
17224
+ fontSize: "0.75rem",
17225
+ py: 0.5,
17226
+ 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%)",
17227
+ border: `1px solid ${theme.palette.info.main}30`,
17228
+ "& .MuiAlert-icon": {
17229
+ color: theme.palette.info.main,
17230
+ fontSize: "0.875rem"
17231
+ },
17232
+ "& .MuiAlert-message": {
17233
+ fontSize: "0.75rem"
17391
17234
  }
17392
- )
17393
- ]
17394
- }
17395
- ) }),
17235
+ },
17236
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { 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" })
17237
+ }
17238
+ )
17239
+ ] }) }),
17396
17240
  formData.images && formData.images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { sx: { mt: 2 }, children: [
17397
17241
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Box, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.5 }, children: [
17398
17242
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.Camera, { size: 16 }),