@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,192 @@
|
|
|
1
|
+
import { blankLine as e } from "../../micromark-core-commonmark@2.0.4/lib/blank-line.mjs";
|
|
2
|
+
import { factorySpace as t } from "../../micromark-factory-space@2.1.0/index.mjs";
|
|
3
|
+
import { markdownLineEndingOrSpace as n } from "../../micromark-util-character@2.1.1/index.mjs";
|
|
4
|
+
import { normalizeIdentifier as r } from "../../micromark-util-normalize-identifier@2.0.1/index.mjs";
|
|
5
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
6
|
+
var i = {
|
|
7
|
+
tokenize: f,
|
|
8
|
+
partial: !0
|
|
9
|
+
};
|
|
10
|
+
function a() {
|
|
11
|
+
return {
|
|
12
|
+
document: { 91: {
|
|
13
|
+
name: "gfmFootnoteDefinition",
|
|
14
|
+
tokenize: l,
|
|
15
|
+
continuation: { tokenize: u },
|
|
16
|
+
exit: d
|
|
17
|
+
} },
|
|
18
|
+
text: {
|
|
19
|
+
91: {
|
|
20
|
+
name: "gfmFootnoteCall",
|
|
21
|
+
tokenize: c
|
|
22
|
+
},
|
|
23
|
+
93: {
|
|
24
|
+
name: "gfmPotentialFootnoteCall",
|
|
25
|
+
add: "after",
|
|
26
|
+
tokenize: o,
|
|
27
|
+
resolveTo: s
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function o(e, t, n) {
|
|
33
|
+
let i = this, a = i.events.length, o = i.parser.gfmFootnotes || (i.parser.gfmFootnotes = []), s;
|
|
34
|
+
for (; a--;) {
|
|
35
|
+
let e = i.events[a][1];
|
|
36
|
+
if (e.type === "labelImage") {
|
|
37
|
+
s = e;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
if (e.type === "gfmFootnoteCall" || e.type === "labelLink" || e.type === "label" || e.type === "image" || e.type === "link") break;
|
|
41
|
+
}
|
|
42
|
+
return c;
|
|
43
|
+
function c(a) {
|
|
44
|
+
if (!s || !s._balanced) return n(a);
|
|
45
|
+
let c = r(i.sliceSerialize({
|
|
46
|
+
start: s.end,
|
|
47
|
+
end: i.now()
|
|
48
|
+
}));
|
|
49
|
+
return c.codePointAt(0) !== 94 || !o.includes(c.slice(1)) ? n(a) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(a), e.exit("gfmFootnoteCallLabelMarker"), t(a));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function s(e, t) {
|
|
53
|
+
let n = e.length;
|
|
54
|
+
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
55
|
+
e[n][1];
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
e[n + 1][1].type = "data", e[n + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
59
|
+
let r = {
|
|
60
|
+
type: "gfmFootnoteCall",
|
|
61
|
+
start: Object.assign({}, e[n + 3][1].start),
|
|
62
|
+
end: Object.assign({}, e[e.length - 1][1].end)
|
|
63
|
+
}, i = {
|
|
64
|
+
type: "gfmFootnoteCallMarker",
|
|
65
|
+
start: Object.assign({}, e[n + 3][1].end),
|
|
66
|
+
end: Object.assign({}, e[n + 3][1].end)
|
|
67
|
+
};
|
|
68
|
+
i.end.column++, i.end.offset++, i.end._bufferIndex++;
|
|
69
|
+
let a = {
|
|
70
|
+
type: "gfmFootnoteCallString",
|
|
71
|
+
start: Object.assign({}, i.end),
|
|
72
|
+
end: Object.assign({}, e[e.length - 1][1].start)
|
|
73
|
+
}, o = {
|
|
74
|
+
type: "chunkString",
|
|
75
|
+
contentType: "string",
|
|
76
|
+
start: Object.assign({}, a.start),
|
|
77
|
+
end: Object.assign({}, a.end)
|
|
78
|
+
}, s = [
|
|
79
|
+
e[n + 1],
|
|
80
|
+
e[n + 2],
|
|
81
|
+
[
|
|
82
|
+
"enter",
|
|
83
|
+
r,
|
|
84
|
+
t
|
|
85
|
+
],
|
|
86
|
+
e[n + 3],
|
|
87
|
+
e[n + 4],
|
|
88
|
+
[
|
|
89
|
+
"enter",
|
|
90
|
+
i,
|
|
91
|
+
t
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"exit",
|
|
95
|
+
i,
|
|
96
|
+
t
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"enter",
|
|
100
|
+
a,
|
|
101
|
+
t
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"enter",
|
|
105
|
+
o,
|
|
106
|
+
t
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
"exit",
|
|
110
|
+
o,
|
|
111
|
+
t
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"exit",
|
|
115
|
+
a,
|
|
116
|
+
t
|
|
117
|
+
],
|
|
118
|
+
e[e.length - 2],
|
|
119
|
+
e[e.length - 1],
|
|
120
|
+
[
|
|
121
|
+
"exit",
|
|
122
|
+
r,
|
|
123
|
+
t
|
|
124
|
+
]
|
|
125
|
+
];
|
|
126
|
+
return e.splice(n, e.length - n + 1, ...s), e;
|
|
127
|
+
}
|
|
128
|
+
function c(e, t, i) {
|
|
129
|
+
let a = this, o = a.parser.gfmFootnotes || (a.parser.gfmFootnotes = []), s = 0, c;
|
|
130
|
+
return l;
|
|
131
|
+
function l(t) {
|
|
132
|
+
return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"), u;
|
|
133
|
+
}
|
|
134
|
+
function u(t) {
|
|
135
|
+
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", d) : i(t);
|
|
136
|
+
}
|
|
137
|
+
function d(l) {
|
|
138
|
+
if (s > 999 || l === 93 && !c || l === null || l === 91 || n(l)) return i(l);
|
|
139
|
+
if (l === 93) {
|
|
140
|
+
e.exit("chunkString");
|
|
141
|
+
let n = e.exit("gfmFootnoteCallString");
|
|
142
|
+
return o.includes(r(a.sliceSerialize(n))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(l), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : i(l);
|
|
143
|
+
}
|
|
144
|
+
return n(l) || (c = !0), s++, e.consume(l), l === 92 ? f : d;
|
|
145
|
+
}
|
|
146
|
+
function f(t) {
|
|
147
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), s++, d) : d(t);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function l(e, i, a) {
|
|
151
|
+
let o = this, s = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []), c, l = 0, u;
|
|
152
|
+
return d;
|
|
153
|
+
function d(t) {
|
|
154
|
+
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), f;
|
|
155
|
+
}
|
|
156
|
+
function f(t) {
|
|
157
|
+
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", p) : a(t);
|
|
158
|
+
}
|
|
159
|
+
function p(t) {
|
|
160
|
+
if (l > 999 || t === 93 && !u || t === null || t === 91 || n(t)) return a(t);
|
|
161
|
+
if (t === 93) {
|
|
162
|
+
e.exit("chunkString");
|
|
163
|
+
let n = e.exit("gfmFootnoteDefinitionLabelString");
|
|
164
|
+
return c = r(o.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
|
|
165
|
+
}
|
|
166
|
+
return n(t) || (u = !0), l++, e.consume(t), t === 92 ? m : p;
|
|
167
|
+
}
|
|
168
|
+
function m(t) {
|
|
169
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), l++, p) : p(t);
|
|
170
|
+
}
|
|
171
|
+
function h(n) {
|
|
172
|
+
return n === 58 ? (e.enter("definitionMarker"), e.consume(n), e.exit("definitionMarker"), s.includes(c) || s.push(c), t(e, g, "gfmFootnoteDefinitionWhitespace")) : a(n);
|
|
173
|
+
}
|
|
174
|
+
function g(e) {
|
|
175
|
+
return i(e);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function u(t, n, r) {
|
|
179
|
+
return t.check(e, n, t.attempt(i, n, r));
|
|
180
|
+
}
|
|
181
|
+
function d(e) {
|
|
182
|
+
e.exit("gfmFootnoteDefinition");
|
|
183
|
+
}
|
|
184
|
+
function f(e, n, r) {
|
|
185
|
+
let i = this;
|
|
186
|
+
return t(e, a, "gfmFootnoteDefinitionIndent", 5);
|
|
187
|
+
function a(e) {
|
|
188
|
+
let t = i.events[i.events.length - 1];
|
|
189
|
+
return t && t[1].type === "gfmFootnoteDefinitionIndent" && t[2].sliceSerialize(t[1], !0).length === 4 ? n(e) : r(e);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export { a as gfmFootnote };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { splice as e } from "../../micromark-util-chunked@2.0.1/index.mjs";
|
|
2
|
+
import { classifyCharacter as t } from "../../micromark-util-classify-character@2.0.1/index.mjs";
|
|
3
|
+
import { resolveAll as n } from "../../micromark-util-resolve-all@2.0.1/index.mjs";
|
|
4
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
let i = (r || {}).singleTilde, a = {
|
|
7
|
+
name: "strikethrough",
|
|
8
|
+
tokenize: s,
|
|
9
|
+
resolveAll: o
|
|
10
|
+
};
|
|
11
|
+
return i ??= !0, {
|
|
12
|
+
text: { 126: a },
|
|
13
|
+
insideSpan: { null: [a] },
|
|
14
|
+
attentionMarkers: { null: [126] }
|
|
15
|
+
};
|
|
16
|
+
function o(t, r) {
|
|
17
|
+
let i = -1;
|
|
18
|
+
for (; ++i < t.length;) if (t[i][0] === "enter" && t[i][1].type === "strikethroughSequenceTemporary" && t[i][1]._close) {
|
|
19
|
+
let a = i;
|
|
20
|
+
for (; a--;) if (t[a][0] === "exit" && t[a][1].type === "strikethroughSequenceTemporary" && t[a][1]._open && t[i][1].end.offset - t[i][1].start.offset === t[a][1].end.offset - t[a][1].start.offset) {
|
|
21
|
+
t[i][1].type = "strikethroughSequence", t[a][1].type = "strikethroughSequence";
|
|
22
|
+
let o = {
|
|
23
|
+
type: "strikethrough",
|
|
24
|
+
start: Object.assign({}, t[a][1].start),
|
|
25
|
+
end: Object.assign({}, t[i][1].end)
|
|
26
|
+
}, s = {
|
|
27
|
+
type: "strikethroughText",
|
|
28
|
+
start: Object.assign({}, t[a][1].end),
|
|
29
|
+
end: Object.assign({}, t[i][1].start)
|
|
30
|
+
}, c = [
|
|
31
|
+
[
|
|
32
|
+
"enter",
|
|
33
|
+
o,
|
|
34
|
+
r
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"enter",
|
|
38
|
+
t[a][1],
|
|
39
|
+
r
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
"exit",
|
|
43
|
+
t[a][1],
|
|
44
|
+
r
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"enter",
|
|
48
|
+
s,
|
|
49
|
+
r
|
|
50
|
+
]
|
|
51
|
+
], l = r.parser.constructs.insideSpan.null;
|
|
52
|
+
l && e(c, c.length, 0, n(l, t.slice(a + 1, i), r)), e(c, c.length, 0, [
|
|
53
|
+
[
|
|
54
|
+
"exit",
|
|
55
|
+
s,
|
|
56
|
+
r
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"enter",
|
|
60
|
+
t[i][1],
|
|
61
|
+
r
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"exit",
|
|
65
|
+
t[i][1],
|
|
66
|
+
r
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"exit",
|
|
70
|
+
o,
|
|
71
|
+
r
|
|
72
|
+
]
|
|
73
|
+
]), e(t, a - 1, i - a + 3, c), i = a + c.length - 2;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
for (i = -1; ++i < t.length;) t[i][1].type === "strikethroughSequenceTemporary" && (t[i][1].type = "data");
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function s(e, n, r) {
|
|
81
|
+
let a = this.previous, o = this.events, s = 0;
|
|
82
|
+
return c;
|
|
83
|
+
function c(t) {
|
|
84
|
+
return a === 126 && o[o.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), l(t));
|
|
85
|
+
}
|
|
86
|
+
function l(o) {
|
|
87
|
+
let c = t(a);
|
|
88
|
+
if (o === 126) return s > 1 ? r(o) : (e.consume(o), s++, l);
|
|
89
|
+
if (s < 2 && !i) return r(o);
|
|
90
|
+
let u = e.exit("strikethroughSequenceTemporary"), d = t(o);
|
|
91
|
+
return u._open = !d || d === 2 && !!c, u._close = !c || c === 2 && !!d, n(o);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
export { r as gfmStrikethrough };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.map = [], this.index = /* @__PURE__ */ new Map();
|
|
5
|
+
}
|
|
6
|
+
add(e, n, r) {
|
|
7
|
+
t(this, e, n, r);
|
|
8
|
+
}
|
|
9
|
+
consume(e) {
|
|
10
|
+
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
11
|
+
if (this.map.sort(function(e, t) {
|
|
12
|
+
return e[0] - t[0];
|
|
13
|
+
}), this.map.length === 0) return;
|
|
14
|
+
let t = this.map.length, n = [];
|
|
15
|
+
for (; t > 0;) --t, n.push(e.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), e.length = this.map[t][0];
|
|
16
|
+
n.push(e.slice()), e.length = 0;
|
|
17
|
+
let r = n.pop();
|
|
18
|
+
for (; r;) {
|
|
19
|
+
for (let t of r) e.push(t);
|
|
20
|
+
r = n.pop();
|
|
21
|
+
}
|
|
22
|
+
this.map.length = 0, this.index.clear();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function t(e, t, n, r) {
|
|
26
|
+
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
27
|
+
if (n === 0 && r.length === 0) return;
|
|
28
|
+
let i = e.index.get(t);
|
|
29
|
+
if (i) {
|
|
30
|
+
i[1] += n, i[2].push(...r);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
let a = [
|
|
34
|
+
t,
|
|
35
|
+
n,
|
|
36
|
+
r
|
|
37
|
+
];
|
|
38
|
+
e.map.push(a), e.index.set(t, a);
|
|
39
|
+
}
|
|
40
|
+
export { e as EditMap };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = !1, r = [];
|
|
4
|
+
for (; t < e.length;) {
|
|
5
|
+
let i = e[t];
|
|
6
|
+
if (n) {
|
|
7
|
+
if (i[0] === "enter") i[1].type === "tableContent" && r.push(e[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
8
|
+
else if (i[1].type === "tableContent") {
|
|
9
|
+
if (e[t - 1][1].type === "tableDelimiterMarker") {
|
|
10
|
+
let e = r.length - 1;
|
|
11
|
+
r[e] = r[e] === "left" ? "center" : "right";
|
|
12
|
+
}
|
|
13
|
+
} else if (i[1].type === "tableDelimiterRow") break;
|
|
14
|
+
} else i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
|
|
15
|
+
t += 1;
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
}
|
|
19
|
+
export { e as gfmTableAlign };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { factorySpace as e } from "../../micromark-factory-space@2.1.0/index.mjs";
|
|
2
|
+
import { markdownLineEnding as t, markdownLineEndingOrSpace as n, markdownSpace as r } from "../../micromark-util-character@2.1.1/index.mjs";
|
|
3
|
+
import { EditMap as i } from "./edit-map.mjs";
|
|
4
|
+
import { gfmTableAlign as a } from "./infer.mjs";
|
|
5
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
6
|
+
function o() {
|
|
7
|
+
return { flow: { null: {
|
|
8
|
+
name: "table",
|
|
9
|
+
tokenize: s,
|
|
10
|
+
resolveAll: c
|
|
11
|
+
} } };
|
|
12
|
+
}
|
|
13
|
+
function s(i, a, o) {
|
|
14
|
+
let s = this, c = 0, l = 0, u;
|
|
15
|
+
return d;
|
|
16
|
+
function d(e) {
|
|
17
|
+
let t = s.events.length - 1;
|
|
18
|
+
for (; t > -1;) {
|
|
19
|
+
let { type: e } = s.events[t][1];
|
|
20
|
+
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
21
|
+
else break;
|
|
22
|
+
}
|
|
23
|
+
let n = t > -1 ? s.events[t][1].type : null, r = n === "tableHead" || n === "tableRow" ? E : f;
|
|
24
|
+
return r === E && s.parser.lazy[s.now().line] ? o(e) : r(e);
|
|
25
|
+
}
|
|
26
|
+
function f(e) {
|
|
27
|
+
return i.enter("tableHead"), i.enter("tableRow"), p(e);
|
|
28
|
+
}
|
|
29
|
+
function p(e) {
|
|
30
|
+
return e === 124 || (u = !0, l += 1), m(e);
|
|
31
|
+
}
|
|
32
|
+
function m(n) {
|
|
33
|
+
return n === null ? o(n) : t(n) ? l > 1 ? (l = 0, s.interrupt = !0, i.exit("tableRow"), i.enter("lineEnding"), i.consume(n), i.exit("lineEnding"), _) : o(n) : r(n) ? e(i, m, "whitespace")(n) : (l += 1, u && (u = !1, c += 1), n === 124 ? (i.enter("tableCellDivider"), i.consume(n), i.exit("tableCellDivider"), u = !0, m) : (i.enter("data"), h(n)));
|
|
34
|
+
}
|
|
35
|
+
function h(e) {
|
|
36
|
+
return e === null || e === 124 || n(e) ? (i.exit("data"), m(e)) : (i.consume(e), e === 92 ? g : h);
|
|
37
|
+
}
|
|
38
|
+
function g(e) {
|
|
39
|
+
return e === 92 || e === 124 ? (i.consume(e), h) : h(e);
|
|
40
|
+
}
|
|
41
|
+
function _(t) {
|
|
42
|
+
return s.interrupt = !1, s.parser.lazy[s.now().line] ? o(t) : (i.enter("tableDelimiterRow"), u = !1, r(t) ? e(i, v, "linePrefix", s.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : v(t));
|
|
43
|
+
}
|
|
44
|
+
function v(e) {
|
|
45
|
+
return e === 45 || e === 58 ? b(e) : e === 124 ? (u = !0, i.enter("tableCellDivider"), i.consume(e), i.exit("tableCellDivider"), y) : T(e);
|
|
46
|
+
}
|
|
47
|
+
function y(t) {
|
|
48
|
+
return r(t) ? e(i, b, "whitespace")(t) : b(t);
|
|
49
|
+
}
|
|
50
|
+
function b(e) {
|
|
51
|
+
return e === 58 ? (l += 1, u = !0, i.enter("tableDelimiterMarker"), i.consume(e), i.exit("tableDelimiterMarker"), x) : e === 45 ? (l += 1, x(e)) : e === null || t(e) ? w(e) : T(e);
|
|
52
|
+
}
|
|
53
|
+
function x(e) {
|
|
54
|
+
return e === 45 ? (i.enter("tableDelimiterFiller"), S(e)) : T(e);
|
|
55
|
+
}
|
|
56
|
+
function S(e) {
|
|
57
|
+
return e === 45 ? (i.consume(e), S) : e === 58 ? (u = !0, i.exit("tableDelimiterFiller"), i.enter("tableDelimiterMarker"), i.consume(e), i.exit("tableDelimiterMarker"), C) : (i.exit("tableDelimiterFiller"), C(e));
|
|
58
|
+
}
|
|
59
|
+
function C(t) {
|
|
60
|
+
return r(t) ? e(i, w, "whitespace")(t) : w(t);
|
|
61
|
+
}
|
|
62
|
+
function w(e) {
|
|
63
|
+
return e === 124 ? v(e) : e === null || t(e) ? !u || c !== l ? T(e) : (i.exit("tableDelimiterRow"), i.exit("tableHead"), a(e)) : T(e);
|
|
64
|
+
}
|
|
65
|
+
function T(e) {
|
|
66
|
+
return o(e);
|
|
67
|
+
}
|
|
68
|
+
function E(e) {
|
|
69
|
+
return i.enter("tableRow"), D(e);
|
|
70
|
+
}
|
|
71
|
+
function D(n) {
|
|
72
|
+
return n === 124 ? (i.enter("tableCellDivider"), i.consume(n), i.exit("tableCellDivider"), D) : n === null || t(n) ? (i.exit("tableRow"), a(n)) : r(n) ? e(i, D, "whitespace")(n) : (i.enter("data"), O(n));
|
|
73
|
+
}
|
|
74
|
+
function O(e) {
|
|
75
|
+
return e === null || e === 124 || n(e) ? (i.exit("data"), D(e)) : (i.consume(e), e === 92 ? k : O);
|
|
76
|
+
}
|
|
77
|
+
function k(e) {
|
|
78
|
+
return e === 92 || e === 124 ? (i.consume(e), O) : O(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function c(e, t) {
|
|
82
|
+
let n = -1, r = !0, o = 0, s = [
|
|
83
|
+
0,
|
|
84
|
+
0,
|
|
85
|
+
0,
|
|
86
|
+
0
|
|
87
|
+
], c = [
|
|
88
|
+
0,
|
|
89
|
+
0,
|
|
90
|
+
0,
|
|
91
|
+
0
|
|
92
|
+
], d = !1, f = 0, p, m, h, g = new i();
|
|
93
|
+
for (; ++n < e.length;) {
|
|
94
|
+
let i = e[n], a = i[1];
|
|
95
|
+
i[0] === "enter" ? a.type === "tableHead" ? (d = !1, f !== 0 && (u(g, t, f, p, m), m = void 0, f = 0), p = {
|
|
96
|
+
type: "table",
|
|
97
|
+
start: Object.assign({}, a.start),
|
|
98
|
+
end: Object.assign({}, a.end)
|
|
99
|
+
}, g.add(n, 0, [[
|
|
100
|
+
"enter",
|
|
101
|
+
p,
|
|
102
|
+
t
|
|
103
|
+
]])) : a.type === "tableRow" || a.type === "tableDelimiterRow" ? (r = !0, h = void 0, s = [
|
|
104
|
+
0,
|
|
105
|
+
0,
|
|
106
|
+
0,
|
|
107
|
+
0
|
|
108
|
+
], c = [
|
|
109
|
+
0,
|
|
110
|
+
n + 1,
|
|
111
|
+
0,
|
|
112
|
+
0
|
|
113
|
+
], d && (d = !1, m = {
|
|
114
|
+
type: "tableBody",
|
|
115
|
+
start: Object.assign({}, a.start),
|
|
116
|
+
end: Object.assign({}, a.end)
|
|
117
|
+
}, g.add(n, 0, [[
|
|
118
|
+
"enter",
|
|
119
|
+
m,
|
|
120
|
+
t
|
|
121
|
+
]])), o = a.type === "tableDelimiterRow" ? 2 : m ? 3 : 1) : o && (a.type === "data" || a.type === "tableDelimiterMarker" || a.type === "tableDelimiterFiller") ? (r = !1, c[2] === 0 && (s[1] !== 0 && (c[0] = c[1], h = l(g, t, s, o, void 0, h), s = [
|
|
122
|
+
0,
|
|
123
|
+
0,
|
|
124
|
+
0,
|
|
125
|
+
0
|
|
126
|
+
]), c[2] = n)) : a.type === "tableCellDivider" && (r ? r = !1 : (s[1] !== 0 && (c[0] = c[1], h = l(g, t, s, o, void 0, h)), s = c, c = [
|
|
127
|
+
s[1],
|
|
128
|
+
n,
|
|
129
|
+
0,
|
|
130
|
+
0
|
|
131
|
+
])) : a.type === "tableHead" ? (d = !0, f = n) : a.type === "tableRow" || a.type === "tableDelimiterRow" ? (f = n, s[1] === 0 ? c[1] !== 0 && (h = l(g, t, c, o, n, h)) : (c[0] = c[1], h = l(g, t, s, o, n, h)), o = 0) : o && (a.type === "data" || a.type === "tableDelimiterMarker" || a.type === "tableDelimiterFiller") && (c[3] = n);
|
|
132
|
+
}
|
|
133
|
+
for (f !== 0 && u(g, t, f, p, m), g.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
134
|
+
let e = t.events[n];
|
|
135
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = a(t.events, n));
|
|
136
|
+
}
|
|
137
|
+
return e;
|
|
138
|
+
}
|
|
139
|
+
function l(e, t, n, r, i, a) {
|
|
140
|
+
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
141
|
+
n[0] !== 0 && (a.end = Object.assign({}, d(t.events, n[0])), e.add(n[0], 0, [[
|
|
142
|
+
"exit",
|
|
143
|
+
a,
|
|
144
|
+
t
|
|
145
|
+
]]));
|
|
146
|
+
let s = d(t.events, n[1]);
|
|
147
|
+
if (a = {
|
|
148
|
+
type: o,
|
|
149
|
+
start: Object.assign({}, s),
|
|
150
|
+
end: Object.assign({}, s)
|
|
151
|
+
}, e.add(n[1], 0, [[
|
|
152
|
+
"enter",
|
|
153
|
+
a,
|
|
154
|
+
t
|
|
155
|
+
]]), n[2] !== 0) {
|
|
156
|
+
let i = d(t.events, n[2]), a = d(t.events, n[3]), o = {
|
|
157
|
+
type: "tableContent",
|
|
158
|
+
start: Object.assign({}, i),
|
|
159
|
+
end: Object.assign({}, a)
|
|
160
|
+
};
|
|
161
|
+
if (e.add(n[2], 0, [[
|
|
162
|
+
"enter",
|
|
163
|
+
o,
|
|
164
|
+
t
|
|
165
|
+
]]), r !== 2) {
|
|
166
|
+
let r = t.events[n[2]], i = t.events[n[3]];
|
|
167
|
+
if (r[1].end = Object.assign({}, i[1].end), r[1].type = "chunkText", r[1].contentType = "text", n[3] > n[2] + 1) {
|
|
168
|
+
let t = n[2] + 1, r = n[3] - n[2] - 1;
|
|
169
|
+
e.add(t, r, []);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
e.add(n[3] + 1, 0, [[
|
|
173
|
+
"exit",
|
|
174
|
+
o,
|
|
175
|
+
t
|
|
176
|
+
]]);
|
|
177
|
+
}
|
|
178
|
+
return i !== void 0 && (a.end = Object.assign({}, d(t.events, i)), e.add(i, 0, [[
|
|
179
|
+
"exit",
|
|
180
|
+
a,
|
|
181
|
+
t
|
|
182
|
+
]]), a = void 0), a;
|
|
183
|
+
}
|
|
184
|
+
function u(e, t, n, r, i) {
|
|
185
|
+
let a = [], o = d(t.events, n);
|
|
186
|
+
i && (i.end = Object.assign({}, o), a.push([
|
|
187
|
+
"exit",
|
|
188
|
+
i,
|
|
189
|
+
t
|
|
190
|
+
])), r.end = Object.assign({}, o), a.push([
|
|
191
|
+
"exit",
|
|
192
|
+
r,
|
|
193
|
+
t
|
|
194
|
+
]), e.add(n + 1, 0, a);
|
|
195
|
+
}
|
|
196
|
+
function d(e, t) {
|
|
197
|
+
let n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
198
|
+
return n[1][r];
|
|
199
|
+
}
|
|
200
|
+
export { o as gfmTable };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { factorySpace as e } from "../../micromark-factory-space@2.1.0/index.mjs";
|
|
2
|
+
import { markdownLineEnding as t, markdownLineEndingOrSpace as n, markdownSpace as r } from "../../micromark-util-character@2.1.1/index.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
4
|
+
var i = {
|
|
5
|
+
name: "tasklistCheck",
|
|
6
|
+
tokenize: o
|
|
7
|
+
};
|
|
8
|
+
function a() {
|
|
9
|
+
return { text: { 91: i } };
|
|
10
|
+
}
|
|
11
|
+
function o(e, i, a) {
|
|
12
|
+
let o = this;
|
|
13
|
+
return c;
|
|
14
|
+
function c(t) {
|
|
15
|
+
return o.previous !== null || !o._gfmTasklistFirstContentOfListItem ? a(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), l);
|
|
16
|
+
}
|
|
17
|
+
function l(t) {
|
|
18
|
+
return n(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), u) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), u) : a(t);
|
|
19
|
+
}
|
|
20
|
+
function u(t) {
|
|
21
|
+
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), d) : a(t);
|
|
22
|
+
}
|
|
23
|
+
function d(n) {
|
|
24
|
+
return t(n) ? i(n) : r(n) ? e.check({ tokenize: s }, i, a)(n) : a(n);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function s(t, n, r) {
|
|
28
|
+
return e(t, i, "whitespace");
|
|
29
|
+
function i(e) {
|
|
30
|
+
return e === null ? r(e) : n(e);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export { a as gfmTaskListItem };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { combineExtensions as e } from "../micromark-util-combine-extensions@2.0.1/index.mjs";
|
|
2
|
+
import { gfmAutolinkLiteral as t } from "../micromark-extension-gfm-autolink-literal@2.1.0/lib/syntax.mjs";
|
|
3
|
+
import { gfmFootnote as n } from "../micromark-extension-gfm-footnote@2.1.0/lib/syntax.mjs";
|
|
4
|
+
import { gfmStrikethrough as r } from "../micromark-extension-gfm-strikethrough@2.1.0/lib/syntax.mjs";
|
|
5
|
+
import { gfmTable as i } from "../micromark-extension-gfm-table@2.1.2/lib/syntax.mjs";
|
|
6
|
+
import { gfmTaskListItem as a } from "../micromark-extension-gfm-task-list-item@2.1.0/lib/syntax.mjs";
|
|
7
|
+
// ../../node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js
|
|
8
|
+
function o(o) {
|
|
9
|
+
return e([
|
|
10
|
+
t(),
|
|
11
|
+
n(),
|
|
12
|
+
r(o),
|
|
13
|
+
i(),
|
|
14
|
+
a()
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
export { o as gfm };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { asciiControl as e, markdownLineEnding as t, markdownLineEndingOrSpace as n } from "../micromark-util-character@2.1.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js
|
|
3
|
+
function r(r, i, a, o, s, c, l, u, d) {
|
|
4
|
+
let f = d || Infinity, p = 0;
|
|
5
|
+
return m;
|
|
6
|
+
function m(t) {
|
|
7
|
+
return t === 60 ? (r.enter(o), r.enter(s), r.enter(c), r.consume(t), r.exit(c), h) : t === null || t === 32 || t === 41 || e(t) ? a(t) : (r.enter(o), r.enter(l), r.enter(u), r.enter("chunkString", { contentType: "string" }), v(t));
|
|
8
|
+
}
|
|
9
|
+
function h(e) {
|
|
10
|
+
return e === 62 ? (r.enter(c), r.consume(e), r.exit(c), r.exit(s), r.exit(o), i) : (r.enter(u), r.enter("chunkString", { contentType: "string" }), g(e));
|
|
11
|
+
}
|
|
12
|
+
function g(e) {
|
|
13
|
+
return e === 62 ? (r.exit("chunkString"), r.exit(u), h(e)) : e === null || e === 60 || t(e) ? a(e) : (r.consume(e), e === 92 ? _ : g);
|
|
14
|
+
}
|
|
15
|
+
function _(e) {
|
|
16
|
+
return e === 60 || e === 62 || e === 92 ? (r.consume(e), g) : g(e);
|
|
17
|
+
}
|
|
18
|
+
function v(t) {
|
|
19
|
+
return !p && (t === null || t === 41 || n(t)) ? (r.exit("chunkString"), r.exit(u), r.exit(l), r.exit(o), i(t)) : p < f && t === 40 ? (r.consume(t), p++, v) : t === 41 ? (r.consume(t), p--, v) : t === null || t === 32 || t === 40 || e(t) ? a(t) : (r.consume(t), t === 92 ? y : v);
|
|
20
|
+
}
|
|
21
|
+
function y(e) {
|
|
22
|
+
return e === 40 || e === 41 || e === 92 ? (r.consume(e), v) : v(e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export { r as factoryDestination };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { markdownLineEnding as e, markdownSpace as t } from "../micromark-util-character@2.1.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js
|
|
3
|
+
function n(n, r, i, a, o, s) {
|
|
4
|
+
let c = this, l = 0, u;
|
|
5
|
+
return d;
|
|
6
|
+
function d(e) {
|
|
7
|
+
return n.enter(a), n.enter(o), n.consume(e), n.exit(o), n.enter(s), f;
|
|
8
|
+
}
|
|
9
|
+
function f(t) {
|
|
10
|
+
return l > 999 || t === null || t === 91 || t === 93 && !u ||
|
|
11
|
+
/* c8 ignore next 3 */
|
|
12
|
+
t === 94 && !l && "_hiddenFootnoteSupport" in c.parser.constructs ? i(t) : t === 93 ? (n.exit(s), n.enter(o), n.consume(t), n.exit(o), n.exit(a), r) : e(t) ? (n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), f) : (n.enter("chunkString", { contentType: "string" }), p(t));
|
|
13
|
+
}
|
|
14
|
+
function p(r) {
|
|
15
|
+
return r === null || r === 91 || r === 93 || e(r) || l++ > 999 ? (n.exit("chunkString"), f(r)) : (n.consume(r), u ||= !t(r), r === 92 ? m : p);
|
|
16
|
+
}
|
|
17
|
+
function m(e) {
|
|
18
|
+
return e === 91 || e === 92 || e === 93 ? (n.consume(e), l++, p) : p(e);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export { n as factoryLabel };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { markdownSpace as e } from "../micromark-util-character@2.1.1/index.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/micromark-factory-space@2.1.0/node_modules/micromark-factory-space/index.js
|
|
3
|
+
function t(t, n, r, i) {
|
|
4
|
+
let a = i ? i - 1 : Infinity, o = 0;
|
|
5
|
+
return s;
|
|
6
|
+
function s(i) {
|
|
7
|
+
return e(i) ? (t.enter(r), c(i)) : n(i);
|
|
8
|
+
}
|
|
9
|
+
function c(i) {
|
|
10
|
+
return e(i) && o++ < a ? (t.consume(i), c) : (t.exit(r), n(i));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function n(t, n, r, i, a, o) {
|
|
14
|
+
let s = 0;
|
|
15
|
+
return c;
|
|
16
|
+
function c(n) {
|
|
17
|
+
return o > 0 && e(n) ? (t.enter(i), l(n)) : u(n);
|
|
18
|
+
}
|
|
19
|
+
function l(n) {
|
|
20
|
+
return e(n) && s < o ? (t.consume(n), s++, l) : (t.exit(i), u(n));
|
|
21
|
+
}
|
|
22
|
+
function u(e) {
|
|
23
|
+
return s >= a ? n(e) : r(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export { t as factorySpace, n as factorySpaceMinMax };
|