@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.cjs.js
CHANGED
|
@@ -1148,7 +1148,6 @@ function createSecureManager({ key, storage = localStorage, aesKey }) {
|
|
|
1148
1148
|
try {
|
|
1149
1149
|
return JSON.parse(cipher);
|
|
1150
1150
|
} catch (e) {
|
|
1151
|
-
console.log("Failed to parse stored data:", e);
|
|
1152
1151
|
return cipher;
|
|
1153
1152
|
}
|
|
1154
1153
|
};
|
|
@@ -1210,7 +1209,7 @@ var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
|
|
|
1210
1209
|
const resetZoom = () => {
|
|
1211
1210
|
setZoomRatio(1);
|
|
1212
1211
|
};
|
|
1213
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames__default.default(styles_module_default.nsPreviewDocx, "height-full"), children: [
|
|
1212
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames__default.default(styles_module_default.nsPreviewDocx, "height-full", "width-full"), children: [
|
|
1214
1213
|
/* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { gap: 6, align: "center", className: styles_module_default.docxToolbar, children: [
|
|
1215
1214
|
/* @__PURE__ */ jsxRuntime.jsx(antd.Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsxRuntime.jsx(Icon.MinusCircleOutlined, {}), title: "\u7F29\u5C0F" }),
|
|
1216
1215
|
/* @__PURE__ */ jsxRuntime.jsx(antd.Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsxRuntime.jsx(Icon.PlusCircleOutlined, {}), title: "\u653E\u5927" }),
|
|
@@ -1449,7 +1448,7 @@ var MarkdownPreview_default = ({ fileUrl, searchValue }) => {
|
|
|
1449
1448
|
React16.useEffect(() => {
|
|
1450
1449
|
init();
|
|
1451
1450
|
}, [fileUrl]);
|
|
1452
|
-
return error ? /* @__PURE__ */ jsxRuntime.jsx(antd.Result, { status: "error", title: error }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "height-full", children: /* @__PURE__ */ jsxRuntime.jsx(RenderMarkdown_default, { content, searchValue }) });
|
|
1451
|
+
return error ? /* @__PURE__ */ jsxRuntime.jsx(antd.Result, { status: "error", title: error }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "height-full width-full", children: /* @__PURE__ */ jsxRuntime.jsx(RenderMarkdown_default, { content, searchValue }) });
|
|
1453
1452
|
};
|
|
1454
1453
|
|
|
1455
1454
|
// src/hooks/iframe/iframeRelay.ts
|