forked from TypeCellOS/BlockNote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.ts
More file actions
23 lines (18 loc) · 1.19 KB
/
Copy pathconst.ts
File metadata and controls
23 lines (18 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const PORT = 3000;
export const BASE_URL = !process.env.RUN_IN_DOCKER
? `http://localhost:${PORT}`
: `http://host.docker.internal:${PORT}`;
export const EDITOR_SELECTOR = `[data-test="editor"]`;
export const BLOCK_GROUP_SELECTOR = `[data-node-type="block-group"]`;
export const BLOCK_SELECTOR = `[data-node-type="block"]`;
export const H_ONE_BLOCK_SELECTOR = `[data-content-type=headingContent][data-heading-level="1"]`;
export const H_TWO_BLOCK_SELECTOR = `[data-content-type=headingContent][data-heading-level="2"]`;
export const H_THREE_BLOCK_SELECTOR = `[data-content-type=headingContent][data-heading-level="3"]`;
export const NUMBERED_LIST_SELECTOR = `[data-content-type="listItemContent"][data-list-item-type="ordered"]`;
export const BULLET_LIST_SELECTOR = `[data-content-type="listItemContent"][data-list-item-type="unordered"]`;
export const PARAGRAPH_SELECTOR = `[data-content-type=textContent]`;
export const DRAG_HANDLE_SELECTOR = `[data-test="dragHandle"]`;
export const DRAG_HANDLE_ADD_SELECTOR = `[data-test="dragHandleAdd"]`;
export const DRAG_HANDLE_MENU_SELECTOR = `.mantine-DragHandleMenu-root`;
export const SLASH_MENU_SELECTOR = `.mantine-SuggestionList-root`;
export const TYPE_DELAY = 10;