···2020jlpm add jupyterlab-blockly
2121```
22222323-Once it is part of your project, all you need to do is import `IBlocklyRegisty`, as it follows:
2323+Once it is part of your project, all you need to do is import `IBlocklyRegistry`, as it follows:
2424```typescript
2525// src/index.ts
26262727-import { IBlocklyRegisty } from 'jupyterlab-blockly';
2727+import { IBlocklyRegistry } from 'jupyterlab-blockly';
2828```
29293030The `BlocklyRegistry` is the class that the JupyterLab-Blockly extension exposes to other plugins. This registry allows other plugins to register new Toolboxes, Blocks and Generators that users can use in the Blockly editor.
31313232### Registering new Blocks
3333-The `IBlocklyRegisty` offers a function `registerBlocks`, which allows you to include new Blocks in your project. Blockly offers a [tool](https://blockly-demo.appspot.com/static/demos/blockfactory/index.html) which helps you easily create new Blocks and get their JSON definition and generator code in all supported programming languages.
3333+The `IBlocklyRegistry` offers a function `registerBlocks`, which allows you to include new Blocks in your project. Blockly offers a [tool](https://blockly-demo.appspot.com/static/demos/blockfactory/index.html) which helps you easily create new Blocks and get their JSON definition and generator code in all supported programming languages.
34343535**NOTE** : Once you create a new block, it won't appear into your Blockly editor, unless you add it to a Toolbox.
3636···4646```
47474848### Registering a new Toolbox
4949-Using the `registerToolbox` function, provided by `IBlocklyRegisty`, you can register a new toolbox. Once registered, the toolbox will appear automatically in your Blockly editor. You can find more information about switching to another toolbox [here](https://jupyterlab-blockly.readthedocs.io/en/latest/toolbox.html).
4949+Using the `registerToolbox` function, provided by `IBlocklyRegistry`, you can register a new toolbox. Once registered, the toolbox will appear automatically in your Blockly editor. You can find more information about switching to another toolbox [here](https://jupyterlab-blockly.readthedocs.io/en/latest/toolbox.html).
50505151```typescript
5252/**
···6262```
63636464### Registering a new Generator
6565-Lastly, `IBlocklyRegisty` offers the function `registerGenerator` which lets you register a new Generator. You can read more about switching kernels [here](https://jupyterlab-blockly.readthedocs.io/en/latest/kernels.html).
6565+Lastly, `IBlocklyRegistry` offers the function `registerGenerator` which lets you register a new Generator. You can read more about switching kernels [here](https://jupyterlab-blockly.readthedocs.io/en/latest/kernels.html).
66666767```typescript
6868···9898const plugin: JupyterFrontEndPlugin<void> = {
9999 id: 'jupyterlab-niryo-one:plugin',
100100 autoStart: true,
101101- requires: [IBlocklyRegisty],
102102- activate: (app: JupyterFrontEnd, blockly: IBlocklyRegisty) => {
101101+ requires: [IBlocklyRegistry],
102102+ activate: (app: JupyterFrontEnd, blockly: IBlocklyRegistry) => {
103103 console.log('JupyterLab extension jupyterlab-niryo-one is activated!');
104104105105 //Registering the new toolbox containing all Niryo One blocks.
···8899import En from 'blockly/msg/en';
10101111-import { IBlocklyRegisty } from './token';
1111+import { IBlocklyRegistry } from './token';
1212import { TOOLBOX } from './utils';
13131414/**
···1717 * new Toolboxes, Blocks and Generators that users can use in the
1818 * Blockly editor.
1919 */
2020-export class BlocklyRegistry implements IBlocklyRegisty {
2020+export class BlocklyRegistry implements IBlocklyRegistry {
2121 private _toolboxes: Map<string, JSONObject>;
2222 private _generators: Map<string, Blockly.Generator>;
2323
+2-2
packages/blockly/src/token.ts
···55/**
66 * The registry token.
77 */
88-export const IBlocklyRegisty = new Token<IBlocklyRegisty>(
88+export const IBlocklyRegistry = new Token<IBlocklyRegistry>(
99 'jupyterlab-blockly/registry'
1010);
1111···1515 * new Toolboxes, Blocks and Generators that users can use in the
1616 * Blockly editor.
1717 */
1818-export interface IBlocklyRegisty {
1818+export interface IBlocklyRegistry {
1919 /**
2020 * Register a toolbox for the editor.
2121 *