@tangle-network/ui 11.31.0 → 11.31.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tangle-network/ui
|
|
2
2
|
|
|
3
|
+
## 11.31.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 05857b3: The `.tangle-prose` table rules (`display: block`, a sideways scroll on the table itself, and cell borders) now skip the Markdown table card, which marks its table `data-markdown-table` and scrolls inside its card. The prose link color and underline skip link chips (`data-link-chip`).
|
|
8
|
+
|
|
3
9
|
## 11.31.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -116,6 +116,7 @@ function MarkdownTable({ node, className, children, ...props }) {
|
|
|
116
116
|
value: numeric,
|
|
117
117
|
children: /* @__PURE__ */ jsx("table", {
|
|
118
118
|
...props,
|
|
119
|
+
"data-markdown-table": "",
|
|
119
120
|
className: cn("w-full border-collapse text-sm text-foreground", className),
|
|
120
121
|
children
|
|
121
122
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/ui",
|
|
3
|
-
"version": "11.31.
|
|
3
|
+
"version": "11.31.1",
|
|
4
4
|
"description": "Generic React UI components for Tangle products — primitives, chat, run, files, editor, markdown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"peerDependencies": {
|
|
151
151
|
"@hocuspocus/provider": ">=2.15.0 <5.0.0",
|
|
152
152
|
"@nanostores/react": ">=0.8.4 <3.0.0",
|
|
153
|
-
"@tangle-network/brand": "^1.19.
|
|
153
|
+
"@tangle-network/brand": "^1.19.6",
|
|
154
154
|
"@tiptap/core": ">=3.20.4 <4.0.0",
|
|
155
155
|
"@tiptap/extension-collaboration": ">=3.20.4 <4.0.0",
|
|
156
156
|
"@tiptap/extension-collaboration-caret": ">=3.7.0 <4.0.0",
|
|
@@ -37,6 +37,8 @@ describe("Markdown tables", () => {
|
|
|
37
37
|
expect(region.getAttribute("tabindex")).toBe("0");
|
|
38
38
|
expect(region.closest(".not-prose")).not.toBeNull();
|
|
39
39
|
expect(screen.getByRole("table").className).toContain("text-sm");
|
|
40
|
+
// Brand's raw-table prose rules skip the card, so the table never becomes its own scroller.
|
|
41
|
+
expect(screen.getByRole("table").hasAttribute("data-markdown-table")).toBe(true);
|
|
40
42
|
expect(document.body.innerHTML).not.toContain("text-xs");
|
|
41
43
|
});
|
|
42
44
|
|
|
@@ -126,7 +126,7 @@ export function MarkdownTable({ node, className, children, ...props }: Component
|
|
|
126
126
|
{/* A keyboard reaches a sideways-scrolling table only when it can take focus. */}
|
|
127
127
|
<div tabIndex={0} role="region" aria-label="Table" className={cn("overflow-x-auto", focusRingInset)}>
|
|
128
128
|
<TableColumns.Provider value={numeric}>
|
|
129
|
-
<table {...props} className={cn("w-full border-collapse text-sm text-foreground", className)}>
|
|
129
|
+
<table {...props} data-markdown-table="" className={cn("w-full border-collapse text-sm text-foreground", className)}>
|
|
130
130
|
{children}
|
|
131
131
|
</table>
|
|
132
132
|
</TableColumns.Provider>
|