@interopio/desktop 6.0.0 → 6.0.2

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.
@@ -3613,7 +3613,7 @@ var ContextMessageReplaySpec = {
3613
3613
  }
3614
3614
  };
3615
3615
 
3616
- var version$2 = "6.0.2";
3616
+ var version$2 = "6.1.0";
3617
3617
 
3618
3618
  function prepareConfig$1 (configuration, ext, glue42gd) {
3619
3619
  var _a, _b, _c, _d;
@@ -15727,10 +15727,12 @@ class GDExecutor {
15727
15727
  get finished() {
15728
15728
  return this._finished;
15729
15729
  }
15730
- init(agm, instance, config) {
15730
+ get configuration() {
15731
+ return this._configuration;
15732
+ }
15733
+ init(agm, instance) {
15731
15734
  this.agm = agm;
15732
15735
  this.agmTarget = instance;
15733
- this._configuration = config;
15734
15736
  this._registry.add("event", (data) => {
15735
15737
  if (data.type === "Closed") {
15736
15738
  const keys = Object.keys(this.unsubCallbacks);
@@ -15743,6 +15745,9 @@ class GDExecutor {
15743
15745
  }
15744
15746
  });
15745
15747
  }
15748
+ setConfiguration(config) {
15749
+ this._configuration = config;
15750
+ }
15746
15751
  handleEvent(data) {
15747
15752
  this._registry.execute("event", data);
15748
15753
  }
@@ -15758,7 +15763,7 @@ class GDExecutor {
15758
15763
  }
15759
15764
  const id = result.returned.id;
15760
15765
  const win = await windowStore.waitFor(id);
15761
- if (!this._configuration || this._configuration.windowAvailableOnURLChanged) {
15766
+ if (!this.configuration || this.configuration.windowAvailableOnURLChanged) {
15762
15767
  setTimeout(() => {
15763
15768
  if (win.API.windowType === "electron") {
15764
15769
  win.Events.handleUrlChanged(win.API.url);
@@ -16612,11 +16617,11 @@ class GDEnvironment {
16612
16617
  onData: (streamData) => {
16613
16618
  if (streamData.data.type === "Configuration") {
16614
16619
  this._configuration = streamData.data;
16620
+ executor.setConfiguration(this._configuration);
16615
16621
  return;
16616
16622
  }
16617
16623
  this.updateWindow(streamData.data, resolve);
16618
16624
  executor.handleEvent(streamData.data);
16619
- executor.init(this._agm, this._agmInstance, this._configuration);
16620
16625
  },
16621
16626
  onConnected: (instance) => {
16622
16627
  this._agmInstance = instance;
@@ -19007,7 +19012,7 @@ function factory$3(agm) {
19007
19012
  };
19008
19013
  }
19009
19014
 
19010
- var version = "6.0.0";
19015
+ var version = "6.0.2";
19011
19016
 
19012
19017
  var prepareConfig = (options) => {
19013
19018
  function getLibConfig(value, defaultMode, trueMode) {
@@ -20844,14 +20849,14 @@ factory.coreVersion = IOConnectCoreFactory.version;
20844
20849
  factory.version = version;
20845
20850
  factory.calls = callInfo;
20846
20851
 
20847
- var _a;
20852
+ var _a, _b;
20848
20853
  let whatToExpose = factory;
20849
20854
  let shouldSetToWindow = true;
20850
20855
  if (typeof window !== "undefined") {
20851
20856
  const windowAsAny = window;
20852
20857
  const iodesktop = (_a = windowAsAny.iodesktop) !== null && _a !== void 0 ? _a : windowAsAny.glue42gd;
20853
20858
  if (iodesktop && iodesktop.autoInjected) {
20854
- whatToExpose = windowAsAny.IODesktop;
20859
+ whatToExpose = (_b = windowAsAny.IODesktop) !== null && _b !== void 0 ? _b : windowAsAny.Glue;
20855
20860
  shouldSetToWindow = false;
20856
20861
  }
20857
20862
  if (shouldSetToWindow) {