@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/dist/workspaces.umd.js
CHANGED
|
@@ -1170,7 +1170,8 @@
|
|
|
1170
1170
|
widthInPx: optional(number()),
|
|
1171
1171
|
heightInPx: optional(number()),
|
|
1172
1172
|
isPinned: optional(boolean()),
|
|
1173
|
-
windowDragMode: optional(windowDragModeDecoder)
|
|
1173
|
+
windowDragMode: optional(windowDragModeDecoder),
|
|
1174
|
+
loadingStrategy: optional(loadingStrategyDecoder)
|
|
1174
1175
|
});
|
|
1175
1176
|
const baseChildSnapshotConfigDecoder = object({
|
|
1176
1177
|
frameId: nonEmptyStringDecoder,
|
|
@@ -1531,6 +1532,10 @@
|
|
|
1531
1532
|
itemId: nonEmptyStringDecoder,
|
|
1532
1533
|
dragMode: windowDragModeDecoder
|
|
1533
1534
|
});
|
|
1535
|
+
const setLoadingStrategyDecoder = object({
|
|
1536
|
+
itemId: nonEmptyStringDecoder,
|
|
1537
|
+
strategy: loadingStrategyDecoder
|
|
1538
|
+
});
|
|
1534
1539
|
|
|
1535
1540
|
const webPlatformMethodName = "T42.Web.Platform.Control";
|
|
1536
1541
|
const webPlatformWspStreamName = "T42.Web.Platform.WSP.Stream";
|
|
@@ -1604,7 +1609,8 @@
|
|
|
1604
1609
|
hideLoadingAnimation: { name: "hideLoadingAnimation", argsDecoder: loadingAnimationConfigDecoder, resultDecoder: voidResultDecoder },
|
|
1605
1610
|
getPlatformFrameId: { name: "getPlatformFrameId", resultDecoder: getPlatformFrameIdResultDecoder },
|
|
1606
1611
|
operationCheck: { name: "operationCheck", argsDecoder: operationCheckConfigDecoder, resultDecoder: operationCheckResultDecoder },
|
|
1607
|
-
setWindowDragMode: { name: "setWindowDragMode", argsDecoder: setWindowDragModeDecoder, resultDecoder: voidResultDecoder }
|
|
1612
|
+
setWindowDragMode: { name: "setWindowDragMode", argsDecoder: setWindowDragModeDecoder, resultDecoder: voidResultDecoder },
|
|
1613
|
+
setLoadingStrategy: { name: "setLoadingStrategy", argsDecoder: setLoadingStrategyDecoder, resultDecoder: voidResultDecoder }
|
|
1608
1614
|
};
|
|
1609
1615
|
|
|
1610
1616
|
class PromiseWrapper {
|
|
@@ -2685,6 +2691,20 @@
|
|
|
2685
2691
|
}
|
|
2686
2692
|
return getData$3(this).config.windowDragMode;
|
|
2687
2693
|
}
|
|
2694
|
+
get loadingStrategy() {
|
|
2695
|
+
if (!isDesktop()) {
|
|
2696
|
+
console.warn("The workspace.loadingStrategy property is not supported in IO Connect Browser");
|
|
2697
|
+
}
|
|
2698
|
+
return getData$3(this).config.loadingStrategy;
|
|
2699
|
+
}
|
|
2700
|
+
async setLoadingStrategy(strategy) {
|
|
2701
|
+
if (!isDesktop()) {
|
|
2702
|
+
throw new Error("Not supported in IO Connect Browser");
|
|
2703
|
+
}
|
|
2704
|
+
const controller = getData$3(this).controller;
|
|
2705
|
+
await controller.setLoadingStrategy(this.id, strategy);
|
|
2706
|
+
await this.refreshReference();
|
|
2707
|
+
}
|
|
2688
2708
|
async removeChild(predicate) {
|
|
2689
2709
|
checkThrowCallback(predicate);
|
|
2690
2710
|
const child = this.children.find(predicate);
|
|
@@ -4364,6 +4384,10 @@
|
|
|
4364
4384
|
return {};
|
|
4365
4385
|
}
|
|
4366
4386
|
}
|
|
4387
|
+
async setLoadingStrategy(workspaceId, strategy) {
|
|
4388
|
+
await this.isOperationSupported(OPERATIONS.setLoadingStrategy.name);
|
|
4389
|
+
return this.bridge.send(OPERATIONS.setLoadingStrategy.name, { itemId: workspaceId, strategy });
|
|
4390
|
+
}
|
|
4367
4391
|
async isOperationSupported(operation) {
|
|
4368
4392
|
if (isDesktop()) {
|
|
4369
4393
|
return { isSupported: true };
|
|
@@ -4682,6 +4706,9 @@
|
|
|
4682
4706
|
getPlatformFrameId() {
|
|
4683
4707
|
return this.base.getPlatformFrameId();
|
|
4684
4708
|
}
|
|
4709
|
+
setLoadingStrategy(workspaceId, strategy) {
|
|
4710
|
+
return this.base.setLoadingStrategy(workspaceId, strategy);
|
|
4711
|
+
}
|
|
4685
4712
|
async handleCoreLocalSubscription(config, levelId) {
|
|
4686
4713
|
await this.bridge.createCoreEventSubscription();
|
|
4687
4714
|
config.scopeId = config.scopeId || levelId;
|
|
@@ -4941,7 +4968,7 @@
|
|
|
4941
4968
|
}
|
|
4942
4969
|
}
|
|
4943
4970
|
|
|
4944
|
-
var version = "3.5.
|
|
4971
|
+
var version = "3.5.6";
|
|
4945
4972
|
|
|
4946
4973
|
const composeAPI = (glue, ioc) => {
|
|
4947
4974
|
const controller = ioc.controller;
|