maze-blockly-wrapper 0.7.16 → 0.7.18

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.
@@ -7,6 +7,10 @@ interface DrawingGameProps {
7
7
  configuration?: DrawingConfig;
8
8
  onChange?: (config: DrawingConfig) => void;
9
9
  onRunFinish?: (result: RunResult) => void;
10
+ onReady?: (methods: {
11
+ runCode: () => void;
12
+ getCurrentRunResult: () => RunResult;
13
+ }) => void;
10
14
  maxCommands?: number;
11
15
  showControls?: boolean;
12
16
  graphicsConfig?: Partial<GraphicsConfig>;
@@ -47,7 +51,7 @@ declare class DrawingGame extends Component<DrawingGameProps & WithTranslation,
47
51
  private pointToSegmentDistance;
48
52
  private stopExecution;
49
53
  private resetGame;
50
- private runCode;
54
+ runCode: () => void;
51
55
  getCurrentRunResult: () => RunResult;
52
56
  render(): import("react/jsx-runtime").JSX.Element;
53
57
  }
@@ -7,6 +7,10 @@ interface FilmGameProps {
7
7
  configuration?: FilmConfig;
8
8
  onChange?: (config: FilmConfig) => void;
9
9
  onRunFinish?: (result: RunResult) => void;
10
+ onReady?: (methods: {
11
+ runCode: () => void;
12
+ getCurrentRunResult: () => RunResult;
13
+ }) => void;
10
14
  maxCommands?: number;
11
15
  showControls?: boolean;
12
16
  graphicsConfig?: Partial<GraphicsConfig>;
@@ -21,6 +25,7 @@ interface FilmGameState {
21
25
  }
22
26
  declare class FilmGame extends Component<FilmGameProps & WithTranslation, FilmGameState> {
23
27
  constructor(props: FilmGameProps & WithTranslation);
28
+ componentDidMount(): void;
24
29
  componentDidUpdate(prevProps: FilmGameProps & WithTranslation): void;
25
30
  componentWillUnmount(): void;
26
31
  private filmConfig;
@@ -47,7 +52,7 @@ declare class FilmGame extends Component<FilmGameProps & WithTranslation, FilmGa
47
52
  private compareShapes;
48
53
  private finishGame;
49
54
  private resetGame;
50
- private runCode;
55
+ runCode: () => void;
51
56
  getCurrentRunResult: () => RunResult;
52
57
  render(): import("react/jsx-runtime").JSX.Element;
53
58
  }
@@ -7,6 +7,10 @@ interface MazeGameProps {
7
7
  configuration?: MazeConfig;
8
8
  onChange?: (config: MazeConfig) => void;
9
9
  onRunFinish?: (result: RunResult) => void;
10
+ onReady?: (methods: {
11
+ runCode: () => void;
12
+ getCurrentRunResult: () => RunResult;
13
+ }) => void;
10
14
  maxMoves?: number;
11
15
  showControls?: boolean;
12
16
  graphicsConfig?: Partial<GraphicsConfig>;
@@ -53,7 +57,7 @@ declare class MazeGame extends Component<MazeGameProps & WithTranslation, MazeGa
53
57
  private collectKey;
54
58
  private stopExecution;
55
59
  private resetGame;
56
- private runCode;
60
+ runCode: () => void;
57
61
  getCurrentRunResult: () => RunResult;
58
62
  render(): import("react/jsx-runtime").JSX.Element;
59
63
  }
@@ -8,6 +8,10 @@ interface MusicGameProps extends WithTranslation {
8
8
  configuration?: MusicConfig;
9
9
  onChange?: (config: MusicConfig) => void;
10
10
  onRunFinish?: (result: RunResult) => void;
11
+ onReady?: (methods: {
12
+ playMusic: () => Promise<void>;
13
+ getCurrentRunResult: () => RunResult;
14
+ }) => void;
11
15
  maxCommands?: number;
12
16
  showControls?: boolean;
13
17
  graphicsConfig?: Partial<GraphicsConfig>;