@qontinui/ui-bridge-wrapper 0.15.0 → 0.15.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.
@@ -1,40 +1,40 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ32CC665_cjs = require('../chunk-Z32CC665.cjs');
3
+ var chunk3EIJDQJO_cjs = require('../chunk-3EIJDQJO.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "HandlerRegistry", {
8
8
  enumerable: true,
9
- get: function () { return chunkZ32CC665_cjs.HandlerRegistry; }
9
+ get: function () { return chunk3EIJDQJO_cjs.HandlerRegistry; }
10
10
  });
11
11
  Object.defineProperty(exports, "LiveSessionTransport", {
12
12
  enumerable: true,
13
- get: function () { return chunkZ32CC665_cjs.LiveSessionTransport; }
13
+ get: function () { return chunk3EIJDQJO_cjs.LiveSessionTransport; }
14
14
  });
15
15
  Object.defineProperty(exports, "SCREENSHOT_ACTION", {
16
16
  enumerable: true,
17
- get: function () { return chunkZ32CC665_cjs.SCREENSHOT_ACTION; }
17
+ get: function () { return chunk3EIJDQJO_cjs.SCREENSHOT_ACTION; }
18
18
  });
19
19
  Object.defineProperty(exports, "SCREENSHOT_CAPABILITY", {
20
20
  enumerable: true,
21
- get: function () { return chunkZ32CC665_cjs.SCREENSHOT_CAPABILITY; }
21
+ get: function () { return chunk3EIJDQJO_cjs.SCREENSHOT_CAPABILITY; }
22
22
  });
23
23
  Object.defineProperty(exports, "SCREENSHOT_TIMEOUT_MS", {
24
24
  enumerable: true,
25
- get: function () { return chunkZ32CC665_cjs.SCREENSHOT_TIMEOUT_MS; }
25
+ get: function () { return chunk3EIJDQJO_cjs.SCREENSHOT_TIMEOUT_MS; }
26
26
  });
27
27
  Object.defineProperty(exports, "WrapperTransportError", {
28
28
  enumerable: true,
29
- get: function () { return chunkZ32CC665_cjs.WrapperTransportError; }
29
+ get: function () { return chunk3EIJDQJO_cjs.WrapperTransportError; }
30
30
  });
31
31
  Object.defineProperty(exports, "captureScreenshotReply", {
32
32
  enumerable: true,
33
- get: function () { return chunkZ32CC665_cjs.captureScreenshotReply; }
33
+ get: function () { return chunk3EIJDQJO_cjs.captureScreenshotReply; }
34
34
  });
35
35
  Object.defineProperty(exports, "registerScreenshotCapture", {
36
36
  enumerable: true,
37
- get: function () { return chunkZ32CC665_cjs.registerScreenshotCapture; }
37
+ get: function () { return chunk3EIJDQJO_cjs.registerScreenshotCapture; }
38
38
  });
39
39
  //# sourceMappingURL=index.cjs.map
40
40
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { HandlerRegistry, LiveSessionTransport, SCREENSHOT_ACTION, SCREENSHOT_CAPABILITY, SCREENSHOT_TIMEOUT_MS, WrapperTransportError, captureScreenshotReply, registerScreenshotCapture } from '../chunk-IKHDNIU4.js';
1
+ export { HandlerRegistry, LiveSessionTransport, SCREENSHOT_ACTION, SCREENSHOT_CAPABILITY, SCREENSHOT_TIMEOUT_MS, WrapperTransportError, captureScreenshotReply, registerScreenshotCapture } from '../chunk-WI4MTFWJ.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -875,6 +875,12 @@ var LiveSessionTransport = class extends BaseTransport {
875
875
  if (!config.runnerUrl) {
876
876
  throw new WrapperTransportError("INVALID_CONFIG", `Transport kind 'live' requires runnerUrl`);
877
877
  }
878
+ if (!config.appId?.trim()) {
879
+ throw new WrapperTransportError(
880
+ "INVALID_CONFIG",
881
+ `Transport kind 'live' requires a non-blank appId (the runner refuses a register frame without one)`
882
+ );
883
+ }
878
884
  this.url = config.runnerUrl;
879
885
  this.appId = config.appId;
880
886
  this.appName = config.appName;
@@ -913,7 +919,8 @@ var LiveSessionTransport = class extends BaseTransport {
913
919
  type: "register",
914
920
  transport: "websocket",
915
921
  appId: this.appId,
916
- appName: this.appName,
922
+ // appName defaults to appId: the runner requires a non-blank one.
923
+ appName: this.appName?.trim() || this.appId,
917
924
  appType: this.opts.appType ?? "wrapper"
918
925
  };
919
926
  if (this.opts.framework !== void 0) frame.framework = this.opts.framework;