@thanh01.pmt/presentation-kit 0.2.1 → 0.2.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.
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkRJMPTRL3_cjs = require('../chunk-RJMPTRL3.cjs');
3
+ var chunkVLAPHJOC_cjs = require('../chunk-VLAPHJOC.cjs');
4
+ var chunkO5MCKVEA_cjs = require('../chunk-O5MCKVEA.cjs');
4
5
  var react = require('react');
5
6
  var jsxRuntime = require('react/jsx-runtime');
6
7
 
@@ -20,7 +21,7 @@ function useSlideState(options) {
20
21
  const result = react.useMemo(() => {
21
22
  if (!markdown || !markdown.trim()) return null;
22
23
  renderCountRef.current++;
23
- return chunkRJMPTRL3_cjs.renderSlide(markdown, {
24
+ return chunkVLAPHJOC_cjs.renderSlide(markdown, {
24
25
  theme,
25
26
  enableMermaid: true,
26
27
  enableClicks,
@@ -764,7 +765,7 @@ function SlideDesignOverlay({
764
765
  "select",
765
766
  {
766
767
  onChange: (e) => {
767
- const preset = chunkRJMPTRL3_cjs.SLIDE_LAYOUT_PRESETS.find((p) => p.id === e.target.value);
768
+ const preset = chunkO5MCKVEA_cjs.SLIDE_LAYOUT_PRESETS.find((p) => p.id === e.target.value);
768
769
  if (preset) {
769
770
  const clonedBoxes = JSON.parse(JSON.stringify(preset.layout.boxes));
770
771
  setBoxes(clonedBoxes);
@@ -782,7 +783,7 @@ function SlideDesignOverlay({
782
783
  title: "\xC1p d\u1EE5ng m\u1EABu b\u1ED1 c\u1EE5c c\xF3 s\u1EB5n",
783
784
  children: [
784
785
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: true, style: { backgroundColor: "#1e1f29", color: "#94a3b8" }, children: "M\u1EABu b\u1ED1 c\u1EE5c (Presets)..." }),
785
- chunkRJMPTRL3_cjs.SLIDE_LAYOUT_PRESETS.map((p) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: p.id, style: { backgroundColor: "#1e1f29", color: "#f8fafc" }, children: p.name }, p.id))
786
+ chunkO5MCKVEA_cjs.SLIDE_LAYOUT_PRESETS.map((p) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: p.id, style: { backgroundColor: "#1e1f29", color: "#f8fafc" }, children: p.name }, p.id))
786
787
  ]
787
788
  }
788
789
  ),
@@ -1212,7 +1213,7 @@ function SlideViewer({
1212
1213
  containers.forEach((container) => {
1213
1214
  if (container instanceof HTMLElement) {
1214
1215
  const themeName2 = typeof theme === "string" ? theme : "dark";
1215
- chunkRJMPTRL3_cjs.renderMermaidDiagrams(container, themeName2).catch(() => {
1216
+ chunkVLAPHJOC_cjs.renderMermaidDiagrams(container, themeName2).catch(() => {
1216
1217
  });
1217
1218
  }
1218
1219
  });
@@ -1429,7 +1430,7 @@ function SlideViewer({
1429
1430
  onSave: (layout) => {
1430
1431
  setLiveLayout(layout);
1431
1432
  if (onSaveMarkdown) {
1432
- const updated = chunkRJMPTRL3_cjs.updateSlideLayoutInMarkdown(markdown, currentIndex, layout);
1433
+ const updated = chunkO5MCKVEA_cjs.updateSlideLayoutInMarkdown(markdown, currentIndex, layout);
1433
1434
  onSaveMarkdown(updated);
1434
1435
  }
1435
1436
  },
@@ -1465,35 +1466,35 @@ function SlideViewer({
1465
1466
 
1466
1467
  Object.defineProperty(exports, "defineTheme", {
1467
1468
  enumerable: true,
1468
- get: function () { return chunkRJMPTRL3_cjs.defineTheme; }
1469
+ get: function () { return chunkVLAPHJOC_cjs.defineTheme; }
1469
1470
  });
1470
1471
  Object.defineProperty(exports, "extractMaxClicks", {
1471
1472
  enumerable: true,
1472
- get: function () { return chunkRJMPTRL3_cjs.extractMaxClicks; }
1473
+ get: function () { return chunkVLAPHJOC_cjs.extractMaxClicks; }
1473
1474
  });
1474
1475
  Object.defineProperty(exports, "generateClickCss", {
1475
1476
  enumerable: true,
1476
- get: function () { return chunkRJMPTRL3_cjs.generateClickCss; }
1477
+ get: function () { return chunkVLAPHJOC_cjs.generateClickCss; }
1477
1478
  });
1478
1479
  Object.defineProperty(exports, "postprocessClicks", {
1479
1480
  enumerable: true,
1480
- get: function () { return chunkRJMPTRL3_cjs.postprocessClicks; }
1481
+ get: function () { return chunkVLAPHJOC_cjs.postprocessClicks; }
1481
1482
  });
1482
1483
  Object.defineProperty(exports, "preprocessClicks", {
1483
1484
  enumerable: true,
1484
- get: function () { return chunkRJMPTRL3_cjs.preprocessClicks; }
1485
+ get: function () { return chunkVLAPHJOC_cjs.preprocessClicks; }
1485
1486
  });
1486
1487
  Object.defineProperty(exports, "renderSlide", {
1487
1488
  enumerable: true,
1488
- get: function () { return chunkRJMPTRL3_cjs.renderSlide; }
1489
+ get: function () { return chunkVLAPHJOC_cjs.renderSlide; }
1489
1490
  });
1490
1491
  Object.defineProperty(exports, "renderSlideAsync", {
1491
1492
  enumerable: true,
1492
- get: function () { return chunkRJMPTRL3_cjs.renderSlideAsync; }
1493
+ get: function () { return chunkVLAPHJOC_cjs.renderSlideAsync; }
1493
1494
  });
1494
1495
  Object.defineProperty(exports, "resolveTheme", {
1495
1496
  enumerable: true,
1496
- get: function () { return chunkRJMPTRL3_cjs.resolveTheme; }
1497
+ get: function () { return chunkVLAPHJOC_cjs.resolveTheme; }
1497
1498
  });
1498
1499
  exports.DeckView = DeckView;
1499
1500
  exports.NavigationBar = NavigationBar;