maze-blockly-wrapper 0.7.20 → 0.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/drawing/DrawingGame.d.ts +5 -0
- package/dist/components/drawing/index.d.ts +1 -1
- package/dist/components/film/FilmGame.d.ts +5 -0
- package/dist/components/film/index.d.ts +1 -1
- package/dist/components/maze/MazeGame.d.ts +4 -0
- package/dist/components/maze/index.d.ts +1 -1
- package/dist/components/music/MusicGame.d.ts +5 -0
- package/dist/components/music/index.d.ts +1 -1
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -56,5 +56,10 @@ declare class DrawingGame extends Component<DrawingGameProps & WithTranslation,
|
|
|
56
56
|
getCurrentRunResult: () => RunResult;
|
|
57
57
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
}
|
|
59
|
+
export interface DrawingGameRef {
|
|
60
|
+
runCode: () => void;
|
|
61
|
+
getCurrentRunResult: () => RunResult;
|
|
62
|
+
}
|
|
59
63
|
declare const DrawingGameWithTranslation: React.ComponentType<DrawingGameProps & React.RefAttributes<DrawingGame>>;
|
|
64
|
+
export { DrawingGame as DrawingGameBase };
|
|
60
65
|
export default DrawingGameWithTranslation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as DrawingGame } from './DrawingGame';
|
|
1
|
+
export { default as DrawingGame, type DrawingGameRef, DrawingGameBase } from './DrawingGame';
|
|
2
2
|
export { default as DrawingBlocklyContainer } from './DrawingBlocklyContainer';
|
|
3
3
|
export { default as DrawingCanvas } from './DrawingCanvas';
|
|
4
4
|
export { default as DrawingTabs } from './DrawingTabs';
|
|
@@ -57,5 +57,10 @@ declare class FilmGame extends Component<FilmGameProps & WithTranslation, FilmGa
|
|
|
57
57
|
getCurrentRunResult: () => RunResult;
|
|
58
58
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
}
|
|
60
|
+
export interface FilmGameRef {
|
|
61
|
+
runCode: () => void;
|
|
62
|
+
getCurrentRunResult: () => RunResult;
|
|
63
|
+
}
|
|
60
64
|
declare const FilmGameWithTranslation: React.ComponentType<FilmGameProps & React.RefAttributes<FilmGame>>;
|
|
65
|
+
export { FilmGame as FilmGameBase };
|
|
61
66
|
export default FilmGameWithTranslation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as FilmGame } from './FilmGame';
|
|
1
|
+
export { default as FilmGame, type FilmGameRef, FilmGameBase } from './FilmGame';
|
|
2
2
|
export { default as FilmBlocklyContainer } from './FilmBlocklyContainer';
|
|
3
3
|
export { default as FilmCanvas } from './FilmCanvas';
|
|
4
4
|
export { default as FilmEditor } from './FilmEditor';
|
|
@@ -62,6 +62,10 @@ declare class MazeGame extends Component<MazeGameProps & WithTranslation, MazeGa
|
|
|
62
62
|
getCurrentRunResult: () => RunResult;
|
|
63
63
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
64
64
|
}
|
|
65
|
+
export interface MazeGameRef {
|
|
66
|
+
runCode: () => void;
|
|
67
|
+
getCurrentRunResult: () => RunResult;
|
|
68
|
+
}
|
|
65
69
|
declare const MazeGameWithTranslation: React.ComponentType<MazeGameProps & React.RefAttributes<MazeGame>>;
|
|
66
70
|
export { MazeGame as MazeGameBase };
|
|
67
71
|
export default MazeGameWithTranslation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as MazeGame } from './MazeGame';
|
|
1
|
+
export { default as MazeGame, type MazeGameRef, MazeGameBase } from './MazeGame';
|
|
2
2
|
export { default as MazeBlocklyContainer } from './MazeBlocklyContainer';
|
|
3
3
|
export { default as MazeGrid } from './MazeGrid';
|
|
4
4
|
export { default as Spider } from './Spider';
|
|
@@ -98,5 +98,10 @@ declare class MusicGame extends Component<MusicGameProps, MusicGameState> {
|
|
|
98
98
|
getCurrentRunResult: () => RunResult;
|
|
99
99
|
render(): JSX.Element;
|
|
100
100
|
}
|
|
101
|
+
export interface MusicGameRef {
|
|
102
|
+
playMusic: () => Promise<void>;
|
|
103
|
+
getCurrentRunResult: () => RunResult;
|
|
104
|
+
}
|
|
101
105
|
declare const MusicGameWithTranslation: React.ComponentType<Omit<MusicGameProps, keyof WithTranslation> & React.RefAttributes<MusicGame>>;
|
|
106
|
+
export { MusicGame as MusicGameBase };
|
|
102
107
|
export default MusicGameWithTranslation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as MusicGame } from './MusicGame';
|
|
1
|
+
export { default as MusicGame, type MusicGameRef, MusicGameBase } from './MusicGame';
|
|
2
2
|
export { default as MusicCanvas } from './MusicCanvas';
|
|
3
3
|
export { default as MusicEditor } from './MusicEditor';
|
|
4
4
|
export { default as MusicVisualEditor } from './MusicVisualEditor';
|
package/dist/index.cjs.js
CHANGED
|
@@ -18417,23 +18417,27 @@ exports.DefaultSpider = DefaultSpider;
|
|
|
18417
18417
|
exports.DrawingBlocklyContainer = DrawingBlocklyContainer;
|
|
18418
18418
|
exports.DrawingCanvas = DrawingCanvas;
|
|
18419
18419
|
exports.DrawingGame = DrawingGameWithTranslation;
|
|
18420
|
+
exports.DrawingGameBase = DrawingGame;
|
|
18420
18421
|
exports.DrawingTabs = DrawingTabs;
|
|
18421
18422
|
exports.EditableMazeGrid = EditableMazeGrid;
|
|
18422
18423
|
exports.FilmBlocklyContainer = FilmBlocklyContainer;
|
|
18423
18424
|
exports.FilmCanvas = FilmCanvas;
|
|
18424
18425
|
exports.FilmEditor = FilmEditor;
|
|
18425
18426
|
exports.FilmGame = FilmGameWithTranslation;
|
|
18427
|
+
exports.FilmGameBase = FilmGame;
|
|
18426
18428
|
exports.FilmTabs = FilmTabs;
|
|
18427
18429
|
exports.GameControls = GameControls$3;
|
|
18428
18430
|
exports.LanguageSelector = LanguageSelector;
|
|
18429
18431
|
exports.MazeBlocklyContainer = MazeBlocklyContainer;
|
|
18430
18432
|
exports.MazeGame = MazeGameWithTranslation;
|
|
18433
|
+
exports.MazeGameBase = MazeGame;
|
|
18431
18434
|
exports.MazeGrid = MazeGrid;
|
|
18432
18435
|
exports.MazeTabs = MazeTabs;
|
|
18433
18436
|
exports.MusicBlocklyContainer = MusicBlocklyContainer;
|
|
18434
18437
|
exports.MusicCanvas = MusicCanvas;
|
|
18435
18438
|
exports.MusicEditor = MusicEditor;
|
|
18436
18439
|
exports.MusicGame = MusicGameWithTranslation;
|
|
18440
|
+
exports.MusicGameBase = MusicGame;
|
|
18437
18441
|
exports.MusicTabs = MusicTabs;
|
|
18438
18442
|
exports.SimpleSVGDrawingEditor = SimpleSVGDrawingEditor;
|
|
18439
18443
|
exports.Spider = Spider;
|