@lofcz/pptist 2.0.19 → 2.0.21

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 (62) hide show
  1. package/dist/embed/agentic-manifest.json +7 -5
  2. package/dist/embed/chunks/mathlive.min-Bl0OCKCJ.js +39046 -0
  3. package/dist/embed/chunks/texmath-Ca6UVlA5.js +215 -0
  4. package/dist/embed/fonts/KaTeX_AMS-400-normal-34494743.woff2 +0 -0
  5. package/dist/embed/fonts/KaTeX_Caligraphic-400-normal-9f8077e0.woff2 +0 -0
  6. package/dist/embed/fonts/KaTeX_Caligraphic-700-normal-5bfa49ca.woff2 +0 -0
  7. package/dist/embed/fonts/KaTeX_Fraktur-400-normal-a5764c6e.woff2 +0 -0
  8. package/dist/embed/fonts/KaTeX_Fraktur-700-normal-f98f8927.woff2 +0 -0
  9. package/dist/embed/fonts/KaTeX_Main-400-italic-c9b2b5ff.woff2 +0 -0
  10. package/dist/embed/fonts/KaTeX_Main-400-normal-c884086c.woff2 +0 -0
  11. package/dist/embed/fonts/KaTeX_Main-700-italic-a4a4905b.woff2 +0 -0
  12. package/dist/embed/fonts/KaTeX_Main-700-normal-31050a1b.woff2 +0 -0
  13. package/dist/embed/fonts/KaTeX_Math-400-italic-db4883d0.woff2 +0 -0
  14. package/dist/embed/fonts/KaTeX_Math-700-italic-8fcb9d2d.woff2 +0 -0
  15. package/dist/embed/fonts/KaTeX_SansSerif-400-italic-3d5fa3cb.woff2 +0 -0
  16. package/dist/embed/fonts/KaTeX_SansSerif-400-normal-e45d5f4f.woff2 +0 -0
  17. package/dist/embed/fonts/KaTeX_SansSerif-700-normal-886e6179.woff2 +0 -0
  18. package/dist/embed/fonts/KaTeX_Script-400-normal-63b80959.woff2 +0 -0
  19. package/dist/embed/fonts/KaTeX_Size1-400-normal-57fa5999.woff2 +0 -0
  20. package/dist/embed/fonts/KaTeX_Size2-400-normal-ee187136.woff2 +0 -0
  21. package/dist/embed/fonts/KaTeX_Size3-400-normal-19a7caad.woff2 +0 -0
  22. package/dist/embed/fonts/KaTeX_Size4-400-normal-9bed17fb.woff2 +0 -0
  23. package/dist/embed/fonts/KaTeX_Typewriter-400-normal-7a08883f.woff2 +0 -0
  24. package/dist/embed/pptist-embed.css +1 -1
  25. package/dist/embed/pptist-embed.js +79107 -78657
  26. package/dist/types/embed/mount.d.ts +2 -0
  27. package/dist/types/i18n/i18n-types.d.ts +36 -0
  28. package/dist/types/main.d.ts +2 -0
  29. package/dist/types/utils/emitter.d.ts +21 -1
  30. package/dist/types/utils/katex-stub.d.ts +15 -0
  31. package/dist/types/utils/markdown.d.ts +1 -1
  32. package/dist/types/utils/math.d.ts +57 -0
  33. package/dist/types/utils/prosemirror/schema/index.d.ts +1 -0
  34. package/dist/types/utils/prosemirror/schema/nodes.d.ts +1 -0
  35. package/dist/types/utils/textFit.d.ts +73 -0
  36. package/dist/types/views/Editor/InlineMathEditorDialog.vue.d.ts +3 -0
  37. package/dist/types/views/components/element/TableElement/utils.d.ts +10 -0
  38. package/dist/types/views/components/element/hooks/useTextFit.d.ts +18 -0
  39. package/package.json +2 -2
  40. package/dist/embed/chunks/katex-CYXlUYaK.js +0 -21817
  41. package/dist/embed/chunks/texmath-By1nWhxV.js +0 -22173
  42. /package/dist/embed/fonts/{AlibabaPuHuiTi.woff2 → AlibabaPuHuiTi-6313a86b.woff2} +0 -0
  43. /package/dist/embed/fonts/{DeYiHei.woff2 → DeYiHei-b28e2636.woff2} +0 -0
  44. /package/dist/embed/fonts/{Inter.woff2 → Inter-4074cf0a.woff2} +0 -0
  45. /package/dist/embed/fonts/{JetBrainsMono.woff2 → JetBrainsMono-a4e25a97.woff2} +0 -0
  46. /package/dist/embed/fonts/{LXGWNeoXiHei.woff2 → LXGWNeoXiHei-60b0871c.woff2} +0 -0
  47. /package/dist/embed/fonts/{LXGWNeoZhiSong.woff2 → LXGWNeoZhiSong-9aaae14d.woff2} +0 -0
  48. /package/dist/embed/fonts/{LXGWWenKai.woff2 → LXGWWenKai-f26bb608.woff2} +0 -0
  49. /package/dist/embed/fonts/{Lato.woff2 → Lato-90c2b482.woff2} +0 -0
  50. /package/dist/embed/fonts/{Literata.woff2 → Literata-31359124.woff2} +0 -0
  51. /package/dist/embed/fonts/{Merriweather.woff2 → Merriweather-40d48271.woff2} +0 -0
  52. /package/dist/embed/fonts/{MiSans.woff2 → MiSans-1b1362c0.woff2} +0 -0
  53. /package/dist/embed/fonts/{Montserrat.woff2 → Montserrat-3f6c7436.woff2} +0 -0
  54. /package/dist/embed/fonts/{OpenSans.woff2 → OpenSans-1f8c4a74.woff2} +0 -0
  55. /package/dist/embed/fonts/{Roboto.woff2 → Roboto-8df37b32.woff2} +0 -0
  56. /package/dist/embed/fonts/{SourceHanSans.woff2 → SourceHanSans-639ce484.woff2} +0 -0
  57. /package/dist/embed/fonts/{SourceHanSerif.woff2 → SourceHanSerif-076e69d8.woff2} +0 -0
  58. /package/dist/embed/fonts/{SourceSansPro.woff2 → SourceSansPro-2e5c488e.woff2} +0 -0
  59. /package/dist/embed/fonts/{SourceSerif4.woff2 → SourceSerif4-e250b371.woff2} +0 -0
  60. /package/dist/embed/fonts/{WenDingPLKaiTi.woff2 → WenDingPLKaiTi-8c595bad.woff2} +0 -0
  61. /package/dist/embed/fonts/{WenDingPLSongTi.woff2 → WenDingPLSongTi-99ca3c11.woff2} +0 -0
  62. /package/dist/embed/fonts/{ZhuQueFangSong.woff2 → ZhuQueFangSong-f53fc6b0.woff2} +0 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@lofcz/pptist",
4
- "packageVersion": "2.0.19",
5
- "generatedAt": "2026-06-19T20:21:30.717Z",
4
+ "packageVersion": "2.0.21",
5
+ "generatedAt": "2026-06-22T12:53:13.942Z",
6
6
  "summary": "Authoring guidance for the PPTist agentic bridge. The recommended way to build a deck from scratch: (1) pick ONE visual identity with styles.catalog -> deck.applyStyle (academic | minimal | bold | playful), then (2) for each slide pick a recipe from layouts.catalog and add it with slides.createFromLayout({ layoutId, slots }) — the engine themes, positions AND auto-fits every text box (via responsive measurement) so content never overflows. Author slot content as Markdown/plain text or structured values (arrays for bullets, { labels, series } for charts) — never hand-written HTML. Alternative: for pixel-perfect branded decks, use the built-in templates flow (deck.applyTemplate + slides.insertFromTemplate). Avoid blank slides.create / hand-placed elements unless neither a layout nor a template slide fits. Pair this with the machine schema (command payload/return types) in the same manifest.",
7
7
  "commandCount": 177,
8
8
  "designSystem": {
@@ -1051,15 +1051,17 @@
1051
1051
  "name": "element",
1052
1052
  "type": "Partial<PPTTextElement>",
1053
1053
  "required": false,
1054
- "description": "Geometry/styling: left, top, width, height, rotate, defaultColor, defaultFontName, lineHeight, wordSpace, fill."
1054
+ "description": "Geometry/styling: left, top, width, height, rotate, defaultColor, defaultFontName, lineHeight, wordSpace, fill. Set fixedHeight:true (optionally vAlign:'top'|'middle'|'bottom') to lock the box to its height: the font then auto-fits (shrinks) so the text never overflows the region — the same guarantee layouts give."
1055
1055
  }
1056
1056
  ],
1057
1057
  "examples": [
1058
1058
  "controller.text.create({ slideId, markdown: '**Key finding:** treated group improved 18%', element: { left:520, top:130, width:440, height:300, rotate:0, defaultColor:'#2D2D2D' } })",
1059
- "controller.text.create({ slideId, markdown: '- First point\\n- Second point\\n- Third point', element:{ left:40, top:140, width:920, height:300, rotate:0 } })"
1059
+ "controller.text.create({ slideId, markdown: '- First point\\n- Second point\\n- Third point', element:{ left:40, top:140, width:920, height:300, rotate:0 } })",
1060
+ "controller.text.create({ slideId, markdown: 'Vertically centered, never overflows', element:{ left:80, top:120, width:360, height:200, rotate:0, fixedHeight:true, vAlign:'middle' } })"
1060
1061
  ],
1061
1062
  "tips": [
1062
- "Prefer slides.insertFromTemplate for whole slides. Markdown flavor: markdown-it + markdown-it-texmath (KaTeX). Write Markdown, not HTML."
1063
+ "Prefer slides.insertFromTemplate for whole slides. Markdown flavor: markdown-it + markdown-it-texmath (KaTeX). Write Markdown, not HTML.",
1064
+ "For a box that must stay a fixed size, set fixedHeight:true so the text auto-shrinks to fit instead of overflowing."
1063
1065
  ],
1064
1066
  "related": [
1065
1067
  "text.setMarkdown",