@ai-matrx/media 0.5.10 → 0.5.12
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 +11 -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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ai-matrx/media
|
|
2
2
|
|
|
3
|
+
## 0.5.12
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/media/v0.5.11..npm/media/v0.5.12 -- apps/shared/media`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.5.11
|
|
10
|
+
|
|
11
|
+
Adopts `formatCount` from `@ai-matrx/kit/format` for the text viewer's character
|
|
12
|
+
count, found by the new count shape lane of `check:package-twins`.
|
|
13
|
+
|
|
3
14
|
## 0.5.10
|
|
4
15
|
|
|
5
16
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/viewers.cjs
CHANGED
|
@@ -1333,6 +1333,7 @@ function SvgSourceView({ source, maxBytes = 1024 * 1024 }) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
|
|
1335
1335
|
// src/viewers/text-viewer.tsx
|
|
1336
|
+
var import_format3 = require("@ai-matrx/kit/format");
|
|
1336
1337
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1337
1338
|
function TextViewer({
|
|
1338
1339
|
source,
|
|
@@ -1350,7 +1351,7 @@ function TextViewer({
|
|
|
1350
1351
|
className: cn("flex h-full w-full flex-col overflow-hidden", className),
|
|
1351
1352
|
children: [
|
|
1352
1353
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ViewerToolbar, { children: [
|
|
1353
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-muted-foreground", children: truncated ? `Preview ${truncationNote(maxBytes)}.` : `${text.length
|
|
1354
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-muted-foreground", children: truncated ? `Preview ${truncationNote(maxBytes)}.` : `${(0, import_format3.formatCount)(text.length)} characters` }),
|
|
1354
1355
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ViewerCopyButton, { text })
|
|
1355
1356
|
] }),
|
|
1356
1357
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("pre", { className: "flex-1 overflow-auto bg-background p-3 font-mono text-xs leading-5 break-words whitespace-pre-wrap", children: text })
|