Writefull codebase migration (#27077)

GitOrigin-RevId: 48ff40d0b141d5bf7c70eaba8beacba7e64f237a
This commit is contained in:
Borja
2025-09-18 08:05:57 +00:00
committed by Copybot
parent 19e6fc4fe3
commit 4f53a19943
18 changed files with 2160 additions and 21 deletions
+2 -3
View File
@@ -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
}