themed-markdown 0.1.4 → 0.1.6
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/index.d.ts +21 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -12
- package/dist/index.mjs +4 -8
- package/dist/industryMarkdown/components/IndustryLazyMermaidDiagram.d.ts.map +1 -1
- package/dist/industryMarkdown/components/IndustryMarkdownSlide.stories.d.ts.map +1 -1
- package/dist/industryMarkdown/components/IndustryMermaidDiagram.d.ts +1 -2
- package/dist/industryMarkdown/components/IndustryMermaidDiagram.d.ts.map +1 -1
- package/package.json +4 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { IndustryMarkdownSlide } from './components/IndustryMarkdownSlide';
|
|
2
|
-
export type { IndustryMarkdownSlideProps } from './components/IndustryMarkdownSlide';
|
|
3
|
-
export { SlidePresentation } from './components/SlidePresentation';
|
|
4
|
-
export type { SlidePresentationProps } from './components/SlidePresentation';
|
|
5
|
-
export { DocumentView } from './components/DocumentView';
|
|
6
|
-
export type { DocumentViewProps } from './components/DocumentView';
|
|
7
|
-
export { IndustryEditableMarkdownSlide } from './components/IndustryEditableMarkdownSlide';
|
|
8
|
-
export type { IndustryEditableMarkdownSlideProps } from './components/IndustryEditableMarkdownSlide';
|
|
9
|
-
export { createIndustryMarkdownComponents } from './components/IndustryMarkdownComponents';
|
|
10
|
-
export { IndustryHtmlModal, useIndustryHtmlModal } from './components/IndustryHtmlModal';
|
|
11
|
-
export { IndustryPlaceholderModal } from './components/IndustryPlaceholderModal';
|
|
12
|
-
export { IndustryMermaidModal } from './components/IndustryMermaidModal';
|
|
13
|
-
export { IndustryLazyMermaidDiagram } from './components/IndustryLazyMermaidDiagram';
|
|
14
|
-
export { IndustryZoomableMermaidDiagram } from './components/IndustryZoomableMermaidDiagram';
|
|
15
|
-
export { parseMarkdownIntoPresentation, serializePresentationToMarkdown, updatePresentationSlide, parseMarkdownIntoPresentationFromSource, createGithubFileSource, extractSlideTitle, createPresentationWithErrorMessage, reconstructMarkdownContent, getAllSlideTitles, findSlideByTitle, findSlideIndexByTitle, updateSlideTitle, updateSlideContent, } from './utils/presentationUtils';
|
|
16
|
-
export { parseMarkdownChunks } from './utils/markdownUtils';
|
|
17
|
-
export type { MarkdownPresentation, MarkdownSlide, MarkdownPresentationFormat, MarkdownSource, MarkdownSourceType, RepositoryInfo, MarkdownSlideLocation, } from './types/presentation';
|
|
18
|
-
export type { Theme } from '
|
|
19
|
-
export { theme as defaultTheme } from '
|
|
20
|
-
export { ThemeProvider, useTheme, useThemeSafe, getThemeWithMode, withTheme } from '
|
|
21
|
-
export { scaleThemeFonts, increaseFontScale, decreaseFontScale, resetFontScale } from '
|
|
1
|
+
export { IndustryMarkdownSlide } from './industryMarkdown/components/IndustryMarkdownSlide';
|
|
2
|
+
export type { IndustryMarkdownSlideProps } from './industryMarkdown/components/IndustryMarkdownSlide';
|
|
3
|
+
export { SlidePresentation } from './industryMarkdown/components/SlidePresentation';
|
|
4
|
+
export type { SlidePresentationProps } from './industryMarkdown/components/SlidePresentation';
|
|
5
|
+
export { DocumentView } from './industryMarkdown/components/DocumentView';
|
|
6
|
+
export type { DocumentViewProps } from './industryMarkdown/components/DocumentView';
|
|
7
|
+
export { IndustryEditableMarkdownSlide } from './industryMarkdown/components/IndustryEditableMarkdownSlide';
|
|
8
|
+
export type { IndustryEditableMarkdownSlideProps } from './industryMarkdown/components/IndustryEditableMarkdownSlide';
|
|
9
|
+
export { createIndustryMarkdownComponents } from './industryMarkdown/components/IndustryMarkdownComponents';
|
|
10
|
+
export { IndustryHtmlModal, useIndustryHtmlModal } from './industryMarkdown/components/IndustryHtmlModal';
|
|
11
|
+
export { IndustryPlaceholderModal } from './industryMarkdown/components/IndustryPlaceholderModal';
|
|
12
|
+
export { IndustryMermaidModal } from './industryMarkdown/components/IndustryMermaidModal';
|
|
13
|
+
export { IndustryLazyMermaidDiagram } from './industryMarkdown/components/IndustryLazyMermaidDiagram';
|
|
14
|
+
export { IndustryZoomableMermaidDiagram } from './industryMarkdown/components/IndustryZoomableMermaidDiagram';
|
|
15
|
+
export { parseMarkdownIntoPresentation, serializePresentationToMarkdown, updatePresentationSlide, parseMarkdownIntoPresentationFromSource, createGithubFileSource, extractSlideTitle, createPresentationWithErrorMessage, reconstructMarkdownContent, getAllSlideTitles, findSlideByTitle, findSlideIndexByTitle, updateSlideTitle, updateSlideContent, } from './industryMarkdown/utils/presentationUtils';
|
|
16
|
+
export { parseMarkdownChunks } from './industryMarkdown/utils/markdownUtils';
|
|
17
|
+
export type { MarkdownPresentation, MarkdownSlide, MarkdownPresentationFormat, MarkdownSource, MarkdownSourceType, RepositoryInfo, MarkdownSlideLocation, } from './industryMarkdown/types/presentation';
|
|
18
|
+
export type { Theme } from './industryTheme';
|
|
19
|
+
export { theme as defaultTheme } from './industryTheme';
|
|
20
|
+
export { ThemeProvider, useTheme, useThemeSafe, getThemeWithMode, withTheme } from './industryTheme/ThemeProvider';
|
|
21
|
+
export { scaleThemeFonts, increaseFontScale, decreaseFontScale, resetFontScale } from './industryTheme';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,YAAY,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AAEtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,YAAY,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,YAAY,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAC5G,YAAY,EAAE,kCAAkC,EAAE,MAAM,6DAA6D,CAAC;AAEtH,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAG5G,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAC1G,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,8DAA8D,CAAC;AAG9G,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,uCAAuC,EACvC,sBAAsB,EACtB,iBAAiB,EACjB,kCAAkC,EAClC,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAG7E,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,qBAAqB,GACtB,MAAM,uCAAuC,CAAC;AAG/C,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACf,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -39,9 +39,9 @@ var __export = (target, all) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//
|
|
43
|
-
var
|
|
44
|
-
__export(
|
|
42
|
+
// index.ts
|
|
43
|
+
var exports_themed_markdown = {};
|
|
44
|
+
__export(exports_themed_markdown, {
|
|
45
45
|
withTheme: () => withTheme,
|
|
46
46
|
useThemeSafe: () => useThemeSafe,
|
|
47
47
|
useTheme: () => useTheme,
|
|
@@ -78,7 +78,7 @@ __export(exports_industryMarkdown, {
|
|
|
78
78
|
IndustryEditableMarkdownSlide: () => IndustryEditableMarkdownSlide,
|
|
79
79
|
DocumentView: () => DocumentView
|
|
80
80
|
});
|
|
81
|
-
module.exports = __toCommonJS(
|
|
81
|
+
module.exports = __toCommonJS(exports_themed_markdown);
|
|
82
82
|
|
|
83
83
|
// industryMarkdown/components/IndustryMarkdownSlide.tsx
|
|
84
84
|
var import_hast_util_sanitize = require("hast-util-sanitize");
|
|
@@ -545,7 +545,6 @@ function IndustryMermaidDiagram({
|
|
|
545
545
|
code,
|
|
546
546
|
id,
|
|
547
547
|
theme: themeOverride,
|
|
548
|
-
themeMode = "dark",
|
|
549
548
|
onCopyError,
|
|
550
549
|
onError,
|
|
551
550
|
rootMargin = "200px",
|
|
@@ -558,7 +557,6 @@ function IndustryMermaidDiagram({
|
|
|
558
557
|
const [hasRendered, setHasRendered] = import_react3.useState(false);
|
|
559
558
|
const [containerElement, setContainerElement] = import_react3.useState(null);
|
|
560
559
|
const observerRef = import_react3.useRef(null);
|
|
561
|
-
const darkMode = themeMode === "dark";
|
|
562
560
|
const containerRef = import_react3.default.useCallback((node) => {
|
|
563
561
|
setContainerElement(node);
|
|
564
562
|
if (observerRef.current) {
|
|
@@ -600,8 +598,8 @@ function IndustryMermaidDiagram({
|
|
|
600
598
|
try {
|
|
601
599
|
mermaid.initialize({
|
|
602
600
|
startOnLoad: false,
|
|
603
|
-
theme:
|
|
604
|
-
themeVariables:
|
|
601
|
+
theme: "base",
|
|
602
|
+
themeVariables: {
|
|
605
603
|
primaryColor: "#1e1e1e",
|
|
606
604
|
primaryTextColor: "#e0e0e0",
|
|
607
605
|
primaryBorderColor: "#444",
|
|
@@ -619,7 +617,7 @@ function IndustryMermaidDiagram({
|
|
|
619
617
|
altBackground: "#252525",
|
|
620
618
|
errorBkgColor: "#552222",
|
|
621
619
|
errorTextColor: "#ff6666"
|
|
622
|
-
}
|
|
620
|
+
},
|
|
623
621
|
securityLevel: "loose",
|
|
624
622
|
logLevel: "error"
|
|
625
623
|
});
|
|
@@ -685,7 +683,7 @@ function IndustryMermaidDiagram({
|
|
|
685
683
|
}
|
|
686
684
|
};
|
|
687
685
|
renderDiagram();
|
|
688
|
-
}, [hasRendered, code, id,
|
|
686
|
+
}, [hasRendered, code, id, theme2, containerElement, onError, fitMode, isModalMode]);
|
|
689
687
|
import_react3.useEffect(() => {
|
|
690
688
|
if (errorDetails && onCopyError) {
|
|
691
689
|
const handleKeyDown = (e) => {
|
|
@@ -854,7 +852,6 @@ function IndustryLazyMermaidDiagram({
|
|
|
854
852
|
})), hasRendered ? /* @__PURE__ */ import_react4.default.createElement(IndustryMermaidDiagram, {
|
|
855
853
|
code,
|
|
856
854
|
id,
|
|
857
|
-
themeMode: "dark",
|
|
858
855
|
onCopyError,
|
|
859
856
|
onError: setHasError,
|
|
860
857
|
fitMode
|
|
@@ -1890,7 +1887,6 @@ function IndustryZoomableMermaidDiagram({
|
|
|
1890
1887
|
}, /* @__PURE__ */ import_react8.default.createElement(IndustryMermaidDiagram, {
|
|
1891
1888
|
code,
|
|
1892
1889
|
id,
|
|
1893
|
-
themeMode: "dark",
|
|
1894
1890
|
isModalMode: true
|
|
1895
1891
|
})))))));
|
|
1896
1892
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -463,7 +463,6 @@ function IndustryMermaidDiagram({
|
|
|
463
463
|
code,
|
|
464
464
|
id,
|
|
465
465
|
theme: themeOverride,
|
|
466
|
-
themeMode = "dark",
|
|
467
466
|
onCopyError,
|
|
468
467
|
onError,
|
|
469
468
|
rootMargin = "200px",
|
|
@@ -476,7 +475,6 @@ function IndustryMermaidDiagram({
|
|
|
476
475
|
const [hasRendered, setHasRendered] = useState3(false);
|
|
477
476
|
const [containerElement, setContainerElement] = useState3(null);
|
|
478
477
|
const observerRef = useRef(null);
|
|
479
|
-
const darkMode = themeMode === "dark";
|
|
480
478
|
const containerRef = React3.useCallback((node) => {
|
|
481
479
|
setContainerElement(node);
|
|
482
480
|
if (observerRef.current) {
|
|
@@ -518,8 +516,8 @@ function IndustryMermaidDiagram({
|
|
|
518
516
|
try {
|
|
519
517
|
mermaid.initialize({
|
|
520
518
|
startOnLoad: false,
|
|
521
|
-
theme:
|
|
522
|
-
themeVariables:
|
|
519
|
+
theme: "base",
|
|
520
|
+
themeVariables: {
|
|
523
521
|
primaryColor: "#1e1e1e",
|
|
524
522
|
primaryTextColor: "#e0e0e0",
|
|
525
523
|
primaryBorderColor: "#444",
|
|
@@ -537,7 +535,7 @@ function IndustryMermaidDiagram({
|
|
|
537
535
|
altBackground: "#252525",
|
|
538
536
|
errorBkgColor: "#552222",
|
|
539
537
|
errorTextColor: "#ff6666"
|
|
540
|
-
}
|
|
538
|
+
},
|
|
541
539
|
securityLevel: "loose",
|
|
542
540
|
logLevel: "error"
|
|
543
541
|
});
|
|
@@ -603,7 +601,7 @@ function IndustryMermaidDiagram({
|
|
|
603
601
|
}
|
|
604
602
|
};
|
|
605
603
|
renderDiagram();
|
|
606
|
-
}, [hasRendered, code, id,
|
|
604
|
+
}, [hasRendered, code, id, theme2, containerElement, onError, fitMode, isModalMode]);
|
|
607
605
|
useEffect2(() => {
|
|
608
606
|
if (errorDetails && onCopyError) {
|
|
609
607
|
const handleKeyDown = (e) => {
|
|
@@ -772,7 +770,6 @@ function IndustryLazyMermaidDiagram({
|
|
|
772
770
|
})), hasRendered ? /* @__PURE__ */ React4.createElement(IndustryMermaidDiagram, {
|
|
773
771
|
code,
|
|
774
772
|
id,
|
|
775
|
-
themeMode: "dark",
|
|
776
773
|
onCopyError,
|
|
777
774
|
onError: setHasError,
|
|
778
775
|
fitMode
|
|
@@ -1808,7 +1805,6 @@ function IndustryZoomableMermaidDiagram({
|
|
|
1808
1805
|
}, /* @__PURE__ */ React8.createElement(IndustryMermaidDiagram, {
|
|
1809
1806
|
code,
|
|
1810
1807
|
id,
|
|
1811
|
-
themeMode: "dark",
|
|
1812
1808
|
isModalMode: true
|
|
1813
1809
|
})))))));
|
|
1814
1810
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndustryLazyMermaidDiagram.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryLazyMermaidDiagram.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAyB,MAAM,qBAAqB,CAAC;AAInE,UAAU,+BAA+B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC9B;AAED,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,EAAE,EACF,WAAW,EACX,UAAoB,EACpB,aAAa,EACb,KAAoB,EACpB,OAAkB,GACnB,EAAE,+BAA+B,
|
|
1
|
+
{"version":3,"file":"IndustryLazyMermaidDiagram.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryLazyMermaidDiagram.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAyB,MAAM,qBAAqB,CAAC;AAInE,UAAU,+BAA+B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC9B;AAED,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,EAAE,EACF,WAAW,EACX,UAAoB,EACpB,aAAa,EACb,KAAoB,EACpB,OAAkB,GACnB,EAAE,+BAA+B,qBA2JjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndustryMarkdownSlide.stories.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMarkdownSlide.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAe5C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"IndustryMarkdownSlide.stories.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMarkdownSlide.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAe5C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA8DzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA2BjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KA+BpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAyBzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4E5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KA8BhC,CAAC"}
|
|
@@ -10,13 +10,12 @@ interface IndustryMermaidDiagramProps {
|
|
|
10
10
|
code: string;
|
|
11
11
|
id: string;
|
|
12
12
|
theme?: Theme;
|
|
13
|
-
themeMode?: 'light' | 'dark';
|
|
14
13
|
onCopyError?: (mermaidCode: string, errorMessage: string) => void;
|
|
15
14
|
onError?: (hasError: boolean) => void;
|
|
16
15
|
rootMargin?: string;
|
|
17
16
|
isModalMode?: boolean;
|
|
18
17
|
fitMode?: 'height' | 'width';
|
|
19
18
|
}
|
|
20
|
-
export declare function IndustryMermaidDiagram({ code, id, theme: themeOverride,
|
|
19
|
+
export declare function IndustryMermaidDiagram({ code, id, theme: themeOverride, onCopyError, onError, rootMargin, isModalMode, fitMode, }: IndustryMermaidDiagramProps): React.JSX.Element;
|
|
21
20
|
export {};
|
|
22
21
|
//# sourceMappingURL=IndustryMermaidDiagram.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndustryMermaidDiagram.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMermaidDiagram.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAyB,MAAM,qBAAqB,CAAC;AAEnE,UAAU,2BAA2B;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"IndustryMermaidDiagram.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMermaidDiagram.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAyB,MAAM,qBAAqB,CAAC;AAEnE,UAAU,2BAA2B;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC9B;AAmBD,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,EAAE,EACF,KAAK,EAAE,aAAa,EACpB,WAAW,EACX,OAAO,EACP,UAAoB,EACpB,WAAmB,EACnB,OAAkB,GACnB,EAAE,2BAA2B,qBA6N7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "themed-markdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Industry-themed markdown renderer with presentation capabilities",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
"./dist/index.css": "./dist/index.css"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:types && bun run copy:css
|
|
18
|
-
"build:esm": "bun build ./
|
|
19
|
-
"build:cjs": "bun build ./
|
|
17
|
+
"build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:types && bun run copy:css",
|
|
18
|
+
"build:esm": "bun build ./index.ts --outfile ./dist/index.mjs --format esm --target browser --external react --external react-dom --external react-markdown --external lucide-react --external react-zoom-pan-pinch --external remark-gfm --external rehype-raw --external rehype-highlight --external rehype-sanitize --external rehype-slug --external hast-util-sanitize --external highlight.js",
|
|
19
|
+
"build:cjs": "bun build ./index.ts --outfile ./dist/index.js --format cjs --target browser --external react --external react-dom --external react-markdown --external lucide-react --external react-zoom-pan-pinch --external remark-gfm --external rehype-raw --external rehype-highlight --external rehype-sanitize --external rehype-slug --external hast-util-sanitize --external highlight.js",
|
|
20
20
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap",
|
|
21
21
|
"copy:css": "cp node_modules/highlight.js/styles/atom-one-dark.css ./dist/index.css",
|
|
22
|
-
"copy:types": "cp dist/industryMarkdown/index.d.ts dist/index.d.ts && cp dist/industryMarkdown/index.d.ts.map dist/index.d.ts.map",
|
|
23
22
|
"dev": "bun run build --watch",
|
|
24
23
|
"test": "bun test",
|
|
25
24
|
"test:watch": "bun test --watch",
|