fika-editor 3.5.1 → 3.5.2

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.
@@ -52,6 +52,8 @@ export interface TextFitRun {
52
52
  export interface TextFitBlock {
53
53
  /** Plain text of the block (markers stripped). */
54
54
  text: string;
55
+ /** Explicit preformatted text and hard breaks retain authored whitespace. */
56
+ whiteSpace?: 'pre-wrap';
55
57
  /** Authored font size in px (its largest run, to stay safe). */
56
58
  size: number;
57
59
  bold?: boolean;
@@ -263,7 +265,7 @@ export interface ExtractOptions {
263
265
  * and top-level paragraph/quote becomes one block; a block's representative font
264
266
  * size is the largest inline size in it (so the clip pad never under-
265
267
  * estimates), while wrapping measures the mixed-size run profile.
266
- * Returns no blocks when there's no DOM parser or no text. List items are tagged
268
+ * Empty paragraphs occupy one native line. List items are tagged
267
269
  * so the marker indent is accounted for.
268
270
  */
269
271
  export declare function extractFitBlocksFromHtml(html: string, options: ExtractOptions): ExtractedContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "Fika presentation editor embed bundle with a typed agentic bridge.",
5
5
  "type": "module",
6
6
  "main": "dist/embed/fika-embed.js",