a tool for shared writing and social publishing
0

Configure Feed

Select the types of activity you want to include in your feed.

add back onreplacewith and onaddbelow

Jared Pereira (Apr 10, 2026, 4:35 PM EDT) 1ab2e2b7 acb13f86

+16
+16
components/Blocks/EmbedBlock.tsx
··· 113 113 .openPage(props.parent, { type: "iframe", url: openUrl }); 114 114 scrollIntoView(`iframe-page-${openUrl}`, "pages", 0.8); 115 115 }, 116 + onReplaceWith: (block) => { 117 + assertBlockData(props.entityID, block); 118 + }, 119 + onAddBelow: async (block) => { 120 + if (!rep) return; 121 + let newEntityID = v7(); 122 + await rep.mutate.addBlock({ 123 + permission_set: entity_set.set, 124 + factID: v7(), 125 + parent: props.parent, 126 + type: block.type === "text" ? "text" : "card", 127 + position: generateKeyBetween(props.position, props.nextPosition), 128 + newEntityID, 129 + }); 130 + await assertBlockData(newEntityID, block); 131 + }, 116 132 }); 117 133 118 134 useEffect(() => {