@dualbox/editor 1.0.37 → 1.0.39
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/js/dist/GraphEditor.js +4 -13
- package/js/dist/GraphEditor.min.js +3 -12
- package/js/src/GraphEditor.js +3 -12
- package/package.json +1 -1
|
@@ -104020,9 +104020,10 @@ class DualboxEditor {
|
|
|
104020
104020
|
|
|
104021
104021
|
async loadCorePackages() {
|
|
104022
104022
|
|
|
104023
|
-
|
|
104023
|
+
var pkgName = "@dualbox/dualbox";
|
|
104024
|
+
await this.loadPackage(pkgName);
|
|
104024
104025
|
if (!window.DualBox && window.DualBox.start) {
|
|
104025
|
-
this.DualBox = window.DualBox = this.require(
|
|
104026
|
+
this.DualBox = window.DualBox = this.require(pkgName);
|
|
104026
104027
|
} else {
|
|
104027
104028
|
this.DualBox = window.DualBox;
|
|
104028
104029
|
}
|
|
@@ -104050,16 +104051,6 @@ class DualboxEditor {
|
|
|
104050
104051
|
promises.push(this.loadPackage(name, version));
|
|
104051
104052
|
});
|
|
104052
104053
|
|
|
104053
|
-
/*
|
|
104054
|
-
// also load core nodes
|
|
104055
|
-
promises.push(this.loadPackage('dualbox-core-if', '*'));
|
|
104056
|
-
promises.push(this.loadPackage('dualbox-core-value', '*'));
|
|
104057
|
-
promises.push(this.loadPackage('dualbox-core-from-json', '*'));
|
|
104058
|
-
promises.push(this.loadPackage('dualbox-core-to-json', '*'));
|
|
104059
|
-
promises.push(this.loadPackage('dualbox-core-script', '*'));
|
|
104060
|
-
promises.push(this.loadPackage('dualbox-core-switch', '*'));
|
|
104061
|
-
*/
|
|
104062
|
-
|
|
104063
104054
|
return Promise.all(promises);
|
|
104064
104055
|
}
|
|
104065
104056
|
|
package/js/src/GraphEditor.js
CHANGED
|
@@ -226,9 +226,10 @@ class DualboxEditor {
|
|
|
226
226
|
console.error(err);
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
var pkgName = "@dualbox/dualbox";
|
|
230
|
+
await this.loadPackage(pkgName);
|
|
230
231
|
if (!window.DualBox && window.DualBox.start) {
|
|
231
|
-
this.DualBox = window.DualBox = this.require(
|
|
232
|
+
this.DualBox = window.DualBox = this.require(pkgName);
|
|
232
233
|
} else {
|
|
233
234
|
this.DualBox = window.DualBox;
|
|
234
235
|
}
|
|
@@ -256,16 +257,6 @@ class DualboxEditor {
|
|
|
256
257
|
promises.push(this.loadPackage(name, version));
|
|
257
258
|
});
|
|
258
259
|
|
|
259
|
-
/*
|
|
260
|
-
// also load core nodes
|
|
261
|
-
promises.push(this.loadPackage('dualbox-core-if', '*'));
|
|
262
|
-
promises.push(this.loadPackage('dualbox-core-value', '*'));
|
|
263
|
-
promises.push(this.loadPackage('dualbox-core-from-json', '*'));
|
|
264
|
-
promises.push(this.loadPackage('dualbox-core-to-json', '*'));
|
|
265
|
-
promises.push(this.loadPackage('dualbox-core-script', '*'));
|
|
266
|
-
promises.push(this.loadPackage('dualbox-core-switch', '*'));
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
260
|
return Promise.all(promises);
|
|
270
261
|
}
|
|
271
262
|
|