{"version":3,"file":"config.mjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["/**\n * This version number should be incremented whenever there are breaking changes\n * to Yjs doc schema or in how it is interpreted by code in the SyncConfig. This\n * allows implementors to invalidate persisted CRDT docs.\n */\nexport const CRDT_DOC_VERSION = 1;\n\n/**\n * CRDT documents can hold meta information in a map. This map exists only in\n * memory and is not synced or persisted. This key can be used to indicate that\n * a (temporary) document has been loaded from persistence.\n */\nexport const CRDT_DOC_META_PERSISTENCE_KEY = 'fromPersistence';\n\n/**\n * Root-level key for the map that holds the entity record data.\n */\nexport const CRDT_RECORD_MAP_KEY = 'document';\n\n/**\n * Root-level key for the map that holds the state information about the CRDT\n * document itself.\n */\nexport const CRDT_STATE_MAP_KEY = 'state';\n\n/**\n * Y.Map key representing the timestamp of the last user-facing entity save.\n */\nexport const CRDT_STATE_MAP_SAVED_AT_KEY = 'savedAt';\n\n/**\n * Y.Map key representing the Y.Doc client ID of the user who performed the\n * last user-facing entity save.\n */\nexport const CRDT_STATE_MAP_SAVED_BY_KEY = 'savedBy';\n\n/**\n * Y.Map key representing the version of the CRDT document schema.\n */\nexport const CRDT_STATE_MAP_VERSION_KEY = 'version';\n\n/**\n * Origin string for CRDT document changes originating from the local editor.\n */\nexport const LOCAL_EDITOR_ORIGIN = 'gutenberg';\n\n/**\n * Origin string for CRDT document changes originating from the sync manager.\n */\nexport const LOCAL_SYNC_MANAGER_ORIGIN = 'syncManager';\n\n/**\n * Origin string for CRDT document changes that should be synced but not\n * recorded in the undo history (e.g. status changes during publish).\n *\n * This origin is intentionally NOT included in the UndoManager's\n * `trackedOrigins`, so changes made with this origin will be applied to\n * the CRDT document (and synced to peers) without creating undo levels.\n */\nexport const LOCAL_UNDO_IGNORED_ORIGIN = 'gutenberg-undo-ignored';\n"],"mappings":";;;;;;AAKA,MAAa,mBAAmB;;;;;;AAOhC,MAAa,gCAAgC;;;;AAK7C,MAAa,sBAAsB;;;;;AAMnC,MAAa,qBAAqB;;;;AAKlC,MAAa,8BAA8B;;;;;AAM3C,MAAa,8BAA8B;;;;AAK3C,MAAa,6BAA6B;;;;AAK1C,MAAa,sBAAsB;;;;AAKnC,MAAa,4BAA4B;;;;;;;;;AAUzC,MAAa,4BAA4B"}