@node-red/editor-client 5.0.0-beta.3 → 5.0.0-beta.4

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.
@@ -1,17 +1,17 @@
1
1
  export default {
2
- version: "5.0.0-beta.3",
2
+ version: "5.0.0-beta.4",
3
3
  steps: [
4
4
  {
5
5
  titleIcon: "fa fa-map-o",
6
6
  title: {
7
- "en-US": "Welcome to Node-RED 5.0 Beta 3!",
7
+ "en-US": "Welcome to Node-RED 5.0 Beta 4!",
8
8
  "ja": "Node-RED 5.0 へようこそ!",
9
- "fr": "Bienvenue dans Node-RED 5.0 Beta 3!"
9
+ "fr": "Bienvenue dans Node-RED 5.0 Beta 4!"
10
10
  },
11
11
  description: {
12
12
  "en-US": `
13
13
  <p>As a beta release, this is a step towards the final version of Node-RED 5.0.</p>
14
- <p>This release has focused on giving the flows more space; moving the editor tabs into the header and the sidebar buttons along the bottom of the screen.</p>
14
+ <p>This release continues to refine the UX of the editor with lots of small enhancements and fixes based on the community feedback.</p>
15
15
  `
16
16
  }
17
17
  },
@@ -0,0 +1,14 @@
1
+
2
+ (function () {
3
+ const bootstrapEl = document.getElementById('ace-bootstrap') || document.currentScript
4
+ // "packages/node_modules/@node-red/editor-client/src/vendor/ace/ace.js",
5
+ const editorScriptEl = document.createElement('script')
6
+ editorScriptEl.src = 'vendor/ace/ace.js';
7
+ editorScriptEl.async = false;
8
+ bootstrapEl.parentElement.appendChild(editorScriptEl);
9
+ // "packages/node_modules/@node-red/editor-client/src/vendor/ace/ext-language_tools.js"
10
+ const languageToolsScriptEl = document.createElement('script')
11
+ languageToolsScriptEl.src = 'vendor/ace/ext-language_tools.js';
12
+ languageToolsScriptEl.async = false;
13
+ bootstrapEl.parentElement.appendChild(languageToolsScriptEl);
14
+ })();
@@ -35,10 +35,18 @@
35
35
  }
36
36
  }
37
37
 
38
+ const bootstrapEl = document.getElementById('monaco-bootstrap') || document.currentScript
39
+
38
40
  // If we have a suitable language pack, add a script tag to load it (note 'en' is built-in)
39
41
  if (langPack && langPack !== 'BUILT-IN') {
40
- document.write('<script src="vendor/monaco/dist/locale/' + langPack + '"><\/script>')
42
+ const langScriptEl = document.createElement('script')
43
+ langScriptEl.src = 'vendor/monaco/dist/locale/' + langPack
44
+ langScriptEl.async = false
45
+ bootstrapEl.parentElement.appendChild(langScriptEl)
41
46
  }
42
- document.write('<script src="vendor/monaco/dist/editor.js"><\/script>')
43
47
 
48
+ // now add vendor/monaco/dist/editor.js
49
+ const editorScriptEl = document.createElement('script')
50
+ editorScriptEl.src = 'vendor/monaco/dist/editor.js'
51
+ bootstrapEl.parentElement.appendChild(editorScriptEl)
44
52
  })();