@thanh01.pmt/presentation-kit 0.2.18 → 0.3.1
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/README.md +26 -0
- package/dist/ai/index.cjs +16 -15
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +3 -2
- package/dist/ai/index.d.ts +3 -2
- package/dist/ai/index.js +2 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/assets/fonts/NOTICE.md +25 -0
- package/dist/assets/fonts/SOURCES.json +47 -0
- package/dist/assets/fonts/fira-code.woff2 +0 -0
- package/dist/assets/fonts/inter.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono.woff2 +0 -0
- package/dist/assets/fonts/playfair-display.woff2 +0 -0
- package/dist/assets/fonts/plus-jakarta-sans.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk.woff2 +0 -0
- package/dist/{chunk-DDOUFYLK.js → chunk-3DXMAPAY.js} +3 -3
- package/dist/{chunk-DDOUFYLK.js.map → chunk-3DXMAPAY.js.map} +1 -1
- package/dist/chunk-3Q4RMZVQ.cjs +867 -0
- package/dist/chunk-3Q4RMZVQ.cjs.map +1 -0
- package/dist/{chunk-JJQDQIRG.js → chunk-5HIDQQHE.js} +288 -855
- package/dist/chunk-5HIDQQHE.js.map +1 -0
- package/dist/{chunk-SFBEDDGU.cjs → chunk-5WEZOGQA.cjs} +292 -866
- package/dist/chunk-5WEZOGQA.cjs.map +1 -0
- package/dist/{chunk-DIHFQ5LF.cjs → chunk-CVEC72CT.cjs} +4 -4
- package/dist/{chunk-DIHFQ5LF.cjs.map → chunk-CVEC72CT.cjs.map} +1 -1
- package/dist/chunk-V6X7D44H.js +854 -0
- package/dist/chunk-V6X7D44H.js.map +1 -0
- package/dist/{click-css-Bcc1CkTN.d.cts → click-css-C8VciwZ6.d.cts} +1 -1
- package/dist/{click-css-B2s9B_uP.d.ts → click-css-COIiFo1I.d.ts} +1 -1
- package/dist/index.cjs +90 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -5
- package/dist/index.d.ts +46 -5
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +117 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +36 -0
- package/dist/node/index.d.ts +36 -0
- package/dist/node/index.js +105 -0
- package/dist/node/index.js.map +1 -0
- package/dist/{presets-D_hfPJX9.d.ts → presets-DPRGtpO-.d.ts} +1 -1
- package/dist/{presets-BYvgAAkJ.d.cts → presets-MIi91wZg.d.cts} +1 -1
- package/dist/react/index.cjs +17 -16
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +4 -3
- package/dist/react/index.d.ts +4 -3
- package/dist/react/index.js +4 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{types-C3d04zzP.d.cts → types-CvxCxWus.d.cts} +1 -67
- package/dist/{types-C3d04zzP.d.ts → types-CvxCxWus.d.ts} +1 -67
- package/dist/types-k_eae8UV.d.cts +74 -0
- package/dist/types-k_eae8UV.d.ts +74 -0
- package/package.json +8 -2
- package/dist/chunk-JJQDQIRG.js.map +0 -1
- package/dist/chunk-SFBEDDGU.cjs.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCVEC72CT_cjs = require('../chunk-CVEC72CT.cjs');
|
|
4
|
+
var chunk3Q4RMZVQ_cjs = require('../chunk-3Q4RMZVQ.cjs');
|
|
5
|
+
var chunk5WEZOGQA_cjs = require('../chunk-5WEZOGQA.cjs');
|
|
5
6
|
var React2 = require('react');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
@@ -25,7 +26,7 @@ function useSlideState(options) {
|
|
|
25
26
|
const result = React2.useMemo(() => {
|
|
26
27
|
if (!markdown || !markdown.trim()) return null;
|
|
27
28
|
renderCountRef.current++;
|
|
28
|
-
return
|
|
29
|
+
return chunkCVEC72CT_cjs.renderSlide(markdown, {
|
|
29
30
|
theme,
|
|
30
31
|
enableMermaid: true,
|
|
31
32
|
enableClicks,
|
|
@@ -914,7 +915,7 @@ function SlideDesignOverlay({
|
|
|
914
915
|
"select",
|
|
915
916
|
{
|
|
916
917
|
onChange: (e) => {
|
|
917
|
-
const preset =
|
|
918
|
+
const preset = chunk3Q4RMZVQ_cjs.SLIDE_LAYOUT_PRESETS.find((p) => p.id === e.target.value);
|
|
918
919
|
if (preset) {
|
|
919
920
|
const clonedBoxes = JSON.parse(JSON.stringify(preset.layout.boxes));
|
|
920
921
|
setBoxes(clonedBoxes);
|
|
@@ -934,7 +935,7 @@ function SlideDesignOverlay({
|
|
|
934
935
|
title: "\xC1p d\u1EE5ng m\u1EABu b\u1ED1 c\u1EE5c c\xF3 s\u1EB5n",
|
|
935
936
|
children: [
|
|
936
937
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: true, style: { backgroundColor: isLight ? "#ffffff" : "#1e1f29", color: subtextColor }, children: "M\u1EABu b\u1ED1 c\u1EE5c (Presets)..." }),
|
|
937
|
-
|
|
938
|
+
chunk3Q4RMZVQ_cjs.SLIDE_LAYOUT_PRESETS.map((p) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: p.id, style: { backgroundColor: isLight ? "#ffffff" : "#1e1f29", color: isLight ? "#0f172a" : "#f8fafc" }, children: p.name }, p.id))
|
|
938
939
|
]
|
|
939
940
|
}
|
|
940
941
|
),
|
|
@@ -1337,7 +1338,7 @@ function SlideViewer({
|
|
|
1337
1338
|
containers.forEach((container) => {
|
|
1338
1339
|
if (container instanceof HTMLElement) {
|
|
1339
1340
|
const themeName2 = typeof theme === "string" ? theme : "dark";
|
|
1340
|
-
|
|
1341
|
+
chunkCVEC72CT_cjs.renderMermaidDiagrams(container, themeName2).catch(() => {
|
|
1341
1342
|
});
|
|
1342
1343
|
}
|
|
1343
1344
|
});
|
|
@@ -1567,7 +1568,7 @@ function SlideViewer({
|
|
|
1567
1568
|
onSave: (layout) => {
|
|
1568
1569
|
setLiveLayout(layout);
|
|
1569
1570
|
if (onSaveMarkdown) {
|
|
1570
|
-
const updated =
|
|
1571
|
+
const updated = chunk3Q4RMZVQ_cjs.updateSlideLayoutInMarkdown(markdown, currentIndex, layout);
|
|
1571
1572
|
onSaveMarkdown(updated);
|
|
1572
1573
|
}
|
|
1573
1574
|
},
|
|
@@ -1621,7 +1622,7 @@ var HtmlSlideViewer = ({
|
|
|
1621
1622
|
const fullHtml = React2.useMemo(() => {
|
|
1622
1623
|
if (initialHtml) return initialHtml;
|
|
1623
1624
|
if (deckData) {
|
|
1624
|
-
return
|
|
1625
|
+
return chunk5WEZOGQA_cjs.compileHtmlDeck(deckData).html;
|
|
1625
1626
|
}
|
|
1626
1627
|
return "";
|
|
1627
1628
|
}, [initialHtml, deckData]);
|
|
@@ -1777,35 +1778,35 @@ var HtmlSlideViewer = ({
|
|
|
1777
1778
|
|
|
1778
1779
|
Object.defineProperty(exports, "defineTheme", {
|
|
1779
1780
|
enumerable: true,
|
|
1780
|
-
get: function () { return
|
|
1781
|
+
get: function () { return chunkCVEC72CT_cjs.defineTheme; }
|
|
1781
1782
|
});
|
|
1782
1783
|
Object.defineProperty(exports, "extractMaxClicks", {
|
|
1783
1784
|
enumerable: true,
|
|
1784
|
-
get: function () { return
|
|
1785
|
+
get: function () { return chunkCVEC72CT_cjs.extractMaxClicks; }
|
|
1785
1786
|
});
|
|
1786
1787
|
Object.defineProperty(exports, "generateClickCss", {
|
|
1787
1788
|
enumerable: true,
|
|
1788
|
-
get: function () { return
|
|
1789
|
+
get: function () { return chunkCVEC72CT_cjs.generateClickCss; }
|
|
1789
1790
|
});
|
|
1790
1791
|
Object.defineProperty(exports, "postprocessClicks", {
|
|
1791
1792
|
enumerable: true,
|
|
1792
|
-
get: function () { return
|
|
1793
|
+
get: function () { return chunkCVEC72CT_cjs.postprocessClicks; }
|
|
1793
1794
|
});
|
|
1794
1795
|
Object.defineProperty(exports, "preprocessClicks", {
|
|
1795
1796
|
enumerable: true,
|
|
1796
|
-
get: function () { return
|
|
1797
|
+
get: function () { return chunkCVEC72CT_cjs.preprocessClicks; }
|
|
1797
1798
|
});
|
|
1798
1799
|
Object.defineProperty(exports, "renderSlide", {
|
|
1799
1800
|
enumerable: true,
|
|
1800
|
-
get: function () { return
|
|
1801
|
+
get: function () { return chunkCVEC72CT_cjs.renderSlide; }
|
|
1801
1802
|
});
|
|
1802
1803
|
Object.defineProperty(exports, "renderSlideAsync", {
|
|
1803
1804
|
enumerable: true,
|
|
1804
|
-
get: function () { return
|
|
1805
|
+
get: function () { return chunkCVEC72CT_cjs.renderSlideAsync; }
|
|
1805
1806
|
});
|
|
1806
1807
|
Object.defineProperty(exports, "resolveTheme", {
|
|
1807
1808
|
enumerable: true,
|
|
1808
|
-
get: function () { return
|
|
1809
|
+
get: function () { return chunkCVEC72CT_cjs.resolveTheme; }
|
|
1809
1810
|
});
|
|
1810
1811
|
exports.DeckView = DeckView;
|
|
1811
1812
|
exports.HtmlSlideViewer = HtmlSlideViewer;
|