Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

618 B
Raw Blame
export const EditorNodeTypes = {
  Paragraph: 'paragraph',
  Heading1: 'heading1',
  Heading2: 'heading2',
  Heading3: 'heading3',
  Blockquote: 'blockquote',
  BulletList: 'bulletList',
  CodeBlock: 'codeBlock',
  ListItem: 'listItem',
  OrderedList: 'orderedList',
  TaskList: 'taskList',
  TaskItem: 'taskItem',
  HorizontalRule: 'horizontalRule',
  Page: 'page',
  File: 'file',
  Folder: 'folder',
  TempFile: 'tempFile',
  Table: 'table',
  TableHeader: 'tableHeader',
  TableCell: 'tableCell',
  TableRow: 'tableRow',
};

export type SortDirection = 'asc' | 'desc';

export const ZOD_TEXT_DESCRIPTION = 'text';