Christopher Allen
ffb8907db8
feature(blocks): Export block definitions ( #5908 )
...
* refactor: Provide a BlockDefinition type
* refactor: Split defineBlocksWithJsonArray
Split defineBlocksWithJsonArray into:
- createBlockDefinitionsFromJsonArray, which creates BlockDefinitions
from a (possibly JSON-originated) POJsO array, having no side-effects
except possibly issuing warnings to the console.
- defineBlocks, which add any dictionary of BlockDefinitions to
the Blocks dictionary.
* feat(blocks): Export block definitions per-module
- Define all blocks in a local blocks dictionary, often using
createBlockDefinitionFromJsonArray, without registering them.
- Separately, use defineBlocks to register the exported
BlockDefinitions at the end of each Blockly.blocks.*
module.
- In Blockly.blocks.all, create a blocks export that combines all
of the blocks exports from the individual blocks modules.
* chore: have format script run clang-format on blocks/ too
2022-01-31 21:41:29 +00:00
..
2022-01-12 09:29:30 -08:00
2021-12-02 10:21:58 -08:00
2021-11-24 17:03:21 -08:00
2022-01-14 12:43:13 -08:00
2021-12-02 10:21:58 -08:00
2021-11-08 16:41:52 -08:00
2022-01-28 17:58:43 -08:00
2022-01-07 14:49:49 -08:00
2021-10-21 09:01:51 -07:00
2022-01-07 14:49:49 -08:00
2022-01-07 14:49:49 -08:00
2022-01-07 15:58:23 -08:00
2022-01-31 21:41:29 +00:00
2021-10-20 15:53:23 -07:00
2022-01-21 14:57:32 -08:00
2022-01-31 21:41:29 +00:00
2022-01-21 14:57:32 -08:00
2022-01-07 14:49:49 -08:00
2022-01-07 14:49:49 -08:00
2021-10-20 15:53:23 -07:00
2022-01-06 10:08:43 -08:00
2022-01-28 17:58:43 -08:00
2022-01-31 21:41:29 +00:00
2021-11-15 18:12:45 -08:00
2021-11-24 17:03:21 -08:00
2021-10-20 15:53:23 -07:00
2021-10-21 09:01:51 -07:00
2022-01-06 13:13:40 -08:00
2021-11-29 21:59:48 +00:00
2021-12-02 16:47:27 +00:00
2021-10-20 15:53:23 -07:00
2021-12-02 16:47:27 +00:00
2022-01-28 17:58:43 -08:00
2021-10-20 15:53:23 -07:00
2021-09-27 14:42:54 -07:00
2021-10-20 15:53:23 -07:00
2021-11-08 16:41:52 -08:00
2021-11-17 08:39:00 -08:00
2022-01-28 17:58:43 -08:00
2021-10-20 15:53:23 -07:00
2022-01-28 17:58:43 -08:00
2021-11-15 15:59:27 -08:00
2021-11-15 15:59:27 -08:00
2021-11-15 15:59:27 -08:00
2021-11-15 15:59:27 -08:00
2022-01-28 17:58:43 -08:00
2021-10-20 15:53:23 -07:00
2021-10-20 15:53:23 -07:00
2021-12-02 16:47:27 +00:00
2021-12-02 16:47:27 +00:00
2021-11-15 15:59:27 -08:00
2022-01-25 15:26:20 -08:00
2022-01-28 17:58:43 -08:00
2022-01-25 15:26:20 -08:00
2022-01-25 15:26:20 -08:00
2022-01-25 15:26:20 -08:00
2022-01-28 17:58:43 -08:00
2022-01-25 15:26:20 -08:00
2022-01-25 15:26:20 -08:00
2022-01-07 15:58:23 -08:00
2021-12-02 16:47:27 +00:00
2021-10-21 09:01:51 -07:00
2022-01-25 15:26:20 -08:00
2022-01-25 15:26:20 -08:00
2022-01-21 14:57:32 -08:00
2021-10-20 15:53:23 -07:00
2022-01-10 09:18:11 -08:00
2022-01-10 09:18:11 -08:00
2022-01-25 15:26:20 -08:00
2021-12-02 16:47:27 +00:00
2022-01-07 15:58:23 -08:00
2022-01-10 09:18:11 -08:00
2021-10-21 15:22:24 -07:00
2021-10-21 09:01:51 -07:00
2021-12-02 16:47:27 +00:00
2021-10-20 15:53:23 -07:00
2022-01-21 14:57:32 -08:00
2022-01-10 09:18:11 -08:00
2022-01-06 13:13:40 -08:00
2021-10-21 09:01:51 -07:00
2021-12-13 14:56:05 -08:00
2021-11-15 18:12:45 -08:00
2022-01-06 13:13:40 -08:00
2021-10-21 09:01:51 -07:00
2022-01-25 15:26:20 -08:00
2022-01-25 14:50:00 -08:00
2022-01-25 15:26:20 -08:00
2021-12-13 14:56:22 -08:00
2022-01-06 13:13:40 -08:00
2022-01-06 13:13:40 -08:00
2021-12-02 16:47:27 +00:00
2021-12-02 16:47:27 +00:00
2022-01-07 15:58:23 -08:00
2021-10-21 09:01:51 -07:00
2022-01-21 14:57:32 -08:00
2022-01-28 17:58:43 -08:00
2021-10-21 09:01:51 -07:00
2022-01-06 13:13:40 -08:00
2022-01-06 13:13:40 -08:00
2022-01-06 13:13:40 -08:00
2022-01-06 13:13:40 -08:00
2021-10-21 15:22:24 -07:00
2022-01-28 17:58:43 -08:00