@vention/machine-logic-ui-sdk 0.24.0 → 0.26.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.
Files changed (2) hide show
  1. package/index.esm.js +2 -0
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -2232,6 +2232,7 @@ const VirtualKeyboard = () => {
2232
2232
  }, [isKeyboardVisible, focusedTextInput]);
2233
2233
  useEffect(function attachToFocusedTextInput() {
2234
2234
  const setFocusedInputIfFocusedElementIsInput = event => {
2235
+ var _a;
2235
2236
  const eventTarget = event.target;
2236
2237
  if (eventTarget.type === "number") {
2237
2238
  console.warn("The VirtualKeyboard cannot support an input of type number. Use type 'tel' instead.", eventTarget);
@@ -2243,6 +2244,7 @@ const VirtualKeyboard = () => {
2243
2244
  setKeyboardLayoutName(KeyboardLayoutName.DEFAULT);
2244
2245
  setFocusedTextInput(eventTarget);
2245
2246
  setInitialInputValue(eventTarget.value);
2247
+ (_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(eventTarget.value);
2246
2248
  }
2247
2249
  };
2248
2250
  document.addEventListener("focus", setFocusedInputIfFocusedElementIsInput, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-logic-ui-sdk",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"