a tool for shared writing and social publishing
0
fork

Configure Feed

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

fix facts with incorrect data types

+10 -9
+7 -6
components/Blocks/TextBlock/inputRules.ts
··· 89 89 90 90 //Checklist 91 91 new InputRule(/^\[(\ |x)?\]\s$/, (state, match) => { 92 - if (!propsRef.current.listData) repRef.current?.mutate.assertFact({ 93 - entity: propsRef.current.entityID, 94 - attribute: "block/is-list", 95 - data: { type: "boolean", value: true }, 96 - }); 92 + if (!propsRef.current.listData) 93 + repRef.current?.mutate.assertFact({ 94 + entity: propsRef.current.entityID, 95 + attribute: "block/is-list", 96 + data: { type: "boolean", value: true }, 97 + }); 97 98 let tr = state.tr; 98 99 tr.delete(0, match[0].length); 99 100 repRef.current?.mutate.assertFact({ ··· 125 126 repRef.current?.mutate.assertFact({ 126 127 entity: propsRef.current.entityID, 127 128 attribute: "block/type", 128 - data: { type: "string", value: "heading" }, 129 + data: { type: "block-type-union", value: "heading" }, 129 130 }); 130 131 repRef.current?.mutate.assertFact({ 131 132 entity: propsRef.current.entityID,
+3 -3
src/utils/addLinkBlock.ts
··· 18 18 entity: entityID, 19 19 attribute: "link/url", 20 20 data: { 21 - type: "text", 21 + type: "string", 22 22 value: url, 23 23 }, 24 24 }, ··· 39 39 entity: entityID, 40 40 attribute: "link/title", 41 41 data: { 42 - type: "text", 42 + type: "string", 43 43 value: data.data.data.title || "", 44 44 }, 45 45 }); ··· 47 47 entity: entityID, 48 48 attribute: "link/description", 49 49 data: { 50 - type: "text", 50 + type: "string", 51 51 value: data.data.data.description || "", 52 52 }, 53 53 });