MCPcopy Create free account
hub / github.com/hashintel/hash / isComponentNode

Function isComponentNode

libs/@local/hash-isomorphic-utils/src/prosemirror.ts:272–273  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

270 nodeType.groups?.includes(componentNodeGroupName) ?? false;
271
272export const isComponentNode = (node: Node): node is ComponentNode =>
273 isComponentNodeType(node.type);
274
275export const findComponentNodes = (containingNode: Node): ComponentNode[] => {
276 const componentNodes: ComponentNode[] = [];

Callers 8

updateMethod · 0.90
ComponentViewClass · 0.90
selectionContainsTextFunction · 0.90
handleNodeMethod · 0.85
findComponentNodesFunction · 0.85
findComponentNodeFunction · 0.85

Calls 1

isComponentNodeTypeFunction · 0.85

Tested by

no test coverage detected