fika-editor 3.6.6 → 3.6.8

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": "fika-editor",
4
- "packageVersion": "3.6.6",
5
- "generatedAt": "2026-11-07T22:27:37.516Z",
4
+ "packageVersion": "3.6.8",
5
+ "generatedAt": "2026-11-10T15:11:49.008Z",
6
6
  "summary": "Authoring guidance for the Fika agentic bridge. SLIDE NUMBERS START AT 1 everywhere: payload.index, result.data.slideIndex, screenshot.slideIndex, getState().slideIndex, selectedSlideIndexes, plan.slides[].index, and plan.loudIndex are the SAME 1-based number — never subtract or add 1. First slide = 1; last existing = slideCount; omit index to append; index === slideCount+1 also appends; 1 ≤ index ≤ slideCount on createFromLayout REPLACES that slide. The recommended way to build a deck from scratch: (1) ONE bootstrap call deck.setup({ styleId, slideCount, title? }) — applies the visual identity, returns the composition plan (anchors + loud slide), and optionally builds the title slide together; prefer this over separate styles.catalog / deck.applyStyle / deck.planComposition, then (2) for each slide pick a recipe + visual variant from layouts.catalog and add it with slides.createFromLayout({ layoutId, variantId, slots }), preferring a variant whose anchor matches the plan (when variantId is omitted the engine picks a filled/full-width match; an explicit variantId is kept). The engine themes, positions, sanitizes slot markers the layout already draws, AND auto-fits every text box (via responsive measurement) so content does not overflow, and it runs a deterministic QA pass on each slide (overlap / contrast / density / monotony) so you can fix issues in the same turn. Author slot content as Markdown/plain text or structured values (arrays for bullets, { labels, series } for charts) — never hand-written HTML. Host-registered templates (deck.applyTemplate + slides.insertFromTemplate) are optional when the embed host supplies them. Avoid blank slides.create / hand-placed elements unless no layout fits. Pair this with the machine schema (command payload/return types) in the same manifest.",
7
7
  "commandCount": 201,
8
8
  "designSystem": {
@@ -793,6 +793,7 @@
793
793
  "await controller.slides.createFromLayout({ layoutId:'title', slots:{ title:'Quarterly Review', subtitle:'Results and outlook', eyebrow:'2026 Q1' } })",
794
794
  "await controller.slides.createFromLayout({ layoutId:'bullets', variantId:'leftRail', slots:{ title:'Key points', bullets:['First point','Second point','Third point'] } })",
795
795
  "await controller.slides.createFromLayout({ layoutId:'cards', variantId:'accentPanel', slots:{ title:'Three pillars', cards:[{ heading:'Speed', body:'Sub-second responses' },{ heading:'Scale', body:'Millions of users' },{ heading:'Safety', body:'Private by default' }] } })",
796
+ "await controller.slides.createFromLayout({ layoutId:'cards', slots:{ title:'Places to visit', cards:[{ heading:'Litomyšl Castle', body:'UNESCO site', image:{ src:'https://…/castle.jpg', sourceUrl:'https://…' } },{ heading:'Kunětická hora', body:'Gothic castle', image:{ src:'https://…/hill.jpg' } },{ heading:'Veselý Kopec', body:'Open-air museum', image:{ src:'https://…/museum.jpg' } }] } })",
796
797
  "await controller.slides.createFromLayout({ layoutId:'numbered', variantId:'rightRail', slots:{ title:'How it works', steps:[{ heading:'Collect', body:'Gather the inputs' },{ heading:'Process', body:'Run the model' },{ heading:'Deliver', body:'Return the result' }] } })",
797
798
  "await controller.slides.createFromLayout({ layoutId:'imageFull', slots:{ image:'https://…/photo.jpg', title:'The coastline at dawn', subtitle:'Field site, 2026' } })",
798
799
  "await controller.slides.createFromLayout({ layoutId:'chart', variantId:'inset', slots:{ title:'Revenue by region', chartType:'column', labels:['North','South','East'], series:[[12,28,41]] } })"
@@ -802,7 +803,7 @@
802
803
  "Prefer deck.setup({ styleId, slideCount }) once, then createFromLayout per slide. Separate applyStyle + planComposition is legacy.",
803
804
  "Pick a variant whose anchor matches plan.slides[i].anchor when you can. If you omit variantId, the engine picks a filled/full-width match (never an empty-rail by default). If you pass a variantId, it is KEPT even when the anchor drifts — CompositionDrift is soft; do not rebuild for drift alone.",
804
805
  "VARY the layout family to match the content: 'cards' for parallel items, 'numbered' for ordered steps, 'bigStat'/'chart' for data, 'quote'/'imageFull' for impact, 'imageText'/'twoColumn' for explanation next to a visual. A deck where every slide is 'bullets' (or every slide is 'cards') is the look to avoid. The engine warns with LayoutRepeat when a body layout directly repeats the previous one and LayoutMonotony when one family fills 3 of the last 4 body slides — keep the slide, build the NEXT ones from a different family.",
805
- "Every 3–4 slides give the audience a real picture: 'imageText' or 'imageFull' with image:{src,sourceUrl} from image search. Decks of pure typography read as notes, not as a presentation.",
806
+ "Every 3–4 slides give the audience a real picture: 'imageText' or 'imageFull' with image:{src,sourceUrl} from image search. Several pictured subjects of one kind (places, people, objects, works) go on ONE 'cards' slide with an image per card — a photo grid instead of a text list. Decks of pure typography read as notes, not as a presentation.",
806
807
  "Rail/offset variants (leftRail/rightRail/leftOffset/rightOffset) are ONLY for short/sparse content (≤3 short items). Dense copy auto-collapses to full width. Prefer standard/grid/accentPanel/even for real teaching content.",
807
808
  "Slot sanitization is automatic: bullet/step markers the layout already draws are stripped. For numbered, pass heading WITHOUT '1.'/'2.' — chips are drawn for you. Prefer leftBullets/rightBullets arrays over markdown lists in *Body (body lists are coerced).",
808
809
  "The style MOTIF (e.g. academic doubleRule) is drawn only on feature/hero slides (title/section/closing). Content layouts (cards/bullets/twoColumn/numbered/…) intentionally omit it — their own chrome (card tops, chips, columns) is the accent.",