@mieweb/ui 0.6.1-dev.154 → 0.6.1-dev.156

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.
Files changed (30) hide show
  1. package/dist/{chunk-MLJVQYQJ.cjs → chunk-IWDQPSJN.cjs} +18 -2
  2. package/dist/chunk-IWDQPSJN.cjs.map +1 -0
  3. package/dist/{chunk-AWC2U423.js → chunk-NQME7MCK.js} +18 -2
  4. package/dist/chunk-NQME7MCK.js.map +1 -0
  5. package/dist/components/SuperChat/index.cjs +6 -6
  6. package/dist/components/SuperChat/index.d.cts +4 -4
  7. package/dist/components/SuperChat/index.d.ts +4 -4
  8. package/dist/components/SuperChat/index.js +1 -1
  9. package/dist/components/SuperChat/plugins/index.cjs +1 -1
  10. package/dist/components/SuperChat/plugins/index.d.cts +3 -3
  11. package/dist/components/SuperChat/plugins/index.d.ts +3 -3
  12. package/dist/components/SuperChat/plugins/index.js +1 -1
  13. package/dist/index.cjs +24 -24
  14. package/dist/index.d.cts +2 -2
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +2 -2
  17. package/dist/{nitroTableGrid-FWRCDE4N.js → nitroTableGrid-GKJAX3J4.js} +3 -3
  18. package/dist/nitroTableGrid-GKJAX3J4.js.map +1 -0
  19. package/dist/{nitroTableGrid-IY75TQJ2.cjs → nitroTableGrid-J7F6D2QA.cjs} +3 -3
  20. package/dist/nitroTableGrid-J7F6D2QA.cjs.map +1 -0
  21. package/dist/styles.css +1 -1
  22. package/dist/{types-CilxZlMa.d.cts → types-BYnLjEFg.d.cts} +5 -3
  23. package/dist/{types-CilxZlMa.d.ts → types-BYnLjEFg.d.ts} +5 -3
  24. package/dist/{types-B4JM0zjF.d.cts → types-CBh8Zlje.d.cts} +1 -1
  25. package/dist/{types-DR3WsOPL.d.ts → types-CyCwYBlr.d.ts} +1 -1
  26. package/package.json +3 -16
  27. package/dist/chunk-AWC2U423.js.map +0 -1
  28. package/dist/chunk-MLJVQYQJ.cjs.map +0 -1
  29. package/dist/nitroTableGrid-FWRCDE4N.js.map +0 -1
  30. package/dist/nitroTableGrid-IY75TQJ2.cjs.map +0 -1
@@ -578,7 +578,7 @@ function createImagePlugin() {
578
578
  }
579
579
  };
580
580
  }
581
- var NitroTableGrid = React2__namespace.lazy(() => import('../../../nitroTableGrid-IY75TQJ2.cjs'));
581
+ var NitroTableGrid = React2__namespace.lazy(() => import('../../../nitroTableGrid-J7F6D2QA.cjs'));
582
582
  function textOf3(node) {
583
583
  if (node.type === "text") return node.value ?? "";
584
584
  return (node.children ?? []).map(textOf3).join("");
@@ -1,7 +1,7 @@
1
- import { a as SuperChatRenderPlugin, e as GenUIRegistry } from '../../../types-B4JM0zjF.cjs';
2
- export { f as GenUIWidgetEntry, g as GenUIWidgetProps } from '../../../types-B4JM0zjF.cjs';
1
+ import { a as SuperChatRenderPlugin, e as GenUIRegistry } from '../../../types-CBh8Zlje.cjs';
2
+ export { f as GenUIWidgetEntry, g as GenUIWidgetProps } from '../../../types-CBh8Zlje.cjs';
3
3
  import 'react';
4
- import '../../../types-CilxZlMa.cjs';
4
+ import '../../../types-BYnLjEFg.cjs';
5
5
 
6
6
  /**
7
7
  * SuperChat code plugin (opt-in).
@@ -1,7 +1,7 @@
1
- import { a as SuperChatRenderPlugin, e as GenUIRegistry } from '../../../types-DR3WsOPL.js';
2
- export { f as GenUIWidgetEntry, g as GenUIWidgetProps } from '../../../types-DR3WsOPL.js';
1
+ import { a as SuperChatRenderPlugin, e as GenUIRegistry } from '../../../types-CyCwYBlr.js';
2
+ export { f as GenUIWidgetEntry, g as GenUIWidgetProps } from '../../../types-CyCwYBlr.js';
3
3
  import 'react';
4
- import '../../../types-CilxZlMa.js';
4
+ import '../../../types-BYnLjEFg.js';
5
5
 
6
6
  /**
7
7
  * SuperChat code plugin (opt-in).
@@ -551,7 +551,7 @@ function createImagePlugin() {
551
551
  }
552
552
  };
553
553
  }
554
- var NitroTableGrid = React2.lazy(() => import('../../../nitroTableGrid-FWRCDE4N.js'));
554
+ var NitroTableGrid = React2.lazy(() => import('../../../nitroTableGrid-GKJAX3J4.js'));
555
555
  function textOf3(node) {
556
556
  if (node.type === "text") return node.value ?? "";
557
557
  return (node.children ?? []).map(textOf3).join("");
package/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ var chunkJ644FU54_cjs = require('./chunk-J644FU54.cjs');
19
19
  var chunk3GGET5LK_cjs = require('./chunk-3GGET5LK.cjs');
20
20
  var chunkGOKC4CCZ_cjs = require('./chunk-GOKC4CCZ.cjs');
21
21
  var chunkDEZ7XSTG_cjs = require('./chunk-DEZ7XSTG.cjs');
22
- var chunkMLJVQYQJ_cjs = require('./chunk-MLJVQYQJ.cjs');
22
+ var chunkIWDQPSJN_cjs = require('./chunk-IWDQPSJN.cjs');
23
23
  var chunkFADQVM4M_cjs = require('./chunk-FADQVM4M.cjs');
24
24
  var chunk2T4JU5RH_cjs = require('./chunk-2T4JU5RH.cjs');
25
25
  var chunkNVHAQOHH_cjs = require('./chunk-NVHAQOHH.cjs');
@@ -1373,7 +1373,7 @@ function AIEmptyState({
1373
1373
  {
1374
1374
  "data-slot": "ai-empty-state-icon",
1375
1375
  className: "bg-primary-800 dark:bg-primary-800 flex h-16 w-16 items-center justify-center rounded-full text-white",
1376
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.SparklesIcon, { size: "lg", className: "h-8 w-8" })
1376
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.SparklesIcon, { size: "lg", className: "h-8 w-8" })
1377
1377
  }
1378
1378
  );
1379
1379
  const suggestionsAction = suggestions && suggestions.length > 0 && onSuggestionSelect ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
@@ -1484,7 +1484,7 @@ function AIChat({
1484
1484
  {
1485
1485
  "data-slot": "ai-chat-header-icon",
1486
1486
  className: "bg-primary-800 dark:bg-primary-800 flex h-8 w-8 items-center justify-center rounded-full text-white",
1487
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.SparklesIcon, { size: "sm" })
1487
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.SparklesIcon, { size: "sm" })
1488
1488
  }
1489
1489
  ),
1490
1490
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -1514,7 +1514,7 @@ function AIChat({
1514
1514
  className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
1515
1515
  title: "Clear chat",
1516
1516
  "aria-label": "Clear chat",
1517
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.RefreshIcon, {})
1517
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.RefreshIcon, {})
1518
1518
  }
1519
1519
  ),
1520
1520
  onClose && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1525,7 +1525,7 @@ function AIChat({
1525
1525
  className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
1526
1526
  title: "Close chat",
1527
1527
  "aria-label": "Close chat",
1528
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.CloseIcon, {})
1528
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.CloseIcon, {})
1529
1529
  }
1530
1530
  )
1531
1531
  ] })
@@ -1545,7 +1545,7 @@ function AIChat({
1545
1545
  }
1546
1546
  ) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
1547
1547
  messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
1548
- chunkMLJVQYQJ_cjs.AIMessageDisplay,
1548
+ chunkIWDQPSJN_cjs.AIMessageDisplay,
1549
1549
  {
1550
1550
  message,
1551
1551
  userName,
@@ -1646,7 +1646,7 @@ function AIChatTrigger({
1646
1646
  children: badge > 9 ? "9+" : badge
1647
1647
  }
1648
1648
  ),
1649
- /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.SparklesIcon, { size: "lg" })
1649
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.SparklesIcon, { size: "lg" })
1650
1650
  ]
1651
1651
  }
1652
1652
  );
@@ -1963,7 +1963,7 @@ function ReconciliationProposalRow({
1963
1963
  children: [
1964
1964
  /* @__PURE__ */ jsxRuntime.jsxs("dt", { className: "text-muted-foreground flex items-center gap-1 text-[11px] tracking-wide uppercase", children: [
1965
1965
  /* @__PURE__ */ jsxRuntime.jsx(
1966
- chunkMLJVQYQJ_cjs.SparklesIcon,
1966
+ chunkIWDQPSJN_cjs.SparklesIcon,
1967
1967
  {
1968
1968
  size: "sm",
1969
1969
  className: "text-primary-700 dark:text-primary-400"
@@ -2019,7 +2019,7 @@ function SourcePill({ source }) {
2019
2019
  "text-muted-foreground"
2020
2020
  ),
2021
2021
  children: [
2022
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkMLJVQYQJ_cjs.SparklesIcon, { size: "sm" }) }),
2022
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkIWDQPSJN_cjs.SparklesIcon, { size: "sm" }) }),
2023
2023
  source.thumbnailUrl && /* @__PURE__ */ jsxRuntime.jsx(
2024
2024
  "img",
2025
2025
  {
@@ -36025,63 +36025,63 @@ Object.defineProperty(exports, "spinnerVariants", {
36025
36025
  });
36026
36026
  Object.defineProperty(exports, "AILogoIcon", {
36027
36027
  enumerable: true,
36028
- get: function () { return chunkMLJVQYQJ_cjs.AILogoIcon; }
36028
+ get: function () { return chunkIWDQPSJN_cjs.AILogoIcon; }
36029
36029
  });
36030
36030
  Object.defineProperty(exports, "AIMessageDisplay", {
36031
36031
  enumerable: true,
36032
- get: function () { return chunkMLJVQYQJ_cjs.AIMessageDisplay; }
36032
+ get: function () { return chunkIWDQPSJN_cjs.AIMessageDisplay; }
36033
36033
  });
36034
36034
  Object.defineProperty(exports, "AITypingIndicator", {
36035
36035
  enumerable: true,
36036
- get: function () { return chunkMLJVQYQJ_cjs.AITypingIndicator; }
36036
+ get: function () { return chunkIWDQPSJN_cjs.AITypingIndicator; }
36037
36037
  });
36038
36038
  Object.defineProperty(exports, "ChatBubble", {
36039
36039
  enumerable: true,
36040
- get: function () { return chunkMLJVQYQJ_cjs.ChatBubble; }
36040
+ get: function () { return chunkIWDQPSJN_cjs.ChatBubble; }
36041
36041
  });
36042
36042
  Object.defineProperty(exports, "ChevronIcon", {
36043
36043
  enumerable: true,
36044
- get: function () { return chunkMLJVQYQJ_cjs.ChevronIcon; }
36044
+ get: function () { return chunkIWDQPSJN_cjs.ChevronIcon; }
36045
36045
  });
36046
36046
  Object.defineProperty(exports, "CloseIcon", {
36047
36047
  enumerable: true,
36048
- get: function () { return chunkMLJVQYQJ_cjs.CloseIcon; }
36048
+ get: function () { return chunkIWDQPSJN_cjs.CloseIcon; }
36049
36049
  });
36050
36050
  Object.defineProperty(exports, "MCPToolCallDisplay", {
36051
36051
  enumerable: true,
36052
- get: function () { return chunkMLJVQYQJ_cjs.MCPToolCallDisplay; }
36052
+ get: function () { return chunkIWDQPSJN_cjs.MCPToolCallDisplay; }
36053
36053
  });
36054
36054
  Object.defineProperty(exports, "MessageAvatar", {
36055
36055
  enumerable: true,
36056
- get: function () { return chunkMLJVQYQJ_cjs.MessageAvatar; }
36056
+ get: function () { return chunkIWDQPSJN_cjs.MessageAvatar; }
36057
36057
  });
36058
36058
  Object.defineProperty(exports, "RefreshIcon", {
36059
36059
  enumerable: true,
36060
- get: function () { return chunkMLJVQYQJ_cjs.RefreshIcon; }
36060
+ get: function () { return chunkIWDQPSJN_cjs.RefreshIcon; }
36061
36061
  });
36062
36062
  Object.defineProperty(exports, "ResourceLink", {
36063
36063
  enumerable: true,
36064
- get: function () { return chunkMLJVQYQJ_cjs.ResourceLink; }
36064
+ get: function () { return chunkIWDQPSJN_cjs.ResourceLink; }
36065
36065
  });
36066
36066
  Object.defineProperty(exports, "SendIcon", {
36067
36067
  enumerable: true,
36068
- get: function () { return chunkMLJVQYQJ_cjs.SendIcon; }
36068
+ get: function () { return chunkIWDQPSJN_cjs.SendIcon; }
36069
36069
  });
36070
36070
  Object.defineProperty(exports, "SparklesIcon", {
36071
36071
  enumerable: true,
36072
- get: function () { return chunkMLJVQYQJ_cjs.SparklesIcon; }
36072
+ get: function () { return chunkIWDQPSJN_cjs.SparklesIcon; }
36073
36073
  });
36074
36074
  Object.defineProperty(exports, "SpinnerIcon", {
36075
36075
  enumerable: true,
36076
- get: function () { return chunkMLJVQYQJ_cjs.SpinnerIcon; }
36076
+ get: function () { return chunkIWDQPSJN_cjs.SpinnerIcon; }
36077
36077
  });
36078
36078
  Object.defineProperty(exports, "ToolStatusIcon", {
36079
36079
  enumerable: true,
36080
- get: function () { return chunkMLJVQYQJ_cjs.ToolStatusIcon; }
36080
+ get: function () { return chunkIWDQPSJN_cjs.ToolStatusIcon; }
36081
36081
  });
36082
36082
  Object.defineProperty(exports, "getToolIcon", {
36083
36083
  enumerable: true,
36084
- get: function () { return chunkMLJVQYQJ_cjs.getToolIcon; }
36084
+ get: function () { return chunkIWDQPSJN_cjs.getToolIcon; }
36085
36085
  });
36086
36086
  Object.defineProperty(exports, "AttachmentPreview", {
36087
36087
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -3,8 +3,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
5
5
  import { VariantProps } from 'class-variance-authority';
6
- import { d as MCPToolCall, M as MCPResourceLink, e as MCPToolStatus, f as AIMessage, b as AIRenderTextContent, g as AIChatCallbacks, h as AIChatSession, i as AISuggestedAction } from './types-CilxZlMa.cjs';
7
- export { A as AIMessageContent, j as AIMessageRole, a as AIMessageStatus, c as AITextRenderContext, k as MCPResource, l as MCPToolInfo, m as MCPToolParameter, n as MCPToolResult } from './types-CilxZlMa.cjs';
6
+ import { d as MCPToolCall, M as MCPResourceLink, e as MCPToolStatus, f as AIMessage, b as AIRenderTextContent, g as AIChatCallbacks, h as AIChatSession, i as AISuggestedAction } from './types-BYnLjEFg.cjs';
7
+ export { A as AIMessageContent, j as AIMessageRole, a as AIMessageStatus, c as AITextRenderContext, k as MCPResource, l as MCPToolInfo, m as MCPToolParameter, n as MCPToolResult } from './types-BYnLjEFg.cjs';
8
8
  export { Alert, AlertDescription, AlertProps, AlertTitle, alertVariants } from './components/Alert/index.cjs';
9
9
  export { AlertDialog, AlertDialogProps } from './components/AlertDialog/index.cjs';
10
10
  export { AudioPlayer, AudioPlayerProps, AudioPlayerRef, AudioPlayerState, ProgressBar, audioPlayerVariants, formatAudioTime, playButtonVariants } from './components/AudioPlayer/index.cjs';
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode } from 'react';
5
5
  import { VariantProps } from 'class-variance-authority';
6
- import { d as MCPToolCall, M as MCPResourceLink, e as MCPToolStatus, f as AIMessage, b as AIRenderTextContent, g as AIChatCallbacks, h as AIChatSession, i as AISuggestedAction } from './types-CilxZlMa.js';
7
- export { A as AIMessageContent, j as AIMessageRole, a as AIMessageStatus, c as AITextRenderContext, k as MCPResource, l as MCPToolInfo, m as MCPToolParameter, n as MCPToolResult } from './types-CilxZlMa.js';
6
+ import { d as MCPToolCall, M as MCPResourceLink, e as MCPToolStatus, f as AIMessage, b as AIRenderTextContent, g as AIChatCallbacks, h as AIChatSession, i as AISuggestedAction } from './types-BYnLjEFg.js';
7
+ export { A as AIMessageContent, j as AIMessageRole, a as AIMessageStatus, c as AITextRenderContext, k as MCPResource, l as MCPToolInfo, m as MCPToolParameter, n as MCPToolResult } from './types-BYnLjEFg.js';
8
8
  export { Alert, AlertDescription, AlertProps, AlertTitle, alertVariants } from './components/Alert/index.js';
9
9
  export { AlertDialog, AlertDialogProps } from './components/AlertDialog/index.js';
10
10
  export { AudioPlayer, AudioPlayerProps, AudioPlayerRef, AudioPlayerState, ProgressBar, audioPlayerVariants, formatAudioTime, playButtonVariants } from './components/AudioPlayer/index.js';
package/dist/index.js CHANGED
@@ -22,8 +22,8 @@ export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants }
22
22
  export { Slider, sliderRangeVariants, sliderThumbVariants, sliderTrackVariants } from './chunk-JBB25LFB.js';
23
23
  import { Spinner, SpinnerWithLabel } from './chunk-VCO2IZOG.js';
24
24
  export { FullPageSpinner, Spinner, SpinnerWithLabel, spinnerVariants } from './chunk-VCO2IZOG.js';
25
- import { SparklesIcon, RefreshIcon, CloseIcon, AIMessageDisplay } from './chunk-AWC2U423.js';
26
- export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, MCPToolCallDisplay, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, getToolIcon } from './chunk-AWC2U423.js';
25
+ import { SparklesIcon, RefreshIcon, CloseIcon, AIMessageDisplay } from './chunk-NQME7MCK.js';
26
+ export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, MCPToolCallDisplay, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, getToolIcon } from './chunk-NQME7MCK.js';
27
27
  import { EmptyState } from './chunk-ASLZUFH4.js';
28
28
  export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingIndicator } from './chunk-ASLZUFH4.js';
29
29
  import { MessageComposer } from './chunk-UHPQYBXQ.js';
@@ -14,9 +14,9 @@ function NitroTableGrid({ headers, rows }) {
14
14
  return URL.createObjectURL(blob);
15
15
  }, [headers, rows]);
16
16
  React.useEffect(() => () => URL.revokeObjectURL(url), [url]);
17
- return /* @__PURE__ */ jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsx(DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsx(DataVisNitroGrid, { columns: headers, style: { height: 320 } }) }) });
17
+ return /* @__PURE__ */ jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsx(DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsx(DataVisNitroGrid, { columns: headers, minimalMode: true, className: "max-h-80" }) }) });
18
18
  }
19
19
 
20
20
  export { NitroTableGrid as default };
21
- //# sourceMappingURL=nitroTableGrid-FWRCDE4N.js.map
22
- //# sourceMappingURL=nitroTableGrid-FWRCDE4N.js.map
21
+ //# sourceMappingURL=nitroTableGrid-GKJAX3J4.js.map
22
+ //# sourceMappingURL=nitroTableGrid-GKJAX3J4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SuperChat/plugins/nitroTableGrid.tsx"],"names":[],"mappings":";;;;AAqBe,SAAR,cAAA,CAAgC,EAAE,OAAA,EAAS,IAAA,EAAK,EAAwB;AAC7E,EAAA,MAAM,GAAA,GAAY,cAAQ,MAAM;AAC9B,IAAA,MAAM,OAAA,GAAU;AAAA,MACd,QAAA,EAAU,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,KAAA,EAAO,IAAA,EAAM,QAAA,EAAS,CAAE,CAAA;AAAA,MAC5D,IAAA,EAAM;AAAA,KACR;AACA,IAAA,MAAM,IAAA,GAAO,IAAI,IAAA,CAAK,CAAC,KAAK,SAAA,CAAU,OAAO,CAAC,CAAA,EAAG;AAAA,MAC/C,IAAA,EAAM;AAAA,KACP,CAAA;AACD,IAAA,OAAO,GAAA,CAAI,gBAAgB,IAAI,CAAA;AAAA,EACjC,CAAA,EAAG,CAAC,OAAA,EAAS,IAAI,CAAC,CAAA;AAElB,EAAM,KAAA,CAAA,SAAA,CAAU,MAAM,MAAM,GAAA,CAAI,gBAAgB,GAAG,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA;AAE3D,EAAA,uBACE,GAAA,CAAC,SAAI,WAAA,EAAU,uBAAA,EAAwB,WAAU,MAAA,EAC/C,QAAA,kBAAA,GAAA,CAAC,sBAAmB,IAAA,EAAK,MAAA,EAAO,KAC9B,QAAA,kBAAA,GAAA,CAAC,gBAAA,EAAA,EAAiB,SAAS,OAAA,EAAS,WAAA,EAAW,MAAC,SAAA,EAAU,UAAA,EAAW,GACvE,CAAA,EACF,CAAA;AAEJ","file":"nitroTableGrid-GKJAX3J4.js","sourcesContent":["/**\n * SuperChat NITRO table grid (lazy chunk).\n *\n * Default-exported so it can be pulled in with `React.lazy` only when a GFM\n * table actually renders — this keeps the heavy `datavis` / `datavis-ace`\n * dependencies out of the SuperChat (and Markdown core) bundle.\n *\n * Data is handed to {@link DataVisNitroSource} through a short-lived object-URL\n * `http` source carrying the `{ typeInfo, data }` shape the engine expects.\n */\n\nimport * as React from 'react';\nimport { DataVisNitroGrid, DataVisNitroSource } from '../../DataVisNITRO';\n\nexport interface NitroTableGridProps {\n /** Column headers, in order. */\n headers: string[];\n /** Row objects keyed by header. */\n rows: Array<Record<string, string>>;\n}\n\nexport default function NitroTableGrid({ headers, rows }: NitroTableGridProps) {\n const url = React.useMemo(() => {\n const payload = {\n typeInfo: headers.map((field) => ({ field, type: 'string' })),\n data: rows,\n };\n const blob = new Blob([JSON.stringify(payload)], {\n type: 'application/json',\n });\n return URL.createObjectURL(blob);\n }, [headers, rows]);\n\n React.useEffect(() => () => URL.revokeObjectURL(url), [url]);\n\n return (\n <div data-slot=\"superchat-nitro-table\" className=\"my-2\">\n <DataVisNitroSource type=\"http\" url={url}>\n <DataVisNitroGrid columns={headers} minimalMode className=\"max-h-80\" />\n </DataVisNitroSource>\n </div>\n );\n}\n"]}
@@ -36,9 +36,9 @@ function NitroTableGrid({ headers, rows }) {
36
36
  return URL.createObjectURL(blob);
37
37
  }, [headers, rows]);
38
38
  React__namespace.useEffect(() => () => URL.revokeObjectURL(url), [url]);
39
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroGrid, { columns: headers, style: { height: 320 } }) }) });
39
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "superchat-nitro-table", className: "my-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroSource, { type: "http", url, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLZPPH5BW_cjs.DataVisNitroGrid, { columns: headers, minimalMode: true, className: "max-h-80" }) }) });
40
40
  }
41
41
 
42
42
  module.exports = NitroTableGrid;
43
- //# sourceMappingURL=nitroTableGrid-IY75TQJ2.cjs.map
44
- //# sourceMappingURL=nitroTableGrid-IY75TQJ2.cjs.map
43
+ //# sourceMappingURL=nitroTableGrid-J7F6D2QA.cjs.map
44
+ //# sourceMappingURL=nitroTableGrid-J7F6D2QA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SuperChat/plugins/nitroTableGrid.tsx"],"names":["React","jsx","DataVisNitroSource","DataVisNitroGrid"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBe,SAAR,cAAA,CAAgC,EAAE,OAAA,EAAS,IAAA,EAAK,EAAwB;AAC7E,EAAA,MAAM,GAAA,GAAYA,yBAAQ,MAAM;AAC9B,IAAA,MAAM,OAAA,GAAU;AAAA,MACd,QAAA,EAAU,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,KAAA,EAAO,IAAA,EAAM,QAAA,EAAS,CAAE,CAAA;AAAA,MAC5D,IAAA,EAAM;AAAA,KACR;AACA,IAAA,MAAM,IAAA,GAAO,IAAI,IAAA,CAAK,CAAC,KAAK,SAAA,CAAU,OAAO,CAAC,CAAA,EAAG;AAAA,MAC/C,IAAA,EAAM;AAAA,KACP,CAAA;AACD,IAAA,OAAO,GAAA,CAAI,gBAAgB,IAAI,CAAA;AAAA,EACjC,CAAA,EAAG,CAAC,OAAA,EAAS,IAAI,CAAC,CAAA;AAElB,EAAMA,gBAAA,CAAA,SAAA,CAAU,MAAM,MAAM,GAAA,CAAI,gBAAgB,GAAG,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA;AAE3D,EAAA,uBACEC,cAAA,CAAC,SAAI,WAAA,EAAU,uBAAA,EAAwB,WAAU,MAAA,EAC/C,QAAA,kBAAAA,cAAA,CAACC,wCAAmB,IAAA,EAAK,MAAA,EAAO,KAC9B,QAAA,kBAAAD,cAAA,CAACE,kCAAA,EAAA,EAAiB,SAAS,OAAA,EAAS,WAAA,EAAW,MAAC,SAAA,EAAU,UAAA,EAAW,GACvE,CAAA,EACF,CAAA;AAEJ","file":"nitroTableGrid-J7F6D2QA.cjs","sourcesContent":["/**\n * SuperChat NITRO table grid (lazy chunk).\n *\n * Default-exported so it can be pulled in with `React.lazy` only when a GFM\n * table actually renders — this keeps the heavy `datavis` / `datavis-ace`\n * dependencies out of the SuperChat (and Markdown core) bundle.\n *\n * Data is handed to {@link DataVisNitroSource} through a short-lived object-URL\n * `http` source carrying the `{ typeInfo, data }` shape the engine expects.\n */\n\nimport * as React from 'react';\nimport { DataVisNitroGrid, DataVisNitroSource } from '../../DataVisNITRO';\n\nexport interface NitroTableGridProps {\n /** Column headers, in order. */\n headers: string[];\n /** Row objects keyed by header. */\n rows: Array<Record<string, string>>;\n}\n\nexport default function NitroTableGrid({ headers, rows }: NitroTableGridProps) {\n const url = React.useMemo(() => {\n const payload = {\n typeInfo: headers.map((field) => ({ field, type: 'string' })),\n data: rows,\n };\n const blob = new Blob([JSON.stringify(payload)], {\n type: 'application/json',\n });\n return URL.createObjectURL(blob);\n }, [headers, rows]);\n\n React.useEffect(() => () => URL.revokeObjectURL(url), [url]);\n\n return (\n <div data-slot=\"superchat-nitro-table\" className=\"my-2\">\n <DataVisNitroSource type=\"http\" url={url}>\n <DataVisNitroGrid columns={headers} minimalMode className=\"max-h-80\" />\n </DataVisNitroSource>\n </div>\n );\n}\n"]}