@jonmilner/ui 0.23.2 → 0.23.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/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/Alert/Alert.css +1 -1
- package/dist/Alert/Alert.css.mjs +3 -3
- package/dist/Avatar/Avatar.css +1 -1
- package/dist/Avatar/Avatar.css.mjs +2 -2
- package/dist/Badge/Badge.css +1 -1
- package/dist/Badge/Badge.css.mjs +2 -2
- package/dist/Box/Box.css +1 -1
- package/dist/Box/Box.css.mjs +2 -2
- package/dist/Button/Button.css +1 -1
- package/dist/Button/Button.css.mjs +2 -2
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Checkbox/Checkbox.css.mjs +2 -2
- package/dist/Chip/Chip.css +1 -1
- package/dist/Chip/Chip.css.mjs +2 -2
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/Clickable/Clickable.css.mjs +2 -2
- package/dist/Code/Code.css +1 -1
- package/dist/Code/Code.css.mjs +2 -2
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/ColorField/ColorField.css.mjs +1 -1
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/Combobox.css.mjs +2 -2
- package/dist/Dialog/Dialog.css +1 -1
- package/dist/Dialog/Dialog.css.mjs +2 -2
- package/dist/Field/Field.css +1 -1
- package/dist/Field/Field.css.mjs +2 -2
- package/dist/Heading/Heading.css +1 -1
- package/dist/Heading/Heading.css.mjs +2 -2
- package/dist/Icon/Icon.css +1 -1
- package/dist/Icon/Icon.css.mjs +2 -2
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/IconButton/IconButton.css.mjs +1 -1
- package/dist/Inline/Inline.css +1 -1
- package/dist/Inline/Inline.css.mjs +2 -2
- package/dist/Markdown/Markdown.css +2 -0
- package/dist/Markdown/Markdown.css.mjs +7 -0
- package/dist/Markdown/index.d.mts +26 -0
- package/dist/Markdown/index.mjs +251 -0
- package/dist/Menu/Menu.css +1 -1
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/MultiSelect/MultiSelect.css.mjs +2 -2
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/NavList.css.mjs +3 -3
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/NumberField/NumberField.css.mjs +2 -2
- package/dist/Popover/Popover.css +1 -1
- package/dist/Popover/Popover.css.mjs +2 -2
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/RadioGroup/RadioGroup.css.mjs +1 -1
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/SearchField.css.mjs +2 -2
- package/dist/Select/Select.css +1 -1
- package/dist/Select/Select.css.mjs +2 -2
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/Sidebar.css.mjs +3 -3
- package/dist/SidebarLayout/SidebarLayout.css +1 -1
- package/dist/SidebarLayout/SidebarLayout.css.mjs +3 -3
- package/dist/Stack/Stack.css +1 -1
- package/dist/Stack/Stack.css.mjs +2 -2
- package/dist/Switch/Switch.css +1 -1
- package/dist/Switch/Switch.css.mjs +2 -2
- package/dist/Table/Table.css +1 -1
- package/dist/Table/Table.css.mjs +3 -3
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tabs/Tabs.css.mjs +2 -2
- package/dist/Tag/Tag.css +1 -1
- package/dist/Tag/Tag.css.mjs +2 -2
- package/dist/Text/Text.css +1 -1
- package/dist/Text/Text.css.mjs +2 -2
- package/dist/TextField/TextField.css +1 -1
- package/dist/TextField/TextField.css.mjs +2 -2
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Textarea/Textarea.css.mjs +2 -2
- package/dist/Toast/Toast.css +1 -1
- package/dist/Toast/Toast.css.mjs +3 -3
- package/dist/Tooltip/Tooltip.css +1 -1
- package/dist/Tooltip/Tooltip.css.mjs +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.css.mjs +2 -2
- package/dist/_virtual/_rolldown/runtime.mjs +19 -0
- package/dist/base.css +1 -1
- package/dist/docs/Markdown.md +86 -0
- package/dist/docs/llms.txt +1 -0
- package/dist/docs/manifest.json +35 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +26 -25
- package/dist/lint/index.mjs +1 -0
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/atoms.css.mjs +2 -2
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/dist/styles/responsive.css.mjs +2 -2
- package/dist/styles/scroll-region.css +1 -1
- package/dist/styles/scroll-region.css.mjs +2 -2
- package/dist/styles/status-message.css +1 -1
- package/dist/styles/status-message.css.mjs +2 -2
- package/dist/vendor/@ungap/structured-clone@1.4.0/esm/deserialize.mjs +69 -0
- package/dist/vendor/@ungap/structured-clone@1.4.0/esm/index.mjs +7 -0
- package/dist/vendor/@ungap/structured-clone@1.4.0/esm/serialize.mjs +93 -0
- package/dist/vendor/LICENSES.md +1896 -0
- package/dist/vendor/bail@2.0.2/index.mjs +5 -0
- package/dist/vendor/ccount@2.0.1/index.mjs +9 -0
- package/dist/vendor/character-entities@2.0.2/index.mjs +2129 -0
- package/dist/vendor/comma-separated-tokens@2.0.3/index.mjs +6 -0
- package/dist/vendor/decode-named-character-reference@1.3.0/index.mjs +7 -0
- package/dist/vendor/devlop@1.1.0/lib/default.mjs +4 -0
- package/dist/vendor/escape-string-regexp@5.0.0/index.mjs +6 -0
- package/dist/vendor/estree-util-is-identifier-name@3.0.0/lib/index.mjs +6 -0
- package/dist/vendor/extend@3.0.2/index.mjs +39 -0
- package/dist/vendor/hast-util-to-jsx-runtime@2.3.6/lib/index.mjs +254 -0
- package/dist/vendor/hast-util-whitespace@3.0.0/lib/index.mjs +9 -0
- package/dist/vendor/html-url-attributes@3.0.1/lib/index.mjs +35 -0
- package/dist/vendor/inline-style-parser@0.2.7/cjs/index.mjs +89 -0
- package/dist/vendor/is-plain-obj@4.1.0/index.mjs +7 -0
- package/dist/vendor/longest-streak@3.1.0/index.mjs +8 -0
- package/dist/vendor/markdown-table@3.0.4/index.mjs +58 -0
- package/dist/vendor/mdast-util-find-and-replace@3.0.4/lib/index.mjs +64 -0
- package/dist/vendor/mdast-util-from-markdown@2.1.0/lib/index.mjs +606 -0
- package/dist/vendor/mdast-util-gfm-autolink-literal@2.0.1/lib/index.mjs +128 -0
- package/dist/vendor/mdast-util-gfm-footnote@2.1.0/lib/index.mjs +96 -0
- package/dist/vendor/mdast-util-gfm-strikethrough@2.0.1/lib/index.mjs +56 -0
- package/dist/vendor/mdast-util-gfm-table@2.0.0/lib/index.mjs +136 -0
- package/dist/vendor/mdast-util-gfm-task-list-item@2.0.0/lib/index.mjs +57 -0
- package/dist/vendor/mdast-util-gfm@3.1.0/lib/index.mjs +25 -0
- package/dist/vendor/mdast-util-phrasing@4.1.0/lib/index.mjs +21 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/footer.mjs +102 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/blockquote.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/break.mjs +14 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/code.mjs +21 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/delete.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/emphasis.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/footnote-reference.mjs +29 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/heading.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/html.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/image-reference.mjs +20 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/image.mjs +14 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/index.mjs +55 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/inline-code.mjs +16 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/link-reference.mjs +17 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/link.mjs +14 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/list-item.mjs +58 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/list.mjs +19 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/paragraph.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/root.mjs +9 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/strong.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/table-cell.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/table-row.mjs +23 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/table.mjs +34 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/text.mjs +10 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/handlers/thematic-break.mjs +11 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/index.mjs +18 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/revert.mjs +19 -0
- package/dist/vendor/mdast-util-to-hast@13.2.1/lib/state.mjs +107 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/blockquote.mjs +11 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/break.mjs +11 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/code.mjs +35 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/definition.mjs +23 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/emphasis.mjs +20 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/heading.mjs +23 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/html.mjs +9 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/image-reference.mjs +24 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/image.mjs +27 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/index.mjs +43 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/inline-code.mjs +20 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/link-reference.mjs +24 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/link.mjs +41 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/list-item.mjs +17 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/list.mjs +25 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/paragraph.mjs +6 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/root.mjs +10 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/strong.mjs +20 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/text.mjs +11 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/handle/thematic-break.mjs +8 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-bullet-ordered.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-bullet-other.mjs +10 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-bullet.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-emphasis.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-fence.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-list-item-indent.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-quote.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-rule-repetition.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-rule.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/check-strong.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/encode-character-reference.mjs +5 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/format-code-as-indented.mjs +5 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/format-heading-as-setext.mjs +10 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/format-link-as-autolink.mjs +7 -0
- package/dist/vendor/mdast-util-to-markdown@2.2.0/lib/util/pattern-in-scope.mjs +11 -0
- package/dist/vendor/mdast-util-to-string@4.0.0/lib/index.mjs +23 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/attention.mjs +117 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/autolink.mjs +42 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/blank-line.mjs +17 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/block-quote.mjs +37 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/character-escape.mjs +16 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/character-reference.mjs +28 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/code-fenced.mjs +76 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/code-indented.mjs +36 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/code-text.mjs +42 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/content.mjs +46 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/definition.mjs +59 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/hard-break-escape.mjs +16 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/heading-atx.mjs +70 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/html-flow.mjs +128 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/html-text.mjs +99 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/label-end.mjs +160 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/label-start-image.mjs +21 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/label-start-link.mjs +18 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/line-ending.mjs +13 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/list.mjs +77 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/partial-non-lazy-continuation.mjs +16 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/setext-underline.mjs +59 -0
- package/dist/vendor/micromark-core-commonmark@2.0.4/lib/thematic-break.mjs +24 -0
- package/dist/vendor/micromark-extension-gfm-autolink-literal@2.1.0/lib/syntax.mjs +173 -0
- package/dist/vendor/micromark-extension-gfm-footnote@2.1.0/lib/syntax.mjs +192 -0
- package/dist/vendor/micromark-extension-gfm-strikethrough@2.1.0/lib/syntax.mjs +95 -0
- package/dist/vendor/micromark-extension-gfm-table@2.1.2/lib/edit-map.mjs +40 -0
- package/dist/vendor/micromark-extension-gfm-table@2.1.2/lib/infer.mjs +19 -0
- package/dist/vendor/micromark-extension-gfm-table@2.1.2/lib/syntax.mjs +200 -0
- package/dist/vendor/micromark-extension-gfm-task-list-item@2.1.0/lib/syntax.mjs +33 -0
- package/dist/vendor/micromark-extension-gfm@3.0.0/index.mjs +17 -0
- package/dist/vendor/micromark-factory-destination@2.0.1/index.mjs +25 -0
- package/dist/vendor/micromark-factory-label@2.0.1/index.mjs +21 -0
- package/dist/vendor/micromark-factory-space@2.1.0/index.mjs +26 -0
- package/dist/vendor/micromark-factory-title@2.0.1/index.mjs +23 -0
- package/dist/vendor/micromark-factory-whitespace@2.0.1/index.mjs +11 -0
- package/dist/vendor/micromark-util-character@2.1.1/index.mjs +23 -0
- package/dist/vendor/micromark-util-chunked@2.0.1/index.mjs +10 -0
- package/dist/vendor/micromark-util-classify-character@2.0.1/index.mjs +7 -0
- package/dist/vendor/micromark-util-combine-extensions@2.0.1/index.mjs +25 -0
- package/dist/vendor/micromark-util-decode-numeric-character-reference@2.0.2/index.mjs +6 -0
- package/dist/vendor/micromark-util-decode-string@2.0.1/index.mjs +16 -0
- package/dist/vendor/micromark-util-edit-map@1.0.0/index.mjs +41 -0
- package/dist/vendor/micromark-util-html-tag-name@2.0.1/index.mjs +8 -0
- package/dist/vendor/micromark-util-normalize-identifier@2.0.1/index.mjs +5 -0
- package/dist/vendor/micromark-util-resolve-all@2.0.1/index.mjs +10 -0
- package/dist/vendor/micromark-util-sanitize-uri@2.0.1/index.mjs +17 -0
- package/dist/vendor/micromark-util-subtokenize@2.1.0/index.mjs +34 -0
- package/dist/vendor/micromark-util-subtokenize@2.1.0/lib/splice-buffer.mjs +58 -0
- package/dist/vendor/micromark@4.0.3/lib/constructs.mjs +79 -0
- package/dist/vendor/micromark@4.0.3/lib/create-tokenizer.mjs +177 -0
- package/dist/vendor/micromark@4.0.3/lib/initialize/content.mjs +27 -0
- package/dist/vendor/micromark@4.0.3/lib/initialize/document.mjs +97 -0
- package/dist/vendor/micromark@4.0.3/lib/initialize/flow.mjs +18 -0
- package/dist/vendor/micromark@4.0.3/lib/initialize/text.mjs +83 -0
- package/dist/vendor/micromark@4.0.3/lib/parse.mjs +28 -0
- package/dist/vendor/micromark@4.0.3/lib/postprocess.mjs +7 -0
- package/dist/vendor/micromark@4.0.3/lib/preprocess.mjs +36 -0
- package/dist/vendor/property-information@7.2.0/index.mjs +25 -0
- package/dist/vendor/property-information@7.2.0/lib/aria.mjs +60 -0
- package/dist/vendor/property-information@7.2.0/lib/find.mjs +30 -0
- package/dist/vendor/property-information@7.2.0/lib/hast-to-react.mjs +21 -0
- package/dist/vendor/property-information@7.2.0/lib/html.mjs +325 -0
- package/dist/vendor/property-information@7.2.0/lib/normalize.mjs +5 -0
- package/dist/vendor/property-information@7.2.0/lib/svg.mjs +563 -0
- package/dist/vendor/property-information@7.2.0/lib/util/case-insensitive-transform.mjs +6 -0
- package/dist/vendor/property-information@7.2.0/lib/util/case-sensitive-transform.mjs +5 -0
- package/dist/vendor/property-information@7.2.0/lib/util/create.mjs +13 -0
- package/dist/vendor/property-information@7.2.0/lib/util/defined-info.mjs +17 -0
- package/dist/vendor/property-information@7.2.0/lib/util/info.mjs +8 -0
- package/dist/vendor/property-information@7.2.0/lib/util/merge.mjs +8 -0
- package/dist/vendor/property-information@7.2.0/lib/util/schema.mjs +8 -0
- package/dist/vendor/property-information@7.2.0/lib/util/types.mjs +15 -0
- package/dist/vendor/property-information@7.2.0/lib/xlink.mjs +18 -0
- package/dist/vendor/property-information@7.2.0/lib/xml.mjs +14 -0
- package/dist/vendor/property-information@7.2.0/lib/xmlns.mjs +13 -0
- package/dist/vendor/react-markdown@10.1.0/lib/index.mjs +139 -0
- package/dist/vendor/remark-gfm@4.0.1/lib/index.mjs +9 -0
- package/dist/vendor/remark-parse@11.0.0/lib/index.mjs +15 -0
- package/dist/vendor/remark-rehype@11.1.2/lib/index.mjs +17 -0
- package/dist/vendor/space-separated-tokens@2.0.2/index.mjs +5 -0
- package/dist/vendor/style-to-js@1.1.21/cjs/index.mjs +18 -0
- package/dist/vendor/style-to-js@1.1.21/cjs/utilities.mjs +17 -0
- package/dist/vendor/style-to-object@1.0.14/cjs/index.mjs +22 -0
- package/dist/vendor/trim-lines@3.0.1/index.mjs +18 -0
- package/dist/vendor/trough@2.2.0/lib/index.mjs +48 -0
- package/dist/vendor/unified@11.0.5/lib/callable-instance.mjs +8 -0
- package/dist/vendor/unified@11.0.5/lib/index.mjs +165 -0
- package/dist/vendor/unist-util-is@6.0.1/lib/index.mjs +46 -0
- package/dist/vendor/unist-util-position@5.0.0/lib/index.mjs +21 -0
- package/dist/vendor/unist-util-stringify-position@4.0.0/lib/index.mjs +14 -0
- package/dist/vendor/unist-util-visit-parents@6.1.0/lib/color.mjs +5 -0
- package/dist/vendor/unist-util-visit-parents@6.1.0/lib/index.mjs +52 -0
- package/dist/vendor/unist-util-visit@5.2.0/lib/index.mjs +19 -0
- package/dist/vendor/vfile-message@4.0.3/lib/index.mjs +23 -0
- package/dist/vendor/vfile@6.0.3/lib/index.mjs +88 -0
- package/dist/vendor/vfile@6.0.3/lib/minpath.browser.mjs +98 -0
- package/dist/vendor/vfile@6.0.3/lib/minproc.browser.mjs +6 -0
- package/dist/vendor/vfile@6.0.3/lib/minurl.browser.mjs +30 -0
- package/dist/vendor/vfile@6.0.3/lib/minurl.shared.mjs +5 -0
- package/package.json +7 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri@2.0.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = typeof t.options.clobberPrefix == "string" ? t.options.clobberPrefix : "user-content-", i = String(n.identifier).toUpperCase(), a = e(i.toLowerCase()), o = t.footnoteOrder.indexOf(i), s, c = t.footnoteCounts.get(i);
|
|
5
|
+
c === void 0 ? (c = 0, t.footnoteOrder.push(i), s = t.footnoteOrder.length) : s = o + 1, c += 1, t.footnoteCounts.set(i, c);
|
|
6
|
+
let l = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "a",
|
|
9
|
+
properties: {
|
|
10
|
+
href: "#" + r + "fn-" + a,
|
|
11
|
+
id: r + "fnref-" + a + (c > 1 ? "-" + c : ""),
|
|
12
|
+
dataFootnoteRef: !0,
|
|
13
|
+
ariaDescribedBy: ["footnote-label"]
|
|
14
|
+
},
|
|
15
|
+
children: [{
|
|
16
|
+
type: "text",
|
|
17
|
+
value: String(s)
|
|
18
|
+
}]
|
|
19
|
+
};
|
|
20
|
+
t.patch(n, l);
|
|
21
|
+
let u = {
|
|
22
|
+
type: "element",
|
|
23
|
+
tagName: "sup",
|
|
24
|
+
properties: {},
|
|
25
|
+
children: [l]
|
|
26
|
+
};
|
|
27
|
+
return t.patch(n, u), t.applyData(n, u);
|
|
28
|
+
}
|
|
29
|
+
export { t as footnoteReference };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "h" + t.depth,
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
export { e as heading };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (e.options.allowDangerousHtml) {
|
|
4
|
+
let n = {
|
|
5
|
+
type: "raw",
|
|
6
|
+
value: t.value
|
|
7
|
+
};
|
|
8
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export { e as html };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri@2.0.1/index.mjs";
|
|
2
|
+
import { revert as t } from "../revert.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = String(r.identifier).toUpperCase(), a = n.definitionById.get(i);
|
|
6
|
+
if (!a) return t(n, r);
|
|
7
|
+
let o = {
|
|
8
|
+
src: e(a.url || ""),
|
|
9
|
+
alt: r.alt
|
|
10
|
+
};
|
|
11
|
+
a.title !== null && a.title !== void 0 && (o.title = a.title);
|
|
12
|
+
let s = {
|
|
13
|
+
type: "element",
|
|
14
|
+
tagName: "img",
|
|
15
|
+
properties: o,
|
|
16
|
+
children: []
|
|
17
|
+
};
|
|
18
|
+
return n.patch(r, s), n.applyData(r, s);
|
|
19
|
+
}
|
|
20
|
+
export { n as imageReference };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri@2.0.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = { src: e(n.url) };
|
|
5
|
+
n.alt !== null && n.alt !== void 0 && (r.alt = n.alt), n.title !== null && n.title !== void 0 && (r.title = n.title);
|
|
6
|
+
let i = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "img",
|
|
9
|
+
properties: r,
|
|
10
|
+
children: []
|
|
11
|
+
};
|
|
12
|
+
return t.patch(n, i), t.applyData(n, i);
|
|
13
|
+
}
|
|
14
|
+
export { t as image };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { blockquote as e } from "./blockquote.mjs";
|
|
2
|
+
import { hardBreak as t } from "./break.mjs";
|
|
3
|
+
import { code as n } from "./code.mjs";
|
|
4
|
+
import { strikethrough as r } from "./delete.mjs";
|
|
5
|
+
import { emphasis as i } from "./emphasis.mjs";
|
|
6
|
+
import { footnoteReference as a } from "./footnote-reference.mjs";
|
|
7
|
+
import { heading as o } from "./heading.mjs";
|
|
8
|
+
import { html as s } from "./html.mjs";
|
|
9
|
+
import { imageReference as c } from "./image-reference.mjs";
|
|
10
|
+
import { image as l } from "./image.mjs";
|
|
11
|
+
import { inlineCode as u } from "./inline-code.mjs";
|
|
12
|
+
import { linkReference as d } from "./link-reference.mjs";
|
|
13
|
+
import { link as f } from "./link.mjs";
|
|
14
|
+
import { listItem as p } from "./list-item.mjs";
|
|
15
|
+
import { list as m } from "./list.mjs";
|
|
16
|
+
import { paragraph as h } from "./paragraph.mjs";
|
|
17
|
+
import { root as g } from "./root.mjs";
|
|
18
|
+
import { strong as _ } from "./strong.mjs";
|
|
19
|
+
import { table as v } from "./table.mjs";
|
|
20
|
+
import { tableRow as y } from "./table-row.mjs";
|
|
21
|
+
import { tableCell as b } from "./table-cell.mjs";
|
|
22
|
+
import { text as x } from "./text.mjs";
|
|
23
|
+
import { thematicBreak as S } from "./thematic-break.mjs";
|
|
24
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
|
|
25
|
+
var C = {
|
|
26
|
+
blockquote: e,
|
|
27
|
+
break: t,
|
|
28
|
+
code: n,
|
|
29
|
+
delete: r,
|
|
30
|
+
emphasis: i,
|
|
31
|
+
footnoteReference: a,
|
|
32
|
+
heading: o,
|
|
33
|
+
html: s,
|
|
34
|
+
imageReference: c,
|
|
35
|
+
image: l,
|
|
36
|
+
inlineCode: u,
|
|
37
|
+
linkReference: d,
|
|
38
|
+
link: f,
|
|
39
|
+
listItem: p,
|
|
40
|
+
list: m,
|
|
41
|
+
paragraph: h,
|
|
42
|
+
root: g,
|
|
43
|
+
strong: _,
|
|
44
|
+
table: v,
|
|
45
|
+
tableCell: b,
|
|
46
|
+
tableRow: y,
|
|
47
|
+
text: x,
|
|
48
|
+
thematicBreak: S,
|
|
49
|
+
toml: w,
|
|
50
|
+
yaml: w,
|
|
51
|
+
definition: w,
|
|
52
|
+
footnoteDefinition: w
|
|
53
|
+
};
|
|
54
|
+
function w() {}
|
|
55
|
+
export { C as handlers };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "text",
|
|
5
|
+
value: t.value.replace(/\r?\n|\r/g, " ")
|
|
6
|
+
};
|
|
7
|
+
e.patch(t, n);
|
|
8
|
+
let r = {
|
|
9
|
+
type: "element",
|
|
10
|
+
tagName: "code",
|
|
11
|
+
properties: {},
|
|
12
|
+
children: [n]
|
|
13
|
+
};
|
|
14
|
+
return e.patch(t, r), e.applyData(t, r);
|
|
15
|
+
}
|
|
16
|
+
export { e as inlineCode };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri@2.0.1/index.mjs";
|
|
2
|
+
import { revert as t } from "../revert.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = String(r.identifier).toUpperCase(), a = n.definitionById.get(i);
|
|
6
|
+
if (!a) return t(n, r);
|
|
7
|
+
let o = { href: e(a.url || "") };
|
|
8
|
+
a.title !== null && a.title !== void 0 && (o.title = a.title);
|
|
9
|
+
let s = {
|
|
10
|
+
type: "element",
|
|
11
|
+
tagName: "a",
|
|
12
|
+
properties: o,
|
|
13
|
+
children: n.all(r)
|
|
14
|
+
};
|
|
15
|
+
return n.patch(r, s), n.applyData(r, s);
|
|
16
|
+
}
|
|
17
|
+
export { n as linkReference };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { normalizeUri as e } from "../../../micromark-util-sanitize-uri@2.0.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = { href: e(n.url) };
|
|
5
|
+
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
|
6
|
+
let i = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "a",
|
|
9
|
+
properties: r,
|
|
10
|
+
children: t.all(n)
|
|
11
|
+
};
|
|
12
|
+
return t.patch(n, i), t.applyData(n, i);
|
|
13
|
+
}
|
|
14
|
+
export { t as link };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
|
|
2
|
+
function e(e, r, i) {
|
|
3
|
+
let a = e.all(r), o = i ? t(i) : n(r), s = {}, c = [];
|
|
4
|
+
if (typeof r.checked == "boolean") {
|
|
5
|
+
let e = a[0], t;
|
|
6
|
+
e && e.type === "element" && e.tagName === "p" ? t = e : (t = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "p",
|
|
9
|
+
properties: {},
|
|
10
|
+
children: []
|
|
11
|
+
}, a.unshift(t)), t.children.length > 0 && t.children.unshift({
|
|
12
|
+
type: "text",
|
|
13
|
+
value: " "
|
|
14
|
+
}), t.children.unshift({
|
|
15
|
+
type: "element",
|
|
16
|
+
tagName: "input",
|
|
17
|
+
properties: {
|
|
18
|
+
type: "checkbox",
|
|
19
|
+
checked: r.checked,
|
|
20
|
+
disabled: !0
|
|
21
|
+
},
|
|
22
|
+
children: []
|
|
23
|
+
}), s.className = ["task-list-item"];
|
|
24
|
+
}
|
|
25
|
+
let l = -1;
|
|
26
|
+
for (; ++l < a.length;) {
|
|
27
|
+
let e = a[l];
|
|
28
|
+
(o || l !== 0 || e.type !== "element" || e.tagName !== "p") && c.push({
|
|
29
|
+
type: "text",
|
|
30
|
+
value: "\n"
|
|
31
|
+
}), e.type === "element" && e.tagName === "p" && !o ? c.push(...e.children) : c.push(e);
|
|
32
|
+
}
|
|
33
|
+
let u = a[a.length - 1];
|
|
34
|
+
u && (o || u.type !== "element" || u.tagName !== "p") && c.push({
|
|
35
|
+
type: "text",
|
|
36
|
+
value: "\n"
|
|
37
|
+
});
|
|
38
|
+
let d = {
|
|
39
|
+
type: "element",
|
|
40
|
+
tagName: "li",
|
|
41
|
+
properties: s,
|
|
42
|
+
children: c
|
|
43
|
+
};
|
|
44
|
+
return e.patch(r, d), e.applyData(r, d);
|
|
45
|
+
}
|
|
46
|
+
function t(e) {
|
|
47
|
+
let t = !1;
|
|
48
|
+
if (e.type === "list") {
|
|
49
|
+
t = e.spread || !1;
|
|
50
|
+
let r = e.children, i = -1;
|
|
51
|
+
for (; !t && ++i < r.length;) t = n(r[i]);
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function n(e) {
|
|
56
|
+
return e.spread ?? e.children.length > 1;
|
|
57
|
+
}
|
|
58
|
+
export { e as listItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {}, r = e.all(t), i = -1;
|
|
4
|
+
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length;) {
|
|
5
|
+
let e = r[i];
|
|
6
|
+
if (e.type === "element" && e.tagName === "li" && e.properties && Array.isArray(e.properties.className) && e.properties.className.includes("task-list-item")) {
|
|
7
|
+
n.className = ["contains-task-list"];
|
|
8
|
+
break;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
let a = {
|
|
12
|
+
type: "element",
|
|
13
|
+
tagName: t.ordered ? "ol" : "ul",
|
|
14
|
+
properties: n,
|
|
15
|
+
children: e.wrap(r, !0)
|
|
16
|
+
};
|
|
17
|
+
return e.patch(t, a), e.applyData(t, a);
|
|
18
|
+
}
|
|
19
|
+
export { e as list };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "p",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
export { e as paragraph };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "strong",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
export { e as strong };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "td",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: e.all(t)
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
export { e as tableCell };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = n ? n.children : void 0, i = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", a = n && n.type === "table" ? n.align : void 0, o = a ? a.length : t.children.length, s = -1, c = [];
|
|
4
|
+
for (; ++s < o;) {
|
|
5
|
+
let n = t.children[s], r = {}, o = a ? a[s] : void 0;
|
|
6
|
+
o && (r.align = o);
|
|
7
|
+
let l = {
|
|
8
|
+
type: "element",
|
|
9
|
+
tagName: i,
|
|
10
|
+
properties: r,
|
|
11
|
+
children: []
|
|
12
|
+
};
|
|
13
|
+
n && (l.children = e.all(n), e.patch(n, l), l = e.applyData(n, l)), c.push(l);
|
|
14
|
+
}
|
|
15
|
+
let l = {
|
|
16
|
+
type: "element",
|
|
17
|
+
tagName: "tr",
|
|
18
|
+
properties: {},
|
|
19
|
+
children: e.wrap(c, !0)
|
|
20
|
+
};
|
|
21
|
+
return e.patch(t, l), e.applyData(t, l);
|
|
22
|
+
}
|
|
23
|
+
export { e as tableRow };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { pointEnd as e, pointStart as t } from "../../../unist-util-position@5.0.0/lib/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
let i = n.all(r), a = i.shift(), o = [];
|
|
5
|
+
if (a) {
|
|
6
|
+
let e = {
|
|
7
|
+
type: "element",
|
|
8
|
+
tagName: "thead",
|
|
9
|
+
properties: {},
|
|
10
|
+
children: n.wrap([a], !0)
|
|
11
|
+
};
|
|
12
|
+
n.patch(r.children[0], e), o.push(e);
|
|
13
|
+
}
|
|
14
|
+
if (i.length > 0) {
|
|
15
|
+
let a = {
|
|
16
|
+
type: "element",
|
|
17
|
+
tagName: "tbody",
|
|
18
|
+
properties: {},
|
|
19
|
+
children: n.wrap(i, !0)
|
|
20
|
+
}, s = t(r.children[1]), c = e(r.children[r.children.length - 1]);
|
|
21
|
+
s && c && (a.position = {
|
|
22
|
+
start: s,
|
|
23
|
+
end: c
|
|
24
|
+
}), o.push(a);
|
|
25
|
+
}
|
|
26
|
+
let s = {
|
|
27
|
+
type: "element",
|
|
28
|
+
tagName: "table",
|
|
29
|
+
properties: {},
|
|
30
|
+
children: n.wrap(o, !0)
|
|
31
|
+
};
|
|
32
|
+
return n.patch(r, s), n.applyData(r, s);
|
|
33
|
+
}
|
|
34
|
+
export { n as table };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { trimLines as e } from "../../../trim-lines@3.0.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = {
|
|
5
|
+
type: "text",
|
|
6
|
+
value: e(String(n.value))
|
|
7
|
+
};
|
|
8
|
+
return t.patch(n, r), t.applyData(n, r);
|
|
9
|
+
}
|
|
10
|
+
export { t as text };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = {
|
|
4
|
+
type: "element",
|
|
5
|
+
tagName: "hr",
|
|
6
|
+
properties: {},
|
|
7
|
+
children: []
|
|
8
|
+
};
|
|
9
|
+
return e.patch(t, n), e.applyData(t, n);
|
|
10
|
+
}
|
|
11
|
+
export { e as thematicBreak };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../devlop@1.1.0/lib/default.mjs";
|
|
2
|
+
import { footer as e } from "./footer.mjs";
|
|
3
|
+
import { createState as t } from "./state.mjs";
|
|
4
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
|
|
5
|
+
function n(n, r) {
|
|
6
|
+
let i = t(n, r), a = i.one(n, void 0), o = e(i), s = Array.isArray(a) ? {
|
|
7
|
+
type: "root",
|
|
8
|
+
children: a
|
|
9
|
+
} : a || {
|
|
10
|
+
type: "root",
|
|
11
|
+
children: []
|
|
12
|
+
};
|
|
13
|
+
return o && ("children" in s, s.children.push({
|
|
14
|
+
type: "text",
|
|
15
|
+
value: "\n"
|
|
16
|
+
}, o)), s;
|
|
17
|
+
}
|
|
18
|
+
export { n as toHast };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = t.referenceType, r = "]";
|
|
4
|
+
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference") return [{
|
|
5
|
+
type: "text",
|
|
6
|
+
value: "![" + t.alt + r
|
|
7
|
+
}];
|
|
8
|
+
let i = e.all(t), a = i[0];
|
|
9
|
+
a && a.type === "text" ? a.value = "[" + a.value : i.unshift({
|
|
10
|
+
type: "text",
|
|
11
|
+
value: "["
|
|
12
|
+
});
|
|
13
|
+
let o = i[i.length - 1];
|
|
14
|
+
return o && o.type === "text" ? o.value += r : i.push({
|
|
15
|
+
type: "text",
|
|
16
|
+
value: r
|
|
17
|
+
}), i;
|
|
18
|
+
}
|
|
19
|
+
export { e as revert };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import e from "../../@ungap/structured-clone@1.4.0/esm/index.mjs";
|
|
2
|
+
import { visit as t } from "../../unist-util-visit@5.2.0/lib/index.mjs";
|
|
3
|
+
import { position as n } from "../../unist-util-position@5.0.0/lib/index.mjs";
|
|
4
|
+
import { handlers as r } from "./handlers/index.mjs";
|
|
5
|
+
// ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
|
|
6
|
+
var i = {}.hasOwnProperty, a = {};
|
|
7
|
+
function o(n, o) {
|
|
8
|
+
let f = o || a, p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), h = {
|
|
9
|
+
all: _,
|
|
10
|
+
applyData: c,
|
|
11
|
+
definitionById: p,
|
|
12
|
+
footnoteById: m,
|
|
13
|
+
footnoteCounts: /* @__PURE__ */ new Map(),
|
|
14
|
+
footnoteOrder: [],
|
|
15
|
+
handlers: {
|
|
16
|
+
...r,
|
|
17
|
+
...f.handlers
|
|
18
|
+
},
|
|
19
|
+
one: g,
|
|
20
|
+
options: f,
|
|
21
|
+
patch: s,
|
|
22
|
+
wrap: u
|
|
23
|
+
};
|
|
24
|
+
return t(n, function(e) {
|
|
25
|
+
if (e.type === "definition" || e.type === "footnoteDefinition") {
|
|
26
|
+
let t = e.type === "definition" ? p : m, n = String(e.identifier).toUpperCase();
|
|
27
|
+
t.has(n) || t.set(n, e);
|
|
28
|
+
}
|
|
29
|
+
}), h;
|
|
30
|
+
function g(t, n) {
|
|
31
|
+
let r = t.type, a = h.handlers[r];
|
|
32
|
+
if (i.call(h.handlers, r) && a) return a(h, t, n);
|
|
33
|
+
if (h.options.passThrough && h.options.passThrough.includes(r)) {
|
|
34
|
+
if ("children" in t) {
|
|
35
|
+
let { children: n, ...r } = t, i = e(r);
|
|
36
|
+
return i.children = h.all(t), i;
|
|
37
|
+
}
|
|
38
|
+
return e(t);
|
|
39
|
+
}
|
|
40
|
+
return (h.options.unknownHandler || l)(h, t, n);
|
|
41
|
+
}
|
|
42
|
+
function _(e) {
|
|
43
|
+
let t = [];
|
|
44
|
+
if ("children" in e) {
|
|
45
|
+
let n = e.children, r = -1;
|
|
46
|
+
for (; ++r < n.length;) {
|
|
47
|
+
let i = h.one(n[r], e);
|
|
48
|
+
if (i) {
|
|
49
|
+
if (r && n[r - 1].type === "break" && (!Array.isArray(i) && i.type === "text" && (i.value = d(i.value)), !Array.isArray(i) && i.type === "element")) {
|
|
50
|
+
let e = i.children[0];
|
|
51
|
+
e && e.type === "text" && (e.value = d(e.value));
|
|
52
|
+
}
|
|
53
|
+
Array.isArray(i) ? t.push(...i) : t.push(i);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function s(e, t) {
|
|
61
|
+
e.position && (t.position = n(e));
|
|
62
|
+
}
|
|
63
|
+
function c(t, n) {
|
|
64
|
+
let r = n;
|
|
65
|
+
if (t && t.data) {
|
|
66
|
+
let n = t.data.hName, i = t.data.hChildren, a = t.data.hProperties;
|
|
67
|
+
typeof n == "string" && (r.type === "element" ? r.tagName = n : r = {
|
|
68
|
+
type: "element",
|
|
69
|
+
tagName: n,
|
|
70
|
+
properties: {},
|
|
71
|
+
children: "children" in r ? r.children : [r]
|
|
72
|
+
}), r.type === "element" && a && Object.assign(r.properties, e(a)), "children" in r && r.children && i != null && (r.children = i);
|
|
73
|
+
}
|
|
74
|
+
return r;
|
|
75
|
+
}
|
|
76
|
+
function l(e, t) {
|
|
77
|
+
let n = t.data || {}, r = "value" in t && !(i.call(n, "hProperties") || i.call(n, "hChildren")) ? {
|
|
78
|
+
type: "text",
|
|
79
|
+
value: t.value
|
|
80
|
+
} : {
|
|
81
|
+
type: "element",
|
|
82
|
+
tagName: "div",
|
|
83
|
+
properties: {},
|
|
84
|
+
children: e.all(t)
|
|
85
|
+
};
|
|
86
|
+
return e.patch(t, r), e.applyData(t, r);
|
|
87
|
+
}
|
|
88
|
+
function u(e, t) {
|
|
89
|
+
let n = [], r = -1;
|
|
90
|
+
for (t && n.push({
|
|
91
|
+
type: "text",
|
|
92
|
+
value: "\n"
|
|
93
|
+
}); ++r < e.length;) r && n.push({
|
|
94
|
+
type: "text",
|
|
95
|
+
value: "\n"
|
|
96
|
+
}), n.push(e[r]);
|
|
97
|
+
return t && e.length > 0 && n.push({
|
|
98
|
+
type: "text",
|
|
99
|
+
value: "\n"
|
|
100
|
+
}), n;
|
|
101
|
+
}
|
|
102
|
+
function d(e) {
|
|
103
|
+
let t = 0, n = e.charCodeAt(t);
|
|
104
|
+
for (; n === 9 || n === 32;) t++, n = e.charCodeAt(t);
|
|
105
|
+
return e.slice(t);
|
|
106
|
+
}
|
|
107
|
+
export { o as createState, u as wrap };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/mdast-util-to-markdown@2.2.0/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
2
|
+
function e(e, n, r, i) {
|
|
3
|
+
let a = r.enter("blockquote"), o = r.createTracker(i);
|
|
4
|
+
o.move("> "), o.shift(2);
|
|
5
|
+
let s = r.indentLines(r.containerFlow(e, o.current()), t);
|
|
6
|
+
return a(), s;
|
|
7
|
+
}
|
|
8
|
+
function t(e, t, n) {
|
|
9
|
+
return ">" + (n ? "" : " ") + e;
|
|
10
|
+
}
|
|
11
|
+
export { e as blockquote };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { patternInScope as e } from "../util/pattern-in-scope.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-markdown@2.2.0/node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
3
|
+
function t(t, n, r, i) {
|
|
4
|
+
let a = -1;
|
|
5
|
+
for (; ++a < r.unsafe.length;) {
|
|
6
|
+
let t = r.unsafe[a];
|
|
7
|
+
if (t.character === "\n" && !t.before && !t.after && e(r.stack, t)) return /[\t ]/.test(i.before) ? "" : " ";
|
|
8
|
+
}
|
|
9
|
+
return "\\\n";
|
|
10
|
+
}
|
|
11
|
+
export { t as hardBreak };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { longestStreak as e } from "../../../longest-streak@3.1.0/index.mjs";
|
|
2
|
+
import { formatCodeAsIndented as t } from "../util/format-code-as-indented.mjs";
|
|
3
|
+
import { checkFence as n } from "../util/check-fence.mjs";
|
|
4
|
+
// ../../node_modules/.pnpm/mdast-util-to-markdown@2.2.0/node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
5
|
+
function r(r, a, o, s) {
|
|
6
|
+
let c = n(o), l = r.value || "";
|
|
7
|
+
if (t(r, o)) {
|
|
8
|
+
let e = o.enter("codeIndented"), t = o.indentLines(l, i);
|
|
9
|
+
return e(), t;
|
|
10
|
+
}
|
|
11
|
+
let u = o.createTracker(s), d = c.repeat(Math.max(e(l, c) + 1, 3)), f = o.enter("codeFenced"), p = c === "`" ? "GraveAccent" : "Tilde", m = u.move(d);
|
|
12
|
+
if (r.lang) {
|
|
13
|
+
let e = o.enter(`codeFencedLang${p}`);
|
|
14
|
+
m += u.move(o.safe(r.lang, {
|
|
15
|
+
before: m,
|
|
16
|
+
after: " ",
|
|
17
|
+
encode: ["`"],
|
|
18
|
+
...u.current()
|
|
19
|
+
})), e();
|
|
20
|
+
}
|
|
21
|
+
if (r.lang && r.meta) {
|
|
22
|
+
let e = o.enter(`codeFencedMeta${p}`);
|
|
23
|
+
m += u.move(" "), m += u.move(o.safe(r.meta, {
|
|
24
|
+
before: m,
|
|
25
|
+
after: "\n",
|
|
26
|
+
encode: ["`"],
|
|
27
|
+
...u.current()
|
|
28
|
+
})), e();
|
|
29
|
+
}
|
|
30
|
+
return m += u.move("\n"), l && (m += u.move(l + "\n")), m += u.move(d), f(), m;
|
|
31
|
+
}
|
|
32
|
+
function i(e, t, n) {
|
|
33
|
+
return (n ? "" : " ") + e;
|
|
34
|
+
}
|
|
35
|
+
export { r as code };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { checkQuote as e } from "../util/check-quote.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/mdast-util-to-markdown@2.2.0/node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
3
|
+
function t(t, n, r, i) {
|
|
4
|
+
let a = e(r), o = a === "\"" ? "Quote" : "Apostrophe", s = r.enter("definition"), c = r.enter("label"), l = r.createTracker(i), u = l.move("[");
|
|
5
|
+
return u += l.move(r.safe(r.associationId(t), {
|
|
6
|
+
before: u,
|
|
7
|
+
after: "]",
|
|
8
|
+
...l.current()
|
|
9
|
+
})), u += l.move("]: "), c(), !t.url || /[\0- \u007F]/.test(t.url) ? (c = r.enter("destinationLiteral"), u += l.move("<"), u += l.move(r.safe(t.url, {
|
|
10
|
+
before: u,
|
|
11
|
+
after: ">",
|
|
12
|
+
...l.current()
|
|
13
|
+
})), u += l.move(">")) : (c = r.enter("destinationRaw"), u += l.move(r.safe(t.url, {
|
|
14
|
+
before: u,
|
|
15
|
+
after: t.title ? " " : "\n",
|
|
16
|
+
...l.current()
|
|
17
|
+
}))), c(), t.title && (c = r.enter(`title${o}`), u += l.move(" " + a), u += l.move(r.safe(t.title, {
|
|
18
|
+
before: u,
|
|
19
|
+
after: a,
|
|
20
|
+
...l.current()
|
|
21
|
+
})), u += l.move(a), c()), s(), u;
|
|
22
|
+
}
|
|
23
|
+
export { t as definition };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { checkEmphasis as e } from "../util/check-emphasis.mjs";
|
|
2
|
+
t.attention = n, t.peek = r;
|
|
3
|
+
function t(e, t, n, r) {
|
|
4
|
+
let i = n.enter("phrasing"), a = n.containerPhrasing({
|
|
5
|
+
type: "root",
|
|
6
|
+
children: [e]
|
|
7
|
+
}, r);
|
|
8
|
+
return i(), a;
|
|
9
|
+
}
|
|
10
|
+
function n(t, n) {
|
|
11
|
+
return {
|
|
12
|
+
construct: "emphasis",
|
|
13
|
+
markers: e(n) === "*" ? ["*", "_"] : ["_", "*"],
|
|
14
|
+
sizes: [1]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function r(e, t, n) {
|
|
18
|
+
return n.options.emphasis || "*";
|
|
19
|
+
}
|
|
20
|
+
export { t as emphasis };
|