|
1 | 1 | # @textcortex/slidewise |
2 | 2 |
|
| 3 | +## 1.20.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- e56ddd2: feat(pptx): `applyEdits` — lossless surgical-edit API |
| 8 | + |
| 9 | + Add `applyEdits(source, plan, options?)`: a patch on the original `.pptx` bytes |
| 10 | + rather than a full re-serialize. The create flow can now emit an `EditPlan` |
| 11 | + (subset/reorder/repeat of template slides, each with edits) and get back a valid |
| 12 | + package where everything not named by an edit is byte-identical to the source — |
| 13 | + masters, layouts, theme, embedded fonts, `ppt/tags/*`, notes, embeddings, and |
| 14 | + any untouched element. This removes the lossy round-trip that produced the |
| 15 | + `custGeom`/SVG-fallback/dangling-rel fidelity bugs and lets hosts drop their |
| 16 | + defensive cleanup. `serializeDeck` stays for the live editor / from-scratch decks. |
| 17 | + |
| 18 | + Edits address elements by the same stable ids `parsePptx` returns; slides by |
| 19 | + 1-based template index. Supported ops: `setText`/`clearText` (preserve the |
| 20 | + template box + run styling, or rebuild from supplied runs), `setChartData` |
| 21 | + (repopulate a native chart in place — type/colours kept, caches **and** the |
| 22 | + embedded `xlsx` workbook updated so Edit-Data still works), `setTableData`, |
| 23 | + `setImage`, `removeElement`, `addChart`, `addDiagram`, plus per-slide |
| 24 | + `background` and deck `title`. Removed slides and any parts that become |
| 25 | + exclusive to them are reclaimed by a package-wide reachability sweep, then |
| 26 | + dangling relationships and content-types are reconciled. Unresolved element ids |
| 27 | + and unsupported layout-instantiation are surfaced via `onWarning` instead of |
| 28 | + throwing. |
| 29 | + |
3 | 30 | ## 1.19.1 |
4 | 31 |
|
5 | 32 | ### Patch Changes |
|
0 commit comments