diff --git a/examples/03-ui-components/13-custom-ui/MUIFormattingToolbar.tsx b/examples/03-ui-components/13-custom-ui/MUIFormattingToolbar.tsx index 7c4cabc3d3..b513a1b640 100644 --- a/examples/03-ui-components/13-custom-ui/MUIFormattingToolbar.tsx +++ b/examples/03-ui-components/13-custom-ui/MUIFormattingToolbar.tsx @@ -262,18 +262,24 @@ function MUITextAlignButton(props: { const editor = useBlockNoteEditor(); // The text alignment of the block currently containing the text cursor. - const [activeTextAlignment, setActiveTextAlignment] = useState( - () => editor.getTextCursorPosition().block.props.textAlignment - ); + const [activeTextAlignment, setActiveTextAlignment] = useState(() => { + const blockProps = editor.getTextCursorPosition().block.props; + + if ("textAlignment" in blockProps) { + return blockProps.textAlignment; + } + + return undefined; + }); // Updates the text alignment when the editor content or selection changes. - useEditorContentOrSelectionChange( - () => - setActiveTextAlignment( - editor.getTextCursorPosition().block.props.textAlignment - ), - editor - ); + useEditorContentOrSelectionChange(() => { + const blockProps = editor.getTextCursorPosition().block.props; + + if ("textAlignment" in blockProps) { + setActiveTextAlignment(blockProps.textAlignment); + } + }, editor); // Tooltip for the button. const tooltip = useMemo( @@ -293,6 +299,10 @@ function MUITextAlignButton(props: { editor.focus(); }, [editor, props.textAlignment]); + if (!activeTextAlignment) { + return null; + } + return ( - attr.name.startsWith("data") && - attr.name !== "data-content-type" && - attr.name !== "data-file-block" && - attr.name !== "data-node-view-wrapper" && - attr.name !== "data-node-type" && - attr.name !== "data-id" && - attr.name !== "data-index" && - attr.name !== "data-editable" - ); - // ret.dom = ret.dom.firstChild! as any; - for (const attr of blockContentDataAttributes) { - (ret.dom.firstChild! as HTMLElement).setAttribute(attr.name, attr.value); + let listType = undefined; + if (orderedListItemBlockTypes.has(block.type!)) { + listType = "OL"; + } else if (unorderedListItemBlockTypes.has(block.type!)) { + listType = "UL"; + } + + const blockContentDataAttributes = [ + ...attrs, + ...Array.from(ret.dom.attributes), + ].filter( + (attr) => + attr.name.startsWith("data") && + attr.name !== "data-content-type" && + attr.name !== "data-file-block" && + attr.name !== "data-node-view-wrapper" && + attr.name !== "data-node-type" && + attr.name !== "data-id" && + attr.name !== "data-index" && + attr.name !== "data-editable" + ); + + if (ret.dom.classList.contains("bn-block-content")) { + // We wrap the output in an `li` element for list items, and so we want to + // add the attributes to that element instead as it is the "root". + if (!listType) { + // Copies the styles and prop-related attributes from the `blockContent` + // element onto its first child, as the `blockContent` element is omitted + // from external HTML. This is so prop data is preserved via `data-*` + // attributes or inline styles. + // + // The styles are specifically for default props on default blocks, as + // they get converted from `data-*` attributes for external HTML. Will + // need to revisit this when we convert default blocks to use the custom + // block API. + const style = ret.dom.getAttribute("style"); + if (style) { + (ret.dom.firstChild! as HTMLElement).setAttribute("style", style); + } + for (const attr of blockContentDataAttributes) { + (ret.dom.firstChild! as HTMLElement).setAttribute( + attr.name, + attr.value + ); + } } - addAttributesAndRemoveClasses(ret.dom.firstChild! as HTMLElement); + addAttributesAndRemoveClasses(ret.dom.firstChild as HTMLElement); elementFragment.append(...Array.from(ret.dom.childNodes)); } else { elementFragment.append(ret.dom); @@ -155,13 +182,6 @@ function serializeBlock< ret.contentDOM.appendChild(ic); } - let listType = undefined; - if (orderedListItemBlockTypes.has(block.type!)) { - listType = "OL"; - } else if (unorderedListItemBlockTypes.has(block.type!)) { - listType = "UL"; - } - if (listType) { if (fragment.lastChild?.nodeName !== listType) { const list = doc.createElement(listType); @@ -172,6 +192,24 @@ function serializeBlock< fragment.append(list); } const li = doc.createElement("li"); + + // Copies the styles and prop-related attributes from the `blockContent` + // element onto its first child, as the `blockContent` element is omitted + // from external HTML. This is so prop data is preserved via `data-*` + // attributes or inline styles. + // + // The styles are specifically for default props on default blocks, as + // they get converted from `data-*` attributes for external HTML. Will + // need to revisit this when we convert default blocks to use the custom + // block API. + const style = ret.dom.getAttribute("style"); + if (style) { + li.setAttribute("style", style); + } + for (const attr of blockContentDataAttributes) { + li.setAttribute(attr.name, attr.value); + } + li.append(elementFragment); fragment.lastChild!.appendChild(li); } else { diff --git a/packages/core/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts b/packages/core/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts index 6c0f72a0a0..37e04beb27 100644 --- a/packages/core/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +++ b/packages/core/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts @@ -126,7 +126,7 @@ const NumberedListItemBlockContent = createStronglyTypedTiptapNode({ const startIndex = parseInt(parent.getAttribute("start") || "1") || 1; - if (element.previousSibling || startIndex === 1) { + if (element.previousElementSibling || startIndex === 1) { return {}; } diff --git a/packages/core/src/blocks/QuoteBlockContent/QuoteBlockContent.ts b/packages/core/src/blocks/QuoteBlockContent/QuoteBlockContent.ts index a321576be0..1cd9c97b23 100644 --- a/packages/core/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +++ b/packages/core/src/blocks/QuoteBlockContent/QuoteBlockContent.ts @@ -9,7 +9,8 @@ import { updateBlockCommand } from "../../api/blockManipulation/commands/updateB import { InputRule } from "@tiptap/core"; export const quotePropSchema = { - ...defaultProps, + backgroundColor: defaultProps.backgroundColor, + textColor: defaultProps.textColor, }; export const QuoteBlockContent = createStronglyTypedTiptapNode({ diff --git a/packages/core/src/blocks/defaultBlockHelpers.ts b/packages/core/src/blocks/defaultBlockHelpers.ts index fbba956c8d..b8220e3100 100644 --- a/packages/core/src/blocks/defaultBlockHelpers.ts +++ b/packages/core/src/blocks/defaultBlockHelpers.ts @@ -1,5 +1,6 @@ import { blockToNode } from "../api/nodeConversions/blockToNode.js"; import type { BlockNoteEditor } from "../editor/BlockNoteEditor.js"; +import { COLORS_DEFAULT } from "../editor/defaultColors.js"; import type { BlockNoDefaults, BlockSchema, @@ -55,14 +56,17 @@ export function createDefaultBlockDOMOutputSpec( // Function used to convert default blocks to HTML. It uses the corresponding // node's `renderHTML` method to do the conversion by using a default -// `DOMSerializer`. +// `DOMSerializer`. The `external` flag is used to modify the resulting HTML for +// external use. This just involves changing props being rendered from `data-*` +// attributes to inline styles. export const defaultBlockToHTML = < BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema >( block: BlockNoDefaults, - editor: BlockNoteEditor + editor: BlockNoteEditor, + external = false ): { dom: HTMLElement; contentDOM?: HTMLElement; @@ -90,6 +94,74 @@ export const defaultBlockToHTML = < ); } + // When exporting to external HTML, we convert from `data-*` attributes to + // inline styles properties which can be understood by external applications. + // + // Note: This is a bit hacky to do this here as we're just hardcoding this for + // props on default blocks. We should revisit this when we migrate internal + // blocks to use the custom blocks API. + if (external) { + const dom = renderSpec.dom as HTMLElement; + + if (dom.hasAttribute("data-background-color")) { + const backgroundColor = dom.getAttribute("data-background-color")!; + + // If the background color is one of the default colors, we set the + // color's hex code from the default theme, as this will look nicer than + // using regular CSS colors. For example, instead of + // `background-color: red`, we use `background-color: #fbe4e4`. + if (backgroundColor in COLORS_DEFAULT) { + const cssVariableName = + `--blocknote-background-${backgroundColor}` as any; + + dom.style.setProperty( + cssVariableName, + COLORS_DEFAULT[backgroundColor as keyof typeof COLORS_DEFAULT] + .background + ); + dom.style.backgroundColor = `var(${cssVariableName})`; + } else { + dom.style.backgroundColor = backgroundColor; + } + + dom.removeAttribute("data-background-color"); + } + + if (dom.hasAttribute("data-text-color")) { + const textColor = dom.getAttribute("data-text-color")!; + + // If the text color is one of the default colors, we set the color's hex + // code from the default theme, as this will look nicer than using regular + // CSS colors. For example, instead of `color: red`, we use + // `color: #e03e3e`. + if (textColor in COLORS_DEFAULT) { + const cssVariableName = `--blocknote-text-${textColor}` as any; + + dom.style.setProperty( + cssVariableName, + COLORS_DEFAULT[textColor as keyof typeof COLORS_DEFAULT].text + ); + dom.style.color = `var(${cssVariableName})`; + } else { + dom.style.color = textColor; + } + + dom.removeAttribute("data-text-color"); + } + + if (dom.hasAttribute("data-text-alignment")) { + dom.style.textAlign = dom.getAttribute("data-text-alignment")!; + dom.removeAttribute("data-text-alignment"); + } + + // We also remove the `data-level` attribute for heading blocks, as this + // information can be inferred from whether a `h1`, `h2`, or `h3 tag is + // used. + if (dom.hasAttribute("data-level")) { + dom.removeAttribute("data-level"); + } + } + return renderSpec as { dom: HTMLElement; contentDOM?: HTMLElement; diff --git a/packages/core/src/blocks/defaultProps.ts b/packages/core/src/blocks/defaultProps.ts index 4fb0b838c8..44193cd014 100644 --- a/packages/core/src/blocks/defaultProps.ts +++ b/packages/core/src/blocks/defaultProps.ts @@ -1,3 +1,5 @@ +import { Attribute } from "@tiptap/core"; + import type { Props, PropSchema } from "../schema/index.js"; // TODO: this system should probably be moved / refactored. @@ -18,7 +20,100 @@ export const defaultProps = { export type DefaultProps = Props; -// Default props which are set on `blockContainer` nodes rather than -// `blockContent` nodes. Ensures that they are not redundantly added to -// a custom block's TipTap node attributes. -export const inheritedProps = ["backgroundColor", "textColor"]; +const getBackgroundColorAttribute = ( + attributeName = "backgroundColor" +): Attribute => ({ + default: defaultProps.backgroundColor.default, + parseHTML: (element) => { + if (element.hasAttribute("data-background-color")) { + return element.getAttribute("data-background-color"); + } + + if (element.style.backgroundColor) { + // Check if `element.style.backgroundColor` matches the string: + // `var(--blocknote-background-)`. If it does, return the color + // name only. Otherwise, return `element.style.backgroundColor`. + const match = element.style.backgroundColor.match( + /var\(--blocknote-background-(.+)\)/ + ); + if (match) { + return match[1]; + } + + return element.style.backgroundColor; + } + + return defaultProps.backgroundColor.default; + }, + renderHTML: (attributes) => { + if (attributes[attributeName] === defaultProps.backgroundColor.default) { + return {}; + } + + return { + "data-background-color": attributes[attributeName], + }; + }, +}); + +const getTextColorAttribute = (attributeName = "textColor"): Attribute => ({ + default: defaultProps.textColor.default, + parseHTML: (element) => { + if (element.hasAttribute("data-text-color")) { + return element.getAttribute("data-text-color"); + } + + if (element.style.color) { + // Check if `element.style.color` matches the string: + // `var(--blocknote-text-)`. If it does, return the color name + // only. Otherwise, return `element.style.color`. + const match = element.style.color.match(/var\(--blocknote-text-(.+)\)/); + if (match) { + return match[1]; + } + + return element.style.color; + } + + return defaultProps.textColor.default; + }, + renderHTML: (attributes) => { + if (attributes[attributeName] === defaultProps.textColor.default) { + return {}; + } + return { + "data-text-color": attributes[attributeName], + }; + }, +}); + +const getTextAlignmentAttribute = ( + attributeName = "textAlignment" +): Attribute => ({ + default: defaultProps.textAlignment.default, + parseHTML: (element) => { + if (element.hasAttribute("data-text-alignment")) { + return element.getAttribute("data-text-alignment"); + } + + if (element.style.textAlign) { + return element.style.textAlign; + } + + return defaultProps.textAlignment.default; + }, + renderHTML: (attributes) => { + if (attributes[attributeName] === defaultProps.textAlignment.default) { + return {}; + } + return { + "data-text-alignment": attributes[attributeName], + }; + }, +}); + +export const getAttributeFromDefaultProps = { + backgroundColor: getBackgroundColorAttribute, + textColor: getTextColorAttribute, + textAlignment: getTextAlignmentAttribute, +}; diff --git a/packages/core/src/editor/Block.css b/packages/core/src/editor/Block.css index 2bff2395b4..485cab031f 100644 --- a/packages/core/src/editor/Block.css +++ b/packages/core/src/editor/Block.css @@ -437,97 +437,111 @@ NESTED BLOCKS /* TODO: should this be here? */ /* TEXT COLORS */ -[data-text-color="gray"] { +[data-text-color="gray"], +.bn-block:has(> .bn-block-content[data-text-color="gray"]) { color: #9b9a97; } -[data-text-color="brown"] { +[data-text-color="brown"], +.bn-block:has(> .bn-block-content[data-text-color="brown"]) { color: #64473a; } -[data-text-color="red"] { +[data-text-color="red"], +.bn-block:has(> .bn-block-content[data-text-color="red"]) { color: #e03e3e; } -[data-text-color="orange"] { +[data-text-color="orange"], +.bn-block:has(> .bn-block-content[data-text-color="orange"]) { color: #d9730d; } -[data-text-color="yellow"] { +[data-text-color="yellow"], +.bn-block:has(> .bn-block-content[data-text-color="yellow"]) { color: #dfab01; } -[data-text-color="green"] { +[data-text-color="green"], +.bn-block:has(> .bn-block-content[data-text-color="green"]) { color: #4d6461; } -[data-text-color="blue"] { +[data-text-color="blue"], +.bn-block:has(> .bn-block-content[data-text-color="blue"]) { color: #0b6e99; } -[data-text-color="purple"] { +[data-text-color="purple"], +.bn-block:has(> .bn-block-content[data-text-color="purple"]) { color: #6940a5; } -[data-text-color="pink"] { +[data-text-color="pink"], +.bn-block:has(> .bn-block-content[data-text-color="pink"]) { color: #ad1a72; } /* BACKGROUND COLORS */ -[data-background-color="gray"] { +[data-background-color="gray"], +.bn-block:has(> .bn-block-content[data-background-color="gray"]) { background-color: #ebeced; } -[data-background-color="brown"] { +[data-background-color="brown"], +.bn-block:has(> .bn-block-content[data-background-color="brown"]) { background-color: #e9e5e3; } -[data-background-color="red"] { +[data-background-color="red"], +.bn-block:has(> .bn-block-content[data-background-color="red"]) { background-color: #fbe4e4; } -[data-background-color="orange"] { +[data-background-color="orange"], +.bn-block:has(> .bn-block-content[data-background-color="orange"]) { background-color: #f6e9d9; } -[data-background-color="yellow"] { +[data-background-color="yellow"], +.bn-block:has(> .bn-block-content[data-background-color="yellow"]) { background-color: #fbf3db; } -[data-background-color="green"] { +[data-background-color="green"], +.bn-block:has(> .bn-block-content[data-background-color="green"]) { background-color: #ddedea; } -[data-background-color="blue"] { +[data-background-color="blue"], +.bn-block:has(> .bn-block-content[data-background-color="blue"]) { background-color: #ddebf1; } -[data-background-color="purple"] { +[data-background-color="purple"], +.bn-block:has(> .bn-block-content[data-background-color="purple"]) { background-color: #eae4f2; } -[data-background-color="pink"] { +[data-background-color="pink"], +.bn-block:has(> .bn-block-content[data-background-color="pink"]) { background-color: #f4dfeb; } /* TEXT ALIGNMENT */ [data-text-alignment="left"] { - justify-content: flex-start !important; text-align: left !important; } [data-text-alignment="center"] { - justify-content: center !important; text-align: center !important; } [data-text-alignment="right"] { - justify-content: flex-end !important; text-align: right !important; } [data-text-alignment="justify"] { - justify-content: flex-start !important; text-align: justify !important; } diff --git a/packages/core/src/extensions/BackgroundColor/BackgroundColorExtension.ts b/packages/core/src/extensions/BackgroundColor/BackgroundColorExtension.ts index fca4922a1a..39a2410756 100644 --- a/packages/core/src/extensions/BackgroundColor/BackgroundColorExtension.ts +++ b/packages/core/src/extensions/BackgroundColor/BackgroundColorExtension.ts @@ -1,5 +1,6 @@ import { Extension } from "@tiptap/core"; -import { defaultProps } from "../../blocks/defaultProps.js"; + +import { getAttributeFromDefaultProps } from "../../blocks/defaultProps.js"; export const BackgroundColorExtension = Extension.create({ name: "blockBackgroundColor", @@ -7,26 +8,18 @@ export const BackgroundColorExtension = Extension.create({ addGlobalAttributes() { return [ { - types: ["blockContainer", "tableCell", "tableHeader"], + types: [ + "paragraph", + "heading", + "bulletListItem", + "numberedListItem", + "checkListItem", + "quote", + "tableCell", + "tableHeader", + ], attributes: { - backgroundColor: { - default: defaultProps.backgroundColor.default, - parseHTML: (element) => - element.hasAttribute("data-background-color") - ? element.getAttribute("data-background-color") - : defaultProps.backgroundColor.default, - renderHTML: (attributes) => { - if ( - attributes.backgroundColor === - defaultProps.backgroundColor.default - ) { - return {}; - } - return { - "data-background-color": attributes.backgroundColor, - }; - }, - }, + backgroundColor: getAttributeFromDefaultProps["backgroundColor"](), }, }, ]; diff --git a/packages/core/src/extensions/BackgroundColor/BackgroundColorMark.ts b/packages/core/src/extensions/BackgroundColor/BackgroundColorMark.ts index 03c57dd4ac..22b1996adc 100644 --- a/packages/core/src/extensions/BackgroundColor/BackgroundColorMark.ts +++ b/packages/core/src/extensions/BackgroundColor/BackgroundColorMark.ts @@ -1,4 +1,6 @@ import { Mark } from "@tiptap/core"; + +import { getAttributeFromDefaultProps } from "../../blocks/defaultProps.js"; import { createStyleSpecFromTipTapMark } from "../../schema/index.js"; const BackgroundColorMark = Mark.create({ @@ -6,13 +8,8 @@ const BackgroundColorMark = Mark.create({ addAttributes() { return { - stringValue: { - default: undefined, - parseHTML: (element) => element.getAttribute("data-background-color"), - renderHTML: (attributes) => ({ - "data-background-color": attributes.stringValue, - }), - }, + stringValue: + getAttributeFromDefaultProps["backgroundColor"]("stringValue"), }; }, @@ -25,10 +22,11 @@ const BackgroundColorMark = Mark.create({ return false; } - if (element.hasAttribute("data-background-color")) { - return { - stringValue: element.getAttribute("data-background-color"), - }; + if ( + element.hasAttribute("data-background-color") || + element.style.backgroundColor + ) { + return {}; } return false; diff --git a/packages/core/src/extensions/TextAlignment/TextAlignmentExtension.ts b/packages/core/src/extensions/TextAlignment/TextAlignmentExtension.ts index cabde01b91..2952d8a385 100644 --- a/packages/core/src/extensions/TextAlignment/TextAlignmentExtension.ts +++ b/packages/core/src/extensions/TextAlignment/TextAlignmentExtension.ts @@ -1,13 +1,13 @@ import { Extension } from "@tiptap/core"; +import { getAttributeFromDefaultProps } from "../../blocks/defaultProps.js"; + export const TextAlignmentExtension = Extension.create({ name: "textAlignment", addGlobalAttributes() { return [ { - // Attribute is applied to block content instead of container so that child blocks don't inherit the text - // alignment styling. types: [ "paragraph", "heading", @@ -18,20 +18,7 @@ export const TextAlignmentExtension = Extension.create({ "tableHeader", ], attributes: { - textAlignment: { - default: "left", - parseHTML: (element) => { - return element.getAttribute("data-text-alignment"); - }, - renderHTML: (attributes) => { - if (attributes.textAlignment === "left") { - return {}; - } - return { - "data-text-alignment": attributes.textAlignment, - }; - }, - }, + textAlignment: getAttributeFromDefaultProps["textAlignment"](), }, }, ]; diff --git a/packages/core/src/extensions/TextColor/TextColorExtension.ts b/packages/core/src/extensions/TextColor/TextColorExtension.ts index 4060fea6d6..103cfd0d9f 100644 --- a/packages/core/src/extensions/TextColor/TextColorExtension.ts +++ b/packages/core/src/extensions/TextColor/TextColorExtension.ts @@ -1,5 +1,6 @@ import { Extension } from "@tiptap/core"; -import { defaultProps } from "../../blocks/defaultProps.js"; + +import { getAttributeFromDefaultProps } from "../../blocks/defaultProps.js"; export const TextColorExtension = Extension.create({ name: "blockTextColor", @@ -7,23 +8,19 @@ export const TextColorExtension = Extension.create({ addGlobalAttributes() { return [ { - types: ["blockContainer", "tableCell", "tableHeader"], + types: [ + "paragraph", + "heading", + "bulletListItem", + "numberedListItem", + "checkListItem", + "quote", + "table", + "tableCell", + "tableHeader", + ], attributes: { - textColor: { - default: defaultProps.textColor.default, - parseHTML: (element) => - element.hasAttribute("data-text-color") - ? element.getAttribute("data-text-color") - : defaultProps.textColor.default, - renderHTML: (attributes) => { - if (attributes.textColor === defaultProps.textColor.default) { - return {}; - } - return { - "data-text-color": attributes.textColor, - }; - }, - }, + textColor: getAttributeFromDefaultProps["textColor"](), }, }, ]; diff --git a/packages/core/src/extensions/TextColor/TextColorMark.ts b/packages/core/src/extensions/TextColor/TextColorMark.ts index 2f5c314ba3..89d14fbbc9 100644 --- a/packages/core/src/extensions/TextColor/TextColorMark.ts +++ b/packages/core/src/extensions/TextColor/TextColorMark.ts @@ -1,18 +1,15 @@ import { Mark } from "@tiptap/core"; + +import { getAttributeFromDefaultProps } from "../../blocks/defaultProps.js"; import { createStyleSpecFromTipTapMark } from "../../schema/index.js"; const TextColorMark = Mark.create({ name: "textColor", + priority: 1000, addAttributes() { return { - stringValue: { - default: undefined, - parseHTML: (element) => element.getAttribute("data-text-color"), - renderHTML: (attributes) => ({ - "data-text-color": attributes.stringValue, - }), - }, + stringValue: getAttributeFromDefaultProps["textColor"]("stringValue"), }; }, @@ -25,8 +22,8 @@ const TextColorMark = Mark.create({ return false; } - if (element.hasAttribute("data-text-color")) { - return { stringValue: element.getAttribute("data-text-color") }; + if (element.hasAttribute("data-text-color") || element.style.color) { + return {}; } return false; diff --git a/packages/core/src/pm-nodes/BlockContainer.ts b/packages/core/src/pm-nodes/BlockContainer.ts index ecd7f8068f..521c03e01f 100644 --- a/packages/core/src/pm-nodes/BlockContainer.ts +++ b/packages/core/src/pm-nodes/BlockContainer.ts @@ -6,8 +6,6 @@ import { mergeCSSClasses } from "../util/browser.js"; // Object containing all possible block attributes. const BlockAttributes: Record = { - blockColor: "data-block-color", - blockStyle: "data-block-style", id: "data-id", depth: "data-depth", depthChange: "data-depth-change", diff --git a/packages/core/src/schema/blocks/internal.ts b/packages/core/src/schema/blocks/internal.ts index 8dd816b654..bbbb75b441 100644 --- a/packages/core/src/schema/blocks/internal.ts +++ b/packages/core/src/schema/blocks/internal.ts @@ -7,7 +7,6 @@ import { NodeConfig, } from "@tiptap/core"; import { defaultBlockToHTML } from "../../blocks/defaultBlockHelpers.js"; -import { inheritedProps } from "../../blocks/defaultProps.js"; import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js"; import { mergeCSSClasses } from "../../util/browser.js"; import { camelToDataKebab } from "../../util/string.js"; @@ -30,64 +29,62 @@ import { export function propsToAttributes(propSchema: PropSchema): Attributes { const tiptapAttributes: Record = {}; - Object.entries(propSchema) - .filter(([name, _spec]) => !inheritedProps.includes(name)) - .forEach(([name, spec]) => { - tiptapAttributes[name] = { - default: spec.default, - keepOnSplit: true, - // Props are displayed in kebab-case as HTML attributes. If a prop's - // value is the same as its default, we don't display an HTML - // attribute for it. - parseHTML: (element) => { - const value = element.getAttribute(camelToDataKebab(name)); + Object.entries(propSchema).forEach(([name, spec]) => { + tiptapAttributes[name] = { + default: spec.default, + keepOnSplit: true, + // Props are displayed in kebab-case as HTML attributes. If a prop's + // value is the same as its default, we don't display an HTML + // attribute for it. + parseHTML: (element) => { + const value = element.getAttribute(camelToDataKebab(name)); - if (value === null) { - return null; - } - - if ( - (spec.default === undefined && spec.type === "boolean") || - (spec.default !== undefined && typeof spec.default === "boolean") - ) { - if (value === "true") { - return true; - } + if (value === null) { + return null; + } - if (value === "false") { - return false; - } + if ( + (spec.default === undefined && spec.type === "boolean") || + (spec.default !== undefined && typeof spec.default === "boolean") + ) { + if (value === "true") { + return true; + } - return null; + if (value === "false") { + return false; } - if ( - (spec.default === undefined && spec.type === "number") || - (spec.default !== undefined && typeof spec.default === "number") - ) { - const asNumber = parseFloat(value); - const isNumeric = - !Number.isNaN(asNumber) && Number.isFinite(asNumber); + return null; + } - if (isNumeric) { - return asNumber; - } + if ( + (spec.default === undefined && spec.type === "number") || + (spec.default !== undefined && typeof spec.default === "number") + ) { + const asNumber = parseFloat(value); + const isNumeric = + !Number.isNaN(asNumber) && Number.isFinite(asNumber); - return null; + if (isNumeric) { + return asNumber; } - return value; - }, - renderHTML: (attributes) => { - // don't render to html if the value is the same as the default - return attributes[name] !== spec.default - ? { - [camelToDataKebab(name)]: attributes[name], - } - : {}; - }, - }; - }); + return null; + } + + return value; + }, + renderHTML: (attributes) => { + // don't render to html if the value is the same as the default + return attributes[name] !== spec.default + ? { + [camelToDataKebab(name)]: attributes[name], + } + : {}; + }, + }; + }); return tiptapAttributes; } @@ -183,7 +180,7 @@ export function wrapInBlockStructure< for (const [prop, value] of Object.entries(blockProps)) { const spec = propSchema[prop]; const defaultValue = spec.default; - if (!inheritedProps.includes(prop) && value !== defaultValue) { + if (value !== defaultValue) { blockContent.setAttribute(camelToDataKebab(prop), value); } } @@ -270,7 +267,8 @@ export function createBlockSpecFromStronglyTypedTiptapNode< node, requiredExtensions, toInternalHTML: defaultBlockToHTML, - toExternalHTML: defaultBlockToHTML, + toExternalHTML: (block, editor) => + defaultBlockToHTML(block, editor, true), // parse: () => undefined, // parse rules are in node already } ); diff --git a/packages/react/src/editor/styles.css b/packages/react/src/editor/styles.css index eed164ff37..7d85c6ba1a 100644 --- a/packages/react/src/editor/styles.css +++ b/packages/react/src/editor/styles.css @@ -138,75 +138,93 @@ } /* Highlight color styling */ -[data-text-color="gray"] { +[data-text-color="gray"], +.bn-block:has(> .bn-block-content[data-text-color="gray"]) { color: var(--bn-colors-highlights-gray-text); } -[data-text-color="brown"] { +[data-text-color="brown"], +.bn-block:has(> .bn-block-content[data-text-color="brown"]) { color: var(--bn-colors-highlights-brown-text); } -[data-text-color="red"] { +[data-text-color="red"], +.bn-block:has(> .bn-block-content[data-text-color="red"]) { color: var(--bn-colors-highlights-red-text); } -[data-text-color="orange"] { +[data-text-color="orange"], +.bn-block:has(> .bn-block-content[data-text-color="orange"]) { color: var(--bn-colors-highlights-orange-text); } -[data-text-color="yellow"] { +[data-text-color="yellow"], +.bn-block:has(> .bn-block-content[data-text-color="yellow"]) { color: var(--bn-colors-highlights-yellow-text); } -[data-text-color="green"] { +[data-text-color="green"], +.bn-block:has(> .bn-block-content[data-text-color="green"]) { color: var(--bn-colors-highlights-green-text); } -[data-text-color="blue"] { +[data-text-color="blue"], +.bn-block:has(> .bn-block-content[data-text-color="blue"]) { color: var(--bn-colors-highlights-blue-text); } -[data-text-color="purple"] { +[data-text-color="purple"], +.bn-block:has(> .bn-block-content[data-text-color="purple"]) { color: var(--bn-colors-highlights-purple-text); } -[data-text-color="pink"] { +[data-text-color="pink"], +.bn-block:has(> .bn-block-content[data-text-color="pink"]) { color: var(--bn-colors-highlights-pink-text); } -[data-background-color="gray"] { +[data-background-color="gray"], +.bn-block:has(> .bn-block-content[data-background-color="gray"]) { background-color: var(--bn-colors-highlights-gray-background); } -[data-background-color="brown"] { +[data-background-color="brown"], +.bn-block:has(> .bn-block-content[data-background-color="brown"]) { background-color: var(--bn-colors-highlights-brown-background); } -[data-background-color="red"] { +[data-background-color="red"], +.bn-block:has(> .bn-block-content[data-background-color="red"]) { background-color: var(--bn-colors-highlights-red-background); } -[data-background-color="orange"] { +[data-background-color="orange"], +.bn-block:has(> .bn-block-content[data-background-color="orange"]) { background-color: var(--bn-colors-highlights-orange-background); } -[data-background-color="yellow"] { +[data-background-color="yellow"], +.bn-block:has(> .bn-block-content[data-background-color="yellow"]) { background-color: var(--bn-colors-highlights-yellow-background); } -[data-background-color="green"] { +[data-background-color="green"], +.bn-block:has(> .bn-block-content[data-background-color="green"]) { background-color: var(--bn-colors-highlights-green-background); } -[data-background-color="blue"] { +[data-background-color="blue"], +.bn-block:has(> .bn-block-content[data-background-color="blue"]) { background-color: var(--bn-colors-highlights-blue-background); } -[data-background-color="purple"] { +[data-background-color="purple"], +.bn-block:has(> .bn-block-content[data-background-color="purple"]) { background-color: var(--bn-colors-highlights-purple-background); } -[data-background-color="pink"] { +[data-background-color="pink"], +.bn-block:has(> .bn-block-content[data-background-color="pink"]) { background-color: var(--bn-colors-highlights-pink-background); } diff --git a/packages/react/src/schema/ReactBlockSpec.tsx b/packages/react/src/schema/ReactBlockSpec.tsx index a64c873697..ed594d4077 100644 --- a/packages/react/src/schema/ReactBlockSpec.tsx +++ b/packages/react/src/schema/ReactBlockSpec.tsx @@ -9,7 +9,6 @@ import { CustomBlockConfig, getBlockFromPos, getParseRules, - inheritedProps, InlineContentSchema, mergeCSSClasses, PartialBlockFromConfig, @@ -93,7 +92,7 @@ export function BlockContentWrapper< Object.entries(props.blockProps) .filter(([prop, value]) => { const spec = props.propSchema[prop]; - return !inheritedProps.includes(prop) && value !== spec.default; + return value !== spec.default; }) .map(([prop, value]) => { return [camelToDataKebab(prop), value]; diff --git a/packages/server-util/src/context/__snapshots__/ServerBlockNoteEditor.test.ts.snap b/packages/server-util/src/context/__snapshots__/ServerBlockNoteEditor.test.ts.snap index 5bd969bfa8..c31fa31301 100644 --- a/packages/server-util/src/context/__snapshots__/ServerBlockNoteEditor.test.ts.snap +++ b/packages/server-util/src/context/__snapshots__/ServerBlockNoteEditor.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Test ServerBlockNoteEditor > converts to HTML (blocksToFullHTML) 1`] = `"

Heading 2

Paragraph

list item

Example

Caption

Example

Caption

"`; +exports[`Test ServerBlockNoteEditor > converts to HTML (blocksToFullHTML) 1`] = `"

Heading 2

Paragraph

list item

Example

Caption

Example

Caption

"`; -exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLossy) 1`] = `"

Heading 2

Paragraph

  • list item

Example
Caption
Example

Caption

"`; +exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLossy) 1`] = `"

Heading 2

Paragraph

  • list item

Example
Caption
Example

Caption

"`; exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLossy) 2`] = ` [ @@ -28,10 +28,10 @@ exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLos ], "id": "0", "props": { - "backgroundColor": "default", + "backgroundColor": "blue", "level": 2, "textAlignment": "right", - "textColor": "default", + "textColor": "yellow", }, "type": "heading", }, @@ -46,7 +46,7 @@ exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLos ], "id": "1", "props": { - "backgroundColor": "default", + "backgroundColor": "red", "textAlignment": "left", "textColor": "default", }, diff --git a/packages/xl-multi-column/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap b/packages/xl-multi-column/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap index b73d6a8253..c110a75c51 100644 --- a/packages/xl-multi-column/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap +++ b/packages/xl-multi-column/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap @@ -14,14 +14,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con "content": [ { "attrs": { - "backgroundColor": "default", "id": "3", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -36,14 +36,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con }, { "attrs": { - "backgroundColor": "default", "id": "4", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -67,14 +67,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con "content": [ { "attrs": { - "backgroundColor": "default", "id": "6", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -89,14 +89,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con }, { "attrs": { - "backgroundColor": "default", "id": "7", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/package.json b/tests/package.json index 741cfd447f..b93fa52a9f 100644 --- a/tests/package.json +++ b/tests/package.json @@ -7,7 +7,7 @@ "lint": "eslint src --max-warnings 0", "playwright": "playwright test", "test": "vitest --run", - "test:updateSnaps": "docker run --rm -e RUN_IN_DOCKER=true --network host -v $(pwd)/..:/work/ -w /work/tests -it mcr.microsoft.com/playwright:v1.51.1-noble npx playwright test -u", + "test:updateSnaps": "docker run --rm -e RUN_IN_DOCKER=true --network host -v $(pwd)/..:/work/ -w /work/tests -it mcr.microsoft.com/playwright:v1.51.1-noble npx playwright test", "test-ct": "playwright test -c playwright-ct.config.ts --headed", "test-ct:updateSnaps": "docker run --rm -e RUN_IN_DOCKER=true --network host -v $(pwd)/..:/work/ -w /work/tests -it mcr.microsoft.com/playwright:v1.51.1-noble npx playwright test -c playwright-ct.config.ts -u", "clean": "rimraf dist" diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json index efc45cfa6f..8481ba5a1a 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -92,14 +92,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -115,14 +115,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -138,14 +138,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -161,14 +161,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json index 912806cba2..2cf7a64e7f 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,15 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -50,14 +49,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -66,15 +65,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -87,14 +85,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json index 1f19a779e1..7b457e80f6 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -31,14 +31,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -55,14 +55,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -86,14 +86,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -102,14 +102,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -126,14 +126,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -150,14 +150,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -181,14 +181,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json index 3b143393ce..a8e94ef83a 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -83,14 +83,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -99,14 +99,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -122,14 +122,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -145,14 +145,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -175,14 +175,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json index 60c1d3e2cc..3d87bf79e1 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -83,14 +83,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -99,14 +99,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -122,14 +122,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -145,14 +145,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -175,14 +175,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json index ee6aab4205..a38874d9af 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "2" }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "3" }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -92,14 +92,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -115,14 +115,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "2" }, @@ -138,14 +138,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "3" }, @@ -161,14 +161,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json index 9c6d0d2406..3be8a6ccc6 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -51,14 +51,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -73,14 +73,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -89,14 +89,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -111,14 +111,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -133,14 +133,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -155,14 +155,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json index 0994064b07..daef8c1a62 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -51,14 +51,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -73,14 +73,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } @@ -89,14 +89,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -111,14 +111,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -133,14 +133,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -155,14 +155,14 @@ { "type": "blockContainer", "attrs": { - "id": "8", - "textColor": "default", - "backgroundColor": "default" + "id": "8" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-chromium-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-chromium-linux.json index 99709a25e1..a5bcc84c42 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-chromium-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -107,14 +107,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -130,14 +130,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-webkit-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-webkit-linux.json index 99709a25e1..a5bcc84c42 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-webkit-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropnested-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -107,14 +107,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -130,14 +130,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json index ed1986da9f..cc43670db0 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json index ed1986da9f..cc43670db0 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json index 19315d70ba..cd37ee061f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 } @@ -47,14 +47,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json index 19315d70ba..cd37ee061f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 } @@ -47,14 +47,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json index 19315d70ba..cd37ee061f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 } @@ -47,14 +47,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json index e53d0ece8b..c19dc0dbfd 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json index e53d0ece8b..c19dc0dbfd 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json index e53d0ece8b..c19dc0dbfd 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json index 9ce857ec27..08a9dd967f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json index 9ce857ec27..08a9dd967f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json index 9ce857ec27..08a9dd967f 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-chromium-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-firefox-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-webkit-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledelete-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json index c2c50f0bf5..6c8d92388a 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json index c2c50f0bf5..6c8d92388a 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json index c2c50f0bf5..6c8d92388a 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json index e1b8557a19..5e6b1e3496 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json index e1b8557a19..5e6b1e3496 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json index e1b8557a19..5e6b1e3496 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-chromium-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-firefox-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-webkit-linux.json index 147a3706d9..ed7079ea79 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/deleteImage-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-chromium-linux.json index 2dec914845..bacbbe924c 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,15 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -51,14 +50,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-firefox-linux.json index 2dec914845..bacbbe924c 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,15 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -51,14 +50,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-webkit-linux.json index 2dec914845..bacbbe924c 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/dragImage-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,15 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "", "url": "", "caption": "", @@ -51,14 +50,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json index cab7789128..60b4edf4d1 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json index cab7789128..60b4edf4d1 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json index cab7789128..60b4edf4d1 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json index 2f032bec02..0883d1294e 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json index 2f032bec02..0883d1294e 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json index 2f032bec02..0883d1294e 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json @@ -7,15 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", + "backgroundColor": "default", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", @@ -28,14 +27,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json index 5288ef0bc6..b094073e91 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -80,14 +80,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json index 5288ef0bc6..b094073e91 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -80,14 +80,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json index 5288ef0bc6..b094073e91 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -80,14 +80,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json index 2993f24a93..ee65c6a3c5 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json index 2993f24a93..ee65c6a3c5 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json index 2993f24a93..ee65c6a3c5 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -57,14 +57,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json index d4a3ed8ab1..8b101d988e 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -77,14 +77,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json index d4a3ed8ab1..8b101d988e 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -77,14 +77,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json index d4a3ed8ab1..8b101d988e 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -77,14 +77,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json index bc1b12c720..3c871c5450 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json index bc1b12c720..3c871c5450 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json index bc1b12c720..3c871c5450 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -81,14 +81,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -108,14 +108,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json index 242f82807d..e296fa28fd 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -42,14 +42,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json index 242f82807d..e296fa28fd 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -42,14 +42,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json index 242f82807d..e296fa28fd 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -42,14 +42,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json index 98f36be4ea..e3371aa14f 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json index 98f36be4ea..e3371aa14f 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json index 98f36be4ea..e3371aa14f 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json index f5a1348948..5758611669 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json index f5a1348948..5758611669 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json index f5a1348948..5758611669 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json index babb50d670..7b32ed9dc4 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json index babb50d670..7b32ed9dc4 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json index babb50d670..7b32ed9dc4 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -29,14 +29,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json index a17b04dcbd..8b2c4f2dff 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "checkListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "checked": false }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json index a17b04dcbd..8b2c4f2dff 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "checkListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "checked": false }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json index a17b04dcbd..8b2c4f2dff 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "checkListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "checked": false }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json index 7bbe2698b0..51cae0f2d8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -35,14 +35,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -62,14 +62,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json index 7bbe2698b0..51cae0f2d8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -35,14 +35,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -62,14 +62,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json index 7bbe2698b0..51cae0f2d8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -35,14 +35,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -62,14 +62,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json index 54f4b071cf..a5c9f6c330 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json index 54f4b071cf..a5c9f6c330 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json index 54f4b071cf..a5c9f6c330 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -53,14 +53,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -76,14 +76,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -103,14 +103,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json index fd8b56e4ae..c04cb1fa39 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json index fd8b56e4ae..c04cb1fa39 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json index fd8b56e4ae..c04cb1fa39 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -52,14 +52,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json index 230355b71c..4e5eb39843 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json index 230355b71c..4e5eb39843 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json index 230355b71c..4e5eb39843 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json index 7e11edba36..f95276c68c 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json index 7e11edba36..f95276c68c 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json index 7e11edba36..f95276c68c 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json index 159ff7605b..36b28d9994 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json index 159ff7605b..36b28d9994 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json index 159ff7605b..36b28d9994 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json index 44c8c6abed..b3c5ea5490 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json index 44c8c6abed..b3c5ea5490 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json index 44c8c6abed..b3c5ea5490 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json index ec37a70d39..c244e4b5b5 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -104,14 +104,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -127,14 +127,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "2" }, @@ -150,14 +150,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -176,14 +176,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json index ec37a70d39..c244e4b5b5 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -104,14 +104,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -127,14 +127,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "2" }, @@ -150,14 +150,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -176,14 +176,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json index ec37a70d39..c244e4b5b5 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json @@ -7,14 +7,14 @@ { "type": "blockContainer", "attrs": { - "id": "0", - "textColor": "default", - "backgroundColor": "default" + "id": "0" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 1 }, @@ -30,14 +30,14 @@ { "type": "blockContainer", "attrs": { - "id": "2", - "textColor": "default", - "backgroundColor": "default" + "id": "2" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 2 }, @@ -54,14 +54,14 @@ { "type": "blockContainer", "attrs": { - "id": "3", - "textColor": "default", - "backgroundColor": "default" + "id": "3" }, "content": [ { "type": "heading", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "level": 3 }, @@ -78,14 +78,14 @@ { "type": "blockContainer", "attrs": { - "id": "4", - "textColor": "default", - "backgroundColor": "default" + "id": "4" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -104,14 +104,14 @@ { "type": "blockContainer", "attrs": { - "id": "5", - "textColor": "default", - "backgroundColor": "default" + "id": "5" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "1" }, @@ -127,14 +127,14 @@ { "type": "blockContainer", "attrs": { - "id": "6", - "textColor": "default", - "backgroundColor": "default" + "id": "6" }, "content": [ { "type": "numberedListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left", "index": "2" }, @@ -150,14 +150,14 @@ { "type": "blockContainer", "attrs": { - "id": "7", - "textColor": "default", - "backgroundColor": "default" + "id": "7" }, "content": [ { "type": "bulletListItem", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" }, "content": [ @@ -176,14 +176,14 @@ { "type": "blockContainer", "attrs": { - "id": "1", - "textColor": "default", - "backgroundColor": "default" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { + "textColor": "default", + "backgroundColor": "default", "textAlignment": "left" } } diff --git a/tests/src/unit/core/clipboard/copy/__snapshots__/text/html/basicBlocksWithProps.html b/tests/src/unit/core/clipboard/copy/__snapshots__/text/html/basicBlocksWithProps.html index aa29f7463c..5c496bbf02 100644 --- a/tests/src/unit/core/clipboard/copy/__snapshots__/text/html/basicBlocksWithProps.html +++ b/tests/src/unit/core/clipboard/copy/__snapshots__/text/html/basicBlocksWithProps.html @@ -1,16 +1,18 @@ -

Paragraph 1

-

Heading 1

+

Paragraph 1

+

Heading 1

    -
  1. -

    Numbered List Item 1

    +
  2. +

    Numbered List Item 1

    -
  • -

    Bullet List Item 1

    +
  • +

    Bullet List Item 1

  • -
  • - +
  • +

    Check List Item 1

diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html b/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html index 7587f35366..06fee827fa 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html @@ -1,21 +1,11 @@
-
-
+
+
@@ -29,19 +19,13 @@

-
-
-
+
+
+

Paragraph

diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html b/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html index 5ae4c7b95c..9b024fd122 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html @@ -1,21 +1,11 @@
-
-
+
+

diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/html/complex/misc.html b/tests/src/unit/core/formatConversion/export/__snapshots__/html/complex/misc.html index 0df8a18343..a5fd6fe7e6 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/html/complex/misc.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/html/complex/misc.html @@ -1,4 +1,4 @@ -

+

Heading @@ -6,7 +6,9 @@

Paragraph

+

Paragraph

  • diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/basic.html b/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/basic.html index aee1048a87..6d3b10f9a0 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/basic.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/basic.html @@ -19,8 +19,8 @@

    Check List Item 1

  • -
  • - +
  • +

    Check List Item 2

\ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/nested.html b/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/nested.html index b2497ae937..a708d5bb33 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/nested.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/html/lists/nested.html @@ -15,8 +15,8 @@

Check List Item 1

-
  • - +
  • +

    Check List Item 2

  • diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/html/paragraph/styled.html b/tests/src/unit/core/formatConversion/export/__snapshots__/html/paragraph/styled.html index 65e55c08bf..032aa7b89d 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/html/paragraph/styled.html +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/html/paragraph/styled.html @@ -1,7 +1,5 @@

    Plain Red Text diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/contains-newlines.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/contains-newlines.json index da4c135551..854c64a68f 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/contains-newlines.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/contains-newlines.json @@ -1,9 +1,7 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/defaultLanguage.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/defaultLanguage.json index 97b0374bfb..e25d8ad37a 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/defaultLanguage.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/defaultLanguage.json @@ -1,9 +1,7 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/empty.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/empty.json index 4fd34ff835..fc526a8406 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/empty.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/empty.json @@ -1,9 +1,7 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/python.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/python.json index 01b6f86580..f663c0876a 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/python.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/codeBlock/python.json @@ -1,9 +1,7 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/complex/misc.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/complex/misc.json index 85f484ec68..bb53cb9ced 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/complex/misc.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/complex/misc.json @@ -1,15 +1,15 @@ [ { "attrs": { - "backgroundColor": "blue", "id": "1", - "textColor": "yellow", }, "content": [ { "attrs": { + "backgroundColor": "blue", "level": 2, "textAlignment": "right", + "textColor": "yellow", }, "content": [ { @@ -43,14 +43,14 @@ "content": [ { "attrs": { - "backgroundColor": "red", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "red", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -65,14 +65,14 @@ }, { "attrs": { - "backgroundColor": "default", "id": "3", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "type": "bulletListItem", }, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/basic.json index 0de31316e1..d6e3e46bc6 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/basic.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "example", "url": "exampleURL", diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/button.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/button.json index 42be1c0985..01d41abfd9 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/button.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/button.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "", "name": "", "url": "", diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/nested.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/nested.json index f122b855d8..fb51a86937 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/nested.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/nested.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "example", "url": "exampleURL", @@ -18,13 +17,12 @@ "content": [ { "attrs": { - "backgroundColor": "default", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "example", "url": "exampleURL", diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noCaption.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noCaption.json index 7b9cd6f1c4..9f4e02849d 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noCaption.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noCaption.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "", "name": "example", "url": "exampleURL", diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noName.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noName.json index 393aff6af8..ef504532ff 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noName.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/file/noName.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "", "url": "exampleURL", diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/basic.json index 8f3e362113..9f61632bab 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/basic.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/between-links.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/between-links.json index 93e7571b21..174eeecd5b 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/between-links.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/between-links.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/end.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/end.json index 781e539991..8ac49d80e1 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/end.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/end.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/link.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/link.json index aee93b47d3..4ae3cc342b 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/link.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/link.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/multiple.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/multiple.json index b8cd0f19ec..2f47b4bc9b 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/multiple.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/multiple.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/only.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/only.json index 6a1a4d2554..08f5ee78ee 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/only.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/only.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/start.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/start.json index dc2396df1f..72eb111324 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/start.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/start.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/styles.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/styles.json index 034bf8b726..f7f3c35ae8 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/styles.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/hardbreak/styles.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/basic.json index ad2d0f7a69..75e88e240f 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/basic.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "example", "previewWidth": 256, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/button.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/button.json index e0aef86d8e..29535b8f9d 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/button.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/button.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "", "name": "", "previewWidth": 512, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/nested.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/nested.json index db8fee4b1d..25947e128f 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/nested.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/nested.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "", "previewWidth": 256, @@ -21,13 +20,12 @@ "content": [ { "attrs": { - "backgroundColor": "default", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "", "previewWidth": 256, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noCaption.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noCaption.json index aaa57c857a..e043c3b2b2 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noCaption.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noCaption.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "", "name": "example", "previewWidth": 256, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noName.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noName.json index 10a9c03a69..2fc265f5c4 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noName.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noName.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "", "previewWidth": 256, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noPreview.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noPreview.json index 946ca5f86e..2253492bc0 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noPreview.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/image/noPreview.json @@ -1,13 +1,12 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "caption": "Caption", "name": "example", "previewWidth": 256, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/adjacent.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/adjacent.json index 13f609f82e..d546271743 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/adjacent.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/adjacent.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/basic.json index a760a4ad4f..3964520c13 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/basic.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/styled.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/styled.json index 2d4dc02bec..84c3a57c95 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/styled.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/link/styled.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/basic.json index 70a1a0aaa4..f26d1244a8 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/basic.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -23,14 +23,14 @@ }, { "attrs": { - "backgroundColor": "default", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -45,16 +45,16 @@ }, { "attrs": { - "backgroundColor": "default", "id": "3", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "index": null, "start": undefined, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -69,16 +69,16 @@ }, { "attrs": { - "backgroundColor": "default", "id": "4", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "index": null, "start": undefined, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -93,15 +93,15 @@ }, { "attrs": { - "backgroundColor": "default", "id": "5", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "checked": false, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -116,15 +116,15 @@ }, { "attrs": { - "backgroundColor": "default", "id": "6", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "checked": true, "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/nested.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/nested.json index b0f224fec8..365622744b 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/nested.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/lists/nested.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -23,14 +23,14 @@ }, { "attrs": { - "backgroundColor": "default", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -44,16 +44,16 @@ "content": [ { "attrs": { - "backgroundColor": "default", "id": "3", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "index": null, "start": undefined, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -68,16 +68,16 @@ }, { "attrs": { - "backgroundColor": "default", "id": "4", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "index": null, "start": undefined, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -91,15 +91,15 @@ "content": [ { "attrs": { - "backgroundColor": "default", "id": "5", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "checked": false, "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -114,15 +114,15 @@ }, { "attrs": { - "backgroundColor": "default", "id": "6", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "checked": true, "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/pageBreak/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/pageBreak/basic.json index f054006323..cf77481ba1 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/pageBreak/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/pageBreak/basic.json @@ -1,9 +1,7 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/basic.json index 03c5eb0a1b..d32dcc601e 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/basic.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/empty.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/empty.json index 34dcd51ce9..8fdcafd2e5 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/empty.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/empty.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "type": "paragraph", }, diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/lineBreaks.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/lineBreaks.json index 14d1230246..fda9b14014 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/lineBreaks.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/lineBreaks.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/nested.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/nested.json index 8b7532615d..363e14eec7 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/nested.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/nested.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -22,14 +22,14 @@ "content": [ { "attrs": { - "backgroundColor": "default", "id": "2", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { @@ -44,14 +44,14 @@ }, { "attrs": { - "backgroundColor": "default", "id": "3", - "textColor": "default", }, "content": [ { "attrs": { + "backgroundColor": "default", "textAlignment": "left", + "textColor": "default", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/styled.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/styled.json index debf389327..282b3bb4d5 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/styled.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/paragraph/styled.json @@ -1,14 +1,14 @@ [ { "attrs": { - "backgroundColor": "pink", "id": "1", - "textColor": "orange", }, "content": [ { "attrs": { + "backgroundColor": "pink", "textAlignment": "center", + "textColor": "orange", }, "content": [ { diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/allColWidths.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/allColWidths.json index 519391c98f..e374217aac 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/allColWidths.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/allColWidths.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/basic.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/basic.json index 8fd5f7f2d3..0ada61eeda 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/basic.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/basic.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerCols.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerCols.json index 3933a56ca3..dbe217c2e2 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerCols.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerCols.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerRows.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerRows.json index dc9ee26a35..6e26fab7fa 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerRows.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/headerRows.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedCellColors.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedCellColors.json index 69b25e9bfa..0fdad86410 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedCellColors.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedCellColors.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedColWidths.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedColWidths.json index 60600bb04e..534ef9e162 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedColWidths.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedColWidths.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedRowspansAndColspans.json b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedRowspansAndColspans.json index 11fb672923..c7a08f4dad 100644 --- a/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedRowspansAndColspans.json +++ b/tests/src/unit/core/formatConversion/export/__snapshots__/nodes/table/mixedRowspansAndColspans.json @@ -1,12 +1,13 @@ [ { "attrs": { - "backgroundColor": "default", "id": "1", - "textColor": "default", }, "content": [ { + "attrs": { + "textColor": "default", + }, "content": [ { "content": [ diff --git a/tests/src/unit/core/formatConversion/exportParseEquality/exportParseEqualityTestInstances.ts b/tests/src/unit/core/formatConversion/exportParseEquality/exportParseEqualityTestInstances.ts index 63d3552df0..74654d55e9 100644 --- a/tests/src/unit/core/formatConversion/exportParseEquality/exportParseEqualityTestInstances.ts +++ b/tests/src/unit/core/formatConversion/exportParseEquality/exportParseEqualityTestInstances.ts @@ -1,5 +1,8 @@ import { ExportParseEqualityTestCase } from "../../../shared/formatConversion/exportParseEquality/exportParseEqualityTestCase.js"; -import { testExportParseEqualityBlockNoteHTML } from "../../../shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.js"; +import { + testExportParseEqualityBlockNoteHTML, + testExportParseEqualityHTML, +} from "../../../shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.js"; import { TestInstance } from "../../../types.js"; import { TestBlockSchema, @@ -21,3 +24,291 @@ export const exportParseEqualityTestInstancesBlockNoteHTML: TestInstance< testCase, executeTest: testExportParseEqualityBlockNoteHTML, })); + +export const exportParseEqualityTestInstancesHTML: TestInstance< + ExportParseEqualityTestCase< + TestBlockSchema, + TestInlineContentSchema, + TestStyleSchema + >, + TestBlockSchema, + TestInlineContentSchema, + TestStyleSchema +>[] = [ + { + testCase: { + name: "schema/blocks", + content: [ + { + type: "paragraph", + content: "Paragraph", + }, + { + type: "heading", + content: "Heading", + }, + { + type: "quote", + content: "Quote", + }, + { + type: "bulletListItem", + content: "Bullet List Item", + }, + { + type: "numberedListItem", + content: "Numbered List Item", + }, + { + type: "checkListItem", + content: "Check List Item", + }, + { + type: "codeBlock", + content: "Code", + }, + { + type: "table", + content: { + type: "tableContent", + rows: [ + { + cells: ["Table Cell", "Table Cell"], + }, + { + cells: ["Table Cell", "Table Cell"], + }, + ], + }, + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, + { + testCase: { + name: "schema/blockProps", + content: [ + { + type: "paragraph", + content: "Paragraph", + props: { + textColor: "red", + backgroundColor: "blue", + textAlignment: "center", + }, + }, + { + type: "heading", + content: "Heading", + props: { + level: 2, + }, + }, + { + type: "checkListItem", + content: "Check List Item", + props: { + checked: true, + textColor: "red", + backgroundColor: "blue", + textAlignment: "center", + }, + }, + { + type: "codeBlock", + content: "Code", + props: { language: "javascript" }, + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, + { + testCase: { + name: "schema/inlineContent", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Text ", + styles: {}, + }, + { + type: "link", + content: "Link", + href: "https://example.com", + }, + ], + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, + { + testCase: { + name: "schema/styles", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "T", + styles: { + bold: true, + italic: true, + underline: true, + strike: true, + // Code cannot be applied on top of other styles. + // code: true, + textColor: "red", + backgroundColor: "blue", + }, + }, + ], + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, + { + testCase: { + name: "lists/nested", + content: [ + { + type: "bulletListItem", + content: "List Item 1", + children: [ + { + type: "bulletListItem", + content: "Nested List Item 1", + }, + { + type: "bulletListItem", + content: "Nested List Item 2", + }, + ], + }, + { + type: "bulletListItem", + content: "List Item 2", + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, + { + testCase: { + name: "tables/advanced", + content: [ + { + type: "table", + content: { + type: "tableContent", + columnWidths: [199, 148, 201], + headerRows: 1, + rows: [ + { + cells: [ + { + type: "tableCell", + content: "This row has headers", + props: { + textAlignment: "center", + }, + }, + { + type: "tableCell", + content: [ + { + type: "text", + text: "This is ", + styles: {}, + }, + { + type: "text", + text: "RED", + styles: { + bold: true, + }, + }, + ], + props: { + backgroundColor: "red", + textAlignment: "center", + }, + }, + { + type: "tableCell", + content: "Text is Blue", + props: { + textColor: "blue", + textAlignment: "center", + }, + }, + ], + }, + { + cells: [ + { + type: "tableCell", + content: "This spans 2 columns\nand 2 rows", + props: { + colspan: 2, + rowspan: 2, + backgroundColor: "yellow", + }, + }, + { + type: "tableCell", + content: "Sooo many features", + props: { + backgroundColor: "gray", + textColor: "default", + textAlignment: "left", + }, + }, + ], + }, + { + cells: [ + { + type: "tableCell", + content: [], + props: { + backgroundColor: "gray", + textColor: "purple", + }, + }, + ], + }, + { + cells: [ + { + type: "tableCell", + content: "A cell", + }, + { + type: "tableCell", + content: "Another Cell", + }, + { + type: "tableCell", + content: "Aligned center", + props: { + textAlignment: "center", + }, + }, + ], + }, + ], + }, + }, + ], + }, + executeTest: testExportParseEqualityHTML, + }, +]; diff --git a/tests/src/unit/core/formatConversion/exportParseEquality/runTests.test.ts b/tests/src/unit/core/formatConversion/exportParseEquality/runTests.test.ts index 3970bb02d8..948a80d4e2 100644 --- a/tests/src/unit/core/formatConversion/exportParseEquality/runTests.test.ts +++ b/tests/src/unit/core/formatConversion/exportParseEquality/runTests.test.ts @@ -2,7 +2,10 @@ import { describe, it } from "vitest"; import { setupTestEditor } from "../../setupTestEditor.js"; import { testSchema } from "../../testSchema.js"; -import { exportParseEqualityTestInstancesBlockNoteHTML } from "./exportParseEqualityTestInstances.js"; +import { + exportParseEqualityTestInstancesBlockNoteHTML, + exportParseEqualityTestInstancesHTML, +} from "./exportParseEqualityTestInstances.js"; // Tests for verifying that exporting blocks to another format, then importing // them back results in the same blocks as the original. Used for as many cases @@ -20,3 +23,16 @@ describe("Export/parse equality tests (BlockNote HTML)", () => { }); } }); + +describe("Export/parse equality tests (HTML)", () => { + const getEditor = setupTestEditor(testSchema); + + for (const { + testCase, + executeTest, + } of exportParseEqualityTestInstancesHTML) { + it(`${testCase.name}`, async () => { + await executeTest(getEditor(), testCase); + }); + } +}); diff --git a/tests/src/unit/core/formatConversion/formatConversionTestUtil.ts b/tests/src/unit/core/formatConversion/formatConversionTestUtil.ts index a71cdbda08..70ec3fc344 100644 --- a/tests/src/unit/core/formatConversion/formatConversionTestUtil.ts +++ b/tests/src/unit/core/formatConversion/formatConversionTestUtil.ts @@ -9,6 +9,7 @@ import { PartialBlock, PartialInlineContent, PartialTableCell, + PartialTableContent, StyledText, StyleSchema, TableCell, @@ -153,10 +154,10 @@ export function partialBlockToBlockForTesting< ); if (contentType === "inline") { - const content = withDefaults.content as InlineContent[] | undefined; + const content = withDefaults.content as PartialInlineContent; withDefaults.content = partialContentToInlineContent(content) as any; } else if (contentType === "table") { - const content = withDefaults.content as TableContent | undefined; + const content = withDefaults.content as PartialTableContent; withDefaults.content = { type: "tableContent", columnWidths: @@ -167,7 +168,34 @@ export function partialBlockToBlockForTesting< headerCols: content?.headerCols || undefined, rows: content?.rows.map((row) => ({ - cells: row.cells.map((cell) => partialContentToInlineContent(cell)), + cells: row.cells.map((cell) => + typeof cell === "object" && + "type" in cell && + cell.type === "tableCell" + ? { + type: "tableCell", + props: { + backgroundColor: "default", + colspan: 1, + rowspan: 1, + textAlignment: "left", + textColor: "default", + ...cell.props, + }, + content: partialContentToInlineContent(cell.content), + } + : { + type: "tableCell", + props: { + backgroundColor: "default", + colspan: 1, + rowspan: 1, + textAlignment: "left", + textColor: "default", + }, + content: partialContentToInlineContent(cell), + } + ), })) || [], } as any; } diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/fakeImageCaption.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorProp.json similarity index 54% rename from tests/src/unit/react/formatConversion/export/__snapshots__/html/fakeImageCaption.json rename to tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorProp.json index 3964251638..15f5d0729a 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/fakeImageCaption.json +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorProp.json @@ -1,31 +1,33 @@ [ { "children": [], - "content": undefined, + "content": [ + { + "styles": {}, + "text": "Blue Background", + "type": "text", + }, + ], "id": "1", "props": { - "backgroundColor": "default", - "caption": "", - "name": "", - "previewWidth": 512, - "showPreview": true, + "backgroundColor": "blue", "textAlignment": "left", - "url": "exampleURL", + "textColor": "default", }, - "type": "image", + "type": "paragraph", }, { "children": [], "content": [ { "styles": {}, - "text": "Image Caption", + "text": "Blue Background", "type": "text", }, ], "id": "2", "props": { - "backgroundColor": "default", + "backgroundColor": "blue", "textAlignment": "left", "textColor": "default", }, diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorStyle.json new file mode 100644 index 0000000000..8afe915ba0 --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/backgroundColorStyle.json @@ -0,0 +1,33 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "backgroundColor": "blue", + }, + "text": "Blue Background", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "backgroundColor": "blue", + }, + "text": "Blue Background", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/boldStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/boldStyle.json new file mode 100644 index 0000000000..6a084ab50f --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/boldStyle.json @@ -0,0 +1,45 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "bold": true, + }, + "text": "Bold", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "bold": true, + }, + "text": "Bold", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "bold": true, + }, + "text": "Bold", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/googleDocs.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/googleDocs.json index 5a7912dcd1..638f2b09c2 100644 --- a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/googleDocs.json +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/googleDocs.json @@ -5,6 +5,7 @@ { "styles": { "bold": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Heading 1", "type": "text", @@ -25,6 +26,7 @@ { "styles": { "bold": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Heading 2", "type": "text", @@ -45,6 +47,7 @@ { "styles": { "bold": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Heading 3", "type": "text", @@ -63,7 +66,9 @@ "children": [], "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Paragraph 1", "type": "text", }, @@ -80,7 +85,9 @@ "children": [], "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Paragraph 2", "type": "text", }, @@ -97,7 +104,9 @@ "children": [], "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Paragraph 3", "type": "text", }, @@ -114,7 +123,9 @@ "children": [], "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Paragraph With Hard Break", "type": "text", @@ -134,36 +145,45 @@ Hard Break", { "styles": { "bold": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Bold", "type": "text", }, { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": " ", "type": "text", }, { "styles": { "italic": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Italic", "type": "text", }, { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": " Underline ", "type": "text", }, { "styles": { "strike": true, + "textColor": "rgb(0, 0, 0)", }, "text": "Strikethrough", "type": "text", }, { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": " ", "type": "text", }, @@ -172,6 +192,7 @@ Hard Break", "bold": true, "italic": true, "strike": true, + "textColor": "rgb(255, 0, 0)", }, "text": "All", "type": "text", @@ -194,15 +215,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Nested Numbered List Item 1", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Nested Numbered List Item 1", "type": "text", }, ], "id": "11", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "numberedListItem", }, @@ -211,15 +239,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Nested Numbered List Item 2", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Nested Numbered List Item 2", "type": "text", }, ], "id": "12", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "numberedListItem", }, @@ -227,15 +262,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Nested Bullet List Item 1", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Nested Bullet List Item 1", "type": "text", }, ], "id": "10", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "bulletListItem", }, @@ -244,15 +286,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Nested Bullet List Item 2", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Nested Bullet List Item 2", "type": "text", }, ], "id": "13", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "bulletListItem", }, @@ -260,15 +309,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Bullet List Item 1", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Bullet List Item 1", "type": "text", }, ], "id": "9", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "bulletListItem", }, @@ -277,15 +333,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Bullet List Item 2", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Bullet List Item 2", "type": "text", }, ], "id": "14", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "bulletListItem", }, @@ -294,15 +357,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Numbered List Item 1", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Numbered List Item 1", "type": "text", }, ], "id": "15", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "numberedListItem", }, @@ -311,15 +381,22 @@ Hard Break", "content": [ { "styles": {}, - "text": " Numbered List Item 2", + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "rgb(0, 0, 0)", + }, + "text": "Numbered List Item 2", "type": "text", }, ], "id": "16", "props": { - "backgroundColor": "default", + "backgroundColor": "transparent", "textAlignment": "left", - "textColor": "default", + "textColor": "rgb(0, 0, 0)", }, "type": "numberedListItem", }, @@ -372,7 +449,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 1", "type": "text", }, @@ -389,7 +468,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 2", "type": "text", }, @@ -406,7 +487,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 3", "type": "text", }, @@ -427,7 +510,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 4", "type": "text", }, @@ -444,7 +529,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 5", "type": "text", }, @@ -461,7 +548,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 6", "type": "text", }, @@ -482,7 +571,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 7", "type": "text", }, @@ -499,7 +590,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 8", "type": "text", }, @@ -516,7 +609,9 @@ Hard Break", { "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Cell 9", "type": "text", }, @@ -545,7 +640,9 @@ Hard Break", "children": [], "content": [ { - "styles": {}, + "styles": { + "textColor": "rgb(0, 0, 0)", + }, "text": "Paragraph", "type": "text", }, diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/imageInParagraph.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/imageWidth.json similarity index 91% rename from tests/src/unit/react/formatConversion/export/__snapshots__/html/imageInParagraph.json rename to tests/src/unit/core/formatConversion/parse/__snapshots__/html/imageWidth.json index 28369c981f..61fe6080a0 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/imageInParagraph.json +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/imageWidth.json @@ -7,7 +7,7 @@ "backgroundColor": "default", "caption": "", "name": "", - "previewWidth": 512, + "previewWidth": 100, "showPreview": true, "textAlignment": "left", "url": "exampleURL", diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/italicStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/italicStyle.json new file mode 100644 index 0000000000..27d939a344 --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/italicStyle.json @@ -0,0 +1,45 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "italic": true, + }, + "text": "Italic", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "italic": true, + }, + "text": "Italic", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "italic": true, + }, + "text": "Italic", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/orderedListStart.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/orderedListStart.json new file mode 100644 index 0000000000..3532f949a8 --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/orderedListStart.json @@ -0,0 +1,54 @@ +[ + { + "children": [], + "content": [ + { + "styles": {}, + "text": "List Item 2", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "start": 2, + "textAlignment": "left", + "textColor": "default", + }, + "type": "numberedListItem", + }, + { + "children": [], + "content": [ + { + "styles": {}, + "text": "List Item 3", + "type": "text", + }, + ], + "id": "2", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "numberedListItem", + }, + { + "children": [], + "content": [ + { + "styles": {}, + "text": "List Item 4", + "type": "text", + }, + ], + "id": "3", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "numberedListItem", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/strikeStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/strikeStyle.json new file mode 100644 index 0000000000..cedb32736f --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/strikeStyle.json @@ -0,0 +1,57 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "strike": true, + }, + "text": "Strike", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "strike": true, + }, + "text": "Strike", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "strike": true, + }, + "text": "Strike", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "strike": true, + }, + "text": "Strike", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textAlignmentProp.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textAlignmentProp.json new file mode 100644 index 0000000000..3800b4a81c --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textAlignmentProp.json @@ -0,0 +1,19 @@ +[ + { + "children": [], + "content": [ + { + "styles": {}, + "text": "Text Align Center", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "center", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/twoDivs.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorProp.json similarity index 80% rename from tests/src/unit/react/formatConversion/export/__snapshots__/html/twoDivs.json rename to tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorProp.json index e91570e36b..4211362bfe 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/twoDivs.json +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorProp.json @@ -4,7 +4,7 @@ "content": [ { "styles": {}, - "text": "Single Div", + "text": "Blue Text", "type": "text", }, ], @@ -12,7 +12,7 @@ "props": { "backgroundColor": "default", "textAlignment": "left", - "textColor": "default", + "textColor": "blue", }, "type": "paragraph", }, @@ -21,7 +21,7 @@ "content": [ { "styles": {}, - "text": "second Div", + "text": "Blue Text", "type": "text", }, ], @@ -29,7 +29,7 @@ "props": { "backgroundColor": "default", "textAlignment": "left", - "textColor": "default", + "textColor": "blue", }, "type": "paragraph", }, diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorStyle.json new file mode 100644 index 0000000000..e78e1a4b3c --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/textColorStyle.json @@ -0,0 +1,33 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "textColor": "blue", + }, + "text": "Blue Text", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "textColor": "blue", + }, + "text": "Blue Text", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/twoTables.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/twoTables.json index 3ffbb3ead1..1def7a8e32 100644 --- a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/twoTables.json +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/twoTables.json @@ -45,7 +45,7 @@ { "styles": {}, "text": " - + Name: [Company Representative] Title: Chief Executive Officer", "type": "text", diff --git a/tests/src/unit/core/formatConversion/parse/__snapshots__/html/underlineStyle.json b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/underlineStyle.json new file mode 100644 index 0000000000..22472ff797 --- /dev/null +++ b/tests/src/unit/core/formatConversion/parse/__snapshots__/html/underlineStyle.json @@ -0,0 +1,33 @@ +[ + { + "children": [], + "content": [ + { + "styles": { + "underline": true, + }, + "text": "Underline", + "type": "text", + }, + { + "styles": {}, + "text": " ", + "type": "text", + }, + { + "styles": { + "underline": true, + }, + "text": "Underline", + "type": "text", + }, + ], + "id": "1", + "props": { + "backgroundColor": "default", + "textAlignment": "left", + "textColor": "default", + }, + "type": "paragraph", + }, +] \ No newline at end of file diff --git a/tests/src/unit/core/formatConversion/parse/parseTestInstances.ts b/tests/src/unit/core/formatConversion/parse/parseTestInstances.ts index 1953d1ca75..2ec30e07db 100644 --- a/tests/src/unit/core/formatConversion/parse/parseTestInstances.ts +++ b/tests/src/unit/core/formatConversion/parse/parseTestInstances.ts @@ -20,11 +20,11 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "basicBlockTypes", content: `

    Heading 1

    -

    Heading 2

    -

    Heading 3

    -

    Paragraph

    -
    Image Caption
    -

    None Bold Italic Underline Strikethrough All

    `, +

    Heading 2

    +

    Heading 3

    +

    Paragraph

    +
    Image Caption
    +

    None Bold Italic Underline Strikethrough All

    `, }, executeTest: testParseHTML, }, @@ -32,82 +32,82 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "lists", content: `
      -
    • First
    • -
    • Second
    • -
    • Third
    • -
    • - - Fourth -
    • -
    • - - Fifth -
    • -
    • Five Parent -
        -
      • Child 1
      • -
      • Child 2
      • -
      • - - Child 3 -
      • -
      • - - Child 4 -
      • -
      -
    • -
    `, - }, - executeTest: testParseHTML, - }, - { - testCase: { - name: "nestedLists", - content: `
      -
    • Bullet List Item
    • -
    • Bullet List Item -
        -
      • Nested Bullet List Item
      • -
      • Nested Bullet List Item
      • -
      -
    • -
    • Bullet List Item
    • -
    -
      -
    1. Numbered List Item
    2. -
    3. Numbered List Item -
        -
      1. Nested Numbered List Item
      2. -
      3. Nested Numbered List Item
      4. -
      -
    4. -
    5. Numbered List Item
    6. -
    -
      +
    • First
    • +
    • Second
    • +
    • Third
    • - Check List Item + Fourth
    • - Check List Item + Fifth +
    • +
    • Five Parent
        +
      • Child 1
      • +
      • Child 2
      • - Nested Check List Item + Child 3
      • - Nested Check List Item + Child 4
    • -
    • - - Nested Check List Item -
    • -
    `, + `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "nestedLists", + content: `
      +
    • Bullet List Item
    • +
    • Bullet List Item +
        +
      • Nested Bullet List Item
      • +
      • Nested Bullet List Item
      • +
      +
    • +
    • Bullet List Item
    • +
    +
      +
    1. Numbered List Item
    2. +
    3. Numbered List Item +
        +
      1. Nested Numbered List Item
      2. +
      3. Nested Numbered List Item
      4. +
      +
    4. +
    5. Numbered List Item
    6. +
    +
      +
    • + + Check List Item +
    • +
    • + + Check List Item +
        +
      • + + Nested Check List Item +
      • +
      • + + Nested Check List Item +
      • +
      +
    • +
    • + + Nested Check List Item +
    • +
    `, }, executeTest: testParseHTML, }, @@ -115,67 +115,67 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "nestedListsWithParagraphs", content: `
      -
    • -

      Bullet List Item

      -
    • -
    • -

      Bullet List Item

      -
        -
      • -

        Nested Bullet List Item

        -
      • -
      • -

        Nested Bullet List Item

        -
      • -
      -
    • -
    • -

      Bullet List Item

      -
    • -
    -
      -
    1. -

      Numbered List Item

      -
    2. -
    3. -

      Numbered List Item

      -
        -
      1. -

        Nested Numbered List Item

        -
      2. -
      3. -

        Nested Numbered List Item

        -
      4. -
      -
    4. -
    5. -

      Numbered List Item

      -
    6. -
    -
      -
    • - -

      Checked List Item

      -
    • -
    • - -

      Checked List Item

      -
        -
      • - -

        Nested Checked List Item

        -
      • -
      • - -

        Nested Checked List Item

        -
      • -
      -
    • -
    • - -

      Checked List Item

      -
    • -
    `, +
  • +

    Bullet List Item

    +
  • +
  • +

    Bullet List Item

    +
      +
    • +

      Nested Bullet List Item

      +
    • +
    • +

      Nested Bullet List Item

      +
    • +
    +
  • +
  • +

    Bullet List Item

    +
  • + +
      +
    1. +

      Numbered List Item

      +
    2. +
    3. +

      Numbered List Item

      +
        +
      1. +

        Nested Numbered List Item

        +
      2. +
      3. +

        Nested Numbered List Item

        +
      4. +
      +
    4. +
    5. +

      Numbered List Item

      +
    6. +
    +
      +
    • + +

      Checked List Item

      +
    • +
    • + +

      Checked List Item

      +
        +
      • + +

        Nested Checked List Item

        +
      • +
      • + +

        Nested Checked List Item

        +
      • +
      +
    • +
    • + +

      Checked List Item

      +
    • +
    `, }, executeTest: testParseHTML, }, @@ -183,49 +183,49 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "mixedNestedLists", content: `
      -
    • Bullet List Item
    • -
    • Bullet List Item -
        -
      1. Nested Numbered List Item
      2. -
      3. Nested Numbered List Item
      4. -
      -
    • -
    • Bullet List Item
    • -
    -
      -
    1. Numbered List Item
    2. -
    3. Numbered List Item -
        -
      • - - Nested Check List Item -
      • -
      • - - Nested Check List Item -
      • -
      -
    4. -
    5. Numbered List Item
    6. -
    -
      -
    • - - Check List Item -
    • -
    • - - Check List Item -
        -
      • Nested Bullet List Item
      • -
      • Nested Bullet List Item
      • -
      -
    • -
    • - - Nested Check List Item -
    • -
    `, +
  • Bullet List Item
  • +
  • Bullet List Item +
      +
    1. Nested Numbered List Item
    2. +
    3. Nested Numbered List Item
    4. +
    +
  • +
  • Bullet List Item
  • + +
      +
    1. Numbered List Item
    2. +
    3. Numbered List Item +
        +
      • + + Nested Check List Item +
      • +
      • + + Nested Check List Item +
      • +
      +
    4. +
    5. Numbered List Item
    6. +
    +
      +
    • + + Check List Item +
    • +
    • + + Check List Item +
        +
      • Nested Bullet List Item
      • +
      • Nested Bullet List Item
      • +
      +
    • +
    • + + Nested Check List Item +
    • +
    `, }, executeTest: testParseHTML, }, @@ -233,16 +233,16 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "divs", content: `
    Single Div
    -
    - Div -
    Nested Div
    -
    Nested Div
    -
    -
    Single Div 2
    -
    -
    Nested Div
    -
    Nested Div
    -
    `, +
    + Div +
    Nested Div
    +
    Nested Div
    +
    +
    Single Div 2
    +
    +
    Nested Div
    +
    Nested Div
    +
    `, }, executeTest: testParseHTML, }, @@ -257,8 +257,8 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "imageInParagraph", content: `

    - -

    `, + +

    `, }, executeTest: testParseHTML, }, @@ -266,9 +266,9 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "fakeImageCaption", content: `
    - -

    Image Caption

    -
    `, + +

    Image Caption

    +
    `, }, executeTest: testParseHTML, }, @@ -276,27 +276,27 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "deepNestedContent", content: `
    - Outer 1 Div Before -
    - Outer 2 Div Before + Outer 1 Div Before
    - Outer 3 Div Before + Outer 2 Div Before
    - Outer 4 Div Before -

    Heading 1

    -

    Heading 2

    -

    Heading 3

    -

    Paragraph

    -
    Image Caption
    -

    Bold Italic Underline Strikethrough All

    - Outer 4 Div After + Outer 3 Div Before +
    + Outer 4 Div Before +

    Heading 1

    +

    Heading 2

    +

    Heading 3

    +

    Paragraph

    +
    Image Caption
    +

    Bold Italic Underline Strikethrough All

    + Outer 4 Div After +
    + Outer 3 Div After
    - Outer 3 Div After + Outer 2 Div After
    - Outer 2 Div After -
    - Outer 1 Div After -
    `, + Outer 1 Div After +
    `, }, executeTest: testParseHTML, }, @@ -304,10 +304,10 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "inlineContentAndNestedBlocks", content: `
    - None Bold Italic Underline Strikethrough All -
    Nested Div
    -

    Nested Paragraph

    -
    `, + None Bold Italic Underline Strikethrough All +
    Nested Div
    +

    Nested Paragraph

    +
    `, }, executeTest: testParseHTML, }, @@ -315,21 +315,21 @@ export const parseTestInstancesHTML: TestInstance< testCase: { name: "twoTables", content: ` - - - - - - -
    -

    Company

    -
    -

    Example Company Inc.

    -

    -

    Name: [Company Representative]

    -

    -

    Title: Chief Executive Officer

    -
    + + +

    Company

    + + + + +

    Example Company Inc.

    +

    +

    Name: [Company Representative]

    +

    +

    Title: Chief Executive Officer

    + + + @@ -512,6 +512,89 @@ With Hard Break

    }, executeTest: testParseHTML, }, + { + testCase: { + name: "boldStyle", + content: `

    Bold Bold Bold

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "italicStyle", + content: `

    Italic Italic Italic

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "underlineStyle", + content: `

    Underline Underline

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "strikeStyle", + content: `

    Strike Strike Strike Strike

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "textColorStyle", + content: `

    Blue Text Blue Text

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "backgroundColorStyle", + content: `

    Blue Background Blue Background

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "orderedListStart", + content: `
      +
    1. List Item 2
    2. +
    3. List Item 3
    4. +
    5. List Item 4
    6. +
    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "imageWidth", + content: ``, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "textAlignmentProp", + content: `

    Text Align Center

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "textColorProp", + content: `

    Blue Text

    +

    Blue Text

    `, + }, + executeTest: testParseHTML, + }, + { + testCase: { + name: "backgroundColorProp", + content: `

    Blue Background

    +

    Blue Background

    `, + }, + executeTest: testParseHTML, + }, ]; export const parseTestInstancesMarkdown: TestInstance< diff --git a/tests/src/unit/core/setupTestEditor.ts b/tests/src/unit/core/setupTestEditor.ts index 5df422680a..b98eaae56a 100644 --- a/tests/src/unit/core/setupTestEditor.ts +++ b/tests/src/unit/core/setupTestEditor.ts @@ -36,6 +36,12 @@ export const setupTestEditor = < }, }, schema, + tables: { + splitCells: true, + cellBackgroundColor: true, + cellTextColor: true, + headers: true, + }, trailingBlock: false, uploadFile: uploadToTmpFilesDotOrg_DEV_ONLY, }); diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/contains-newlines.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/contains-newlines.html deleted file mode 100644 index 32e032f09d..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/contains-newlines.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -
    -
    -
    -          const hello ='world';console.log(hello);
    -        
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/defaultLanguage.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/defaultLanguage.html deleted file mode 100644 index a8fb6870f0..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/defaultLanguage.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -
    -
    -
    -          console.log('Hello, world!');
    -        
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/empty.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/empty.html deleted file mode 100644 index 7df4533925..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/empty.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -
    -
    -
    -          
    -        
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/python.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/python.html deleted file mode 100644 index 232edd4914..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/codeBlock/python.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -
    -
    -
    -          print('Hello, world!')
    -        
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html deleted file mode 100644 index 7587f35366..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/complex/misc.html +++ /dev/null @@ -1,59 +0,0 @@ -
    -
    -
    -
    -

    - - Heading - - - 2 - -

    -
    -
    -
    -
    -
    -

    Paragraph

    -
    -
    -
    -
    -
    -
    -

    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/customParagraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/customParagraph/styled.html index 29d66a7d8e..41d04967e4 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/customParagraph/styled.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/customParagraph/styled.html @@ -1,22 +1,12 @@
    -
    -
    +
    +
    diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/basic.html deleted file mode 100644 index 9974d8d975..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/basic.html +++ /dev/null @@ -1,28 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    example

    -
    -

    Caption

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/button.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/button.html deleted file mode 100644 index db235fd792..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/button.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    Add file

    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/nested.html deleted file mode 100644 index 6553a5c4a8..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/nested.html +++ /dev/null @@ -1,56 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    example

    -
    -

    Caption

    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    example

    -
    -

    Caption

    -
    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noCaption.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noCaption.html deleted file mode 100644 index 48340682e8..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noCaption.html +++ /dev/null @@ -1,26 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    example

    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noName.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noName.html deleted file mode 100644 index 47ae5b3bf9..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/file/noName.html +++ /dev/null @@ -1,27 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    -
    -

    Caption

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/basic.html deleted file mode 100644 index ca0de5979f..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/basic.html +++ /dev/null @@ -1,13 +0,0 @@ -
    -
    -
    -
    -

    - Text1 -
    - Text2 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/between-links.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/between-links.html deleted file mode 100644 index 9e4b427c62..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/between-links.html +++ /dev/null @@ -1,21 +0,0 @@ -
    -
    -
    -
    -

    - Link1 -
    - Link2 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/end.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/end.html deleted file mode 100644 index cc08190f01..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/end.html +++ /dev/null @@ -1,12 +0,0 @@ -
    -
    -
    -
    -

    - Text1 -
    -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/link.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/link.html deleted file mode 100644 index 4cae02d67b..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/link.html +++ /dev/null @@ -1,21 +0,0 @@ -
    -
    -
    -
    -

    - Link1 -
    - Link1 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/multiple.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/multiple.html deleted file mode 100644 index 06a2a6a7e5..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/multiple.html +++ /dev/null @@ -1,15 +0,0 @@ -
    -
    -
    -
    -

    - Text1 -
    - Text2 -
    - Text3 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/only.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/only.html deleted file mode 100644 index 030fa48828..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/only.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -
    -
    -

    -
    -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/start.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/start.html deleted file mode 100644 index 29e2b8ece4..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/start.html +++ /dev/null @@ -1,12 +0,0 @@ -
    -
    -
    -
    -

    -
    - Text1 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/styles.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/styles.html deleted file mode 100644 index b6b8eadb30..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/hardbreak/styles.html +++ /dev/null @@ -1,13 +0,0 @@ -
    -
    -
    -
    -

    - Text1 -
    - Text2 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/basic.html deleted file mode 100644 index fe9509a5e3..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/basic.html +++ /dev/null @@ -1,22 +0,0 @@ -
    -
    -
    -
    -
    -
    - example -
    -

    Caption

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/button.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/button.html deleted file mode 100644 index 250700bb22..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/button.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    Add image

    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/nested.html deleted file mode 100644 index 90e46213fe..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/nested.html +++ /dev/null @@ -1,42 +0,0 @@ -
    -
    -
    -
    -
    -
    - Caption -
    -

    Caption

    -
    -
    -
    -
    -
    -
    -
    -
    - Caption -
    -

    Caption

    -
    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noCaption.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noCaption.html deleted file mode 100644 index 2daf51143b..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noCaption.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    -
    -
    -
    -
    - example -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noName.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noName.html deleted file mode 100644 index 05bc98c060..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noName.html +++ /dev/null @@ -1,21 +0,0 @@ -
    -
    -
    -
    -
    -
    - Caption -
    -

    Caption

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noPreview.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noPreview.html deleted file mode 100644 index 84f2dbfc76..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/image/noPreview.html +++ /dev/null @@ -1,30 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    - - - -
    -

    example

    -
    -

    Caption

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/adjacent.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/adjacent.html deleted file mode 100644 index 2408c611ac..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/adjacent.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    -
    -
    -

    - Website - Website2 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/basic.html deleted file mode 100644 index 3daea90831..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/basic.html +++ /dev/null @@ -1,15 +0,0 @@ -
    -
    -
    -
    -

    - Website -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/styled.html deleted file mode 100644 index 2b9d4cb574..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/link/styled.html +++ /dev/null @@ -1,22 +0,0 @@ -
    -
    -
    -
    -

    - - Web - - site -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/basic.html deleted file mode 100644 index 3cb5ed5e94..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/basic.html +++ /dev/null @@ -1,58 +0,0 @@ -
    -
    -
    -
    -

    Bullet List Item 1

    -
    -
    -
    -
    -
    -
    -

    Bullet List Item 2

    -
    -
    -
    -
    -
    -
    -

    Numbered List Item 1

    -
    -
    -
    -
    -
    -
    -

    Numbered List Item 2

    -
    -
    -
    -
    -
    -
    - -

    Check List Item 1

    -
    -
    -
    -
    -
    -
    - -

    Check List Item 2

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/nested.html deleted file mode 100644 index f9aaf463f8..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/lists/nested.html +++ /dev/null @@ -1,62 +0,0 @@ -
    -
    -
    -
    -

    Bullet List Item 1

    -
    -
    -
    -
    -
    -
    -

    Bullet List Item 2

    -
    -
    -
    -
    -
    -

    Numbered List Item 1

    -
    -
    -
    -
    -
    -
    -

    Numbered List Item 2

    -
    -
    -
    -
    -
    - -

    Check List Item 1

    -
    -
    -
    -
    -
    -
    - -

    Check List Item 2

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/pageBreak/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/pageBreak/basic.html deleted file mode 100644 index 545ab1bbac..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/pageBreak/basic.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -
    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/basic.html deleted file mode 100644 index 326c6a037b..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/basic.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -
    -
    -
    -

    Paragraph

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/empty.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/empty.html deleted file mode 100644 index 8c0240ae7c..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/empty.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -
    -
    -
    -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/lineBreaks.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/lineBreaks.html deleted file mode 100644 index 0aa8dffa67..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/lineBreaks.html +++ /dev/null @@ -1,13 +0,0 @@ -
    -
    -
    -
    -

    - Line 1 -
    - Line 2 -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/nested.html deleted file mode 100644 index 7d99f8188d..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/nested.html +++ /dev/null @@ -1,25 +0,0 @@ -
    -
    -
    -
    -

    Paragraph

    -
    -
    -
    -
    -
    -

    Nested Paragraph 1

    -
    -
    -
    -
    -
    -
    -

    Nested Paragraph 2

    -
    -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html deleted file mode 100644 index 5ae4c7b95c..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/paragraph/styled.html +++ /dev/null @@ -1,32 +0,0 @@ -
    -
    -
    -
    -

    - Plain - Red Text - Blue Background - - Mixed Colors - -

    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/simpleCustomParagraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/simpleCustomParagraph/styled.html index 077d8d0898..3822956042 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/simpleCustomParagraph/styled.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/simpleCustomParagraph/styled.html @@ -1,22 +1,12 @@
    -
    -
    +
    +
    diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/allColWidths.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/allColWidths.html deleted file mode 100644 index 778749b580..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/allColWidths.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/basic.html deleted file mode 100644 index a9e249effe..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/basic.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerCols.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerCols.html deleted file mode 100644 index 6f5dcb8982..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerCols.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerRows.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerRows.html deleted file mode 100644 index 2ce617f949..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/headerRows.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedCellColors.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedCellColors.html deleted file mode 100644 index 8cafca0c72..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedCellColors.html +++ /dev/null @@ -1,55 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedColWidths.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedColWidths.html deleted file mode 100644 index a5e5bdf3b4..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedColWidths.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedRowspansAndColspans.html b/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedRowspansAndColspans.html deleted file mode 100644 index eb7dd2ce02..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/blocknoteHTML/table/mixedRowspansAndColspans.html +++ /dev/null @@ -1,46 +0,0 @@ -
    -
    -
    -
    - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/basicBlockTypes.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/basicBlockTypes.json deleted file mode 100644 index 1a9bd562f2..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/basicBlockTypes.json +++ /dev/null @@ -1,143 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 1", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "level": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 2", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "level": 2, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 3", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "level": 3, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": undefined, - "id": "5", - "props": { - "backgroundColor": "default", - "caption": "Image Caption", - "name": "", - "previewWidth": 512, - "showPreview": true, - "textAlignment": "left", - "url": "exampleURL", - }, - "type": "image", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "None ", - "type": "text", - }, - { - "styles": { - "bold": true, - }, - "text": "Bold ", - "type": "text", - }, - { - "styles": { - "italic": true, - }, - "text": "Italic ", - "type": "text", - }, - { - "styles": { - "underline": true, - }, - "text": "Underline ", - "type": "text", - }, - { - "styles": { - "strike": true, - }, - "text": "Strikethrough ", - "type": "text", - }, - { - "styles": { - "bold": true, - "italic": true, - "strike": true, - "underline": true, - }, - "text": "All", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/contains-newlines.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/contains-newlines.html deleted file mode 100644 index 1b766eb380..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/contains-newlines.html +++ /dev/null @@ -1,8 +0,0 @@ -
    -  
    -    const hello ='world';
    -    
    - console.log(hello); -
    -
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/defaultLanguage.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/defaultLanguage.html deleted file mode 100644 index c5939c1b5e..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/defaultLanguage.html +++ /dev/null @@ -1,3 +0,0 @@ -
    -  console.log('Hello, world!');
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/empty.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/empty.html deleted file mode 100644 index 9bbe62c374..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/empty.html +++ /dev/null @@ -1,3 +0,0 @@ -
    -  
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/python.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/python.html deleted file mode 100644 index 2d95c0d45d..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlock/python.html +++ /dev/null @@ -1,3 +0,0 @@ -
    -  print('Hello, world!')
    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlocks.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlocks.json deleted file mode 100644 index f9bd791440..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/codeBlocks.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "console.log("Should default to JS")", - "type": "text", - }, - ], - "id": "1", - "props": { - "language": "text", - }, - "type": "codeBlock", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "console.log("Should parse TS from data-language")", - "type": "text", - }, - ], - "id": "2", - "props": { - "language": "typescript", - }, - "type": "codeBlock", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "print("Should parse Python from language- class")", - "type": "text", - }, - ], - "id": "3", - "props": { - "language": "python", - }, - "type": "codeBlock", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "console.log("Should prioritize TS from data-language over language- class")", - "type": "text", - }, - ], - "id": "4", - "props": { - "language": "typescript", - }, - "type": "codeBlock", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/complex/misc.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/complex/misc.html deleted file mode 100644 index 0df8a18343..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/complex/misc.html +++ /dev/null @@ -1,14 +0,0 @@ -

    - - Heading - - - 2 - -

    -

    Paragraph

    -
      -
    • -

      -
    • -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/contextParagraph/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/contextParagraph/basic.html index ca43744a1e..f7b852f0f1 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/contextParagraph/basic.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/contextParagraph/basic.html @@ -1 +1 @@ -
    React Context Paragraph
    \ No newline at end of file +
    React Context Paragraph
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/basic.html index 2971f11056..ff100b250c 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/basic.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/basic.html @@ -1 +1 @@ -

    Hello World

    \ No newline at end of file +

    Hello World

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/lineBreaks.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/lineBreaks.html index 2971f11056..ff100b250c 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/lineBreaks.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/lineBreaks.html @@ -1 +1 @@ -

    Hello World

    \ No newline at end of file +

    Hello World

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/nested.html index 6b2e1554cf..863e2204ed 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/nested.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/nested.html @@ -1,3 +1,3 @@ -

    Hello World

    -

    Hello World

    -

    Hello World

    \ No newline at end of file +

    Hello World

    +

    Hello World

    +

    Hello World

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/styled.html index 77e2409a54..962c4cea9e 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/styled.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/customParagraph/styled.html @@ -1,6 +1,7 @@

    Hello World

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/deepNestedContent.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/deepNestedContent.json deleted file mode 100644 index 959dbbcd5a..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/deepNestedContent.json +++ /dev/null @@ -1,243 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Outer 1 Div Before", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Outer 2 Div Before", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Outer 3 Div Before", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Outer 4 Div Before", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 1", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "level": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 2", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "level": 2, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 3", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "level": 3, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": undefined, - "id": "9", - "props": { - "backgroundColor": "default", - "caption": "Image Caption", - "name": "", - "previewWidth": 512, - "showPreview": true, - "textAlignment": "left", - "url": "exampleURL", - }, - "type": "image", - }, - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Bold", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "italic": true, - }, - "text": "Italic", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "underline": true, - }, - "text": "Underline", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "strike": true, - }, - "text": "Strikethrough", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "bold": true, - "italic": true, - "strike": true, - "underline": true, - }, - "text": "All", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Outer 4 Div After Outer 3 Div After Outer 2 Div After Outer 1 Div After", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/divs.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/divs.json deleted file mode 100644 index 1e08669f16..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/divs.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Single Div", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Div", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Div", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Div", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Single Div 2", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Div", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Div", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/basic.html deleted file mode 100644 index 22fe1c373a..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/basic.html +++ /dev/null @@ -1,4 +0,0 @@ -
    - example -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/button.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/button.html deleted file mode 100644 index cc675c57a7..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/button.html +++ /dev/null @@ -1 +0,0 @@ -

    Add file

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/nested.html deleted file mode 100644 index 226ee83250..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/nested.html +++ /dev/null @@ -1,8 +0,0 @@ -
    - example -

    Caption

    -
    -
    - example -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noCaption.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noCaption.html deleted file mode 100644 index e1c8211b39..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noCaption.html +++ /dev/null @@ -1 +0,0 @@ -example \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noName.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noName.html deleted file mode 100644 index f0ac923a66..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/file/noName.html +++ /dev/null @@ -1,4 +0,0 @@ -
    - exampleURL -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/googleDocs.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/googleDocs.json deleted file mode 100644 index 5a7912dcd1..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/googleDocs.json +++ /dev/null @@ -1,579 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Heading 1", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "level": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Heading 2", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "level": 2, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Heading 3", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "level": 3, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph 1", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph 2", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph 3", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph With -Hard Break", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Bold", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "italic": true, - }, - "text": "Italic", - "type": "text", - }, - { - "styles": {}, - "text": " Underline ", - "type": "text", - }, - { - "styles": { - "strike": true, - }, - "text": "Strikethrough", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "bold": true, - "italic": true, - "strike": true, - }, - "text": "All", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [ - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Nested Numbered List Item 1", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Nested Numbered List Item 2", - "type": "text", - }, - ], - "id": "12", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": " Nested Bullet List Item 1", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Nested Bullet List Item 2", - "type": "text", - }, - ], - "id": "13", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": " Bullet List Item 1", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Bullet List Item 2", - "type": "text", - }, - ], - "id": "14", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Numbered List Item 1", - "type": "text", - }, - ], - "id": "15", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " Numbered List Item 2", - "type": "text", - }, - ], - "id": "16", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": undefined, - "id": "17", - "props": { - "backgroundColor": "default", - "caption": "", - "name": "", - "previewWidth": 447, - "showPreview": true, - "textAlignment": "left", - "url": "https://lh7-us.googleusercontent.com/SGyYp6hfLvNkli62NKFJB6NQz-fNa2Sjy8QxfUuqipW--qCCXmCz-dJmeZUGaDXIF9TEZHzbhNJsw4_w-B09eaFOn0oUChKsrSt3cwAIFu6d4SoSjHTR_DRTPr415_P7an7Lue-EwlUcVBk1WCzcoVQ", - }, - "type": "image", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " -", - "type": "text", - }, - ], - "id": "18", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": { - "columnWidths": [ - undefined, - undefined, - undefined, - ], - "headerCols": undefined, - "headerRows": undefined, - "rows": [ - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 1", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 2", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 3", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 4", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 5", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 6", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 7", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 8", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 9", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - ], - "type": "tableContent", - }, - "id": "19", - "props": { - "textColor": "default", - }, - "type": "table", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph", - "type": "text", - }, - ], - "id": "20", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": " -", - "type": "text", - }, - ], - "id": "21", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/basic.html deleted file mode 100644 index d0444869cc..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/basic.html +++ /dev/null @@ -1,5 +0,0 @@ -

    - Text1 -
    - Text2 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/between-links.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/between-links.html deleted file mode 100644 index 701b5d4213..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/between-links.html +++ /dev/null @@ -1,13 +0,0 @@ -

    - Link1 -
    - Link2 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/end.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/end.html deleted file mode 100644 index 1f7bcf996b..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/end.html +++ /dev/null @@ -1,4 +0,0 @@ -

    - Text1 -
    -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/link.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/link.html deleted file mode 100644 index 2c762aedc5..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/link.html +++ /dev/null @@ -1,13 +0,0 @@ -

    - Link1 -
    - Link1 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/multiple.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/multiple.html deleted file mode 100644 index 5d957daa62..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/multiple.html +++ /dev/null @@ -1,7 +0,0 @@ -

    - Text1 -
    - Text2 -
    - Text3 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/only.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/only.html deleted file mode 100644 index b96f89d7a0..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/only.html +++ /dev/null @@ -1,3 +0,0 @@ -

    -
    -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/start.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/start.html deleted file mode 100644 index f0370a6c68..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/start.html +++ /dev/null @@ -1,4 +0,0 @@ -

    -
    - Text1 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/styles.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/styles.html deleted file mode 100644 index 7a49318b49..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/hardbreak/styles.html +++ /dev/null @@ -1,5 +0,0 @@ -

    - Text1 -
    - Text2 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/basic.html deleted file mode 100644 index 59f782dbb1..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/basic.html +++ /dev/null @@ -1,9 +0,0 @@ -
    - example -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/button.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/button.html deleted file mode 100644 index 8553433aff..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/button.html +++ /dev/null @@ -1 +0,0 @@ -

    Add image

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/nested.html deleted file mode 100644 index 8cc825084e..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/nested.html +++ /dev/null @@ -1,8 +0,0 @@ -
    - exampleURL -

    Caption

    -
    -
    - exampleURL -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noCaption.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noCaption.html deleted file mode 100644 index 269bdeca7e..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noCaption.html +++ /dev/null @@ -1,6 +0,0 @@ -example \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noName.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noName.html deleted file mode 100644 index decd178fbe..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noName.html +++ /dev/null @@ -1,4 +0,0 @@ -
    - exampleURL -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noPreview.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noPreview.html deleted file mode 100644 index 21bf2faaf1..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/image/noPreview.html +++ /dev/null @@ -1,10 +0,0 @@ -
    - example -

    Caption

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/inlineContentAndNestedBlocks.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/inlineContentAndNestedBlocks.json deleted file mode 100644 index b21c97408c..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/inlineContentAndNestedBlocks.json +++ /dev/null @@ -1,91 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "None ", - "type": "text", - }, - { - "styles": { - "bold": true, - }, - "text": "Bold ", - "type": "text", - }, - { - "styles": { - "italic": true, - }, - "text": "Italic ", - "type": "text", - }, - { - "styles": { - "underline": true, - }, - "text": "Underline ", - "type": "text", - }, - { - "styles": { - "strike": true, - }, - "text": "Strikethrough ", - "type": "text", - }, - { - "styles": { - "bold": true, - "italic": true, - "strike": true, - "underline": true, - }, - "text": "All", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Div", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Paragraph", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/adjacent.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/adjacent.html deleted file mode 100644 index db99691d33..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/adjacent.html +++ /dev/null @@ -1,12 +0,0 @@ -

    - Website - Website2 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/basic.html deleted file mode 100644 index 4b61e8c582..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/basic.html +++ /dev/null @@ -1,7 +0,0 @@ -

    - Website -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/styled.html deleted file mode 100644 index fb7737f7f8..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/link/styled.html +++ /dev/null @@ -1,14 +0,0 @@ -

    - - Web - - site -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists.json deleted file mode 100644 index cdd50b6d47..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists.json +++ /dev/null @@ -1,177 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "First", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Second", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Third", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Fourth", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Fifth", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Child 1", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Child 2", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Child 3", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Child 4", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Five Parent", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/basic.html deleted file mode 100644 index aee1048a87..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/basic.html +++ /dev/null @@ -1,26 +0,0 @@ -
      -
    • -

      Bullet List Item 1

      -
    • -
    • -

      Bullet List Item 2

      -
    • -
    -
      -
    1. -

      Numbered List Item 1

      -
    2. -
    3. -

      Numbered List Item 2

      -
    4. -
    -
      -
    • - -

      Check List Item 1

      -
    • -
    • - -

      Check List Item 2

      -
    • -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/nested.html deleted file mode 100644 index b2497ae937..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/lists/nested.html +++ /dev/null @@ -1,26 +0,0 @@ -
      -
    • -

      Bullet List Item 1

      -
    • -
    • -

      Bullet List Item 2

      -
        -
      1. -

        Numbered List Item 1

        -
      2. -
      3. -

        Numbered List Item 2

        -
          -
        • - -

          Check List Item 1

          -
        • -
        • - -

          Check List Item 2

          -
        • -
        -
      4. -
      -
    • -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/mixedNestedLists.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/mixedNestedLists.json deleted file mode 100644 index 5b79ba865f..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/mixedNestedLists.json +++ /dev/null @@ -1,265 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "checked": true, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Check List Item", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "checked": true, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "13", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "14", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Check List Item", - "type": "text", - }, - ], - "id": "12", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "15", - "props": { - "backgroundColor": "default", - "checked": true, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedLists.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedLists.json deleted file mode 100644 index 061ca1c5bc..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedLists.json +++ /dev/null @@ -1,265 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Check List Item", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "13", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "14", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Check List Item", - "type": "text", - }, - ], - "id": "12", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Check List Item", - "type": "text", - }, - ], - "id": "15", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedListsWithParagraphs.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedListsWithParagraphs.json deleted file mode 100644 index 055d8f7d31..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/nestedListsWithParagraphs.json +++ /dev/null @@ -1,265 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Checked List Item", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Checked List Item", - "type": "text", - }, - ], - "id": "13", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Checked List Item", - "type": "text", - }, - ], - "id": "14", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Checked List Item", - "type": "text", - }, - ], - "id": "12", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Checked List Item", - "type": "text", - }, - ], - "id": "15", - "props": { - "backgroundColor": "default", - "checked": false, - "textAlignment": "left", - "textColor": "default", - }, - "type": "checkListItem", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/notion.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/notion.json deleted file mode 100644 index b1eb97dd2d..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/notion.json +++ /dev/null @@ -1,566 +0,0 @@ -[ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 1", - "type": "text", - }, - ], - "id": "1", - "props": { - "backgroundColor": "default", - "level": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 2", - "type": "text", - }, - ], - "id": "2", - "props": { - "backgroundColor": "default", - "level": 2, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Heading 3", - "type": "text", - }, - ], - "id": "3", - "props": { - "backgroundColor": "default", - "level": 3, - "textAlignment": "left", - "textColor": "default", - }, - "type": "heading", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph 1", - "type": "text", - }, - ], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Paragraph 1", - "type": "text", - }, - ], - "id": "5", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Paragraph 2", - "type": "text", - }, - ], - "id": "6", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph With Hard Break", - "type": "text", - }, - ], - "id": "7", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Bold", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "italic": true, - }, - "text": "Italic", - "type": "text", - }, - { - "styles": {}, - "text": " Underline ", - "type": "text", - }, - { - "styles": { - "strike": true, - }, - "text": "Strikethrough", - "type": "text", - }, - { - "styles": {}, - "text": " ", - "type": "text", - }, - { - "styles": { - "bold": true, - "italic": true, - "strike": true, - }, - "text": "All", - "type": "text", - }, - ], - "id": "8", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [ - { - "children": [ - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item 1", - "type": "text", - }, - ], - "id": "11", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Numbered List Item 2", - "type": "text", - }, - ], - "id": "12", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item 1", - "type": "text", - }, - ], - "id": "10", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Nested Bullet List Item 2", - "type": "text", - }, - ], - "id": "13", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - ], - "content": [ - { - "styles": {}, - "text": "Bullet List Item 1", - "type": "text", - }, - ], - "id": "9", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Bullet List Item 2", - "type": "text", - }, - ], - "id": "14", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "bulletListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item 1", - "type": "text", - }, - ], - "id": "15", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Numbered List Item 2", - "type": "text", - }, - ], - "id": "16", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "numberedListItem", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Background Color Paragraph", - "type": "text", - }, - ], - "id": "17", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "!", - "type": "text", - }, - { - "content": [ - { - "styles": {}, - "text": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", - "type": "text", - }, - ], - "href": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", - "type": "link", - }, - ], - "id": "18", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": { - "columnWidths": [ - undefined, - undefined, - undefined, - ], - "headerCols": undefined, - "headerRows": 1, - "rows": [ - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 1", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 2", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 3", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 4", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 5", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 6", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "Cell 7", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 8", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - { - "content": [ - { - "styles": {}, - "text": "Cell 9", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - ], - "type": "tableContent", - }, - "id": "19", - "props": { - "textColor": "default", - }, - "type": "table", - }, - { - "children": [], - "content": [ - { - "styles": {}, - "text": "Paragraph", - "type": "text", - }, - ], - "id": "20", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, -] \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/pageBreak/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/pageBreak/basic.html deleted file mode 100644 index ba65bb0620..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/pageBreak/basic.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/basic.html deleted file mode 100644 index 38addeaada..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/basic.html +++ /dev/null @@ -1 +0,0 @@ -

    Paragraph

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/empty.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/empty.html deleted file mode 100644 index 540135ad6a..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/empty.html +++ /dev/null @@ -1 +0,0 @@ -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/lineBreaks.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/lineBreaks.html deleted file mode 100644 index 7dafa23c42..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/lineBreaks.html +++ /dev/null @@ -1,5 +0,0 @@ -

    - Line 1 -
    - Line 2 -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/nested.html deleted file mode 100644 index 5e80eb83e2..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/nested.html +++ /dev/null @@ -1,3 +0,0 @@ -

    Paragraph

    -

    Nested Paragraph 1

    -

    Nested Paragraph 2

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/styled.html deleted file mode 100644 index 65e55c08bf..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/paragraph/styled.html +++ /dev/null @@ -1,12 +0,0 @@ -

    - Plain - Red Text - Blue Background - - Mixed Colors - -

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/basic.html index e60c23faa1..669095fc59 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/basic.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/basic.html @@ -1 +1,5 @@ -

    React Custom Paragraph

    \ No newline at end of file +

    React Custom Paragraph

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/nested.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/nested.html index 68e209191a..677ec39d37 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/nested.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/nested.html @@ -1,3 +1,15 @@ -

    Custom React Paragraph

    -

    Nested React Custom Paragraph 1

    -

    Nested React Custom Paragraph 2

    \ No newline at end of file +

    Custom React Paragraph

    +

    Nested React Custom Paragraph 1

    +

    Nested React Custom Paragraph 2

    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/styled.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/styled.html index d50c890bfb..4d0b88207b 100644 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/styled.html +++ b/tests/src/unit/react/formatConversion/export/__snapshots__/html/simpleCustomParagraph/styled.html @@ -1,9 +1,10 @@

    Plain Red Text diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/allColWidths.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/allColWidths.html deleted file mode 100644 index 9ce9e3e5c6..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/allColWidths.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/basic.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/basic.html deleted file mode 100644 index 00f73d172c..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/basic.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerCols.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerCols.html deleted file mode 100644 index eeebae59df..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerCols.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerRows.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerRows.html deleted file mode 100644 index 008f208fdc..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/headerRows.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedCellColors.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedCellColors.html deleted file mode 100644 index 05bcfd2bfc..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedCellColors.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedColWidths.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedColWidths.html deleted file mode 100644 index 72d863ebea..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedColWidths.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedRowspansAndColspans.html b/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedRowspansAndColspans.html deleted file mode 100644 index 9ec43c73e7..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/table/mixedRowspansAndColspans.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    -

    Table Cell

    -
    \ No newline at end of file diff --git a/tests/src/unit/react/formatConversion/export/__snapshots__/html/twoTables.json b/tests/src/unit/react/formatConversion/export/__snapshots__/html/twoTables.json deleted file mode 100644 index 3ffbb3ead1..0000000000 --- a/tests/src/unit/react/formatConversion/export/__snapshots__/html/twoTables.json +++ /dev/null @@ -1,136 +0,0 @@ -[ - { - "children": [], - "content": { - "columnWidths": [ - undefined, - ], - "headerCols": undefined, - "headerRows": undefined, - "rows": [ - { - "cells": [ - { - "content": [ - { - "styles": { - "underline": true, - }, - "text": "Company", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": { - "bold": true, - }, - "text": "Example Company Inc.", - "type": "text", - }, - { - "styles": {}, - "text": " - -Name: [Company Representative] -Title: Chief Executive Officer", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - ], - "type": "tableContent", - }, - "id": "1", - "props": { - "textColor": "default", - }, - "type": "table", - }, - { - "children": [], - "content": { - "columnWidths": [ - undefined, - ], - "headerCols": undefined, - "headerRows": undefined, - "rows": [ - { - "cells": [ - { - "content": [ - { - "styles": { - "underline": true, - }, - "text": "Advisor", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - { - "cells": [ - { - "content": [ - { - "styles": {}, - "text": "[Advisor Name]", - "type": "text", - }, - ], - "props": { - "backgroundColor": "default", - "colspan": 1, - "rowspan": 1, - "textAlignment": "left", - "textColor": "default", - }, - "type": "tableCell", - }, - ], - }, - ], - "type": "tableContent", - }, - "id": "2", - "props": { - "textColor": "default", - }, - "type": "table", - }, -] \ No newline at end of file diff --git a/tests/src/unit/shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.ts b/tests/src/unit/shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.ts index 42a75f61c1..847ffee2bd 100644 --- a/tests/src/unit/shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.ts +++ b/tests/src/unit/shared/formatConversion/exportParseEquality/exportParseEqualityTestExecutors.ts @@ -33,6 +33,29 @@ export const testExportParseEqualityBlockNoteHTML = async < ); }; +export const testExportParseEqualityHTML = async < + B extends BlockSchema, + I extends InlineContentSchema, + S extends StyleSchema +>( + editor: BlockNoteEditor, + testCase: ExportParseEqualityTestCase +) => { + (window as any).__TEST_OPTIONS.mockID = 0; + + addIdsToBlocks(testCase.content); + + const exported = await editor.blocksToHTMLLossy(testCase.content); + + // Reset mock ID as we don't expect block IDs to be preserved in this + // conversion. + (window as any).__TEST_OPTIONS.mockID = 0; + + expect(await editor.tryParseHTMLToBlocks(exported)).toStrictEqual( + partialBlocksToBlocksForTesting(editor.schema, testCase.content) + ); +}; + export const testExportParseEqualityNodes = async < B extends BlockSchema, I extends InlineContentSchema,