Changelog
Latest releases of @diceui/pptx and @diceui/pptx-core.
0.5.0 - Controls
November 13, 2026
Controls
Presentation.Controls wraps editor UI outside the slide, such as a toolbar. Pressing it keeps the selection and text editing, and so does pressing the popovers and menus it renders.
<Presentation.Controls>
<FormattingToolbar />
</Presentation.Controls>Renamed attributes
The React primitives now write data-presentation-* attributes, matching the --presentation-* CSS variables:
data-pptx-keep-selectionis nowdata-presentation-controls, andKEEP_SELECTION_ATTRIBUTEis nowCONTROLS_ATTRIBUTE.- Overlay parts carry
data-presentation-selection-box,data-presentation-resize-handle,data-presentation-rotate-handle,data-presentation-snap-guide, anddata-presentation-marquee. - The viewer's slide wrappers carry
data-pptx-slide-indexinstead ofdata-slide-index.
Fixes
- Drags end where the pointer is released, even before the last moves render.
- Keys typed over selected table cells while the table re-renders are no longer lost.
- Pressing a shape no longer scrolls the page when the editor is partly off screen.
- Unmounting a viewer frees picture URLs and removes the deck's embedded fonts from
document.fonts.
0.4.0 - Table Editing
November 6, 2026
Tables
addTable inserts a table. Click into a cell to edit it; Tab and Shift+Tab move between cells, and Tab on the last cell adds a row. Drag a border to resize a row or column, and drag across cells or Shift+click to select a range to format, merge, clear, or copy. Pasting tab-separated text fills cells.
Table operations
insertTableRow,deleteTableRow,insertTableColumn, anddeleteTableColumnchange rows and columns, andsetTableGridsizes them.mergeTableCellsandsplitTableCellmerge and split cells.setTableCellStylesets cell fill, borders, and vertical alignment.setTableOptionstoggles the header row, banded rows, and other table style parts.- The text operations take a
cellto edit one table cell.
useSelection adds insertTable, cell, cellRange, changeTable, and setTableCellStyle.
0.3.0 - Editing Toolbar
November 5, 2026
Formatting toolbar
useSelection reads the selection and its text formatting, formats text and paragraphs, and inserts, duplicates, deletes, and reorders text boxes and shapes. Draw tools (startDrawing) place a shape where the slide is clicked or dragged, and anchor positions a floating toolbar over the selection.
PowerPoint-style editing
- Snapping with guides (
snapping,snapThreshold, Alt to place freely), rotation, and resizing rotated shapes. - Copy and paste, arrange and duplicate shortcuts, and Tab between shapes with screen reader announcements.
- A click selects a text box; click again, double-click, or type to edit it.
- The overlay is composable from
SelectionBox,ResizeHandle,RotateHandle,SnapGuide, andMarquee.
Edit operations
The core adds setTextStyle, setParagraphStyle, setOutline, addSlide, setSlideBackground, addTextBox, addShape, addImage, duplicateNode, reorderNode, and pasteNodes. getPresentationFonts() and getPresetShapePath() feed font and shape pickers.
Fixes
- Themes nested in another folder load, instead of rendering theme colors black.
- The thumbnail list keeps at most 50 rendered miniatures, so memory stays flat on long decks.
- Edits, undo, and redo run one at a time, and
undo()returns a promise likeredo().
0.2.0 - Embedded Font Errors
September 9, 2026
Embedded font errors
loadEmbeddedFonts takes an onError option, so a font that can't be used is reported instead of silently falling back. Each report names the part, the typefaces left without it, and why it failed.
Thumbnail list focus
ThumbnailList takes initialFocus. Loading a deck on mount no longer captures the first tab stop.
Fixes
- Embedded fonts load whatever extension their part uses, not only
.fntdata. - Refs are no longer read or written during render, for React Compiler compatibility.
0.1.0 - Initial Release
September 1, 2026
pptx opens, renders, edits, and saves PowerPoint decks in the browser. It ships as two packages:
@diceui/pptx: composable React primitives under thePresentationnamespace.@diceui/pptx-core: the framework-agnostic engine that parses, renders, edits, and saves decks.
npm install @diceui/pptxFixes
- Text no longer disappears from a slide whose autofit pass runs while it's detached, such as a thumbnail scrolled out of view.
- Importing the package from npm no longer fails with
Can't resolve './worker.ts'. - Embedded fonts with CFF outlines now load, and uncompressed fonts skip the font worker.