From 98ea54fc053b8fa2eadf138182d83984f8a84d75 Mon Sep 17 00:00:00 2001 From: Yuriy Demidov Date: Wed, 25 Dec 2024 17:35:25 +0300 Subject: [PATCH] fix: fixed imports with relative paths (#540) --- src/bundle/Editor.ts | 2 +- src/bundle/config/wysiwyg.ts | 3 +-- src/extensions/additional/GPT/actions.ts | 2 +- src/extensions/additional/GPT/gptExtension/view.tsx | 3 +-- src/markup/codemirror/autocomplete/emptyRow.ts | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/bundle/Editor.ts b/src/bundle/Editor.ts index b5b68d99..32ccd47a 100644 --- a/src/bundle/Editor.ts +++ b/src/bundle/Editor.ts @@ -11,7 +11,7 @@ import { WysiwygEditor, type WysiwygEditorOptions, } from '../core'; -import {TransformFn} from '../core/markdown/ProseMirrorTransformer'; +import type {TransformFn} from '../core/markdown/ProseMirrorTransformer'; import {ReactRenderStorage, type RenderStorage} from '../extensions'; import {i18n} from '../i18n/bundle'; import {logger} from '../logger'; diff --git a/src/bundle/config/wysiwyg.ts b/src/bundle/config/wysiwyg.ts index db9d1a38..ca014be3 100644 --- a/src/bundle/config/wysiwyg.ts +++ b/src/bundle/config/wysiwyg.ts @@ -1,8 +1,7 @@ /** * @deprecated This file is deprecated. Use ToolbarsPreset instead. */ -import {ActionStorage} from 'src/core'; - +import type {ActionStorage} from '../../core'; import {headingType, pType} from '../../extensions'; // for typings from Math import type {} from '../../extensions/additional/Math'; diff --git a/src/extensions/additional/GPT/actions.ts b/src/extensions/additional/GPT/actions.ts index 27f9c068..626fa15a 100644 --- a/src/extensions/additional/GPT/actions.ts +++ b/src/extensions/additional/GPT/actions.ts @@ -1,4 +1,4 @@ -import type {ActionSpec, ExtensionDeps} from 'src/core'; +import type {ActionSpec, ExtensionDeps} from '../../../core'; import {runGpt} from './commands'; diff --git a/src/extensions/additional/GPT/gptExtension/view.tsx b/src/extensions/additional/GPT/gptExtension/view.tsx index 6c07558b..28a68b04 100644 --- a/src/extensions/additional/GPT/gptExtension/view.tsx +++ b/src/extensions/additional/GPT/gptExtension/view.tsx @@ -8,9 +8,8 @@ import {TextSelection} from 'prosemirror-state'; import {EditorView} from 'prosemirror-view'; import {useMount} from 'react-use'; -import {Parser, Serializer} from 'src/core'; - import {cn} from '../../../../classname'; +import type {Parser, Serializer} from '../../../../core'; import {getReactRendererFromState} from '../../../behavior'; import type {CommonAnswer} from '../ErrorScreen/types'; import type {GptDialogProps} from '../GptDialog/GptDialog'; diff --git a/src/markup/codemirror/autocomplete/emptyRow.ts b/src/markup/codemirror/autocomplete/emptyRow.ts index 1714af5f..48b77e09 100644 --- a/src/markup/codemirror/autocomplete/emptyRow.ts +++ b/src/markup/codemirror/autocomplete/emptyRow.ts @@ -1,6 +1,6 @@ import {CompletionContext, CompletionResult, snippet} from '@codemirror/autocomplete'; -import {i18n} from '../../../../src/i18n/empty-row'; +import {i18n} from '../../../i18n/empty-row'; export const emptyRowSnippetTemplate = ' \n\n'; export const emptyRowSnippet = snippet(emptyRowSnippetTemplate);