fika-editor 3.0.22 → 3.0.23
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,4 +1,4 @@
|
|
|
1
|
-
import type { PPTChartElement, PPTImageElement, PPTShapeElement, PPTTableElement, PPTTextElement, Slide } from '../../types/slides';
|
|
1
|
+
import type { PPTChartElement, PPTImageElement, PPTMermaidElement, PPTShapeElement, PPTTableElement, PPTTextElement, Slide } from '../../types/slides';
|
|
2
2
|
import { type FikaStylePreset } from './styles';
|
|
3
3
|
import type { CompositionAnchor } from './composition';
|
|
4
4
|
/**
|
|
@@ -16,12 +16,14 @@ export type FikaLayoutElementInput = (Partial<PPTTextElement> & {
|
|
|
16
16
|
type: 'chart';
|
|
17
17
|
}) | (Partial<PPTTableElement> & {
|
|
18
18
|
type: 'table';
|
|
19
|
+
}) | (Partial<PPTMermaidElement> & {
|
|
20
|
+
type: 'mermaid';
|
|
19
21
|
});
|
|
20
22
|
export type FikaLayoutBackgroundMode = 'auto' | 'feature' | 'plain';
|
|
21
23
|
export interface FikaLayoutSlotDef {
|
|
22
24
|
name: string;
|
|
23
25
|
/** Coarse shape of the value the agent should pass for this slot. */
|
|
24
|
-
type: 'text' | 'bullets' | 'image' | 'chart' | 'stats' | 'rows' | 'cards' | 'steps';
|
|
26
|
+
type: 'text' | 'bullets' | 'image' | 'chart' | 'stats' | 'rows' | 'cards' | 'steps' | 'diagram';
|
|
25
27
|
required: boolean;
|
|
26
28
|
description: string;
|
|
27
29
|
}
|
|
@@ -14,6 +14,12 @@ export declare function isEmptyListParagraph(inner: string): boolean;
|
|
|
14
14
|
* Empty hanging paragraphs stay spacers (PowerPoint does not draw a bullet for them).
|
|
15
15
|
*/
|
|
16
16
|
export declare function wrapHangingIndentParagraphsAsLists(html: string, ratio?: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Lists without a gutter have their outside markers clipped by overflow:hidden
|
|
19
|
+
* on fixed-height text boxes. Stamp a padding-inline-start when the importer
|
|
20
|
+
* (or pptxtojson) emitted a bare <ul>/<ol>.
|
|
21
|
+
*/
|
|
22
|
+
export declare function ensureListMarkerGutter(html: string): string;
|
|
17
23
|
/**
|
|
18
24
|
* Wrap leftover http(s) URLs that are not already inside <a>. OOXML hyperlinks
|
|
19
25
|
* (a:hlinkClick) are preferred; this only catches display-time / unlinked URL text.
|