From 484ddd64f6eef6e34735bfac7c5c93520762334e Mon Sep 17 00:00:00 2001 From: mrredo <74524695+mrredo@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:04:04 +0300 Subject: [PATCH 1/2] Update BlockCreation.md --- docs/blocks/BlockCreation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/blocks/BlockCreation.md b/docs/blocks/BlockCreation.md index 1e12a42..c799b9c 100644 --- a/docs/blocks/BlockCreation.md +++ b/docs/blocks/BlockCreation.md @@ -95,7 +95,7 @@ type BlockDefinition = { }; ``` -So considering that most of the paramters are not required, here is the minimum configuration for a block : +So considering that most of the parameters are not required, here is the minimum configuration for a block : ```ts type BlockDefinition = { From f77a0e5d917f46031491df486f8c2b6d26039795 Mon Sep 17 00:00:00 2001 From: mrredo <74524695+mrredo@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:09:03 +0300 Subject: [PATCH 2/2] Update BlockCreation.md --- docs/blocks/BlockCreation.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/blocks/BlockCreation.md b/docs/blocks/BlockCreation.md index c799b9c..9a412cf 100644 --- a/docs/blocks/BlockCreation.md +++ b/docs/blocks/BlockCreation.md @@ -92,6 +92,13 @@ type BlockDefinition = { helpUrl: string; // The block's code, with all the arguments passed in the "args" param code: (args: Record) => unknown; + // The blocks mutator(the gear icon located at the left top corner in the block) + mutator?: Mutator; + // Hides the block from category, but still have it registered as a block. + // Mostly used for mutator blocks that are inside the mutator menu + hidden?: boolean; + // List of library imports that block requires. + imports?: `${string}@${string}`[]; }; ```