index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,300 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,301 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,302 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,303 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop/dragdrop.test.ts | import { test } from "../../setup/setupScript";
import {
BASE_URL,
BLOCK_CONTAINER_SELECTOR,
H_ONE_BLOCK_SELECTOR,
H_THREE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
} from "../../utils/const";
import { compareDocToSnapshot, focusOnEditor } from "../../utils/editor";
import { insertHeading, insertParagraph } from ... | 4,304 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,305 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,306 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,307 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,308 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts | import { expect, Page } from "@playwright/test";
import { test } from "../../setup/setupScript";
import {
BASE_URL,
BLOCK_CONTAINER_SELECTOR,
DRAG_HANDLE_SELECTOR,
DRAG_HANDLE_ADD_SELECTOR,
DRAG_HANDLE_MENU_SELECTOR,
H_ONE_BLOCK_SELECTOR,
H_THREE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
PARAGRAPH_SELECTO... | 4,309 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,310 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,311 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,312 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,313 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,314 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,315 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,316 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,317 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,318 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,319 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,320 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,321 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,322 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,323 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,324 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts | import { test } from "../../setup/setupScript";
import {
BASE_URL,
H_ONE_BLOCK_SELECTOR,
IMAGE_SELECTOR,
} from "../../utils/const";
import { compareDocToSnapshot, focusOnEditor } from "../../utils/editor";
import { expect, FileChooser } from "@playwright/test";
import { dragAndDropBlock } from "../../utils/mouse... | 4,325 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,326 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,327 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,328 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/deleteImage-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,329 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/deleteImage-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,330 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/deleteImage-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,331 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/dragImage-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,332 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/dragImage-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,333 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/dragImage-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,334 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,335 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,336 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,337 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,338 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,339 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,340 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts | import { test } from "../../setup/setupScript";
import {
BASE_URL,
UNNEST_BLOCK_BUTTON_SELECTOR,
H_THREE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
NEST_BLOCK_BUTTON_SELECTOR,
} from "../../utils/const";
import { compareDocToSnapshot, focusOnEditor } from "../../utils/editor";
import { insertHeading, insertParagra... | 4,341 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,342 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,343 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,344 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,345 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,346 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,347 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,348 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,349 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,350 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,351 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,352 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,353 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts | import { test } from "../../setup/setupScript";
import {
BASE_URL,
ITALIC_BUTTON_SELECTOR,
H_ONE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
} from "../../utils/const";
import { compareDocToSnapshot, focusOnEditor } from "../../utils/editor";
import { insertHeading, insertParagraph } from "../../utils/copypaste";
te... | 4,354 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,355 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,356 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,357 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,358 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,359 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,360 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,361 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,362 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,363 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,364 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,365 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,366 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,367 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,368 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,369 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,370 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,371 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,372 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/placeholder/placeholder.test.ts | import { expect } from "@playwright/test";
import { test } from "../../setup/setupScript";
import { BASE_URL } from "../../utils/const";
test.beforeEach(async ({ page }) => {
await page.goto(BASE_URL);
});
test.describe("Basic placeholder functionality", () => {
test("should show placeholder on load", async ({ pa... | 4,373 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu/slashmenu.test.ts | import { expect } from "@playwright/test";
import { test } from "../../setup/setupScript";
import {
BASE_URL,
BLOCK_CONTAINER_SELECTOR,
BLOCK_GROUP_SELECTOR,
BULLET_LIST_SELECTOR,
H_ONE_BLOCK_SELECTOR,
H_THREE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
NUMBERED_LIST_SELECTOR,
TYPE_DELAY,
} from "../../util... | 4,374 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,375 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,376 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json | {
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"t... | 4,377 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/textalignment/textAlignment.test.ts | import { test } from "../../setup/setupScript";
import {
ALIGN_TEXT_RIGHT_BUTTON_SELECTOR,
BASE_URL,
H_ONE_BLOCK_SELECTOR,
H_TWO_BLOCK_SELECTOR,
} from "../../utils/const";
import { focusOnEditor } from "../../utils/editor";
import { insertHeading } from "../../utils/copypaste";
import { expect } from "@playwri... | 4,378 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end | petrpan-code/TypeCellOS/BlockNote/tests/end-to-end/theming/theming.test.ts | import { expect } from "@playwright/test";
import { test } from "../../setup/setupScript";
import {
BASE_URL,
DRAG_HANDLE_SELECTOR,
LINK_BUTTON_SELECTOR,
PARAGRAPH_SELECTOR,
} from "../../utils/const";
import { focusOnEditor } from "../../utils/editor";
import { moveMouseOverElement } from "../../utils/mouse";
... | 4,379 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/setup/setupScript.ts | import {
BrowserContext,
BrowserContextOptions,
test as base,
expect,
} from "@playwright/test";
export type TestOptions = {
mockID: number | undefined;
};
export const test = base.extend<TestOptions>({
browser: async ({ browser }, use) => {
const oldFunc = browser.newContext;
browser.newContext =... | 4,380 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/setup/setupScriptComponent.ts | import { test as base, expect } from "@playwright/experimental-ct-react";
export type TestOptions = {
mockID: number | undefined;
};
export const test = base.extend<TestOptions>({
browser: async ({ browser }, use) => {
const oldFunc = browser.newContext;
browser.newContext = async (options?) => {
co... | 4,381 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/const.ts | const PORT = 3000;
export const BASE_URL = !process.env.RUN_IN_DOCKER
? `http://localhost:${PORT}`
: `http://host.docker.internal:${PORT}`;
export const PASTE_ZONE_SELECTOR = "#pasteZone";
export const EDITOR_SELECTOR = `[data-test="editor"]`;
export const BLOCK_CONTAINER_SELECTOR = `[data-node-type="blockContain... | 4,382 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/copypaste.ts | import { Page } from "@playwright/test";
import { PASTE_ZONE_SELECTOR, TYPE_DELAY } from "./const";
import { focusOnEditor } from "./editor";
export async function copyPasteAll(page: Page, os: "mac" | "linux" = "linux") {
const modifierKey = os === "mac" ? "Meta" : "Control";
await page.keyboard.press(`${modifier... | 4,383 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/debug.ts | import { Page } from "@playwright/test";
export async function showMouseCursor(page: Page) {
await page.evaluate(() => {
if (window !== window.parent) return;
let cursorStyle = {
position: "absolute",
left: "0",
top: "0",
width: "14px",
height: "14px",
"z-index": "1000",
... | 4,384 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/draghandle.ts | import { Page } from "@playwright/test";
import { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_ADD_SELECTOR } from "./const";
import { moveMouseOverElement } from "./mouse";
export async function addBlockFromDragHandle(page: Page, blockQuery: string) {
await page.click(DRAG_HANDLE_ADD_SELECTOR);
await page.keyboard.type(bloc... | 4,385 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/editor.ts | import { Page, expect } from "@playwright/test";
import { EDITOR_SELECTOR } from "./const";
export async function focusOnEditor(page: Page) {
await page.waitForSelector(EDITOR_SELECTOR);
await page.click(EDITOR_SELECTOR);
}
export async function waitForSelectorInEditor(page: Page, selector: string) {
const edit... | 4,386 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/mouse.ts | import { Locator, Page } from "@playwright/test";
import { DRAG_HANDLE_SELECTOR } from "./const";
async function getElementLeftCoords(page: Page, element: Locator) {
const boundingBox = await element.boundingBox();
const centerY = boundingBox.y + boundingBox.height / 2;
return { x: boundingBox.x + 1, y: centerY... | 4,387 |
0 | petrpan-code/TypeCellOS/BlockNote/tests | petrpan-code/TypeCellOS/BlockNote/tests/utils/slashmenu.ts | import { Page } from "@playwright/test";
import { SLASH_MENU_SELECTOR } from "./const";
export async function openSlashMenu(page: Page) {
await page.keyboard.type("/");
await page.waitForSelector(SLASH_MENU_SELECTOR);
}
export async function executeSlashCommand(page: Page, command: string) {
await openSlashMenu... | 4,388 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/components/Editor.module.css | .editor {
padding: 0 calc((100% - 731px) / 2);
height: 100%;
}
| 4,389 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/components/Editor.tsx | import { defaultBlockSchema } from "@blocknote/core";
import "@blocknote/core/style.css";
import {
BlockNoteView,
getDefaultReactSlashMenuItems,
useBlockNote,
} from "@blocknote/react";
import { Alert, insertAlert } from "../customblocks/Alert";
import { Button, insertButton } from "../customblocks/Button";
impor... | 4,390 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/components/EditorWithTextArea.tsx | import "@blocknote/core/style.css";
import Editor from "./Editor";
import styles from "./TextArea.module.css";
export default function EditorWithTextArea() {
return (
<>
<Editor />
<textarea
id={"pasteZone"}
className={styles.pasteZone}
onPaste={(event) => {
event.pr... | 4,391 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/components/TextArea.module.css | .pasteZone {
margin-inline: calc((100% - 731px) / 2);
width: 731px;
height: 300px;
resize: none;
}
| 4,392 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/Alert.tsx | import { createBlockSpec, defaultProps } from "@blocknote/core";
import { ReactSlashMenuItem } from "@blocknote/react";
import { RiAlertFill } from "react-icons/ri";
const values = {
warning: {
icon: "⚠️",
backgroundColor: "#fbf3db",
},
error: {
icon: "❌",
backgroundColor: "#fbe4e4",
},
info:... | 4,393 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/Button.tsx | import { createBlockSpec, defaultProps } from "@blocknote/core";
import { ReactSlashMenuItem } from "@blocknote/react";
import { RiRadioButtonFill } from "react-icons/ri";
export const Button = createBlockSpec({
type: "button" as const,
propSchema: {
backgroundColor: defaultProps.backgroundColor,
} as const,... | 4,394 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/Embed.tsx | import { createBlockSpec } from "@blocknote/core";
import { ReactSlashMenuItem } from "@blocknote/react";
import { RiLayout5Fill } from "react-icons/ri";
export const Embed = createBlockSpec({
type: "embed" as const,
propSchema: {
src: {
default: "https://www.youtube.com/embed/wjfuB8Xjhc4",
},
} as... | 4,395 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/Image.tsx | import { BlockSchema, createBlockSpec, defaultProps } from "@blocknote/core";
import { ReactSlashMenuItem } from "@blocknote/react";
import { RiImage2Fill } from "react-icons/ri";
export const Image = createBlockSpec({
type: "image" as const,
propSchema: {
...defaultProps,
src: {
default: "https://vi... | 4,396 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/ReactAlert.tsx | import { defaultProps } from "@blocknote/core";
import {
createReactBlockSpec,
InlineContent,
ReactSlashMenuItem,
} from "@blocknote/react";
import { useEffect, useState } from "react";
import { RiAlertFill } from "react-icons/ri";
const values = {
warning: {
icon: "⚠️",
backgroundColor: "#fbf3db",
}... | 4,397 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/ReactImage.tsx | import {
InlineContent,
createReactBlockSpec,
ReactSlashMenuItem,
} from "@blocknote/react";
import { BlockSchema, defaultProps } from "@blocknote/core";
import { RiImage2Fill } from "react-icons/ri";
export const ReactImage = createReactBlockSpec({
type: "reactImage" as const,
propSchema: {
...defaultPr... | 4,398 |
0 | petrpan-code/TypeCellOS/BlockNote/tests/utils | petrpan-code/TypeCellOS/BlockNote/tests/utils/customblocks/Separator.tsx | import { createBlockSpec } from "@blocknote/core";
import { ReactSlashMenuItem } from "@blocknote/react";
import { RiSeparator } from "react-icons/ri";
export const Separator = createBlockSpec({
type: "separator" as const,
propSchema: {} as const,
containsInlineContent: false,
render: () => {
const separat... | 4,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.