fika-editor 3.6.11 → 3.6.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.
- package/dist/embed/agentic-manifest.json +30 -12
- package/dist/embed/fika-embed.js +3 -3
- package/dist/types/embed/agentic/templates.d.ts +8 -7
- package/dist/types/embed/agentic/types.d.ts +5 -5
- package/dist/types/embed/types.d.ts +3 -3
- package/dist/types/i18n/i18n-react.d.ts +10 -10
- package/dist/types/i18n/i18n-types.d.ts +6392 -6392
- package/dist/types/i18n/i18n-util.async.d.ts +5 -5
- package/dist/types/i18n/i18n-util.d.ts +5 -5
- package/dist/types/store/slides.d.ts +10 -0
- package/dist/types/types/slides.d.ts +10 -0
- package/docs/AGENTIC_BRIDGE.md +26 -1
- package/docs/EMBED.md +29 -0
- package/package.json +1 -1
- /package/dist/types/views/Myna/{workspaceLabels.d.ts → workspaceLabelGeometry.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "fika-editor",
|
|
4
|
-
"packageVersion": "3.6.
|
|
5
|
-
"generatedAt": "2026-11-
|
|
4
|
+
"packageVersion": "3.6.12",
|
|
5
|
+
"generatedAt": "2026-11-24T04:32:16.244Z",
|
|
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": {
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
}
|
|
432
432
|
],
|
|
433
433
|
"examples": [
|
|
434
|
-
"await controller.deck.applyTemplate(templates.catalog()[0].id)"
|
|
434
|
+
"await controller.deck.applyTemplate(controller.templates.catalog()[0].id)"
|
|
435
435
|
],
|
|
436
436
|
"tips": [
|
|
437
437
|
"Keep one template style for the whole deck. Do not hand-pick colors or fonts on top of a template."
|
|
@@ -446,13 +446,30 @@
|
|
|
446
446
|
{
|
|
447
447
|
"name": "templates.catalog",
|
|
448
448
|
"domain": "templates",
|
|
449
|
-
"payload": "
|
|
449
|
+
"payload": "FikaTemplateCatalogQuery",
|
|
450
450
|
"returns": "FikaTemplateSummary[]",
|
|
451
|
+
"optional": true,
|
|
451
452
|
"doc": {
|
|
452
|
-
"summary": "
|
|
453
|
-
"details": "
|
|
453
|
+
"summary": "Discover host-registered presentation templates without loading their slides.",
|
|
454
|
+
"details": "Omit the payload to list all registered loaders. A matching host entry supplies the name, cover and optional description, categories, tags, useWhen and avoidWhen. Loader-only entries use the id as their name and an empty cover. If the unfiltered catalog is empty, use styles and layouts.",
|
|
455
|
+
"params": [
|
|
456
|
+
{
|
|
457
|
+
"name": "category",
|
|
458
|
+
"type": "string",
|
|
459
|
+
"required": false,
|
|
460
|
+
"description": "Match one declared category. Category and tag comparisons trim whitespace, ignore case and match whole values."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "tags",
|
|
464
|
+
"type": "string[]",
|
|
465
|
+
"required": false,
|
|
466
|
+
"description": "Require every nonblank tag together with the category, if supplied. Blank filters are ignored."
|
|
467
|
+
}
|
|
468
|
+
],
|
|
454
469
|
"examples": [
|
|
455
|
-
"const
|
|
470
|
+
"const all = controller.templates.catalog()",
|
|
471
|
+
"const reviews = controller.templates.catalog({ category: \"Report\", tags: [\"quarterly\"] })",
|
|
472
|
+
"const result = await controller.execute({ type: 'templates.catalog', payload: { tags: ['quarterly'] } })"
|
|
456
473
|
],
|
|
457
474
|
"related": [
|
|
458
475
|
"deck.applyTemplate",
|
|
@@ -477,8 +494,8 @@
|
|
|
477
494
|
}
|
|
478
495
|
],
|
|
479
496
|
"examples": [
|
|
480
|
-
"const
|
|
481
|
-
"
|
|
497
|
+
"const result = await controller.templates.slidesCatalog(templateId)",
|
|
498
|
+
"if (result.ok) console.log(result.data?.byType.cover)"
|
|
482
499
|
],
|
|
483
500
|
"related": [
|
|
484
501
|
"slides.insertFromTemplate",
|
|
@@ -663,7 +680,7 @@
|
|
|
663
680
|
{
|
|
664
681
|
"name": "deck.setTemplates",
|
|
665
682
|
"domain": "deck",
|
|
666
|
-
"payload": "{ templates:
|
|
683
|
+
"payload": "{ templates: SlideTemplate[] }",
|
|
667
684
|
"returns": "SlideTemplate[]"
|
|
668
685
|
},
|
|
669
686
|
{
|
|
@@ -2609,10 +2626,11 @@
|
|
|
2609
2626
|
"FikaStyleMotif": "export interface FikaStyleMotif { colorRole: 'accent' | 'accent2'; shape: 'doubleRule' | 'offsetBlock' | 'roundedChip' | 'hairline'; size: number; description: string }",
|
|
2610
2627
|
"FikaStyleSummary": "export interface FikaStyleSummary { id: string; label: string; description: string; fonts: FikaStyleFonts; preview: { background: string; title: string; body: string; accent: string; featureBackground: string }; motif: FikaStyleMotif }",
|
|
2611
2628
|
"FikaTableElementPatch": "export type FikaTableElementPatch = Partial<Omit<PPTTableElement, 'type' | 'id' | 'outline' | 'theme'>> & { outline?: Partial<PPTTableElement['outline']>; theme?: Partial<NonNullable<PPTTableElement['theme']>> }",
|
|
2629
|
+
"FikaTemplateCatalogQuery": "export interface FikaTemplateCatalogQuery { category?: string; tags?: readonly string[] }",
|
|
2612
2630
|
"FikaTemplateSlideEntry": "export interface FikaTemplateSlideEntry { slug: string; type: SlideType; description: string; elementCount: number }",
|
|
2613
2631
|
"FikaTemplateSlidesCatalog": "export type FikaTemplateSlidesCatalog = Record<SlideType, FikaTemplateSlideEntry[]>",
|
|
2614
2632
|
"FikaTemplateSlidesCatalogResult": "export interface FikaTemplateSlidesCatalogResult { templateId: string; templateName: string; slideCount: number; byType: FikaTemplateSlidesCatalog }",
|
|
2615
|
-
"FikaTemplateSummary": "export
|
|
2633
|
+
"FikaTemplateSummary": "export type FikaTemplateSummary = SlideTemplate",
|
|
2616
2634
|
"FikaThemeExtractionOptions": "export interface FikaThemeExtractionOptions { slideIds?: string[]; maxThemeColors?: number }",
|
|
2617
2635
|
"FikaVideoPatch": "export type FikaVideoPatch = FikaVideoPlaybackPatch & FikaVideoSizePatch & FikaVideoPositionPatch & FikaVideoStylePatch",
|
|
2618
2636
|
"FikaVideoPlaybackPatch": "export interface FikaVideoPlaybackPatch { src?: string; ext?: string; autoplay?: boolean; poster?: string }",
|
|
@@ -2672,7 +2690,7 @@
|
|
|
2672
2690
|
"SlideBackgroundImageSize": "export type SlideBackgroundImageSize = 'cover' | 'contain' | 'repeat'",
|
|
2673
2691
|
"SlideBackgroundType": "export type SlideBackgroundType = 'solid' | 'image' | 'gradient'",
|
|
2674
2692
|
"SlideGuide": "export interface SlideGuide { id: string; axis: 'x' | 'y'; position: number }",
|
|
2675
|
-
"SlideTemplate": "export interface SlideTemplate { name: string; id: string; cover: string; origin?: string }",
|
|
2693
|
+
"SlideTemplate": "export interface SlideTemplate { name: string; id: string; cover: string; origin?: string; description?: string; categories?: string[]; tags?: string[]; useWhen?: string; avoidWhen?: string }",
|
|
2676
2694
|
"SlideTheme": "export interface SlideTheme { headingFontColor?: string; backgroundColor: string; themeColors: string[]; fontColor: string; fontName: string; outline: PPTElementOutline; shadow: PPTElementShadow; styleId?: string }",
|
|
2677
2695
|
"SlideType": "export type SlideType = 'cover' | 'contents' | 'transition' | 'content' | 'end'",
|
|
2678
2696
|
"StructuredTextBody": "export interface StructuredTextBody { schemaVersion: 1; paragraphs: StructuredTextParagraph[] }",
|