@zero-library/common 2.2.8 → 2.2.10
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.js +2 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1109,7 +1109,6 @@ function createSecureManager({ key, storage = localStorage, aesKey }) {
|
|
|
1109
1109
|
try {
|
|
1110
1110
|
return JSON.parse(cipher);
|
|
1111
1111
|
} catch (e) {
|
|
1112
|
-
console.log("Failed to parse stored data:", e);
|
|
1113
1112
|
return cipher;
|
|
1114
1113
|
}
|
|
1115
1114
|
};
|
|
@@ -1171,7 +1170,7 @@ var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
|
|
|
1171
1170
|
const resetZoom = () => {
|
|
1172
1171
|
setZoomRatio(1);
|
|
1173
1172
|
};
|
|
1174
|
-
return /* @__PURE__ */ jsxs("div", { className: classNames(styles_module_default.nsPreviewDocx, "height-full"), children: [
|
|
1173
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles_module_default.nsPreviewDocx, "height-full", "width-full"), children: [
|
|
1175
1174
|
/* @__PURE__ */ jsxs(Flex, { gap: 6, align: "center", className: styles_module_default.docxToolbar, children: [
|
|
1176
1175
|
/* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: "\u7F29\u5C0F" }),
|
|
1177
1176
|
/* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: "\u653E\u5927" }),
|
|
@@ -1410,7 +1409,7 @@ var MarkdownPreview_default = ({ fileUrl, searchValue }) => {
|
|
|
1410
1409
|
useEffect(() => {
|
|
1411
1410
|
init();
|
|
1412
1411
|
}, [fileUrl]);
|
|
1413
|
-
return error ? /* @__PURE__ */ jsx(Result, { status: "error", title: error }) : /* @__PURE__ */ jsx("div", { className: "height-full", children: /* @__PURE__ */ jsx(RenderMarkdown_default, { content, searchValue }) });
|
|
1412
|
+
return error ? /* @__PURE__ */ jsx(Result, { status: "error", title: error }) : /* @__PURE__ */ jsx("div", { className: "height-full width-full", children: /* @__PURE__ */ jsx(RenderMarkdown_default, { content, searchValue }) });
|
|
1414
1413
|
};
|
|
1415
1414
|
|
|
1416
1415
|
// src/hooks/iframe/iframeRelay.ts
|