@readme/markdown 9.14.0 → 9.15.0

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/main.node.js CHANGED
@@ -16152,6 +16152,8 @@ __webpack_require__.d(components_namespaceObject, {
16152
16152
  HTMLBlock: () => (components_HTMLBlock),
16153
16153
  Heading: () => (components_Heading),
16154
16154
  Image: () => (components_Image),
16155
+ Mermaid: () => (components_Mermaid),
16156
+ PostmanRunButton: () => (components_PostmanRunButton),
16155
16157
  Tab: () => (Tab),
16156
16158
  Table: () => (components_Table),
16157
16159
  TableOfContents: () => (components_TableOfContents),
@@ -21614,6 +21616,38 @@ const Image = (Props) => {
21614
21616
  };
21615
21617
  /* harmony default export */ const components_Image = (Image);
21616
21618
 
21619
+ ;// ./components/Mermaid/index.tsx
21620
+
21621
+
21622
+
21623
+ let Mermaid_mermaid;
21624
+ const Mermaid = ({ children }) => {
21625
+ const theme = (0,external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useContext)(Theme);
21626
+ const containerRef = (0,external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useRef)(null);
21627
+ (0,external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useEffect)(() => {
21628
+ if (typeof window !== 'undefined') {
21629
+ __webpack_require__.e(/* import() */ 486).then(__webpack_require__.bind(__webpack_require__, 5486)).then(async (module) => {
21630
+ Mermaid_mermaid = module.default;
21631
+ // Initialize Mermaid with the current theme
21632
+ Mermaid_mermaid.initialize({
21633
+ theme: theme === 'dark' ? 'dark' : 'default',
21634
+ });
21635
+ if (containerRef.current) {
21636
+ const code = containerRef.current.textContent || '';
21637
+ // Render the diagram and inject it into the container
21638
+ const { svg } = await Mermaid_mermaid.render('generatedDiagram', code);
21639
+ if (containerRef.current) {
21640
+ containerRef.current.innerHTML = svg;
21641
+ }
21642
+ }
21643
+ });
21644
+ }
21645
+ }, [children, theme]);
21646
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { ref: containerRef },
21647
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("pre", { className: "Mermaid mermaid" }, children)));
21648
+ };
21649
+ /* harmony default export */ const components_Mermaid = (Mermaid);
21650
+
21617
21651
  ;// ./components/Table/index.tsx
21618
21652
 
21619
21653
  const Table = (props) => {
@@ -21966,6 +22000,45 @@ const TutorialTile = () => {
21966
22000
  };
21967
22001
  /* harmony default export */ const components_TutorialTile = (TutorialTile);
21968
22002
 
22003
+ ;// ./components/PostmanRunButton/index.tsx
22004
+
22005
+ const PostmanRunButton = ({ collectionId = '', // Add your collection ID here
22006
+ collectionUrl = '', // Add your collection URL here
22007
+ visibility = 'public', action = 'collection/fork', }) => {
22008
+ (0,external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useEffect)(() => {
22009
+ // Only run on client-side
22010
+ if (typeof window !== 'undefined') {
22011
+ const scriptFunction = function noIdeaWhatThisShouldBeCalledOrDoesOne(p, o, s, t, m) {
22012
+ if (!p[s]) {
22013
+ p[s] = function noIdeaWhatThisShouldBeCalledOrDoesTwo(...args) {
22014
+ const postmanRunObject = p[t] || (p[t] = []);
22015
+ postmanRunObject.push(args);
22016
+ };
22017
+ }
22018
+ if (!o.getElementById(s + t)) {
22019
+ const scriptElement = o.createElement('script');
22020
+ scriptElement.id = s + t;
22021
+ scriptElement.async = 1;
22022
+ scriptElement.src = m;
22023
+ o.getElementsByTagName('head')[0].appendChild(scriptElement);
22024
+ }
22025
+ };
22026
+ // Execute the script function directly
22027
+ scriptFunction(window, document, '_pm', 'PostmanRunObject', 'https://run.pstmn.io/button.js');
22028
+ return () => {
22029
+ // Cleanup if needed
22030
+ const scriptElement = document.getElementById('_pmPostmanRunObject');
22031
+ if (scriptElement)
22032
+ document.head.removeChild(scriptElement);
22033
+ };
22034
+ }
22035
+ return undefined;
22036
+ }, []);
22037
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "my-4" },
22038
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "postman-run-button", "data-postman-action": action, "data-postman-collection-url": collectionUrl, "data-postman-var-1": collectionId, "data-postman-visibility": visibility })));
22039
+ };
22040
+ /* harmony default export */ const components_PostmanRunButton = (PostmanRunButton);
22041
+
21969
22042
  ;// ./components/index.ts
21970
22043
 
21971
22044
 
@@ -21985,6 +22058,8 @@ const TutorialTile = () => {
21985
22058
 
21986
22059
 
21987
22060
 
22061
+
22062
+
21988
22063
 
21989
22064
  ;// ./options.js
21990
22065
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }