@opengeni/react 4.0.1-canary.0 → 4.0.1-canary.1

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/README.md CHANGED
@@ -652,6 +652,11 @@ intentional changes should regenerate those snapshots and review the diff.
652
652
  runnable latency modes such as Fast. It accepts either `ClientModel[]` or
653
653
  catalog-backed `PickerModelRow[]`, and supports host-supplied labels.
654
654
  - `Markdown` — the timeline's markdown renderer (GFM), also usable standalone.
655
+ Top-level assistant tables in `MessageTimeline` can expand beyond the prose
656
+ column into the actual conversation panel's available space. Small tables,
657
+ paragraphs, user bubbles, and nested or standalone Markdown keep their normal
658
+ width; oversized tables retain table-only horizontal scrolling. No host prop
659
+ or viewport-wide layout override is required.
655
660
  With `onSandboxFile`, a valid `sandbox:<path>[:line]` application link becomes
656
661
  an in-session Open action. The callback receives the decoded path unchanged;
657
662
  the optional line is positive and 1-based. Invalid sandbox references render
@@ -1501,8 +1501,24 @@ function MarkdownCodeBlock({ children }) {
1501
1501
  ] });
1502
1502
  }
1503
1503
  function MarkdownTable({ children, className, ...props }) {
1504
+ const wrapperRef = useRef4(null);
1504
1505
  const tableRef = useRef4(null);
1505
- return /* @__PURE__ */ jsxs3("div", { className: "group/copy relative mt-3 max-w-full first:mt-0", children: [
1506
+ useEffect4(() => {
1507
+ const wrapper = wrapperRef.current;
1508
+ const table = tableRef.current;
1509
+ if (!wrapper?.closest("[data-og-wide-table-message]") || !table) return;
1510
+ let disposed = false;
1511
+ let cleanup;
1512
+ void import("./markdown-table-layout-3Z3AWBY7.js").then(({ observeMarkdownTableLayout }) => {
1513
+ if (!disposed) cleanup = observeMarkdownTableLayout(wrapper, table);
1514
+ }).catch(() => {
1515
+ });
1516
+ return () => {
1517
+ disposed = true;
1518
+ cleanup?.();
1519
+ };
1520
+ }, [children]);
1521
+ return /* @__PURE__ */ jsxs3("div", { ref: wrapperRef, className: "group/copy relative mt-3 max-w-full first:mt-0", children: [
1506
1522
  /* @__PURE__ */ jsx4("div", { className: "pointer-events-none absolute top-0 right-0 z-10", children: /* @__PURE__ */ jsx4("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx4(
1507
1523
  CopyButton,
1508
1524
  {
@@ -8421,7 +8437,14 @@ function AgentMessageRow({
8421
8437
  renderMessageActions?.(item),
8422
8438
  /* @__PURE__ */ jsx17(MessageFooterTime, { occurredAt: item.occurredAt })
8423
8439
  ] }),
8424
- children: /* @__PURE__ */ jsx17("div", { "data-og-annotation-source-key": item.annotationSource?.eventId, children: body })
8440
+ children: /* @__PURE__ */ jsx17(
8441
+ "div",
8442
+ {
8443
+ "data-og-wide-table-message": "",
8444
+ "data-og-annotation-source-key": item.annotationSource?.eventId,
8445
+ children: body
8446
+ }
8447
+ )
8425
8448
  }
8426
8449
  );
8427
8450
  }
@@ -10857,4 +10880,4 @@ export {
10857
10880
  SessionChrome,
10858
10881
  SessionCommandsPanel
10859
10882
  };
10860
- //# sourceMappingURL=chunk-HO6X4FHG.js.map
10883
+ //# sourceMappingURL=chunk-CQG7YUJB.js.map