@vention/machine-logic-ui-sdk 0.27.4 → 0.27.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-logic-ui-sdk",
3
- "version": "0.27.4",
3
+ "version": "0.27.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "mqtt": "5.14.1",
15
- "tss-react": "4.9.19"
14
+ "mqtt": "^5.15.1",
15
+ "tss-react": "^4.9.20"
16
16
  },
17
17
  "devDependencies": {
18
18
  "react-simple-keyboard": "3.8.15"
@@ -24,4 +24,4 @@
24
24
  "type": "module",
25
25
  "main": "./index.esm.js",
26
26
  "types": "./index.esm.d.ts"
27
- }
27
+ }
package/src/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from "./lib/components/virtual-keyboard/virtual-keyboard";
2
- export * from "./lib/utils/machine-logic-ui-sdk-utils";
3
- export * from "./lib/mqtt-browser/mqtt-client";
4
- export * from "./lib/mqtt/mqtt-context";
5
- export * from "./lib/mqtt/use-mqtt-subscription";
6
- export * from "./lib/mqtt/generic-mqtt-mapping";
@@ -1,42 +0,0 @@
1
- import { KeyboardLayoutObject } from "react-simple-keyboard";
2
- export declare enum KeyboardLayoutName {
3
- DEFAULT = "default",
4
- SHIFT = "shift"
5
- }
6
- export declare enum KeyboardKey {
7
- SHIFT = "{shift}",
8
- CAPS_LOCK = "{lock}",
9
- BACKSPACE = "{bksp}",
10
- ENTER = "{enter}",
11
- SUBMIT = "{submit}",
12
- TAB = "{tab}",
13
- SPACE = "{space}"
14
- }
15
- export declare const KeyboardLayout: {
16
- readonly TEXT: KeyboardLayoutObject;
17
- readonly NUMERIC: KeyboardLayoutObject;
18
- };
19
- export declare const KeyboardDisplay: {
20
- readonly "{shift}": "shift ⇧";
21
- readonly "{lock}": "caps lock ⇪";
22
- readonly "{bksp}": "backspace ⌫";
23
- readonly "{enter}": "enter ↵";
24
- readonly "{submit}": "submit ✓";
25
- readonly "{tab}": "tab ⇥";
26
- readonly "{space}": "space";
27
- };
28
- export declare const KeyboardLayoutsByInputType: {
29
- readonly tel: KeyboardLayoutObject;
30
- readonly date: KeyboardLayoutObject;
31
- readonly week: KeyboardLayoutObject;
32
- readonly text: KeyboardLayoutObject;
33
- readonly password: KeyboardLayoutObject;
34
- readonly "datetime-local": KeyboardLayoutObject;
35
- readonly month: KeyboardLayoutObject;
36
- readonly time: KeyboardLayoutObject;
37
- readonly email: KeyboardLayoutObject;
38
- readonly search: KeyboardLayoutObject;
39
- readonly url: KeyboardLayoutObject;
40
- readonly textarea: KeyboardLayoutObject;
41
- };
42
- export type InputType = keyof typeof KeyboardLayoutsByInputType;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import "react-simple-keyboard/build/css/index.css";
3
- export declare const VirtualKeyboard: () => JSX.Element | null;
4
- export declare const useStyles: import("tss-react/tss").Tss.UseStyles<{
5
- theme: import("@mui/material").Theme;
6
- }, Record<never, unknown>, "virtualKeyboard", import("tss-react/mui").MuiThemeStyleOverridesPluginParams>;
@@ -1 +0,0 @@
1
- export type MqttPayloadByTopic<TMapping extends Record<string, unknown>, T extends keyof TMapping> = TMapping[T];
@@ -1,16 +0,0 @@
1
- import { MutableRefObject, ReactNode } from "react";
2
- import { MqttClient } from "mqtt";
3
- interface MqttContext {
4
- client: MqttClient | null;
5
- connectionStatus: "connected" | "disconnected" | "error";
6
- subscribedTopics: MutableRefObject<Set<string>> | null;
7
- addSubscribedTopic: (topic: string) => void;
8
- removeSubscribedTopic: (topic: string) => void;
9
- }
10
- export declare const mqttContext: import("react").Context<MqttContext>;
11
- interface Props {
12
- children: ReactNode;
13
- version?: "v2" | "v3";
14
- }
15
- export declare const MqttProvider: (props: Props) => import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,6 +0,0 @@
1
- interface Props {
2
- topic: string;
3
- unsubscribeOnUnmount?: boolean;
4
- }
5
- export declare const useMqttSubscription: <TMessage>(props: Props) => TMessage;
6
- export {};
@@ -1,12 +0,0 @@
1
- export interface Callback {
2
- (topic: string, message: string): void;
3
- }
4
- export declare class MqttClient {
5
- private mqttClient?;
6
- private subscriptions;
7
- constructor(url: string, connectCallback?: () => void);
8
- connect(url: string, connectCallback?: () => void): void;
9
- subscribe(topic: string, regex: RegExp, cb: Callback): void;
10
- unsubscribe(topic: string, regex: RegExp, cb: Callback): void;
11
- publish(topic: string, message: string, retain?: boolean): void;
12
- }
@@ -1,10 +0,0 @@
1
- import { MqttClient } from "../mqtt-browser/mqtt-client";
2
- export declare const isTouchScreenDevice: () => boolean;
3
- export declare const isOnEdge: () => boolean;
4
- export declare const getExecutionEngineHttpUrl: () => string;
5
- export declare const getMqttWsUrl: (version?: "v2" | "v3") => Promise<string>;
6
- export declare const connectToMqttAndGetClient: () => Promise<MqttClient>;
7
- export declare const getMachineCodeProcessHttpUrl: (processName: string) => string;
8
- export declare const getMqttWsUrlGivenUiIframeUrl: (uiIframeUrl: string) => string;
9
- export declare const closeCustomUi: () => void;
10
- export declare const navigateControlCenter: (route: "remoteSupport" | "controlCenterHomepage") => void;