@ai-matrx/media 0.6.2 → 0.6.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/dist/viewers.js CHANGED
@@ -56,6 +56,7 @@ function cn(...inputs) {
56
56
  // src/viewers/chrome.tsx
57
57
  import { formatFileSize } from "@ai-matrx/kit/format";
58
58
  import { useCallback, useState } from "react";
59
+ import { ErrorBox } from "@ai-matrx/design-system";
59
60
 
60
61
  // src/react/icons.tsx
61
62
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -271,13 +272,17 @@ function ViewerError({
271
272
  className
272
273
  }) {
273
274
  return /* @__PURE__ */ jsxs2(
274
- "div",
275
+ ErrorBox,
275
276
  {
277
+ as: "div",
276
278
  className: cn(
277
279
  "flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",
278
280
  className
279
281
  ),
280
- role: "alert",
282
+ title,
283
+ message: message ?? title,
284
+ operation: "Show this file",
285
+ origin: "media/ViewerError",
281
286
  children: [
282
287
  /* @__PURE__ */ jsx2("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx2(AlertCircleIcon, { className: "h-6 w-6 text-destructive" }) }),
283
288
  /* @__PURE__ */ jsxs2("div", { className: "space-y-1", children: [