reifyui 0.16.1 → 0.17.0

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/index.js CHANGED
@@ -3,11 +3,12 @@ import {
3
3
  FileCard,
4
4
  FilePreview,
5
5
  FileTypeIcon,
6
+ bytesLabel,
6
7
  extOf,
7
8
  newTurn,
8
9
  reduceTurn,
9
10
  turnFromMessage
10
- } from "./chunk-UP3CNKZR.js";
11
+ } from "./chunk-6HGZN2SQ.js";
11
12
  import {
12
13
  createResponsesDispatcher,
13
14
  pumpResponsesStream,
@@ -716,14 +717,6 @@ var Chip = forwardRef(function Chip2(props, ref) {
716
717
  ] });
717
718
  });
718
719
 
719
- // src/format.js
720
- function bytesLabel(n) {
721
- if (n == null) return "";
722
- if (n < 1024) return `${n} B`;
723
- if (n < 1048576) return `${Math.round(n / 1024)} KB`;
724
- return `${(n / 1048576).toFixed(1)} MB`;
725
- }
726
-
727
720
  // src/components/ChatPanel.jsx
728
721
  import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
729
722
  var POLL_MS = 3e3;