@tangle-network/ui 11.16.2 → 11.16.3
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,12 @@
|
|
|
1
1
|
# @tangle-network/ui
|
|
2
2
|
|
|
3
|
+
## 11.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0132f5c: Terminal blocks wrap a long command, stdout and stderr at spaces first and break inside a token only when the token is longer than the line. `break-all` split `factory-playground` and `git` mid-word on a phone.
|
|
8
|
+
- a95c717: Each scrollable terminal output region carries `role="region"`, so its `aria-label` (stdout, stderr, error) names a landmark screen readers announce. A label on a bare `<pre>` is prohibited ARIA, and axe flagged it on the platform run page.
|
|
9
|
+
|
|
3
10
|
## 11.16.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -138,7 +138,7 @@ const CommandPreview = memo(({ part, defaultExpanded = false, className }) => {
|
|
|
138
138
|
children: "$"
|
|
139
139
|
}),
|
|
140
140
|
/* @__PURE__ */ jsx("code", {
|
|
141
|
-
className: cn("min-w-0 flex-1 whitespace-pre-wrap
|
|
141
|
+
className: cn("min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]", expanded ? "" : "line-clamp-2"),
|
|
142
142
|
children: command
|
|
143
143
|
}),
|
|
144
144
|
/* @__PURE__ */ jsx(ExitBadge, {
|
|
@@ -172,20 +172,23 @@ const CommandPreview = memo(({ part, defaultExpanded = false, className }) => {
|
|
|
172
172
|
children: [
|
|
173
173
|
output.stdout ? /* @__PURE__ */ jsx("pre", {
|
|
174
174
|
tabIndex: 0,
|
|
175
|
+
role: "region",
|
|
175
176
|
"aria-label": "stdout",
|
|
176
|
-
className: cn("max-h-80 overflow-auto whitespace-pre-wrap
|
|
177
|
+
className: cn("max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] px-3 py-2 leading-relaxed", focusRing),
|
|
177
178
|
children: output.stdout
|
|
178
179
|
}) : null,
|
|
179
180
|
output.stderr ? /* @__PURE__ */ jsx("pre", {
|
|
180
181
|
tabIndex: 0,
|
|
182
|
+
role: "region",
|
|
181
183
|
"aria-label": "stderr",
|
|
182
|
-
className: cn("max-h-80 overflow-auto whitespace-pre-wrap
|
|
184
|
+
className: cn("max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] border-t border-white/10 px-3 py-2 leading-relaxed text-[var(--surface-danger-text)]", focusRing),
|
|
183
185
|
children: output.stderr
|
|
184
186
|
}) : null,
|
|
185
187
|
errorText ? /* @__PURE__ */ jsx("pre", {
|
|
186
188
|
tabIndex: 0,
|
|
189
|
+
role: "region",
|
|
187
190
|
"aria-label": "error",
|
|
188
|
-
className: cn("max-h-80 overflow-auto whitespace-pre-wrap
|
|
191
|
+
className: cn("max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] border-t border-white/10 px-3 py-2 leading-relaxed text-[var(--surface-danger-text)]", focusRing),
|
|
189
192
|
children: errorText
|
|
190
193
|
}) : null
|
|
191
194
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/ui",
|
|
3
|
-
"version": "11.16.
|
|
3
|
+
"version": "11.16.3",
|
|
4
4
|
"description": "Generic React UI components for Tangle products — primitives, chat, run, files, editor, markdown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"peerDependencies": {
|
|
143
143
|
"@hocuspocus/provider": ">=2.15.0 <5.0.0",
|
|
144
144
|
"@nanostores/react": ">=0.8.4 <3.0.0",
|
|
145
|
-
"@tangle-network/brand": "^1.10.
|
|
145
|
+
"@tangle-network/brand": "^1.10.1",
|
|
146
146
|
"@tiptap/core": ">=3.20.4 <4.0.0",
|
|
147
147
|
"@tiptap/extension-collaboration": ">=3.20.4 <4.0.0",
|
|
148
148
|
"@tiptap/extension-collaboration-caret": ">=3.7.0 <4.0.0",
|
|
@@ -191,7 +191,7 @@ export const CommandPreview = memo(
|
|
|
191
191
|
</span>
|
|
192
192
|
<code
|
|
193
193
|
className={cn(
|
|
194
|
-
"min-w-0 flex-1 whitespace-pre-wrap
|
|
194
|
+
"min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]",
|
|
195
195
|
expanded ? "" : "line-clamp-2",
|
|
196
196
|
)}
|
|
197
197
|
>
|
|
@@ -237,9 +237,10 @@ export const CommandPreview = memo(
|
|
|
237
237
|
{output.stdout ? (
|
|
238
238
|
<pre
|
|
239
239
|
tabIndex={0}
|
|
240
|
+
role="region"
|
|
240
241
|
aria-label="stdout"
|
|
241
242
|
className={cn(
|
|
242
|
-
"max-h-80 overflow-auto whitespace-pre-wrap
|
|
243
|
+
"max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] px-3 py-2 leading-relaxed",
|
|
243
244
|
focusRing,
|
|
244
245
|
)}
|
|
245
246
|
>
|
|
@@ -249,9 +250,10 @@ export const CommandPreview = memo(
|
|
|
249
250
|
{output.stderr ? (
|
|
250
251
|
<pre
|
|
251
252
|
tabIndex={0}
|
|
253
|
+
role="region"
|
|
252
254
|
aria-label="stderr"
|
|
253
255
|
className={cn(
|
|
254
|
-
"max-h-80 overflow-auto whitespace-pre-wrap
|
|
256
|
+
"max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] border-t border-white/10 px-3 py-2 leading-relaxed text-[var(--surface-danger-text)]",
|
|
255
257
|
focusRing,
|
|
256
258
|
)}
|
|
257
259
|
>
|
|
@@ -261,9 +263,10 @@ export const CommandPreview = memo(
|
|
|
261
263
|
{errorText ? (
|
|
262
264
|
<pre
|
|
263
265
|
tabIndex={0}
|
|
266
|
+
role="region"
|
|
264
267
|
aria-label="error"
|
|
265
268
|
className={cn(
|
|
266
|
-
"max-h-80 overflow-auto whitespace-pre-wrap
|
|
269
|
+
"max-h-80 overflow-auto whitespace-pre-wrap [overflow-wrap:anywhere] border-t border-white/10 px-3 py-2 leading-relaxed text-[var(--surface-danger-text)]",
|
|
267
270
|
focusRing,
|
|
268
271
|
)}
|
|
269
272
|
>
|