@jonmilner/ui 0.23.1 → 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 +2 -2
- package/dist/ColorField/ColorField.css.mjs +1 -1
- package/dist/Combobox/Combobox.css +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/TextField/TextField.css.mjs +2 -2
- package/dist/Textarea/Textarea.css +2 -2
- package/dist/Textarea/Textarea.css.mjs +17 -8
- package/dist/Textarea/client.mjs +52 -0
- package/dist/Textarea/index.d.mts +6 -1
- package/dist/Textarea/index.mjs +54 -34
- 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/Textarea.md +49 -3
- package/dist/docs/llms.txt +2 -1
- package/dist/docs/manifest.json +50 -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/control-inset.mjs +7 -0
- 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,139 @@
|
|
|
1
|
+
import "../../devlop@1.1.0/lib/default.mjs";
|
|
2
|
+
import { toJsxRuntime as e } from "../../hast-util-to-jsx-runtime@2.3.6/lib/index.mjs";
|
|
3
|
+
import { urlAttributes as t } from "../../html-url-attributes@3.0.1/lib/index.mjs";
|
|
4
|
+
import n from "../../remark-parse@11.0.0/lib/index.mjs";
|
|
5
|
+
import r from "../../remark-rehype@11.1.2/lib/index.mjs";
|
|
6
|
+
import { unified as i } from "../../unified@11.0.5/lib/index.mjs";
|
|
7
|
+
import { visit as a } from "../../unist-util-visit@5.2.0/lib/index.mjs";
|
|
8
|
+
import { VFile as o } from "../../vfile@6.0.3/lib/index.mjs";
|
|
9
|
+
import "react";
|
|
10
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
11
|
+
// ../../node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.3.0_react@19.3.1_supports-color@7.2.0/node_modules/react-markdown/lib/index.js
|
|
12
|
+
var u = [], d = { allowDangerousHtml: !0 }, f = /^(https?|ircs?|mailto|xmpp)$/i, p = [
|
|
13
|
+
{
|
|
14
|
+
from: "astPlugins",
|
|
15
|
+
id: "remove-buggy-html-in-markdown-parser"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
from: "allowDangerousHtml",
|
|
19
|
+
id: "remove-buggy-html-in-markdown-parser"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
from: "allowNode",
|
|
23
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
24
|
+
to: "allowElement"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
from: "allowedTypes",
|
|
28
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
29
|
+
to: "allowedElements"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
from: "className",
|
|
33
|
+
id: "remove-classname"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
from: "disallowedTypes",
|
|
37
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
38
|
+
to: "disallowedElements"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
from: "escapeHtml",
|
|
42
|
+
id: "remove-buggy-html-in-markdown-parser"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
from: "includeElementIndex",
|
|
46
|
+
id: "#remove-includeelementindex"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
from: "includeNodeIndex",
|
|
50
|
+
id: "change-includenodeindex-to-includeelementindex"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
from: "linkTarget",
|
|
54
|
+
id: "remove-linktarget"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
from: "plugins",
|
|
58
|
+
id: "change-plugins-to-remarkplugins",
|
|
59
|
+
to: "remarkPlugins"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
from: "rawSourcePos",
|
|
63
|
+
id: "#remove-rawsourcepos"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
from: "renderers",
|
|
67
|
+
id: "change-renderers-to-components",
|
|
68
|
+
to: "components"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
from: "source",
|
|
72
|
+
id: "change-source-to-children",
|
|
73
|
+
to: "children"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
from: "sourcePos",
|
|
77
|
+
id: "#remove-sourcepos"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
from: "transformImageUri",
|
|
81
|
+
id: "#add-urltransform",
|
|
82
|
+
to: "urlTransform"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
from: "transformLinkUri",
|
|
86
|
+
id: "#add-urltransform",
|
|
87
|
+
to: "urlTransform"
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
function m(e) {
|
|
91
|
+
let t = h(e), n = g(e);
|
|
92
|
+
return _(t.runSync(t.parse(n), n), e);
|
|
93
|
+
}
|
|
94
|
+
function h(e) {
|
|
95
|
+
let t = e.rehypePlugins || u, a = e.remarkPlugins || u, o = e.remarkRehypeOptions ? {
|
|
96
|
+
...e.remarkRehypeOptions,
|
|
97
|
+
...d
|
|
98
|
+
} : d;
|
|
99
|
+
return i().use(n).use(a).use(r, o).use(t);
|
|
100
|
+
}
|
|
101
|
+
function g(e) {
|
|
102
|
+
let t = e.children || "", n = new o();
|
|
103
|
+
return typeof t == "string" ? n.value = t : "" + t, n;
|
|
104
|
+
}
|
|
105
|
+
function _(n, r) {
|
|
106
|
+
let i = r.allowedElements, o = r.allowElement, u = r.components, d = r.disallowedElements, f = r.skipHtml, m = r.unwrapDisallowed, h = r.urlTransform || v;
|
|
107
|
+
for (let e of p) Object.hasOwn(r, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
|
|
108
|
+
return a(n, g), e(n, {
|
|
109
|
+
Fragment: s,
|
|
110
|
+
components: u,
|
|
111
|
+
ignoreInvalidStyle: !0,
|
|
112
|
+
jsx: c,
|
|
113
|
+
jsxs: l,
|
|
114
|
+
passKeys: !0,
|
|
115
|
+
passNode: !0
|
|
116
|
+
});
|
|
117
|
+
function g(e, n, r) {
|
|
118
|
+
if (e.type === "raw" && r && typeof n == "number") return f ? r.children.splice(n, 1) : r.children[n] = {
|
|
119
|
+
type: "text",
|
|
120
|
+
value: e.value
|
|
121
|
+
}, n;
|
|
122
|
+
if (e.type === "element") {
|
|
123
|
+
let n;
|
|
124
|
+
for (n in t) if (Object.hasOwn(t, n) && Object.hasOwn(e.properties, n)) {
|
|
125
|
+
let r = e.properties[n], i = t[n];
|
|
126
|
+
(i === null || i.includes(e.tagName)) && (e.properties[n] = h(String(r || ""), n, e));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (e.type === "element") {
|
|
130
|
+
let t = i ? !i.includes(e.tagName) : d ? d.includes(e.tagName) : !1;
|
|
131
|
+
if (!t && o && typeof n == "number" && (t = !o(e, n, r)), t && r && typeof n == "number") return m && e.children ? r.children.splice(n, 1, ...e.children) : r.children.splice(n, 1), n;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function v(e) {
|
|
136
|
+
let t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
137
|
+
return t === -1 || i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || f.test(e.slice(0, t)) ? e : "";
|
|
138
|
+
}
|
|
139
|
+
export { m as Markdown, v as defaultUrlTransform };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { gfmFromMarkdown as e, gfmToMarkdown as t } from "../../mdast-util-gfm@3.1.0/lib/index.mjs";
|
|
2
|
+
import { gfm as n } from "../../micromark-extension-gfm@3.0.0/index.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/remark-gfm@4.0.1_supports-color@7.2.0/node_modules/remark-gfm/lib/index.js
|
|
4
|
+
var r = {};
|
|
5
|
+
function i(i) {
|
|
6
|
+
let a = this, o = i || r, s = a.data(), c = s.micromarkExtensions ||= [], l = s.fromMarkdownExtensions ||= [], u = s.toMarkdownExtensions ||= [];
|
|
7
|
+
c.push(n(o)), l.push(e()), u.push(t(o));
|
|
8
|
+
}
|
|
9
|
+
export { i as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { fromMarkdown as e } from "../../mdast-util-from-markdown@2.1.0/lib/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/remark-parse@11.0.0_supports-color@7.2.0/node_modules/remark-parse/lib/index.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = this;
|
|
5
|
+
n.parser = r;
|
|
6
|
+
function r(r) {
|
|
7
|
+
return e(r, {
|
|
8
|
+
...n.data("settings"),
|
|
9
|
+
...t,
|
|
10
|
+
extensions: n.data("micromarkExtensions") || [],
|
|
11
|
+
mdastExtensions: n.data("fromMarkdownExtensions") || []
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export { t as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { toHast as e } from "../../mdast-util-to-hast@13.2.1/lib/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
return t && "run" in t ? async function(r, i) {
|
|
5
|
+
let a = e(r, {
|
|
6
|
+
file: i,
|
|
7
|
+
...n
|
|
8
|
+
});
|
|
9
|
+
await t.run(a, i);
|
|
10
|
+
} : function(r, i) {
|
|
11
|
+
return e(r, {
|
|
12
|
+
file: i,
|
|
13
|
+
...t || n
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export { t as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_cjs as t } from "../../style-to-object@1.0.14/cjs/index.mjs";
|
|
3
|
+
import { require_utilities as n } from "./utilities.mjs";
|
|
4
|
+
// ../../node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e, r, i) => {
|
|
6
|
+
var a = (i && i.__importDefault || function(e) {
|
|
7
|
+
return e && e.__esModule ? e : { default: e };
|
|
8
|
+
})(t()), o = n();
|
|
9
|
+
function s(e, t) {
|
|
10
|
+
var n = {};
|
|
11
|
+
return !e || typeof e != "string" || (0, a.default)(e, function(e, r) {
|
|
12
|
+
e && r && (n[(0, o.camelCase)(e, t)] = r);
|
|
13
|
+
}), n;
|
|
14
|
+
}
|
|
15
|
+
s.default = s, r.exports = s;
|
|
16
|
+
}));
|
|
17
|
+
export default r();
|
|
18
|
+
export { r as require_cjs };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
5
|
+
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
6
|
+
return !e || r.test(e) || t.test(e);
|
|
7
|
+
}, s = function(e, t) {
|
|
8
|
+
return t.toUpperCase();
|
|
9
|
+
}, c = function(e, t) {
|
|
10
|
+
return `${t}-`;
|
|
11
|
+
};
|
|
12
|
+
e.camelCase = function(e, t) {
|
|
13
|
+
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
14
|
+
};
|
|
15
|
+
}));
|
|
16
|
+
export default t();
|
|
17
|
+
export { t as require_utilities };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_cjs as t } from "../../inline-style-parser@0.2.7/cjs/index.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js
|
|
4
|
+
var n = /* @__PURE__ */ e(((e, n, r) => {
|
|
5
|
+
var i = r && r.__importDefault || function(e) {
|
|
6
|
+
return e && e.__esModule ? e : { default: e };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
9
|
+
var a = i(t());
|
|
10
|
+
function o(e, t) {
|
|
11
|
+
let n = null;
|
|
12
|
+
if (!e || typeof e != "string") return n;
|
|
13
|
+
let r = (0, a.default)(e), i = typeof t == "function";
|
|
14
|
+
return r.forEach((e) => {
|
|
15
|
+
if (e.type !== "declaration") return;
|
|
16
|
+
let { property: r, value: a } = e;
|
|
17
|
+
i ? t(r, a, e) : a && (n ||= {}, n[r] = a);
|
|
18
|
+
}), n;
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
export default n();
|
|
22
|
+
export { n as require_cjs };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
let n = String(e), r = /\r?\n|\r/g, i = r.exec(n), a = 0, o = [];
|
|
3
|
+
for (; i;) o.push(t(n.slice(a, i.index), a > 0, !0), i[0]), a = i.index + i[0].length, i = r.exec(n);
|
|
4
|
+
return o.push(t(n.slice(a), a > 0, !1)), o.join("");
|
|
5
|
+
}
|
|
6
|
+
function t(e, t, n) {
|
|
7
|
+
let r = 0, i = e.length;
|
|
8
|
+
if (t) {
|
|
9
|
+
let t = e.codePointAt(r);
|
|
10
|
+
for (; t === 9 || t === 32;) r++, t = e.codePointAt(r);
|
|
11
|
+
}
|
|
12
|
+
if (n) {
|
|
13
|
+
let t = e.codePointAt(i - 1);
|
|
14
|
+
for (; t === 9 || t === 32;) i--, t = e.codePointAt(i - 1);
|
|
15
|
+
}
|
|
16
|
+
return i > r ? e.slice(r, i) : "";
|
|
17
|
+
}
|
|
18
|
+
export { e as trimLines };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.js
|
|
2
|
+
function e() {
|
|
3
|
+
let e = [], n = {
|
|
4
|
+
run: r,
|
|
5
|
+
use: i
|
|
6
|
+
};
|
|
7
|
+
return n;
|
|
8
|
+
function r(...n) {
|
|
9
|
+
let r = -1, i = n.pop();
|
|
10
|
+
if (typeof i != "function") throw TypeError("Expected function as last argument, not " + i);
|
|
11
|
+
a(null, ...n);
|
|
12
|
+
function a(o, ...s) {
|
|
13
|
+
let c = e[++r], l = -1;
|
|
14
|
+
if (o) i(o);
|
|
15
|
+
else {
|
|
16
|
+
for (; ++l < n.length;) (s[l] === null || s[l] === void 0) && (s[l] = n[l]);
|
|
17
|
+
n = s, c ? t(c, a)(...s) : i(null, ...s);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function i(t) {
|
|
22
|
+
if (typeof t != "function") throw TypeError("Expected `middelware` to be a function, not " + t);
|
|
23
|
+
return e.push(t), n;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function t(e, t) {
|
|
27
|
+
let n;
|
|
28
|
+
return r;
|
|
29
|
+
function r(...t) {
|
|
30
|
+
let r = e.length > t.length, o;
|
|
31
|
+
r && t.push(i);
|
|
32
|
+
try {
|
|
33
|
+
o = e.apply(this, t);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
let t = e;
|
|
36
|
+
if (r && n) throw t;
|
|
37
|
+
return i(t);
|
|
38
|
+
}
|
|
39
|
+
r || (o && o.then && typeof o.then == "function" ? o.then(a, i) : o instanceof Error ? i(o) : a(o));
|
|
40
|
+
}
|
|
41
|
+
function i(e, ...r) {
|
|
42
|
+
n || (n = !0, t(e, ...r));
|
|
43
|
+
}
|
|
44
|
+
function a(e) {
|
|
45
|
+
i(null, e);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export { e as trough, t as wrap };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.js
|
|
2
|
+
var e = (function(e) {
|
|
3
|
+
let t = this.constructor.prototype, n = t[e], r = function() {
|
|
4
|
+
return n.apply(r, arguments);
|
|
5
|
+
};
|
|
6
|
+
return Object.setPrototypeOf(r, t), r;
|
|
7
|
+
});
|
|
8
|
+
export { e as CallableInstance };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { bail as t } from "../../bail@2.0.2/index.mjs";
|
|
3
|
+
import { require_extend as n } from "../../extend@3.0.2/index.mjs";
|
|
4
|
+
import "../../devlop@1.1.0/lib/default.mjs";
|
|
5
|
+
import r from "../../is-plain-obj@4.1.0/index.mjs";
|
|
6
|
+
import { trough as i } from "../../trough@2.2.0/lib/index.mjs";
|
|
7
|
+
import { VFile as a } from "../../vfile@6.0.3/lib/index.mjs";
|
|
8
|
+
import { CallableInstance as o } from "./callable-instance.mjs";
|
|
9
|
+
// ../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js
|
|
10
|
+
var s = /* @__PURE__ */ e(n(), 1), c = {}.hasOwnProperty, l = class e extends o {
|
|
11
|
+
constructor() {
|
|
12
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = i();
|
|
13
|
+
}
|
|
14
|
+
copy() {
|
|
15
|
+
let t = new e(), n = -1;
|
|
16
|
+
for (; ++n < this.attachers.length;) {
|
|
17
|
+
let e = this.attachers[n];
|
|
18
|
+
t.use(...e);
|
|
19
|
+
}
|
|
20
|
+
return t.data((0, s.default)(!0, {}, this.namespace)), t;
|
|
21
|
+
}
|
|
22
|
+
data(e, t) {
|
|
23
|
+
return typeof e == "string" ? arguments.length === 2 ? (p("data", this.frozen), this.namespace[e] = t, this) : c.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (p("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
24
|
+
}
|
|
25
|
+
freeze() {
|
|
26
|
+
if (this.frozen) return this;
|
|
27
|
+
let e = this;
|
|
28
|
+
for (; ++this.freezeIndex < this.attachers.length;) {
|
|
29
|
+
let [t, ...n] = this.attachers[this.freezeIndex];
|
|
30
|
+
if (n[0] === !1) continue;
|
|
31
|
+
n[0] === !0 && (n[0] = void 0);
|
|
32
|
+
let r = t.call(e, ...n);
|
|
33
|
+
typeof r == "function" && this.transformers.use(r);
|
|
34
|
+
}
|
|
35
|
+
return this.frozen = !0, this.freezeIndex = Infinity, this;
|
|
36
|
+
}
|
|
37
|
+
parse(e) {
|
|
38
|
+
this.freeze();
|
|
39
|
+
let t = g(e), n = this.parser || this.Parser;
|
|
40
|
+
return d("parse", n), n(String(t), t);
|
|
41
|
+
}
|
|
42
|
+
process(e, t) {
|
|
43
|
+
let n = this;
|
|
44
|
+
return this.freeze(), d("process", this.parser || this.Parser), f("process", this.compiler || this.Compiler), t ? r(void 0, t) : new Promise(r);
|
|
45
|
+
function r(r, i) {
|
|
46
|
+
let a = g(e), o = n.parse(a);
|
|
47
|
+
n.run(o, a, function(e, t, r) {
|
|
48
|
+
if (e || !t || !r) return s(e);
|
|
49
|
+
let i = t, a = n.stringify(i, r);
|
|
50
|
+
v(a) ? r.value = a : r.result = a, s(e, r);
|
|
51
|
+
});
|
|
52
|
+
function s(e, n) {
|
|
53
|
+
e || !n ? i(e) : r ? r(n) : t(void 0, n);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
processSync(e) {
|
|
58
|
+
let n = !1, r;
|
|
59
|
+
return this.freeze(), d("processSync", this.parser || this.Parser), f("processSync", this.compiler || this.Compiler), this.process(e, i), h("processSync", "process", n), r;
|
|
60
|
+
function i(e, i) {
|
|
61
|
+
n = !0, t(e), r = i;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
run(e, t, n) {
|
|
65
|
+
m(e), this.freeze();
|
|
66
|
+
let r = this.transformers;
|
|
67
|
+
return !n && typeof t == "function" && (n = t, t = void 0), n ? i(void 0, n) : new Promise(i);
|
|
68
|
+
function i(i, a) {
|
|
69
|
+
let o = g(t);
|
|
70
|
+
r.run(e, o, s);
|
|
71
|
+
function s(t, r, o) {
|
|
72
|
+
let s = r || e;
|
|
73
|
+
t ? a(t) : i ? i(s) : n(void 0, s, o);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
runSync(e, n) {
|
|
78
|
+
let r = !1, i;
|
|
79
|
+
return this.run(e, n, a), h("runSync", "run", r), i;
|
|
80
|
+
function a(e, n) {
|
|
81
|
+
t(e), i = n, r = !0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
stringify(e, t) {
|
|
85
|
+
this.freeze();
|
|
86
|
+
let n = g(t), r = this.compiler || this.Compiler;
|
|
87
|
+
return f("stringify", r), m(e), r(e, n);
|
|
88
|
+
}
|
|
89
|
+
use(e, ...t) {
|
|
90
|
+
let n = this.attachers, i = this.namespace;
|
|
91
|
+
if (p("use", this.frozen), e != null) {
|
|
92
|
+
if (typeof e == "function") l(e, t);
|
|
93
|
+
else if (typeof e == "object") Array.isArray(e) ? c(e) : o(e);
|
|
94
|
+
else throw TypeError("Expected usable value, not `" + e + "`");
|
|
95
|
+
}
|
|
96
|
+
return this;
|
|
97
|
+
function a(e) {
|
|
98
|
+
if (typeof e == "function") l(e, []);
|
|
99
|
+
else if (typeof e == "object") {
|
|
100
|
+
if (Array.isArray(e)) {
|
|
101
|
+
let [t, ...n] = e;
|
|
102
|
+
l(t, n);
|
|
103
|
+
} else o(e);
|
|
104
|
+
} else throw TypeError("Expected usable value, not `" + e + "`");
|
|
105
|
+
}
|
|
106
|
+
function o(e) {
|
|
107
|
+
if (!("plugins" in e) && !("settings" in e)) throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
|
|
108
|
+
c(e.plugins), e.settings && (i.settings = (0, s.default)(!0, i.settings, e.settings));
|
|
109
|
+
}
|
|
110
|
+
function c(e) {
|
|
111
|
+
let t = -1;
|
|
112
|
+
if (e != null) {
|
|
113
|
+
if (Array.isArray(e)) for (; ++t < e.length;) {
|
|
114
|
+
let n = e[t];
|
|
115
|
+
a(n);
|
|
116
|
+
}
|
|
117
|
+
else throw TypeError("Expected a list of plugins, not `" + e + "`");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function l(e, t) {
|
|
121
|
+
let i = -1, a = -1;
|
|
122
|
+
for (; ++i < n.length;) if (n[i][0] === e) {
|
|
123
|
+
a = i;
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
if (a === -1) n.push([e, ...t]);
|
|
127
|
+
else if (t.length > 0) {
|
|
128
|
+
let [i, ...o] = t, c = n[a][1];
|
|
129
|
+
r(c) && r(i) && (i = (0, s.default)(!0, c, i)), n[a] = [
|
|
130
|
+
e,
|
|
131
|
+
i,
|
|
132
|
+
...o
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, u = new l().freeze();
|
|
138
|
+
function d(e, t) {
|
|
139
|
+
if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `parser`");
|
|
140
|
+
}
|
|
141
|
+
function f(e, t) {
|
|
142
|
+
if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `compiler`");
|
|
143
|
+
}
|
|
144
|
+
function p(e, t) {
|
|
145
|
+
if (t) throw Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
|
|
146
|
+
}
|
|
147
|
+
function m(e) {
|
|
148
|
+
if (!r(e) || typeof e.type != "string") throw TypeError("Expected node, got `" + e + "`");
|
|
149
|
+
}
|
|
150
|
+
function h(e, t, n) {
|
|
151
|
+
if (!n) throw Error("`" + e + "` finished async. Use `" + t + "` instead");
|
|
152
|
+
}
|
|
153
|
+
function g(e) {
|
|
154
|
+
return _(e) ? e : new a(e);
|
|
155
|
+
}
|
|
156
|
+
function _(e) {
|
|
157
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
158
|
+
}
|
|
159
|
+
function v(e) {
|
|
160
|
+
return typeof e == "string" || y(e);
|
|
161
|
+
}
|
|
162
|
+
function y(e) {
|
|
163
|
+
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
164
|
+
}
|
|
165
|
+
export { l as Processor, u as unified };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
|
|
2
|
+
var e = (function(e) {
|
|
3
|
+
if (e == null) return a;
|
|
4
|
+
if (typeof e == "function") return i(e);
|
|
5
|
+
if (typeof e == "object") return Array.isArray(e) ? t(e) : n(e);
|
|
6
|
+
if (typeof e == "string") return r(e);
|
|
7
|
+
throw Error("Expected function, string, or object as test");
|
|
8
|
+
});
|
|
9
|
+
function t(t) {
|
|
10
|
+
let n = [], r = -1;
|
|
11
|
+
for (; ++r < t.length;) n[r] = e(t[r]);
|
|
12
|
+
return i(a);
|
|
13
|
+
function a(...e) {
|
|
14
|
+
let t = -1;
|
|
15
|
+
for (; ++t < n.length;) if (n[t].apply(this, e)) return !0;
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function n(e) {
|
|
20
|
+
let t = e;
|
|
21
|
+
return i(n);
|
|
22
|
+
function n(n) {
|
|
23
|
+
let r = n, i;
|
|
24
|
+
for (i in e) if (r[i] !== t[i]) return !1;
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function r(e) {
|
|
29
|
+
return i(t);
|
|
30
|
+
function t(t) {
|
|
31
|
+
return t && t.type === e;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function i(e) {
|
|
35
|
+
return t;
|
|
36
|
+
function t(t, n, r) {
|
|
37
|
+
return !!(o(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function a() {
|
|
41
|
+
return !0;
|
|
42
|
+
}
|
|
43
|
+
function o(e) {
|
|
44
|
+
return typeof e == "object" && !!e && "type" in e;
|
|
45
|
+
}
|
|
46
|
+
export { e as convert };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
|
|
2
|
+
var e = n("end"), t = n("start");
|
|
3
|
+
function n(e) {
|
|
4
|
+
return t;
|
|
5
|
+
function t(t) {
|
|
6
|
+
let n = t && t.position && t.position[e] || {};
|
|
7
|
+
if (typeof n.line == "number" && n.line > 0 && typeof n.column == "number" && n.column > 0) return {
|
|
8
|
+
line: n.line,
|
|
9
|
+
column: n.column,
|
|
10
|
+
offset: typeof n.offset == "number" && n.offset > -1 ? n.offset : void 0
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function r(n) {
|
|
15
|
+
let r = t(n), i = e(n);
|
|
16
|
+
if (r && i) return {
|
|
17
|
+
start: r,
|
|
18
|
+
end: i
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export { e as pointEnd, t as pointStart, r as position };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? n(e.position) : "start" in e || "end" in e ? n(e) : "line" in e || "column" in e ? t(e) : "";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return r(e && e.line) + ":" + r(e && e.column);
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return t(e && e.start) + "-" + t(e && e.end);
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
return e && typeof e == "number" ? e : 1;
|
|
13
|
+
}
|
|
14
|
+
export { e as stringifyPosition };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { convert as e } from "../../unist-util-is@6.0.1/lib/index.mjs";
|
|
2
|
+
import { color as t } from "./color.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/unist-util-visit-parents@6.1.0/node_modules/unist-util-visit-parents/lib/index.js
|
|
4
|
+
var n = [], r = "skip";
|
|
5
|
+
function i(r, i, o, s) {
|
|
6
|
+
if (!r || typeof r != "object") throw Error("Unexpected value `" + r + "` for `tree`, expected node");
|
|
7
|
+
let c = !0, l, u, d, f;
|
|
8
|
+
if (typeof o == "function" || o && typeof o == "object" ? (l = i, u = o, s && (c = !1)) : (u = i, o && (c = !1)), typeof u == "function") d = u;
|
|
9
|
+
else if (u && typeof u == "object") {
|
|
10
|
+
if (u.enter !== null && u.enter !== void 0) {
|
|
11
|
+
if (typeof u.enter == "function") d = u.enter;
|
|
12
|
+
else throw Error("Unexpected value `" + u.enter + "` for `visitors.enter`, expected optional visitor");
|
|
13
|
+
}
|
|
14
|
+
if (typeof u.exit == "function") f = u.exit;
|
|
15
|
+
else throw Error("Unexpected value `" + u.exit + "` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)");
|
|
16
|
+
} else throw Error("Unexpected value `" + u + "` for `enter` or `visitors`, expected visitor or object with visitors");
|
|
17
|
+
let p = e(l), m = c ? 1 : -1;
|
|
18
|
+
h(r, void 0, [])();
|
|
19
|
+
function h(e, r, i) {
|
|
20
|
+
let o = e && typeof e == "object" ? e : {};
|
|
21
|
+
if (typeof o.type == "string") {
|
|
22
|
+
let n = typeof o.tagName == "string" ? o.tagName : typeof o.name == "string" ? o.name : void 0;
|
|
23
|
+
Object.defineProperty(s, "name", { value: "node (" + t(e.type + (n ? "<" + n + ">" : "")) + ")" });
|
|
24
|
+
}
|
|
25
|
+
return s;
|
|
26
|
+
function s() {
|
|
27
|
+
let t = !l || p(e, r, i[i.length - 1] || void 0), o = n;
|
|
28
|
+
if (d && t && (o = a(d(e, i, r)), o[0] === !1)) return o;
|
|
29
|
+
if ("children" in e && e.children) {
|
|
30
|
+
let t = e;
|
|
31
|
+
if (t.children && o[0] !== "skip") {
|
|
32
|
+
let e = (c ? -1 : t.children.length) + m, n = [...i, t];
|
|
33
|
+
for (; e > -1 && e < t.children.length;) {
|
|
34
|
+
let r = t.children[e], i = h(r, e, n)();
|
|
35
|
+
if (i[0] === !1) return i;
|
|
36
|
+
e = typeof i[1] == "number" ? i[1] : e + m;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (f && t) {
|
|
41
|
+
let t = a(f(e, i, r));
|
|
42
|
+
if (t[0] === "skip") throw Error("Unexpected value `" + t[0] + "` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");
|
|
43
|
+
if (t[0] === !1 || typeof t[1] == "number") return t;
|
|
44
|
+
}
|
|
45
|
+
return o;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function a(e) {
|
|
50
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? n : [e];
|
|
51
|
+
}
|
|
52
|
+
export { r as SKIP, i as visitParents };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { visitParents as e } from "../../unist-util-visit-parents@6.1.0/lib/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.js
|
|
3
|
+
function t(t, i, a, o) {
|
|
4
|
+
let s, c, l;
|
|
5
|
+
typeof a == "function" || a && typeof a == "object" ? (s = i, c = a, l = o) : (c = i, l = a), typeof c == "function" ? e(t, s, r(c), l) : e(t, s, n(c), l);
|
|
6
|
+
}
|
|
7
|
+
function n(e) {
|
|
8
|
+
return !e || typeof e != "object" ? e : {
|
|
9
|
+
enter: typeof e.enter == "function" ? r(e.enter) : e.enter,
|
|
10
|
+
exit: typeof e.exit == "function" ? r(e.exit) : e.exit
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function r(e) {
|
|
14
|
+
return t;
|
|
15
|
+
function t(t, n, r) {
|
|
16
|
+
return e(t, r, n[n.length - 1]);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export { t as visit };
|