mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #12481 from overleaf/td-history-remove-source-editor-imports
Remove accidental imports from source-editor module in history GitOrigin-RevId: 808597e113c3b1e74cacc712313af0e20b0e1786
This commit is contained in:
parent
470dcdedb7
commit
6b110cf4d0
1 changed files with 5 additions and 7 deletions
|
@ -2,20 +2,18 @@ import { useCallback, useEffect, useRef, useState } from 'react'
|
|||
import withErrorBoundary from '../../../../infrastructure/error-boundary'
|
||||
import { ErrorBoundaryFallback } from '../../../../shared/components/error-boundary-fallback'
|
||||
import { EditorState, Extension } from '@codemirror/state'
|
||||
import { EditorView } from '@codemirror/view'
|
||||
import { lineNumbers } from '../../../../../../modules/source-editor/frontend/js/extensions/line-numbers'
|
||||
import { EditorView, lineNumbers } from '@codemirror/view'
|
||||
import { indentationMarkers } from '@replit/codemirror-indentation-markers'
|
||||
import { highlights, setHighlightsEffect } from '../../extensions/highlights'
|
||||
import useScopeValue from '../../../../shared/hooks/use-scope-value'
|
||||
import {
|
||||
FontFamily,
|
||||
LineHeight,
|
||||
OverallTheme,
|
||||
} from '../../../../../../modules/source-editor/frontend/js/extensions/theme'
|
||||
import { theme, Options } from '../../extensions/theme'
|
||||
import { indentUnit } from '@codemirror/language'
|
||||
import { Highlight } from '../../services/types/doc'
|
||||
|
||||
type FontFamily = 'monaco' | 'lucida'
|
||||
type LineHeight = 'compact' | 'normal' | 'wide'
|
||||
type OverallTheme = '' | 'light-'
|
||||
|
||||
function extensions(themeOptions: Options): Extension[] {
|
||||
return [
|
||||
EditorView.editable.of(false),
|
||||
|
|
Loading…
Reference in a new issue