@particle-academy/fancy-slides 0.4.0 → 0.5.0
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/README.md +9 -0
- package/dist/index.cjs +200 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +109 -68
- package/dist/index.d.ts +109 -68
- package/dist/index.js +199 -116
- package/dist/index.js.map +1 -1
- package/dist/registry.d.cts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/{types-P-9MmnGU.d.cts → types-9BbelJX1.d.cts} +10 -0
- package/dist/{types-P-9MmnGU.d.ts → types-9BbelJX1.d.ts} +10 -0
- package/package.json +1 -1
package/dist/registry.d.cts
CHANGED
package/dist/registry.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.5.0",
|
|
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",
|