5265 Commits

Author SHA1 Message Date
Rachel Fenichel
fad6c006b1 Rebuild 2019-07-18 16:23:59 -07:00
Erik Pasternak
7e3bdf024f Fix wrong method call 2019-07-18 16:14:30 -07:00
Erik Pasternak
c95d5771c8 Properly set the display style on blocks when connections are unhidden
We weren't always setting the display style on blocks when the hidden
state changed on a connection. This meant that sometimes unhiding a
connection would cause the attached block to be invisible.

This moves the display style code into the setHidden so it is never
skipped.
2019-07-18 16:14:22 -07:00
Rachel Fenichel
674b2621ea Merge pull request #2666 from RoboErikG/roboerikg-hidden
Properly set the display style on blocks when connections are unhidden
2019-07-18 16:11:49 -07:00
Rachel Fenichel
ea4c3c59d5 rename Blockly.utils.Paths -> Blockly.utils.svgPath 2019-07-18 15:16:57 -07:00
Rachel Fenichel
a5ec37a78f Merge pull request #2658 from rachel-fenichel/rename_paths
Rename Blockly.utils.Paths -> Blockly.utils.svgPath
2019-07-18 15:16:16 -07:00
Rachel Fenichel
2133f426ee Rebuild 2019-07-18 15:13:52 -07:00
alschmiedt
954cb5acb1 Revert "Adds type to FieldNumber editor" 2019-07-18 15:12:07 -07:00
Erik Pasternak
3adc554f6b Fix wrong method call 2019-07-18 14:19:22 -07:00
Erik Pasternak
bacfae24dd Properly set the display style on blocks when connections are unhidden
We weren't always setting the display style on blocks when the hidden
state changed on a connection. This meant that sometimes unhiding a
connection would cause the attached block to be invisible.

This moves the display style code into the setHidden so it is never
skipped.
2019-07-18 14:08:53 -07:00
alschmiedt
9a535f8079 Merge pull request #2661 from alschmiedt/build_script_merge
Adds ability to pick renderer at build time
2019-07-18 13:21:54 -07:00
alschmiedt
fc45d1aa12 Merge pull request #2664 from google/revert-2607-input_number
Revert "Adds type to FieldNumber editor"
2019-07-18 13:09:48 -07:00
alschmiedt
8f880d55c3 Revert "Adds type to FieldNumber editor" 2019-07-18 13:02:53 -07:00
Beka Westberg
2464e3af46 Added setting a colour fields options through JSON. (#2655) 2019-07-18 12:23:31 -07:00
Beka Westberg
f873ddb1c6 Added Field Tooltip Support to the JSON (#2657)
* Added support for setting a field's tooltip via JSON.

* Added a test block to the playground.
2019-07-18 12:21:37 -07:00
Abby
0646359091 Adds ability to pick renderer at build time 2019-07-18 11:19:54 -07:00
translatewiki.net
dc8922bebc Localisation updates from https://translatewiki.net. 2019-07-18 16:18:10 +02:00
Rachel Fenichel
087eaa2665 rename Blockly.utils.Paths -> Blockly.utils.svgPath 2019-07-17 15:46:55 -07:00
Rachel Fenichel
8d7eaf65e1 Cherry-pick in annotation changes and rebuild 2019-07-17 13:00:22 -07:00
Rachel Fenichel
6e84ac462a Merge pull request #2653 from alschmiedt/compile_broken
Remove @packages annotation from public methods
2019-07-17 12:57:10 -07:00
Abby
fe4bff70da Add @public annotation 2019-07-17 11:52:14 -07:00
Abby
d20549d92d Move files to their own folder 2019-07-17 11:48:42 -07:00
Abby
0f4a417052 Remove @packages annotation from public methods 2019-07-17 11:38:08 -07:00
Rachel Fenichel
f469a388ed Add getCorrectedSize functions to fields 2019-07-17 11:00:20 -07:00
Abby
91d109b30a Add initial keyboard navigation files 2019-07-17 10:00:04 -07:00
Rachel Fenichel
ac3c066fa9 Merge pull request #2647 from rachel-fenichel/tests/screenshot_test_cases
Add test case files for screenshot testing
2019-07-16 13:32:07 -07:00
Rachel Fenichel
6731c70f47 Add test case files for screenshot testing 2019-07-16 13:13:11 -07:00
Rachel Fenichel
d6e50f6633 Merge branch 'master' into rc/Jul_19 2019-07-16 11:29:30 -07:00
Rachel Fenichel
53efc23d6c Rebuild 2019-07-15 16:13:18 -07:00
Neil Fraser
7fbe47c02c Fix colour injection vulnerability.
The new validators already solve this problem, but as a second layer of defence, the generators should also be secured.  Issue #2637
2019-07-15 16:11:25 -07:00
Neil Fraser
92c4d6d3a3 Fix colour injection vulnerability.
The new validators already solve this problem, but as a second layer of defence, the generators should also be secured.  Issue #2637
2019-07-15 16:03:55 -07:00
Rachel Fenichel
ff9da74571 Merge pull request #2643 from rachel-fenichel/rebuild_07_15_19
Rebuild
2019-07-15 14:57:29 -07:00
Rachel Fenichel
03776a6bfd Rebuild 2019-07-15 14:53:01 -07:00
Rachel Fenichel
79be89facc Merge pull request #2638 from rachel-fenichel/dependency_check
Update dependencies
2019-07-15 14:46:56 -07:00
Neil Fraser
2d3b514425 Ensure last variable category is last variable added.
Resolves #2050.
2019-07-15 14:37:27 -07:00
Neil Fraser
2ac3447383 Create null objects properly.
new Object(null) doesn’t do anything, that’s just broken.
And the for loop with keys is silly.
2019-07-15 14:37:27 -07:00
Neil Fraser
bbb6e03801 Don’t save IDs of shadow blocks. 2019-07-15 14:37:27 -07:00
Neil Fraser
0e82677f27 Create stub for Node contstants.
Ironic that Node doesn’t have Node.  Not tested.
Fix two missing dependencies.
2019-07-15 14:37:27 -07:00
Neil Fraser
31a9c02362 Stop generating dynamic XML from text.
Removes last goog.string reference.
2019-07-15 14:37:27 -07:00
Neil Fraser
829dcc207c Make type and variabletype attributes optional
If a variable doesn’t have a type, then don’t add these empty attributes in the XML.
2019-07-15 14:37:27 -07:00
Rachel Fenichel
4915fdfe12 Update dependencies 2019-07-15 10:48:36 -07:00
RoboErikG
8abba6ae10 Remove edit handler that is just eating events (#2634)
This handler should be unnecessary on most versions of Android, and it's currently just swallowing events that would be handled by default. Removing it to let the system take the default action.
2019-07-12 13:29:46 -07:00
Neil Fraser
5bb98bc998 Routine recompile
Closure changed, everything broke.  Again.

Verbal LGTM from @alschmiedt
2019-07-12 12:36:10 -07:00
Neil Fraser
3647b6e38e Add XSD to validate Blockly’s XML (#2633)
* Add XSD to validate Blockly’s XML

This XSD might be used in tests or other tooling.
2019-07-12 12:05:55 -07:00
Tiago Quelhas
588840875e Replace --dependency_mode=STRICT with PRUNE. (#2631)
STRICT is a deprecated alias for PRUNE.
2019-07-11 17:57:54 -07:00
Monica Kozbial
c19c55db65 Merge pull request #2629 from moniika/moniika-collapsed-insertion-marker
Added setCollapsed to insertion marker block creation.
2019-07-11 12:56:00 -07:00
kozbial
da26594307 Added setCollapsed to insertion marker block creation. 2019-07-11 10:25:21 -07:00
Beka Westberg
b7e6d3704a Fixed Procedure Argument Escaping (#2626)
* Refactored procedure decompose to build XML node by node. Fixed argument name escaping.

* Fixed review comments.
2019-07-10 16:58:25 -07:00
Rachel Fenichel
0af94c4880 Merge pull request #2623 from rachel-fenichel/remove_accessible
Remove accessibility demo from Blockly repo
2019-07-10 13:35:55 -07:00
Rachel Fenichel
b602240c8b Fix comment 2019-07-10 12:40:46 -07:00