@pretextbook/web-editor 0.11.1 → 0.11.2

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.
@@ -41,6 +41,8 @@ interface CodeEditorProps {
41
41
  export interface CodeEditorHandle {
42
42
  /** Insert `text` at the current cursor position (or replace the selection). */
43
43
  insertAtCursor: (text: string) => void;
44
+ /** Move keyboard focus into the editor, ready for typing. */
45
+ focus: () => void;
44
46
  }
45
47
  /**
46
48
  * Monaco-based code editor with an attached toolbar.
@@ -10,6 +10,12 @@ export interface EditDraft {
10
10
  }
11
11
  export declare const SOURCE_FORMAT_LABELS: Record<SourceFormat, string>;
12
12
  export declare const TYPE_LABELS: Record<string, string>;
13
+ /**
14
+ * Short, lowercase, NCName-safe prefix for a division type, used to seed a
15
+ * brand-new division's `xml:id` (e.g. "ws-my-title" for a worksheet) — see
16
+ * SectionEditForm's title-to-id sync.
17
+ */
18
+ export declare const DIVISION_ID_PREFIXES: Record<DivisionType, string>;
13
19
  export declare const TYPE_FULL_LABELS: Record<string, string>;
14
20
  /** Division types that can be freely reordered (not positionally constrained). */
15
21
  export declare const REGULAR_DIVISION_TYPES: DivisionType[];