1/* 2 * event-types.ts 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 16import { Transaction } from 'prosemirror-state'; 17import { Node as ProsemirrorNode } from 'prosemirror-model'; 18 19import { makeEventType } from './events'; 20import { Navigation } from './navigation'; 21 22export const UpdateEvent = makeEventType('Update'); 23export const OutlineChangeEvent = makeEventType('OutlineChange'); 24export const StateChangeEvent = makeEventType('StateChange'); 25export const ResizeEvent = makeEventType('Resize'); 26export const LayoutEvent = makeEventType('Layout'); 27export const ScrollEvent = makeEventType('Scroll'); 28export const BlurEvent = makeEventType('Blur'); 29export const FocusEvent = makeEventType<ProsemirrorNode>('Focus'); 30export const DispatchEvent = makeEventType<Transaction>('Dispatch'); 31export const NavigateEvent = makeEventType<Navigation>('Navigate'); 32