Explorar o código

Refactor Writefull init to always include overleafLabels (#25055)

GitOrigin-RevId: 416b2d1ea3a24e7c879779078e4f2a13ca6c3555
Domagoj Kriskovic hai 1 ano
pai
achega
5a4cf8a003

+ 6 - 0
services/web/frontend/js/shared/context/types/writefull-instance.ts

@@ -19,11 +19,17 @@ export interface WritefullAPI {
     iconPosition,
     iconPosition,
     hasAgreedToTOS,
     hasAgreedToTOS,
     overleafUserId,
     overleafUserId,
+    overleafLabels,
   }: {
   }: {
     toolbarPosition: InsertPosition
     toolbarPosition: InsertPosition
     iconPosition: InsertPosition
     iconPosition: InsertPosition
     hasAgreedToTOS: boolean
     hasAgreedToTOS: boolean
     overleafUserId: string
     overleafUserId: string
+    overleafLabels: {
+      autoImport: boolean
+      autoCreatedAccount: boolean
+      splitTests: Record<string, boolean>
+    }
   }): Promise<void>
   }): Promise<void>
   addEventListener<eventName extends keyof WritefullEvents>(
   addEventListener<eventName extends keyof WritefullEvents>(
     name: eventName,
     name: eventName,