@sigma-studio/editor 0.467.1 → 0.468.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.
@@ -0,0 +1,14 @@
1
+ import type { SigmaDocument } from "@sigma-studio/viewer";
2
+ /** TeX fields from an entrance-exam problem form. Macros are shared across its areas. */
3
+ export interface TexProblemInput {
4
+ title: string;
5
+ prompt: string;
6
+ solution?: string;
7
+ hints?: string;
8
+ preamble?: string;
9
+ tags?: string[];
10
+ }
11
+ /** Convert a full .tex document or body fragment to validated SigmaDoc. */
12
+ export declare function importTexDocument(input: string, filename?: string): SigmaDocument;
13
+ /** Convert a problem's separate prompt and explanation fields to one SigmaDoc problem. */
14
+ export declare function importTexProblem(input: TexProblemInput): SigmaDocument;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigma-studio/editor",
3
- "version": "0.467.1",
3
+ "version": "0.468.0",
4
4
  "description": "Embeddable React editor for SigmaDoc teaching materials.",
5
5
  "keywords": [
6
6
  "sigma-studio",
@@ -51,7 +51,7 @@
51
51
  "prepack": "npm run build"
52
52
  },
53
53
  "dependencies": {
54
- "@sigma-studio/viewer": "0.467.1",
54
+ "@sigma-studio/viewer": "0.468.0",
55
55
  "zustand": "^5.0.15"
56
56
  },
57
57
  "peerDependencies": {