scratch-gui 4.0.0 → 4.0.6

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.
Files changed (30) hide show
  1. package/.github/workflows/ci-cd.yml +2 -2
  2. package/.nvmrc +1 -1
  3. package/CHANGELOG.md +45 -0
  4. package/dist/chunks/{833.8a42f7fce22ab3892e4a.js → 278.6648792c1dbebafbcc97.js} +2 -2
  5. package/dist/chunks/{833.8a42f7fce22ab3892e4a.js.LICENSE.txt → 278.6648792c1dbebafbcc97.js.LICENSE.txt} +30 -34
  6. package/dist/extension-worker.js +2 -0
  7. package/dist/extension-worker.js.LICENSE.txt +115 -0
  8. package/dist/extension-worker.js.map +1 -0
  9. package/dist/libraries/backdrops.json +1184 -0
  10. package/dist/libraries/costumes.json +12822 -0
  11. package/dist/libraries/sounds.json +4375 -0
  12. package/dist/libraries/sprites.json +17206 -0
  13. package/dist/runtime.js +1 -1
  14. package/dist/scratch-gui.js +1 -1
  15. package/pack/{scratch-gui-4.0.0.tgz → scratch-gui-4.0.6.tgz} +0 -0
  16. package/package.json +20 -20
  17. package/webpack.config.js +14 -49
  18. /package/dist/{static/assets/scratch-microbit-1.2.0.30d09ba32a17082ef820.hex → 30d09ba32a17082ef820b57d52d60b7b.hex} +0 -0
  19. /package/dist/chunks/{am-steps.05e308dfe2686151dc0f.js → am-steps.7dd0ed256d076c3565ce.js} +0 -0
  20. /package/dist/chunks/{ar-steps.e9c85f3dc8e198eaaa12.js → ar-steps.5e929b6d37b009fa29f1.js} +0 -0
  21. /package/dist/chunks/{es-steps.b472eff86dac691d0bfd.js → es-steps.8de37729ed9d0b31a8a2.js} +0 -0
  22. /package/dist/chunks/{fr-steps.bf4c30e02c2640204cad.js → fr-steps.6587a480abc162a835e6.js} +0 -0
  23. /package/dist/chunks/{ja-steps.5d5046e57e33733a503f.js → ja-steps.eb258baa6751783d2a38.js} +0 -0
  24. /package/dist/chunks/{pt_BR-steps.ea38088b1861a79930bb.js → pt_BR-steps.caddb4340abd50a3217a.js} +0 -0
  25. /package/dist/chunks/{sw-steps.c55c3dd1761feb3e8d83.js → sw-steps.c0beb890203442236013.js} +0 -0
  26. /package/dist/chunks/{tr-steps.2cf369ed4ed2ef2111d8.js → tr-steps.56d8871cd6740f025cbd.js} +0 -0
  27. /package/dist/chunks/{uk-steps.e5a4ba6249fdc8c99272.js → uk-steps.3b4b15d1c791bfe94dc2.js} +0 -0
  28. /package/dist/chunks/{zh_CN-steps.59ad9aafbcf84455c995.js → zh_CN-steps.68f3f79df45930b1d5f5.js} +0 -0
  29. /package/dist/chunks/{zh_TW-steps.7210c3dc836e5a46a84f.js → zh_TW-steps.b0e7f669afbf3dca2cf2.js} +0 -0
  30. /package/dist/chunks/{zu-steps.acaf68fcef9e79e74f6b.js → zu-steps.2795065e995333753920.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scratch-gui",
3
- "version": "4.0.0",
3
+ "version": "4.0.6",
4
4
  "description": "Graphical User Interface for creating and running Scratch 3.0 projects",
5
5
  "author": "Massachusetts Institute of Technology",
6
6
  "license": "BSD-3-Clause",
@@ -46,10 +46,10 @@
46
46
  "cat-blocks": "npm:scratch-blocks@0.1.0-prerelease.20220318143026",
47
47
  "classnames": "^2.2.6",
48
48
  "computed-style-to-inline-style": "^3.0.0",
49
- "cookie": "^0.5.0",
49
+ "cookie": "^0.6.0",
50
50
  "copy-webpack-plugin": "^6.4.1",
51
51
  "core-js": "^2.5.7",
52
- "css-loader": "^3.6.0",
52
+ "css-loader": "5.2.7",
53
53
  "dapjs": "^2.3.0",
54
54
  "es6-object-assign": "^1.1.0",
55
55
  "get-float-time-domain-data": "^0.1.0",
@@ -67,7 +67,7 @@
67
67
  "omggif": "^1.0.9",
68
68
  "papaparse": "^5.3.0",
69
69
  "postcss-import": "^12.0.0",
70
- "postcss-loader": "^3.0.0",
70
+ "postcss-loader": "4.3.0",
71
71
  "postcss-simple-vars": "^5.0.1",
72
72
  "prop-types": "^15.5.10",
73
73
  "query-string": "^5.1.1",
@@ -84,21 +84,21 @@
84
84
  "react-responsive": "^5.0.0",
85
85
  "react-style-proptype": "^3.2.2",
86
86
  "react-tabs": "^2.3.0",
87
- "react-tooltip": "^3.8.0",
87
+ "react-tooltip": "^4.5.1",
88
88
  "react-virtualized": "^9.20.1",
89
89
  "redux": "^3.7.2",
90
90
  "redux-throttle": "^0.1.1",
91
91
  "scratch-audio": "^1.0.0",
92
92
  "scratch-blocks": "^1.1.6",
93
93
  "scratch-l10n": "^3.18.3",
94
- "scratch-paint": "^2.2.2",
95
- "scratch-render": "^1.0.0",
94
+ "scratch-paint": "^2.2.151",
95
+ "scratch-render": "^1.0.233",
96
96
  "scratch-render-fonts": "^1.0.2",
97
97
  "scratch-storage": "^2.3.1",
98
- "scratch-svg-renderer": "^2.2.0",
99
- "scratch-vm": "^4.2.0",
98
+ "scratch-svg-renderer": "^2.3.102",
99
+ "scratch-vm": "^4.5.379",
100
100
  "startaudiocontext": "^1.2.1",
101
- "style-loader": "^0.23.0",
101
+ "style-loader": "4.0.0",
102
102
  "text-encoding": "^0.7.0",
103
103
  "to-style": "^1.3.3",
104
104
  "wav-encoder": "^1.3.0",
@@ -109,14 +109,14 @@
109
109
  "react-dom": "^16.0.0"
110
110
  },
111
111
  "devDependencies": {
112
- "@babel/cli": "7.24.1",
113
- "@babel/core": "7.24.3",
114
- "@babel/eslint-parser": "7.24.1",
112
+ "@babel/cli": "7.24.8",
113
+ "@babel/core": "7.24.9",
114
+ "@babel/eslint-parser": "7.25.1",
115
115
  "@babel/plugin-proposal-object-rest-spread": "7.20.7",
116
116
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
117
- "@babel/plugin-transform-async-to-generator": "7.24.1",
118
- "@babel/preset-env": "7.24.3",
119
- "@babel/preset-react": "7.24.1",
117
+ "@babel/plugin-transform-async-to-generator": "7.24.7",
118
+ "@babel/preset-env": "7.25.0",
119
+ "@babel/preset-react": "7.24.7",
120
120
  "@commitlint/cli": "17.8.1",
121
121
  "@commitlint/config-conventional": "17.8.1",
122
122
  "babel-core": "7.0.0-bridge.0",
@@ -128,7 +128,7 @@
128
128
  "eslint-import-resolver-webpack": "0.11.1",
129
129
  "eslint-plugin-import": "2.29.1",
130
130
  "eslint-plugin-jest": "22.21.0",
131
- "eslint-plugin-react": "7.34.1",
131
+ "eslint-plugin-react": "7.35.0",
132
132
  "file-loader": "6.2.0",
133
133
  "gh-pages": "3.2.3",
134
134
  "html-webpack-plugin": "5.6.0",
@@ -140,15 +140,15 @@
140
140
  "redux-mock-store": "1.5.4",
141
141
  "rimraf": "2.7.1",
142
142
  "scratch-semantic-release-config": "1.0.14",
143
- "scratch-webpack-configuration": "1.3.0",
143
+ "scratch-webpack-configuration": "1.4.0",
144
144
  "selenium-webdriver": "3.6.0",
145
145
  "semantic-release": "19.0.5",
146
146
  "stream-browserify": "3.0.0",
147
147
  "url-loader": "4.1.1",
148
148
  "web-audio-test-api": "0.5.2",
149
- "webpack": "5.90.3",
149
+ "webpack": "5.93.0",
150
150
  "webpack-cli": "5.1.4",
151
- "webpack-dev-server": "5.0.2",
151
+ "webpack-dev-server": "5.0.4",
152
152
  "yauzl": "2.10.0"
153
153
  },
154
154
  "jest": {
package/webpack.config.js CHANGED
@@ -5,11 +5,6 @@ const webpack = require('webpack');
5
5
  const CopyWebpackPlugin = require('copy-webpack-plugin');
6
6
  const HtmlWebpackPlugin = require('html-webpack-plugin');
7
7
 
8
- // PostCss
9
- const autoprefixer = require('autoprefixer');
10
- const postcssVars = require('postcss-simple-vars');
11
- const postcssImport = require('postcss-import');
12
-
13
8
  const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
14
9
 
15
10
  // const STATIC_PATH = process.env.STATIC_PATH || '/static';
@@ -17,7 +12,8 @@ const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
17
12
  const baseConfig = new ScratchWebpackConfigBuilder(
18
13
  {
19
14
  rootPath: path.resolve(__dirname),
20
- enableReact: true
15
+ enableReact: true,
16
+ shouldSplitChunks: true
21
17
  })
22
18
  .setTarget('browserslist')
23
19
  .merge({
@@ -35,56 +31,14 @@ const baseConfig = new ScratchWebpackConfigBuilder(
35
31
  }
36
32
  },
37
33
  optimization: {
38
- splitChunks: {
39
- chunks: 'all'
40
- },
41
- mergeDuplicateChunks: true,
42
34
  runtimeChunk: 'single'
43
35
  }
44
36
  })
45
- .addModuleRule({
46
- test: /\.css$/,
47
- use: [
48
- {
49
- loader: 'style-loader'
50
- },
51
- {
52
- loader: 'css-loader',
53
- options: {
54
- modules: {
55
- localIdentName: '[name]_[local]_[hash:base64:5]'
56
- },
57
- importLoaders: 1,
58
- localsConvention: 'camelCase'
59
- }
60
- },
61
- {
62
- loader: 'postcss-loader',
63
- options: {
64
- ident: 'postcss',
65
- plugins: function () {
66
- return [
67
- postcssImport,
68
- postcssVars,
69
- autoprefixer
70
- ];
71
- }
72
- }
73
- }
74
- ]
75
- })
76
37
  .addModuleRule({
77
38
  test: /\.(svg|png|wav|mp3|gif|jpg)$/,
78
39
  resourceQuery: /^$/, // reject any query string
79
40
  type: 'asset' // let webpack decide on the best type of asset
80
41
  })
81
- .addModuleRule({
82
- test: /\.hex$/,
83
- type: 'asset/resource'
84
- })
85
- .addPlugin(new webpack.ProvidePlugin({
86
- Buffer: ['buffer', 'Buffer']
87
- }))
88
42
  .addPlugin(new webpack.DefinePlugin({
89
43
  'process.env.DEBUG': Boolean(process.env.DEBUG),
90
44
  'process.env.GA_ID': `"${process.env.GA_ID || 'UA-000000-01'}"`,
@@ -129,7 +83,18 @@ const distConfig = baseConfig.clone()
129
83
  output: {
130
84
  path: path.resolve(__dirname, 'dist')
131
85
  }
132
- });
86
+ })
87
+ .addPlugin(
88
+ new CopyWebpackPlugin({
89
+ patterns: [
90
+ {
91
+ from: 'src/lib/libraries/*.json',
92
+ to: 'libraries',
93
+ flatten: true
94
+ }
95
+ ]
96
+ })
97
+ );
133
98
 
134
99
  // build the examples and debugging tools in `build/`
135
100
  const buildConfig = baseConfig.clone()