@thanh01.pmt/presentation-kit 0.3.1 → 0.3.3
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/ai/index.cjs +22 -22
- package/dist/ai/index.js +2 -2
- package/dist/{chunk-CVEC72CT.cjs → chunk-2FJGU32M.cjs} +4 -4
- package/dist/{chunk-CVEC72CT.cjs.map → chunk-2FJGU32M.cjs.map} +1 -1
- package/dist/{chunk-HSVXH7DD.cjs → chunk-EAPUC5BA.cjs} +3 -2
- package/dist/chunk-EAPUC5BA.cjs.map +1 -0
- package/dist/{chunk-3DXMAPAY.js → chunk-FIBXWRWQ.js} +3 -3
- package/dist/{chunk-3DXMAPAY.js.map → chunk-FIBXWRWQ.js.map} +1 -1
- package/dist/{chunk-5HIDQQHE.js → chunk-LVSQN2VI.js} +49 -2
- package/dist/chunk-LVSQN2VI.js.map +1 -0
- package/dist/{chunk-VRXEXUHR.js → chunk-WNPKREEW.js} +3 -2
- package/dist/chunk-WNPKREEW.js.map +1 -0
- package/dist/{chunk-5WEZOGQA.cjs → chunk-YO6TN5TA.cjs} +49 -2
- package/dist/chunk-YO6TN5TA.cjs.map +1 -0
- package/dist/index.cjs +61 -61
- package/dist/index.js +4 -4
- package/dist/node/index.cjs +173 -11
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +31 -1
- package/dist/node/index.d.ts +31 -1
- package/dist/node/index.js +170 -10
- package/dist/node/index.js.map +1 -1
- package/dist/react/index.cjs +13 -13
- package/dist/react/index.js +3 -3
- package/dist/skills/index.cjs +13 -13
- package/dist/skills/index.d.cts +1 -1
- package/dist/skills/index.d.ts +1 -1
- package/dist/skills/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5HIDQQHE.js.map +0 -1
- package/dist/chunk-5WEZOGQA.cjs.map +0 -1
- package/dist/chunk-HSVXH7DD.cjs.map +0 -1
- package/dist/chunk-VRXEXUHR.js.map +0 -1
package/dist/skills/index.cjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEAPUC5BA_cjs = require('../chunk-EAPUC5BA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "FRONTEND_SLIDES_CORE_RULES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkEAPUC5BA_cjs.FRONTEND_SLIDES_CORE_RULES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "STYLE_PRESETS", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEAPUC5BA_cjs.STYLE_PRESETS; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "TEMPLATES_CATALOG", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkEAPUC5BA_cjs.TEMPLATES_CATALOG; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "VIEWPORT_BASE_CSS", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkEAPUC5BA_cjs.VIEWPORT_BASE_CSS; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "frontendSlidesTools", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEAPUC5BA_cjs.frontendSlidesTools; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getFrontendSlidesSkillPrompt", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEAPUC5BA_cjs.getFrontendSlidesSkillPrompt; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getSlideStylePresetSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkEAPUC5BA_cjs.getSlideStylePresetSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getStylePreset", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkEAPUC5BA_cjs.getStylePreset; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "getStylePresetById", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkEAPUC5BA_cjs.getStylePresetById; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "getTemplatesCatalog", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkEAPUC5BA_cjs.getTemplatesCatalog; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "querySlideTemplatesSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkEAPUC5BA_cjs.querySlideTemplatesSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "searchTemplates", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkEAPUC5BA_cjs.searchTemplates; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
package/dist/skills/index.d.cts
CHANGED
|
@@ -38,7 +38,7 @@ declare const TEMPLATES_CATALOG: TemplateCatalogItem[];
|
|
|
38
38
|
declare const STYLE_PRESETS: StylePresetItem[];
|
|
39
39
|
|
|
40
40
|
declare const VIEWPORT_BASE_CSS = "/* ===========================================\n FIXED 16:9 STAGE: MANDATORY BASE STYLES\n Slides are authored at 1920\u00D71080 and scaled as a whole.\n =========================================== */\n\nhtml, body {\n width: 100%;\n height: 100%;\n margin: 0;\n overflow: hidden;\n background: var(--stage-bg, #000);\n}\n\n.deck-viewport {\n position: fixed;\n inset: 0;\n overflow: hidden;\n background: var(--stage-bg, #000);\n}\n\n.deck-stage {\n position: absolute;\n left: 0;\n top: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n transform-origin: 0 0;\n background: var(--slide-bg, #fff);\n}\n\n.slide {\n position: absolute;\n inset: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n display: block;\n visibility: hidden;\n opacity: 0;\n pointer-events: none;\n background: var(--slide-bg, #fff);\n}\n\n.slide.active,\n.slide.visible {\n visibility: visible;\n opacity: 1;\n pointer-events: auto;\n z-index: 1;\n}\n\nimg, video, canvas, svg {\n max-width: 100%;\n max-height: 100%;\n}\n\n.reveal {\n opacity: 0;\n transform: translateY(30px);\n transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),\n transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);\n}\n\n.slide.visible .reveal,\n.slide.active .reveal {\n opacity: 1;\n transform: translateY(0);\n}\n\n.reveal:nth-child(1) { transition-delay: 0.08s; }\n.reveal:nth-child(2) { transition-delay: 0.16s; }\n.reveal:nth-child(3) { transition-delay: 0.24s; }\n.reveal:nth-child(4) { transition-delay: 0.32s; }\n.reveal:nth-child(5) { transition-delay: 0.40s; }\n\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after {\n animation-duration: 0.01ms !important;\n transition-duration: 0.1s !important;\n }\n}\n";
|
|
41
|
-
declare const FRONTEND_SLIDES_CORE_RULES = "\n# FRONTEND SLIDES SKILL & QUALITY INVARIANTS\n\n## 1. Core Principles (Non-Negotiable)\n1. **Zero Dependencies** \u2014 Single HTML presentation with inline scoped CSS and JS.\n2. **Fixed 16:9 Stage Canvas** \u2014 Every slide is strictly authored inside a fixed 1920\u00D71080 stage canvas (.deck-stage) scaled to the browser viewport. Never reflow slide content for different screen ratios.\n3. **No AI-Slop Design** \u2014 Never use generic purple gradients, clich\u00E9 fonts (Arial, Roboto), or boring corporate bullets. Use curated palettes (Electric Studio, Blue Professional, Cobalt Grid) and distinctive typography (Space Grotesk, Inter, Syne, JetBrains Mono).\n4. **Staggered Reveals** \u2014 Use the .reveal class on key elements with transition delays for smooth, cinematic entrance animations.\n5. **No Pixel Coordinates** \u2014 NEVER output free-form bounding-box coordinates like \"position\": { \"x\", \"y\" } or \"layout\": \"title_and_content\". Always populate semantic layout slots.\n\n## 2. Pacing & Pedagogical Structure\nA complete lesson deck MUST have 8 to 12 slides following the Chunky Micro-Cycle:\n1. **Cover (hero-cover):** Lesson title, topic badge, learning goal, author/date.\n2. **Agenda & Roadmap (two-columns-compare or timeline-steps):** Milestones and timing.\n3. **Core Mental Model (split-concept-code):** Definition, analogy, and runnable starter code.\n4. **Visual Architecture (three-cards-grid):** 3-pillar breakdown of mechanisms.\n5. **Syntax & Deep Dive (split-concept-code):** Concrete language syntax, gotchas, and annotated snippet.\n6. **Timeline Execution (timeline-steps):** Step-by-step pipeline or algorithmic flow.\n7. **Interactive Formative Check (checkpoint-quiz):** Multiple-choice diagnostic question with explanation.\n8. **Summary & Next Milestone (summary-takeaways):** 3-4 golden takeaways and preview of next lesson.\n";
|
|
41
|
+
declare const FRONTEND_SLIDES_CORE_RULES = "\n# FRONTEND SLIDES SKILL & QUALITY INVARIANTS\n\n## 1. Core Principles (Non-Negotiable)\n1. **Zero Dependencies** \u2014 Single HTML presentation with inline scoped CSS and JS.\n2. **Fixed 16:9 Stage Canvas** \u2014 Every slide is strictly authored inside a fixed 1920\u00D71080 stage canvas (.deck-stage) scaled to the browser viewport. Never reflow slide content for different screen ratios.\n3. **No AI-Slop Design** \u2014 Never use generic purple gradients, clich\u00E9 fonts (Arial, Roboto), or boring corporate bullets. Use curated palettes (Electric Studio, Blue Professional, Cobalt Grid) and distinctive typography (Space Grotesk, Inter, Syne, JetBrains Mono).\n4. **Staggered Reveals** \u2014 Use the .reveal class on key elements with transition delays for smooth, cinematic entrance animations.\n5. **No Pixel Coordinates** \u2014 NEVER output free-form bounding-box coordinates like \"position\": { \"x\", \"y\" } or \"layout\": \"title_and_content\". Always populate semantic layout slots.\n6. **Full-Stage Composition** \u2014 The composition must occupy the full 1920\u00D71080 stage height. No vertical dead band taller than ~150px between blocks: if content is light, scale the type and spacing up or center the whole composition as a hero; never bottom-anchor content under a header (space-between on a full-height root with few children pools all leftover height into one hole).\n\n## 2. Pacing & Pedagogical Structure\nA complete lesson deck MUST have 8 to 12 slides following the Chunky Micro-Cycle:\n1. **Cover (hero-cover):** Lesson title, topic badge, learning goal, author/date.\n2. **Agenda & Roadmap (two-columns-compare or timeline-steps):** Milestones and timing.\n3. **Core Mental Model (split-concept-code):** Definition, analogy, and runnable starter code.\n4. **Visual Architecture (three-cards-grid):** 3-pillar breakdown of mechanisms.\n5. **Syntax & Deep Dive (split-concept-code):** Concrete language syntax, gotchas, and annotated snippet.\n6. **Timeline Execution (timeline-steps):** Step-by-step pipeline or algorithmic flow.\n7. **Interactive Formative Check (checkpoint-quiz):** Multiple-choice diagnostic question with explanation.\n8. **Summary & Next Milestone (summary-takeaways):** 3-4 golden takeaways and preview of next lesson.\n";
|
|
42
42
|
|
|
43
43
|
interface FrontendSlidesSkillOptions {
|
|
44
44
|
mood?: string;
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare const TEMPLATES_CATALOG: TemplateCatalogItem[];
|
|
|
38
38
|
declare const STYLE_PRESETS: StylePresetItem[];
|
|
39
39
|
|
|
40
40
|
declare const VIEWPORT_BASE_CSS = "/* ===========================================\n FIXED 16:9 STAGE: MANDATORY BASE STYLES\n Slides are authored at 1920\u00D71080 and scaled as a whole.\n =========================================== */\n\nhtml, body {\n width: 100%;\n height: 100%;\n margin: 0;\n overflow: hidden;\n background: var(--stage-bg, #000);\n}\n\n.deck-viewport {\n position: fixed;\n inset: 0;\n overflow: hidden;\n background: var(--stage-bg, #000);\n}\n\n.deck-stage {\n position: absolute;\n left: 0;\n top: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n transform-origin: 0 0;\n background: var(--slide-bg, #fff);\n}\n\n.slide {\n position: absolute;\n inset: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n display: block;\n visibility: hidden;\n opacity: 0;\n pointer-events: none;\n background: var(--slide-bg, #fff);\n}\n\n.slide.active,\n.slide.visible {\n visibility: visible;\n opacity: 1;\n pointer-events: auto;\n z-index: 1;\n}\n\nimg, video, canvas, svg {\n max-width: 100%;\n max-height: 100%;\n}\n\n.reveal {\n opacity: 0;\n transform: translateY(30px);\n transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),\n transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);\n}\n\n.slide.visible .reveal,\n.slide.active .reveal {\n opacity: 1;\n transform: translateY(0);\n}\n\n.reveal:nth-child(1) { transition-delay: 0.08s; }\n.reveal:nth-child(2) { transition-delay: 0.16s; }\n.reveal:nth-child(3) { transition-delay: 0.24s; }\n.reveal:nth-child(4) { transition-delay: 0.32s; }\n.reveal:nth-child(5) { transition-delay: 0.40s; }\n\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after {\n animation-duration: 0.01ms !important;\n transition-duration: 0.1s !important;\n }\n}\n";
|
|
41
|
-
declare const FRONTEND_SLIDES_CORE_RULES = "\n# FRONTEND SLIDES SKILL & QUALITY INVARIANTS\n\n## 1. Core Principles (Non-Negotiable)\n1. **Zero Dependencies** \u2014 Single HTML presentation with inline scoped CSS and JS.\n2. **Fixed 16:9 Stage Canvas** \u2014 Every slide is strictly authored inside a fixed 1920\u00D71080 stage canvas (.deck-stage) scaled to the browser viewport. Never reflow slide content for different screen ratios.\n3. **No AI-Slop Design** \u2014 Never use generic purple gradients, clich\u00E9 fonts (Arial, Roboto), or boring corporate bullets. Use curated palettes (Electric Studio, Blue Professional, Cobalt Grid) and distinctive typography (Space Grotesk, Inter, Syne, JetBrains Mono).\n4. **Staggered Reveals** \u2014 Use the .reveal class on key elements with transition delays for smooth, cinematic entrance animations.\n5. **No Pixel Coordinates** \u2014 NEVER output free-form bounding-box coordinates like \"position\": { \"x\", \"y\" } or \"layout\": \"title_and_content\". Always populate semantic layout slots.\n\n## 2. Pacing & Pedagogical Structure\nA complete lesson deck MUST have 8 to 12 slides following the Chunky Micro-Cycle:\n1. **Cover (hero-cover):** Lesson title, topic badge, learning goal, author/date.\n2. **Agenda & Roadmap (two-columns-compare or timeline-steps):** Milestones and timing.\n3. **Core Mental Model (split-concept-code):** Definition, analogy, and runnable starter code.\n4. **Visual Architecture (three-cards-grid):** 3-pillar breakdown of mechanisms.\n5. **Syntax & Deep Dive (split-concept-code):** Concrete language syntax, gotchas, and annotated snippet.\n6. **Timeline Execution (timeline-steps):** Step-by-step pipeline or algorithmic flow.\n7. **Interactive Formative Check (checkpoint-quiz):** Multiple-choice diagnostic question with explanation.\n8. **Summary & Next Milestone (summary-takeaways):** 3-4 golden takeaways and preview of next lesson.\n";
|
|
41
|
+
declare const FRONTEND_SLIDES_CORE_RULES = "\n# FRONTEND SLIDES SKILL & QUALITY INVARIANTS\n\n## 1. Core Principles (Non-Negotiable)\n1. **Zero Dependencies** \u2014 Single HTML presentation with inline scoped CSS and JS.\n2. **Fixed 16:9 Stage Canvas** \u2014 Every slide is strictly authored inside a fixed 1920\u00D71080 stage canvas (.deck-stage) scaled to the browser viewport. Never reflow slide content for different screen ratios.\n3. **No AI-Slop Design** \u2014 Never use generic purple gradients, clich\u00E9 fonts (Arial, Roboto), or boring corporate bullets. Use curated palettes (Electric Studio, Blue Professional, Cobalt Grid) and distinctive typography (Space Grotesk, Inter, Syne, JetBrains Mono).\n4. **Staggered Reveals** \u2014 Use the .reveal class on key elements with transition delays for smooth, cinematic entrance animations.\n5. **No Pixel Coordinates** \u2014 NEVER output free-form bounding-box coordinates like \"position\": { \"x\", \"y\" } or \"layout\": \"title_and_content\". Always populate semantic layout slots.\n6. **Full-Stage Composition** \u2014 The composition must occupy the full 1920\u00D71080 stage height. No vertical dead band taller than ~150px between blocks: if content is light, scale the type and spacing up or center the whole composition as a hero; never bottom-anchor content under a header (space-between on a full-height root with few children pools all leftover height into one hole).\n\n## 2. Pacing & Pedagogical Structure\nA complete lesson deck MUST have 8 to 12 slides following the Chunky Micro-Cycle:\n1. **Cover (hero-cover):** Lesson title, topic badge, learning goal, author/date.\n2. **Agenda & Roadmap (two-columns-compare or timeline-steps):** Milestones and timing.\n3. **Core Mental Model (split-concept-code):** Definition, analogy, and runnable starter code.\n4. **Visual Architecture (three-cards-grid):** 3-pillar breakdown of mechanisms.\n5. **Syntax & Deep Dive (split-concept-code):** Concrete language syntax, gotchas, and annotated snippet.\n6. **Timeline Execution (timeline-steps):** Step-by-step pipeline or algorithmic flow.\n7. **Interactive Formative Check (checkpoint-quiz):** Multiple-choice diagnostic question with explanation.\n8. **Summary & Next Milestone (summary-takeaways):** 3-4 golden takeaways and preview of next lesson.\n";
|
|
42
42
|
|
|
43
43
|
interface FrontendSlidesSkillOptions {
|
|
44
44
|
mood?: string;
|
package/dist/skills/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FRONTEND_SLIDES_CORE_RULES, STYLE_PRESETS, TEMPLATES_CATALOG, VIEWPORT_BASE_CSS, frontendSlidesTools, getFrontendSlidesSkillPrompt, getSlideStylePresetSchema, getStylePreset, getStylePresetById, getTemplatesCatalog, querySlideTemplatesSchema, searchTemplates } from '../chunk-
|
|
1
|
+
export { FRONTEND_SLIDES_CORE_RULES, STYLE_PRESETS, TEMPLATES_CATALOG, VIEWPORT_BASE_CSS, frontendSlidesTools, getFrontendSlidesSkillPrompt, getSlideStylePresetSchema, getStylePreset, getStylePresetById, getTemplatesCatalog, querySlideTemplatesSchema, searchTemplates } from '../chunk-WNPKREEW.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thanh01.pmt/presentation-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Standalone client-side slide rendering engine with Marp, Shiki syntax highlighting, Mermaid diagrams, custom themes, and AI slide authoring tools.",
|
|
5
5
|
"author": "Thanh Pham <https://github.com/thanh01pmt>",
|
|
6
6
|
"license": "MIT",
|