I don’t think that is supported yet either. Blockly is really basic. When you start to move beyond basic, writing the code by hand may be a better idea anyway.
To do it from JavaScript text though see OH 3 Examples: Writing and using JavaScript Libraries in MainUI created Rules.