Files
Dominic Gannaway 5b748c6020 Add root.append invariant on non-block insertion (#668)
* Add root.append invariant on non-block insertion

* Fix unit test
2022-04-09 00:42:56 -07:00

46 lines
2.7 KiB
JSON

{
"0": "getNodesInRange: node is not a block node",
"1": "getNodesInRange: child is not inside parent",
"2": "insertText: first node is not a text node",
"3": "select: cannot be called on root nodes",
"4": "remove: cannot be called on root nodes",
"5": "replace: cannot be called on root nodes",
"6": "insertBefore: cannot be called on root nodes",
"7": "insertAfter: cannot be called on root nodes",
"8": "updateDOM: prevInnerDOM is null or undefined",
"9": "updateDOM: innerDOM is null or undefined",
"10": "setFormat: can only be used on non-immutable nodes",
"11": "setStyle: can only be used on non-immutable nodes",
"12": "setTextContent: can only be used on non-immutable text nodes",
"13": "spliceText: can only be used on non-immutable text nodes",
"14": "spliceText: selection not found",
"15": "splitText: can only be used on non-immutable text nodes",
"16": "getNodesBetween: ancestor is null",
"17": "OutlineNode: Node type %s does not implement .clone().",
"18": "Expected node %s to have a parent.",
"19": "Expected node %s to have a parent block.",
"20": "Expected node %s to have a top parent block.",
"21": "getLatest: node not found",
"22": "createDOM: base method not extended",
"23": "updateDOM: base method not extended",
"24": "setFlags: can only be used on non-immutable nodes",
"25": "Expected node with key %s to exist but it's not in the nodeMap.",
"26": "createNodeFromParse: type \"%s\" + not found",
"27": "decorate: base method not extended",
"28": "Point.getNode: node not found",
"29": "Editor.update() cannot be used within a text node transform.",
"30": "Cannot use method in read-only mode.",
"31": "Unable to find an active view model. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
"32": "Unable to find an active editor. View methods or node methods can only be used synchronously during the callback of editor.update() or viewModel.read().",
"33": "updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.",
"34": "createNode: node does not exist in nodeMap",
"35": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
"36": "reconcileNode: parentDOM is null",
"37": "Reconciliation: could not find DOM element for node key \"${key}\"",
"38": "getNodesInRange: first node does not have parent",
"39": "getNodesInRange: no common ancestor",
"40": "getNodesInRange: excludeFromCopy node does not have non-excluded parent",
"41": "createOffsetModel: could not find node by key",
"42": "rootNode.append: Only block nodes can be appended to the root node"
}