@thanh01.pmt/presentation-kit 0.2.1 → 0.2.2
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 +427 -0
- package/dist/ai/index.cjs.map +1 -0
- package/dist/ai/index.d.cts +206 -0
- package/dist/ai/index.d.ts +206 -0
- package/dist/ai/index.js +415 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/chunk-HBMXEPZJ.js +745 -0
- package/dist/chunk-HBMXEPZJ.js.map +1 -0
- package/dist/{chunk-PAHIW5IX.js → chunk-JOW4QWKF.js} +3 -741
- package/dist/chunk-JOW4QWKF.js.map +1 -0
- package/dist/chunk-OEAOYF7C.cjs +756 -0
- package/dist/chunk-OEAOYF7C.cjs.map +1 -0
- package/dist/{chunk-RJMPTRL3.cjs → chunk-VLAPHJOC.cjs} +2 -746
- package/dist/chunk-VLAPHJOC.cjs.map +1 -0
- package/dist/click-css-BGZI3XKk.d.cts +124 -0
- package/dist/click-css-eWONB-hS.d.ts +124 -0
- package/dist/index.cjs +51 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -22
- package/dist/index.d.ts +5 -22
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/presets-B1N2_jKl.d.ts +22 -0
- package/dist/presets-JpoJbNKE.d.cts +22 -0
- package/dist/react/index.cjs +15 -14
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -2
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/dist/react/index.js.map +1 -1
- package/dist/{click-css-C84mdmU0.d.cts → types-DnR81ReX.d.cts} +1 -122
- package/dist/{click-css-C84mdmU0.d.ts → types-DnR81ReX.d.ts} +1 -122
- package/package.json +10 -3
- package/dist/chunk-PAHIW5IX.js.map +0 -1
- package/dist/chunk-RJMPTRL3.cjs.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVLAPHJOC_cjs = require('../chunk-VLAPHJOC.cjs');
|
|
4
|
+
var chunkOEAOYF7C_cjs = require('../chunk-OEAOYF7C.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
|
|
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 =
|
|
768
|
+
const preset = chunkOEAOYF7C_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
|
-
|
|
786
|
+
chunkOEAOYF7C_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
|
-
|
|
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 =
|
|
1433
|
+
const updated = chunkOEAOYF7C_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
|
|
1469
|
+
get: function () { return chunkVLAPHJOC_cjs.defineTheme; }
|
|
1469
1470
|
});
|
|
1470
1471
|
Object.defineProperty(exports, "extractMaxClicks", {
|
|
1471
1472
|
enumerable: true,
|
|
1472
|
-
get: function () { return
|
|
1473
|
+
get: function () { return chunkVLAPHJOC_cjs.extractMaxClicks; }
|
|
1473
1474
|
});
|
|
1474
1475
|
Object.defineProperty(exports, "generateClickCss", {
|
|
1475
1476
|
enumerable: true,
|
|
1476
|
-
get: function () { return
|
|
1477
|
+
get: function () { return chunkVLAPHJOC_cjs.generateClickCss; }
|
|
1477
1478
|
});
|
|
1478
1479
|
Object.defineProperty(exports, "postprocessClicks", {
|
|
1479
1480
|
enumerable: true,
|
|
1480
|
-
get: function () { return
|
|
1481
|
+
get: function () { return chunkVLAPHJOC_cjs.postprocessClicks; }
|
|
1481
1482
|
});
|
|
1482
1483
|
Object.defineProperty(exports, "preprocessClicks", {
|
|
1483
1484
|
enumerable: true,
|
|
1484
|
-
get: function () { return
|
|
1485
|
+
get: function () { return chunkVLAPHJOC_cjs.preprocessClicks; }
|
|
1485
1486
|
});
|
|
1486
1487
|
Object.defineProperty(exports, "renderSlide", {
|
|
1487
1488
|
enumerable: true,
|
|
1488
|
-
get: function () { return
|
|
1489
|
+
get: function () { return chunkVLAPHJOC_cjs.renderSlide; }
|
|
1489
1490
|
});
|
|
1490
1491
|
Object.defineProperty(exports, "renderSlideAsync", {
|
|
1491
1492
|
enumerable: true,
|
|
1492
|
-
get: function () { return
|
|
1493
|
+
get: function () { return chunkVLAPHJOC_cjs.renderSlideAsync; }
|
|
1493
1494
|
});
|
|
1494
1495
|
Object.defineProperty(exports, "resolveTheme", {
|
|
1495
1496
|
enumerable: true,
|
|
1496
|
-
get: function () { return
|
|
1497
|
+
get: function () { return chunkVLAPHJOC_cjs.resolveTheme; }
|
|
1497
1498
|
});
|
|
1498
1499
|
exports.DeckView = DeckView;
|
|
1499
1500
|
exports.NavigationBar = NavigationBar;
|