@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 CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk3Q4RMZVQ_cjs = require('../chunk-3Q4RMZVQ.cjs');
4
- var chunk5WEZOGQA_cjs = require('../chunk-5WEZOGQA.cjs');
5
- var chunkHSVXH7DD_cjs = require('../chunk-HSVXH7DD.cjs');
4
+ var chunkYO6TN5TA_cjs = require('../chunk-YO6TN5TA.cjs');
5
+ var chunkEAPUC5BA_cjs = require('../chunk-EAPUC5BA.cjs');
6
6
  var zod = require('zod');
7
7
 
8
8
  var listSlidePresetsSchema = zod.z.object({
@@ -471,20 +471,20 @@ function validateHtmlSlideDeck(deck, strict = false) {
471
471
  slides.forEach((slide, idx) => {
472
472
  const slideNumber = idx + 1;
473
473
  const layoutId = slide.layoutId;
474
- const preset = chunk5WEZOGQA_cjs.HTML_SLIDE_PRESETS[layoutId];
474
+ const preset = chunkYO6TN5TA_cjs.HTML_SLIDE_PRESETS[layoutId];
475
475
  if (!preset) {
476
476
  issues.push({
477
477
  slideIndex: slideNumber,
478
478
  severity: "error",
479
479
  rule: "INVALID_LAYOUT_PRESET",
480
- message: `Unknown layoutId "${slide.layoutId}". Available presets: ${Object.keys(chunk5WEZOGQA_cjs.HTML_SLIDE_PRESETS).join(", ")}`
480
+ message: `Unknown layoutId "${slide.layoutId}". Available presets: ${Object.keys(chunkYO6TN5TA_cjs.HTML_SLIDE_PRESETS).join(", ")}`
481
481
  });
482
482
  return;
483
483
  }
484
484
  if (preset.category === "cover" && idx === 0) hasCover = true;
485
485
  if (preset.id === "checkpoint-quiz") hasQuiz = true;
486
486
  if (preset.id === "summary-takeaways") hasSummary = true;
487
- const slots = chunk5WEZOGQA_cjs.normalizeSlideSlots(slide);
487
+ const slots = chunkYO6TN5TA_cjs.normalizeSlideSlots(slide);
488
488
  for (const slotDef of preset.slots) {
489
489
  if (slotDef.required) {
490
490
  const val = slots[slotDef.name];
@@ -775,7 +775,7 @@ var createHtmlSlideSchema = zod.z.object({
775
775
  // src/ai/html/tools.ts
776
776
  function handleListHtmlSlidePresets(input) {
777
777
  const category = input.category || "all";
778
- const presets = Object.values(chunk5WEZOGQA_cjs.HTML_SLIDE_PRESETS).filter((p) => category === "all" || p.category === category).map((p) => ({
778
+ const presets = Object.values(chunkYO6TN5TA_cjs.HTML_SLIDE_PRESETS).filter((p) => category === "all" || p.category === category).map((p) => ({
779
779
  id: p.id,
780
780
  name: p.name,
781
781
  category: p.category,
@@ -791,12 +791,12 @@ function handleListHtmlSlidePresets(input) {
791
791
  return {
792
792
  success: true,
793
793
  presets,
794
- availableThemes: Object.keys(chunk5WEZOGQA_cjs.HTML_THEMES)
794
+ availableThemes: Object.keys(chunkYO6TN5TA_cjs.HTML_THEMES)
795
795
  };
796
796
  }
797
797
  function handleGenerateHtmlDeck(input) {
798
798
  try {
799
- const result = chunk5WEZOGQA_cjs.compileHtmlDeck(input);
799
+ const result = chunkYO6TN5TA_cjs.compileHtmlDeck(input);
800
800
  return {
801
801
  success: true,
802
802
  title: result.title,
@@ -812,7 +812,7 @@ function handleGenerateHtmlDeck(input) {
812
812
  }
813
813
  }
814
814
  function handleCreateHtmlSlide(input) {
815
- const preset = chunk5WEZOGQA_cjs.HTML_SLIDE_PRESETS[input.layoutId];
815
+ const preset = chunkYO6TN5TA_cjs.HTML_SLIDE_PRESETS[input.layoutId];
816
816
  if (!preset) {
817
817
  return {
818
818
  success: false,
@@ -834,55 +834,55 @@ var executeCreateHtmlSlide = handleCreateHtmlSlide;
834
834
 
835
835
  Object.defineProperty(exports, "FRONTEND_SLIDES_CORE_RULES", {
836
836
  enumerable: true,
837
- get: function () { return chunkHSVXH7DD_cjs.FRONTEND_SLIDES_CORE_RULES; }
837
+ get: function () { return chunkEAPUC5BA_cjs.FRONTEND_SLIDES_CORE_RULES; }
838
838
  });
839
839
  Object.defineProperty(exports, "SLIDE_HTML_PROMPT_CONTRACT", {
840
840
  enumerable: true,
841
- get: function () { return chunkHSVXH7DD_cjs.SLIDE_HTML_PROMPT_CONTRACT; }
841
+ get: function () { return chunkEAPUC5BA_cjs.SLIDE_HTML_PROMPT_CONTRACT; }
842
842
  });
843
843
  Object.defineProperty(exports, "STYLE_PRESETS", {
844
844
  enumerable: true,
845
- get: function () { return chunkHSVXH7DD_cjs.STYLE_PRESETS; }
845
+ get: function () { return chunkEAPUC5BA_cjs.STYLE_PRESETS; }
846
846
  });
847
847
  Object.defineProperty(exports, "TEMPLATES_CATALOG", {
848
848
  enumerable: true,
849
- get: function () { return chunkHSVXH7DD_cjs.TEMPLATES_CATALOG; }
849
+ get: function () { return chunkEAPUC5BA_cjs.TEMPLATES_CATALOG; }
850
850
  });
851
851
  Object.defineProperty(exports, "VIEWPORT_BASE_CSS", {
852
852
  enumerable: true,
853
- get: function () { return chunkHSVXH7DD_cjs.VIEWPORT_BASE_CSS; }
853
+ get: function () { return chunkEAPUC5BA_cjs.VIEWPORT_BASE_CSS; }
854
854
  });
855
855
  Object.defineProperty(exports, "frontendSlidesTools", {
856
856
  enumerable: true,
857
- get: function () { return chunkHSVXH7DD_cjs.frontendSlidesTools; }
857
+ get: function () { return chunkEAPUC5BA_cjs.frontendSlidesTools; }
858
858
  });
859
859
  Object.defineProperty(exports, "getFrontendSlidesSkillPrompt", {
860
860
  enumerable: true,
861
- get: function () { return chunkHSVXH7DD_cjs.getFrontendSlidesSkillPrompt; }
861
+ get: function () { return chunkEAPUC5BA_cjs.getFrontendSlidesSkillPrompt; }
862
862
  });
863
863
  Object.defineProperty(exports, "getSlideStylePresetSchema", {
864
864
  enumerable: true,
865
- get: function () { return chunkHSVXH7DD_cjs.getSlideStylePresetSchema; }
865
+ get: function () { return chunkEAPUC5BA_cjs.getSlideStylePresetSchema; }
866
866
  });
867
867
  Object.defineProperty(exports, "getStylePreset", {
868
868
  enumerable: true,
869
- get: function () { return chunkHSVXH7DD_cjs.getStylePreset; }
869
+ get: function () { return chunkEAPUC5BA_cjs.getStylePreset; }
870
870
  });
871
871
  Object.defineProperty(exports, "getStylePresetById", {
872
872
  enumerable: true,
873
- get: function () { return chunkHSVXH7DD_cjs.getStylePresetById; }
873
+ get: function () { return chunkEAPUC5BA_cjs.getStylePresetById; }
874
874
  });
875
875
  Object.defineProperty(exports, "getTemplatesCatalog", {
876
876
  enumerable: true,
877
- get: function () { return chunkHSVXH7DD_cjs.getTemplatesCatalog; }
877
+ get: function () { return chunkEAPUC5BA_cjs.getTemplatesCatalog; }
878
878
  });
879
879
  Object.defineProperty(exports, "querySlideTemplatesSchema", {
880
880
  enumerable: true,
881
- get: function () { return chunkHSVXH7DD_cjs.querySlideTemplatesSchema; }
881
+ get: function () { return chunkEAPUC5BA_cjs.querySlideTemplatesSchema; }
882
882
  });
883
883
  Object.defineProperty(exports, "searchTemplates", {
884
884
  enumerable: true,
885
- get: function () { return chunkHSVXH7DD_cjs.searchTemplates; }
885
+ get: function () { return chunkEAPUC5BA_cjs.searchTemplates; }
886
886
  });
887
887
  exports.SLIDE_DESIGN_PROMPT_CONTRACT = SLIDE_DESIGN_PROMPT_CONTRACT;
888
888
  exports.applySlideLayoutSchema = applySlideLayoutSchema;
package/dist/ai/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SLIDE_LAYOUT_PRESETS, getSlideLayoutPresetsByCategory, getSlideLayoutPresetById, serializeLayoutToComment, updateSlideLayoutInMarkdown, splitMarkdownSlides } from '../chunk-V6X7D44H.js';
2
- import { HTML_SLIDE_PRESETS, normalizeSlideSlots, HTML_THEMES, compileHtmlDeck } from '../chunk-5HIDQQHE.js';
3
- export { FRONTEND_SLIDES_CORE_RULES, SLIDE_HTML_PROMPT_CONTRACT, STYLE_PRESETS, TEMPLATES_CATALOG, VIEWPORT_BASE_CSS, frontendSlidesTools, getFrontendSlidesSkillPrompt, getSlideStylePresetSchema, getStylePreset, getStylePresetById, getTemplatesCatalog, querySlideTemplatesSchema, searchTemplates } from '../chunk-VRXEXUHR.js';
2
+ import { HTML_SLIDE_PRESETS, normalizeSlideSlots, HTML_THEMES, compileHtmlDeck } from '../chunk-LVSQN2VI.js';
3
+ export { FRONTEND_SLIDES_CORE_RULES, SLIDE_HTML_PROMPT_CONTRACT, STYLE_PRESETS, TEMPLATES_CATALOG, VIEWPORT_BASE_CSS, frontendSlidesTools, getFrontendSlidesSkillPrompt, getSlideStylePresetSchema, getStylePreset, getStylePresetById, getTemplatesCatalog, querySlideTemplatesSchema, searchTemplates } from '../chunk-WNPKREEW.js';
4
4
  import { z } from 'zod';
5
5
 
6
6
  var listSlidePresetsSchema = z.object({
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5WEZOGQA_cjs = require('./chunk-5WEZOGQA.cjs');
3
+ var chunkYO6TN5TA_cjs = require('./chunk-YO6TN5TA.cjs');
4
4
  var yaml = require('js-yaml');
5
5
  var marpCore = require('@marp-team/marp-core');
6
6
 
@@ -1304,7 +1304,7 @@ async function renderSlideAsync(markdown, options) {
1304
1304
  const { layouts, notes } = extractLayoutsAndNotes(comments);
1305
1305
  const layoutCss = generateLayoutCss(layouts, containerId);
1306
1306
  const enableShiki = options?.enableShiki ?? true;
1307
- const processedHtml = enableShiki ? await chunk5WEZOGQA_cjs.highlightCodeBlocks(html, theme.name) : html;
1307
+ const processedHtml = enableShiki ? await chunkYO6TN5TA_cjs.highlightCodeBlocks(html, theme.name) : html;
1308
1308
  return {
1309
1309
  html,
1310
1310
  css,
@@ -1346,5 +1346,5 @@ exports.renderSlide = renderSlide;
1346
1346
  exports.renderSlideAsync = renderSlideAsync;
1347
1347
  exports.resolveTheme = resolveTheme;
1348
1348
  exports.sanitizeMermaidCode = sanitizeMermaidCode;
1349
- //# sourceMappingURL=chunk-CVEC72CT.cjs.map
1350
- //# sourceMappingURL=chunk-CVEC72CT.cjs.map
1349
+ //# sourceMappingURL=chunk-2FJGU32M.cjs.map
1350
+ //# sourceMappingURL=chunk-2FJGU32M.cjs.map