@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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renderSlide, renderMermaidDiagrams } from '../chunk-NYLDRVHZ.js';
|
|
2
2
|
export { defineTheme, extractMaxClicks, generateClickCss, postprocessClicks, preprocessClicks, renderSlide, renderSlideAsync, resolveTheme } from '../chunk-NYLDRVHZ.js';
|
|
3
|
-
import { SLIDE_LAYOUT_PRESETS, updateSlideLayoutInMarkdown, compileHtmlDeck } from '../chunk-
|
|
3
|
+
import { SLIDE_LAYOUT_PRESETS, updateSlideLayoutInMarkdown, compileHtmlDeck } from '../chunk-A7T5Y2G4.js';
|
|
4
4
|
import React2, { useState, useRef, useMemo, useEffect, useCallback } from 'react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -625,7 +625,10 @@ function PresenterNotesDrawer({
|
|
|
625
625
|
borderRadius: "4px"
|
|
626
626
|
},
|
|
627
627
|
title: "\u0110\xF3ng ghi ch\xFA",
|
|
628
|
-
children: "
|
|
628
|
+
children: /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
629
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
630
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
631
|
+
] })
|
|
629
632
|
}
|
|
630
633
|
)
|
|
631
634
|
]
|
|
@@ -1673,27 +1676,27 @@ var HtmlSlideViewer = ({
|
|
|
1673
1676
|
"div",
|
|
1674
1677
|
{
|
|
1675
1678
|
ref: containerRef,
|
|
1676
|
-
className: `relative flex flex-col w-full h-full bg-
|
|
1679
|
+
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}`,
|
|
1677
1680
|
style: { minHeight: "480px" },
|
|
1678
1681
|
children: [
|
|
1679
|
-
showTopBar && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-2 bg-
|
|
1682
|
+
showTopBar && /* @__PURE__ */ 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: [
|
|
1680
1683
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 font-medium truncate max-w-md", children: [
|
|
1681
|
-
/* @__PURE__ */ jsx("span", { className: "w-2 h-2 rounded-full bg-
|
|
1682
|
-
/* @__PURE__ */ jsx("span", { className: "truncate text-
|
|
1684
|
+
/* @__PURE__ */ jsx("span", { className: "w-2 h-2 rounded-full bg-primary inline-block shrink-0" }),
|
|
1685
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-txt-pri", children: deckTitle })
|
|
1683
1686
|
] }),
|
|
1684
1687
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1685
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 bg-
|
|
1688
|
+
/* @__PURE__ */ 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: [
|
|
1686
1689
|
/* @__PURE__ */ jsx(
|
|
1687
1690
|
"button",
|
|
1688
1691
|
{
|
|
1689
1692
|
onClick: handlePrev,
|
|
1690
1693
|
disabled: currentSlide <= 0,
|
|
1691
|
-
className: "hover:text-
|
|
1692
|
-
title: "Previous Slide",
|
|
1693
|
-
children: "
|
|
1694
|
+
className: "hover:text-txt-pri disabled:opacity-30 p-1 text-txt-sec cursor-pointer transition-colors flex items-center justify-center rounded",
|
|
1695
|
+
title: "Previous Slide (\u2190)",
|
|
1696
|
+
children: /* @__PURE__ */ jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("polyline", { points: "15 18 9 12 15 6" }) })
|
|
1694
1697
|
}
|
|
1695
1698
|
),
|
|
1696
|
-
/* @__PURE__ */ jsxs("span", { className: "px-1 font-semibold text-
|
|
1699
|
+
/* @__PURE__ */ jsxs("span", { className: "px-1.5 font-semibold text-txt-pri text-center min-w-[45px]", children: [
|
|
1697
1700
|
String(currentSlide + 1).padStart(2, "0"),
|
|
1698
1701
|
" / ",
|
|
1699
1702
|
String(totalSlides).padStart(2, "0")
|
|
@@ -1703,9 +1706,9 @@ var HtmlSlideViewer = ({
|
|
|
1703
1706
|
{
|
|
1704
1707
|
onClick: handleNext,
|
|
1705
1708
|
disabled: currentSlide >= totalSlides - 1,
|
|
1706
|
-
className: "hover:text-
|
|
1707
|
-
title: "Next Slide",
|
|
1708
|
-
children: "
|
|
1709
|
+
className: "hover:text-txt-pri disabled:opacity-30 p-1 text-txt-sec cursor-pointer transition-colors flex items-center justify-center rounded",
|
|
1710
|
+
title: "Next Slide (\u2192)",
|
|
1711
|
+
children: /* @__PURE__ */ jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("polyline", { points: "9 18 15 12 9 6" }) })
|
|
1709
1712
|
}
|
|
1710
1713
|
)
|
|
1711
1714
|
] }),
|
|
@@ -1713,10 +1716,10 @@ var HtmlSlideViewer = ({
|
|
|
1713
1716
|
"button",
|
|
1714
1717
|
{
|
|
1715
1718
|
onClick: handleDownloadHtml,
|
|
1716
|
-
className: "flex items-center gap-1 px-2.5
|
|
1719
|
+
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",
|
|
1717
1720
|
title: "Download standalone offline HTML file",
|
|
1718
1721
|
children: [
|
|
1719
|
-
/* @__PURE__ */ jsxs("svg", { width: "
|
|
1722
|
+
/* @__PURE__ */ jsxs("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1720
1723
|
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
1721
1724
|
/* @__PURE__ */ jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
1722
1725
|
/* @__PURE__ */ jsx("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
@@ -1729,9 +1732,9 @@ var HtmlSlideViewer = ({
|
|
|
1729
1732
|
"button",
|
|
1730
1733
|
{
|
|
1731
1734
|
onClick: handleToggleFullscreen,
|
|
1732
|
-
className: "
|
|
1735
|
+
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",
|
|
1733
1736
|
title: "Toggle Fullscreen (F)",
|
|
1734
|
-
children: /* @__PURE__ */ jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: isFullscreen ? /* @__PURE__ */ 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__ */ 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" }) })
|
|
1737
|
+
children: /* @__PURE__ */ jsx("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: isFullscreen ? /* @__PURE__ */ 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__ */ 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" }) })
|
|
1735
1738
|
}
|
|
1736
1739
|
)
|
|
1737
1740
|
] })
|