@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 +7 -7
- package/dist/document-cli.js +278 -113
- package/dist/document-cli.js.map +1 -1
- package/dist/document.d.mts +80 -4
- package/dist/document.d.ts +80 -4
- package/dist/document.js +380 -129
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +369 -129
- package/dist/document.mjs.map +1 -1
- package/dist/react-document-preview.d.mts +32 -5
- package/dist/react-document-preview.d.ts +32 -5
- package/dist/react-document-preview.js +132 -80
- package/dist/react-document-preview.js.map +1 -1
- package/dist/react-document-preview.mjs +132 -80
- package/dist/react-document-preview.mjs.map +1 -1
- package/dist/react-document.d.mts +40 -4
- package/dist/react-document.d.ts +40 -4
- package/dist/react-document.js +444 -187
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +444 -187
- package/dist/react-document.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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 =
|
|
58
|
-
const restored =
|
|
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
|
|
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
|
|
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).
|