@zerohive/hive-viewer 2.0.1 → 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 +38 -17
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9008,16 +9008,16 @@ function DocumentViewer(props) {
|
|
|
9008
9008
|
};
|
|
9009
9009
|
const renderContent = () => {
|
|
9010
9010
|
if (error) {
|
|
9011
|
-
return /* @__PURE__ */ jsxs10("div", { className: "hv-error-banner", children: [
|
|
9011
|
+
return /* @__PURE__ */ jsx10("div", { className: "hv-status-shell", children: /* @__PURE__ */ jsxs10("div", { className: "hv-error-banner", children: [
|
|
9012
9012
|
/* @__PURE__ */ jsx10("strong", { children: locale["error.title"] }),
|
|
9013
9013
|
/* @__PURE__ */ jsx10("p", { children: error })
|
|
9014
|
-
] });
|
|
9014
|
+
] }) });
|
|
9015
9015
|
}
|
|
9016
9016
|
if (loading || !resolved) {
|
|
9017
|
-
return /* @__PURE__ */ jsxs10("div", { className: "hv-loader", children: [
|
|
9017
|
+
return /* @__PURE__ */ jsx10("div", { className: "hv-status-shell", children: /* @__PURE__ */ jsxs10("div", { className: "hv-loader", children: [
|
|
9018
9018
|
/* @__PURE__ */ jsx10("div", { className: "hv-spinner" }),
|
|
9019
9019
|
/* @__PURE__ */ jsx10("span", { children: locale.loading })
|
|
9020
|
-
] });
|
|
9020
|
+
] }) });
|
|
9021
9021
|
}
|
|
9022
9022
|
const renderCapabilityNotice = (title, description, variant = "info") => /* @__PURE__ */ jsxs10("div", { className: `hv-info-banner${variant === "warning" ? " warning" : ""}`, children: [
|
|
9023
9023
|
/* @__PURE__ */ jsx10("strong", { children: title }),
|
|
@@ -9119,11 +9119,11 @@ function DocumentViewer(props) {
|
|
|
9119
9119
|
/* @__PURE__ */ jsx10(ImageRenderer, { ...commonProps, fileType: resolved.fileType })
|
|
9120
9120
|
] });
|
|
9121
9121
|
default:
|
|
9122
|
-
return /* @__PURE__ */ jsxs10("div", { className: "hv-error-banner", children: [
|
|
9122
|
+
return /* @__PURE__ */ jsx10("div", { className: "hv-status-shell", children: /* @__PURE__ */ jsxs10("div", { className: "hv-error-banner", children: [
|
|
9123
9123
|
locale["documents.unsupportedFileType"],
|
|
9124
9124
|
": ",
|
|
9125
9125
|
resolved.fileType
|
|
9126
|
-
] });
|
|
9126
|
+
] }) });
|
|
9127
9127
|
}
|
|
9128
9128
|
};
|
|
9129
9129
|
return /* @__PURE__ */ jsxs10("div", { className: "hv-root", "data-hv-theme": theme, children: [
|