scratch-blocks 2.0.0-spork.5 → 2.0.0-spork.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.
- package/.nvmrc +1 -1
- package/dist/main.js +1 -1
- package/msg/js/en.js +1 -0
- package/msg/json/en.json +2 -1
- package/msg/messages.js +1 -0
- package/msg/scratch_msgs.js +117 -37
- package/package.json +10 -10
- package/src/blocks/sensing.ts +12 -0
- package/CHANGELOG.md +0 -1157
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scratch-blocks",
|
|
3
|
-
"version": "2.0.0-spork.
|
|
3
|
+
"version": "2.0.0-spork.6",
|
|
4
4
|
"description": "Scratch Blocks is a library for building creative computing interfaces.",
|
|
5
5
|
"author": "Massachusetts Institute of Technology",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,12 +17,17 @@
|
|
|
17
17
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
18
|
"test:lint": "eslint ."
|
|
19
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@blockly/continuous-toolbox": "^7.0.1",
|
|
22
|
+
"@blockly/field-colour": "^6.0.3",
|
|
23
|
+
"blockly": "^12.3.0-beta.0"
|
|
24
|
+
},
|
|
20
25
|
"devDependencies": {
|
|
21
|
-
"@commitlint/cli": "
|
|
22
|
-
"@commitlint/config-conventional": "
|
|
23
|
-
"eslint": "
|
|
26
|
+
"@commitlint/cli": "17.8.1",
|
|
27
|
+
"@commitlint/config-conventional": "17.8.1",
|
|
28
|
+
"eslint": "4.19.1",
|
|
24
29
|
"husky": "9.1.6",
|
|
25
|
-
"scratch-semantic-release-config": "
|
|
30
|
+
"scratch-semantic-release-config": "4.0.0",
|
|
26
31
|
"semantic-release": "22.0.12",
|
|
27
32
|
"source-map-loader": "^4.0.1",
|
|
28
33
|
"ts-loader": "^9.5.1",
|
|
@@ -31,11 +36,6 @@
|
|
|
31
36
|
"webpack-cli": "^4.10.0",
|
|
32
37
|
"webpack-dev-server": "^4.11.1"
|
|
33
38
|
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@blockly/continuous-toolbox": "^7.0.1",
|
|
36
|
-
"@blockly/field-colour": "^6.0.3",
|
|
37
|
-
"blockly": "12.3.0-beta.0"
|
|
38
|
-
},
|
|
39
39
|
"config": {
|
|
40
40
|
"commitizen": {
|
|
41
41
|
"path": "cz-conventional-changelog"
|
package/src/blocks/sensing.ts
CHANGED
|
@@ -374,6 +374,18 @@ Blockly.Blocks["sensing_dayssince2000"] = {
|
|
|
374
374
|
},
|
|
375
375
|
};
|
|
376
376
|
|
|
377
|
+
Blockly.Blocks["sensing_online"] = {
|
|
378
|
+
/**
|
|
379
|
+
* Block to report whether or not the system is online
|
|
380
|
+
*/
|
|
381
|
+
init: function(this: Blockly.Block) {
|
|
382
|
+
this.jsonInit({
|
|
383
|
+
message0: Blockly.Msg.SENSING_ONLINE,
|
|
384
|
+
extensions: ["colours_sensing", "output_boolean", "monitor_block"],
|
|
385
|
+
});
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
|
|
377
389
|
Blockly.Blocks["sensing_username"] = {
|
|
378
390
|
/**
|
|
379
391
|
* Block to report user's username
|