diff --git a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts index 8d58633a29c1b6..dfba590e8ffd70 100644 --- a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts +++ b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts @@ -6,7 +6,7 @@ import traverse from '@babel/traverse'; import * as _ from 'lodash'; import kebabCase from 'lodash/kebabCase'; import remark from 'remark'; -import remarkVisit from 'unist-util-visit'; +import { visit as remarkVisit } from 'unist-util-visit'; import type { Link } from 'mdast'; import { defaultHandlers, parse as docgenParse } from 'react-docgen'; import { renderMarkdown } from '@mui/internal-markdown'; diff --git a/packages/api-docs-builder/package.json b/packages/api-docs-builder/package.json index 22d362ff9d72f2..91212bb368b96d 100644 --- a/packages/api-docs-builder/package.json +++ b/packages/api-docs-builder/package.json @@ -23,7 +23,7 @@ "recast": "^0.23.9", "remark": "^13.0.0", "typescript": "^5.5.4", - "unist-util-visit": "^2.0.3" + "unist-util-visit": "^5.0.0" }, "devDependencies": { "@types/babel__core": "^7.20.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86c59cae7b2bb7..45861447eebfbb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1121,8 +1121,8 @@ importers: specifier: ^5.5.4 version: 5.5.4 unist-util-visit: - specifier: ^2.0.3 - version: 2.0.3 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@types/babel__core': specifier: ^7.20.5 @@ -12007,17 +12007,17 @@ packages: resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - unist-util-is@4.1.0: - resolution: {integrity: sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==} + unist-util-is@6.0.0: + resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==} unist-util-stringify-position@2.0.3: resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==} - unist-util-visit-parents@3.1.1: - resolution: {integrity: sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==} + unist-util-visit-parents@6.0.1: + resolution: {integrity: sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==} - unist-util-visit@2.0.3: - resolution: {integrity: sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==} + unist-util-visit@5.0.0: + resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==} universal-user-agent@6.0.0: resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==} @@ -24408,22 +24408,24 @@ snapshots: dependencies: imurmurhash: 0.1.4 - unist-util-is@4.1.0: {} + unist-util-is@6.0.0: + dependencies: + '@types/unist': 3.0.2 unist-util-stringify-position@2.0.3: dependencies: '@types/unist': 2.0.6 - unist-util-visit-parents@3.1.1: + unist-util-visit-parents@6.0.1: dependencies: - '@types/unist': 2.0.6 - unist-util-is: 4.1.0 + '@types/unist': 3.0.2 + unist-util-is: 6.0.0 - unist-util-visit@2.0.3: + unist-util-visit@5.0.0: dependencies: - '@types/unist': 2.0.6 - unist-util-is: 4.1.0 - unist-util-visit-parents: 3.1.1 + '@types/unist': 3.0.2 + unist-util-is: 6.0.0 + unist-util-visit-parents: 6.0.1 universal-user-agent@6.0.0: {}