@viamrobotics/test-widgets 0.17.0 → 0.17.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.
@@ -12,6 +12,8 @@ export const createControlHost = ({ getRobot, getIframe, resourceName, onHeight,
12
12
  if (!robot || !iframe)
13
13
  return;
14
14
  host = createHost(robot, iframe, {
15
+ // Names the resource in the handshake so the guest's default client targets it.
16
+ resourceName: resourceName(),
15
17
  allow: ({ resource }) => resource === resourceName(),
16
18
  onSize: (height) => {
17
19
  // A non-finite value would reach the iframe's style as invalid CSS, which the browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/test-widgets",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "wireit": {