@interopio/workspaces-api 4.1.5 → 4.2.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.
@@ -1621,7 +1621,8 @@
1621
1621
  inputMaxLength: optional(positiveNumberDecoder),
1622
1622
  inputPattern: optional(nonEmptyStringDecoder),
1623
1623
  inputPatternErrorMessage: optional(nonEmptyStringDecoder),
1624
- inputPlaceholder: optional(string())
1624
+ inputPlaceholder: optional(string()),
1625
+ blur: optional(boolean())
1625
1626
  });
1626
1627
  const showFrameDialogConfigDecoder = object({
1627
1628
  frameId: nonEmptyStringDecoder,
@@ -1759,7 +1760,7 @@
1759
1760
  config.callback(args);
1760
1761
  });
1761
1762
  }
1762
- async send(operationName, operationArgs) {
1763
+ async send(operationName, operationArgs, invocationOptions) {
1763
1764
  const operationDefinition = Object.values(OPERATIONS).find((operation) => operation.name === operationName);
1764
1765
  if (!operationDefinition) {
1765
1766
  throw new Error(`Cannot find definition for operation name: ${operationName}`);
@@ -1773,7 +1774,7 @@
1773
1774
  }
1774
1775
  }
1775
1776
  try {
1776
- const operationResult = await this.transport.transmitControl(operationDefinition.name, operationArgs);
1777
+ const operationResult = await this.transport.transmitControl(operationDefinition.name, operationArgs, invocationOptions);
1777
1778
  operationDefinition.resultDecoder.runWithException(operationResult);
1778
1779
  return operationResult;
1779
1780
  }
@@ -2052,14 +2053,14 @@
2052
2053
  }
2053
2054
  return subscription;
2054
2055
  }
2055
- async transmitControl(operation, operationArguments) {
2056
+ async transmitControl(operation, operationArguments, invocationOptions) {
2056
2057
  const invocationArguments = isDesktop() ? { operation, operationArguments } : { operation, domain: "workspaces", data: operationArguments };
2057
2058
  const methodName = isDesktop() ? OUTGOING_METHODS.control.name : webPlatformMethodName;
2058
2059
  const platformTarget = isDesktop() ? undefined : browserGlobal().communicationId;
2059
2060
  let invocationResult;
2060
2061
  const baseErrorMessage = `Internal Workspaces Communication Error. Attempted operation: ${JSON.stringify(invocationArguments)}. `;
2061
2062
  try {
2062
- invocationResult = await this.agm.invoke(methodName, invocationArguments, platformTarget ? { instance: platformTarget } : "best", { methodResponseTimeoutMs: this.defaultTransportTimeout });
2063
+ invocationResult = await this.agm.invoke(methodName, invocationArguments, platformTarget ? { instance: platformTarget } : "best", { methodResponseTimeoutMs: invocationOptions?.timeout ?? this.defaultTransportTimeout });
2063
2064
  if (!invocationResult) {
2064
2065
  throw new Error("Received unsupported result from GD - empty result");
2065
2066
  }
@@ -2705,6 +2706,7 @@
2705
2706
  }
2706
2707
 
2707
2708
  const DEFAULT_WINDOW_DRAG_MODE = "keepInside";
2709
+ const ONE_DAY_MS = 86_400_000;
2708
2710
 
2709
2711
  const data$3 = new WeakMap();
2710
2712
  const getData$3 = (model) => {
@@ -4600,7 +4602,7 @@
4600
4602
  return result.isVisible;
4601
4603
  }
4602
4604
  async showFrameDialog(frameId, options) {
4603
- const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options });
4605
+ const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options }, { timeout: ONE_DAY_MS });
4604
4606
  return result;
4605
4607
  }
4606
4608
  async isOperationSupported(operation) {
@@ -5282,7 +5284,7 @@
5282
5284
  }
5283
5285
  }
5284
5286
 
5285
- var version = "4.1.5";
5287
+ var version = "4.2.1";
5286
5288
 
5287
5289
  const composeAPI = (glue, ioc) => {
5288
5290
  const controller = ioc.controller;