@drghaliasri/butex 8.0.3 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,7 @@ Node.js **20+** is required for tooling/worker usage. MathJax `^4.1.0` is a peer
25
25
  | `@drghaliasri/butex/react-document-preview` | Lightweight read-only `ButexDocumentPreview` |
26
26
  | `butex-document` | Stateless stdin / authenticated HTTP worker |
27
27
 
28
- On the unmerged migration branch, the first-generation model and GUI were removed (Round 3), the maintained headless API and worker were promoted to `Document` (Round 4), and the current maintained React GUI was promoted to `react-document` and `react-document-preview` in Round 5. This branch is not a published package.
28
+ The completed **Document2 → Document** migration retired the first-generation editor and promoted the maintained model, worker and React editor to the unversioned names above. These are the current **8.0.3** package interfaces, not pending migration-branch APIs. See the [post-fix verification](docs/development/document-migration-postfix-20261108.md) for evidence and release qualifications.
29
29
 
30
30
  ## MathJax setup
31
31
 
@@ -47,20 +47,20 @@ See [math/rendering architecture](docs/architecture/equations.md) for initializa
47
47
  ```ts
48
48
  import {
49
49
  createEmptyDocument,
50
- fromDocumentJson2,
51
- toDocumentJson2,
50
+ fromDocumentJson,
51
+ toDocumentJson,
52
52
  validateDocument,
53
53
  } from '@drghaliasri/butex/document';
54
54
 
55
55
  const document = createEmptyDocument();
56
56
  const validation = validateDocument(document);
57
- const saved = toDocumentJson2(document);
58
- const restored = fromDocumentJson2(saved);
57
+ const saved = toDocumentJson(document);
58
+ const restored = fromDocumentJson(saved);
59
59
  ```
60
60
 
61
61
  Use `ButexDocumentEditor` from `@drghaliasri/butex/react-document` for the interactive editor; use `ButexDocumentPreview` from `@drghaliasri/butex/react-document-preview` to show read-only snapshots.
62
62
 
63
- Renaming an enabled figure/table label with `update_float_meta` also updates matching `\\ref`/`\\eqref` tokens throughout the document in the same edit; disabling or clearing a label leaves references unchanged.
63
+ Renaming an enabled figure/table label with `update_float_meta` also updates matching `\ref`/`\eqref` tokens throughout the document in the same edit; disabling or clearing a label leaves references unchanged.
64
64
 
65
65
  **Host responsibility:** authentication, article permissions, immutable revisions, image uploads/storage, compilation and publishing. BuTeX supplies pure Document transformations and editing UI, never an article database or MCP authorization bypass. See [Document](docs/architecture/document.md), [React integration](docs/architecture/react-editor.md), and [the worker](docs/architecture/worker.md).
66
66
 
@@ -84,7 +84,7 @@ The [BuTeX book design](docs/proposals/book-editor.md) and [Al-Bayan integration
84
84
 
85
85
  - [Architecture](docs/architecture/README.md) — implemented package and host contracts
86
86
  - [Development](docs/development/README.md) — building, browser testing and releases
87
- - [Proposals](docs/proposals/README.md) — book authoring and the Document-to-Document migration
87
+ - [Proposals](docs/proposals/README.md) — book authoring and completed Document migration evidence
88
88
  - [Archive](docs/archive/README.md) — historical design records
89
89
 
90
90
  The npm tarball includes `dist/` and this README; `docs/` live in the [GitLab repository](https://gitlab.com/drghaliasri/butex).