@zerohive/hive-viewer 2.0.0 → 2.0.2
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.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +49 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9058,16 +9058,16 @@ function DocumentViewer(props) {
|
|
|
9058
9058
|
};
|
|
9059
9059
|
const renderContent = () => {
|
|
9060
9060
|
if (error) {
|
|
9061
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-error-banner", children: [
|
|
9061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hv-status-shell", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-error-banner", children: [
|
|
9062
9062
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("strong", { children: locale["error.title"] }),
|
|
9063
9063
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: error })
|
|
9064
|
-
] });
|
|
9064
|
+
] }) });
|
|
9065
9065
|
}
|
|
9066
9066
|
if (loading || !resolved) {
|
|
9067
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-loader", children: [
|
|
9067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hv-status-shell", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-loader", children: [
|
|
9068
9068
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hv-spinner" }),
|
|
9069
9069
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: locale.loading })
|
|
9070
|
-
] });
|
|
9070
|
+
] }) });
|
|
9071
9071
|
}
|
|
9072
9072
|
const renderCapabilityNotice = (title, description, variant = "info") => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: `hv-info-banner${variant === "warning" ? " warning" : ""}`, children: [
|
|
9073
9073
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("strong", { children: title }),
|
|
@@ -9169,11 +9169,11 @@ function DocumentViewer(props) {
|
|
|
9169
9169
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ImageRenderer, { ...commonProps, fileType: resolved.fileType })
|
|
9170
9170
|
] });
|
|
9171
9171
|
default:
|
|
9172
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-error-banner", children: [
|
|
9172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hv-status-shell", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-error-banner", children: [
|
|
9173
9173
|
locale["documents.unsupportedFileType"],
|
|
9174
9174
|
": ",
|
|
9175
9175
|
resolved.fileType
|
|
9176
|
-
] });
|
|
9176
|
+
] }) });
|
|
9177
9177
|
}
|
|
9178
9178
|
};
|
|
9179
9179
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "hv-root", "data-hv-theme": theme, children: [
|