@chengzhiyi/pi-excalidraw 0.1.4 → 0.1.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/frame.js CHANGED
@@ -691,7 +691,7 @@ function DiagramPreview({ sessionId, id, title, locale, open, header, collapsed,
691
691
  header(state.unavailable),
692
692
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id: bodyId, hidden: collapsed, children: [
693
693
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: diagrams_default.previewViewport, "data-diagram-preview": true, children: [
694
- image && !state.unavailable ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: image, alt: title, "data-scene-revision": renderedKey }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: diagrams_default.previewPlaceholder, children: state.unavailable ? t("\u6B64\u5386\u53F2\u56FE\u7A3F\u6CA1\u6709\u53EF\u7528\u5185\u5BB9\u3002", "No content is available for this historical drawing.") : error || state.error || "Excalidraw\u2026" }),
694
+ image && !state.unavailable ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: image, alt: title, "data-scene-revision": renderedKey }) : state.unavailable ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: diagrams_default.previewPlaceholder, children: t("\u6B64\u5386\u53F2\u56FE\u7A3F\u6CA1\u6709\u53EF\u7528\u5185\u5BB9\u3002", "No content is available for this historical drawing.") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: diagrams_default.previewPlaceholder, role: "status", "aria-busy": !(error || state.error), "aria-label": t("\u6B63\u5728\u52A0\u8F7D Excalidraw", "Loading Excalidraw"), children: !(error || state.error) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: diagrams_default.spinner }) }),
695
695
  state.unavailable ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: open, children: t("\u6062\u590D\u9009\u9879", "Recovery options") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { className: diagrams_default.editButton, onClick: open, "aria-label": t("\u7F16\u8F91 Excalidraw", "Edit Excalidraw"), children: t("\u7F16\u8F91 \u2197", "Edit \u2197") })
696
696
  ] }),
697
697
  candidate && !initial && !state.unavailable && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: diagrams_default.review, role: "status", children: [
@@ -2553,8 +2553,8 @@
2553
2553
  },
2554
2554
  {
2555
2555
  "path": "./dist/frame.js",
2556
- "bytes": 43377,
2557
- "sha256": "294fb4d91497fdd0c6fe71014c91eccb686afb3357eb747dba548346a25f2b27",
2556
+ "bytes": 43702,
2557
+ "sha256": "7a6fa3f0cd6fe70d1c4387ca413b0e8d12c2e03552be7dc12869da7542c79c4c",
2558
2558
  "mime": "text/javascript"
2559
2559
  },
2560
2560
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chengzhiyi/pi-excalidraw",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Self-contained hosted v2 Excalidraw plugin for pi-webapp",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@
53
53
  "directory": "packages/excalidraw"
54
54
  },
55
55
  "piRelease": {
56
- "fingerprint": "d00a2f0881c824b15a9178b1ff602db94e7c4dac935c46becc0db448d634542e",
57
- "source": "5376a9abcf8ff7c3493b186f2b93b22d444e269b"
56
+ "fingerprint": "262b3f40586c545eaedae03f66eaa847308ead688a3a0ec662ceef990886ea2c",
57
+ "source": "07799b0eeb863e11bbcc1e1e83630b9839e13864"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node scripts/build.mjs",