@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.
@@ -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.5.4",
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.5",
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",