@particle-academy/fancy-slides 0.4.0 → 0.5.1

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,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { j as SlideElement } from './types-P-9MmnGU.cjs';
2
+ import { j as SlideElement } from './types-9BbelJX1.cjs';
3
3
 
4
4
  /**
5
5
  * Renderer signature compatible with `Slide`'s `renderElement` prop. Returns
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { j as SlideElement } from './types-P-9MmnGU.js';
2
+ import { j as SlideElement } from './types-9BbelJX1.js';
3
3
 
4
4
  /**
5
5
  * Renderer signature compatible with `Slide`'s `renderElement` prop. Returns
@@ -94,6 +94,16 @@ interface ElementAnimation {
94
94
  delay?: number;
95
95
  /** Build order within the slide, ascending; ties broken by element array index. */
96
96
  order?: number;
97
+ /**
98
+ * Reveal a TEXT element one paragraph/line at a time (PowerPoint/Google
99
+ * Slides "By paragraph"). The element expands into one build per paragraph
100
+ * — the element's `content` split on `"\n"` (a trailing empty line is
101
+ * dropped). The first paragraph uses this animation's `trigger`; every
102
+ * subsequent paragraph reveals on a fresh click. Only meaningful for text
103
+ * elements; ignored for other types and when the element has 0/1 paragraphs
104
+ * (then it behaves like a normal single build).
105
+ */
106
+ byParagraph?: boolean;
97
107
  }
98
108
  interface TextElement extends ElementBase {
99
109
  type: "text";
@@ -94,6 +94,16 @@ interface ElementAnimation {
94
94
  delay?: number;
95
95
  /** Build order within the slide, ascending; ties broken by element array index. */
96
96
  order?: number;
97
+ /**
98
+ * Reveal a TEXT element one paragraph/line at a time (PowerPoint/Google
99
+ * Slides "By paragraph"). The element expands into one build per paragraph
100
+ * — the element's `content` split on `"\n"` (a trailing empty line is
101
+ * dropped). The first paragraph uses this animation's `trigger`; every
102
+ * subsequent paragraph reveals on a fresh click. Only meaningful for text
103
+ * elements; ignored for other types and when the element has 0/1 paragraphs
104
+ * (then it behaves like a normal single build).
105
+ */
106
+ byParagraph?: boolean;
97
107
  }
98
108
  interface TextElement extends ElementBase {
99
109
  type: "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/fancy-slides",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Presentation editor + web viewer for the fancy UI set — Google-Slides-style deck authoring with a JSON-friendly schema, full keyboard-driven viewer, and an agent bridge so LLMs can compose decks directly.",
5
5
  "repository": {
6
6
  "type": "git",