@lofcz/pptist 2.0.10 → 2.0.12
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@lofcz/pptist",
|
|
4
|
-
"packageVersion": "2.0.
|
|
5
|
-
"generatedAt": "2026-06-
|
|
4
|
+
"packageVersion": "2.0.12",
|
|
5
|
+
"generatedAt": "2026-06-02T06:38:48.529Z",
|
|
6
6
|
"summary": "Authoring guidance for the PPTist agentic bridge. The fast, reliable way to build a deck: (1) pick ONE built-in presentation template (the same styles as the template picker — template_1 … template_8) with deck.applyTemplate, (2) read templates.slidesCatalog for that template's slide slugs grouped by type (cover, contents, transition, content, end), then (3) insert slides with slides.insertFromTemplate and edit text via text.setMarkdown. Do NOT build decks from blank slides.create or hand-placed elements unless no template slide fits. Content is Markdown or plain text — never hand-written HTML. Pair this with the machine schema (command payload/return types) in the same manifest.",
|
|
7
7
|
"commandCount": 173,
|
|
8
8
|
"designSystem": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"commandCount": 18,
|
|
80
80
|
"title": "Slides",
|
|
81
81
|
"summary": "Insert slides from built-in templates (slides.insertFromTemplate); read, update, delete, duplicate, move, select; set background, transition and speaker remark.",
|
|
82
|
-
"whenToUse": "Prefer slides.insertFromTemplate (one call per slide). After insert, use text.setMarkdown on the returned
|
|
82
|
+
"whenToUse": "Prefer slides.insertFromTemplate (one call per slide). After insert, use text.setMarkdown on the returned placeholderElementIds/textElementIds. Avoid slides.create for deck building."
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"id": "elements",
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
"returns": "PptistInsertFromTemplateResult",
|
|
466
466
|
"doc": {
|
|
467
467
|
"summary": "Insert a designed slide from a built-in template by slug. The PREFERRED way to add a slide.",
|
|
468
|
-
"details": "Clones the template slide (layout, decor, placeholder text boxes) into the deck. You do NOT pick coordinates or sizes. After insert, fill placeholders with text.setMarkdown on the returned
|
|
468
|
+
"details": "Clones the template slide (layout, decor, placeholder text boxes) into the deck. You do NOT pick coordinates or sizes. After insert, fill placeholders with text.setMarkdown on the returned placeholderElementIds (or textElementIds). Do not create new text boxes on top of an unfilled placeholder; Office-style placeholders show their prompt until that same placeholder is filled.",
|
|
469
469
|
"params": [
|
|
470
470
|
{
|
|
471
471
|
"name": "templateId",
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
],
|
|
505
505
|
"tips": [
|
|
506
506
|
"Plan slide flow: cover → contents → content slides → end. Match slug descriptions from slidesCatalog.",
|
|
507
|
-
"After insert, batch text.setMarkdown calls for each
|
|
507
|
+
"After insert, batch text.setMarkdown calls for each placeholderElementIds entry that should contain slide copy. Empty placeholders intentionally keep their Office-style prompt."
|
|
508
508
|
],
|
|
509
509
|
"related": [
|
|
510
510
|
"templates.slidesCatalog",
|
|
@@ -1635,7 +1635,7 @@
|
|
|
1635
1635
|
"2. Apply it once: deck.applyTemplate({ templateId:'template_1' }). This sets the deck theme. Do not hand-pick colors or fonts after this.",
|
|
1636
1636
|
"3. Read templates.slidesCatalog({ templateId }) — slides are grouped by type: cover, contents, transition, content, end. Each entry has a slug and description.",
|
|
1637
1637
|
"4. For each slide in your outline, call slides.insertFromTemplate({ templateId, slug }) with the slug that best matches (e.g. cover_1 for title, contents_1 for agenda, content_2 for a text+image slide).",
|
|
1638
|
-
"5. Use the returned
|
|
1638
|
+
"5. Use the returned placeholderElementIds/textElementIds: batch text.setMarkdown (or text.update) to replace placeholder copy. Do not add separate text boxes over placeholders. Author Markdown/plain text only — never HTML.",
|
|
1639
1639
|
"6. After creating or editing a slide, look at the auto-screenshot. Fix overflow and literal markup before moving on.",
|
|
1640
1640
|
"7. Only use slides.create + manual elements when no template slide in the catalog fits."
|
|
1641
1641
|
]
|
|
@@ -1821,7 +1821,7 @@
|
|
|
1821
1821
|
"PptistInsertElementsInput": "export interface PptistInsertElementsInput { slideId?: string; index?: number; elements: PPTElement | PPTElement[]; animations?: PPTAnimation[]; offset?: number | { left?: number; top?: number }; select?: boolean; preserveExternalSlideLinks?: boolean; slideIdMap?: PptistIdMap }",
|
|
1822
1822
|
"PptistInsertElementsResult": "export interface PptistInsertElementsResult { slideId: string; elements: PPTElement[]; animations: PPTAnimation[]; remap: Omit<PptistIdRemap, 'slideIds'> & { slideIds?: PptistIdMap } }",
|
|
1823
1823
|
"PptistInsertFromTemplateInput": "export interface PptistInsertFromTemplateInput { templateId: string; slug: string; index?: number; select?: boolean; applyTemplateTheme?: boolean }",
|
|
1824
|
-
"PptistInsertFromTemplateResult": "export interface PptistInsertFromTemplateResult { slideId: string; templateId: string; slug: string; elementIds: string[] }",
|
|
1824
|
+
"PptistInsertFromTemplateResult": "export interface PptistInsertFromTemplateResult { slideId: string; templateId: string; slug: string; elementIds: string[]; textElementIds: string[]; placeholderElementIds: string[] }",
|
|
1825
1825
|
"PptistInsertSlidesInput": "export interface PptistInsertSlidesInput { slides: Slide | Slide[]; index?: number; select?: boolean; preserveExternalSlideLinks?: boolean }",
|
|
1826
1826
|
"PptistInsertSlidesResult": "export interface PptistInsertSlidesResult { slides: Slide[]; remap: PptistIdRemap }",
|
|
1827
1827
|
"PptistJsonPrimitive": "export type PptistJsonPrimitive = string | number | boolean | null",
|