@particle-academy/fancy-slides 0.3.0 → 0.4.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 +26 -0
- package/dist/index.cjs +460 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -9
- package/dist/index.d.ts +97 -9
- package/dist/index.js +455 -40
- package/dist/index.js.map +1 -1
- package/dist/registry.d.cts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/{types-B2ecrEAz.d.cts → types-P-9MmnGU.d.cts} +32 -1
- package/dist/{types-B2ecrEAz.d.ts → types-P-9MmnGU.d.ts} +32 -1
- package/package.json +1 -1
package/dist/registry.d.cts
CHANGED
package/dist/registry.d.ts
CHANGED
|
@@ -68,6 +68,32 @@ interface ElementBase {
|
|
|
68
68
|
locked?: boolean;
|
|
69
69
|
/** Hide on this slide (still in the data — for animated reveals). */
|
|
70
70
|
hidden?: boolean;
|
|
71
|
+
/** Entrance build animation — when present the element participates in the slide's build sequence. */
|
|
72
|
+
animation?: ElementAnimation;
|
|
73
|
+
}
|
|
74
|
+
/** Visual entrance effect played when an element builds onto the slide. */
|
|
75
|
+
type AnimationEffect = "fade" | "fly-in" | "zoom" | "wipe";
|
|
76
|
+
/** When an element's build fires relative to the surrounding builds. */
|
|
77
|
+
type AnimationTrigger = "on-click" | "with-prev" | "after-prev";
|
|
78
|
+
/**
|
|
79
|
+
* Per-element entrance animation ("build step"). Elements with an `animation`
|
|
80
|
+
* start hidden and reveal as the presenter advances through the slide's build
|
|
81
|
+
* sequence. The shape is shared with the sibling `dark-slide` PHP package, so
|
|
82
|
+
* keep it byte-for-byte aligned.
|
|
83
|
+
*/
|
|
84
|
+
interface ElementAnimation {
|
|
85
|
+
/** Visual effect. */
|
|
86
|
+
effect: AnimationEffect;
|
|
87
|
+
/** When the build fires relative to its neighbours. Default `"on-click"`. */
|
|
88
|
+
trigger?: AnimationTrigger;
|
|
89
|
+
/** Direction for `fly-in` / `wipe`. Default `"left"`. */
|
|
90
|
+
direction?: "left" | "right" | "up" | "down";
|
|
91
|
+
/** Effect duration in ms. Default `500`. */
|
|
92
|
+
duration?: number;
|
|
93
|
+
/** Delay before the effect starts, in ms. Default `0`. */
|
|
94
|
+
delay?: number;
|
|
95
|
+
/** Build order within the slide, ascending; ties broken by element array index. */
|
|
96
|
+
order?: number;
|
|
71
97
|
}
|
|
72
98
|
interface TextElement extends ElementBase {
|
|
73
99
|
type: "text";
|
|
@@ -289,6 +315,11 @@ type DeckOp = {
|
|
|
289
315
|
elementId: string;
|
|
290
316
|
w: number;
|
|
291
317
|
h: number;
|
|
318
|
+
} | {
|
|
319
|
+
kind: "element_set_animation";
|
|
320
|
+
slideId: string;
|
|
321
|
+
elementId: string;
|
|
322
|
+
animation?: ElementAnimation;
|
|
292
323
|
};
|
|
293
324
|
|
|
294
|
-
export type { ChartElement as C, Deck as D,
|
|
325
|
+
export type { AnimationEffect as A, ChartElement as C, Deck as D, ElementAnimation as E, ImageElement as I, ShapeElement as S, TableElement as T, AnimationTrigger as a, CodeElement as b, DeckActivity as c, DeckOp as d, ElementBase as e, EmbedElement as f, ShapeKind as g, Slide as h, SlideBackground as i, SlideElement as j, SlideLayout as k, SlideTransition as l, TextElement as m, TextStyle as n, Theme as o, ThemeColors as p, ThemeFonts as q, TransitionKind as r };
|
|
@@ -68,6 +68,32 @@ interface ElementBase {
|
|
|
68
68
|
locked?: boolean;
|
|
69
69
|
/** Hide on this slide (still in the data — for animated reveals). */
|
|
70
70
|
hidden?: boolean;
|
|
71
|
+
/** Entrance build animation — when present the element participates in the slide's build sequence. */
|
|
72
|
+
animation?: ElementAnimation;
|
|
73
|
+
}
|
|
74
|
+
/** Visual entrance effect played when an element builds onto the slide. */
|
|
75
|
+
type AnimationEffect = "fade" | "fly-in" | "zoom" | "wipe";
|
|
76
|
+
/** When an element's build fires relative to the surrounding builds. */
|
|
77
|
+
type AnimationTrigger = "on-click" | "with-prev" | "after-prev";
|
|
78
|
+
/**
|
|
79
|
+
* Per-element entrance animation ("build step"). Elements with an `animation`
|
|
80
|
+
* start hidden and reveal as the presenter advances through the slide's build
|
|
81
|
+
* sequence. The shape is shared with the sibling `dark-slide` PHP package, so
|
|
82
|
+
* keep it byte-for-byte aligned.
|
|
83
|
+
*/
|
|
84
|
+
interface ElementAnimation {
|
|
85
|
+
/** Visual effect. */
|
|
86
|
+
effect: AnimationEffect;
|
|
87
|
+
/** When the build fires relative to its neighbours. Default `"on-click"`. */
|
|
88
|
+
trigger?: AnimationTrigger;
|
|
89
|
+
/** Direction for `fly-in` / `wipe`. Default `"left"`. */
|
|
90
|
+
direction?: "left" | "right" | "up" | "down";
|
|
91
|
+
/** Effect duration in ms. Default `500`. */
|
|
92
|
+
duration?: number;
|
|
93
|
+
/** Delay before the effect starts, in ms. Default `0`. */
|
|
94
|
+
delay?: number;
|
|
95
|
+
/** Build order within the slide, ascending; ties broken by element array index. */
|
|
96
|
+
order?: number;
|
|
71
97
|
}
|
|
72
98
|
interface TextElement extends ElementBase {
|
|
73
99
|
type: "text";
|
|
@@ -289,6 +315,11 @@ type DeckOp = {
|
|
|
289
315
|
elementId: string;
|
|
290
316
|
w: number;
|
|
291
317
|
h: number;
|
|
318
|
+
} | {
|
|
319
|
+
kind: "element_set_animation";
|
|
320
|
+
slideId: string;
|
|
321
|
+
elementId: string;
|
|
322
|
+
animation?: ElementAnimation;
|
|
292
323
|
};
|
|
293
324
|
|
|
294
|
-
export type { ChartElement as C, Deck as D,
|
|
325
|
+
export type { AnimationEffect as A, ChartElement as C, Deck as D, ElementAnimation as E, ImageElement as I, ShapeElement as S, TableElement as T, AnimationTrigger as a, CodeElement as b, DeckActivity as c, DeckOp as d, ElementBase as e, EmbedElement as f, ShapeKind as g, Slide as h, SlideBackground as i, SlideElement as j, SlideLayout as k, SlideTransition as l, TextElement as m, TextStyle as n, Theme as o, ThemeColors as p, ThemeFonts as q, TransitionKind as r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/fancy-slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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",
|