From 6459a964d9e6f728e084ed5a5de30b3f8aba6c95 Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Tue, 5 Sep 2023 21:55:27 +0300 Subject: [PATCH] feat!: Remove direct dependency on @doc-tools/transform --- package.json | 4 +--- src/components/DocPage/DocPage.tsx | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index d49d969b..5402126e 100644 --- a/package.json +++ b/package.json @@ -82,11 +82,9 @@ }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0", - "react-dom": ">=16.8.0 || >=17.0.0 || >=18.0.0", - "@doc-tools/transform": "^3.10.2" + "react-dom": ">=16.8.0 || >=17.0.0 || >=18.0.0" }, "devDependencies": { - "@doc-tools/transform": "^3.10.2", "@gravity-ui/eslint-config": "^2.2.0", "@gravity-ui/prettier-config": "^1.0.1", "@gravity-ui/stylelint-config": "^3.0.0", diff --git a/src/components/DocPage/DocPage.tsx b/src/components/DocPage/DocPage.tsx index fd6f4e55..54865ed5 100644 --- a/src/components/DocPage/DocPage.tsx +++ b/src/components/DocPage/DocPage.tsx @@ -1,7 +1,6 @@ import React from 'react'; import block from 'bem-cn-lite'; -import '@doc-tools/transform/dist/js/yfm'; import ReactDOMServer from 'react-dom/server'; import {DEFAULT_SETTINGS} from '../../constants'; @@ -39,7 +38,6 @@ import {TocNavPanel} from '../TocNavPanel'; import LinkIcon from '../../../assets/icons/link.svg'; -import '@doc-tools/transform/dist/css/yfm.css'; import './DocPage.scss'; const b = block('dc-doc-page');