@gearbox-protocol/ui-kit 4.0.0-next.56 → 4.0.0-next.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/index2.cjs +1 -0
- package/dist/cjs/_virtual/index3.cjs +1 -0
- package/dist/cjs/_virtual/index4.cjs +1 -0
- package/dist/cjs/_virtual/utilities.cjs +1 -0
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/markdown-text/index.cjs +1 -0
- package/dist/cjs/components/markdown-text/markdown-text.cjs +1 -0
- package/dist/cjs/components/truncated-text/index.cjs +1 -0
- package/dist/cjs/components/truncated-text/truncated-text.cjs +1 -0
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/types.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.dom.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.cjs +3 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.cjs +3 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +3 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.cjs +4 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +4 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs +2 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +6 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.cjs +3 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/hast-to-react.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.18_react@19.2.8/node_modules/react-markdown/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.cjs +1 -0
- package/dist/esm/_virtual/index2.js +7 -0
- package/dist/esm/_virtual/index3.js +7 -0
- package/dist/esm/_virtual/index4.js +4 -0
- package/dist/esm/_virtual/utilities.js +4 -0
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -0
- package/dist/esm/components/index.js +218 -214
- package/dist/esm/components/markdown-text/index.js +4 -0
- package/dist/esm/components/markdown-text/markdown-text.js +63 -0
- package/dist/esm/components/truncated-text/index.js +4 -0
- package/dist/esm/components/truncated-text/truncated-text.js +30 -0
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/index.js +310 -306
- package/dist/esm/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/esm/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/esm/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/esm/node_modules/.pnpm/@ungap_structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/esm/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.js +7 -0
- package/dist/esm/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/esm/node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/esm/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js +8 -0
- package/dist/esm/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/esm/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/esm/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js +43 -0
- package/dist/esm/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/esm/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/esm/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/esm/node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/esm/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js +9 -0
- package/dist/esm/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js +75 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js +70 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.js +581 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js +50 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js +13 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +33 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js +34 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +27 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +27 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js +50 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js +9 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js +33 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js +6 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +37 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/esm/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.js +83 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.js +94 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.js +43 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.js +46 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.js +144 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.js +152 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.js +22 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.js +19 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.js +57 -0
- package/dist/esm/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.js +71 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js +145 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/esm/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/esm/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/esm/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/esm/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js +15 -0
- package/dist/esm/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/esm/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js +39 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/esm/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js +223 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js +126 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.js +95 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js +32 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/esm/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.js +39 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +33 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +378 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +568 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +11 -0
- package/dist/esm/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/esm/node_modules/.pnpm/react-markdown@10.1.0_@types_react@19.2.18_react@19.2.8/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/esm/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/esm/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/esm/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/esm/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/esm/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/esm/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/esm/node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/esm/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.js +28 -0
- package/dist/esm/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.js +60 -0
- package/dist/esm/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/esm/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +529 -0
- package/dist/esm/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/esm/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/esm/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/esm/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/esm/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/esm/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/esm/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/esm/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.js +406 -0
- package/dist/esm/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/esm/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/esm/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/esm/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/markdown-text/index.d.ts +1 -0
- package/dist/types/components/markdown-text/markdown-text.d.ts +6 -0
- package/dist/types/components/truncated-text/index.d.ts +1 -0
- package/dist/types/components/truncated-text/truncated-text.d.ts +13 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +3 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { color as A } from "./color.js";
|
|
2
|
+
import { convert as I } from "../../../../unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js";
|
|
3
|
+
const g = [], j = !0, a = !1, k = "skip";
|
|
4
|
+
function w(t, o, u, s) {
|
|
5
|
+
let p;
|
|
6
|
+
typeof o == "function" && typeof u != "function" ? (s = u, u = o) : p = o;
|
|
7
|
+
const b = I(p), y = s ? -1 : 1;
|
|
8
|
+
m(t, void 0, [])();
|
|
9
|
+
function m(n, N, l) {
|
|
10
|
+
const i = (
|
|
11
|
+
/** @type {Record<string, unknown>} */
|
|
12
|
+
n && typeof n == "object" ? n : {}
|
|
13
|
+
);
|
|
14
|
+
if (typeof i.type == "string") {
|
|
15
|
+
const e = (
|
|
16
|
+
// `hast`
|
|
17
|
+
typeof i.tagName == "string" ? i.tagName : (
|
|
18
|
+
// `xast`
|
|
19
|
+
typeof i.name == "string" ? i.name : void 0
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
Object.defineProperty(h, "name", {
|
|
23
|
+
value: "node (" + A(n.type + (e ? "<" + e + ">" : "")) + ")"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return h;
|
|
27
|
+
function h() {
|
|
28
|
+
let e = g, f, r, d;
|
|
29
|
+
if ((!o || b(n, N, l[l.length - 1] || void 0)) && (e = E(u(n, l)), e[0] === a))
|
|
30
|
+
return e;
|
|
31
|
+
if ("children" in n && n.children) {
|
|
32
|
+
const c = (
|
|
33
|
+
/** @type {UnistParent} */
|
|
34
|
+
n
|
|
35
|
+
);
|
|
36
|
+
if (c.children && e[0] !== k)
|
|
37
|
+
for (r = (s ? c.children.length : -1) + y, d = l.concat(c); r > -1 && r < c.children.length; ) {
|
|
38
|
+
const P = c.children[r];
|
|
39
|
+
if (f = m(P, r, d)(), f[0] === a)
|
|
40
|
+
return f;
|
|
41
|
+
r = typeof f[1] == "number" ? f[1] : r + y;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function E(t) {
|
|
49
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [j, t] : t == null ? g : [t];
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
j as CONTINUE,
|
|
53
|
+
a as EXIT,
|
|
54
|
+
k as SKIP,
|
|
55
|
+
w as visitParents
|
|
56
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { visitParents as m } from "../../../../unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js";
|
|
2
|
+
import { CONTINUE as y, EXIT as E, SKIP as N } from "../../../../unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js";
|
|
3
|
+
function I(l, n, e, u) {
|
|
4
|
+
let t, f, o;
|
|
5
|
+
typeof n == "function" && typeof e != "function" ? (f = void 0, o = n, t = e) : (f = n, o = e, t = u), m(l, f, p, t);
|
|
6
|
+
function p(c, d) {
|
|
7
|
+
const i = d[d.length - 1], x = i ? i.children.indexOf(c) : void 0;
|
|
8
|
+
return o(c, x, i);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
y as CONTINUE,
|
|
13
|
+
E as EXIT,
|
|
14
|
+
N as SKIP,
|
|
15
|
+
I as visit
|
|
16
|
+
};
|
package/dist/esm/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { stringifyPosition as c } from "../../../../unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js";
|
|
2
|
+
class t extends Error {
|
|
3
|
+
/**
|
|
4
|
+
* Create a message for `reason`.
|
|
5
|
+
*
|
|
6
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
7
|
+
*
|
|
8
|
+
* @overload
|
|
9
|
+
* @param {string} reason
|
|
10
|
+
* @param {Options | null | undefined} [options]
|
|
11
|
+
* @returns
|
|
12
|
+
*
|
|
13
|
+
* @overload
|
|
14
|
+
* @param {string} reason
|
|
15
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
16
|
+
* @param {string | null | undefined} [origin]
|
|
17
|
+
* @returns
|
|
18
|
+
*
|
|
19
|
+
* @overload
|
|
20
|
+
* @param {string} reason
|
|
21
|
+
* @param {Point | Position | null | undefined} place
|
|
22
|
+
* @param {string | null | undefined} [origin]
|
|
23
|
+
* @returns
|
|
24
|
+
*
|
|
25
|
+
* @overload
|
|
26
|
+
* @param {string} reason
|
|
27
|
+
* @param {string | null | undefined} [origin]
|
|
28
|
+
* @returns
|
|
29
|
+
*
|
|
30
|
+
* @overload
|
|
31
|
+
* @param {Error | VFileMessage} cause
|
|
32
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
33
|
+
* @param {string | null | undefined} [origin]
|
|
34
|
+
* @returns
|
|
35
|
+
*
|
|
36
|
+
* @overload
|
|
37
|
+
* @param {Error | VFileMessage} cause
|
|
38
|
+
* @param {Point | Position | null | undefined} place
|
|
39
|
+
* @param {string | null | undefined} [origin]
|
|
40
|
+
* @returns
|
|
41
|
+
*
|
|
42
|
+
* @overload
|
|
43
|
+
* @param {Error | VFileMessage} cause
|
|
44
|
+
* @param {string | null | undefined} [origin]
|
|
45
|
+
* @returns
|
|
46
|
+
*
|
|
47
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
48
|
+
* Reason for message, should use markdown.
|
|
49
|
+
* @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
50
|
+
* Configuration (optional).
|
|
51
|
+
* @param {string | null | undefined} [origin]
|
|
52
|
+
* Place in code where the message originates (example:
|
|
53
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
54
|
+
* @returns
|
|
55
|
+
* Instance of `VFileMessage`.
|
|
56
|
+
*/
|
|
57
|
+
// eslint-disable-next-line complexity
|
|
58
|
+
constructor(d, s, i) {
|
|
59
|
+
super(), typeof s == "string" && (i = s, s = void 0);
|
|
60
|
+
let f = "", e = {}, p = !1;
|
|
61
|
+
if (s && ("line" in s && "column" in s ? e = { place: s } : "start" in s && "end" in s ? e = { place: s } : "type" in s ? e = {
|
|
62
|
+
ancestors: [s],
|
|
63
|
+
place: s.position
|
|
64
|
+
} : e = { ...s }), typeof d == "string" ? f = d : !e.cause && d && (p = !0, f = d.message, e.cause = d), !e.ruleId && !e.source && typeof i == "string") {
|
|
65
|
+
const n = i.indexOf(":");
|
|
66
|
+
n === -1 ? e.ruleId = i : (e.source = i.slice(0, n), e.ruleId = i.slice(n + 1));
|
|
67
|
+
}
|
|
68
|
+
if (!e.place && e.ancestors && e.ancestors) {
|
|
69
|
+
const n = e.ancestors[e.ancestors.length - 1];
|
|
70
|
+
n && (e.place = n.position);
|
|
71
|
+
}
|
|
72
|
+
const u = e.place && "start" in e.place ? e.place.start : e.place;
|
|
73
|
+
this.ancestors = e.ancestors || void 0, this.cause = e.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file = "", this.message = f, this.line = u ? u.line : void 0, this.name = c(e.place) || "1:1", this.place = e.place || void 0, this.reason = this.message, this.ruleId = e.ruleId || void 0, this.source = e.source || void 0, this.stack = p && e.cause && typeof e.cause.stack == "string" ? e.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
t.prototype.file = "";
|
|
77
|
+
t.prototype.name = "";
|
|
78
|
+
t.prototype.reason = "";
|
|
79
|
+
t.prototype.message = "";
|
|
80
|
+
t.prototype.stack = "";
|
|
81
|
+
t.prototype.column = void 0;
|
|
82
|
+
t.prototype.line = void 0;
|
|
83
|
+
t.prototype.ancestors = void 0;
|
|
84
|
+
t.prototype.cause = void 0;
|
|
85
|
+
t.prototype.fatal = void 0;
|
|
86
|
+
t.prototype.place = void 0;
|
|
87
|
+
t.prototype.ruleId = void 0;
|
|
88
|
+
t.prototype.source = void 0;
|
|
89
|
+
export {
|
|
90
|
+
t as VFileMessage
|
|
91
|
+
};
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { minpath as n } from "./minpath.browser.js";
|
|
2
|
+
import { minproc as p } from "./minproc.browser.js";
|
|
3
|
+
import { urlToPath as u } from "./minurl.browser.js";
|
|
4
|
+
import { isUrl as f } from "./minurl.shared.js";
|
|
5
|
+
import { VFileMessage as c } from "../../../../vfile-message@4.0.3/node_modules/vfile-message/lib/index.js";
|
|
6
|
+
const a = (
|
|
7
|
+
/** @type {const} */
|
|
8
|
+
[
|
|
9
|
+
"history",
|
|
10
|
+
"path",
|
|
11
|
+
"basename",
|
|
12
|
+
"stem",
|
|
13
|
+
"extname",
|
|
14
|
+
"dirname"
|
|
15
|
+
]
|
|
16
|
+
);
|
|
17
|
+
class E {
|
|
18
|
+
/**
|
|
19
|
+
* Create a new virtual file.
|
|
20
|
+
*
|
|
21
|
+
* `options` is treated as:
|
|
22
|
+
*
|
|
23
|
+
* * `string` or `Uint8Array` — `{value: options}`
|
|
24
|
+
* * `URL` — `{path: options}`
|
|
25
|
+
* * `VFile` — shallow copies its data over to the new file
|
|
26
|
+
* * `object` — all fields are shallow copied over to the new file
|
|
27
|
+
*
|
|
28
|
+
* Path related fields are set in the following order (least specific to
|
|
29
|
+
* most specific): `history`, `path`, `basename`, `stem`, `extname`,
|
|
30
|
+
* `dirname`.
|
|
31
|
+
*
|
|
32
|
+
* You cannot set `dirname` or `extname` without setting either `history`,
|
|
33
|
+
* `path`, `basename`, or `stem` too.
|
|
34
|
+
*
|
|
35
|
+
* @param {Compatible | null | undefined} [value]
|
|
36
|
+
* File value.
|
|
37
|
+
* @returns
|
|
38
|
+
* New instance.
|
|
39
|
+
*/
|
|
40
|
+
constructor(t) {
|
|
41
|
+
let e;
|
|
42
|
+
t ? f(t) ? e = { path: t } : typeof t == "string" || l(t) ? e = { value: t } : e = t : e = {}, this.cwd = "cwd" in e ? "" : p.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
43
|
+
let r = -1;
|
|
44
|
+
for (; ++r < a.length; ) {
|
|
45
|
+
const h = a[r];
|
|
46
|
+
h in e && e[h] !== void 0 && e[h] !== null && (this[h] = h === "history" ? [...e[h]] : e[h]);
|
|
47
|
+
}
|
|
48
|
+
let i;
|
|
49
|
+
for (i in e)
|
|
50
|
+
a.includes(i) || (this[i] = e[i]);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
54
|
+
*
|
|
55
|
+
* @returns {string | undefined}
|
|
56
|
+
* Basename.
|
|
57
|
+
*/
|
|
58
|
+
get basename() {
|
|
59
|
+
return typeof this.path == "string" ? n.basename(this.path) : void 0;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Set basename (including extname) (`'index.min.js'`).
|
|
63
|
+
*
|
|
64
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
65
|
+
* on windows).
|
|
66
|
+
* Cannot be nullified (use `file.path = file.dirname` instead).
|
|
67
|
+
*
|
|
68
|
+
* @param {string} basename
|
|
69
|
+
* Basename.
|
|
70
|
+
* @returns {undefined}
|
|
71
|
+
* Nothing.
|
|
72
|
+
*/
|
|
73
|
+
set basename(t) {
|
|
74
|
+
m(t, "basename"), o(t, "basename"), this.path = n.join(this.dirname || "", t);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get the parent path (example: `'~'`).
|
|
78
|
+
*
|
|
79
|
+
* @returns {string | undefined}
|
|
80
|
+
* Dirname.
|
|
81
|
+
*/
|
|
82
|
+
get dirname() {
|
|
83
|
+
return typeof this.path == "string" ? n.dirname(this.path) : void 0;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Set the parent path (example: `'~'`).
|
|
87
|
+
*
|
|
88
|
+
* Cannot be set if there’s no `path` yet.
|
|
89
|
+
*
|
|
90
|
+
* @param {string | undefined} dirname
|
|
91
|
+
* Dirname.
|
|
92
|
+
* @returns {undefined}
|
|
93
|
+
* Nothing.
|
|
94
|
+
*/
|
|
95
|
+
set dirname(t) {
|
|
96
|
+
d(this.basename, "dirname"), this.path = n.join(t || "", this.basename);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get the extname (including dot) (example: `'.js'`).
|
|
100
|
+
*
|
|
101
|
+
* @returns {string | undefined}
|
|
102
|
+
* Extname.
|
|
103
|
+
*/
|
|
104
|
+
get extname() {
|
|
105
|
+
return typeof this.path == "string" ? n.extname(this.path) : void 0;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Set the extname (including dot) (example: `'.js'`).
|
|
109
|
+
*
|
|
110
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
111
|
+
* on windows).
|
|
112
|
+
* Cannot be set if there’s no `path` yet.
|
|
113
|
+
*
|
|
114
|
+
* @param {string | undefined} extname
|
|
115
|
+
* Extname.
|
|
116
|
+
* @returns {undefined}
|
|
117
|
+
* Nothing.
|
|
118
|
+
*/
|
|
119
|
+
set extname(t) {
|
|
120
|
+
if (o(t, "extname"), d(this.dirname, "extname"), t) {
|
|
121
|
+
if (t.codePointAt(0) !== 46)
|
|
122
|
+
throw new Error("`extname` must start with `.`");
|
|
123
|
+
if (t.includes(".", 1))
|
|
124
|
+
throw new Error("`extname` cannot contain multiple dots");
|
|
125
|
+
}
|
|
126
|
+
this.path = n.join(this.dirname, this.stem + (t || ""));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get the full path (example: `'~/index.min.js'`).
|
|
130
|
+
*
|
|
131
|
+
* @returns {string}
|
|
132
|
+
* Path.
|
|
133
|
+
*/
|
|
134
|
+
get path() {
|
|
135
|
+
return this.history[this.history.length - 1];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Set the full path (example: `'~/index.min.js'`).
|
|
139
|
+
*
|
|
140
|
+
* Cannot be nullified.
|
|
141
|
+
* You can set a file URL (a `URL` object with a `file:` protocol) which will
|
|
142
|
+
* be turned into a path with `url.fileURLToPath`.
|
|
143
|
+
*
|
|
144
|
+
* @param {URL | string} path
|
|
145
|
+
* Path.
|
|
146
|
+
* @returns {undefined}
|
|
147
|
+
* Nothing.
|
|
148
|
+
*/
|
|
149
|
+
set path(t) {
|
|
150
|
+
f(t) && (t = u(t)), m(t, "path"), this.path !== t && this.history.push(t);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
154
|
+
*
|
|
155
|
+
* @returns {string | undefined}
|
|
156
|
+
* Stem.
|
|
157
|
+
*/
|
|
158
|
+
get stem() {
|
|
159
|
+
return typeof this.path == "string" ? n.basename(this.path, this.extname) : void 0;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
163
|
+
*
|
|
164
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
165
|
+
* on windows).
|
|
166
|
+
* Cannot be nullified (use `file.path = file.dirname` instead).
|
|
167
|
+
*
|
|
168
|
+
* @param {string} stem
|
|
169
|
+
* Stem.
|
|
170
|
+
* @returns {undefined}
|
|
171
|
+
* Nothing.
|
|
172
|
+
*/
|
|
173
|
+
set stem(t) {
|
|
174
|
+
m(t, "stem"), o(t, "stem"), this.path = n.join(this.dirname || "", t + (this.extname || ""));
|
|
175
|
+
}
|
|
176
|
+
// Normal prototypal methods.
|
|
177
|
+
/**
|
|
178
|
+
* Create a fatal message for `reason` associated with the file.
|
|
179
|
+
*
|
|
180
|
+
* The `fatal` field of the message is set to `true` (error; file not usable)
|
|
181
|
+
* and the `file` field is set to the current file path.
|
|
182
|
+
* The message is added to the `messages` field on `file`.
|
|
183
|
+
*
|
|
184
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
185
|
+
*
|
|
186
|
+
* @overload
|
|
187
|
+
* @param {string} reason
|
|
188
|
+
* @param {MessageOptions | null | undefined} [options]
|
|
189
|
+
* @returns {never}
|
|
190
|
+
*
|
|
191
|
+
* @overload
|
|
192
|
+
* @param {string} reason
|
|
193
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
194
|
+
* @param {string | null | undefined} [origin]
|
|
195
|
+
* @returns {never}
|
|
196
|
+
*
|
|
197
|
+
* @overload
|
|
198
|
+
* @param {string} reason
|
|
199
|
+
* @param {Point | Position | null | undefined} place
|
|
200
|
+
* @param {string | null | undefined} [origin]
|
|
201
|
+
* @returns {never}
|
|
202
|
+
*
|
|
203
|
+
* @overload
|
|
204
|
+
* @param {string} reason
|
|
205
|
+
* @param {string | null | undefined} [origin]
|
|
206
|
+
* @returns {never}
|
|
207
|
+
*
|
|
208
|
+
* @overload
|
|
209
|
+
* @param {Error | VFileMessage} cause
|
|
210
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
211
|
+
* @param {string | null | undefined} [origin]
|
|
212
|
+
* @returns {never}
|
|
213
|
+
*
|
|
214
|
+
* @overload
|
|
215
|
+
* @param {Error | VFileMessage} cause
|
|
216
|
+
* @param {Point | Position | null | undefined} place
|
|
217
|
+
* @param {string | null | undefined} [origin]
|
|
218
|
+
* @returns {never}
|
|
219
|
+
*
|
|
220
|
+
* @overload
|
|
221
|
+
* @param {Error | VFileMessage} cause
|
|
222
|
+
* @param {string | null | undefined} [origin]
|
|
223
|
+
* @returns {never}
|
|
224
|
+
*
|
|
225
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
226
|
+
* Reason for message, should use markdown.
|
|
227
|
+
* @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
228
|
+
* Configuration (optional).
|
|
229
|
+
* @param {string | null | undefined} [origin]
|
|
230
|
+
* Place in code where the message originates (example:
|
|
231
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
232
|
+
* @returns {never}
|
|
233
|
+
* Never.
|
|
234
|
+
* @throws {VFileMessage}
|
|
235
|
+
* Message.
|
|
236
|
+
*/
|
|
237
|
+
fail(t, e, r) {
|
|
238
|
+
const i = this.message(t, e, r);
|
|
239
|
+
throw i.fatal = !0, i;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Create an info message for `reason` associated with the file.
|
|
243
|
+
*
|
|
244
|
+
* The `fatal` field of the message is set to `undefined` (info; change
|
|
245
|
+
* likely not needed) and the `file` field is set to the current file path.
|
|
246
|
+
* The message is added to the `messages` field on `file`.
|
|
247
|
+
*
|
|
248
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
249
|
+
*
|
|
250
|
+
* @overload
|
|
251
|
+
* @param {string} reason
|
|
252
|
+
* @param {MessageOptions | null | undefined} [options]
|
|
253
|
+
* @returns {VFileMessage}
|
|
254
|
+
*
|
|
255
|
+
* @overload
|
|
256
|
+
* @param {string} reason
|
|
257
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
258
|
+
* @param {string | null | undefined} [origin]
|
|
259
|
+
* @returns {VFileMessage}
|
|
260
|
+
*
|
|
261
|
+
* @overload
|
|
262
|
+
* @param {string} reason
|
|
263
|
+
* @param {Point | Position | null | undefined} place
|
|
264
|
+
* @param {string | null | undefined} [origin]
|
|
265
|
+
* @returns {VFileMessage}
|
|
266
|
+
*
|
|
267
|
+
* @overload
|
|
268
|
+
* @param {string} reason
|
|
269
|
+
* @param {string | null | undefined} [origin]
|
|
270
|
+
* @returns {VFileMessage}
|
|
271
|
+
*
|
|
272
|
+
* @overload
|
|
273
|
+
* @param {Error | VFileMessage} cause
|
|
274
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
275
|
+
* @param {string | null | undefined} [origin]
|
|
276
|
+
* @returns {VFileMessage}
|
|
277
|
+
*
|
|
278
|
+
* @overload
|
|
279
|
+
* @param {Error | VFileMessage} cause
|
|
280
|
+
* @param {Point | Position | null | undefined} place
|
|
281
|
+
* @param {string | null | undefined} [origin]
|
|
282
|
+
* @returns {VFileMessage}
|
|
283
|
+
*
|
|
284
|
+
* @overload
|
|
285
|
+
* @param {Error | VFileMessage} cause
|
|
286
|
+
* @param {string | null | undefined} [origin]
|
|
287
|
+
* @returns {VFileMessage}
|
|
288
|
+
*
|
|
289
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
290
|
+
* Reason for message, should use markdown.
|
|
291
|
+
* @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
292
|
+
* Configuration (optional).
|
|
293
|
+
* @param {string | null | undefined} [origin]
|
|
294
|
+
* Place in code where the message originates (example:
|
|
295
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
296
|
+
* @returns {VFileMessage}
|
|
297
|
+
* Message.
|
|
298
|
+
*/
|
|
299
|
+
info(t, e, r) {
|
|
300
|
+
const i = this.message(t, e, r);
|
|
301
|
+
return i.fatal = void 0, i;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Create a message for `reason` associated with the file.
|
|
305
|
+
*
|
|
306
|
+
* The `fatal` field of the message is set to `false` (warning; change may be
|
|
307
|
+
* needed) and the `file` field is set to the current file path.
|
|
308
|
+
* The message is added to the `messages` field on `file`.
|
|
309
|
+
*
|
|
310
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
311
|
+
*
|
|
312
|
+
* @overload
|
|
313
|
+
* @param {string} reason
|
|
314
|
+
* @param {MessageOptions | null | undefined} [options]
|
|
315
|
+
* @returns {VFileMessage}
|
|
316
|
+
*
|
|
317
|
+
* @overload
|
|
318
|
+
* @param {string} reason
|
|
319
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
320
|
+
* @param {string | null | undefined} [origin]
|
|
321
|
+
* @returns {VFileMessage}
|
|
322
|
+
*
|
|
323
|
+
* @overload
|
|
324
|
+
* @param {string} reason
|
|
325
|
+
* @param {Point | Position | null | undefined} place
|
|
326
|
+
* @param {string | null | undefined} [origin]
|
|
327
|
+
* @returns {VFileMessage}
|
|
328
|
+
*
|
|
329
|
+
* @overload
|
|
330
|
+
* @param {string} reason
|
|
331
|
+
* @param {string | null | undefined} [origin]
|
|
332
|
+
* @returns {VFileMessage}
|
|
333
|
+
*
|
|
334
|
+
* @overload
|
|
335
|
+
* @param {Error | VFileMessage} cause
|
|
336
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
337
|
+
* @param {string | null | undefined} [origin]
|
|
338
|
+
* @returns {VFileMessage}
|
|
339
|
+
*
|
|
340
|
+
* @overload
|
|
341
|
+
* @param {Error | VFileMessage} cause
|
|
342
|
+
* @param {Point | Position | null | undefined} place
|
|
343
|
+
* @param {string | null | undefined} [origin]
|
|
344
|
+
* @returns {VFileMessage}
|
|
345
|
+
*
|
|
346
|
+
* @overload
|
|
347
|
+
* @param {Error | VFileMessage} cause
|
|
348
|
+
* @param {string | null | undefined} [origin]
|
|
349
|
+
* @returns {VFileMessage}
|
|
350
|
+
*
|
|
351
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
352
|
+
* Reason for message, should use markdown.
|
|
353
|
+
* @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
354
|
+
* Configuration (optional).
|
|
355
|
+
* @param {string | null | undefined} [origin]
|
|
356
|
+
* Place in code where the message originates (example:
|
|
357
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
358
|
+
* @returns {VFileMessage}
|
|
359
|
+
* Message.
|
|
360
|
+
*/
|
|
361
|
+
message(t, e, r) {
|
|
362
|
+
const i = new c(
|
|
363
|
+
// @ts-expect-error: the overloads are fine.
|
|
364
|
+
t,
|
|
365
|
+
e,
|
|
366
|
+
r
|
|
367
|
+
);
|
|
368
|
+
return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Serialize the file.
|
|
372
|
+
*
|
|
373
|
+
* > **Note**: which encodings are supported depends on the engine.
|
|
374
|
+
* > For info on Node.js, see:
|
|
375
|
+
* > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.
|
|
376
|
+
*
|
|
377
|
+
* @param {string | null | undefined} [encoding='utf8']
|
|
378
|
+
* Character encoding to understand `value` as when it’s a `Uint8Array`
|
|
379
|
+
* (default: `'utf-8'`).
|
|
380
|
+
* @returns {string}
|
|
381
|
+
* Serialized file.
|
|
382
|
+
*/
|
|
383
|
+
toString(t) {
|
|
384
|
+
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function o(s, t) {
|
|
388
|
+
if (s && s.includes(n.sep))
|
|
389
|
+
throw new Error(
|
|
390
|
+
"`" + t + "` cannot be a path: did not expect `" + n.sep + "`"
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
function m(s, t) {
|
|
394
|
+
if (!s)
|
|
395
|
+
throw new Error("`" + t + "` cannot be empty");
|
|
396
|
+
}
|
|
397
|
+
function d(s, t) {
|
|
398
|
+
if (!s)
|
|
399
|
+
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
400
|
+
}
|
|
401
|
+
function l(s) {
|
|
402
|
+
return !!(s && typeof s == "object" && "byteLength" in s && "byteOffset" in s);
|
|
403
|
+
}
|
|
404
|
+
export {
|
|
405
|
+
E as VFile
|
|
406
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const w = { basename: c, dirname: u, extname: g, join: h, sep: "/" };
|
|
2
|
+
function c(t, n) {
|
|
3
|
+
if (n !== void 0 && typeof n != "string")
|
|
4
|
+
throw new TypeError('"ext" argument must be a string');
|
|
5
|
+
s(t);
|
|
6
|
+
let e = 0, l = -1, i = t.length, f;
|
|
7
|
+
if (n === void 0 || n.length === 0 || n.length > t.length) {
|
|
8
|
+
for (; i--; )
|
|
9
|
+
if (t.codePointAt(i) === 47) {
|
|
10
|
+
if (f) {
|
|
11
|
+
e = i + 1;
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
} else l < 0 && (f = !0, l = i + 1);
|
|
15
|
+
return l < 0 ? "" : t.slice(e, l);
|
|
16
|
+
}
|
|
17
|
+
if (n === t)
|
|
18
|
+
return "";
|
|
19
|
+
let o = -1, r = n.length - 1;
|
|
20
|
+
for (; i--; )
|
|
21
|
+
if (t.codePointAt(i) === 47) {
|
|
22
|
+
if (f) {
|
|
23
|
+
e = i + 1;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
} else
|
|
27
|
+
o < 0 && (f = !0, o = i + 1), r > -1 && (t.codePointAt(i) === n.codePointAt(r--) ? r < 0 && (l = i) : (r = -1, l = o));
|
|
28
|
+
return e === l ? l = o : l < 0 && (l = t.length), t.slice(e, l);
|
|
29
|
+
}
|
|
30
|
+
function u(t) {
|
|
31
|
+
if (s(t), t.length === 0)
|
|
32
|
+
return ".";
|
|
33
|
+
let n = -1, e = t.length, l;
|
|
34
|
+
for (; --e; )
|
|
35
|
+
if (t.codePointAt(e) === 47) {
|
|
36
|
+
if (l) {
|
|
37
|
+
n = e;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
} else l || (l = !0);
|
|
41
|
+
return n < 0 ? t.codePointAt(0) === 47 ? "/" : "." : n === 1 && t.codePointAt(0) === 47 ? "//" : t.slice(0, n);
|
|
42
|
+
}
|
|
43
|
+
function g(t) {
|
|
44
|
+
s(t);
|
|
45
|
+
let n = t.length, e = -1, l = 0, i = -1, f = 0, o;
|
|
46
|
+
for (; n--; ) {
|
|
47
|
+
const r = t.codePointAt(n);
|
|
48
|
+
if (r === 47) {
|
|
49
|
+
if (o) {
|
|
50
|
+
l = n + 1;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
e < 0 && (o = !0, e = n + 1), r === 46 ? i < 0 ? i = n : f !== 1 && (f = 1) : i > -1 && (f = -1);
|
|
56
|
+
}
|
|
57
|
+
return i < 0 || e < 0 || // We saw a non-dot character immediately before the dot.
|
|
58
|
+
f === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
59
|
+
f === 1 && i === e - 1 && i === l + 1 ? "" : t.slice(i, e);
|
|
60
|
+
}
|
|
61
|
+
function h(...t) {
|
|
62
|
+
let n = -1, e;
|
|
63
|
+
for (; ++n < t.length; )
|
|
64
|
+
s(t[n]), t[n] && (e = e === void 0 ? t[n] : e + "/" + t[n]);
|
|
65
|
+
return e === void 0 ? "." : P(e);
|
|
66
|
+
}
|
|
67
|
+
function P(t) {
|
|
68
|
+
s(t);
|
|
69
|
+
const n = t.codePointAt(0) === 47;
|
|
70
|
+
let e = A(t, !n);
|
|
71
|
+
return e.length === 0 && !n && (e = "."), e.length > 0 && t.codePointAt(t.length - 1) === 47 && (e += "/"), n ? "/" + e : e;
|
|
72
|
+
}
|
|
73
|
+
function A(t, n) {
|
|
74
|
+
let e = "", l = 0, i = -1, f = 0, o = -1, r, d;
|
|
75
|
+
for (; ++o <= t.length; ) {
|
|
76
|
+
if (o < t.length)
|
|
77
|
+
r = t.codePointAt(o);
|
|
78
|
+
else {
|
|
79
|
+
if (r === 47)
|
|
80
|
+
break;
|
|
81
|
+
r = 47;
|
|
82
|
+
}
|
|
83
|
+
if (r === 47) {
|
|
84
|
+
if (!(i === o - 1 || f === 1)) if (i !== o - 1 && f === 2) {
|
|
85
|
+
if (e.length < 2 || l !== 2 || e.codePointAt(e.length - 1) !== 46 || e.codePointAt(e.length - 2) !== 46) {
|
|
86
|
+
if (e.length > 2) {
|
|
87
|
+
if (d = e.lastIndexOf("/"), d !== e.length - 1) {
|
|
88
|
+
d < 0 ? (e = "", l = 0) : (e = e.slice(0, d), l = e.length - 1 - e.lastIndexOf("/")), i = o, f = 0;
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
} else if (e.length > 0) {
|
|
92
|
+
e = "", l = 0, i = o, f = 0;
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
n && (e = e.length > 0 ? e + "/.." : "..", l = 2);
|
|
97
|
+
} else
|
|
98
|
+
e.length > 0 ? e += "/" + t.slice(i + 1, o) : e = t.slice(i + 1, o), l = o - i - 1;
|
|
99
|
+
i = o, f = 0;
|
|
100
|
+
} else r === 46 && f > -1 ? f++ : f = -1;
|
|
101
|
+
}
|
|
102
|
+
return e;
|
|
103
|
+
}
|
|
104
|
+
function s(t) {
|
|
105
|
+
if (typeof t != "string")
|
|
106
|
+
throw new TypeError(
|
|
107
|
+
"Path must be a string. Received " + JSON.stringify(t)
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
export {
|
|
111
|
+
w as minpath
|
|
112
|
+
};
|