@hanzo/ui 4.8.4 → 4.8.5
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 +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
- package/primitives/file-uploader.tsx +1 -0
package/dist/index.js
CHANGED
|
@@ -8158,6 +8158,7 @@ var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
|
8158
8158
|
var useTranslation2 = /* @__PURE__ */ __name(() => ({ t: /* @__PURE__ */ __name((key) => key, "t") }), "useTranslation");
|
|
8159
8159
|
var partial = /* @__PURE__ */ __name(() => (bytes) => `${(bytes / 1024 / 1024).toFixed(2)} MB`, "partial");
|
|
8160
8160
|
var openFile = /* @__PURE__ */ __name((file) => {
|
|
8161
|
+
if (typeof window === "undefined") return;
|
|
8161
8162
|
const fileURL = window.URL.createObjectURL(file);
|
|
8162
8163
|
window.open(fileURL, "_blank");
|
|
8163
8164
|
URL.revokeObjectURL(fileURL);
|
package/dist/index.mjs
CHANGED
|
@@ -7815,6 +7815,7 @@ import { jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
|
7815
7815
|
var useTranslation2 = /* @__PURE__ */ __name(() => ({ t: /* @__PURE__ */ __name((key) => key, "t") }), "useTranslation");
|
|
7816
7816
|
var partial = /* @__PURE__ */ __name(() => (bytes) => `${(bytes / 1024 / 1024).toFixed(2)} MB`, "partial");
|
|
7817
7817
|
var openFile = /* @__PURE__ */ __name((file) => {
|
|
7818
|
+
if (typeof window === "undefined") return;
|
|
7818
7819
|
const fileURL = window.URL.createObjectURL(file);
|
|
7819
7820
|
window.open(fileURL, "_blank");
|
|
7820
7821
|
URL.revokeObjectURL(fileURL);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.5",
|
|
4
4
|
"description": "Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -13,6 +13,7 @@ import { Button } from './button';
|
|
|
13
13
|
import { ScrollArea } from './scroll-area';
|
|
14
14
|
|
|
15
15
|
const openFile = (file: File): void => {
|
|
16
|
+
if (typeof window === 'undefined') return;
|
|
16
17
|
const fileURL = window.URL.createObjectURL(file);
|
|
17
18
|
window.open(fileURL, '_blank');
|
|
18
19
|
URL.revokeObjectURL(fileURL);
|