@thanh01.pmt/presentation-kit 0.2.12 → 0.2.14
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/LICENSE +21 -0
- package/dist/ai/index.cjs +37 -18
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.js +25 -6
- package/dist/ai/index.js.map +1 -1
- package/dist/{chunk-3VGV5KYZ.js → chunk-A7T5Y2G4.js} +36 -16
- package/dist/chunk-A7T5Y2G4.js.map +1 -0
- package/dist/{chunk-53GLUCYC.cjs → chunk-JIIUW2TN.cjs} +36 -16
- package/dist/chunk-JIIUW2TN.cjs.map +1 -0
- package/dist/index.cjs +15 -15
- package/dist/index.js +2 -2
- package/dist/react/index.cjs +25 -22
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +21 -18
- package/dist/react/index.js.map +1 -1
- package/package.json +10 -11
- package/dist/chunk-3VGV5KYZ.js.map +0 -1
- package/dist/chunk-53GLUCYC.cjs.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTGI6YSZP_cjs = require('../chunk-TGI6YSZP.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJIIUW2TN_cjs = require('../chunk-JIIUW2TN.cjs');
|
|
5
5
|
var React2 = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
@@ -630,7 +630,10 @@ function PresenterNotesDrawer({
|
|
|
630
630
|
borderRadius: "4px"
|
|
631
631
|
},
|
|
632
632
|
title: "\u0110\xF3ng ghi ch\xFA",
|
|
633
|
-
children: "
|
|
633
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
634
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 6 6 18" }),
|
|
635
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m6 6 12 12" })
|
|
636
|
+
] })
|
|
634
637
|
}
|
|
635
638
|
)
|
|
636
639
|
]
|
|
@@ -911,7 +914,7 @@ function SlideDesignOverlay({
|
|
|
911
914
|
"select",
|
|
912
915
|
{
|
|
913
916
|
onChange: (e) => {
|
|
914
|
-
const preset =
|
|
917
|
+
const preset = chunkJIIUW2TN_cjs.SLIDE_LAYOUT_PRESETS.find((p) => p.id === e.target.value);
|
|
915
918
|
if (preset) {
|
|
916
919
|
const clonedBoxes = JSON.parse(JSON.stringify(preset.layout.boxes));
|
|
917
920
|
setBoxes(clonedBoxes);
|
|
@@ -931,7 +934,7 @@ function SlideDesignOverlay({
|
|
|
931
934
|
title: "\xC1p d\u1EE5ng m\u1EABu b\u1ED1 c\u1EE5c c\xF3 s\u1EB5n",
|
|
932
935
|
children: [
|
|
933
936
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: true, style: { backgroundColor: isLight ? "#ffffff" : "#1e1f29", color: subtextColor }, children: "M\u1EABu b\u1ED1 c\u1EE5c (Presets)..." }),
|
|
934
|
-
|
|
937
|
+
chunkJIIUW2TN_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))
|
|
935
938
|
]
|
|
936
939
|
}
|
|
937
940
|
),
|
|
@@ -1564,7 +1567,7 @@ function SlideViewer({
|
|
|
1564
1567
|
onSave: (layout) => {
|
|
1565
1568
|
setLiveLayout(layout);
|
|
1566
1569
|
if (onSaveMarkdown) {
|
|
1567
|
-
const updated =
|
|
1570
|
+
const updated = chunkJIIUW2TN_cjs.updateSlideLayoutInMarkdown(markdown, currentIndex, layout);
|
|
1568
1571
|
onSaveMarkdown(updated);
|
|
1569
1572
|
}
|
|
1570
1573
|
},
|
|
@@ -1617,7 +1620,7 @@ var HtmlSlideViewer = ({
|
|
|
1617
1620
|
const fullHtml = React2.useMemo(() => {
|
|
1618
1621
|
if (initialHtml) return initialHtml;
|
|
1619
1622
|
if (deckData) {
|
|
1620
|
-
return
|
|
1623
|
+
return chunkJIIUW2TN_cjs.compileHtmlDeck(deckData).html;
|
|
1621
1624
|
}
|
|
1622
1625
|
return "";
|
|
1623
1626
|
}, [initialHtml, deckData]);
|
|
@@ -1678,27 +1681,27 @@ var HtmlSlideViewer = ({
|
|
|
1678
1681
|
"div",
|
|
1679
1682
|
{
|
|
1680
1683
|
ref: containerRef,
|
|
1681
|
-
className: `relative flex flex-col w-full h-full bg-
|
|
1684
|
+
className: `relative flex flex-col w-full h-full bg-card text-txt-pri rounded-xl overflow-hidden border border-border/80 shadow-xs ${className}`,
|
|
1682
1685
|
style: { minHeight: "480px" },
|
|
1683
1686
|
children: [
|
|
1684
|
-
showTopBar && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-2 bg-
|
|
1687
|
+
showTopBar && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-2 bg-panel/90 backdrop-blur border-b border-border/80 text-meta select-none z-20", children: [
|
|
1685
1688
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 font-medium truncate max-w-md", children: [
|
|
1686
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-2 h-2 rounded-full bg-
|
|
1687
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-
|
|
1689
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-2 h-2 rounded-full bg-primary inline-block shrink-0" }),
|
|
1690
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-txt-pri", children: deckTitle })
|
|
1688
1691
|
] }),
|
|
1689
1692
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1690
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 bg-
|
|
1693
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-flex items-center gap-1 bg-card px-2 py-0.5 rounded-lg border border-border/80 font-mono text-meta text-txt-sec h-7.5", children: [
|
|
1691
1694
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1692
1695
|
"button",
|
|
1693
1696
|
{
|
|
1694
1697
|
onClick: handlePrev,
|
|
1695
1698
|
disabled: currentSlide <= 0,
|
|
1696
|
-
className: "hover:text-
|
|
1697
|
-
title: "Previous Slide",
|
|
1698
|
-
children: "
|
|
1699
|
+
className: "hover:text-txt-pri disabled:opacity-30 p-1 text-txt-sec cursor-pointer transition-colors flex items-center justify-center rounded",
|
|
1700
|
+
title: "Previous Slide (\u2190)",
|
|
1701
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "15 18 9 12 15 6" }) })
|
|
1699
1702
|
}
|
|
1700
1703
|
),
|
|
1701
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "px-1 font-semibold text-
|
|
1704
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "px-1.5 font-semibold text-txt-pri text-center min-w-[45px]", children: [
|
|
1702
1705
|
String(currentSlide + 1).padStart(2, "0"),
|
|
1703
1706
|
" / ",
|
|
1704
1707
|
String(totalSlides).padStart(2, "0")
|
|
@@ -1708,9 +1711,9 @@ var HtmlSlideViewer = ({
|
|
|
1708
1711
|
{
|
|
1709
1712
|
onClick: handleNext,
|
|
1710
1713
|
disabled: currentSlide >= totalSlides - 1,
|
|
1711
|
-
className: "hover:text-
|
|
1712
|
-
title: "Next Slide",
|
|
1713
|
-
children: "
|
|
1714
|
+
className: "hover:text-txt-pri disabled:opacity-30 p-1 text-txt-sec cursor-pointer transition-colors flex items-center justify-center rounded",
|
|
1715
|
+
title: "Next Slide (\u2192)",
|
|
1716
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "9 18 15 12 9 6" }) })
|
|
1714
1717
|
}
|
|
1715
1718
|
)
|
|
1716
1719
|
] }),
|
|
@@ -1718,10 +1721,10 @@ var HtmlSlideViewer = ({
|
|
|
1718
1721
|
"button",
|
|
1719
1722
|
{
|
|
1720
1723
|
onClick: handleDownloadHtml,
|
|
1721
|
-
className: "flex items-center gap-1 px-2.5
|
|
1724
|
+
className: "flex items-center gap-1.5 h-7.5 px-2.5 rounded-lg bg-panel hover:bg-txt-pri/5 text-txt-pri border border-border/80 text-meta font-medium transition-colors cursor-pointer shadow-2xs leading-none shrink-0",
|
|
1722
1725
|
title: "Download standalone offline HTML file",
|
|
1723
1726
|
children: [
|
|
1724
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "
|
|
1727
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1725
1728
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
1726
1729
|
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
1727
1730
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
@@ -1734,9 +1737,9 @@ var HtmlSlideViewer = ({
|
|
|
1734
1737
|
"button",
|
|
1735
1738
|
{
|
|
1736
1739
|
onClick: handleToggleFullscreen,
|
|
1737
|
-
className: "
|
|
1740
|
+
className: "h-7.5 px-2 rounded-lg bg-panel hover:bg-txt-pri/5 text-txt-pri border border-border/80 text-meta transition-colors cursor-pointer shadow-2xs flex items-center justify-center shrink-0",
|
|
1738
1741
|
title: "Toggle Fullscreen (F)",
|
|
1739
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: isFullscreen ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }) : /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }) })
|
|
1742
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: isFullscreen ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }) : /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }) })
|
|
1740
1743
|
}
|
|
1741
1744
|
)
|
|
1742
1745
|
] })
|