@particle-academy/fancy-slides 0.1.6 → 0.2.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.
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { h as SlideElement } from './types-B2ecrEAz.cjs';
3
+
4
+ /**
5
+ * Renderer signature compatible with `Slide`'s `renderElement` prop. Returns
6
+ * `undefined` for element types fancy-slides handles itself, so the call
7
+ * site falls back to the built-in renderer.
8
+ */
9
+ declare function defaultElementRegistry(element: SlideElement, slideWidthPx: number): react_jsx_runtime.JSX.Element | undefined;
10
+
11
+ export { defaultElementRegistry };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { h as SlideElement } from './types-B2ecrEAz.js';
3
+
4
+ /**
5
+ * Renderer signature compatible with `Slide`'s `renderElement` prop. Returns
6
+ * `undefined` for element types fancy-slides handles itself, so the call
7
+ * site falls back to the built-in renderer.
8
+ */
9
+ declare function defaultElementRegistry(element: SlideElement, slideWidthPx: number): react_jsx_runtime.JSX.Element | undefined;
10
+
11
+ export { defaultElementRegistry };
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,294 @@
1
+ /**
2
+ * The fancy-slides data model.
3
+ *
4
+ * Every shape here is JSON-friendly — pure objects, arrays, primitives, and
5
+ * tagged unions. No React children, no functions, no class instances. This
6
+ * is the contract the deck schema commits to: an LLM can emit a deck, a
7
+ * server can store one, a designer can hand-edit one, and the viewer +
8
+ * editor will render it identically.
9
+ *
10
+ * Coordinate system: elements position themselves in slide-relative units
11
+ * where the slide is a 1.0 × (1 / aspectRatio) rectangle. So `x: 0.5, y: 0.5`
12
+ * is the centre of the slide regardless of how big it's rendered. This
13
+ * keeps decks resolution-independent — a fullscreen 1920×1080 viewer and a
14
+ * thumbnail at 320×180 render the same layout.
15
+ */
16
+ interface Deck {
17
+ /** Stable id. Required even when persistence is in-memory. */
18
+ id: string;
19
+ /** Human title — shown in the editor chrome + browser tab. */
20
+ title: string;
21
+ /** Ordered slide list. The viewer steps through in this order. */
22
+ slides: Slide[];
23
+ /** Visual theme for the whole deck. */
24
+ theme: Theme;
25
+ /** Free-form metadata — `{ author, createdAt, updatedAt, tags, … }`. */
26
+ metadata?: Record<string, unknown>;
27
+ }
28
+ /** Layout presets that pre-populate / constrain element placement. */
29
+ type SlideLayout = "blank" | "title" | "title-content" | "two-column" | "section-divider" | "image-text" | "text-image" | "quote";
30
+ interface Slide {
31
+ /** Stable id. */
32
+ id: string;
33
+ /** Optional layout preset. Mostly used by agents — humans tend to free-place. */
34
+ layout?: SlideLayout;
35
+ /** Elements rendered on the slide in z-order (last on top). */
36
+ elements: SlideElement[];
37
+ /** Background fill — color, image, or gradient. Inherits from theme when absent. */
38
+ background?: SlideBackground;
39
+ /** Entrance transition for this slide. Inherits from theme.transition when absent. */
40
+ transition?: SlideTransition;
41
+ /** Speaker notes — markdown. */
42
+ notes?: string;
43
+ /** Free-form metadata — `{ title, tags, durationSec, … }`. */
44
+ metadata?: Record<string, unknown>;
45
+ }
46
+ /**
47
+ * Every element is positioned in slide-relative coordinates (0..1). x/y are
48
+ * the top-left corner; w/h are width/height as a fraction of the slide.
49
+ */
50
+ interface ElementBase {
51
+ /** Stable id. Agents reference elements by id. */
52
+ id: string;
53
+ /** Element kind — discriminator. */
54
+ type: SlideElement["type"];
55
+ /** Left edge, 0..1 (fraction of slide width). */
56
+ x: number;
57
+ /** Top edge, 0..1 (fraction of slide height). */
58
+ y: number;
59
+ /** Width, 0..1. */
60
+ w: number;
61
+ /** Height, 0..1. */
62
+ h: number;
63
+ /** Rotation in degrees, clockwise. */
64
+ rotation?: number;
65
+ /** Z-order — higher renders on top. Falls back to array order when undefined. */
66
+ z?: number;
67
+ /** Lock from editing. */
68
+ locked?: boolean;
69
+ /** Hide on this slide (still in the data — for animated reveals). */
70
+ hidden?: boolean;
71
+ }
72
+ interface TextElement extends ElementBase {
73
+ type: "text";
74
+ /** Content — markdown by default; can also be plain text or HTML. */
75
+ content: string;
76
+ /** Content format. Defaults to `"markdown"`. */
77
+ format?: "markdown" | "html" | "plain";
78
+ /** Typography. */
79
+ style?: TextStyle;
80
+ }
81
+ interface TextStyle {
82
+ /** Font family — falls back to theme.fonts.body. */
83
+ fontFamily?: string;
84
+ /** Font size in px at the slide's design width (theme.slideWidth). */
85
+ fontSize?: number;
86
+ /** Font weight (`100..900`, or `"normal" | "bold"`). */
87
+ weight?: "normal" | "medium" | "semibold" | "bold" | number;
88
+ /** Horizontal alignment. */
89
+ align?: "left" | "center" | "right" | "justify";
90
+ /** Vertical alignment within the box. */
91
+ verticalAlign?: "top" | "middle" | "bottom";
92
+ /** Color (any CSS color). Falls back to theme.colors.text. */
93
+ color?: string;
94
+ /** Line height (multiplier). */
95
+ lineHeight?: number;
96
+ /** Italic. */
97
+ italic?: boolean;
98
+ /** Underline. */
99
+ underline?: boolean;
100
+ }
101
+ interface ImageElement extends ElementBase {
102
+ type: "image";
103
+ /** Image URL or data URI. */
104
+ src: string;
105
+ /** Alt text for accessibility. */
106
+ alt?: string;
107
+ /** How the image is fit inside its box. */
108
+ fit?: "contain" | "cover" | "fill" | "scale-down";
109
+ /** Optional crop window (slide-relative). */
110
+ crop?: {
111
+ x: number;
112
+ y: number;
113
+ w: number;
114
+ h: number;
115
+ };
116
+ }
117
+ interface ChartElement extends ElementBase {
118
+ type: "chart";
119
+ /** Apache ECharts option object. Passed straight to `<EChart>`. */
120
+ option: Record<string, unknown>;
121
+ /** Theme name passed to `<EChart>`. */
122
+ chartTheme?: string;
123
+ }
124
+ interface CodeElement extends ElementBase {
125
+ type: "code";
126
+ /** Source code. */
127
+ code: string;
128
+ /** Language alias for the highlighter. */
129
+ language?: string;
130
+ /** Show line numbers. Defaults to `true`. */
131
+ lineNumbers?: boolean;
132
+ /** Theme — `"light"`, `"dark"`, `"auto"`, or a custom registered name. */
133
+ codeTheme?: string;
134
+ }
135
+ interface TableElement extends ElementBase {
136
+ type: "table";
137
+ /** Column definitions — `{ key, label }`. */
138
+ columns: Array<{
139
+ key: string;
140
+ label: string;
141
+ }>;
142
+ /** Row data — array of objects keyed by column. */
143
+ rows: Array<Record<string, unknown>>;
144
+ }
145
+ type ShapeKind = "rect" | "rounded-rect" | "ellipse" | "line" | "arrow" | "triangle";
146
+ interface ShapeElement extends ElementBase {
147
+ type: "shape";
148
+ shape: ShapeKind;
149
+ /** Fill color (any CSS color, or `"none"`). */
150
+ fill?: string;
151
+ /** Stroke color. */
152
+ stroke?: string;
153
+ /** Stroke width in px at the slide's design width. */
154
+ strokeWidth?: number;
155
+ /** Dashed stroke. */
156
+ dashed?: boolean;
157
+ /** Corner radius (px) for `rect` / `rounded-rect`. */
158
+ radius?: number;
159
+ }
160
+ interface EmbedElement extends ElementBase {
161
+ type: "embed";
162
+ /** Embed URL — typically a video, dashboard, or fancy-screens Screen. */
163
+ src: string;
164
+ /** iframe `title` for accessibility. */
165
+ title?: string;
166
+ /** Sandbox attribute. Defaults to allow-scripts (no allow-same-origin). */
167
+ sandbox?: string;
168
+ }
169
+ type SlideElement = TextElement | ImageElement | ChartElement | CodeElement | TableElement | ShapeElement | EmbedElement;
170
+ interface SlideBackground {
171
+ /** Solid color, or `"transparent"` to inherit theme. */
172
+ color?: string;
173
+ /** Image background URL. Takes precedence over color when present. */
174
+ image?: string;
175
+ /** How the background image is fit. Defaults to `"cover"`. */
176
+ imageFit?: "contain" | "cover" | "fill";
177
+ /** Optional gradient — `"linear-gradient(...)"` or `"radial-gradient(...)"` string. */
178
+ gradient?: string;
179
+ }
180
+ type TransitionKind = "none" | "fade" | "slide" | "zoom";
181
+ interface SlideTransition {
182
+ kind: TransitionKind;
183
+ /** Duration in ms. */
184
+ duration?: number;
185
+ /** Direction for `slide` transitions. */
186
+ direction?: "left" | "right" | "up" | "down";
187
+ }
188
+ interface Theme {
189
+ /** Theme name — used for serialization + agent routing. */
190
+ name: string;
191
+ /** Aspect ratio — defaults to 16:9. Custom themes can pick anything. */
192
+ aspectRatio?: number;
193
+ /** Design width in px. Slides scale to fit; this just sets the unit base for fontSize/strokeWidth. */
194
+ slideWidth?: number;
195
+ colors?: ThemeColors;
196
+ fonts?: ThemeFonts;
197
+ /** Default transition for slides that don't specify their own. */
198
+ defaultTransition?: SlideTransition;
199
+ }
200
+ interface ThemeColors {
201
+ background?: string;
202
+ text?: string;
203
+ muted?: string;
204
+ accent?: string;
205
+ surface?: string;
206
+ }
207
+ interface ThemeFonts {
208
+ /** Used for `Heading`-like text elements (the default for large fontSize). */
209
+ heading?: string;
210
+ /** Used for body text. */
211
+ body?: string;
212
+ /** Used by CodeElement. */
213
+ mono?: string;
214
+ }
215
+ /**
216
+ * Agent activity broadcast whenever the deck mutates. Hosts subscribe to feed
217
+ * an AgentPanel, presence layer, or audit log.
218
+ */
219
+ interface DeckActivity {
220
+ /** Stable activity id. */
221
+ id: string;
222
+ /** Wall-clock timestamp. */
223
+ at: number;
224
+ /** Who made the change. */
225
+ actor: {
226
+ kind: "human" | "agent";
227
+ id: string;
228
+ name?: string;
229
+ color?: string;
230
+ };
231
+ /** What changed. */
232
+ op: DeckOp;
233
+ }
234
+ type DeckOp = {
235
+ kind: "deck_set_title";
236
+ title: string;
237
+ } | {
238
+ kind: "deck_apply_theme";
239
+ theme: Theme;
240
+ } | {
241
+ kind: "slide_add";
242
+ index: number;
243
+ slide: Slide;
244
+ } | {
245
+ kind: "slide_remove";
246
+ id: string;
247
+ } | {
248
+ kind: "slide_reorder";
249
+ id: string;
250
+ toIndex: number;
251
+ } | {
252
+ kind: "slide_set_layout";
253
+ id: string;
254
+ layout: SlideLayout;
255
+ } | {
256
+ kind: "slide_set_notes";
257
+ id: string;
258
+ notes: string;
259
+ } | {
260
+ kind: "slide_set_background";
261
+ id: string;
262
+ background?: SlideBackground;
263
+ } | {
264
+ kind: "slide_set_transition";
265
+ id: string;
266
+ transition?: SlideTransition;
267
+ } | {
268
+ kind: "element_add";
269
+ slideId: string;
270
+ element: SlideElement;
271
+ } | {
272
+ kind: "element_remove";
273
+ slideId: string;
274
+ elementId: string;
275
+ } | {
276
+ kind: "element_update";
277
+ slideId: string;
278
+ elementId: string;
279
+ patch: Partial<SlideElement>;
280
+ } | {
281
+ kind: "element_move";
282
+ slideId: string;
283
+ elementId: string;
284
+ x: number;
285
+ y: number;
286
+ } | {
287
+ kind: "element_resize";
288
+ slideId: string;
289
+ elementId: string;
290
+ w: number;
291
+ h: number;
292
+ };
293
+
294
+ export type { ChartElement as C, Deck as D, ElementBase as E, ImageElement as I, ShapeElement as S, TableElement as T, CodeElement as a, DeckActivity as b, DeckOp as c, EmbedElement as d, ShapeKind as e, Slide as f, SlideBackground as g, SlideElement as h, SlideLayout as i, SlideTransition as j, TextElement as k, TextStyle as l, Theme as m, ThemeColors as n, ThemeFonts as o, TransitionKind as p };
@@ -0,0 +1,294 @@
1
+ /**
2
+ * The fancy-slides data model.
3
+ *
4
+ * Every shape here is JSON-friendly — pure objects, arrays, primitives, and
5
+ * tagged unions. No React children, no functions, no class instances. This
6
+ * is the contract the deck schema commits to: an LLM can emit a deck, a
7
+ * server can store one, a designer can hand-edit one, and the viewer +
8
+ * editor will render it identically.
9
+ *
10
+ * Coordinate system: elements position themselves in slide-relative units
11
+ * where the slide is a 1.0 × (1 / aspectRatio) rectangle. So `x: 0.5, y: 0.5`
12
+ * is the centre of the slide regardless of how big it's rendered. This
13
+ * keeps decks resolution-independent — a fullscreen 1920×1080 viewer and a
14
+ * thumbnail at 320×180 render the same layout.
15
+ */
16
+ interface Deck {
17
+ /** Stable id. Required even when persistence is in-memory. */
18
+ id: string;
19
+ /** Human title — shown in the editor chrome + browser tab. */
20
+ title: string;
21
+ /** Ordered slide list. The viewer steps through in this order. */
22
+ slides: Slide[];
23
+ /** Visual theme for the whole deck. */
24
+ theme: Theme;
25
+ /** Free-form metadata — `{ author, createdAt, updatedAt, tags, … }`. */
26
+ metadata?: Record<string, unknown>;
27
+ }
28
+ /** Layout presets that pre-populate / constrain element placement. */
29
+ type SlideLayout = "blank" | "title" | "title-content" | "two-column" | "section-divider" | "image-text" | "text-image" | "quote";
30
+ interface Slide {
31
+ /** Stable id. */
32
+ id: string;
33
+ /** Optional layout preset. Mostly used by agents — humans tend to free-place. */
34
+ layout?: SlideLayout;
35
+ /** Elements rendered on the slide in z-order (last on top). */
36
+ elements: SlideElement[];
37
+ /** Background fill — color, image, or gradient. Inherits from theme when absent. */
38
+ background?: SlideBackground;
39
+ /** Entrance transition for this slide. Inherits from theme.transition when absent. */
40
+ transition?: SlideTransition;
41
+ /** Speaker notes — markdown. */
42
+ notes?: string;
43
+ /** Free-form metadata — `{ title, tags, durationSec, … }`. */
44
+ metadata?: Record<string, unknown>;
45
+ }
46
+ /**
47
+ * Every element is positioned in slide-relative coordinates (0..1). x/y are
48
+ * the top-left corner; w/h are width/height as a fraction of the slide.
49
+ */
50
+ interface ElementBase {
51
+ /** Stable id. Agents reference elements by id. */
52
+ id: string;
53
+ /** Element kind — discriminator. */
54
+ type: SlideElement["type"];
55
+ /** Left edge, 0..1 (fraction of slide width). */
56
+ x: number;
57
+ /** Top edge, 0..1 (fraction of slide height). */
58
+ y: number;
59
+ /** Width, 0..1. */
60
+ w: number;
61
+ /** Height, 0..1. */
62
+ h: number;
63
+ /** Rotation in degrees, clockwise. */
64
+ rotation?: number;
65
+ /** Z-order — higher renders on top. Falls back to array order when undefined. */
66
+ z?: number;
67
+ /** Lock from editing. */
68
+ locked?: boolean;
69
+ /** Hide on this slide (still in the data — for animated reveals). */
70
+ hidden?: boolean;
71
+ }
72
+ interface TextElement extends ElementBase {
73
+ type: "text";
74
+ /** Content — markdown by default; can also be plain text or HTML. */
75
+ content: string;
76
+ /** Content format. Defaults to `"markdown"`. */
77
+ format?: "markdown" | "html" | "plain";
78
+ /** Typography. */
79
+ style?: TextStyle;
80
+ }
81
+ interface TextStyle {
82
+ /** Font family — falls back to theme.fonts.body. */
83
+ fontFamily?: string;
84
+ /** Font size in px at the slide's design width (theme.slideWidth). */
85
+ fontSize?: number;
86
+ /** Font weight (`100..900`, or `"normal" | "bold"`). */
87
+ weight?: "normal" | "medium" | "semibold" | "bold" | number;
88
+ /** Horizontal alignment. */
89
+ align?: "left" | "center" | "right" | "justify";
90
+ /** Vertical alignment within the box. */
91
+ verticalAlign?: "top" | "middle" | "bottom";
92
+ /** Color (any CSS color). Falls back to theme.colors.text. */
93
+ color?: string;
94
+ /** Line height (multiplier). */
95
+ lineHeight?: number;
96
+ /** Italic. */
97
+ italic?: boolean;
98
+ /** Underline. */
99
+ underline?: boolean;
100
+ }
101
+ interface ImageElement extends ElementBase {
102
+ type: "image";
103
+ /** Image URL or data URI. */
104
+ src: string;
105
+ /** Alt text for accessibility. */
106
+ alt?: string;
107
+ /** How the image is fit inside its box. */
108
+ fit?: "contain" | "cover" | "fill" | "scale-down";
109
+ /** Optional crop window (slide-relative). */
110
+ crop?: {
111
+ x: number;
112
+ y: number;
113
+ w: number;
114
+ h: number;
115
+ };
116
+ }
117
+ interface ChartElement extends ElementBase {
118
+ type: "chart";
119
+ /** Apache ECharts option object. Passed straight to `<EChart>`. */
120
+ option: Record<string, unknown>;
121
+ /** Theme name passed to `<EChart>`. */
122
+ chartTheme?: string;
123
+ }
124
+ interface CodeElement extends ElementBase {
125
+ type: "code";
126
+ /** Source code. */
127
+ code: string;
128
+ /** Language alias for the highlighter. */
129
+ language?: string;
130
+ /** Show line numbers. Defaults to `true`. */
131
+ lineNumbers?: boolean;
132
+ /** Theme — `"light"`, `"dark"`, `"auto"`, or a custom registered name. */
133
+ codeTheme?: string;
134
+ }
135
+ interface TableElement extends ElementBase {
136
+ type: "table";
137
+ /** Column definitions — `{ key, label }`. */
138
+ columns: Array<{
139
+ key: string;
140
+ label: string;
141
+ }>;
142
+ /** Row data — array of objects keyed by column. */
143
+ rows: Array<Record<string, unknown>>;
144
+ }
145
+ type ShapeKind = "rect" | "rounded-rect" | "ellipse" | "line" | "arrow" | "triangle";
146
+ interface ShapeElement extends ElementBase {
147
+ type: "shape";
148
+ shape: ShapeKind;
149
+ /** Fill color (any CSS color, or `"none"`). */
150
+ fill?: string;
151
+ /** Stroke color. */
152
+ stroke?: string;
153
+ /** Stroke width in px at the slide's design width. */
154
+ strokeWidth?: number;
155
+ /** Dashed stroke. */
156
+ dashed?: boolean;
157
+ /** Corner radius (px) for `rect` / `rounded-rect`. */
158
+ radius?: number;
159
+ }
160
+ interface EmbedElement extends ElementBase {
161
+ type: "embed";
162
+ /** Embed URL — typically a video, dashboard, or fancy-screens Screen. */
163
+ src: string;
164
+ /** iframe `title` for accessibility. */
165
+ title?: string;
166
+ /** Sandbox attribute. Defaults to allow-scripts (no allow-same-origin). */
167
+ sandbox?: string;
168
+ }
169
+ type SlideElement = TextElement | ImageElement | ChartElement | CodeElement | TableElement | ShapeElement | EmbedElement;
170
+ interface SlideBackground {
171
+ /** Solid color, or `"transparent"` to inherit theme. */
172
+ color?: string;
173
+ /** Image background URL. Takes precedence over color when present. */
174
+ image?: string;
175
+ /** How the background image is fit. Defaults to `"cover"`. */
176
+ imageFit?: "contain" | "cover" | "fill";
177
+ /** Optional gradient — `"linear-gradient(...)"` or `"radial-gradient(...)"` string. */
178
+ gradient?: string;
179
+ }
180
+ type TransitionKind = "none" | "fade" | "slide" | "zoom";
181
+ interface SlideTransition {
182
+ kind: TransitionKind;
183
+ /** Duration in ms. */
184
+ duration?: number;
185
+ /** Direction for `slide` transitions. */
186
+ direction?: "left" | "right" | "up" | "down";
187
+ }
188
+ interface Theme {
189
+ /** Theme name — used for serialization + agent routing. */
190
+ name: string;
191
+ /** Aspect ratio — defaults to 16:9. Custom themes can pick anything. */
192
+ aspectRatio?: number;
193
+ /** Design width in px. Slides scale to fit; this just sets the unit base for fontSize/strokeWidth. */
194
+ slideWidth?: number;
195
+ colors?: ThemeColors;
196
+ fonts?: ThemeFonts;
197
+ /** Default transition for slides that don't specify their own. */
198
+ defaultTransition?: SlideTransition;
199
+ }
200
+ interface ThemeColors {
201
+ background?: string;
202
+ text?: string;
203
+ muted?: string;
204
+ accent?: string;
205
+ surface?: string;
206
+ }
207
+ interface ThemeFonts {
208
+ /** Used for `Heading`-like text elements (the default for large fontSize). */
209
+ heading?: string;
210
+ /** Used for body text. */
211
+ body?: string;
212
+ /** Used by CodeElement. */
213
+ mono?: string;
214
+ }
215
+ /**
216
+ * Agent activity broadcast whenever the deck mutates. Hosts subscribe to feed
217
+ * an AgentPanel, presence layer, or audit log.
218
+ */
219
+ interface DeckActivity {
220
+ /** Stable activity id. */
221
+ id: string;
222
+ /** Wall-clock timestamp. */
223
+ at: number;
224
+ /** Who made the change. */
225
+ actor: {
226
+ kind: "human" | "agent";
227
+ id: string;
228
+ name?: string;
229
+ color?: string;
230
+ };
231
+ /** What changed. */
232
+ op: DeckOp;
233
+ }
234
+ type DeckOp = {
235
+ kind: "deck_set_title";
236
+ title: string;
237
+ } | {
238
+ kind: "deck_apply_theme";
239
+ theme: Theme;
240
+ } | {
241
+ kind: "slide_add";
242
+ index: number;
243
+ slide: Slide;
244
+ } | {
245
+ kind: "slide_remove";
246
+ id: string;
247
+ } | {
248
+ kind: "slide_reorder";
249
+ id: string;
250
+ toIndex: number;
251
+ } | {
252
+ kind: "slide_set_layout";
253
+ id: string;
254
+ layout: SlideLayout;
255
+ } | {
256
+ kind: "slide_set_notes";
257
+ id: string;
258
+ notes: string;
259
+ } | {
260
+ kind: "slide_set_background";
261
+ id: string;
262
+ background?: SlideBackground;
263
+ } | {
264
+ kind: "slide_set_transition";
265
+ id: string;
266
+ transition?: SlideTransition;
267
+ } | {
268
+ kind: "element_add";
269
+ slideId: string;
270
+ element: SlideElement;
271
+ } | {
272
+ kind: "element_remove";
273
+ slideId: string;
274
+ elementId: string;
275
+ } | {
276
+ kind: "element_update";
277
+ slideId: string;
278
+ elementId: string;
279
+ patch: Partial<SlideElement>;
280
+ } | {
281
+ kind: "element_move";
282
+ slideId: string;
283
+ elementId: string;
284
+ x: number;
285
+ y: number;
286
+ } | {
287
+ kind: "element_resize";
288
+ slideId: string;
289
+ elementId: string;
290
+ w: number;
291
+ h: number;
292
+ };
293
+
294
+ export type { ChartElement as C, Deck as D, ElementBase as E, ImageElement as I, ShapeElement as S, TableElement as T, CodeElement as a, DeckActivity as b, DeckOp as c, EmbedElement as d, ShapeKind as e, Slide as f, SlideBackground as g, SlideElement as h, SlideLayout as i, SlideTransition as j, TextElement as k, TextStyle as l, Theme as m, ThemeColors as n, ThemeFonts as o, TransitionKind as p };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/fancy-slides",
3
- "version": "0.1.6",
3
+ "version": "0.2.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",