···2525 return true;
2626}
27272828+export function outdentFull(
2929+ block: Block,
3030+ previousBlock: Block | null,
3131+ rep?: Replicache<ReplicacheMutators> | null,
3232+) {
3333+ console.log("yo? ", block);
3434+ if (!block.listData) return;
3535+3636+ // make this block not a list
3737+ rep?.mutate.assertFact({
3838+ entity: block.value,
3939+ attribute: "block/is-list",
4040+ data: { type: "boolean", value: false },
4141+ });
4242+4343+ // find the next block that is a level 1 list item or not a list item.
4444+ // If there are none or this block is a level 1 list item, we don't need to move anything
4545+4646+ let after = block.listData?.path.find((f) => f.depth === 1)?.entity;
4747+ console.log({ after });
4848+ // move this block to be after that block
4949+ after &&
5050+ after !== block.value &&
5151+ rep?.mutate.moveBlock({
5252+ block: block.value,
5353+ oldParent: block.listData.parent,
5454+ newParent: block.parent,
5555+ position: { type: "after", entity: after },
5656+ });
5757+5858+ // move all the childen to the be under it as a level 1 list item
5959+ rep?.mutate.moveChildren({
6060+ oldParent: block.value,
6161+ newParent: block.parent,
6262+ after: block.value,
6363+ });
6464+}
6565+2866export function outdent(
2967 block: Block,
3068 previousBlock: Block | null,