@multiplatform.one/markdown 6.4.1 → 6.4.3
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/cjs/Aside/index.cjs +117 -0
- package/dist/cjs/Aside/index.native.js +126 -0
- package/dist/cjs/Aside/index.native.js.map +1 -0
- package/dist/cjs/ExternalIcon/index.cjs +48 -0
- package/dist/cjs/ExternalIcon/index.native.js +53 -0
- package/dist/cjs/ExternalIcon/index.native.js.map +1 -0
- package/dist/cjs/Hr/index.cjs +33 -0
- package/dist/cjs/Hr/index.native.js +38 -0
- package/dist/cjs/Hr/index.native.js.map +1 -0
- package/dist/cjs/Li/index.cjs +38 -0
- package/dist/cjs/Li/index.native.js +41 -0
- package/dist/cjs/Li/index.native.js.map +1 -0
- package/dist/cjs/Markdown.cjs +66 -0
- package/dist/cjs/Markdown.native.js +71 -0
- package/dist/cjs/Markdown.native.js.map +1 -0
- package/dist/cjs/MarkdownSimpleTable/index.cjs +150 -0
- package/dist/cjs/MarkdownSimpleTable/index.native.js +183 -0
- package/dist/cjs/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/cjs/Mdx/index.cjs +66 -0
- package/dist/cjs/Mdx/index.native.js +70 -0
- package/dist/cjs/Mdx/index.native.js.map +1 -0
- package/dist/cjs/MdxCodeBlock/index.cjs +193 -0
- package/dist/cjs/MdxCodeBlock/index.native.js +216 -0
- package/dist/cjs/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.cjs +29 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js +32 -0
- package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/cjs/Notice/index.cjs +51 -0
- package/dist/cjs/Notice/index.native.js +55 -0
- package/dist/cjs/Notice/index.native.js.map +1 -0
- package/dist/cjs/Table/index.cjs +134 -0
- package/dist/cjs/Table/index.native.js +145 -0
- package/dist/cjs/Table/index.native.js.map +1 -0
- package/dist/cjs/Tabs/index.cjs +61 -0
- package/dist/cjs/Tabs/index.native.js +71 -0
- package/dist/cjs/Tabs/index.native.js.map +1 -0
- package/dist/cjs/Ul/index.cjs +35 -0
- package/dist/cjs/Ul/index.native.js +38 -0
- package/dist/cjs/Ul/index.native.js.map +1 -0
- package/dist/cjs/Video/index.cjs +86 -0
- package/dist/cjs/Video/index.native.js +91 -0
- package/dist/cjs/Video/index.native.js.map +1 -0
- package/dist/cjs/components/Blockquote.cjs +60 -0
- package/dist/cjs/components/Blockquote.native.js +73 -0
- package/dist/cjs/components/Blockquote.native.js.map +1 -0
- package/dist/cjs/components/Break.cjs +35 -0
- package/dist/cjs/components/Break.native.js +38 -0
- package/dist/cjs/components/Break.native.js.map +1 -0
- package/dist/cjs/components/CodeBlock.cjs +69 -0
- package/dist/cjs/components/CodeBlock.native.js +77 -0
- package/dist/cjs/components/CodeBlock.native.js.map +1 -0
- package/dist/cjs/components/Heading.cjs +71 -0
- package/dist/cjs/components/Heading.native.js +76 -0
- package/dist/cjs/components/Heading.native.js.map +1 -0
- package/dist/cjs/components/HorizontalRule.cjs +34 -0
- package/dist/cjs/components/HorizontalRule.native.js +37 -0
- package/dist/cjs/components/HorizontalRule.native.js.map +1 -0
- package/dist/cjs/components/Image.cjs +51 -0
- package/dist/cjs/components/Image.native.js +58 -0
- package/dist/cjs/components/Image.native.js.map +1 -0
- package/dist/cjs/components/InlineCode.cjs +45 -0
- package/dist/cjs/components/InlineCode.native.js +49 -0
- package/dist/cjs/components/InlineCode.native.js.map +1 -0
- package/dist/cjs/components/InlineStyles.cjs +58 -0
- package/dist/cjs/components/InlineStyles.native.js +64 -0
- package/dist/cjs/components/InlineStyles.native.js.map +1 -0
- package/dist/cjs/components/Link.cjs +71 -0
- package/dist/cjs/components/Link.native.js +76 -0
- package/dist/cjs/components/Link.native.js.map +1 -0
- package/dist/cjs/components/List.cjs +152 -0
- package/dist/cjs/components/List.native.js +161 -0
- package/dist/cjs/components/List.native.js.map +1 -0
- package/dist/cjs/components/Paragraph.cjs +43 -0
- package/dist/cjs/components/Paragraph.native.js +47 -0
- package/dist/cjs/components/Paragraph.native.js.map +1 -0
- package/dist/cjs/components/Table.cjs +119 -0
- package/dist/cjs/components/Table.native.js +134 -0
- package/dist/cjs/components/Table.native.js.map +1 -0
- package/dist/cjs/components/index.cjs +55 -0
- package/dist/cjs/components/index.native.js +58 -0
- package/dist/cjs/components/index.native.js.map +1 -0
- package/dist/cjs/hooks/index.cjs +22 -0
- package/dist/cjs/hooks/index.native.js +25 -0
- package/dist/cjs/hooks/index.native.js.map +1 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.cjs +42 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js +45 -0
- package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/cjs/hooks/useCompileMdx.cjs +113 -0
- package/dist/cjs/hooks/useCompileMdx.native.js +135 -0
- package/dist/cjs/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/cjs/hooks/useEvaluateMdx.cjs +64 -0
- package/dist/cjs/hooks/useEvaluateMdx.native.js +69 -0
- package/dist/cjs/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/cjs/icons/index.cjs +135 -0
- package/dist/cjs/icons/index.native.js +146 -0
- package/dist/cjs/icons/index.native.js.map +1 -0
- package/dist/cjs/index.cjs +53 -0
- package/dist/cjs/index.native.js +56 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/mdxComponents.cjs +324 -0
- package/dist/cjs/mdxComponents.native.js +386 -0
- package/dist/cjs/mdxComponents.native.js.map +1 -0
- package/dist/cjs/mermaid/MermaidBlock.cjs +110 -0
- package/dist/cjs/mermaid/MermaidBlock.native.js +41 -0
- package/dist/cjs/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/cjs/mermaid/index.cjs +31 -0
- package/dist/cjs/mermaid/index.native.js +34 -0
- package/dist/cjs/mermaid/index.native.js.map +1 -0
- package/dist/cjs/mermaid/mountDiagramSvg.cjs +54 -0
- package/dist/cjs/mermaid/mountDiagramSvg.native.js +98 -0
- package/dist/cjs/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.cjs +92 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js +110 -0
- package/dist/cjs/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/cjs/parser.cjs +49 -0
- package/dist/cjs/parser.native.js +52 -0
- package/dist/cjs/parser.native.js.map +1 -0
- package/dist/cjs/renderer.cjs +334 -0
- package/dist/cjs/renderer.native.js +356 -0
- package/dist/cjs/renderer.native.js.map +1 -0
- package/dist/cjs/shared/colorRamps.cjs +64 -0
- package/dist/cjs/shared/colorRamps.native.js +67 -0
- package/dist/cjs/shared/colorRamps.native.js.map +1 -0
- package/dist/cjs/shared/cutoffGradient.cjs +54 -0
- package/dist/cjs/shared/cutoffGradient.native.js +63 -0
- package/dist/cjs/shared/cutoffGradient.native.js.map +1 -0
- package/dist/cjs/shared/index.cjs +20 -0
- package/dist/cjs/shared/index.native.js +23 -0
- package/dist/cjs/shared/index.native.js.map +1 -0
- package/dist/cjs/shiki/index.cjs +18 -0
- package/dist/cjs/shiki/index.native.js +21 -0
- package/dist/cjs/shiki/index.native.js.map +1 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/types.native.js +21 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/util/rehypeMetaAttributes.cjs +45 -0
- package/dist/cjs/util/rehypeMetaAttributes.native.js +49 -0
- package/dist/cjs/util/rehypeMetaAttributes.native.js.map +1 -0
- package/dist/esm/Aside/index.mjs +91 -0
- package/dist/esm/Aside/index.mjs.map +1 -0
- package/dist/esm/Aside/index.native.js +97 -0
- package/dist/esm/Aside/index.native.js.map +1 -0
- package/dist/esm/ExternalIcon/index.mjs +23 -0
- package/dist/esm/ExternalIcon/index.mjs.map +1 -0
- package/dist/esm/ExternalIcon/index.native.js +25 -0
- package/dist/esm/ExternalIcon/index.native.js.map +1 -0
- package/dist/esm/Hr/index.mjs +8 -0
- package/dist/esm/Hr/index.mjs.map +1 -0
- package/dist/esm/Hr/index.native.js +10 -0
- package/dist/esm/Hr/index.native.js.map +1 -0
- package/dist/esm/Li/index.mjs +13 -0
- package/dist/esm/Li/index.mjs.map +1 -0
- package/dist/esm/Li/index.native.js +13 -0
- package/dist/esm/Li/index.native.js.map +1 -0
- package/dist/esm/Markdown.mjs +41 -0
- package/dist/esm/Markdown.mjs.map +1 -0
- package/dist/esm/Markdown.native.js +43 -0
- package/dist/esm/Markdown.native.js.map +1 -0
- package/dist/esm/MarkdownSimpleTable/index.mjs +125 -0
- package/dist/esm/MarkdownSimpleTable/index.mjs.map +1 -0
- package/dist/esm/MarkdownSimpleTable/index.native.js +155 -0
- package/dist/esm/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/esm/Mdx/index.mjs +41 -0
- package/dist/esm/Mdx/index.mjs.map +1 -0
- package/dist/esm/Mdx/index.native.js +42 -0
- package/dist/esm/Mdx/index.native.js.map +1 -0
- package/dist/esm/MdxCodeBlock/index.mjs +157 -0
- package/dist/esm/MdxCodeBlock/index.mjs.map +1 -0
- package/dist/esm/MdxCodeBlock/index.native.js +177 -0
- package/dist/esm/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs +4 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js +4 -0
- package/dist/esm/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/esm/Notice/index.mjs +26 -0
- package/dist/esm/Notice/index.mjs.map +1 -0
- package/dist/esm/Notice/index.native.js +27 -0
- package/dist/esm/Notice/index.native.js.map +1 -0
- package/dist/esm/Table/index.mjs +104 -0
- package/dist/esm/Table/index.mjs.map +1 -0
- package/dist/esm/Table/index.native.js +112 -0
- package/dist/esm/Table/index.native.js.map +1 -0
- package/dist/esm/Tabs/index.mjs +35 -0
- package/dist/esm/Tabs/index.mjs.map +1 -0
- package/dist/esm/Tabs/index.native.js +42 -0
- package/dist/esm/Tabs/index.native.js.map +1 -0
- package/dist/esm/Ul/index.mjs +10 -0
- package/dist/esm/Ul/index.mjs.map +1 -0
- package/dist/esm/Ul/index.native.js +10 -0
- package/dist/esm/Ul/index.native.js.map +1 -0
- package/dist/esm/Video/index.mjs +61 -0
- package/dist/esm/Video/index.mjs.map +1 -0
- package/dist/esm/Video/index.native.js +63 -0
- package/dist/esm/Video/index.native.js.map +1 -0
- package/dist/esm/components/Blockquote.mjs +35 -0
- package/dist/esm/components/Blockquote.mjs.map +1 -0
- package/dist/esm/components/Blockquote.native.js +45 -0
- package/dist/esm/components/Blockquote.native.js.map +1 -0
- package/dist/esm/components/Break.mjs +10 -0
- package/dist/esm/components/Break.mjs.map +1 -0
- package/dist/esm/components/Break.native.js +10 -0
- package/dist/esm/components/Break.native.js.map +1 -0
- package/dist/esm/components/CodeBlock.mjs +44 -0
- package/dist/esm/components/CodeBlock.mjs.map +1 -0
- package/dist/esm/components/CodeBlock.native.js +49 -0
- package/dist/esm/components/CodeBlock.native.js.map +1 -0
- package/dist/esm/components/Heading.mjs +46 -0
- package/dist/esm/components/Heading.mjs.map +1 -0
- package/dist/esm/components/Heading.native.js +48 -0
- package/dist/esm/components/Heading.native.js.map +1 -0
- package/dist/esm/components/HorizontalRule.mjs +9 -0
- package/dist/esm/components/HorizontalRule.mjs.map +1 -0
- package/dist/esm/components/HorizontalRule.native.js +9 -0
- package/dist/esm/components/HorizontalRule.native.js.map +1 -0
- package/dist/esm/components/Image.mjs +26 -0
- package/dist/esm/components/Image.mjs.map +1 -0
- package/dist/esm/components/Image.native.js +30 -0
- package/dist/esm/components/Image.native.js.map +1 -0
- package/dist/esm/components/InlineCode.mjs +20 -0
- package/dist/esm/components/InlineCode.mjs.map +1 -0
- package/dist/esm/components/InlineCode.native.js +21 -0
- package/dist/esm/components/InlineCode.native.js.map +1 -0
- package/dist/esm/components/InlineStyles.mjs +31 -0
- package/dist/esm/components/InlineStyles.mjs.map +1 -0
- package/dist/esm/components/InlineStyles.native.js +34 -0
- package/dist/esm/components/InlineStyles.native.js.map +1 -0
- package/dist/esm/components/Link.mjs +46 -0
- package/dist/esm/components/Link.mjs.map +1 -0
- package/dist/esm/components/Link.native.js +48 -0
- package/dist/esm/components/Link.native.js.map +1 -0
- package/dist/esm/components/List.mjs +126 -0
- package/dist/esm/components/List.mjs.map +1 -0
- package/dist/esm/components/List.native.js +132 -0
- package/dist/esm/components/List.native.js.map +1 -0
- package/dist/esm/components/Paragraph.mjs +18 -0
- package/dist/esm/components/Paragraph.mjs.map +1 -0
- package/dist/esm/components/Paragraph.native.js +19 -0
- package/dist/esm/components/Paragraph.native.js.map +1 -0
- package/dist/esm/components/Table.mjs +92 -0
- package/dist/esm/components/Table.mjs.map +1 -0
- package/dist/esm/components/Table.native.js +104 -0
- package/dist/esm/components/Table.native.js.map +1 -0
- package/dist/esm/components/index.mjs +14 -0
- package/dist/esm/components/index.mjs.map +1 -0
- package/dist/esm/components/index.native.js +14 -0
- package/dist/esm/components/index.native.js.map +1 -0
- package/dist/esm/hooks/index.mjs +4 -0
- package/dist/esm/hooks/index.mjs.map +1 -0
- package/dist/esm/hooks/index.native.js +4 -0
- package/dist/esm/hooks/index.native.js.map +1 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs +17 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.mjs.map +1 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js +17 -0
- package/dist/esm/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/esm/hooks/useCompileMdx.mjs +76 -0
- package/dist/esm/hooks/useCompileMdx.mjs.map +1 -0
- package/dist/esm/hooks/useCompileMdx.native.js +95 -0
- package/dist/esm/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/esm/hooks/useEvaluateMdx.mjs +28 -0
- package/dist/esm/hooks/useEvaluateMdx.mjs.map +1 -0
- package/dist/esm/hooks/useEvaluateMdx.native.js +30 -0
- package/dist/esm/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/esm/icons/index.mjs +107 -0
- package/dist/esm/icons/index.mjs.map +1 -0
- package/dist/esm/icons/index.native.js +115 -0
- package/dist/esm/icons/index.native.js.map +1 -0
- package/dist/esm/index.mjs +23 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +23 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/mdxComponents.mjs +298 -0
- package/dist/esm/mdxComponents.mjs.map +1 -0
- package/dist/esm/mdxComponents.native.js +357 -0
- package/dist/esm/mdxComponents.native.js.map +1 -0
- package/dist/esm/mermaid/MermaidBlock.mjs +85 -0
- package/dist/esm/mermaid/MermaidBlock.mjs.map +1 -0
- package/dist/esm/mermaid/MermaidBlock.native.js +13 -0
- package/dist/esm/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/esm/mermaid/index.mjs +4 -0
- package/dist/esm/mermaid/index.mjs.map +1 -0
- package/dist/esm/mermaid/index.native.js +4 -0
- package/dist/esm/mermaid/index.native.js.map +1 -0
- package/dist/esm/mermaid/mountDiagramSvg.mjs +29 -0
- package/dist/esm/mermaid/mountDiagramSvg.mjs.map +1 -0
- package/dist/esm/mermaid/mountDiagramSvg.native.js +70 -0
- package/dist/esm/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/esm/mermaid/renderMermaidDiagram.mjs +55 -0
- package/dist/esm/mermaid/renderMermaidDiagram.mjs.map +1 -0
- package/dist/esm/mermaid/renderMermaidDiagram.native.js +70 -0
- package/dist/esm/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/esm/parser.mjs +12 -0
- package/dist/esm/parser.mjs.map +1 -0
- package/dist/esm/parser.native.js +12 -0
- package/dist/esm/parser.native.js.map +1 -0
- package/dist/esm/renderer.mjs +308 -0
- package/dist/esm/renderer.mjs.map +1 -0
- package/dist/esm/renderer.native.js +327 -0
- package/dist/esm/renderer.native.js.map +1 -0
- package/dist/esm/shared/colorRamps.mjs +36 -0
- package/dist/esm/shared/colorRamps.mjs.map +1 -0
- package/dist/esm/shared/colorRamps.native.js +36 -0
- package/dist/esm/shared/colorRamps.native.js.map +1 -0
- package/dist/esm/shared/cutoffGradient.mjs +28 -0
- package/dist/esm/shared/cutoffGradient.mjs.map +1 -0
- package/dist/esm/shared/cutoffGradient.native.js +34 -0
- package/dist/esm/shared/cutoffGradient.native.js.map +1 -0
- package/dist/esm/shared/index.mjs +2 -0
- package/dist/esm/shared/index.mjs.map +1 -0
- package/dist/esm/shared/index.native.js +2 -0
- package/dist/esm/shared/index.native.js.map +1 -0
- package/dist/esm/shiki/index.mjs +2 -0
- package/dist/esm/shiki/index.mjs.map +1 -0
- package/dist/esm/shiki/index.native.js +2 -0
- package/dist/esm/shiki/index.native.js.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/util/rehypeMetaAttributes.mjs +20 -0
- package/dist/esm/util/rehypeMetaAttributes.mjs.map +1 -0
- package/dist/esm/util/rehypeMetaAttributes.native.js +21 -0
- package/dist/esm/util/rehypeMetaAttributes.native.js.map +1 -0
- package/dist/jsx/Aside/index.mjs +91 -0
- package/dist/jsx/Aside/index.mjs.map +1 -0
- package/dist/jsx/Aside/index.native.js +126 -0
- package/dist/jsx/Aside/index.native.js.map +1 -0
- package/dist/jsx/ExternalIcon/index.mjs +23 -0
- package/dist/jsx/ExternalIcon/index.mjs.map +1 -0
- package/dist/jsx/ExternalIcon/index.native.js +53 -0
- package/dist/jsx/ExternalIcon/index.native.js.map +1 -0
- package/dist/jsx/Hr/index.mjs +8 -0
- package/dist/jsx/Hr/index.mjs.map +1 -0
- package/dist/jsx/Hr/index.native.js +38 -0
- package/dist/jsx/Hr/index.native.js.map +1 -0
- package/dist/jsx/Li/index.mjs +13 -0
- package/dist/jsx/Li/index.mjs.map +1 -0
- package/dist/jsx/Li/index.native.js +41 -0
- package/dist/jsx/Li/index.native.js.map +1 -0
- package/dist/jsx/Markdown.mjs +41 -0
- package/dist/jsx/Markdown.mjs.map +1 -0
- package/dist/jsx/Markdown.native.js +71 -0
- package/dist/jsx/Markdown.native.js.map +1 -0
- package/dist/jsx/MarkdownSimpleTable/index.mjs +125 -0
- package/dist/jsx/MarkdownSimpleTable/index.mjs.map +1 -0
- package/dist/jsx/MarkdownSimpleTable/index.native.js +183 -0
- package/dist/jsx/MarkdownSimpleTable/index.native.js.map +1 -0
- package/dist/jsx/Mdx/index.mjs +41 -0
- package/dist/jsx/Mdx/index.mjs.map +1 -0
- package/dist/jsx/Mdx/index.native.js +70 -0
- package/dist/jsx/Mdx/index.native.js.map +1 -0
- package/dist/jsx/MdxCodeBlock/index.mjs +157 -0
- package/dist/jsx/MdxCodeBlock/index.mjs.map +1 -0
- package/dist/jsx/MdxCodeBlock/index.native.js +216 -0
- package/dist/jsx/MdxCodeBlock/index.native.js.map +1 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs +4 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.mjs.map +1 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js +32 -0
- package/dist/jsx/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -0
- package/dist/jsx/Notice/index.mjs +26 -0
- package/dist/jsx/Notice/index.mjs.map +1 -0
- package/dist/jsx/Notice/index.native.js +55 -0
- package/dist/jsx/Notice/index.native.js.map +1 -0
- package/dist/jsx/Table/index.mjs +104 -0
- package/dist/jsx/Table/index.mjs.map +1 -0
- package/dist/jsx/Table/index.native.js +145 -0
- package/dist/jsx/Table/index.native.js.map +1 -0
- package/dist/jsx/Tabs/index.mjs +35 -0
- package/dist/jsx/Tabs/index.mjs.map +1 -0
- package/dist/jsx/Tabs/index.native.js +71 -0
- package/dist/jsx/Tabs/index.native.js.map +1 -0
- package/dist/jsx/Ul/index.mjs +10 -0
- package/dist/jsx/Ul/index.mjs.map +1 -0
- package/dist/jsx/Ul/index.native.js +38 -0
- package/dist/jsx/Ul/index.native.js.map +1 -0
- package/dist/jsx/Video/index.mjs +61 -0
- package/dist/jsx/Video/index.mjs.map +1 -0
- package/dist/jsx/Video/index.native.js +91 -0
- package/dist/jsx/Video/index.native.js.map +1 -0
- package/dist/jsx/components/Blockquote.mjs +35 -0
- package/dist/jsx/components/Blockquote.mjs.map +1 -0
- package/dist/jsx/components/Blockquote.native.js +73 -0
- package/dist/jsx/components/Blockquote.native.js.map +1 -0
- package/dist/jsx/components/Break.mjs +10 -0
- package/dist/jsx/components/Break.mjs.map +1 -0
- package/dist/jsx/components/Break.native.js +38 -0
- package/dist/jsx/components/Break.native.js.map +1 -0
- package/dist/jsx/components/CodeBlock.mjs +44 -0
- package/dist/jsx/components/CodeBlock.mjs.map +1 -0
- package/dist/jsx/components/CodeBlock.native.js +77 -0
- package/dist/jsx/components/CodeBlock.native.js.map +1 -0
- package/dist/jsx/components/Heading.mjs +46 -0
- package/dist/jsx/components/Heading.mjs.map +1 -0
- package/dist/jsx/components/Heading.native.js +76 -0
- package/dist/jsx/components/Heading.native.js.map +1 -0
- package/dist/jsx/components/HorizontalRule.mjs +9 -0
- package/dist/jsx/components/HorizontalRule.mjs.map +1 -0
- package/dist/jsx/components/HorizontalRule.native.js +37 -0
- package/dist/jsx/components/HorizontalRule.native.js.map +1 -0
- package/dist/jsx/components/Image.mjs +26 -0
- package/dist/jsx/components/Image.mjs.map +1 -0
- package/dist/jsx/components/Image.native.js +58 -0
- package/dist/jsx/components/Image.native.js.map +1 -0
- package/dist/jsx/components/InlineCode.mjs +20 -0
- package/dist/jsx/components/InlineCode.mjs.map +1 -0
- package/dist/jsx/components/InlineCode.native.js +49 -0
- package/dist/jsx/components/InlineCode.native.js.map +1 -0
- package/dist/jsx/components/InlineStyles.mjs +31 -0
- package/dist/jsx/components/InlineStyles.mjs.map +1 -0
- package/dist/jsx/components/InlineStyles.native.js +64 -0
- package/dist/jsx/components/InlineStyles.native.js.map +1 -0
- package/dist/jsx/components/Link.mjs +46 -0
- package/dist/jsx/components/Link.mjs.map +1 -0
- package/dist/jsx/components/Link.native.js +76 -0
- package/dist/jsx/components/Link.native.js.map +1 -0
- package/dist/jsx/components/List.mjs +126 -0
- package/dist/jsx/components/List.mjs.map +1 -0
- package/dist/jsx/components/List.native.js +161 -0
- package/dist/jsx/components/List.native.js.map +1 -0
- package/dist/jsx/components/Paragraph.mjs +18 -0
- package/dist/jsx/components/Paragraph.mjs.map +1 -0
- package/dist/jsx/components/Paragraph.native.js +47 -0
- package/dist/jsx/components/Paragraph.native.js.map +1 -0
- package/dist/jsx/components/Table.mjs +92 -0
- package/dist/jsx/components/Table.mjs.map +1 -0
- package/dist/jsx/components/Table.native.js +134 -0
- package/dist/jsx/components/Table.native.js.map +1 -0
- package/dist/jsx/components/index.mjs +14 -0
- package/dist/jsx/components/index.mjs.map +1 -0
- package/dist/jsx/components/index.native.js +58 -0
- package/dist/jsx/components/index.native.js.map +1 -0
- package/dist/jsx/hooks/index.mjs +4 -0
- package/dist/jsx/hooks/index.mjs.map +1 -0
- package/dist/jsx/hooks/index.native.js +25 -0
- package/dist/jsx/hooks/index.native.js.map +1 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs +17 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js +45 -0
- package/dist/jsx/hooks/useCompileAndEvaluateMdx.native.js.map +1 -0
- package/dist/jsx/hooks/useCompileMdx.mjs +76 -0
- package/dist/jsx/hooks/useCompileMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useCompileMdx.native.js +135 -0
- package/dist/jsx/hooks/useCompileMdx.native.js.map +1 -0
- package/dist/jsx/hooks/useEvaluateMdx.mjs +28 -0
- package/dist/jsx/hooks/useEvaluateMdx.mjs.map +1 -0
- package/dist/jsx/hooks/useEvaluateMdx.native.js +69 -0
- package/dist/jsx/hooks/useEvaluateMdx.native.js.map +1 -0
- package/dist/jsx/icons/index.mjs +107 -0
- package/dist/jsx/icons/index.mjs.map +1 -0
- package/dist/jsx/icons/index.native.js +146 -0
- package/dist/jsx/icons/index.native.js.map +1 -0
- package/dist/jsx/index.js +23 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +23 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +56 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/mdxComponents.mjs +298 -0
- package/dist/jsx/mdxComponents.mjs.map +1 -0
- package/dist/jsx/mdxComponents.native.js +386 -0
- package/dist/jsx/mdxComponents.native.js.map +1 -0
- package/dist/jsx/mermaid/MermaidBlock.mjs +85 -0
- package/dist/jsx/mermaid/MermaidBlock.mjs.map +1 -0
- package/dist/jsx/mermaid/MermaidBlock.native.js +41 -0
- package/dist/jsx/mermaid/MermaidBlock.native.js.map +1 -0
- package/dist/jsx/mermaid/index.mjs +4 -0
- package/dist/jsx/mermaid/index.mjs.map +1 -0
- package/dist/jsx/mermaid/index.native.js +34 -0
- package/dist/jsx/mermaid/index.native.js.map +1 -0
- package/dist/jsx/mermaid/mountDiagramSvg.mjs +29 -0
- package/dist/jsx/mermaid/mountDiagramSvg.mjs.map +1 -0
- package/dist/jsx/mermaid/mountDiagramSvg.native.js +98 -0
- package/dist/jsx/mermaid/mountDiagramSvg.native.js.map +1 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs +55 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.mjs.map +1 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js +110 -0
- package/dist/jsx/mermaid/renderMermaidDiagram.native.js.map +1 -0
- package/dist/jsx/parser.mjs +12 -0
- package/dist/jsx/parser.mjs.map +1 -0
- package/dist/jsx/parser.native.js +52 -0
- package/dist/jsx/parser.native.js.map +1 -0
- package/dist/jsx/renderer.mjs +308 -0
- package/dist/jsx/renderer.mjs.map +1 -0
- package/dist/jsx/renderer.native.js +356 -0
- package/dist/jsx/renderer.native.js.map +1 -0
- package/dist/jsx/shared/colorRamps.mjs +36 -0
- package/dist/jsx/shared/colorRamps.mjs.map +1 -0
- package/dist/jsx/shared/colorRamps.native.js +67 -0
- package/dist/jsx/shared/colorRamps.native.js.map +1 -0
- package/dist/jsx/shared/cutoffGradient.mjs +28 -0
- package/dist/jsx/shared/cutoffGradient.mjs.map +1 -0
- package/dist/jsx/shared/cutoffGradient.native.js +63 -0
- package/dist/jsx/shared/cutoffGradient.native.js.map +1 -0
- package/dist/jsx/shared/index.mjs +2 -0
- package/dist/jsx/shared/index.mjs.map +1 -0
- package/dist/jsx/shared/index.native.js +23 -0
- package/dist/jsx/shared/index.native.js.map +1 -0
- package/dist/jsx/shiki/index.mjs +2 -0
- package/dist/jsx/shiki/index.mjs.map +1 -0
- package/dist/jsx/shiki/index.native.js +21 -0
- package/dist/jsx/shiki/index.native.js.map +1 -0
- package/dist/jsx/types.mjs +2 -0
- package/dist/jsx/types.mjs.map +1 -0
- package/dist/jsx/types.native.js +21 -0
- package/dist/jsx/types.native.js.map +1 -0
- package/dist/jsx/util/rehypeMetaAttributes.mjs +20 -0
- package/dist/jsx/util/rehypeMetaAttributes.mjs.map +1 -0
- package/dist/jsx/util/rehypeMetaAttributes.native.js +49 -0
- package/dist/jsx/util/rehypeMetaAttributes.native.js.map +1 -0
- package/package.json +9 -9
- package/types/Aside/index.d.ts +11 -0
- package/types/Aside/index.d.ts.map +1 -0
- package/types/ExternalIcon/index.d.ts +2 -0
- package/types/ExternalIcon/index.d.ts.map +1 -0
- package/types/Hr/index.d.ts +2 -0
- package/types/Hr/index.d.ts.map +1 -0
- package/types/Li/index.d.ts +6 -0
- package/types/Li/index.d.ts.map +1 -0
- package/types/Markdown.d.ts +22 -0
- package/types/Markdown.d.ts.map +1 -0
- package/types/MarkdownSimpleTable/index.d.ts +16 -0
- package/types/MarkdownSimpleTable/index.d.ts.map +1 -0
- package/types/Mdx/index.d.ts +9 -0
- package/types/Mdx/index.d.ts.map +1 -0
- package/types/MdxCodeBlock/index.d.ts +7 -0
- package/types/MdxCodeBlock/index.d.ts.map +1 -0
- package/types/MdxCodeBlock/mdxCodeBlockContext.d.ts +13 -0
- package/types/MdxCodeBlock/mdxCodeBlockContext.d.ts.map +1 -0
- package/types/Notice/index.d.ts +12 -0
- package/types/Notice/index.d.ts.map +1 -0
- package/types/Table/index.d.ts +20 -0
- package/types/Table/index.d.ts.map +1 -0
- package/types/Tabs/index.d.ts +21 -0
- package/types/Tabs/index.d.ts.map +1 -0
- package/types/Ul/index.d.ts +6 -0
- package/types/Ul/index.d.ts.map +1 -0
- package/types/Video/index.d.ts +12 -0
- package/types/Video/index.d.ts.map +1 -0
- package/types/components/Blockquote.d.ts +3 -0
- package/types/components/Blockquote.d.ts.map +1 -0
- package/types/components/Break.d.ts +3 -0
- package/types/components/Break.d.ts.map +1 -0
- package/types/components/CodeBlock.d.ts +17 -0
- package/types/components/CodeBlock.d.ts.map +1 -0
- package/types/components/Heading.d.ts +3 -0
- package/types/components/Heading.d.ts.map +1 -0
- package/types/components/HorizontalRule.d.ts +3 -0
- package/types/components/HorizontalRule.d.ts.map +1 -0
- package/types/components/Image.d.ts +3 -0
- package/types/components/Image.d.ts.map +1 -0
- package/types/components/InlineCode.d.ts +12 -0
- package/types/components/InlineCode.d.ts.map +1 -0
- package/types/components/InlineStyles.d.ts +5 -0
- package/types/components/InlineStyles.d.ts.map +1 -0
- package/types/components/Link.d.ts +3 -0
- package/types/components/Link.d.ts.map +1 -0
- package/types/components/List.d.ts +10 -0
- package/types/components/List.d.ts.map +1 -0
- package/types/components/Paragraph.d.ts +3 -0
- package/types/components/Paragraph.d.ts.map +1 -0
- package/types/components/Table.d.ts +13 -0
- package/types/components/Table.d.ts.map +1 -0
- package/types/components/index.d.ts +13 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/hooks/index.d.ts +4 -0
- package/types/hooks/index.d.ts.map +1 -0
- package/types/hooks/useCompileAndEvaluateMdx.d.ts +9 -0
- package/types/hooks/useCompileAndEvaluateMdx.d.ts.map +1 -0
- package/types/hooks/useCompileMdx.d.ts +13 -0
- package/types/hooks/useCompileMdx.d.ts.map +1 -0
- package/types/hooks/useEvaluateMdx.d.ts +5 -0
- package/types/hooks/useEvaluateMdx.d.ts.map +1 -0
- package/types/icons/index.d.ts +12 -0
- package/types/icons/index.d.ts.map +1 -0
- package/types/index.d.ts +29 -0
- package/types/index.d.ts.map +1 -0
- package/types/mdxComponents.d.ts +8 -0
- package/types/mdxComponents.d.ts.map +1 -0
- package/types/mermaid/MermaidBlock.d.ts +15 -0
- package/types/mermaid/MermaidBlock.d.ts.map +1 -0
- package/types/mermaid/MermaidBlock.native.d.ts +10 -0
- package/types/mermaid/MermaidBlock.native.d.ts.map +1 -0
- package/types/mermaid/index.d.ts +18 -0
- package/types/mermaid/index.d.ts.map +1 -0
- package/types/mermaid/mountDiagramSvg.d.ts +11 -0
- package/types/mermaid/mountDiagramSvg.d.ts.map +1 -0
- package/types/mermaid/renderMermaidDiagram.d.ts +33 -0
- package/types/mermaid/renderMermaidDiagram.d.ts.map +1 -0
- package/types/parser.d.ts +11 -0
- package/types/parser.d.ts.map +1 -0
- package/types/renderer.d.ts +32 -0
- package/types/renderer.d.ts.map +1 -0
- package/types/shared/colorRamps.d.ts +39 -0
- package/types/shared/colorRamps.d.ts.map +1 -0
- package/types/shared/cutoffGradient.d.ts +12 -0
- package/types/shared/cutoffGradient.d.ts.map +1 -0
- package/types/shared/index.d.ts +2 -0
- package/types/shared/index.d.ts.map +1 -0
- package/types/shiki/index.d.ts +8 -0
- package/types/shiki/index.d.ts.map +1 -0
- package/types/types.d.ts +160 -0
- package/types/types.d.ts.map +1 -0
- package/types/util/rehypeMetaAttributes.d.ts +2 -0
- package/types/util/rehypeMetaAttributes.d.ts.map +1 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var mdxComponents_exports = {};
|
|
26
|
+
__export(mdxComponents_exports, {
|
|
27
|
+
TableHighlight: () => TableHighlight,
|
|
28
|
+
mdxComponents: () => mdxComponents
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(mdxComponents_exports);
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var import_components = require("@multiplatform.one/components");
|
|
33
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
34
|
+
var import_router = require("@multiplatform.one/router");
|
|
35
|
+
var import_react = require("react");
|
|
36
|
+
var import_tamagui = require("tamagui");
|
|
37
|
+
var import_ExternalIcon = require("./ExternalIcon/index.native.js");
|
|
38
|
+
var import_Hr = require("./Hr/index.native.js");
|
|
39
|
+
var import_icons = require("./icons/index.native.js");
|
|
40
|
+
var import_Li = require("./Li/index.native.js");
|
|
41
|
+
var import_MdxCodeBlock = require("./MdxCodeBlock/index.native.js");
|
|
42
|
+
var import_Table = require("./Table/index.native.js");
|
|
43
|
+
var import_Ul = require("./Ul/index.native.js");
|
|
44
|
+
var code = function code2(param) {
|
|
45
|
+
var {
|
|
46
|
+
hero: _hero,
|
|
47
|
+
line,
|
|
48
|
+
scrollable: _scrollable,
|
|
49
|
+
className,
|
|
50
|
+
children,
|
|
51
|
+
id: _id,
|
|
52
|
+
showLineNumbers,
|
|
53
|
+
collapsible: _collapsible,
|
|
54
|
+
...props
|
|
55
|
+
} = param;
|
|
56
|
+
if (!className) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.CodeInline, {
|
|
57
|
+
children: (0, import_components.unwrapText)(children)
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
60
|
+
marginTop: "$3",
|
|
61
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_MdxCodeBlock.MDXCodeBlock, {
|
|
62
|
+
className,
|
|
63
|
+
isHighlightingLines: line !== void 0,
|
|
64
|
+
showLineNumbers: showLineNumbers !== void 0,
|
|
65
|
+
line,
|
|
66
|
+
...props,
|
|
67
|
+
children
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
var TableHighlight = (0, import_tamagui.styled)(import_tamagui.YStack, {
|
|
72
|
+
name: "TableHighlight",
|
|
73
|
+
backgroundColor: "$yellow1",
|
|
74
|
+
fullscreen: true
|
|
75
|
+
});
|
|
76
|
+
function MdxBlockquote(param) {
|
|
77
|
+
var {
|
|
78
|
+
children,
|
|
79
|
+
...props
|
|
80
|
+
} = param;
|
|
81
|
+
var {
|
|
82
|
+
knobProps
|
|
83
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
84
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
85
|
+
marginVertical: "$4",
|
|
86
|
+
paddingHorizontal: knobProps.panelPadding.padding,
|
|
87
|
+
// Logical start rail so the quote mirrors in RTL; tamagui
|
|
88
|
+
// borderStartWidth does not compile to working CSS on web (SB-M-1215)
|
|
89
|
+
...(import_tamagui.isWeb ? {
|
|
90
|
+
style: {
|
|
91
|
+
marginInlineStart: 12,
|
|
92
|
+
borderInlineStartWidth: 1,
|
|
93
|
+
borderInlineStartStyle: "solid"
|
|
94
|
+
}
|
|
95
|
+
} : {
|
|
96
|
+
style: {
|
|
97
|
+
marginInlineStart: 12
|
|
98
|
+
},
|
|
99
|
+
borderStartWidth: 1
|
|
100
|
+
}),
|
|
101
|
+
borderColor: "$borderColor",
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
...props,
|
|
104
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
105
|
+
whiteSpace: "revert",
|
|
106
|
+
size: "$8",
|
|
107
|
+
lineHeight: "$9",
|
|
108
|
+
fontWeight: "300",
|
|
109
|
+
color: "$color",
|
|
110
|
+
opacity: 0.65,
|
|
111
|
+
children: (0, import_components.unwrapText)(children)
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
var mdxComponents = {
|
|
116
|
+
h1: function h1(props) {
|
|
117
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H1, {
|
|
118
|
+
fontFamily: "$mono",
|
|
119
|
+
width: "max-content",
|
|
120
|
+
position: "relative",
|
|
121
|
+
marginBottom: "$2",
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
h2: function h2(param) {
|
|
126
|
+
var {
|
|
127
|
+
children,
|
|
128
|
+
...props
|
|
129
|
+
} = param;
|
|
130
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H2, {
|
|
131
|
+
position: "relative",
|
|
132
|
+
width: "fit-content",
|
|
133
|
+
marginTop: "$8",
|
|
134
|
+
marginBottom: "$4",
|
|
135
|
+
"data-heading": true,
|
|
136
|
+
size: "$9",
|
|
137
|
+
color: "$color12",
|
|
138
|
+
...props,
|
|
139
|
+
children
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
h3: function h3(param) {
|
|
143
|
+
var {
|
|
144
|
+
children,
|
|
145
|
+
id,
|
|
146
|
+
...props
|
|
147
|
+
} = param;
|
|
148
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(LinkHeading, {
|
|
149
|
+
"data-heading": true,
|
|
150
|
+
marginTop: "$6",
|
|
151
|
+
marginBottom: "$2",
|
|
152
|
+
id,
|
|
153
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H3, {
|
|
154
|
+
maxWidth: "100%",
|
|
155
|
+
position: "relative",
|
|
156
|
+
width: "fit-content",
|
|
157
|
+
size: "$8",
|
|
158
|
+
color: "$color11",
|
|
159
|
+
fontWeight: "600",
|
|
160
|
+
...props,
|
|
161
|
+
children
|
|
162
|
+
}), getNonTextChildren(children)]
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
h4: function h4(props) {
|
|
166
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H4, {
|
|
167
|
+
position: "relative",
|
|
168
|
+
width: "fit-content",
|
|
169
|
+
marginTop: "$8",
|
|
170
|
+
marginBottom: "$2",
|
|
171
|
+
size: "$8",
|
|
172
|
+
color: "$color8",
|
|
173
|
+
"data-heading": true,
|
|
174
|
+
...props,
|
|
175
|
+
fontWeight: "400"
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
h5: function h5(props) {
|
|
179
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H5, {
|
|
180
|
+
size: "$6",
|
|
181
|
+
fontWeight: "600",
|
|
182
|
+
marginTop: "$4",
|
|
183
|
+
...props
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
h6: function h6(props) {
|
|
187
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.H6, {
|
|
188
|
+
marginTop: "$4",
|
|
189
|
+
...props
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
p: function p(props) {
|
|
193
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
194
|
+
render: "p",
|
|
195
|
+
display: "block",
|
|
196
|
+
size: "$6",
|
|
197
|
+
marginVertical: "$2",
|
|
198
|
+
...props
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
a: function a(param) {
|
|
202
|
+
var {
|
|
203
|
+
href = "",
|
|
204
|
+
children,
|
|
205
|
+
...props
|
|
206
|
+
} = param;
|
|
207
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_router.Link, {
|
|
208
|
+
href,
|
|
209
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Paragraph, {
|
|
210
|
+
// the router Link already renders the anchor; a nested <a> is invalid
|
|
211
|
+
render: "span",
|
|
212
|
+
fontSize: "inherit",
|
|
213
|
+
display: "inline",
|
|
214
|
+
cursor: "pointer",
|
|
215
|
+
focusVisibleStyle: {
|
|
216
|
+
outlineColor: "$outlineColor",
|
|
217
|
+
outlineWidth: 2,
|
|
218
|
+
outlineStyle: "solid",
|
|
219
|
+
outlineOffset: 2
|
|
220
|
+
},
|
|
221
|
+
...props,
|
|
222
|
+
children: [children, typeof href === "string" && href.startsWith("http") ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
223
|
+
children: ["\xA0", /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
224
|
+
fontSize: "inherit",
|
|
225
|
+
display: "inline-flex",
|
|
226
|
+
y: 2,
|
|
227
|
+
style: {
|
|
228
|
+
marginLeft: -1
|
|
229
|
+
},
|
|
230
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ExternalIcon.ExternalIcon, {})
|
|
231
|
+
})]
|
|
232
|
+
}) : null]
|
|
233
|
+
})
|
|
234
|
+
});
|
|
235
|
+
},
|
|
236
|
+
hr: function hr(props) {
|
|
237
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Hr.HR, {
|
|
238
|
+
...props
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
ul: function ul(param) {
|
|
242
|
+
var {
|
|
243
|
+
children
|
|
244
|
+
} = param;
|
|
245
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Ul.UL, {
|
|
246
|
+
render: "ul",
|
|
247
|
+
marginVertical: "$4",
|
|
248
|
+
children: import_react.Children.toArray(children).map(function (x) {
|
|
249
|
+
return typeof x === "string" ? null : x;
|
|
250
|
+
})
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
ol: function ol(props) {
|
|
254
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
255
|
+
...props,
|
|
256
|
+
render: "ol",
|
|
257
|
+
marginBottom: "$3"
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
li: function li(props) {
|
|
261
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Li.LI, {
|
|
262
|
+
render: "li",
|
|
263
|
+
size: "$6",
|
|
264
|
+
marginBottom: "$1.5",
|
|
265
|
+
style: {
|
|
266
|
+
listStyleType: "disc"
|
|
267
|
+
},
|
|
268
|
+
children: props.children
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
strong: function strong(props) {
|
|
272
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
273
|
+
render: "strong",
|
|
274
|
+
fontSize: "inherit",
|
|
275
|
+
...props,
|
|
276
|
+
fontWeight: "700"
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
em: function em(props) {
|
|
280
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
281
|
+
render: "em",
|
|
282
|
+
fontSize: "inherit",
|
|
283
|
+
...props,
|
|
284
|
+
fontStyle: "italic"
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
del: function del(props) {
|
|
288
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
|
|
289
|
+
render: "del",
|
|
290
|
+
fontSize: "inherit",
|
|
291
|
+
...props,
|
|
292
|
+
textDecorationLine: "line-through"
|
|
293
|
+
});
|
|
294
|
+
},
|
|
295
|
+
img: function img(param) {
|
|
296
|
+
var {
|
|
297
|
+
...props
|
|
298
|
+
} = param;
|
|
299
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
300
|
+
render: "span",
|
|
301
|
+
marginVertical: "$6",
|
|
302
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
303
|
+
render: "img",
|
|
304
|
+
...props,
|
|
305
|
+
maxWidth: "100%"
|
|
306
|
+
})
|
|
307
|
+
});
|
|
308
|
+
},
|
|
309
|
+
pre: function pre(param) {
|
|
310
|
+
var {
|
|
311
|
+
children
|
|
312
|
+
} = param;
|
|
313
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
314
|
+
children
|
|
315
|
+
});
|
|
316
|
+
},
|
|
317
|
+
code,
|
|
318
|
+
blockquote: MdxBlockquote,
|
|
319
|
+
table: function table(props) {
|
|
320
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTable, {
|
|
321
|
+
...props
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
thead: function thead(props) {
|
|
325
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTableHead, {
|
|
326
|
+
...props
|
|
327
|
+
});
|
|
328
|
+
},
|
|
329
|
+
tbody: function tbody(props) {
|
|
330
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTableBody, {
|
|
331
|
+
...props
|
|
332
|
+
});
|
|
333
|
+
},
|
|
334
|
+
tr: function tr(props) {
|
|
335
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTableRow, {
|
|
336
|
+
...props
|
|
337
|
+
});
|
|
338
|
+
},
|
|
339
|
+
th: function th(props) {
|
|
340
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTableHeaderCell, {
|
|
341
|
+
...props
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
td: function td(props) {
|
|
345
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Table.MDXTableCell, {
|
|
346
|
+
...props
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
var LinkHeading = function LinkHeading2(param) {
|
|
351
|
+
var {
|
|
352
|
+
id,
|
|
353
|
+
children,
|
|
354
|
+
...props
|
|
355
|
+
} = param;
|
|
356
|
+
var {
|
|
357
|
+
knobProps
|
|
358
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
359
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
360
|
+
render: "a",
|
|
361
|
+
"data-heading": true,
|
|
362
|
+
href: `#${id}`,
|
|
363
|
+
id,
|
|
364
|
+
"data-id": id,
|
|
365
|
+
display: "inline-flex",
|
|
366
|
+
alignItems: "center",
|
|
367
|
+
...knobProps.gapLg,
|
|
368
|
+
...props,
|
|
369
|
+
children: [children, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
370
|
+
render: "span",
|
|
371
|
+
opacity: 0.3,
|
|
372
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_icons.LinkIcon, {
|
|
373
|
+
size: 12
|
|
374
|
+
})
|
|
375
|
+
})]
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
var getNonTextChildren = function getNonTextChildren2(children) {
|
|
379
|
+
var _Children_map;
|
|
380
|
+
return (_Children_map = import_react.Children.map(children, function (x) {
|
|
381
|
+
if (typeof x === "string") return null;
|
|
382
|
+
if ((x === null || x === void 0 ? void 0 : x.type) === code) return null;
|
|
383
|
+
return x;
|
|
384
|
+
})) === null || _Children_map === void 0 ? void 0 : _Children_map.flat();
|
|
385
|
+
};
|
|
386
|
+
//# sourceMappingURL=mdxComponents.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","mdxComponents_exports","__export","TableHighlight","mdxComponents","module","exports","import_jsx_runtime","require","import_components","import_theme","import_router","import_react","import_tamagui","import_ExternalIcon","import_Hr","import_icons","import_Li","import_MdxCodeBlock","import_Table","import_Ul","code","code2","param","hero","_hero","line","scrollable","_scrollable","className","children","id","_id","showLineNumbers","collapsible","_collapsible","props","jsx","CodeInline","unwrapText","YStack","marginTop","MDXCodeBlock","isHighlightingLines","styled","name","backgroundColor","fullscreen","MdxBlockquote","knobProps","useResolvedKnobs","marginVertical","paddingHorizontal","panelPadding","padding","isWeb","style","marginInlineStart","borderInlineStartWidth","borderInlineStartStyle","borderStartWidth","borderColor","justifyContent","Paragraph","whiteSpace","size","lineHeight","fontWeight","color","opacity","h1","H1","fontFamily","width","position","marginBottom","h2","H2","h3","jsxs","LinkHeading","H3","maxWidth","getNonTextChildren","h4","H4","h5","H5","h6","H6","p","render","display","a","href","Link","fontSize","cursor","focusVisibleStyle","outlineColor","outlineWidth","outlineStyle","outlineOffset","startsWith","Fragment","Text","y","marginLeft","ExternalIcon","hr","HR"],"sources":["../../src/mdxComponents.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAA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@@ -0,0 +1,110 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var MermaidBlock_exports = {};
|
|
24
|
+
__export(MermaidBlock_exports, {
|
|
25
|
+
MermaidBlock: () => MermaidBlock
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(MermaidBlock_exports);
|
|
28
|
+
var import_react = require("react");
|
|
29
|
+
var import_tamagui = require("tamagui");
|
|
30
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
31
|
+
var import_colorRamps = require("../shared/colorRamps.cjs");
|
|
32
|
+
var import_components = require("../components/index.cjs");
|
|
33
|
+
var import_mountDiagramSvg = require("./mountDiagramSvg.cjs");
|
|
34
|
+
var import_renderMermaidDiagram = require("./renderMermaidDiagram.cjs");
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
function MermaidBlock({
|
|
37
|
+
children
|
|
38
|
+
}) {
|
|
39
|
+
const {
|
|
40
|
+
knobProps
|
|
41
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
42
|
+
const themeName = (0, import_tamagui.useThemeName)();
|
|
43
|
+
const scheme = String(themeName).startsWith("dark") ? "dark" : "light";
|
|
44
|
+
const [state, setState] = (0, import_react.useState)({
|
|
45
|
+
status: "loading"
|
|
46
|
+
});
|
|
47
|
+
const svgHostRef = (0, import_react.useRef)(null);
|
|
48
|
+
(0, import_react.useEffect)(() => {
|
|
49
|
+
let cancelled = false;
|
|
50
|
+
setState({
|
|
51
|
+
status: "loading"
|
|
52
|
+
});
|
|
53
|
+
(0, import_renderMermaidDiagram.renderMermaidDiagram)(children, {
|
|
54
|
+
scheme
|
|
55
|
+
}).then(result => {
|
|
56
|
+
if (cancelled) return;
|
|
57
|
+
setState(result.ok ? {
|
|
58
|
+
status: "ok",
|
|
59
|
+
svg: result.svg
|
|
60
|
+
} : {
|
|
61
|
+
status: "error",
|
|
62
|
+
error: result.error
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
return () => {
|
|
66
|
+
cancelled = true;
|
|
67
|
+
};
|
|
68
|
+
}, [children, scheme]);
|
|
69
|
+
(0, import_react.useEffect)(() => {
|
|
70
|
+
if (state.status !== "ok" || !svgHostRef.current) return;
|
|
71
|
+
(0, import_mountDiagramSvg.mountDiagramSvg)(svgHostRef.current, state.svg);
|
|
72
|
+
}, [state]);
|
|
73
|
+
if (state.status === "ok") {
|
|
74
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
|
|
75
|
+
...(knobProps.borderRadiusOuter ?? {
|
|
76
|
+
borderRadius: "$4"
|
|
77
|
+
}),
|
|
78
|
+
backgroundColor: import_colorRamps.markdownCodeColors.background.base,
|
|
79
|
+
borderWidth: 1,
|
|
80
|
+
borderColor: import_colorRamps.markdownCodeColors.border.base,
|
|
81
|
+
paddingHorizontal: 16,
|
|
82
|
+
paddingVertical: 12,
|
|
83
|
+
marginVertical: "$2",
|
|
84
|
+
overflow: "hidden",
|
|
85
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
|
|
86
|
+
ref: svgHostRef,
|
|
87
|
+
role: "img",
|
|
88
|
+
"aria-label": "Mermaid diagram",
|
|
89
|
+
"data-mermaid-diagram": "true",
|
|
90
|
+
style: {
|
|
91
|
+
display: "flex",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
overflowX: "auto"
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.View, {
|
|
99
|
+
children: [state.status === "error" ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
100
|
+
color: "$red11",
|
|
101
|
+
fontSize: 13,
|
|
102
|
+
marginTop: "$2",
|
|
103
|
+
role: "alert",
|
|
104
|
+
children: `Mermaid: ${state.error}`
|
|
105
|
+
}) : null, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.CodeBlock, {
|
|
106
|
+
lang: "mermaid",
|
|
107
|
+
children
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var MermaidBlock_native_exports = {};
|
|
26
|
+
__export(MermaidBlock_native_exports, {
|
|
27
|
+
MermaidBlock: () => MermaidBlock
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(MermaidBlock_native_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_components = require("../components/index.native.js");
|
|
32
|
+
function MermaidBlock(param) {
|
|
33
|
+
var {
|
|
34
|
+
children
|
|
35
|
+
} = param;
|
|
36
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.CodeBlock, {
|
|
37
|
+
lang: "mermaid",
|
|
38
|
+
children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=MermaidBlock.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MermaidBlock_native_exports","__export","MermaidBlock","module","exports","__toCommonJS","import_jsx_runtime","require","import_components","param","children","jsx","CodeBlock","lang"],"sources":["../../../src/mermaid/MermaidBlock.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,2BAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAIxB,IAAAC,iBAAA,GAA0BD,OAAA;AACO,SAASL,aAAaO,KAAA,EAAO;EAC9D,IAAI;IAAEC;EAAS,IAAID,KAAA;EACnB,OAAqB,mBAAAH,kBAAA,CAAAK,GAAA,EAAKH,iBAAA,CAAAI,SAAA,EAAW;IACjCC,IAAA,EAAM;IACNH;EACJ,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var mermaid_exports = {};
|
|
24
|
+
__export(mermaid_exports, {
|
|
25
|
+
mountDiagramSvg: () => import_mountDiagramSvg.mountDiagramSvg,
|
|
26
|
+
renderMermaidDiagram: () => import_renderMermaidDiagram.renderMermaidDiagram,
|
|
27
|
+
resetMermaidForTesting: () => import_renderMermaidDiagram.resetMermaidForTesting
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(mermaid_exports);
|
|
30
|
+
var import_mountDiagramSvg = require("./mountDiagramSvg.cjs");
|
|
31
|
+
var import_renderMermaidDiagram = require("./renderMermaidDiagram.cjs");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var mermaid_exports = {};
|
|
26
|
+
__export(mermaid_exports, {
|
|
27
|
+
mountDiagramSvg: () => import_mountDiagramSvg.mountDiagramSvg,
|
|
28
|
+
renderMermaidDiagram: () => import_renderMermaidDiagram.renderMermaidDiagram,
|
|
29
|
+
resetMermaidForTesting: () => import_renderMermaidDiagram.resetMermaidForTesting
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(mermaid_exports);
|
|
32
|
+
var import_mountDiagramSvg = require("./mountDiagramSvg.native.js");
|
|
33
|
+
var import_renderMermaidDiagram = require("./renderMermaidDiagram.native.js");
|
|
34
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","mermaid_exports","__export","mountDiagramSvg","import_mountDiagramSvg","renderMermaidDiagram","import_renderMermaidDiagram","resetMermaidForTesting","module","exports","require"],"sources":["../../../src/mermaid/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAC,sBAAA,CAAAD,eAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAC,2BAAA,CAAAD,oBAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAD,2BAAA,CAAAC;AAAA;AAgBAC,MAAA,CAAAC,OAAA,GAAAb,YAAgC,CAAAK,eAAA;AAChC,IAAAG,sBAAA,GAAAM,OAKO","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var mountDiagramSvg_exports = {};
|
|
24
|
+
__export(mountDiagramSvg_exports, {
|
|
25
|
+
mountDiagramSvg: () => mountDiagramSvg
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(mountDiagramSvg_exports);
|
|
28
|
+
const EXECUTABLE_SELECTOR = "script, iframe, object, embed";
|
|
29
|
+
function parseSvgElement(svg) {
|
|
30
|
+
try {
|
|
31
|
+
const xml = new DOMParser().parseFromString(svg, "image/svg+xml");
|
|
32
|
+
const root = xml.documentElement;
|
|
33
|
+
if (root?.tagName.toLowerCase() === "svg" && !xml.querySelector("parsererror")) {
|
|
34
|
+
return root;
|
|
35
|
+
}
|
|
36
|
+
} catch {}
|
|
37
|
+
const html = new DOMParser().parseFromString(svg, "text/html");
|
|
38
|
+
return html.body.querySelector("svg");
|
|
39
|
+
}
|
|
40
|
+
function mountDiagramSvg(container, svg) {
|
|
41
|
+
const root = parseSvgElement(svg);
|
|
42
|
+
if (!root) return false;
|
|
43
|
+
for (const el of Array.from(root.querySelectorAll(EXECUTABLE_SELECTOR))) el.remove();
|
|
44
|
+
for (const el of [root, ...Array.from(root.querySelectorAll("*"))]) {
|
|
45
|
+
for (const attr of Array.from(el.attributes)) {
|
|
46
|
+
const name = attr.name.toLowerCase();
|
|
47
|
+
if (name.startsWith("on") || name === "href" && attr.value.trim().toLowerCase().startsWith("javascript:")) {
|
|
48
|
+
el.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
container.replaceChildren(document.importNode(root, true));
|
|
53
|
+
return true;
|
|
54
|
+
}
|