@vived/host 3.10.1 → 3.11.1
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeStartAppUC = exports.StartAppUC = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const AppSandbox_1 = require("../../AppSandbox");
|
|
5
6
|
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
7
|
const Entities_1 = require("../../StateMachine/Entities");
|
|
7
8
|
class StartAppUC extends HostAppObject_1.HostAppObjectUC {
|
|
@@ -42,6 +43,8 @@ class StartAppUCImp extends StartAppUC {
|
|
|
42
43
|
return;
|
|
43
44
|
if (!this.editStateEntity)
|
|
44
45
|
return;
|
|
46
|
+
if (!this.sandbox)
|
|
47
|
+
return;
|
|
45
48
|
this.dispatchStart.doDispatch(container);
|
|
46
49
|
let state;
|
|
47
50
|
if (this.stateMachine.activeState) {
|
|
@@ -63,6 +66,12 @@ class StartAppUCImp extends StartAppUC {
|
|
|
63
66
|
}
|
|
64
67
|
(_c = this.dispatchSetIsAuthoring) === null || _c === void 0 ? void 0 : _c.doDispatch(isAuthoring);
|
|
65
68
|
(_d = this.dispatchThemeColors) === null || _d === void 0 ? void 0 : _d.doDispatch();
|
|
69
|
+
if (this.sandbox.enableDevFeatures) {
|
|
70
|
+
this.sandbox.devFeatures.forEach((feature) => {
|
|
71
|
+
var _a;
|
|
72
|
+
(_a = this.dispatchEnableFeature) === null || _a === void 0 ? void 0 : _a.doDispatch(feature);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
66
75
|
};
|
|
67
76
|
}
|
|
68
77
|
get stateMachine() {
|
|
@@ -83,4 +92,10 @@ class StartAppUCImp extends StartAppUC {
|
|
|
83
92
|
get dispatchThemeColors() {
|
|
84
93
|
return this.getCachedLocalComponent(Dispatcher_1.DispatchThemeUC.type);
|
|
85
94
|
}
|
|
95
|
+
get dispatchEnableFeature() {
|
|
96
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchEnableFeatureUC.type);
|
|
97
|
+
}
|
|
98
|
+
get sandbox() {
|
|
99
|
+
return this.getCachedSingleton(AppSandbox_1.AppSandboxEntity.type);
|
|
100
|
+
}
|
|
86
101
|
}
|
|
@@ -4,6 +4,7 @@ exports.setupStandardHostDispatchers = void 0;
|
|
|
4
4
|
const UCs_1 = require("./UCs");
|
|
5
5
|
function setupStandardHostDispatchers(appObject) {
|
|
6
6
|
UCs_1.makeDispatchDisposeAppUC(appObject);
|
|
7
|
+
UCs_1.makeDispatchEnableFeatureUC(appObject);
|
|
7
8
|
UCs_1.makeDispatchIsAuthoringUC(appObject);
|
|
8
9
|
UCs_1.makeDispatchSetStateUC(appObject);
|
|
9
10
|
UCs_1.makeDispatchShowBabylonInspectorUC(appObject);
|