@ai-matrx/office
v0.8.4
Published
The AI Matrx Office layer: the editors' shared command and menu model, the Google and Microsoft ribbon model, page setup, the Office record types and the configured product hosts. The Univer glue shared by Sheets and Docs. Sheets, Docs and the other produ
Maintainers
Readme
@ai-matrx/office
The AI Matrx Office layer. One package, many sections: the editors' shared model today (/core),
Sheets, Docs and the other products as they land. Importing one section never loads another.
import { configureOfficeHosts, officeHref, flattenMenus, resolveRibbon } from "@ai-matrx/office/core";
configureOfficeHosts({
sheets: "https://sheets.aimatrx.com", docs: "https://docs.aimatrx.com", slides: "https://slides.aimatrx.com",
bases: "https://bases.aimatrx.com", boards: "https://boards.aimatrx.com", pdf: "https://pdf.aimatrx.com",
});
officeHref("docs", "<id>"); // https://docs.aimatrx.com/f/<id>Sections
| Import | What it is |
|---|---|
| @ai-matrx/office/core | Pure model. Editor menu model (EditorMenu, EditorToolbarItem, search, shortcuts), the Microsoft ribbon model (resolveRibbon, ribbonCoverage), the shared Google parity rows (soon, googleExtensionsMenu, googleHelpHead) and their ribbon homes, document page style and Page setup values, PageSetup, product hosts (configureOfficeHosts, officeHref), and the workbook/document row types. No window access at import. |
| @ai-matrx/office/core/page-setup-apply | applyPageSetup / readPageSetup against a Univer facade. Its own entry because it alone needs the Univer runtime. |
Host setup
Call configureOfficeHosts once at start-up with each product's origin (production *.aimatrx.com,
development *.localhost:5190). Coming-soon rows announce through @ai-matrx/kit/coming-soon: the app
registers its rows and announcer there.
React is a peer (the inlined glyphs are JSX). No icon library, no stylesheet in this section.
