Skip to content

Commit

Permalink
fix: update imports in examples for v11 (#2363)
Browse files Browse the repository at this point in the history
* fix: update react example to v11 beta and fix imports

* fix: update svelte example to v11 beta and fix imports

* fix: update vue3 example to v11 beta and fix imports

* fix: use more specific imports for vue example

* chore: tidy import

* fix: update rollup demo to fix imports

* fix: use blockly latest instead of beta in react

* chore: format
  • Loading branch information
rachel-fenichel authored May 17, 2024
1 parent 2da6080 commit ba1d4f5
Show file tree
Hide file tree
Showing 10 changed files with 1,463 additions and 788 deletions.
51 changes: 26 additions & 25 deletions examples/blockly-react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/blockly-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@blockly/field-date": "^8.0.0",
"blockly": "^10.0.0",
"blockly": "^10.4.3",
"react": "^17.0.1",
"react-datepicker": "^3.3.0",
"react-dom": "^17.0.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/blockly-react/src/Blockly/BlocklyComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import React from 'react';
import './BlocklyComponent.css';
import {useEffect, useRef} from 'react';

import Blockly from 'blockly/core';
import * as Blockly from 'blockly/core';
import {javascriptGenerator} from 'blockly/javascript';
import locale from 'blockly/msg/en';
import * as locale from 'blockly/msg/en';
import 'blockly/blocks';

Blockly.setLocale(locale);
Expand Down
Loading

0 comments on commit ba1d4f5

Please sign in to comment.