|
|
@@ -1,26 +1,26 @@
|
|
|
// allow only types to import from react
|
|
|
-import { ComponentType } from 'react';
|
|
|
+import type { ComponentType } from 'react';
|
|
|
|
|
|
import { isClient } from '@growi/core';
|
|
|
import * as drawioPlugin from '@growi/remark-drawio';
|
|
|
import growiDirective from '@growi/remark-growi-directive';
|
|
|
import { Lsx, LsxImmutable } from '@growi/remark-lsx/components';
|
|
|
import * as lsxGrowiPlugin from '@growi/remark-lsx/services/renderer';
|
|
|
-import { Schema as SanitizeOption } from 'hast-util-sanitize';
|
|
|
-import { SpecialComponents } from 'react-markdown/lib/ast-to-react';
|
|
|
-import { NormalComponents } from 'react-markdown/lib/complex-types';
|
|
|
-import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
|
|
|
+import type { Schema as SanitizeOption } from 'hast-util-sanitize';
|
|
|
+import type { SpecialComponents } from 'react-markdown/lib/ast-to-react';
|
|
|
+import type { NormalComponents } from 'react-markdown/lib/complex-types';
|
|
|
+import type { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
|
|
|
import katex from 'rehype-katex';
|
|
|
import raw from 'rehype-raw';
|
|
|
import sanitize, { defaultSchema as sanitizeDefaultSchema } from 'rehype-sanitize';
|
|
|
import slug from 'rehype-slug';
|
|
|
-import { HtmlElementNode } from 'rehype-toc';
|
|
|
+import type { HtmlElementNode } from 'rehype-toc';
|
|
|
import breaks from 'remark-breaks';
|
|
|
import emoji from 'remark-emoji';
|
|
|
import gfm from 'remark-gfm';
|
|
|
import math from 'remark-math';
|
|
|
import deepmerge from 'ts-deepmerge';
|
|
|
-import { PluggableList, Pluggable, PluginTuple } from 'unified';
|
|
|
+import type { PluggableList, Pluggable, PluginTuple } from 'unified';
|
|
|
|
|
|
|
|
|
import { CodeBlock } from '~/components/ReactMarkdownComponents/CodeBlock';
|
|
|
@@ -30,7 +30,7 @@ import { NextLink } from '~/components/ReactMarkdownComponents/NextLink';
|
|
|
import { Table } from '~/components/ReactMarkdownComponents/Table';
|
|
|
import { TableWithEditButton } from '~/components/ReactMarkdownComponents/TableWithEditButton';
|
|
|
import { RehypeSanitizeOption } from '~/interfaces/rehype';
|
|
|
-import { RendererConfig } from '~/interfaces/services/renderer';
|
|
|
+import type { RendererConfig } from '~/interfaces/services/renderer';
|
|
|
import { registerGrowiFacade } from '~/utils/growi-facade';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|