Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 The Bento authors
//
// THE ONE PLACE a feature module is switched on.
//
// Importing a feature file runs its registration; main.ts then renders whatever
// the registry holds. This file exists so that adding a feature is a one-line
// diff in a file nobody else is editing, instead of a diff in main.ts — which
// is what lets several features be built at once without three-way conflicts
// in the chrome.
//
// Order here is registration order, which decides ties within a toolbar group.
// Anything order-sensitive should say so with an explicit `order` instead of
// relying on this list.
import './props.ts'; // the properties panel — Text, Picture, Table, Caption
import './image.ts'; // pictures — insert, embed, atomic pagination
import './embed.ts'; // embedded Bento artifacts — a Dash chart, a Slides deck
import './blockgrip.ts'; // the margin handle that reorders a block, and ⌥⇧↑/↓
import './seltoolbar.ts'; // the formatting bar that appears over a selection
import './find.ts'; // find and replace — panel, ⌘F, replace all
// captions, automatic figure/table numbering and cross-references
import './xref.ts';
import './layout.ts'; // paragraph properties, page setup, page breaks
import './cite.ts'; // citations, the bibliography and the BibTeX import
import './math.ts'; // mathematics: inline formulas and display equations
export {};
import './link.ts';
import './toc.ts'; // section numbering + table of contents
import './fieldwire.ts'; // fields' page numbers + "Turn {{…}} tokens into fields" (after toc)
// comments — margin notes on a range of text, with replies and resolution.
// Anchors ride inline.ts `shift`, so they move exactly as marks and footnote
// anchors do; nothing here can reach print (see the header of comments.ts).
import './comments.ts';
// tracked-changes review: next/previous, accept/reject at the caret, and the
// All markup/No markup/Original display modes. track.ts is the engine; this
// is what makes an eighty-change document usable.
import './review.ts';
import './redlineview.ts'; // snapshot redlining — own panel host, see its header
import './compare.ts'; // the same redline against another FILE — a view, never a merge
// auto-save + crash recovery: a debounced IndexedDB snapshot, a restore
// banner on boot when it disagrees with the loaded file, and version
// history (About dialog). See autosave.ts's header for the full design.
import './autosave.ts';
// the static first-page render written into every saved file, for readers
// (thumbnailers) that run no script — see preview.ts's header.
import './preview.ts';
// optical margin alignment (hanging punctuation) — see micro.ts's header for
// why it can be added to a document whose pagination is already a promise.
import './micro.ts';
// fields and mail merge: {{tokens}} resolved at render (never in the model),
// and one complete .bento.html per row of a bound sheet. merge.ts imports
// fields.ts, so this one line mounts both — see fields.ts's header.
import './merge.ts';
// live cells: a field whose value is a cell of a sheet this document embeds,
// addressed by row label and column heading — see live.ts's header for why not
// by cell reference.
import './live.ts';