@ai-matrx/office 0.8.55 → 0.8.56

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/CHANGELOG.md CHANGED
@@ -1,10 +1,24 @@
1
1
  # Changelog
2
2
 
3
- ## 0.8.55
3
+ ## 0.8.56
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/office/src`.
7
7
 
8
+ ## 0.8.55
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 2260c4580f 9137bf6ff3 -- apps/shared/office/src`
13
+
14
+ Changed shipped source files (6):
15
+ - `apps/shared/office/src/collab/sheets/transform/registry.ts`
16
+ - `apps/shared/office/src/collab/sheets/transform/transform.ts`
17
+ - `apps/shared/office/src/sheets/workbook-ot-room.ts`
18
+ - `apps/shared/office/src/univer/collab/sheets-ot/room.ts`
19
+ - `apps/shared/office/src/univer/collab/sheets-ot/test-support/real-sheets-ui.ts`
20
+ - `apps/shared/office/src/univer/collab/sheets-ot/univer-port.ts`
21
+
8
22
  ## 0.8.54
9
23
 
10
24
  - `univerDocToMarkdown` now backslash-escapes typed text that a markdown reader would take for HTML (`<b>`, `<A22-klm>`) or an
package/dist/pdf.cjs CHANGED
@@ -1324,6 +1324,17 @@ function PdfWorkspace({ host, className }) {
1324
1324
  if (action === "undo" || action === "redo") e.stopPropagation();
1325
1325
  runAction(action);
1326
1326
  };
1327
+ (0, import_react4.useEffect)(() => {
1328
+ if (!read) return void 0;
1329
+ scrollerRef.current?.focus({ preventScroll: true });
1330
+ const onWindowKey = (e) => {
1331
+ if (e.key !== "Escape" || e.defaultPrevented) return;
1332
+ if (rootRef.current?.contains(e.target)) return;
1333
+ setRead(false);
1334
+ };
1335
+ window.addEventListener("keydown", onWindowKey);
1336
+ return () => window.removeEventListener("keydown", onWindowKey);
1337
+ }, [read]);
1327
1338
  const unsaved = dirty || markupPending > 0;
1328
1339
  const saveState = !online ? "Offline" : busy || markupBusy ? "Saving" : error && dirty || markupError && markupPending ? "Not saved" : unsaved ? "Unsaved" : "Saved";
1329
1340
  const savePill = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(