@interopio/workspaces-api 3.5.5 → 3.5.6
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 +2 -0
- package/dist/workspaces.es.js +30 -3
- package/dist/workspaces.es.js.map +1 -1
- package/dist/workspaces.umd.js +30 -3
- package/dist/workspaces.umd.js.map +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +2 -2
- package/workspaces.d.ts +16 -0
package/changelog.md
CHANGED
package/dist/workspaces.es.js
CHANGED
|
@@ -1164,7 +1164,8 @@ const workspaceConfigResultDecoder = object({
|
|
|
1164
1164
|
widthInPx: optional(number()),
|
|
1165
1165
|
heightInPx: optional(number()),
|
|
1166
1166
|
isPinned: optional(boolean()),
|
|
1167
|
-
windowDragMode: optional(windowDragModeDecoder)
|
|
1167
|
+
windowDragMode: optional(windowDragModeDecoder),
|
|
1168
|
+
loadingStrategy: optional(loadingStrategyDecoder)
|
|
1168
1169
|
});
|
|
1169
1170
|
const baseChildSnapshotConfigDecoder = object({
|
|
1170
1171
|
frameId: nonEmptyStringDecoder,
|
|
@@ -1525,6 +1526,10 @@ const setWindowDragModeDecoder = object({
|
|
|
1525
1526
|
itemId: nonEmptyStringDecoder,
|
|
1526
1527
|
dragMode: windowDragModeDecoder
|
|
1527
1528
|
});
|
|
1529
|
+
const setLoadingStrategyDecoder = object({
|
|
1530
|
+
itemId: nonEmptyStringDecoder,
|
|
1531
|
+
strategy: loadingStrategyDecoder
|
|
1532
|
+
});
|
|
1528
1533
|
|
|
1529
1534
|
const webPlatformMethodName = "T42.Web.Platform.Control";
|
|
1530
1535
|
const webPlatformWspStreamName = "T42.Web.Platform.WSP.Stream";
|
|
@@ -1598,7 +1603,8 @@ const OPERATIONS = {
|
|
|
1598
1603
|
hideLoadingAnimation: { name: "hideLoadingAnimation", argsDecoder: loadingAnimationConfigDecoder, resultDecoder: voidResultDecoder },
|
|
1599
1604
|
getPlatformFrameId: { name: "getPlatformFrameId", resultDecoder: getPlatformFrameIdResultDecoder },
|
|
1600
1605
|
operationCheck: { name: "operationCheck", argsDecoder: operationCheckConfigDecoder, resultDecoder: operationCheckResultDecoder },
|
|
1601
|
-
setWindowDragMode: { name: "setWindowDragMode", argsDecoder: setWindowDragModeDecoder, resultDecoder: voidResultDecoder }
|
|
1606
|
+
setWindowDragMode: { name: "setWindowDragMode", argsDecoder: setWindowDragModeDecoder, resultDecoder: voidResultDecoder },
|
|
1607
|
+
setLoadingStrategy: { name: "setLoadingStrategy", argsDecoder: setLoadingStrategyDecoder, resultDecoder: voidResultDecoder }
|
|
1602
1608
|
};
|
|
1603
1609
|
|
|
1604
1610
|
class PromiseWrapper {
|
|
@@ -2679,6 +2685,20 @@ class Workspace {
|
|
|
2679
2685
|
}
|
|
2680
2686
|
return getData$3(this).config.windowDragMode;
|
|
2681
2687
|
}
|
|
2688
|
+
get loadingStrategy() {
|
|
2689
|
+
if (!isDesktop()) {
|
|
2690
|
+
console.warn("The workspace.loadingStrategy property is not supported in IO Connect Browser");
|
|
2691
|
+
}
|
|
2692
|
+
return getData$3(this).config.loadingStrategy;
|
|
2693
|
+
}
|
|
2694
|
+
async setLoadingStrategy(strategy) {
|
|
2695
|
+
if (!isDesktop()) {
|
|
2696
|
+
throw new Error("Not supported in IO Connect Browser");
|
|
2697
|
+
}
|
|
2698
|
+
const controller = getData$3(this).controller;
|
|
2699
|
+
await controller.setLoadingStrategy(this.id, strategy);
|
|
2700
|
+
await this.refreshReference();
|
|
2701
|
+
}
|
|
2682
2702
|
async removeChild(predicate) {
|
|
2683
2703
|
checkThrowCallback(predicate);
|
|
2684
2704
|
const child = this.children.find(predicate);
|
|
@@ -4358,6 +4378,10 @@ class BaseController {
|
|
|
4358
4378
|
return {};
|
|
4359
4379
|
}
|
|
4360
4380
|
}
|
|
4381
|
+
async setLoadingStrategy(workspaceId, strategy) {
|
|
4382
|
+
await this.isOperationSupported(OPERATIONS.setLoadingStrategy.name);
|
|
4383
|
+
return this.bridge.send(OPERATIONS.setLoadingStrategy.name, { itemId: workspaceId, strategy });
|
|
4384
|
+
}
|
|
4361
4385
|
async isOperationSupported(operation) {
|
|
4362
4386
|
if (isDesktop()) {
|
|
4363
4387
|
return { isSupported: true };
|
|
@@ -4676,6 +4700,9 @@ class MainController {
|
|
|
4676
4700
|
getPlatformFrameId() {
|
|
4677
4701
|
return this.base.getPlatformFrameId();
|
|
4678
4702
|
}
|
|
4703
|
+
setLoadingStrategy(workspaceId, strategy) {
|
|
4704
|
+
return this.base.setLoadingStrategy(workspaceId, strategy);
|
|
4705
|
+
}
|
|
4679
4706
|
async handleCoreLocalSubscription(config, levelId) {
|
|
4680
4707
|
await this.bridge.createCoreEventSubscription();
|
|
4681
4708
|
config.scopeId = config.scopeId || levelId;
|
|
@@ -4935,7 +4962,7 @@ class IoC {
|
|
|
4935
4962
|
}
|
|
4936
4963
|
}
|
|
4937
4964
|
|
|
4938
|
-
var version = "3.5.
|
|
4965
|
+
var version = "3.5.6";
|
|
4939
4966
|
|
|
4940
4967
|
const composeAPI = (glue, ioc) => {
|
|
4941
4968
|
const controller = ioc.controller;
|