@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.
- package/changelog.md +5 -0
- package/dist/workspaces.es.js +9 -7
- package/dist/workspaces.es.js.map +1 -1
- package/dist/workspaces.umd.js +9 -7
- package/dist/workspaces.umd.js.map +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +3 -3
- package/workspaces.d.ts +24 -9
package/changelog.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
4.2.1
|
|
2
|
+
chore: G4E-10143 Changed the timeout for the showDialog method
|
|
3
|
+
feat: G4E-9244 Added option to blur the Frame instance that has displayed the dialog
|
|
4
|
+
4.2.0
|
|
5
|
+
feat: io.Connect Browser 4.2
|
|
1
6
|
4.1.4
|
|
2
7
|
feat: G4E-7882 Expose generic way to use external windows with React portals for the popups
|
|
3
8
|
4.1.2
|
package/dist/workspaces.es.js
CHANGED
|
@@ -1615,7 +1615,8 @@ const frameDialogOptionsDecoder = object({
|
|
|
1615
1615
|
inputMaxLength: optional(positiveNumberDecoder),
|
|
1616
1616
|
inputPattern: optional(nonEmptyStringDecoder),
|
|
1617
1617
|
inputPatternErrorMessage: optional(nonEmptyStringDecoder),
|
|
1618
|
-
inputPlaceholder: optional(string())
|
|
1618
|
+
inputPlaceholder: optional(string()),
|
|
1619
|
+
blur: optional(boolean())
|
|
1619
1620
|
});
|
|
1620
1621
|
const showFrameDialogConfigDecoder = object({
|
|
1621
1622
|
frameId: nonEmptyStringDecoder,
|
|
@@ -1753,7 +1754,7 @@ class Bridge {
|
|
|
1753
1754
|
config.callback(args);
|
|
1754
1755
|
});
|
|
1755
1756
|
}
|
|
1756
|
-
async send(operationName, operationArgs) {
|
|
1757
|
+
async send(operationName, operationArgs, invocationOptions) {
|
|
1757
1758
|
const operationDefinition = Object.values(OPERATIONS).find((operation) => operation.name === operationName);
|
|
1758
1759
|
if (!operationDefinition) {
|
|
1759
1760
|
throw new Error(`Cannot find definition for operation name: ${operationName}`);
|
|
@@ -1767,7 +1768,7 @@ class Bridge {
|
|
|
1767
1768
|
}
|
|
1768
1769
|
}
|
|
1769
1770
|
try {
|
|
1770
|
-
const operationResult = await this.transport.transmitControl(operationDefinition.name, operationArgs);
|
|
1771
|
+
const operationResult = await this.transport.transmitControl(operationDefinition.name, operationArgs, invocationOptions);
|
|
1771
1772
|
operationDefinition.resultDecoder.runWithException(operationResult);
|
|
1772
1773
|
return operationResult;
|
|
1773
1774
|
}
|
|
@@ -2046,14 +2047,14 @@ class InteropTransport {
|
|
|
2046
2047
|
}
|
|
2047
2048
|
return subscription;
|
|
2048
2049
|
}
|
|
2049
|
-
async transmitControl(operation, operationArguments) {
|
|
2050
|
+
async transmitControl(operation, operationArguments, invocationOptions) {
|
|
2050
2051
|
const invocationArguments = isDesktop() ? { operation, operationArguments } : { operation, domain: "workspaces", data: operationArguments };
|
|
2051
2052
|
const methodName = isDesktop() ? OUTGOING_METHODS.control.name : webPlatformMethodName;
|
|
2052
2053
|
const platformTarget = isDesktop() ? undefined : browserGlobal().communicationId;
|
|
2053
2054
|
let invocationResult;
|
|
2054
2055
|
const baseErrorMessage = `Internal Workspaces Communication Error. Attempted operation: ${JSON.stringify(invocationArguments)}. `;
|
|
2055
2056
|
try {
|
|
2056
|
-
invocationResult = await this.agm.invoke(methodName, invocationArguments, platformTarget ? { instance: platformTarget } : "best", { methodResponseTimeoutMs: this.defaultTransportTimeout });
|
|
2057
|
+
invocationResult = await this.agm.invoke(methodName, invocationArguments, platformTarget ? { instance: platformTarget } : "best", { methodResponseTimeoutMs: invocationOptions?.timeout ?? this.defaultTransportTimeout });
|
|
2057
2058
|
if (!invocationResult) {
|
|
2058
2059
|
throw new Error("Received unsupported result from GD - empty result");
|
|
2059
2060
|
}
|
|
@@ -2699,6 +2700,7 @@ class Group {
|
|
|
2699
2700
|
}
|
|
2700
2701
|
|
|
2701
2702
|
const DEFAULT_WINDOW_DRAG_MODE = "keepInside";
|
|
2703
|
+
const ONE_DAY_MS = 86_400_000;
|
|
2702
2704
|
|
|
2703
2705
|
const data$3 = new WeakMap();
|
|
2704
2706
|
const getData$3 = (model) => {
|
|
@@ -4594,7 +4596,7 @@ class BaseController {
|
|
|
4594
4596
|
return result.isVisible;
|
|
4595
4597
|
}
|
|
4596
4598
|
async showFrameDialog(frameId, options) {
|
|
4597
|
-
const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options });
|
|
4599
|
+
const result = await this.bridge.send(OPERATIONS.showFrameDialog.name, { frameId, options }, { timeout: ONE_DAY_MS });
|
|
4598
4600
|
return result;
|
|
4599
4601
|
}
|
|
4600
4602
|
async isOperationSupported(operation) {
|
|
@@ -5276,7 +5278,7 @@ class IoC {
|
|
|
5276
5278
|
}
|
|
5277
5279
|
}
|
|
5278
5280
|
|
|
5279
|
-
var version = "4.1
|
|
5281
|
+
var version = "4.2.1";
|
|
5280
5282
|
|
|
5281
5283
|
const composeAPI = (glue, ioc) => {
|
|
5282
5284
|
const controller = ioc.controller;
|