fika-editor 3.4.7 → 3.5.0
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
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"packageVersion": "3.5.0",
|
|
5
|
+
"generatedAt": "2026-10-24T19:04:58.661Z",
|
|
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": {
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"returns": "FikaCanvasApplyResult",
|
|
252
252
|
"doc": {
|
|
253
253
|
"summary": "Create or edit a canvas using up to 100 compact operations in one undoable transaction.",
|
|
254
|
-
"details": "Operations: title, viewport, page, pageUpdate, text, shape, element, update, remove. Explicit page and element IDs allow references later in the same call. Text uses Markdown and fixed-size boxes. Rich native elements and frames use element/update. The first page operation replaces an untouched unnamed empty starter. Failure rolls back the entire call. Returns only operation names and IDs, never image data or complete elements."
|
|
254
|
+
"details": "Operations: title, viewport, page, pageUpdate, text, textUpdate, shape, image, element, update, remove. Explicit page and element IDs allow references later in the same call. Text uses Markdown and fixed-size boxes. image takes src, x/y/width/height, natural:{width,height}, optional sourceUrl and fit:contain|cover. It preserves aspect ratio; contain (default) keeps the entire subject visible, cover crops to fill the box. Rich native elements and frames use element/update. The first page operation replaces an untouched unnamed empty starter. Failure rolls back the entire call. Returns only operation names and IDs, never image data or complete elements."
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
{
|
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
"FikaBridgeState": "export interface FikaBridgeState { title: string; slideIndex: number; slideCount: number; currentSlideId?: string; selectedSlideIndexes: number[]; selectedElementIds: string[]; handleElementId: string; activeGroupElementId: string; hiddenElementIds: string[]; viewportSize: number; viewportRatio: number; canvasScale: number; canvasPercentage: number; screening: boolean; canUndo: boolean; canRedo: boolean; documentVersion: number; locale?: Locales }",
|
|
2535
2535
|
"FikaCanvasApplyResult": "export interface FikaCanvasApplyResult { results: Array<{ op: FikaCanvasOperation['op']; id?: string; pageId?: string }> }",
|
|
2536
2536
|
"FikaCanvasContext": "export interface FikaCanvasContext { viewport: { width: number; height: number }; activePageId?: string; selectedIds: string[]; pageCount: number; pages: Array<{ id: string; name?: string; x: number; y: number; elementCount: number }>; pageId?: string; elementCount: number; offset: number; nextOffset?: number; elements: Array<{ id: string; type: string; name?: string; x: number; y: number; width: number; height?: number; parentFrameId?: string; groupId?: string; frame?: { clipContent: boolean }; text?: string }> }",
|
|
2537
|
-
"FikaCanvasOperation": "export type FikaCanvasOperation = { op: 'title'; title: string } | { op: 'viewport'; width: number; height: number } | { op: 'page'; id?: string; name?: string; x?: number; y?: number; background?: string } | { op: 'pageUpdate'; id: string; patch: Partial<Slide> } | { op: 'text'; pageId?: string; id?: string; x: number; y: number; width: number; height: number; text: string; fontSize?: number; fontName?: string; color?: string; bold?: boolean; align?: 'left' | 'center' | 'right' | 'justify' } | { op: 'textUpdate'; pageId?: string; id: string; text: string; style?: TextRunStyle } | { op: 'shape'; pageId?: string; id?: string; x: number; y: number; width: number; height: number; shape: 'rect' | 'ellipse'; fill?: string }
|
|
2537
|
+
"FikaCanvasOperation": "export type FikaCanvasOperation = { op: 'title'; title: string } | { op: 'viewport'; width: number; height: number } | { op: 'page'; id?: string; name?: string; x?: number; y?: number; background?: string } | { op: 'pageUpdate'; id: string; patch: Partial<Slide> } | { op: 'text'; pageId?: string; id?: string; x: number; y: number; width: number; height: number; text: string; fontSize?: number; fontName?: string; color?: string; bold?: boolean; align?: 'left' | 'center' | 'right' | 'justify' } | { op: 'textUpdate'; pageId?: string; id: string; text: string; style?: TextRunStyle } | { op: 'shape'; pageId?: string; id?: string; x: number; y: number; width: number; height: number; shape: 'rect' | 'ellipse'; fill?: string }",
|
|
2538
2538
|
"FikaChartElementPatch": "export interface FikaChartElementPatch { chartType?: ChartType; data?: ChartData; options?: ChartOptions; fill?: PPTChartElement['fill']; outline?: Partial<NonNullable<PPTChartElement['outline']>>; themeColors?: string[]; textColor?: string; lineColor?: string }",
|
|
2539
2539
|
"FikaCreateAudioInput": "export interface FikaCreateAudioInput extends FikaAudioElementPatch { id?: string; source?: FikaAudioSourceInput; slideId?: string; index?: number; select?: boolean }",
|
|
2540
2540
|
"FikaCreateChartInput": "export type FikaCreateChartInput = FikaChartElementPatch & Partial<Pick<PPTChartElement, 'id' | 'left' | 'top' | 'width' | 'height' | 'rotate'>> & { slideId?: string; index?: number; select?: boolean }",
|