@punica/editor 1.6.11 → 1.6.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/package.json
CHANGED
|
@@ -514,6 +514,15 @@ declare module 'punica' {
|
|
|
514
514
|
options?: StatusDotOptions
|
|
515
515
|
): HTMLElement;
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* Humanize a byte count: `6602` → `"6.4 KB"`. Null for absent, zero or
|
|
519
|
+
* negative input so a caller drops the chip instead of printing "0 B".
|
|
520
|
+
*
|
|
521
|
+
* Shared because sizes are read across panels: a dataset listed at
|
|
522
|
+
* "6602" in one list and "6.4 KB" in another reads as two sizes.
|
|
523
|
+
*/
|
|
524
|
+
function formatBytes(bytes?: number | null): string | null;
|
|
525
|
+
|
|
517
526
|
/** Build an uppercase section header with a trailing divider rule. */
|
|
518
527
|
function createGroupHeader(
|
|
519
528
|
options: GroupHeaderOptions | string
|