This page could not be found.
++ {tokens.map((line, i) => ( ++ )} ++ {i + 1} + + {line.map((token, key) => ( + + ))} + ++ ))} +
+ Loading, please wait...
} + {error &&+ Welcome to your dashboard! + {' This is where site admins will log in to manage your website.'} +
+{sanitizedDescription}
}{node.text}
+ }
+ if (node.format & IS_SUBSCRIPT) {
+ text = {text}
+ }
+ if (node.format & IS_SUPERSCRIPT) {
+ text = {text}
+ }
+
+ return text
+ }
+
+ // NOTE: Hacky fix for
+ // https://github.com/facebook/lexical/blob/d10c4e6e55261b2fdd7d1845aed46151d0f06a8c/packages/lexical-list/src/LexicalListItemNode.ts#L133
+ // which does not return checked: false (only true - i.e. there is no prop for false)
+ const serializedChildrenFn = (node: NodeTypes): JSX.Element | null => {
+ if (node.children == null) {
+ return null
+ } else {
+ if (node?.type === 'list' && node?.listType === 'check') {
+ for (const item of node.children) {
+ if ('checked' in item) {
+ if (!item?.checked) {
+ item.checked = false
+ }
+ }
+ }
+ }
+ return serializeLexical({ nodes: node.children as NodeTypes[] })
+ }
+ }
+
+ const serializedChildren = 'children' in node ? serializedChildrenFn(node) : ''
+
+ if (node.type === 'block') {
+ const block = node.fields
+
+ const blockType = block?.blockType
+
+ if (!block || !blockType) {
+ return null
+ }
+
+ switch (blockType) {
+ case 'cta':
+ return + {serializedChildren} +
+ ) + } + case 'heading': { + const Tag = node?.tag + return ( ++ {serializedChildren} ++ ) + } + case 'link': { + const fields = node.fields + + return ( +