iobroker.mywebui 1.42.22 → 1.42.23

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.
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.42.22",
4
+ "version": "1.42.23",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.42.22",
3
+ "version": "1.42.23",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413 with 3D Editor",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -15,7 +15,7 @@
15
15
  "three/webgpu": "../3d-lib/three.module.js",
16
16
  "three/addons/": "../3d-lib/jsm/",
17
17
  "three/examples/jsm/": "../3d-lib/jsm/",
18
- "three-gpu-pathtracer": "data:text/javascript,export default {}",
18
+ "three-gpu-pathtracer": "data:text/javascript,export class WebGLPathTracer{constructor(){}setScene(){}renderSample(){}updateCamera(){}updateEnvironment(){}updateMaterials(){}get samples(){return 0;}filterGlossyFactor=0.5;}",
19
19
  "three-mesh-bvh": "data:text/javascript,export const MeshBVH={};export const acceleratedRaycast=()=>{};export const computeBoundsTree=()=>{};export const disposeBoundsTree=()=>{};"
20
20
  }
21
21
  }
@@ -16,6 +16,15 @@ function Script( editor ) {
16
16
  container.setBackgroundColor( '#272822' );
17
17
  container.setDisplay( 'none' );
18
18
 
19
+ // If CodeMirror is not loaded (e.g. iobroker integration uses external Monaco editor),
20
+ // return an empty container — script editing is handled via parent postMessage bridge.
21
+ if ( typeof CodeMirror === 'undefined' ) {
22
+
23
+ signals.editorCleared.add( function () { container.setDisplay( 'none' ); } );
24
+ return container;
25
+
26
+ }
27
+
19
28
  const header = new UIPanel();
20
29
  header.setPadding( '10px' );
21
30
  container.add( header );