@particle-academy/fancy-slides 0.7.0 → 0.9.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/dist/index.cjs +148 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +149 -12
- package/dist/index.js.map +1 -1
- package/dist/registry.d.cts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/{types-9BbelJX1.d.cts → types-2yYMJPhi.d.cts} +20 -1
- package/dist/{types-9BbelJX1.d.ts → types-2yYMJPhi.d.ts} +20 -1
- package/package.json +1 -1
package/dist/registry.d.cts
CHANGED
package/dist/registry.d.ts
CHANGED
|
@@ -22,9 +22,21 @@ interface Deck {
|
|
|
22
22
|
slides: Slide[];
|
|
23
23
|
/** Visual theme for the whole deck. */
|
|
24
24
|
theme: Theme;
|
|
25
|
+
/**
|
|
26
|
+
* Schema version the deck was authored against. Omitted == version 1 (the
|
|
27
|
+
* implicit version for decks created before versioning). Used by the
|
|
28
|
+
* serialize / parse helpers to migrate older shapes forward. Mirrors
|
|
29
|
+
* `dark-slide`'s `Schema::SCHEMA_VERSION`.
|
|
30
|
+
*/
|
|
31
|
+
version?: number;
|
|
25
32
|
/** Free-form metadata — `{ author, createdAt, updatedAt, tags, … }`. */
|
|
26
33
|
metadata?: Record<string, unknown>;
|
|
27
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Current deck schema version. Bump when a structural change needs migration on
|
|
37
|
+
* load. Kept in lockstep with the sibling `dark-slide` PHP package.
|
|
38
|
+
*/
|
|
39
|
+
declare const SCHEMA_VERSION = 1;
|
|
28
40
|
/** Layout presets that pre-populate / constrain element placement. */
|
|
29
41
|
type SlideLayout = "blank" | "title" | "title-content" | "two-column" | "section-divider" | "image-text" | "text-image" | "quote";
|
|
30
42
|
interface Slide {
|
|
@@ -68,6 +80,13 @@ interface ElementBase {
|
|
|
68
80
|
locked?: boolean;
|
|
69
81
|
/** Hide on this slide (still in the data — for animated reveals). */
|
|
70
82
|
hidden?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whole-element hyperlink. When set, the element becomes a click target in
|
|
85
|
+
* the viewer (opens in a new tab) and the pptx writer emits an
|
|
86
|
+
* `<a:hlinkClick>` on the shape / picture. For rich inline links *within*
|
|
87
|
+
* text, use a markdown `[label](url)` in the text content instead.
|
|
88
|
+
*/
|
|
89
|
+
href?: string;
|
|
71
90
|
/** Entrance build animation — when present the element participates in the slide's build sequence. */
|
|
72
91
|
animation?: ElementAnimation;
|
|
73
92
|
}
|
|
@@ -332,4 +351,4 @@ type DeckOp = {
|
|
|
332
351
|
animation?: ElementAnimation;
|
|
333
352
|
};
|
|
334
353
|
|
|
335
|
-
export type
|
|
354
|
+
export { type AnimationEffect as A, type ChartElement as C, type Deck as D, type ElementAnimation as E, type ImageElement as I, SCHEMA_VERSION as S, type TableElement as T, type AnimationTrigger as a, type CodeElement as b, type DeckActivity as c, type DeckOp as d, type ElementBase as e, type EmbedElement as f, type ShapeElement as g, type ShapeKind as h, type Slide as i, type SlideBackground as j, type SlideElement as k, type SlideLayout as l, type SlideTransition as m, type TextElement as n, type TextStyle as o, type Theme as p, type ThemeColors as q, type ThemeFonts as r, type TransitionKind as s };
|
|
@@ -22,9 +22,21 @@ interface Deck {
|
|
|
22
22
|
slides: Slide[];
|
|
23
23
|
/** Visual theme for the whole deck. */
|
|
24
24
|
theme: Theme;
|
|
25
|
+
/**
|
|
26
|
+
* Schema version the deck was authored against. Omitted == version 1 (the
|
|
27
|
+
* implicit version for decks created before versioning). Used by the
|
|
28
|
+
* serialize / parse helpers to migrate older shapes forward. Mirrors
|
|
29
|
+
* `dark-slide`'s `Schema::SCHEMA_VERSION`.
|
|
30
|
+
*/
|
|
31
|
+
version?: number;
|
|
25
32
|
/** Free-form metadata — `{ author, createdAt, updatedAt, tags, … }`. */
|
|
26
33
|
metadata?: Record<string, unknown>;
|
|
27
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Current deck schema version. Bump when a structural change needs migration on
|
|
37
|
+
* load. Kept in lockstep with the sibling `dark-slide` PHP package.
|
|
38
|
+
*/
|
|
39
|
+
declare const SCHEMA_VERSION = 1;
|
|
28
40
|
/** Layout presets that pre-populate / constrain element placement. */
|
|
29
41
|
type SlideLayout = "blank" | "title" | "title-content" | "two-column" | "section-divider" | "image-text" | "text-image" | "quote";
|
|
30
42
|
interface Slide {
|
|
@@ -68,6 +80,13 @@ interface ElementBase {
|
|
|
68
80
|
locked?: boolean;
|
|
69
81
|
/** Hide on this slide (still in the data — for animated reveals). */
|
|
70
82
|
hidden?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whole-element hyperlink. When set, the element becomes a click target in
|
|
85
|
+
* the viewer (opens in a new tab) and the pptx writer emits an
|
|
86
|
+
* `<a:hlinkClick>` on the shape / picture. For rich inline links *within*
|
|
87
|
+
* text, use a markdown `[label](url)` in the text content instead.
|
|
88
|
+
*/
|
|
89
|
+
href?: string;
|
|
71
90
|
/** Entrance build animation — when present the element participates in the slide's build sequence. */
|
|
72
91
|
animation?: ElementAnimation;
|
|
73
92
|
}
|
|
@@ -332,4 +351,4 @@ type DeckOp = {
|
|
|
332
351
|
animation?: ElementAnimation;
|
|
333
352
|
};
|
|
334
353
|
|
|
335
|
-
export type
|
|
354
|
+
export { type AnimationEffect as A, type ChartElement as C, type Deck as D, type ElementAnimation as E, type ImageElement as I, SCHEMA_VERSION as S, type TableElement as T, type AnimationTrigger as a, type CodeElement as b, type DeckActivity as c, type DeckOp as d, type ElementBase as e, type EmbedElement as f, type ShapeElement as g, type ShapeKind as h, type Slide as i, type SlideBackground as j, type SlideElement as k, type SlideLayout as l, type SlideTransition as m, type TextElement as n, type TextStyle as o, type Theme as p, type ThemeColors as q, type ThemeFonts as r, type TransitionKind as s };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/fancy-slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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",
|