Commit Graph
197 Commits
Author SHA1 Message Date
ANIRUDDHA ADAKandAniruddha Adak f9c65f67a9 fix(electron-utils): block trailing-dot internal hostnames (#396)
* fix(electron-utils): block trailing-dot internal hostnames

DNS treats localhost. as localhost; strip trailing dots before the hostname gate.

* fix(electron-utils): prettier format trailing-dot guard

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 15:47:53 +08:00
ANIRUDDHA ADAKandAniruddha Adak f994dd9c8c fix(i18n): use own-property check in format (#394)
in operator leaked prototype members like toString into UI strings.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 15:47:40 +08:00
ANIRUDDHA ADAKandAniruddha Adak 72eeca5e41 fix(ai-provider): match vision guard case-insensitively (#393)
* fix(ai-provider): match vision guard case-insensitively

Uppercase DeepSeek ids bypassed the text-only guard and sent images to a text-only model.

* fix(ai-provider): prettier format vision guard

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 15:47:28 +08:00
ANIRUDDHA ADAKandAniruddha Adak 0e83b97e6f fix(docx): balance single-quoted field char runs (#392)
TOKEN_RE only matched double-quoted fldCharType, so single-quoted fields unbalanced on save.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 15:47:18 +08:00
ANIRUDDHA ADAKandAniruddha Adak 2c25b86402 fix(ai-provider): bound fixed-sampling match and guard missing model (#383)
Add trailing boundary so o10/o30/gpt-50 do not omit temperature. Guard opencode route against undefined model.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:23:13 +08:00
William EchoandWilliam Echo e4cfcea7c7 fix(sheets): infer pivot source from a single selected cell (#387)
Co-authored-by: William Echo <175406538+qinghuanandejiangshi@users.noreply.github.com>
2026-09-15 11:22:34 +08:00
William EchoandWilliam Echo 0d89426252 fix(pptx): validate schemas from checkout paths with spaces (#386)
Co-authored-by: William Echo <175406538+qinghuanandejiangshi@users.noreply.github.com>
2026-09-15 11:22:27 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4c17dc0036 fix(docx): inline EQ fields with single-quoted fldCharType (#382)
FLD_CHAR_RE only matched double quotes, leaving single-quoted EQ fields as raw instrText.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:22:01 +08:00
ANIRUDDHA ADAKandAniruddha Adak ef04164b02 fix(sheets): map common OOXML paper sizes instead of A4 fallback (#379)
B4/B5/Folio/Statement and other ECMA-376 codes fell back to A4, mis-scaling print output. Add explicit inch mappings.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:21:52 +08:00
ANIRUDDHA ADAKandAniruddha Adak b9cf38318a fix(slides): localize find replace close button label (#384)
Use existing paneCsdClose string for aria-label instead of hardcoded Esc.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:21:15 +08:00
ANIRUDDHA ADAKandAniruddha Adak a03f7accd7 fix(slides): use theme tokens in cutout dialog (#380)
* fix(slides): use theme tokens in cutout dialog

Replace hardcoded chrome colors with semantic tokens so dark theme stays readable. Mirrors docs PictureDialogs pattern.

* fix(slides): prettier format cutout dialog

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:21:04 +08:00
ANIRUDDHA ADAKandAniruddha Adak 92383a3ad1 fix(file-parse): keep pptx tab stops as tabs (#378)
Inline a:tab between runs was dropped, collapsing tab-separated columns to joined text. Emit tab character to preserve extraction fidelity.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:20:56 +08:00
ANIRUDDHA ADAKandAniruddha Adak 69c1213c95 fix(pdf2docx): detect underscore leaders in hasDotLeaderRun (#377)
TOC_LINE_RE already handles underscores but hasDotLeaderRun only accepted dot and middle-dot, so underscore index pages never triggered leaderIndexPage path. Include underscore to match.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:20:48 +08:00
ANIRUDDHA ADAKandAniruddha Adak 5ae4a8a555 fix(docx): read single-quoted checkbox glyph values (#381)
sdtCheckboxGlyphs only matched double-quoted w14:val, falling back to default glyphs for single-quoted producers.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:20:39 +08:00
ANIRUDDHA ADAKandAniruddha Adak e35048ec71 fix(docx): read single-quoted protection hash salt spin sid (#376)
Some producers emit single-quoted XML attributes. edit/enforcement already handled both quote styles, but hash/salt/spin/sid and recommended only matched double quotes, dropping credentials and weakening protection verification.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:20:29 +08:00
ANIRUDDHA ADAKandAniruddha Adak 692c929c8d fix(pdf): stream print pages with per-page budget and cleanup (#354)
* fix(pdf): stream print pages with per-page budget and cleanup

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

* fix(pdf): render over-budget pages at reduced scale instead of skipping

- Keep the skip only for degenerate NaN/zero-area pages; pages exceeding MAX_PAGE_PIXELS now render at scale * sqrt(MAX_PAGE_PIXELS / (w*h)). Per-page cleanup retained.

Test updated: huge page renders reduced (2 imgs), NaN skipped; getPage mock selects viewports by page number so measure+render passes align.

* fix(pdf): update print tests for measure-then-render getPage counts

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-15 11:20:18 +08:00
Hanlin e064f3ad68 fix(dev): make npm run dev work on Windows (#374)
spawnSync('npm') without a shell fails with ENOENT on Windows because npm is npm.cmd, not npm.exe. The root dev script also used Unix VAR=value prefixes, which cmd.exe rejects.

Use shell: true when spawning npm on Windows, and set renderer URLs with cross-env.
2026-09-14 19:04:22 +08:00
ANIRUDDHA ADAKandAniruddha Adak ed2bb86536 feat(sheets): infer table range from current region (fixes #298) (#371)
Clicking a single cell inside a continuous data block and choosing
Insert -> Table (Format as Table) now expands the selection to the
surrounding CurrentRegion, matching Excel. The helper scans outward
from the anchor while edge cells have values, bounded by the used
range, and requires at least header plus one data row.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 16:39:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak 616a7acf5a fix(markdown): resolve sibling images for filesystem-root files (#366)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 14:26:03 +08:00
ANIRUDDHA ADAKandAniruddha Adak cbcd289e49 fix(docx): handle numeric char refs, NBSP edges and empty self-closing runs in field patch (#359)
* fix(docx): handle numeric char refs, NBSP edges and empty self-closing runs in field patch

* fix(docx): correct NBSP test expectation for trimmed fieldDisplay

* fix(docx): guard char-ref codepoints and assert NBSP on patched XML only

- decodeXmlText leaves out-of-range (>0x10FFFF) and surrogate (0xD800-0xDFFF) refs untouched instead of throwing RangeError; regression test covers &#99999999;, &#xFFFFFFFF; and surrogates.

NBSP edge test now asserts patched XML only (xml:space preserve + NBSP in <w:t>), dropping the fieldDisplay round-trip which normalizes edge whitespace regardless of xml:space.

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 14:25:09 +08:00
ANIRUDDHA ADAKandAniruddha Adak 78f133c216 fix(ai-search): normalize media MIME type case-insensitively (#358)
* fix(ai-search): normalize media MIME type case-insensitively

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:55:55 +08:00
ANIRUDDHA ADAKandAniruddha Adak 6797e48c15 fix(shell): share ext family between recents and starred filters (#357)
* fix(shell): share ext family between recents and starred filters

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:55:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak af9a63e462 fix(print-range): accept em-dash, tilde and fullwidth dash variants (#356)
* fix(print-range): accept em-dash, tilde and fullwidth dash variants

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:55:34 +08:00
ANIRUDDHA ADAKandAniruddha Adak b8fe1b6b01 fix(docx): read single-quoted protection attributes (#355)
* fix(docx): read single-quoted protection attributes

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:55:18 +08:00
ANIRUDDHA ADAKandAniruddha Adak df06cb607a fix(docs): count Southeast Asian scripts and full surrogate range in word count (#353)
* fix(docs): count Southeast Asian scripts and full surrogate range in word count

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:54:53 +08:00
ANIRUDDHA ADAKandAniruddha Adak 356dbfe508 fix(docs): clear cross-document edit state on open, new, and save (#352)
* fix(docs): clear cross-document edit state on open, new, and save

* fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:54:38 +08:00
ANIRUDDHA ADAKandAniruddha Adak ec5615906d fix(sheets): satisfy exactOptionalPropertyTypes for LazyCellMatch rawValue (#360)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-14 10:54:10 +08:00
merrick-2002 e42da7c7c0 Sync snapshot (2026-09-13) (#361) v0.10.63 2026-09-14 07:03:41 +08:00
yiyuexiong 09df482a83 feat(docs): add Zotero citation integration (#332) 2026-09-14 06:19:25 +08:00
ANIRUDDHA ADAKandAniruddha Adak 01935dae3d fix(sheets): clamp copy materialization to the screen extent (#350)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:40:30 +08:00
ANIRUDDHA ADAKandAniruddha Adak 0b140ffa08 fix(sheets): keep single-column prose out of delimiter sniffing on import (#351)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:35:56 +08:00
ANIRUDDHA ADAKandAniruddha Adak 05e3b493c2 fix(docx): split and patch on spaced and paired run-tab variants (#348)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:35:40 +08:00
ANIRUDDHA ADAKandAniruddha Adak 1b05796ec5 fix(sheets): preserve numbers and booleans in out-of-window Replace All (#349)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:34:57 +08:00
ANIRUDDHA ADAKandAniruddha Adak 57566c01d1 fix(slides): normalize corrupt print and export page geometry (#345)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:31:06 +08:00
ANIRUDDHA ADAKandAniruddha Adak dfdd67ba93 fix(pdf2docx): detect underscore leaders and 4-digit leaderless pages (#347)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:30:04 +08:00
ANIRUDDHA ADAKandAniruddha Adak 056ad9b8d2 fix(pptx): replace non-solid fills instead of duplicating on recolor (#346)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:29:13 +08:00
ANIRUDDHA ADAKandAniruddha Adak b2a0e7a605 fix(pdf): validate style-key fonts and sizes on decode and patch (#344)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:28:58 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4fffe25428 fix(ai-provider): match fixed-sampling models case-insensitively on every route (#343)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:28:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak 31ecbe2c50 fix(sheets): handle apostrophe sheet names in live formula shift (#342)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:28:22 +08:00
ANIRUDDHA ADAKandAniruddha Adak 0ad8419f41 fix(sheets): shift whole-row spans on structural edits (#341)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 23:27:51 +08:00
ANIRUDDHA ADAK fab0b343a5 fix(pdf2docx): count roman-numeral TOC leader lines (#329) 2026-09-13 17:41:58 +08:00
ANIRUDDHA ADAK 77a1be5ccb fix(pdf): validate colors and toggles when decoding text styles (#328) 2026-09-13 17:36:13 +08:00
ANIRUDDHA ADAK eaf7bee66f fix(slides): escape image sources in print HTML (#327) 2026-09-13 17:35:55 +08:00
ANIRUDDHA ADAK ad0ff48252 fix(pptx): replace solidFill when recoloring preset and system runs (#326) 2026-09-13 17:35:37 +08:00
ANIRUDDHA ADAK 32e16d6a2c fix(sheets): shift whole-column spans on structural edits (#325) 2026-09-13 17:34:37 +08:00
ANIRUDDHA ADAKandAniruddha Adak 0b404e1b85 fix(sheets): copy empty booleans as empty cells (#324)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 17:01:52 +08:00
ANIRUDDHA ADAKandAniruddha Adak 2cc60febfe fix(sheets): carry quote state across lines when sniffing delimiter (#323)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 17:00:17 +08:00
ANIRUDDHA ADAKandAniruddha Adak 38f0ecb3ba fix(sheets): keep over-precision integers as text on CSV import (#322)
* fix(sheets): keep over-precision integers as text on CSV import

* fix(sheets): limit long-ID text guard to plain integers

* style(sheets): prettier-wrap long-ID regression loop

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 16:43:15 +08:00
ANIRUDDHA ADAKandAniruddha Adak d25f0fd65d fix(docs): detect paired bidi section tags (#321)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 16:42:19 +08:00
ANIRUDDHA ADAKandAniruddha Adak c5ff3ea4e1 fix(docx): preserve edge spaces in field patches (#320)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-13 16:41:39 +08:00