From 6555fc0aace4040c9abf09b0a76ff8a95fbfe0e9 Mon Sep 17 00:00:00 2001 From: Tony Li <runnabro@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:33:21 -0800 Subject: [PATCH 1/2] fix: add button labels (#1031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![PR App][icn]][demo] | Fix RM-XYZ :-------------------:|:----------: ## 🧰 Changes adds button labels to Lightbox ## 🧬 QA & Testing - [Broken on production][prod]. - [Working in this PR app][demo]. [demo]: https://markdown-pr-PR_NUMBER.herokuapp.com [prod]: https://SUBDOMAIN.readme.io [icn]: https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg --- __tests__/__snapshots__/index.test.js.snap | 2 +- __tests__/components/__snapshots__/index.test.ts.snap | 2 +- components/Image/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index c022784ac..6e5e64177 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -335,7 +335,7 @@ exports[`export multiple Markdown renderers > renders plain markdown as React 1` exports[`heading 1`] = `"<h2 class=\\"heading heading-2 header-scroll\\" align=\\"\\"><div class=\\"heading-anchor anchor waypoint\\" id=\\"example-header\\"></div><div class=\\"heading-text\\"><div id=\\"section-example-header\\" class=\\"heading-anchor_backwardsCompatibility\\"></div>Example Header</div><a aria-label=\\"Skip link to Example Header\\" class=\\"heading-anchor-icon fa fa-anchor\\" href=\\"#example-header\\"></a></h2>"`; -exports[`image 1`] = `"<span aria-label="Image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img " alt="Image" loading="lazy"></span></span>"`; +exports[`image 1`] = `"<span aria-label="Expand image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="http://example.com/image.png" width="auto" height="auto" title="" class="img " alt="Image" loading="lazy"></span></span>"`; exports[`list items 1`] = ` "<ul> diff --git a/__tests__/components/__snapshots__/index.test.ts.snap b/__tests__/components/__snapshots__/index.test.ts.snap index ccc35352c..36d29355f 100644 --- a/__tests__/components/__snapshots__/index.test.ts.snap +++ b/__tests__/components/__snapshots__/index.test.ts.snap @@ -10,4 +10,4 @@ exports[`Components > Embed 3`] = `"<div class="embed embed_hasImg"><a class="em exports[`Components > Embed 4`] = `"<div class="embed "><a class="embed-link" href="https://www.nytimes.com/2020/05/03/us/politics/george-w-bush-coronavirus-unity.html" rel="noopener noreferrer" target="_blank"><div class="embed-body"><small class="embed-provider">nytimes.com</small><div class="embed-title">rdmd</div></div></a></div>"`; -exports[`Components > Image 1`] = `"<span aria-label="Bro eats pizza and makes an OK gesture." class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img " alt="Bro eats pizza and makes an OK gesture." loading="lazy"></span></span>"`; +exports[`Components > Image 1`] = `"<span aria-label="Expand image" class="img lightbox closed" role="button" tabindex="0"><span class="lightbox-inner"><img src="https://files.readme.io/6f52e22-man-eating-pizza-and-making-an-ok-gesture.jpg" width="auto" height="auto" title="Pizza Face" class="img " alt="Bro eats pizza and makes an OK gesture." loading="lazy"></span></span>"`; diff --git a/components/Image/index.tsx b/components/Image/index.tsx index 11d319888..5899b3259 100644 --- a/components/Image/index.tsx +++ b/components/Image/index.tsx @@ -88,7 +88,7 @@ const Image = (Props: ImageProps) => { return ( <span - aria-label={alt} + aria-label={`${lightbox ? 'Collapse image' : 'Expand image'}`} className={`img lightbox ${lightbox ? 'open' : 'closed'}`} onClick={toggle} onKeyDown={handleKeyDown} From 21b759457ad53b56c8b601dcfa6ceb4f3144f8a9 Mon Sep 17 00:00:00 2001 From: Kelly Joseph Price <kellyjosephprice@gmail.com> Date: Thu, 21 Nov 2024 13:21:56 -0800 Subject: [PATCH 2/2] fix: dont bundle rdmd (#1032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![PR App][icn]][demo] | :-------------------:| ## 🧰 Changes Requires passing `rdmd` in as an option to the migration. Bundling `@readme/markdown@v6.87.1` was doubling the time it takes it import the dist. This can be a problem in `mdx-renderer` which does this with every request. ## 🧬 QA & Testing - [Broken on production][prod]. - [Working in this PR app][demo]. [demo]: https://markdown-pr-PR_NUMBER.herokuapp.com [prod]: https://SUBDOMAIN.readme.io [icn]: https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg --- __tests__/compilers/compatability.test.tsx | 1 + __tests__/helpers.ts | 7 +- __tests__/migration/emphasis.test.ts | 2 +- __tests__/migration/html-comments.test.ts | 2 +- __tests__/migration/html-entities.test.ts | 2 +- __tests__/migration/image.test.ts | 2 +- __tests__/migration/link-reference.test.ts | 2 +- __tests__/migration/magic-block.test.ts | 2 +- __tests__/migration/tables.test.ts | 2 +- lib/mdastV6.ts | 5 +- lib/migrate.ts | 4 +- package-lock.json | 302 +++++++++++---------- package.json | 2 +- processor/migration/table-cell.ts | 19 +- webpack.config.js | 5 +- 15 files changed, 186 insertions(+), 173 deletions(-) diff --git a/__tests__/compilers/compatability.test.tsx b/__tests__/compilers/compatability.test.tsx index 0fbce530d..6e01edc7a 100644 --- a/__tests__/compilers/compatability.test.tsx +++ b/__tests__/compilers/compatability.test.tsx @@ -4,6 +4,7 @@ import { vi } from 'vitest'; import { render, screen } from '@testing-library/react'; import { mdx, migrate, compile, run } from '../../index'; +import { migrate } from '../helpers'; describe('compatability with RDMD', () => { it('compiles glossary nodes', () => { diff --git a/__tests__/helpers.ts b/__tests__/helpers.ts index e47788abe..dffae1fb1 100644 --- a/__tests__/helpers.ts +++ b/__tests__/helpers.ts @@ -1,5 +1,6 @@ import { vi } from 'vitest'; -import { run, compile } from '../index'; +import * as rdmd from '@readme/markdown-legacy'; +import { run, compile, migrate as baseMigrate } from '../index'; export const silenceConsole = (prop: keyof Console = 'error', impl = () => {}) => @@ -20,3 +21,7 @@ export const execute = async (doc: string, compileOpts = {}, runOpts = {}) => { const module = await run(code, runOpts); return module.default; }; + +export const migrate = (doc: string) => { + return baseMigrate(doc, { rdmd }); +}; diff --git a/__tests__/migration/emphasis.test.ts b/__tests__/migration/emphasis.test.ts index 05113ee0b..fb164d277 100644 --- a/__tests__/migration/emphasis.test.ts +++ b/__tests__/migration/emphasis.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('migrating emphasis', () => { it('trims whitespace surrounding phrasing content (emphasis, strong, etc)', () => { diff --git a/__tests__/migration/html-comments.test.ts b/__tests__/migration/html-comments.test.ts index c8614a222..02453a55e 100644 --- a/__tests__/migration/html-comments.test.ts +++ b/__tests__/migration/html-comments.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('migrating html comments', () => { it('migrates escaped html comments', () => { diff --git a/__tests__/migration/html-entities.test.ts b/__tests__/migration/html-entities.test.ts index 8dc9d4b67..23f012f59 100644 --- a/__tests__/migration/html-entities.test.ts +++ b/__tests__/migration/html-entities.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('migrating html entities', () => { it('removes html entity spaces', () => { diff --git a/__tests__/migration/image.test.ts b/__tests__/migration/image.test.ts index b8c407007..812809ebc 100644 --- a/__tests__/migration/image.test.ts +++ b/__tests__/migration/image.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('migrating images', () => { it('compiles images', () => { diff --git a/__tests__/migration/link-reference.test.ts b/__tests__/migration/link-reference.test.ts index d0c28ccaa..6a4c2b2f3 100644 --- a/__tests__/migration/link-reference.test.ts +++ b/__tests__/migration/link-reference.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('mdx migration of link references', () => { it('compiles link references correctly', () => { diff --git a/__tests__/migration/magic-block.test.ts b/__tests__/migration/magic-block.test.ts index 7dff9c999..e4a4fedbc 100644 --- a/__tests__/migration/magic-block.test.ts +++ b/__tests__/migration/magic-block.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('migrating magic blocks', () => { it('compiles magic blocks without enough newlines', () => { diff --git a/__tests__/migration/tables.test.ts b/__tests__/migration/tables.test.ts index 971b83aa1..255d5ec8e 100644 --- a/__tests__/migration/tables.test.ts +++ b/__tests__/migration/tables.test.ts @@ -1,4 +1,4 @@ -import { migrate } from '../../index'; +import { migrate } from '../helpers'; describe('mdx migration of tables', () => { it('compiles tables with newlines and inline code', () => { diff --git a/lib/mdastV6.ts b/lib/mdastV6.ts index dc2c1fa4a..7910d1ae4 100644 --- a/lib/mdastV6.ts +++ b/lib/mdastV6.ts @@ -1,15 +1,14 @@ -import * as rdmd from '@readme/markdown-legacy'; import migrationTransformers from '../processor/migration'; const migrationNormalize = (doc: string) => { return doc.replaceAll(/^(<!--.*?)\\-->$/gms, '$1-->'); }; -const mdastV6: any = (doc: string) => { +const mdastV6: any = (doc: string, { rdmd }) => { const [_normalizedDoc] = rdmd.setup(doc); const normalizedDoc = migrationNormalize(_normalizedDoc); - const proc = rdmd.processor().use(migrationTransformers); + const proc = rdmd.processor().use(migrationTransformers).data('rdmd', rdmd); const tree = proc.parse(normalizedDoc); proc.runSync(tree, normalizedDoc); diff --git a/lib/migrate.ts b/lib/migrate.ts index c52adf7d8..4b860112f 100644 --- a/lib/migrate.ts +++ b/lib/migrate.ts @@ -1,8 +1,8 @@ import mdx from './mdx'; import mdastV6 from './mdastV6'; -const migrate = (doc: string): string => { - return mdx(mdastV6(doc)).replaceAll(/ /g, ' '); +const migrate = (doc: string, { rdmd }): string => { + return mdx(mdastV6(doc, { rdmd })).replaceAll(/ /g, ' '); }; export default migrate; diff --git a/package-lock.json b/package-lock.json index 24761c441..ce65b1526 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,6 +58,7 @@ "@commitlint/config-angular": "^19", "@commitlint/config-conventional": "^19", "@readme/eslint-config": "^14.0.0", + "@readme/markdown-legacy": "npm:@readme/markdown@^6.87.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/jest-dom": "^6.4.2", @@ -110,7 +111,6 @@ }, "peerDependencies": { "@mdx-js/react": "^3.0.0", - "@readme/markdown-legacy": "npm:@readme/markdown@^6.87.1", "@readme/variable": "^16.1.0", "@tippyjs/react": "^4.1.0", "react": "16.x || 17.x || 18.x", @@ -4487,7 +4487,7 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/@mapbox/hast-util-table-cell-style/-/hast-util-table-cell-style-0.2.1.tgz", "integrity": "sha512-LyQz4XJIdCdY/+temIhD/Ed0x/p4GAOUycpFSEK2Ads1CPKZy6b7V/2ROEtQiLLQ8soIs0xe/QAoR6kwpyW/yw==", - "peer": true, + "dev": true, "dependencies": { "unist-util-visit": "^1.4.1" }, @@ -4499,13 +4499,13 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-3.0.0.tgz", "integrity": "sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==", - "peer": true + "dev": true }, "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-1.4.1.tgz", "integrity": "sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw==", - "peer": true, + "dev": true, "dependencies": { "unist-util-visit-parents": "^2.0.0" } @@ -4514,7 +4514,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz", "integrity": "sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g==", - "peer": true, + "dev": true, "dependencies": { "unist-util-is": "^3.0.0" } @@ -5325,8 +5325,8 @@ "version": "6.87.1", "resolved": "https://registry.npmjs.org/@readme/markdown/-/markdown-6.87.1.tgz", "integrity": "sha512-4wCCxdQU7YGCpF1a0BkOiiDZQs6Tv01s3OpDzI6fcHVj+zCdI2fOBfkHxokxDWi0cGzleuy8X/4nRUpV87DjVg==", + "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@readme/syntax-highlighter": "^13.0.0", "copy-to-clipboard": "^3.3.3", @@ -5368,7 +5368,7 @@ "version": "3.0.15", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2" } @@ -5377,13 +5377,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/@readme/markdown-legacy/node_modules/bail": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5393,7 +5393,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5403,7 +5403,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5413,7 +5413,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.4.tgz", "integrity": "sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5423,7 +5423,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5433,7 +5433,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5443,7 +5443,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5453,7 +5453,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", - "peer": true, + "dev": true, "dependencies": { "format": "^0.2.0" }, @@ -5466,7 +5466,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5476,7 +5476,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "peer": true, + "dev": true, "dependencies": { "is-alphabetical": "^1.0.0", "is-decimal": "^1.0.0" @@ -5490,7 +5490,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5500,7 +5500,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5510,7 +5510,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "peer": true, + "dev": true, "engines": { "node": ">=8" } @@ -5519,7 +5519,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-2.0.4.tgz", "integrity": "sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5529,7 +5529,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz", "integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==", - "peer": true, + "dev": true, "dependencies": { "repeat-string": "^1.0.0" }, @@ -5542,7 +5542,7 @@ "version": "10.2.0", "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.2.0.tgz", "integrity": "sha512-JoPBfJ3gBnHZ18icCwHR50orC9kNH81tiR1gs01D8Q5YpV6adHNO9nKNuFBCJQ941/32PT1a63UF/DitmS3amQ==", - "peer": true, + "dev": true, "dependencies": { "@types/mdast": "^3.0.0", "@types/unist": "^2.0.0", @@ -5562,7 +5562,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5572,7 +5572,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -5587,7 +5587,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -5601,7 +5601,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5611,7 +5611,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-2.0.0.tgz", "integrity": "sha512-uNOQt4tO14qBFWXenF0MLC4cqo3dv8qiHPGyjCl1rwOT0LomSHpcElbjjVh5CwzElInB38HD8aSRVugKQjeyHA==", - "peer": true, + "dev": true, "dependencies": { "fault": "^1.0.1" }, @@ -5624,7 +5624,7 @@ "version": "8.0.3", "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.3.tgz", "integrity": "sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==", - "peer": true, + "dev": true, "dependencies": { "ccount": "^1.0.0", "collapse-white-space": "^1.0.2", @@ -5652,7 +5652,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "peer": true, + "dev": true, "dependencies": { "character-entities": "^1.0.0", "character-entities-legacy": "^1.0.0", @@ -5670,7 +5670,7 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-8.1.0.tgz", "integrity": "sha512-EbCu9kHgAxKmW1yEYjx3QafMyGY3q8noUbNUI5xyKbaFP89wbhDrKxyIQNukNYthzjNHZu6J7hwFg7hRm1svYA==", - "peer": true, + "dev": true, "dependencies": { "mdast-util-to-hast": "^10.2.0" }, @@ -5683,7 +5683,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/remark-slug/-/remark-slug-6.1.0.tgz", "integrity": "sha512-oGCxDF9deA8phWvxFuyr3oSJsdyUAxMFbA0mZ7Y1Sas+emILtO+e5WutF9564gDsEN4IXaQXm5pFo6MLH+YmwQ==", - "peer": true, + "dev": true, "dependencies": { "github-slugger": "^1.0.0", "mdast-util-to-string": "^1.0.0", @@ -5698,7 +5698,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5708,7 +5708,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -5723,7 +5723,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -5737,7 +5737,7 @@ "version": "8.1.1", "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-8.1.1.tgz", "integrity": "sha512-q4EyPZT3PcA3Eq7vPpT6bIdokXzFGp9i85igjmhRyXWmPs0Y6/d2FYwUNotKAWyLch7g0ASZJn/KHHcHZQ163A==", - "peer": true, + "dev": true, "dependencies": { "ccount": "^1.0.0", "is-alphanumeric": "^1.0.0", @@ -5763,7 +5763,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "peer": true, + "dev": true, "dependencies": { "character-entities": "^1.0.0", "character-entities-legacy": "^1.0.0", @@ -5781,7 +5781,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-3.1.0.tgz", "integrity": "sha512-3FP+jGMmMV/ffZs86MoghGqAoqXAdxLrJP4GUdrDN1aIScYih5tuIO3eF4To5AJZ79KDZ8Fpdy7QJnK8SsL1Vg==", - "peer": true, + "dev": true, "dependencies": { "character-entities-html4": "^1.0.0", "character-entities-legacy": "^1.0.0", @@ -5797,13 +5797,13 @@ "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==", "deprecated": "Use String.prototype.trim() instead", - "peer": true + "dev": true }, "node_modules/@readme/markdown-legacy/node_modules/trim-trailing-lines": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5813,7 +5813,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5823,7 +5823,7 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", - "peer": true, + "dev": true, "dependencies": { "bail": "^1.0.0", "extend": "^3.0.0", @@ -5841,7 +5841,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0" }, @@ -5854,7 +5854,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/unist-util-map/-/unist-util-map-3.1.3.tgz", "integrity": "sha512-4/mDauoxqZ6geK97lJ6n2kDk6JK88Vh+hWMSJqyaaP/7eqN1dDhjcjnNxKNm3YU6Sw7PVJtcFMUbnmHvYzb6Vg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0" }, @@ -5867,7 +5867,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5877,7 +5877,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz", "integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==", - "peer": true, + "dev": true, "dependencies": { "unist-util-visit": "^2.0.0" }, @@ -5890,7 +5890,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5900,7 +5900,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -5915,7 +5915,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -5929,7 +5929,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.2" }, @@ -5942,7 +5942,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^5.0.0", @@ -5957,7 +5957,7 @@ "version": "5.1.3", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^5.0.0" @@ -5971,7 +5971,7 @@ "version": "4.2.1", "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "is-buffer": "^2.0.0", @@ -5987,7 +5987,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -5997,7 +5997,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-stringify-position": "^2.0.0" @@ -6011,7 +6011,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -7647,7 +7647,7 @@ "version": "5.0.3", "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz", "integrity": "sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==", - "peer": true + "dev": true }, "node_modules/@types/prop-types": { "version": "15.7.12", @@ -9717,7 +9717,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "peer": true + "dev": true }, "node_modules/bottleneck": { "version": "2.19.5", @@ -11215,7 +11215,7 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-1.4.1.tgz", "integrity": "sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g==", - "peer": true + "dev": true }, "node_modules/css.escape": { "version": "1.5.1", @@ -15402,7 +15402,8 @@ "node_modules/github-slugger": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.5.0.tgz", - "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==" + "integrity": "sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==", + "dev": true }, "node_modules/glob": { "version": "7.2.3", @@ -15970,7 +15971,7 @@ "version": "9.0.1", "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.3", "comma-separated-tokens": "^1.0.0", @@ -15989,13 +15990,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/hast-to-hyperscript/node_modules/comma-separated-tokens": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -16005,7 +16006,7 @@ "version": "5.6.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", - "peer": true, + "dev": true, "dependencies": { "xtend": "^4.0.0" }, @@ -16018,7 +16019,7 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -16028,7 +16029,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", - "peer": true, + "dev": true, "dependencies": { "inline-style-parser": "0.1.1" } @@ -16037,7 +16038,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -16047,7 +16048,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -16057,7 +16058,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -17069,7 +17070,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz", "integrity": "sha512-ZmRL7++ZkcMOfDuWZuMJyIVLr2keE1o/DeNWh1EmgqGhUcV+9BIVsx0BcSBOHTZqzjs4+dISzr2KAeBEWGgXeA==", - "peer": true, + "dev": true, "engines": { "node": ">=0.10.0" } @@ -17182,6 +17183,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "dev": true, "funding": [ { "type": "github", @@ -17639,7 +17641,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -17658,7 +17660,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -21162,7 +21164,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -21251,7 +21253,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-2.0.1.tgz", "integrity": "sha512-7GlnT24gEwDrdAwEHrU4Vv5lLWrEer4KOkAiKT9nYstsTad7Oc1TwqT2zIMKRdZF7cTuaf+GA1E4Kv7jJh8mPA==", - "peer": true, + "dev": true, "dependencies": { "unist-util-visit": "^2.0.0" }, @@ -21264,13 +21266,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/mdast-util-compact/node_modules/unist-util-is": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -21280,7 +21282,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -21295,7 +21297,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -21309,7 +21311,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", - "peer": true, + "dev": true, "dependencies": { "unist-util-visit": "^2.0.0" }, @@ -21322,13 +21324,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/mdast-util-definitions/node_modules/unist-util-is": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -21338,7 +21340,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -21353,7 +21355,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -21677,7 +21679,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/mdast-util-toc/-/mdast-util-toc-5.1.0.tgz", "integrity": "sha512-csimbRIVkiqc+PpFeKDGQ/Ck2N4f9FYH3zzBMMJzcxoKL8m+cM0n94xXm0I9eaxHnKdY9n145SGTdyJC7i273g==", - "peer": true, + "dev": true, "dependencies": { "@types/mdast": "^3.0.3", "@types/unist": "^2.0.3", @@ -21696,7 +21698,7 @@ "version": "3.0.15", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2" } @@ -21705,13 +21707,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/mdast-util-toc/node_modules/mdast-util-to-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -21721,7 +21723,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -21731,7 +21733,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -21746,7 +21748,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -21760,7 +21762,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "peer": true + "dev": true }, "node_modules/media-typer": { "version": "0.3.0", @@ -26728,7 +26730,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "peer": true, + "dev": true, "dependencies": { "boolbase": "^1.0.0" }, @@ -28816,7 +28818,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-5.1.0.tgz", "integrity": "sha512-MDvHAb/5mUnif2R+0IPCYJU8WjHa9UzGtM/F4AVy5GixPlDZ1z3HacYy4xojDU+uBa+0X/3PIfyQI26/2ljJNA==", - "peer": true, + "dev": true, "dependencies": { "hast-util-raw": "^6.1.0" }, @@ -28829,7 +28831,7 @@ "version": "2.3.10", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2" } @@ -28838,13 +28840,13 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/rehype-raw/node_modules/comma-separated-tokens": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -28854,7 +28856,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-6.0.1.tgz", "integrity": "sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==", - "peer": true, + "dev": true, "dependencies": { "@types/parse5": "^5.0.0", "hastscript": "^6.0.0", @@ -28872,7 +28874,7 @@ "version": "2.2.5", "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -28882,7 +28884,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-6.1.0.tgz", "integrity": "sha512-5FoZLDHBpka20OlZZ4I/+RBw5piVQ8iI1doEvffQhx5CbCyTtP8UCq8Tw6NmTAMtXgsQxmhW7Ly8OdFre5/YMQ==", - "peer": true, + "dev": true, "dependencies": { "@types/hast": "^2.0.0", "hast-util-from-parse5": "^6.0.0", @@ -28905,7 +28907,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-6.0.0.tgz", "integrity": "sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==", - "peer": true, + "dev": true, "dependencies": { "hast-to-hyperscript": "^9.0.0", "property-information": "^5.0.0", @@ -28922,7 +28924,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", - "peer": true, + "dev": true, "dependencies": { "@types/hast": "^2.0.0", "comma-separated-tokens": "^1.0.0", @@ -28939,7 +28941,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -28949,13 +28951,13 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "peer": true + "dev": true }, "node_modules/rehype-raw/node_modules/property-information": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", - "peer": true, + "dev": true, "dependencies": { "xtend": "^4.0.0" }, @@ -28968,7 +28970,7 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -28978,7 +28980,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -28988,7 +28990,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -28998,7 +29000,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.2" }, @@ -29011,7 +29013,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0", @@ -29026,7 +29028,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-is": "^4.0.0" @@ -29040,7 +29042,7 @@ "version": "4.2.1", "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "is-buffer": "^2.0.0", @@ -29056,7 +29058,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -29066,7 +29068,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "unist-util-stringify-position": "^2.0.0" @@ -29080,7 +29082,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29090,7 +29092,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -29099,7 +29101,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29109,7 +29111,7 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/rehype-react/-/rehype-react-6.2.1.tgz", "integrity": "sha512-f9KIrjktvLvmbGc7si25HepocOg4z0MuNOtweigKzBcDjiGSTGhyz6VSgaV5K421Cq1O+z4/oxRJ5G9owo0KVg==", - "peer": true, + "dev": true, "dependencies": { "@mapbox/hast-util-table-cell-style": "^0.2.0", "hast-to-hyperscript": "^9.0.0" @@ -29153,7 +29155,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/rehype-sanitize/-/rehype-sanitize-4.0.0.tgz", "integrity": "sha512-ZCr/iQRr4JeqPjun5i9CHHILVY7i45VnLu1CkkibDrSyFQ7dTLSvw8OIQpHhS4RSh9h/9GidxFw1bRb0LOxIag==", - "peer": true, + "dev": true, "dependencies": { "hast-util-sanitize": "^3.0.0" }, @@ -29166,7 +29168,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-3.0.2.tgz", "integrity": "sha512-+2I0x2ZCAyiZOO/sb4yNLFmdwPBnyJ4PBkVTUMKMqBwYNA+lXSgOmoRXlJFazoyid9QPogRRKgKhVEodv181sA==", - "peer": true, + "dev": true, "dependencies": { "xtend": "^4.0.0" }, @@ -29179,7 +29181,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -29233,7 +29235,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/rehype-stringify/-/rehype-stringify-6.0.1.tgz", "integrity": "sha512-JfEPRDD4DiG7jet4md7sY07v6ACeb2x+9HWQtRPm2iA6/ic31hCv1SNBUtpolJASxQ/D8gicXiviW4TJKEMPKQ==", - "peer": true, + "dev": true, "dependencies": { "hast-util-to-html": "^6.0.0", "xtend": "^4.0.0" @@ -29247,7 +29249,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29257,7 +29259,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.4.tgz", "integrity": "sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29267,7 +29269,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29277,7 +29279,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29287,7 +29289,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-1.1.0.tgz", "integrity": "sha512-oUmNua0bFbdrD/ELDSSEadRVtWZOf3iF6Lbv81naqsIV99RnSCieTbWuWCY8BAeEfKJTKl0gRdokv+dELutHGQ==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -29297,7 +29299,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-6.1.0.tgz", "integrity": "sha512-IlC+LG2HGv0Y8js3wqdhg9O2sO4iVpRDbHOPwXd7qgeagpGsnY49i8yyazwqS35RA35WCzrBQE/n0M6GG/ewxA==", - "peer": true, + "dev": true, "dependencies": { "ccount": "^1.0.0", "comma-separated-tokens": "^1.0.1", @@ -29319,7 +29321,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-1.0.4.tgz", "integrity": "sha512-I5GTdSfhYfAPNztx2xJRQpG8cuDSNt599/7YUn7Gx/WxNMsG+a835k97TDkFgk123cwjfwINaZknkKkphx/f2A==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -29329,7 +29331,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29339,7 +29341,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29349,7 +29351,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "peer": true, + "dev": true, "dependencies": { "is-alphabetical": "^1.0.0", "is-decimal": "^1.0.0" @@ -29363,7 +29365,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29373,7 +29375,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29383,7 +29385,7 @@ "version": "5.6.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", - "peer": true, + "dev": true, "dependencies": { "xtend": "^4.0.0" }, @@ -29396,7 +29398,7 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -29406,7 +29408,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-2.0.0.tgz", "integrity": "sha512-fqqhZzXyAM6pGD9lky/GOPq6V4X0SeTAFBl0iXb/BzOegl40gpf/bV3QQP7zULNYvjr6+Dx8SCaDULjVoOru0A==", - "peer": true, + "dev": true, "dependencies": { "character-entities-html4": "^1.0.0", "character-entities-legacy": "^1.0.0", @@ -29419,13 +29421,13 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-3.0.0.tgz", "integrity": "sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==", - "peer": true + "dev": true }, "node_modules/rehype-stringify/node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -29449,7 +29451,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/remark-breaks/-/remark-breaks-1.0.5.tgz", "integrity": "sha512-lr8+TlJI273NjEqL27eUthPYPTCgXEj4NaLbnazS3bQaQL2FySlsbtgo52gE36fE1gWeQgkn1VdmWsoT+uA7FA==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -29459,7 +29461,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/remark-disable-tokenizers/-/remark-disable-tokenizers-1.1.1.tgz", "integrity": "sha512-KhxfswvMKNTicVaprWc21i8zbBLIf6wwCbn3cvnCP1400Sgd2eCSm4maKUkj3uNkVyCKp3u5BNRaXPxJ9gM99A==", - "peer": true, + "dev": true, "dependencies": { "clone": "^2.1.2" } @@ -29468,7 +29470,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "peer": true, + "dev": true, "engines": { "node": ">=0.8" } @@ -29743,7 +29745,7 @@ "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "peer": true, + "dev": true, "engines": { "node": ">=0.10" } @@ -31210,7 +31212,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==", - "peer": true, + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -32702,7 +32704,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", - "peer": true, + "dev": true, "dependencies": { "inherits": "^2.0.0", "xtend": "^4.0.0" @@ -32716,7 +32718,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.4" } @@ -32858,7 +32860,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -32886,7 +32888,7 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==", - "peer": true, + "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -32958,7 +32960,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/unist-util-select/-/unist-util-select-4.0.3.tgz", "integrity": "sha512-1074+K9VyR3NyUz3lgNtHKm7ln+jSZXtLJM4E22uVuoFn88a/Go2pX8dusrt/W+KWH1ncn8jcd8uCQuvXb/fXA==", - "peer": true, + "dev": true, "dependencies": { "@types/unist": "^2.0.0", "css-selector-parser": "^1.0.0", @@ -32974,7 +32976,7 @@ "version": "2.0.10", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==", - "peer": true + "dev": true }, "node_modules/unist-util-stringify-position": { "version": "4.0.0", diff --git a/package.json b/package.json index 8e00435c9..ae90b86fa 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,6 @@ }, "peerDependencies": { "@mdx-js/react": "^3.0.0", - "@readme/markdown-legacy": "npm:@readme/markdown@^6.87.1", "@readme/variable": "^16.1.0", "@tippyjs/react": "^4.1.0", "react": "16.x || 17.x || 18.x", @@ -81,6 +80,7 @@ "@commitlint/config-angular": "^19", "@commitlint/config-conventional": "^19", "@readme/eslint-config": "^14.0.0", + "@readme/markdown-legacy": "npm:@readme/markdown@^6.87.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/jest-dom": "^6.4.2", diff --git a/processor/migration/table-cell.ts b/processor/migration/table-cell.ts index fd097e20b..9564d5547 100644 --- a/processor/migration/table-cell.ts +++ b/processor/migration/table-cell.ts @@ -1,9 +1,12 @@ import type { Code, InlineCode, PhrasingContent, Root, Table, TableCell, TableRow } from 'mdast'; import type { VFile } from 'vfile'; -import * as rdmd from '@readme/markdown-legacy'; import { visit, SKIP } from 'unist-util-visit'; +interface RDMD { + mdast: (doc: string) => Root; +} + const magicIndex = (i: number, j: number) => `${i === 0 ? 'h' : `${i - 1}`}-${j}`; const isInlineHtml = node => node.type === 'html' && !node.block; @@ -30,7 +33,7 @@ const isInlineHtml = node => node.type === 'html' && !node.block; // something more standard. const psuedoListRegex = /^(?![ \t]*([*_]+).*\1[ \t]*$)(?<ws>[ \t]*)\\?([*_])\s*(?<item>.*)$/gm; -const migrateTableCells = (vfile: VFile) => (table: Table) => { +const migrateTableCells = (vfile: VFile, rdmd: RDMD) => (table: Table) => { let json; try { const { position } = table; @@ -60,7 +63,7 @@ const migrateTableCells = (vfile: VFile) => (table: Table) => { if (json && json.data[magicIndex(i, j)]) { const string = json.data[magicIndex(i, j)].replace(psuedoListRegex, '$<ws>- $<item>'); - children = rdmd.mdast(string).children; + children = rdmd.mdast(string).children as PhrasingContent[]; } cell.children = @@ -82,12 +85,14 @@ const migrateTableCells = (vfile: VFile) => (table: Table) => { }); }; -const tableCellTransformer = - () => - (tree: Root, vfile: VFile): Root => { - visit(tree, 'table', migrateTableCells(vfile)); +function tableCellTransformer() { + const rdmd = this.data('rdmd'); + + return (tree: Root, vfile: VFile): Root => { + visit(tree, 'table', migrateTableCells(vfile, rdmd)); return tree; }; +} export default tableCellTransformer; diff --git a/webpack.config.js b/webpack.config.js index 735b15d68..6e13f9743 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -82,7 +82,6 @@ const getConfig = ({ target }) => ({ const browserConfig = merge(getConfig({ target: 'web' }), { externals: { - '@readme/markdown-legacy': '@readme/markdown-legacy', '@readme/variable': '@readme/variable', '@tippyjs/react': '@tippyjs/react', mermaid: 'mermaid', @@ -120,7 +119,9 @@ const serverConfig = merge(getConfig({ target: 'node' }), { filename: '[name].node.js', }, externals: { - '@readme/markdown-legacy': '@readme/markdown-legacy', + '@readme/variable': '@readme/variable', + '@tippyjs/react': '@tippyjs/react', + mermaid: 'mermaid', react: { amd: 'react', commonjs: 'react',