@pretextbook/web-editor 0.5.4 → 0.6.0
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/dist/components/AssetManagerModal.d.ts +8 -3
- package/dist/components/Editors.d.ts +19 -4
- package/dist/index.es.js +3690 -510
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/sectionUtils.d.ts +1 -0
- package/dist/store/editorStore.d.ts +1 -0
- package/package.json +2 -2
package/dist/sectionUtils.d.ts
CHANGED
|
@@ -366,3 +366,4 @@ export declare function assembleFullProjectSource(divisions: Division[], rootXml
|
|
|
366
366
|
* document shape.
|
|
367
367
|
*/
|
|
368
368
|
export declare function wrapDivisionForPreview(divisionType: DivisionType, divisionXml: string, docinfo: string, wrapperTitle: string): string;
|
|
369
|
+
export declare function normalizeDivisionsOnLoad(divisions: Division[], rootDivisionId: string | undefined, projectType: "article" | "book" | undefined): Division[];
|
|
@@ -30,6 +30,7 @@ import type { Asset, FeedbackSubmission, SourceFormat } from "../types/editor";
|
|
|
30
30
|
import type { Division, DivisionType } from "../types/sections";
|
|
31
31
|
import type { EditDraft } from "../components/toc/types";
|
|
32
32
|
export type DivisionChanges = {
|
|
33
|
+
id?: string;
|
|
33
34
|
title?: string;
|
|
34
35
|
type?: DivisionType;
|
|
35
36
|
xmlId?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pretextbook/web-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A web-based editor for PreTeXt documents, with simple preview functionality",
|
|
6
6
|
"keywords": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@pretextbook/completions": "^0.0.3",
|
|
53
53
|
"@pretextbook/format": "^0.2.0",
|
|
54
54
|
"@pretextbook/latex-pretext": "^0.0.10",
|
|
55
|
-
"@pretextbook/remark-pretext": "^0.0.
|
|
55
|
+
"@pretextbook/remark-pretext": "^0.0.6",
|
|
56
56
|
"@pretextbook/visual-editor": "^0.0.6",
|
|
57
57
|
"@tailwindcss/vite": "^4.1.18",
|
|
58
58
|
"react-resizable-panels": "^4.11.2",
|