Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / docs-shared / lib / State / SyncedEditorState.ts
blob7d5a9f690221d021787bf51a0cba5dc1fef4382d
1 import type { ContactEmail } from '@proton/shared/lib/interfaces/contacts/Contact'
2 import { BasePropertiesState } from './BasePropertiesState'
4 export type UserEvent = { name: string; payload: unknown }
6 export interface SyncedEditorStateValues {
7   contactEmails: ContactEmail[]
8   userName: string
11 const DefaultValues: SyncedEditorStateValues = {
12   contactEmails: [],
13   userName: '',
16 /**
17  * Properties that are synced between the parent and the editor frame.
18  */
19 export class SyncedEditorState extends BasePropertiesState<SyncedEditorStateValues, UserEvent> {
20   constructor() {
21     super(DefaultValues)
22   }