diff --git a/package.json b/package.json index 25eac15585..bf3aabe429 100644 --- a/package.json +++ b/package.json @@ -145,6 +145,7 @@ "tslib": "^2.0.1", "typescript": "^3.7.2", "wait-on": "^5.0.0", + "web-encoding": "^1.1.5", "webpack-cli": "^3.3.11", "worker-loader": "^2.0.0" }, diff --git a/packages/core/ui/FileSelector.tsx b/packages/core/ui/FileSelector.tsx index c6a4333fcc..369a77487c 100644 --- a/packages/core/ui/FileSelector.tsx +++ b/packages/core/ui/FileSelector.tsx @@ -75,7 +75,7 @@ const FileLocationEditor = observer( ) : null} - Url + URL diff --git a/packages/core/util/jexl.ts b/packages/core/util/jexl.ts index 66aae4b8b1..6ef04d6b26 100644 --- a/packages/core/util/jexl.ts +++ b/packages/core/util/jexl.ts @@ -42,6 +42,7 @@ export default function (/* config?: any*/): JexlNonBuildable { j.addFunction('floor', Math.floor) j.addFunction('round', Math.round) j.addFunction('abs', Math.abs) + j.addFunction('parseInt', Number.parseInt) // string j.addFunction('split', (str: string, char: string) => str.split(char)) diff --git a/plugins/config/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.js.snap b/plugins/config/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.js.snap index 12289f4dcb..e748007a19 100644 --- a/plugins/config/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.js.snap +++ b/plugins/config/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.js.snap @@ -76,7 +76,7 @@ exports[`ConfigurationEditor widget renders all the different types of built-in - Url + URL renders 1`] = ` - Url + URL renders 1`] = ` - Url + URL {