@ai-matrx/media 0.5.10 → 0.5.11
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 +5 -0
- package/dist/viewers.cjs +2 -1
- package/dist/viewers.cjs.map +1 -1
- package/dist/viewers.js +2 -1
- package/dist/viewers.js.map +1 -1
- package/package.json +2 -2
package/dist/viewers.js
CHANGED
|
@@ -1291,6 +1291,7 @@ function SvgSourceView({ source, maxBytes = 1024 * 1024 }) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
1293
|
// src/viewers/text-viewer.tsx
|
|
1294
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
1294
1295
|
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1295
1296
|
function TextViewer({
|
|
1296
1297
|
source,
|
|
@@ -1308,7 +1309,7 @@ function TextViewer({
|
|
|
1308
1309
|
className: cn("flex h-full w-full flex-col overflow-hidden", className),
|
|
1309
1310
|
children: [
|
|
1310
1311
|
/* @__PURE__ */ jsxs8(ViewerToolbar, { children: [
|
|
1311
|
-
/* @__PURE__ */ jsx9("span", { className: "text-muted-foreground", children: truncated ? `Preview ${truncationNote(maxBytes)}.` : `${text.length
|
|
1312
|
+
/* @__PURE__ */ jsx9("span", { className: "text-muted-foreground", children: truncated ? `Preview ${truncationNote(maxBytes)}.` : `${formatCount(text.length)} characters` }),
|
|
1312
1313
|
/* @__PURE__ */ jsx9(ViewerCopyButton, { text })
|
|
1313
1314
|
] }),
|
|
1314
1315
|
/* @__PURE__ */ jsx9("pre", { className: "flex-1 overflow-auto bg-background p-3 font-mono text-xs leading-5 break-words whitespace-pre-wrap", children: text })
|