@vention/machine-logic-ui-sdk 0.22.0 → 0.23.0
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/index.esm.js
CHANGED
|
@@ -2885,6 +2885,10 @@ const getMqttWsUrlGivenUiIframeUrl = uiIframeUrl => {
|
|
|
2885
2885
|
const closeCustomUi = () => {
|
|
2886
2886
|
window.parent.postMessage("closeCustomUi", "*");
|
|
2887
2887
|
};
|
|
2888
|
+
const navigateControlCenter = route => {
|
|
2889
|
+
const capitalizedRoute = route.charAt(0).toUpperCase() + route.slice(1);
|
|
2890
|
+
window.parent.postMessage(`navigateTo${capitalizedRoute}`, "*");
|
|
2891
|
+
};
|
|
2888
2892
|
|
|
2889
2893
|
const defaultContext = {
|
|
2890
2894
|
client: null,
|
|
@@ -2957,4 +2961,4 @@ const useMqttSubscription = props => {
|
|
|
2957
2961
|
return message;
|
|
2958
2962
|
};
|
|
2959
2963
|
|
|
2960
|
-
export { MqttClient, MqttProvider, VirtualKeyboard, closeCustomUi, connectToMqttAndGetClient, getExecutionEngineHttpUrl, getMachineCodeProcessHttpUrl, getMqttWsUrl, getMqttWsUrlGivenUiIframeUrl, isOnEdge, isTouchScreenDevice, mqttContext, useMqttSubscription };
|
|
2964
|
+
export { MqttClient, MqttProvider, VirtualKeyboard, closeCustomUi, connectToMqttAndGetClient, getExecutionEngineHttpUrl, getMachineCodeProcessHttpUrl, getMqttWsUrl, getMqttWsUrlGivenUiIframeUrl, isOnEdge, isTouchScreenDevice, mqttContext, navigateControlCenter, useMqttSubscription };
|
package/package.json
CHANGED
|
@@ -7,3 +7,4 @@ export declare const connectToMqttAndGetClient: () => Promise<MqttClient>;
|
|
|
7
7
|
export declare const getMachineCodeProcessHttpUrl: (processName: string) => string;
|
|
8
8
|
export declare const getMqttWsUrlGivenUiIframeUrl: (uiIframeUrl: string) => string;
|
|
9
9
|
export declare const closeCustomUi: () => void;
|
|
10
|
+
export declare const navigateControlCenter: (route: "remoteSupport" | "controlCenterHomepage") => void;
|