fika-editor 3.5.7 → 3.5.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.5.7",
5
- "generatedAt": "2026-11-02T20:18:44.543Z",
4
+ "packageVersion": "3.5.8",
5
+ "generatedAt": "2026-11-03T14:27:51.608Z",
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": {
@@ -1401,7 +1401,7 @@
1401
1401
  "name": "element",
1402
1402
  "type": "Partial<PPTTextElement>",
1403
1403
  "required": false,
1404
- "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."
1404
+ "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. When the user specifies a minimum, also set minFontSize in slide-coordinate pixels; auto-fit will never shrink below it. Make the box larger or split the content if the floor prevents fitting."
1405
1405
  }
1406
1406
  ],
1407
1407
  "examples": [
@@ -1412,7 +1412,7 @@
1412
1412
  ],
1413
1413
  "tips": [
1414
1414
  "Prefer slides.insertFromTemplate for whole slides. Markdown flavor: markdown-it + markdown-it-texmath (KaTeX). Write Markdown + `style`, not HTML — `style` covers font, size, color, bold and alignment, which is everything needed to match hand-styled neighbouring slides.",
1415
- "For a box that must stay a fixed size, set fixedHeight:true so the text auto-shrinks to fit instead of overflowing."
1415
+ "For a box that must stay a fixed size, set fixedHeight:true so the text auto-shrinks to fit. An explicit minFontSize is a hard floor; resolve remaining overflow by enlarging the box or splitting content."
1416
1416
  ],
1417
1417
  "related": [
1418
1418
  "text.setMarkdown",
@@ -2588,7 +2588,7 @@
2588
2588
  "FikaPlanCompositionResult": "export interface FikaPlanCompositionResult { plan: CompositionPlan; styleId: string; motif: FikaStyleMotif }",
2589
2589
  "FikaReplaceOptions": "export interface FikaReplaceOptions extends FikaSearchOptions { replaceAll?: boolean }",
2590
2590
  "FikaRichTextParagraphAttrs": "export interface FikaRichTextParagraphAttrs { align?: TextAlign | ''; indent?: number; textIndent?: number }",
2591
- "FikaRichTextStylePatch": "export type FikaRichTextStylePatch = Partial<Pick<PPTTextElement, 'defaultFontName' | 'defaultColor' | 'lineHeight' | 'paragraphSpace' | 'wordSpace' | 'inset' | 'vertical'>> & Partial<Pick<ShapeText, 'align'>>",
2591
+ "FikaRichTextStylePatch": "export type FikaRichTextStylePatch = Partial<Pick<PPTTextElement, 'defaultFontName' | 'defaultColor' | 'lineHeight' | 'paragraphSpace' | 'wordSpace' | 'inset' | 'vertical' | 'minFontSize'>> & Partial<Pick<ShapeText, 'align'>>",
2592
2592
  "FikaSearchOptions": "export interface FikaSearchOptions { caseSensitive?: boolean; regex?: boolean }",
2593
2593
  "FikaSearchReplaceResult": "export interface FikaSearchReplaceResult { count: number }",
2594
2594
  "FikaSearchResult": "export interface FikaSearchResult { slideId: string; elementId: string; elementType: PPTElement['type']; path: string; match: string; start?: number; end?: number; row?: number; col?: number }",
@@ -2660,11 +2660,11 @@
2660
2660
  "PPTMermaidElement": "export interface PPTMermaidElement extends PPTBaseElement { type: 'mermaid'; code: string }",
2661
2661
  "PPTShapeElement": "export interface PPTShapeElement extends PPTBaseElement { frame?: { clipContent: boolean }; type: 'shape'; viewBox: [number, number]; path: string; fixedRatio: boolean; fill: string; gradient?: Gradient; pattern?: string; outline?: PPTElementOutline; opacity?: number; flipH?: boolean; flipV?: boolean; shadow?: PPTElementShadow; special?: boolean; text?: ShapeText; pathFormula?: ShapePathFormulasKeys; keypoints?: number[] }",
2662
2662
  "PPTTableElement": "export interface PPTTableElement extends PPTBaseElement { type: 'table'; outline: PPTElementOutline; theme?: TableTheme; colWidths: number[]; cellMinHeight: number; data: TableCell[][] }",
2663
- "PPTTextElement": "export interface PPTTextElement extends PPTBaseElement { type: 'text'; content: string; defaultFontName: string; defaultColor: string; placeholder?: string; placeholderFontSize?: number; placeholderColor?: string; placeholderAlign?: TextAlign; placeholderBold?: boolean; placeholderItalic?: boolean; placeholderLayoutHeight?: number; outline?: PPTElementOutline; fill?: string; lineHeight?: number; wordSpace?: number; opacity?: number; shadow?: PPTElementShadow; paragraphSpace?: number; vertical?: boolean; textType?: TextType; inset?: TextInset; fixedHeight?: boolean; vAlign?: TextAlignVertical; structuredText?: StructuredTextBody }",
2663
+ "PPTTextElement": "export interface PPTTextElement extends PPTBaseElement { type: 'text'; content: string; defaultFontName: string; defaultColor: string; placeholder?: string; placeholderFontSize?: number; placeholderColor?: string; placeholderAlign?: TextAlign; placeholderBold?: boolean; placeholderItalic?: boolean; placeholderLayoutHeight?: number; outline?: PPTElementOutline; fill?: string; lineHeight?: number; wordSpace?: number; opacity?: number; shadow?: PPTElementShadow; paragraphSpace?: number; vertical?: boolean; textType?: TextType; inset?: TextInset; fixedHeight?: boolean; minFontSize?: number; vAlign?: TextAlignVertical; structuredText?: StructuredTextBody }",
2664
2664
  "PPTVideoElement": "export interface PPTVideoElement extends PPTBaseElement { type: 'video'; src: string; autoplay: boolean; poster?: string; ext?: string }",
2665
2665
  "SectionTag": "export interface SectionTag { id: string; title?: string }",
2666
2666
  "ShapePathFormulasKeys": "export declare const enum ShapePathFormulasKeys { ROUND_RECT = \"roundRect\", ROUND_RECT_DIAGONAL = \"roundRectDiagonal\", ROUND_RECT_SINGLE = \"roundRectSingle\", ROUND_RECT_SAMESIDE = \"roundRectSameSide\", CUT_RECT_DIAGONAL = \"cutRectDiagonal\", CUT_RECT_SINGLE = \"cutRectSingle\", CUT_RECT_SAMESIDE = \"cutRectSameSide\", CUT_ROUND_RECT = \"cutRoundRect\", MESSAGE = \"message\", ROUND_MESSAGE = \"roundMessage\", L = \"L\", RING_RECT = \"ringRect\", PLUS = \"plus\", TRIANGLE = \"triangle\", PARALLELOGRAM_LEFT = \"parallelogramLeft\", PARALLELOGRAM_RIGHT = \"parallelogramRight\", TRAPEZOID = \"trapezoid\", BULLET = \"bullet\", INDICATOR = \"indicator\", DONUT = \"donut\", DIAGSTRIPE = \"diagStripe\" }",
2667
- "ShapeText": "export interface ShapeText { content: string; defaultFontName: string; defaultColor: string; align: TextAlignVertical; lineHeight?: number; wordSpace?: number; paragraphSpace?: number; inset?: TextInset; type?: TextType; fixedHeight?: boolean }",
2667
+ "ShapeText": "export interface ShapeText { content: string; defaultFontName: string; defaultColor: string; align: TextAlignVertical; lineHeight?: number; wordSpace?: number; paragraphSpace?: number; inset?: TextInset; type?: TextType; fixedHeight?: boolean; minFontSize?: number }",
2668
2668
  "Slide": "export interface Slide { workspaceLabels?: WorkspaceLabel[]; canvasPosition?: { x: number; y: number }; canvasName?: string; id: string; elements: PPTElement[]; guides?: SlideGuide[]; notes?: Note[]; remark?: string; background?: SlideBackground; animations?: PPTAnimation[]; turningMode?: TurningMode; sectionTag?: SectionTag; type?: SlideType; sourcePackageId?: string; skeleton?: boolean }",
2669
2669
  "SlideBackground": "export interface SlideBackground { type: SlideBackgroundType; color?: string; image?: SlideBackgroundImage; gradient?: Gradient }",
2670
2670
  "SlideBackgroundImage": "export interface SlideBackgroundImage { src: string; size: SlideBackgroundImageSize }",