@industry-theme/markdown-panels 0.2.22 → 0.2.23
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.
|
@@ -8,6 +8,11 @@ export interface MarkdownPanelProps extends PanelComponentProps {
|
|
|
8
8
|
* This allows the host to control panel state via props instead of context.
|
|
9
9
|
*/
|
|
10
10
|
filePath?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Optional width to pass to DocumentView for layout calculations.
|
|
13
|
+
* Useful when embedding in panels that need responsive width handling.
|
|
14
|
+
*/
|
|
15
|
+
width?: number;
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
18
|
* MarkdownPanel - A panel for rendering markdown documents with industry theming
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MarkdownPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAmBrE,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkdownPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MarkdownPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAmBrE,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsatD,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -46751,7 +46751,8 @@ var SlidePresentationBook = ({
|
|
|
46751
46751
|
handlePromptCopy,
|
|
46752
46752
|
fontSizeScale,
|
|
46753
46753
|
theme: theme2,
|
|
46754
|
-
repositoryInfo
|
|
46754
|
+
repositoryInfo,
|
|
46755
|
+
width
|
|
46755
46756
|
}) => {
|
|
46756
46757
|
const [isMobile, setIsMobile] = useState(false);
|
|
46757
46758
|
useEffect(() => {
|
|
@@ -47150,7 +47151,8 @@ var SlidePresentationBook = ({
|
|
|
47150
47151
|
handlePromptCopy,
|
|
47151
47152
|
fontSizeScale,
|
|
47152
47153
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47153
|
-
repositoryInfo
|
|
47154
|
+
repositoryInfo,
|
|
47155
|
+
containerWidth: width
|
|
47154
47156
|
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47155
47157
|
style: {
|
|
47156
47158
|
height: "100%",
|
|
@@ -47273,7 +47275,8 @@ var SlidePresentationBook = ({
|
|
|
47273
47275
|
handlePromptCopy,
|
|
47274
47276
|
fontSizeScale,
|
|
47275
47277
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47276
|
-
repositoryInfo
|
|
47278
|
+
repositoryInfo,
|
|
47279
|
+
containerWidth: width
|
|
47277
47280
|
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47278
47281
|
style: {
|
|
47279
47282
|
height: "100%",
|
|
@@ -47465,6 +47468,7 @@ var SlidePresentationBook = ({
|
|
|
47465
47468
|
fontSizeScale,
|
|
47466
47469
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47467
47470
|
repositoryInfo,
|
|
47471
|
+
containerWidth: width,
|
|
47468
47472
|
transparentBackground: true,
|
|
47469
47473
|
additionalPadding: {
|
|
47470
47474
|
left: `${theme2.space[4]}px`,
|
|
@@ -47511,6 +47515,7 @@ var SlidePresentationBook = ({
|
|
|
47511
47515
|
fontSizeScale,
|
|
47512
47516
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47513
47517
|
repositoryInfo,
|
|
47518
|
+
containerWidth: width,
|
|
47514
47519
|
transparentBackground: true,
|
|
47515
47520
|
additionalPadding: {
|
|
47516
47521
|
left: `${theme2.space[2]}px`,
|
|
@@ -47581,6 +47586,7 @@ var SlidePresentationBook = ({
|
|
|
47581
47586
|
fontSizeScale,
|
|
47582
47587
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47583
47588
|
repositoryInfo,
|
|
47589
|
+
containerWidth: width,
|
|
47584
47590
|
transparentBackground: false,
|
|
47585
47591
|
disableScroll: false
|
|
47586
47592
|
}))) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
@@ -47649,6 +47655,7 @@ var DocumentView = ({
|
|
|
47649
47655
|
content: content2,
|
|
47650
47656
|
onCheckboxChange,
|
|
47651
47657
|
maxWidth = "900px",
|
|
47658
|
+
width,
|
|
47652
47659
|
slideIdPrefix = "document",
|
|
47653
47660
|
enableHtmlPopout = true,
|
|
47654
47661
|
enableKeyboardScrolling = true,
|
|
@@ -47693,7 +47700,8 @@ var DocumentView = ({
|
|
|
47693
47700
|
handlePromptCopy,
|
|
47694
47701
|
repositoryInfo,
|
|
47695
47702
|
transparentBackground,
|
|
47696
|
-
editable
|
|
47703
|
+
editable,
|
|
47704
|
+
containerWidth: width
|
|
47697
47705
|
})));
|
|
47698
47706
|
};
|
|
47699
47707
|
function parseMarkdownIntoPresentation2(markdownContent, repositoryInfo) {
|
|
@@ -47712,7 +47720,8 @@ const MarkdownPanel = ({
|
|
|
47712
47720
|
context,
|
|
47713
47721
|
actions,
|
|
47714
47722
|
events,
|
|
47715
|
-
filePath: filePathProp
|
|
47723
|
+
filePath: filePathProp,
|
|
47724
|
+
width
|
|
47716
47725
|
}) => {
|
|
47717
47726
|
var _a, _b, _c, _d, _e2, _f, _g;
|
|
47718
47727
|
const { theme: theme2 } = useTheme();
|
|
@@ -48057,7 +48066,8 @@ const MarkdownPanel = ({
|
|
|
48057
48066
|
},
|
|
48058
48067
|
slideIdPrefix: "markdown-panel",
|
|
48059
48068
|
maxWidth: "100%",
|
|
48060
|
-
repositoryInfo
|
|
48069
|
+
repositoryInfo,
|
|
48070
|
+
width
|
|
48061
48071
|
}
|
|
48062
48072
|
) : /* @__PURE__ */ jsx(
|
|
48063
48073
|
SlidePresentationBook,
|
|
@@ -48079,7 +48089,8 @@ const MarkdownPanel = ({
|
|
|
48079
48089
|
tocDisplayMode: "sidebar",
|
|
48080
48090
|
tocSidebarPosition: "left",
|
|
48081
48091
|
initialTocOpen: false,
|
|
48082
|
-
repositoryInfo
|
|
48092
|
+
repositoryInfo,
|
|
48093
|
+
width
|
|
48083
48094
|
}
|
|
48084
48095
|
)
|
|
48085
48096
|
}
|