regen.mde 0.8.0 → 0.8.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.
Files changed (45) hide show
  1. package/LICENSE +16 -16
  2. package/README.md +2 -1
  3. package/bin/build-corpus-editor.js +83 -83
  4. package/bin/build-corpus.js +41 -41
  5. package/bin/regen-mdeditor-install.js +27 -27
  6. package/bin/regen-mdeditor-uninstall.js +19 -19
  7. package/bin/validate-katex.js +93 -93
  8. package/desktop/BuildCorpusEditor/BuildCorpusEditor.csproj +22 -22
  9. package/desktop/BuildCorpusEditor/EditorForm.cs +48 -0
  10. package/desktop/BuildCorpusEditor/app.manifest +16 -16
  11. package/dist/release/{regen-mde-0.8.0-win-x64.zip → regen-mde-0.6.1-win-x64.zip} +0 -0
  12. package/dist/release/regen-mde-0.8.2-win-x64.zip +0 -0
  13. package/dist/windows-editor/BuildCorpusEditor.dll +0 -0
  14. package/dist/windows-editor/BuildCorpusEditor.exe +0 -0
  15. package/dist/windows-editor/BuildCorpusEditor.pdb +0 -0
  16. package/dist/windows-editor/wwwroot/assets/{index-C_VxJk4k.js → index-BB0sbZaD.js} +107 -107
  17. package/dist/windows-editor/wwwroot/assets/index-CtOv7qsC.css +1 -0
  18. package/dist/windows-editor/wwwroot/index.html +22 -22
  19. package/editor-web/index.html +21 -21
  20. package/editor-web/src/main.jsx +91 -53
  21. package/editor-web/src/styles.css +65 -1
  22. package/editor-web/vite.config.js +13 -13
  23. package/examples/build-corpus.config.example.json +21 -21
  24. package/installer/install-regen-mde.ps1 +214 -214
  25. package/installer/regen-mde.nsi +81 -81
  26. package/package.json +1 -1
  27. package/pyproject.toml +1 -1
  28. package/scripts/build-windows-editor.ps1 +47 -47
  29. package/scripts/package-windows-editor.ps1 +90 -90
  30. package/scripts/run-corpus.ps1 +28 -28
  31. package/scripts/run-editor-implementation-plane.ps1 +226 -226
  32. package/scripts/run-required-tests.ps1 +98 -98
  33. package/scripts/run-smoke.ps1 +28 -28
  34. package/src/build_corpus/__init__.py +3 -3
  35. package/src/build_corpus/docx_exporter.py +10 -4
  36. package/src/build_corpus/equations.py +1345 -1345
  37. package/src/build_corpus/templates/__init__.py +1 -1
  38. package/src/build_corpus/validate_assets.py +46 -46
  39. package/tools/audit_corpus.py +203 -203
  40. package/tools/collect_microsoft_word_templates.py +228 -228
  41. package/tools/collect_online_docx_corpus.py +272 -272
  42. package/tools/collect_online_pptx_corpus.py +252 -252
  43. package/tools/compare_pptx_inputs_outputs.py +87 -87
  44. package/tools/roundtrip_docx_corpus.py +171 -171
  45. package/dist/windows-editor/wwwroot/assets/index-Wt9zSjIw.css +0 -1
@@ -646,6 +646,54 @@ console.log("style fixture");
646
646
  })()
647
647
  """);
648
648
 
649
+ await AssertControlStepAsync("side panels collapse clicks", """
650
+ (() => {
651
+ const canvas = document.querySelector(".canvas-wrap");
652
+ const left = document.querySelector(".left-panel");
653
+ const right = document.querySelector(".right-panel");
654
+ if (!canvas || !left || !right) throw new Error("Panel collapse elements missing.");
655
+ const before = canvas.getBoundingClientRect().width;
656
+ document.querySelector('button[aria-label="Collapse Document Flow panel"]')?.click();
657
+ document.querySelector('button[aria-label="Collapse Output Health panel"]')?.click();
658
+ window.__REGEN_PANEL_BEFORE = before;
659
+ return `collapse clicks scheduled from ${before}`;
660
+ })()
661
+ """);
662
+ await Task.Delay(250);
663
+ await AssertControlStepAsync("side panels collapse without focus", """
664
+ (() => {
665
+ const shell = document.querySelector(".app-shell");
666
+ const canvas = document.querySelector(".canvas-wrap");
667
+ const left = document.querySelector(".left-panel");
668
+ const right = document.querySelector(".right-panel");
669
+ if (!shell || !canvas || !left || !right) throw new Error("Panel collapse elements missing.");
670
+ const before = Number(window.__REGEN_PANEL_BEFORE || 0);
671
+ if (!shell.classList.contains("left-collapsed") || !shell.classList.contains("right-collapsed")) {
672
+ throw new Error("Panel collapse classes were not applied.");
673
+ }
674
+ if (!left.classList.contains("collapsed") || !right.classList.contains("collapsed")) {
675
+ throw new Error("Panel elements were not marked collapsed.");
676
+ }
677
+ const after = canvas.getBoundingClientRect().width;
678
+ if (after <= before + 120) throw new Error(`Editor canvas did not reclaim enough width: ${before} -> ${after}`);
679
+ document.querySelector('button[aria-label="Expand Document Flow panel"]')?.click();
680
+ document.querySelector('button[aria-label="Expand Output Health panel"]')?.click();
681
+ window.__REGEN_PANEL_AFTER = after;
682
+ return `panels collapsed: ${before} -> ${after}`;
683
+ })()
684
+ """);
685
+ await Task.Delay(250);
686
+ await AssertControlStepAsync("side panels expand without focus", """
687
+ (() => {
688
+ const shell = document.querySelector(".app-shell");
689
+ if (!shell) throw new Error("Panel collapse shell missing.");
690
+ if (shell.classList.contains("left-collapsed") || shell.classList.contains("right-collapsed")) {
691
+ throw new Error("Panel expand did not restore the app shell.");
692
+ }
693
+ return `panels expanded after ${window.__REGEN_PANEL_AFTER}`;
694
+ })()
695
+ """);
696
+
649
697
  if (!File.Exists(markdownOutput) || !File.ReadAllText(markdownOutput).Contains("UI save-as edit marker", StringComparison.Ordinal))
650
698
  {
651
699
  throw new InvalidOperationException("Save MD As did not write the smoke Markdown output.");
@@ -1,16 +1,16 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
- <assemblyIdentity version="1.0.0.0" name="LifeAI.BuildCorpusEditor.app"/>
4
- <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5
- <security>
6
- <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7
- <requestedExecutionLevel level="asInvoker" uiAccess="false" />
8
- </requestedPrivileges>
9
- </security>
10
- </trustInfo>
11
- <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
12
- <application>
13
- <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
14
- </application>
15
- </compatibility>
16
- </assembly>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
+ <assemblyIdentity version="1.0.0.0" name="LifeAI.BuildCorpusEditor.app"/>
4
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5
+ <security>
6
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7
+ <requestedExecutionLevel level="asInvoker" uiAccess="false" />
8
+ </requestedPrivileges>
9
+ </security>
10
+ </trustInfo>
11
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
12
+ <application>
13
+ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
14
+ </application>
15
+ </compatibility>
16
+ </assembly>