blockly-fluid 1.4.22 → 1.4.24

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.
@@ -11,6 +11,8 @@ module.exports = (Blockly) => (
11
11
 
12
12
  const search = document.createElement("input");
13
13
 
14
+ search.spellcheck = false;
15
+
14
16
  Object.assign(search.style, {
15
17
  color: "#575E75",
16
18
  width: "calc(100% - 10px)",
package/index.js CHANGED
@@ -318,7 +318,10 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
318
318
  JSON.stringify(
319
319
  Object.fromEntries(
320
320
  Object.entries(inputs[input.name].options)
321
- .map((option) => option.reverse())
321
+ .map((option) => [
322
+ option[1],
323
+ (input.check.includes("Number") && ((Array.isArray(input.options)) ? input.options : Object.keys(input.options)).every((optionId) => !isNaN(optionId))) ? Number(option[0]) : option[0]
324
+ ])
322
325
  ), null, 2
323
326
  )
324
327
  })[${value}] || ${value})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly-fluid",
3
- "version": "1.4.22",
3
+ "version": "1.4.24",
4
4
  "description": "A flexible proxy wrapper for Blockly blocks.",
5
5
  "main": "index.js",
6
6
  "scripts": {