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,10 +1,11 @@
|
|
|
1
1
|
import { type TemplatePayload, type TemplatePayloadLoader } from '../../configs/templates';
|
|
2
|
-
import type { Slide, SlideTheme, SlideType } from '../../types/slides';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import type { Slide, SlideTheme, SlideTemplate, SlideType } from '../../types/slides';
|
|
3
|
+
export type FikaTemplateSummary = SlideTemplate;
|
|
4
|
+
export interface FikaTemplateCatalogQuery {
|
|
5
|
+
/** Match one declared category. Category and tag comparisons trim whitespace and ignore case. */
|
|
6
|
+
category?: string;
|
|
7
|
+
/** Match every nonblank tag in addition to the category, when supplied. */
|
|
8
|
+
tags?: readonly string[];
|
|
8
9
|
}
|
|
9
10
|
export interface FikaTemplateSlideEntry {
|
|
10
11
|
/** Stable slug within this template, e.g. `cover_1`, `content_2`. */
|
|
@@ -21,7 +22,7 @@ export interface FikaTemplateSlidesCatalogResult {
|
|
|
21
22
|
byType: FikaTemplateSlidesCatalog;
|
|
22
23
|
}
|
|
23
24
|
export declare function registerTemplateLoaders(loaders?: Record<string, TemplatePayloadLoader>): void;
|
|
24
|
-
export declare function listTemplateCatalog(): FikaTemplateSummary[];
|
|
25
|
+
export declare function listTemplateCatalog(query?: FikaTemplateCatalogQuery): FikaTemplateSummary[];
|
|
25
26
|
export declare function loadTemplatePayload(templateId: string): Promise<TemplatePayload>;
|
|
26
27
|
export declare function buildTemplateSlidesCatalog(templateId: string): Promise<FikaTemplateSlidesCatalogResult>;
|
|
27
28
|
export declare function resolveTemplateSlide(payload: TemplatePayload, slug: string): {
|
|
@@ -2,7 +2,7 @@ import type { Locales } from '../../i18n/locale';
|
|
|
2
2
|
import type { ShapeCategoryKey, ShapePoolItem } from '../../configs/shapes';
|
|
3
3
|
import type { Broken2LineDirection, ChartData, ChartOptions, ChartType, Gradient, LinePoint, LineStyleType, Note, NoteReply, PPTAnimation, PPTAudioElement, PPTChartElement, PPTElement, PPTElementLink, PPTElementOutline, PPTElementShadow, PPTImageElement, PPTLatexElement, PPTLineElement, PPTShapeElement, PPTTableElement, PPTTextElement, PPTVideoElement, ShapeText, Slide, SlideBackground, SlideTemplate, SlideTheme, TableCell, TableCellStyle, TextAlign, TurningMode } from '../../types/slides';
|
|
4
4
|
import type { FikaDocument } from '../types';
|
|
5
|
-
import type { FikaTemplateSlidesCatalogResult, FikaTemplateSummary } from './templates';
|
|
5
|
+
import type { FikaTemplateCatalogQuery, FikaTemplateSlidesCatalogResult, FikaTemplateSummary } from './templates';
|
|
6
6
|
import type { FikaLayout, FikaLayoutBackgroundMode } from './layouts';
|
|
7
7
|
import type { FikaStyleMotif, FikaStyleSummary } from './styles';
|
|
8
8
|
import type { CompositionAnchor, CompositionPlan, CompositionSlideHint } from './composition';
|
|
@@ -10,7 +10,7 @@ import type { FikaAgenticDocs, FikaCommandDescription, FikaDesignGuide, FikaDoma
|
|
|
10
10
|
import type { TextRunStyle } from '../../utils/markdown';
|
|
11
11
|
export type { TextRunStyle } from '../../utils/markdown';
|
|
12
12
|
export type { FikaAgenticDocs, FikaCommandDescription, FikaCommandDoc, FikaDesignGuide, FikaDesignSystem, FikaDocParam, FikaDomainDoc, FikaDomainSummary } from './manifestDocs';
|
|
13
|
-
export type { FikaTemplateSummary, FikaTemplateSlideEntry, FikaTemplateSlidesCatalog, FikaTemplateSlidesCatalogResult } from './templates';
|
|
13
|
+
export type { FikaTemplateCatalogQuery, FikaTemplateSummary, FikaTemplateSlideEntry, FikaTemplateSlidesCatalog, FikaTemplateSlidesCatalogResult } from './templates';
|
|
14
14
|
export type { FikaLayout, FikaLayoutSlotDef, FikaLayoutBackgroundMode, FikaLayoutVariant } from './layouts';
|
|
15
15
|
export type { FikaStyleSummary, FikaStylePreset, FikaStylePalette, FikaStyleScale, FikaStyleFonts, FikaStyleMotif } from './styles';
|
|
16
16
|
export type { CompositionAnchor, CompositionDensity, CompositionPlan, CompositionPlanEntry, CompositionSlideHint } from './composition';
|
|
@@ -489,8 +489,8 @@ export interface FikaInsertFromTemplateResult {
|
|
|
489
489
|
placeholderElementIds: string[];
|
|
490
490
|
}
|
|
491
491
|
export interface FikaAgentTemplatesApi {
|
|
492
|
-
/**
|
|
493
|
-
catalog(): FikaTemplateSummary[];
|
|
492
|
+
/** Discover registered templates by category and tags without loading any slides. */
|
|
493
|
+
catalog(query?: FikaTemplateCatalogQuery): FikaTemplateSummary[];
|
|
494
494
|
/** List insertable slides for a template, grouped by type (cover, contents, …). */
|
|
495
495
|
slidesCatalog(templateId: string, meta?: FikaCommandMeta): Promise<FikaCommandResult<FikaTemplateSlidesCatalogResult>>;
|
|
496
496
|
}
|
|
@@ -1379,7 +1379,7 @@ export interface FikaCommandPayloadMap {
|
|
|
1379
1379
|
'deck.setTemplates': {
|
|
1380
1380
|
templates: SlideTemplate[];
|
|
1381
1381
|
};
|
|
1382
|
-
'templates.catalog': undefined;
|
|
1382
|
+
'templates.catalog': FikaTemplateCatalogQuery | undefined;
|
|
1383
1383
|
'templates.slidesCatalog': {
|
|
1384
1384
|
templateId: string;
|
|
1385
1385
|
};
|
|
@@ -83,11 +83,11 @@ export interface FikaMountOptions {
|
|
|
83
83
|
/** Base URL for runtime image/font assets and fallback mock decks. */
|
|
84
84
|
assetBaseUrl?: string;
|
|
85
85
|
/**
|
|
86
|
-
* Host-supplied
|
|
87
|
-
*
|
|
86
|
+
* Host-supplied picker entries. Optional discovery fields are available to
|
|
87
|
+
* `controller.templates.catalog()` for entries with a matching loader.
|
|
88
88
|
*/
|
|
89
89
|
templates?: SlideTemplate[];
|
|
90
|
-
/**
|
|
90
|
+
/** Lazy payload loaders keyed by template id. Loader-only ids also appear in the agent catalog. */
|
|
91
91
|
templateLoaders?: Record<string, FikaTemplateLoader>;
|
|
92
92
|
/** Fired when title, slides, or theme change (debounced). */
|
|
93
93
|
onChange?: (document: FikaDocument) => void;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type { Locales, TranslationFunctions } from './i18n-types';
|
|
2
2
|
declare const TypesafeI18n: import("react").FunctionComponent<import("typesafe-i18n/react").TypesafeI18nProps<Locales>>, I18nContext: import("react").Context<import("typesafe-i18n/react").I18nContextType<Locales, {
|
|
3
|
-
|
|
4
|
-
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
3
|
+
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
5
4
|
editor: import("./i18n-types").NamespaceEditorTranslation;
|
|
6
5
|
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
7
|
-
|
|
6
|
+
export: import("./i18n-types").NamespaceExportTranslation;
|
|
8
7
|
mobile: import("./i18n-types").NamespaceMobileTranslation;
|
|
9
|
-
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
10
8
|
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
11
|
-
|
|
9
|
+
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
10
|
+
canvas: import("./i18n-types").NamespaceCanvasTranslation;
|
|
11
|
+
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
12
12
|
}, TranslationFunctions>>;
|
|
13
13
|
export { TypesafeI18n, I18nContext };
|
|
14
14
|
export declare function useI18nContext(): import("typesafe-i18n/react").I18nContextType<Locales, {
|
|
15
|
-
|
|
16
|
-
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
15
|
+
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
17
16
|
editor: import("./i18n-types").NamespaceEditorTranslation;
|
|
18
17
|
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
19
|
-
|
|
18
|
+
export: import("./i18n-types").NamespaceExportTranslation;
|
|
20
19
|
mobile: import("./i18n-types").NamespaceMobileTranslation;
|
|
21
|
-
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
22
20
|
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
23
|
-
|
|
21
|
+
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
22
|
+
canvas: import("./i18n-types").NamespaceCanvasTranslation;
|
|
23
|
+
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
24
24
|
}, TranslationFunctions>;
|
|
25
25
|
export declare const useI18nReact: typeof useI18nContext;
|