Thomas Weber
e9c6e122bf
Implement argument defaults in addAddonBlock
2026-10-18 17:08:11 -05:00
Thomas Weber
7387fa0883
Replace tap with node:test ( #393 )
2026-10-18 14:43:49 -05:00
Muffin
c549569651
Comment out test entirely to clean up logs
2023-08-08 22:56:17 -05:00
Muffin
8453a47848
Update addon block tests
2023-07-26 20:39:34 -05:00
GarboMuffin
83d72053a7
Fix repeated util.yield() in interpreted addon blocks
2022-11-12 11:33:44 -06:00
GarboMuffin
30a47a2b39
Allow addon blocks to be hidden
2022-11-12 01:09:25 -06:00
GarboMuffin
c7309b96ab
Remove addon block color parameters
...
The parameters didn't work in the way that you would expect. Only the
values provided in the first call to addAddonBlock would do anything,
and this gives a false impression that this will color the blocks in the
editor. Color options may be re-added in the future as part of a more
significant API update.
2022-11-12 01:08:09 -06:00
GarboMuffin
0fd98a6ac5
Allow addon block callback to return a Promise
2022-11-12 01:08:09 -06:00
GarboMuffin
4eafaf573b
Reimplement addon blocks with the compatibility layer
...
callAddonBlock is removed. executeInCompatibilityLayer is used instead.
Notably this makes all the block utility control flow work in the compiler.
2022-11-12 01:08:09 -06:00
GarboMuffin
a1904b022b
Replace addAddonBlock callback 2nd argument with BlockUtility
...
Documentation says it should be BlockUtility but in reality it was
something that mimicked a Thread.
This is a breaking change.
2022-11-12 00:07:17 -06:00
GarboMuffin
688b257f7c
Add tests for addAddonBlock
2022-11-11 23:33:43 -06:00