@openfin/core 42.100.77 → 42.100.82
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/out/mock-alpha.d.ts +178 -27
- package/out/mock-beta.d.ts +178 -27
- package/out/mock-public.d.ts +178 -27
- package/out/stub.d.ts +178 -27
- package/out/stub.js +8 -8
- package/package.json +1 -1
package/out/stub.d.ts
CHANGED
@@ -88,6 +88,12 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
88
88
|
url: string;
|
89
89
|
};
|
90
90
|
|
91
|
+
declare type AnalyticsOnlyCalls = 'window-get-web-window' | 'layout-get-by-view-identity' | 'layout-get-stack-by-view' | 'layout-add-view' | 'layout-close-view' | 'view-get-parent-layout' | 'view-get-current-stack' | 'window-is-main-window' | 'window-get-parent-application' | 'window-get-parent-window' | 'window-create-window' | 'window-get-layout' | 'window-dispatch-popup-result' | `layout-controller-${string}`;
|
92
|
+
|
93
|
+
declare type AnalyticsProtocolMap = {
|
94
|
+
[k in AnalyticsOnlyCalls]: VoidCall;
|
95
|
+
};
|
96
|
+
|
91
97
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
92
98
|
|
93
99
|
declare type AnyStrategy = ChannelStrategy<any>;
|
@@ -3309,6 +3315,7 @@ declare type ClipboardApiPermissions = {
|
|
3309
3315
|
writeRtf: boolean;
|
3310
3316
|
readRtf: boolean;
|
3311
3317
|
write: boolean;
|
3318
|
+
setClipboard: boolean;
|
3312
3319
|
};
|
3313
3320
|
|
3314
3321
|
/**
|
@@ -5297,6 +5304,19 @@ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
|
|
5297
5304
|
type: 'extensions-install-failed';
|
5298
5305
|
};
|
5299
5306
|
|
5307
|
+
/**
|
5308
|
+
* these api calls are not implemented in the javscript api, only in the external adapter
|
5309
|
+
* If they don't exist in the external adapter they should be removed.
|
5310
|
+
*/
|
5311
|
+
declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
|
5312
|
+
|
5313
|
+
declare type ExternalAdapterOnlyCallsMap = {
|
5314
|
+
[k in ExternalAdapterOnlyCalls]: {
|
5315
|
+
request: any;
|
5316
|
+
response: any;
|
5317
|
+
};
|
5318
|
+
};
|
5319
|
+
|
5300
5320
|
/**
|
5301
5321
|
* An ExternalApplication object representing native language adapter connections to the runtime. Allows
|
5302
5322
|
* the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
|
@@ -9805,6 +9825,8 @@ declare namespace OpenFin_2 {
|
|
9805
9825
|
TabStack,
|
9806
9826
|
_Window as Window,
|
9807
9827
|
_WindowModule,
|
9828
|
+
Clipboard_2 as Clipboard,
|
9829
|
+
InterApplicationBus,
|
9808
9830
|
InteropClient,
|
9809
9831
|
InteropBroker,
|
9810
9832
|
InteropModule,
|
@@ -11916,6 +11938,10 @@ declare interface PlatformProvider {
|
|
11916
11938
|
* @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
|
11917
11939
|
*/
|
11918
11940
|
shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
|
11941
|
+
/**
|
11942
|
+
* Method that is called every time an error occurs when processing an action in the Platform Provider. It is meant to be overriden, as a means to debug Platform applications
|
11943
|
+
*/
|
11944
|
+
onError(action: string, error: Error, callerIdentity: OpenFin_2.Identity): void;
|
11919
11945
|
}
|
11920
11946
|
|
11921
11947
|
/**
|
@@ -12482,7 +12508,7 @@ declare type PropagatedWindowEvent<TargetTopic extends string> = PropagatedEvent
|
|
12482
12508
|
*/
|
12483
12509
|
declare type PropagatedWindowEventType = PropagatedEvent_3<string>['type'];
|
12484
12510
|
|
12485
|
-
declare
|
12511
|
+
declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap & {
|
12486
12512
|
'is-application-running': ApplicationIdentityCall<{}, boolean>;
|
12487
12513
|
'destroy-application': ApplicationIdentityCall<{
|
12488
12514
|
force: boolean;
|
@@ -12549,8 +12575,15 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12549
12575
|
downloadLocation: string;
|
12550
12576
|
};
|
12551
12577
|
response: void;
|
12578
|
+
secure: true;
|
12579
|
+
namespace: 'Application';
|
12580
|
+
apiPath: '.setFileDownloadLocation';
|
12581
|
+
};
|
12582
|
+
'get-file-download-location': ApplicationIdentityCall<{}, string> & {
|
12583
|
+
secure: true;
|
12584
|
+
namespace: 'Application';
|
12585
|
+
apiPath: '.getFileDownloadLocation';
|
12552
12586
|
};
|
12553
|
-
'get-file-download-location': ApplicationIdentityCall<{}, string>;
|
12554
12587
|
'show-tray-icon-popup-menu': {
|
12555
12588
|
request: OpenFin_2.Identity & {
|
12556
12589
|
options: OpenFin_2.ShowTrayIconPopupMenuOptions;
|
@@ -12590,44 +12623,79 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12590
12623
|
'clipboard-read-image': {
|
12591
12624
|
request: OpenFin_2.ReadImageClipboardRequest;
|
12592
12625
|
response: string;
|
12626
|
+
secure: true;
|
12627
|
+
apiPath: '.readImage';
|
12628
|
+
namespace: 'Clipboard';
|
12593
12629
|
};
|
12594
12630
|
'clipboard-read-text': {
|
12595
12631
|
request: {
|
12596
12632
|
type?: OpenFin_2.ClipboardSelectionType;
|
12597
12633
|
};
|
12598
12634
|
response: string;
|
12635
|
+
secure: true;
|
12636
|
+
apiPath: '.readText';
|
12637
|
+
namespace: 'Clipboard';
|
12599
12638
|
};
|
12600
12639
|
'clipboard-read-html': {
|
12601
12640
|
request: {
|
12602
12641
|
type?: OpenFin_2.ClipboardSelectionType;
|
12603
12642
|
};
|
12604
12643
|
response: string;
|
12644
|
+
secure: true;
|
12645
|
+
apiPath: '.readHtml';
|
12646
|
+
namespace: 'Clipboard';
|
12605
12647
|
};
|
12606
12648
|
'clipboard-read-rtf': {
|
12607
12649
|
request: {
|
12608
12650
|
type?: OpenFin_2.ClipboardSelectionType;
|
12609
12651
|
};
|
12610
12652
|
response: string;
|
12653
|
+
secure: true;
|
12654
|
+
apiPath: '.readRtf';
|
12655
|
+
namespace: 'Clipboard';
|
12611
12656
|
};
|
12612
12657
|
'clipboard-write-image': {
|
12613
12658
|
request: OpenFin_2.WriteImageClipboardRequest;
|
12614
12659
|
response: void;
|
12660
|
+
secure: true;
|
12661
|
+
apiPath: '.writeImage';
|
12662
|
+
namespace: 'Clipboard';
|
12615
12663
|
};
|
12616
12664
|
'clipboard-write': {
|
12617
12665
|
request: OpenFin_2.WriteAnyRequestType;
|
12618
12666
|
response: void;
|
12667
|
+
secure: true;
|
12668
|
+
apiPath: '.write';
|
12669
|
+
namespace: 'Clipboard';
|
12619
12670
|
};
|
12620
12671
|
'clipboard-write-text': {
|
12621
12672
|
request: OpenFin_2.WriteClipboardRequest;
|
12622
12673
|
response: void;
|
12674
|
+
secure: true;
|
12675
|
+
apiPath: '.writeText';
|
12676
|
+
namespace: 'Clipboard';
|
12677
|
+
foo: '';
|
12678
|
+
};
|
12679
|
+
'set-clipboard': {
|
12680
|
+
request: OpenFin_2.WriteClipboardRequest;
|
12681
|
+
response: void;
|
12682
|
+
secure: true;
|
12683
|
+
apiPath: '.setClipboard';
|
12684
|
+
namespace: 'Clipboard';
|
12623
12685
|
};
|
12624
12686
|
'clipboard-write-html': {
|
12625
12687
|
request: OpenFin_2.WriteClipboardRequest;
|
12626
12688
|
response: void;
|
12689
|
+
secure: true;
|
12690
|
+
apiPath: '.writeHtml';
|
12691
|
+
namespace: 'Clipboard';
|
12627
12692
|
};
|
12628
12693
|
'clipboard-write-rtf': {
|
12629
12694
|
request: OpenFin_2.WriteClipboardRequest;
|
12630
12695
|
response: void;
|
12696
|
+
secure: true;
|
12697
|
+
apiPath: '.writeRtf';
|
12698
|
+
namespace: 'Clipboard';
|
12631
12699
|
};
|
12632
12700
|
'get-view-window': IdentityCall<{}, OpenFin_2.Identity>;
|
12633
12701
|
'create-view': IdentityCall<OpenFin_2.ViewCreationOptions & {
|
@@ -12842,6 +12910,10 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12842
12910
|
request: any;
|
12843
12911
|
response: any;
|
12844
12912
|
};
|
12913
|
+
'send-channel-result': {
|
12914
|
+
request: any;
|
12915
|
+
response: any;
|
12916
|
+
};
|
12845
12917
|
'get-version': GetterCall<string>;
|
12846
12918
|
'clear-cache': ApiCall<OpenFin_2.ClearCacheOption, void>;
|
12847
12919
|
'delete-cache-request': VoidCall;
|
@@ -12891,7 +12963,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12891
12963
|
action: string;
|
12892
12964
|
runtimes: string[];
|
12893
12965
|
}>;
|
12894
|
-
'get-installed-apps': GetterCall<OpenFin_2.InstalledApps
|
12966
|
+
'get-installed-apps': GetterCall<OpenFin_2.InstalledApps> & {
|
12967
|
+
secure: true;
|
12968
|
+
apiPath: '.getInstalledApps';
|
12969
|
+
namespace: 'System';
|
12970
|
+
};
|
12895
12971
|
'view-log': ApiCall<OpenFin_2.GetLogRequestType, string>;
|
12896
12972
|
'get-machine-id': GetterCall<string>;
|
12897
12973
|
'get-min-log-level': GetterCall<OpenFin_2.LogLevel>;
|
@@ -12904,8 +12980,16 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12904
12980
|
'get-runtime-info': GetterCall<OpenFin_2.RuntimeInfo>;
|
12905
12981
|
'get-rvm-info': GetterCall<OpenFin_2.RVMInfo>;
|
12906
12982
|
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
12907
|
-
'get-os-info': GetterCall<OpenFin_2.OSInfo
|
12908
|
-
|
12983
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo> & {
|
12984
|
+
secure: true;
|
12985
|
+
apiPath: '.getOSInfo';
|
12986
|
+
namespace: 'System';
|
12987
|
+
};
|
12988
|
+
'launch-external-process': ApiCall<OpenFin_2.ExternalProcessRequestType, OpenFin_2.Identity> & {
|
12989
|
+
secure: true;
|
12990
|
+
apiPath: '.launchExternalProcess';
|
12991
|
+
namespace: 'System';
|
12992
|
+
};
|
12909
12993
|
'monitor-external-process': ApiCall<OpenFin_2.ExternalProcessInfo, OpenFin_2.Identity>;
|
12910
12994
|
'write-to-log': ApiCall<{
|
12911
12995
|
level: string;
|
@@ -12913,25 +12997,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12913
12997
|
}, void>;
|
12914
12998
|
'open-url-with-browser': ApiCall<{
|
12915
12999
|
url: string;
|
12916
|
-
}, void
|
12917
|
-
|
13000
|
+
}, void> & {
|
13001
|
+
secure: true;
|
13002
|
+
apiPath: '.openUrlWithBrowser';
|
13003
|
+
namespace: 'System';
|
13004
|
+
};
|
13005
|
+
'register-custom-protocol': ApiCall<OpenFin_2.CustomProtocolOptions, void> & {
|
13006
|
+
secure: true;
|
13007
|
+
apiPath: '.registerCustomProtocol';
|
13008
|
+
namespace: 'System';
|
13009
|
+
};
|
12918
13010
|
'unregister-custom-protocol': ApiCall<{
|
12919
13011
|
protocolName: string;
|
12920
|
-
}, void
|
13012
|
+
}, void> & {
|
13013
|
+
secure: true;
|
13014
|
+
apiPath: '.unregisterCustomProtocol';
|
13015
|
+
namespace: 'System';
|
13016
|
+
};
|
12921
13017
|
'get-custom-protocol-state': ApiCall<{
|
12922
13018
|
protocolName: string;
|
12923
|
-
}, OpenFin_2.CustomProtocolState
|
13019
|
+
}, OpenFin_2.CustomProtocolState> & {
|
13020
|
+
secure: true;
|
13021
|
+
apiPath: '.getCustomProtocolState';
|
13022
|
+
namespace: 'System';
|
13023
|
+
};
|
12924
13024
|
'release-external-process': ApiCall<{
|
12925
13025
|
uuid: string;
|
12926
13026
|
}, void>;
|
12927
13027
|
'show-developer-tools': ApiCall<OpenFin_2.Identity, void>;
|
12928
|
-
'terminate-external-process': ApiCall<OpenFin_2.TerminateExternalRequestType, void
|
13028
|
+
'terminate-external-process': ApiCall<OpenFin_2.TerminateExternalRequestType, void> & {
|
13029
|
+
secure: true;
|
13030
|
+
apiPath: '.terminateExternalProcess';
|
13031
|
+
namespace: 'System';
|
13032
|
+
};
|
12929
13033
|
'update-proxy': ApiCall<OpenFin_2.ProxyConfig, void>;
|
12930
13034
|
'download-asset': {
|
12931
13035
|
request: OpenFin_2.AppAssetInfo & {
|
12932
13036
|
downloadId: string;
|
12933
13037
|
};
|
12934
13038
|
response: void;
|
13039
|
+
secure: true;
|
13040
|
+
apiPath: '.downloadAsset';
|
13041
|
+
namespace: 'System';
|
12935
13042
|
};
|
12936
13043
|
'download-runtime': {
|
12937
13044
|
request: OpenFin_2.RuntimeDownloadOptions & {
|
@@ -12960,7 +13067,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12960
13067
|
rootKey: string;
|
12961
13068
|
subkey: string;
|
12962
13069
|
value: string;
|
12963
|
-
}, OpenFin_2.RegistryInfo
|
13070
|
+
}, OpenFin_2.RegistryInfo> & {
|
13071
|
+
secure: true;
|
13072
|
+
apiPath: '.readRegistryValue';
|
13073
|
+
namespace: 'System';
|
13074
|
+
};
|
12964
13075
|
'register-external-connection': ApiCall<{
|
12965
13076
|
uuid: string;
|
12966
13077
|
}, OpenFin_2.ExternalConnection>;
|
@@ -12994,25 +13105,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12994
13105
|
permissions: any;
|
12995
13106
|
};
|
12996
13107
|
response: OpenFin_2.NativeWindowIntegrationProviderAuthorization;
|
13108
|
+
secure: true;
|
13109
|
+
apiPath: '.enableNativeWindowIntegrationProvider';
|
13110
|
+
namespace: 'System';
|
12997
13111
|
};
|
12998
13112
|
'register-usage': ApiCall<OpenFin_2.RegisterUsageData, void>;
|
12999
13113
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
13000
13114
|
'system-update-process-logging-options': ApiCall<{
|
13001
13115
|
options: OpenFin_2.ProcessLoggingOptions;
|
13002
13116
|
}, void>;
|
13003
|
-
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings
|
13117
|
+
'get-domain-settings': ApiCall<void, OpenFin_2.DomainSettings> & {
|
13118
|
+
secure: true;
|
13119
|
+
apiPath: '.getDomainSettings';
|
13120
|
+
namespace: 'System';
|
13121
|
+
};
|
13004
13122
|
'serve-asset': ApiCall<{
|
13005
13123
|
options: OpenFin_2.ServeAssetOptions;
|
13006
|
-
}, OpenFin_2.ServedAssetInfo
|
13124
|
+
}, OpenFin_2.ServedAssetInfo> & {
|
13125
|
+
secure: true;
|
13126
|
+
apiPath: '.serveAsset';
|
13127
|
+
namespace: 'System';
|
13128
|
+
};
|
13007
13129
|
'set-domain-settings': ApiCall<{
|
13008
13130
|
domainSettings: OpenFin_2.DomainSettings;
|
13009
|
-
}, void
|
13131
|
+
}, void> & {
|
13132
|
+
secure: true;
|
13133
|
+
apiPath: '.setDomainSettings';
|
13134
|
+
namespace: 'System';
|
13135
|
+
};
|
13010
13136
|
'get-current-domain-settings': ApiCall<{
|
13011
13137
|
identity: OpenFin_2.Identity;
|
13012
|
-
}, OpenFin_2.ResolvedDomainSettings
|
13138
|
+
}, OpenFin_2.ResolvedDomainSettings> & {
|
13139
|
+
secure: true;
|
13140
|
+
apiPath: '.getCurrentDomainSettings';
|
13141
|
+
namespace: 'System';
|
13142
|
+
};
|
13013
13143
|
'resolve-domain-settings': ApiCall<{
|
13014
13144
|
url: string;
|
13015
|
-
}, OpenFin_2.ResolvedDomainSettings
|
13145
|
+
}, OpenFin_2.ResolvedDomainSettings> & {
|
13146
|
+
secure: true;
|
13147
|
+
apiPath: '.resolveDomainSettings';
|
13148
|
+
namespace: 'System';
|
13149
|
+
};
|
13016
13150
|
'system-register-shutdown-handler': VoidCall;
|
13017
13151
|
'get-permissions': GetterCall<any>;
|
13018
13152
|
'refresh-extensions': {
|
@@ -13198,15 +13332,27 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
13198
13332
|
};
|
13199
13333
|
response: void;
|
13200
13334
|
};
|
13201
|
-
|
13202
|
-
|
13203
|
-
|
13204
|
-
|
13205
|
-
|
13206
|
-
|
13207
|
-
|
13335
|
+
'subscribe-to-desktop-event': {
|
13336
|
+
request: {
|
13337
|
+
topic: string;
|
13338
|
+
type: string;
|
13339
|
+
uuid?: string;
|
13340
|
+
name?: string;
|
13341
|
+
timestamp?: number;
|
13342
|
+
};
|
13343
|
+
response: void;
|
13208
13344
|
};
|
13209
|
-
|
13345
|
+
'unsubscribe-to-desktop-event': {
|
13346
|
+
request: {
|
13347
|
+
topic: string;
|
13348
|
+
type: string;
|
13349
|
+
uuid?: string;
|
13350
|
+
name?: string;
|
13351
|
+
timestamp?: number;
|
13352
|
+
};
|
13353
|
+
response: void;
|
13354
|
+
};
|
13355
|
+
};
|
13210
13356
|
|
13211
13357
|
declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
|
13212
13358
|
|
@@ -13772,7 +13918,9 @@ declare type SecurityRealmEvent = BaseEvent_9 & {
|
|
13772
13918
|
|
13773
13919
|
declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
|
13774
13920
|
data: ProtocolMap[T]['response'];
|
13775
|
-
} & ProtocolMap[T]
|
13921
|
+
} & (ProtocolMap[T] extends {
|
13922
|
+
specialResponse: infer U;
|
13923
|
+
} ? U : {})>;
|
13776
13924
|
|
13777
13925
|
/**
|
13778
13926
|
* @interface
|
@@ -15791,7 +15939,6 @@ declare type SystemEventType = EventType_8;
|
|
15791
15939
|
*/
|
15792
15940
|
declare type SystemPermissions = {
|
15793
15941
|
getOSInfo: boolean;
|
15794
|
-
getAllExternalWindows: boolean;
|
15795
15942
|
setDomainSettings: boolean;
|
15796
15943
|
getDomainSettings: boolean;
|
15797
15944
|
getCurrentDomainSettings: boolean;
|
@@ -15831,6 +15978,10 @@ declare type SystemPermissions = {
|
|
15831
15978
|
enabled: boolean;
|
15832
15979
|
protocols: string[];
|
15833
15980
|
};
|
15981
|
+
getInstalledApps: boolean;
|
15982
|
+
downloadAsset: boolean;
|
15983
|
+
serveAsset: boolean;
|
15984
|
+
enableNativeWindowIntegrationProvider: boolean;
|
15834
15985
|
};
|
15835
15986
|
|
15836
15987
|
/**
|
@@ -16149,7 +16300,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
|
|
16149
16300
|
private connectRemote;
|
16150
16301
|
connectByPort(config: ExistingConnectConfig): Promise<void>;
|
16151
16302
|
private authorize;
|
16152
|
-
sendAction<T extends keyof ProtocolMap
|
16303
|
+
sendAction<T extends keyof ProtocolMap>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
|
16153
16304
|
protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: NodeJS.CallSite[]): void;
|
16154
16305
|
ferryAction(origData: any): Promise<Message<any>>;
|
16155
16306
|
registerMessageHandler(handler: MessageHandler): void;
|
package/out/stub.js
CHANGED
@@ -2505,7 +2505,7 @@ function requireInstance$2 () {
|
|
2505
2505
|
* @experimental
|
2506
2506
|
*/
|
2507
2507
|
this.getParentLayout = async () => {
|
2508
|
-
this.wire.sendAction('view-get-parent-layout'
|
2508
|
+
this.wire.sendAction('view-get-parent-layout').catch(() => {
|
2509
2509
|
// don't expose
|
2510
2510
|
});
|
2511
2511
|
return this.fin.Platform.Layout.getLayoutByViewIdentity(this.identity);
|
@@ -3967,7 +3967,7 @@ function requireInstance () {
|
|
3967
3967
|
super(wire, identity, 'window');
|
3968
3968
|
}
|
3969
3969
|
async createWindow(options) {
|
3970
|
-
this.wire.sendAction('window-create-window'
|
3970
|
+
this.wire.sendAction('window-create-window').catch((e) => {
|
3971
3971
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
3972
3972
|
});
|
3973
3973
|
const CONSTRUCTOR_CB_TOPIC = 'fire-constructor-callback';
|
@@ -4412,7 +4412,7 @@ function requireInstance () {
|
|
4412
4412
|
* @experimental
|
4413
4413
|
*/
|
4414
4414
|
async getLayout(layoutIdentity) {
|
4415
|
-
this.wire.sendAction('window-get-layout'
|
4415
|
+
this.wire.sendAction('window-get-layout').catch((e) => {
|
4416
4416
|
// don't expose
|
4417
4417
|
});
|
4418
4418
|
const opts = await this.getOptions();
|
@@ -4463,7 +4463,7 @@ function requireInstance () {
|
|
4463
4463
|
* ```
|
4464
4464
|
*/
|
4465
4465
|
getParentApplication() {
|
4466
|
-
this.wire.sendAction('window-get-parent-application'
|
4466
|
+
this.wire.sendAction('window-get-parent-application').catch((e) => {
|
4467
4467
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
4468
4468
|
});
|
4469
4469
|
return Promise.resolve(new application_1.Application(this.wire, this.identity));
|
@@ -4488,7 +4488,7 @@ function requireInstance () {
|
|
4488
4488
|
* ```
|
4489
4489
|
*/
|
4490
4490
|
getParentWindow() {
|
4491
|
-
this.wire.sendAction('window-get-parent-window'
|
4491
|
+
this.wire.sendAction('window-get-parent-window').catch((e) => {
|
4492
4492
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
4493
4493
|
});
|
4494
4494
|
return Promise.resolve(new application_1.Application(this.wire, this.identity)).then((app) => app.getWindow());
|
@@ -4594,7 +4594,7 @@ function requireInstance () {
|
|
4594
4594
|
* ```
|
4595
4595
|
*/
|
4596
4596
|
getWebWindow() {
|
4597
|
-
this.wire.sendAction('window-get-web-window'
|
4597
|
+
this.wire.sendAction('window-get-web-window').catch((e) => {
|
4598
4598
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
4599
4599
|
});
|
4600
4600
|
return this.wire.environment.getWebWindow(this.identity);
|
@@ -4610,7 +4610,7 @@ function requireInstance () {
|
|
4610
4610
|
* ```
|
4611
4611
|
*/
|
4612
4612
|
isMainWindow() {
|
4613
|
-
this.wire.sendAction('window-is-main-window'
|
4613
|
+
this.wire.sendAction('window-is-main-window').catch((e) => {
|
4614
4614
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
4615
4615
|
});
|
4616
4616
|
return this.me.uuid === this.me.name;
|
@@ -5131,7 +5131,7 @@ function requireInstance () {
|
|
5131
5131
|
* ```
|
5132
5132
|
*/
|
5133
5133
|
async dispatchPopupResult(data) {
|
5134
|
-
this.wire.sendAction('window-dispatch-popup-result'
|
5134
|
+
this.wire.sendAction('window-dispatch-popup-result').catch((e) => {
|
5135
5135
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
5136
5136
|
});
|
5137
5137
|
await this.wire.sendAction('dispatch-popup-result', { data, ...this.identity });
|