mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Writefull codebase migration (#27077)
GitOrigin-RevId: 48ff40d0b141d5bf7c70eaba8beacba7e64f237a
This commit is contained in:
@@ -2,6 +2,7 @@ import 'recurly__recurly-js'
|
||||
import { ScopeValueStore } from './ide/scope-value-store'
|
||||
import { MetaAttributesCache } from '@/utils/meta'
|
||||
import { ReCaptchaInstance } from './recaptcha'
|
||||
import { WritefullWindow } from './writefull/writefull-window'
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
@@ -14,9 +15,7 @@ declare global {
|
||||
useRecaptchaNet?: boolean
|
||||
}
|
||||
expectingLinkedFileRefreshedSocketFor?: string | null
|
||||
writefull?: {
|
||||
type: 'extension' | 'integration'
|
||||
}
|
||||
writefull?: WritefullWindow
|
||||
WritefullStub?: any
|
||||
io?: any
|
||||
overleaf: {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
export interface WritefullWindow {
|
||||
cache: any
|
||||
cm6: any
|
||||
editor: any
|
||||
overleafUserId?: string
|
||||
overleafLabels?: Record<
|
||||
string,
|
||||
| string
|
||||
| number
|
||||
| string[]
|
||||
| number[]
|
||||
| boolean
|
||||
| Record<string, string | boolean>
|
||||
>
|
||||
plugins?: string[]
|
||||
type: 'integration' | 'extension'
|
||||
iconPosition?: {
|
||||
parentSelector: string
|
||||
insertBeforeSelector?: string
|
||||
}
|
||||
toolbarPosition?: {
|
||||
parentSelector: string
|
||||
insertBeforeSelector?: string
|
||||
}
|
||||
openTableGenerator: () => void
|
||||
openEquationGenerator: () => void
|
||||
refreshSession: () => void
|
||||
}
|
||||
Reference in New Issue
Block a user