From 0bf903775551efb4dd067a1bfeb94df3d6637dfe Mon Sep 17 00:00:00 2001 From: dan-thera Date: Thu, 2 May 2024 19:09:19 -0400 Subject: [PATCH] fix --- .gitignore | 5 +- packages/ui/app/package.json | 2 - .../src/mdx/__test__/rehypeFernCode.test.ts | 2 +- pnpm-lock.yaml | 87 ------------------- 4 files changed, 5 insertions(+), 91 deletions(-) diff --git a/.gitignore b/.gitignore index 4ba6a0ecfa..14226f2d8a 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,7 @@ lerna-debug.log* /blob-report/ /playwright/.cache/ -*storybook.log \ No newline at end of file +*storybook.log + +#ide +.idea/ \ No newline at end of file diff --git a/packages/ui/app/package.json b/packages/ui/app/package.json index df1e449829..393c622cea 100644 --- a/packages/ui/app/package.json +++ b/packages/ui/app/package.json @@ -63,7 +63,6 @@ "estree-util-visit": "^2.0.0", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "hast": "^1.0.0", "hast-util-heading-rank": "^3.0.0", "hast-util-to-estree": "^3.1.0", "hast-util-to-jsx-runtime": "^2.3.0", @@ -93,7 +92,6 @@ "react-intersection-observer": "^9.4.3", "react-medium-image-zoom": "^5.1.10", "react-virtuoso": "^4.7.7", - "rehype": "^13.0.1", "rehype-katex": "^7.0.0", "rehype-slug": "^6.0.0", "remark-gemoji": "^8.0.0", diff --git a/packages/ui/app/src/mdx/__test__/rehypeFernCode.test.ts b/packages/ui/app/src/mdx/__test__/rehypeFernCode.test.ts index dbdf2100d7..dc9fbe4e53 100644 --- a/packages/ui/app/src/mdx/__test__/rehypeFernCode.test.ts +++ b/packages/ui/app/src/mdx/__test__/rehypeFernCode.test.ts @@ -1,4 +1,4 @@ -import { Element } from "hast"; +import type { Element } from "hast"; import { parseBlockMetaString } from "../plugins/rehypeFernCode"; describe("parseBlockMetaString", () => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6abf24eab2..1496cf54a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -846,9 +846,6 @@ importers: gray-matter: specifier: ^4.0.3 version: 4.0.3 - hast: - specifier: ^1.0.0 - version: 1.0.0 hast-util-heading-rank: specifier: ^3.0.0 version: 3.0.0 @@ -936,9 +933,6 @@ importers: react-virtuoso: specifier: ^4.7.7 version: 4.7.7(react-dom@18.2.0)(react@18.2.0) - rehype: - specifier: ^13.0.1 - version: 13.0.1 rehype-katex: specifier: ^7.0.0 version: 7.0.0 @@ -14705,24 +14699,6 @@ packages: '@types/hast': 3.0.4 dev: false - /hast-util-raw@9.0.2: - resolution: {integrity: sha512-PldBy71wO9Uq1kyaMch9AHIghtQvIwxBUkv823pKmkTM3oV1JxtsTNYdevMxvUHqcnOAuO65JKU2+0NOxc2ksA==} - dependencies: - '@types/hast': 3.0.4 - '@types/unist': 3.0.2 - '@ungap/structured-clone': 1.2.0 - hast-util-from-parse5: 8.0.1 - hast-util-to-parse5: 8.0.0 - html-void-elements: 3.0.0 - mdast-util-to-hast: 13.1.0 - parse5: 7.1.2 - unist-util-position: 5.0.0 - unist-util-visit: 5.0.0 - vfile: 6.0.1 - web-namespaces: 2.0.1 - zwitch: 2.0.4 - dev: false - /hast-util-to-estree@3.1.0: resolution: {integrity: sha512-lfX5g6hqVh9kjS/B9E2gSkvHH4SZNiQFiqWS0x9fENzEl+8W12RqdRxX6d/Cwxi30tPQs3bIO+aolQJNp1bIyw==} dependencies: @@ -14745,23 +14721,6 @@ packages: transitivePeerDependencies: - supports-color - /hast-util-to-html@9.0.1: - resolution: {integrity: sha512-hZOofyZANbyWo+9RP75xIDV/gq+OUKx+T46IlwERnKmfpwp81XBFbT9mi26ws+SJchA4RVUQwIBJpqEOBhMzEQ==} - dependencies: - '@types/hast': 3.0.4 - '@types/unist': 3.0.2 - ccount: 2.0.1 - comma-separated-tokens: 2.0.3 - hast-util-raw: 9.0.2 - hast-util-whitespace: 3.0.0 - html-void-elements: 3.0.0 - mdast-util-to-hast: 13.1.0 - property-information: 6.4.1 - space-separated-tokens: 2.0.2 - stringify-entities: 4.0.3 - zwitch: 2.0.4 - dev: false - /hast-util-to-jsx-runtime@2.3.0: resolution: {integrity: sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==} dependencies: @@ -14783,18 +14742,6 @@ packages: transitivePeerDependencies: - supports-color - /hast-util-to-parse5@8.0.0: - resolution: {integrity: sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==} - dependencies: - '@types/hast': 3.0.4 - comma-separated-tokens: 2.0.3 - devlop: 1.1.0 - property-information: 6.4.1 - space-separated-tokens: 2.0.2 - web-namespaces: 2.0.1 - zwitch: 2.0.4 - dev: false - /hast-util-to-string@3.0.0: resolution: {integrity: sha512-OGkAxX1Ua3cbcW6EJ5pT/tslVb90uViVkcJ4ZZIMW/R33DX/AkcJcRrPebPwJkHYwlDHXz4aIwvAAaAdtrACFA==} dependencies: @@ -14814,11 +14761,6 @@ packages: dependencies: '@types/hast': 3.0.4 - /hast@1.0.0: - resolution: {integrity: sha512-vFUqlRV5C+xqP76Wwq2SrM0kipnmpxJm7OfvVXpB35Fp+Fn4MV+ozr+JZr5qFvyR1q/U+Foim2x+3P+x9S1PLA==} - deprecated: Renamed to rehype - dev: false - /hastscript@8.0.0: resolution: {integrity: sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==} dependencies: @@ -14931,10 +14873,6 @@ packages: selderee: 0.11.0 dev: false - /html-void-elements@3.0.0: - resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} - dev: false - /html-webpack-plugin@5.6.0(webpack@5.91.0): resolution: {integrity: sha512-iwaY4wzbe48AfKLZ/Cc8k0L+FKG6oSNRaZ8x5A/T/IVDGyXcbHncM9TdDa93wn0FsSm82FhTKW7f3vS61thXAw==} engines: {node: '>=10.13.0'} @@ -19803,14 +19741,6 @@ packages: vfile: 6.0.1 dev: false - /rehype-parse@9.0.0: - resolution: {integrity: sha512-WG7nfvmWWkCR++KEkZevZb/uw41E8TsH4DsY9UxsTbIXCVGbAs4S+r8FrQ+OtH5EEQAs+5UxKC42VinkmpA1Yw==} - dependencies: - '@types/hast': 3.0.4 - hast-util-from-html: 2.0.1 - unified: 11.0.4 - dev: false - /rehype-slug@6.0.0: resolution: {integrity: sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A==} dependencies: @@ -19820,23 +19750,6 @@ packages: hast-util-to-string: 3.0.0 unist-util-visit: 5.0.0 - /rehype-stringify@10.0.0: - resolution: {integrity: sha512-1TX1i048LooI9QoecrXy7nGFFbFSufxVRAfc6Y9YMRAi56l+oB0zP51mLSV312uRuvVLPV1opSlJmslozR1XHQ==} - dependencies: - '@types/hast': 3.0.4 - hast-util-to-html: 9.0.1 - unified: 11.0.4 - dev: false - - /rehype@13.0.1: - resolution: {integrity: sha512-AcSLS2mItY+0fYu9xKxOu1LhUZeBZZBx8//5HKzF+0XP+eP8+6a5MXn2+DW2kfXR6Dtp1FEXMVrjyKAcvcU8vg==} - dependencies: - '@types/hast': 3.0.4 - rehype-parse: 9.0.0 - rehype-stringify: 10.0.0 - unified: 11.0.4 - dev: false - /relateurl@0.2.7: resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==} engines: {node: '>= 0.10'}