Merge pull request #20381 from overleaf/ae-api-settings

Add "settings" object to global scope store

GitOrigin-RevId: 1d5c7c3a1b417be0726c4a5e95e611ded47c13c4
This commit is contained in:
Alf Eaton
2024-10-14 10:58:59 +00:00
committed by Copybot
parent 9e15c73228
commit 2c6aa3d4a7
8 changed files with 29 additions and 19 deletions
-4
View File
@@ -17,16 +17,12 @@ export type MainDocument = {
export type ProjectCompiler = 'pdflatex' | 'latex' | 'xelatex' | 'lualatex'
export type Keybindings = 'default' | 'vim' | 'emacs'
export type OverallThemeMeta = {
name: string
path: string
val: OverallTheme
}
export type PdfViewer = 'pdfjs' | 'native'
export type SpellCheckLanguage = {
name: string
code: string
+3 -1
View File
@@ -1,10 +1,12 @@
import { Keybindings, PdfViewer } from './project-settings'
import {
FontFamily,
LineHeight,
OverallTheme,
} from '@/features/source-editor/extensions/theme'
export type Keybindings = 'none' | 'default' | 'vim' | 'emacs'
export type PdfViewer = 'pdfjs' | 'native'
export type UserSettings = {
pdfViewer: PdfViewer
autoComplete: boolean