mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-16 15:23:57 +00:00
* Native JSON workbook: golden bytes before the move to craft-libs A workbook with text, numbers, a formula, bold, a number format and a macro is saved as native JSON. Its bytes, the bytes saved after a newer-format macro is kept, and the error for a non-workbook file are golden files written by the current code. Opening the golden file as .json and .scjson and saving it again gives it back. * Native JSON workbook: read and write through craft-gridcraft-format The `.json`/`.scjson` extension check, the reader and its error text, and the pretty writer with newer-format macros written back into `macros` now come from craft-gridcraft-format (storytold/craft-libs#1749), pinned at its PR tip. The Workbook model, the style-index and cell-band rebuilds after a read, and macro reading and checks stay here. The golden tests from the previous commit pass unchanged. Part of storytold/craft-libs#778. * Native JSON workbook: pin craft-gridcraft-format to the craft-libs merge commit 9a6d8942 (storytold/craft-libs#1749) --------- Co-authored-by: FredApps <FredApps@users.noreply.github.com>