@openfin/fdc3-api 40.82.20 → 40.82.21
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/fdc3-api-alpha.d.ts +86 -9
- package/out/fdc3-api-beta.d.ts +86 -9
- package/out/fdc3-api-public.d.ts +86 -9
- package/out/fdc3-api.d.ts +86 -9
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -3654,11 +3654,6 @@ declare type ConstWindowOptions = {
|
|
|
3654
3654
|
* @deprecated - use `icon` instead.
|
|
3655
3655
|
*/
|
|
3656
3656
|
taskbarIcon: string;
|
|
3657
|
-
/**
|
|
3658
|
-
* Specify a taskbar group for the window.
|
|
3659
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
3660
|
-
*/
|
|
3661
|
-
taskbarIconGroup: string;
|
|
3662
3657
|
/**
|
|
3663
3658
|
* @defaultValue "about:blank"
|
|
3664
3659
|
*
|
|
@@ -8132,10 +8127,7 @@ declare type LayoutIdentity = Identity_4 & {
|
|
|
8132
8127
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8133
8128
|
type: 'layout-initialized';
|
|
8134
8129
|
layoutIdentity: OpenFin.LayoutIdentity;
|
|
8135
|
-
ofViews:
|
|
8136
|
-
identity: OpenFin.Identity;
|
|
8137
|
-
entityType: 'view';
|
|
8138
|
-
}[];
|
|
8130
|
+
ofViews: OpenFin.ViewCreationResult[];
|
|
8139
8131
|
};
|
|
8140
8132
|
|
|
8141
8133
|
/**
|
|
@@ -9234,6 +9226,12 @@ declare type MutableWindowOptions = {
|
|
|
9234
9226
|
* Shows the window's icon in the taskbar.
|
|
9235
9227
|
*/
|
|
9236
9228
|
showTaskbarIcon: boolean;
|
|
9229
|
+
/**
|
|
9230
|
+
* Specify a taskbar group for the window.
|
|
9231
|
+
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
9232
|
+
* @remarks It's only updatable when `enableJumpList` is set to false.
|
|
9233
|
+
*/
|
|
9234
|
+
taskbarIconGroup: string;
|
|
9237
9235
|
interop: InteropConfig;
|
|
9238
9236
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9239
9237
|
/* Excluded from this release type: workspacePlatform */
|
|
@@ -9490,6 +9488,9 @@ declare namespace OpenFin {
|
|
|
9490
9488
|
ViewOptions,
|
|
9491
9489
|
ConstViewOptions,
|
|
9492
9490
|
ViewState,
|
|
9491
|
+
ViewCreationSuccess,
|
|
9492
|
+
ViewCreationFailure,
|
|
9493
|
+
ViewCreationResult,
|
|
9493
9494
|
Certificate,
|
|
9494
9495
|
HostContextChangedPayload,
|
|
9495
9496
|
ApplySnapshotOptions,
|
|
@@ -11291,6 +11292,45 @@ declare interface PlatformProvider {
|
|
|
11291
11292
|
* @returns {Promise<void>}
|
|
11292
11293
|
*/
|
|
11293
11294
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
11295
|
+
/**
|
|
11296
|
+
* @experimental
|
|
11297
|
+
*
|
|
11298
|
+
* This method is called to handle errors with view creation and initial navigation during layout creation.
|
|
11299
|
+
* Overriding this method enables catching the error and correcting behavior (ie navigating to an error page).
|
|
11300
|
+
* * To indicate that the error has been handled, view creation should be treated as successful return {identity: viewIdentity, success: true}.
|
|
11301
|
+
* * Not returning anything will cause the layout-initialized event to include the view as failed with the original error.
|
|
11302
|
+
* * Throwing an error will update the error on the event payload of layout-initialized to the thrown error.
|
|
11303
|
+
*
|
|
11304
|
+
* @param viewIdentity Identity of the view
|
|
11305
|
+
* @param error error thrown during a view creation
|
|
11306
|
+
* @returns {Promise<OpenFin.ViewCreationSuccess | void>}
|
|
11307
|
+
*
|
|
11308
|
+
* @example
|
|
11309
|
+
*
|
|
11310
|
+
* ```js
|
|
11311
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
11312
|
+
* class Override extends PlatformProvider {
|
|
11313
|
+
* async handleFailedViewCreation(viewIdentity, error) {
|
|
11314
|
+
* const view = fin.View.wrapSync(viewId);
|
|
11315
|
+
* try {
|
|
11316
|
+
* // navigate to an error page
|
|
11317
|
+
* await view.navigate('http://localhost:3000/errorPage.html');
|
|
11318
|
+
* // resolve a success result after redirecting to a error page
|
|
11319
|
+
* return {identity: viewIdentity, success: true};
|
|
11320
|
+
* } catch(e) {
|
|
11321
|
+
* // layout-initialized event will include this view with the error
|
|
11322
|
+
* throw error;
|
|
11323
|
+
* }
|
|
11324
|
+
* }
|
|
11325
|
+
* }
|
|
11326
|
+
* return new Override();
|
|
11327
|
+
* }
|
|
11328
|
+
*
|
|
11329
|
+
* fin.Platform.init({ overrideCallback });
|
|
11330
|
+
*
|
|
11331
|
+
* ```
|
|
11332
|
+
*/
|
|
11333
|
+
handleFailedViewCreation(viewIdentity: OpenFin.Identity, error: Error): Promise<OpenFin.ViewCreationSuccess | void>;
|
|
11294
11334
|
}
|
|
11295
11335
|
|
|
11296
11336
|
/**
|
|
@@ -16053,6 +16093,24 @@ declare type ViewContentCreationRule = BaseContentCreationRule & {
|
|
|
16053
16093
|
options?: Partial<ViewOptions>;
|
|
16054
16094
|
};
|
|
16055
16095
|
|
|
16096
|
+
/**
|
|
16097
|
+
* @interface
|
|
16098
|
+
*/
|
|
16099
|
+
declare type ViewCreationFailure = {
|
|
16100
|
+
/**
|
|
16101
|
+
* The identity of the created view
|
|
16102
|
+
*/
|
|
16103
|
+
identity: Identity_4;
|
|
16104
|
+
/**
|
|
16105
|
+
* Whether the view was created with errors
|
|
16106
|
+
*/
|
|
16107
|
+
success: false;
|
|
16108
|
+
/**
|
|
16109
|
+
* Error thrown during view creation
|
|
16110
|
+
*/
|
|
16111
|
+
error: Error;
|
|
16112
|
+
};
|
|
16113
|
+
|
|
16056
16114
|
/**
|
|
16057
16115
|
* The options object required by {@link View.ViewModule.create View.create}.
|
|
16058
16116
|
*
|
|
@@ -16068,6 +16126,25 @@ declare type ViewCreationOptions = Partial<ViewOptions> & {
|
|
|
16068
16126
|
|
|
16069
16127
|
declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCreationOptions;
|
|
16070
16128
|
|
|
16129
|
+
/**
|
|
16130
|
+
* A view creation state
|
|
16131
|
+
*/
|
|
16132
|
+
declare type ViewCreationResult = ViewCreationSuccess | ViewCreationFailure;
|
|
16133
|
+
|
|
16134
|
+
/**
|
|
16135
|
+
* @interface
|
|
16136
|
+
*/
|
|
16137
|
+
declare type ViewCreationSuccess = {
|
|
16138
|
+
/**
|
|
16139
|
+
* The identity of the created view
|
|
16140
|
+
*/
|
|
16141
|
+
identity: Identity_4;
|
|
16142
|
+
/**
|
|
16143
|
+
* Whether the view was created without errors
|
|
16144
|
+
*/
|
|
16145
|
+
success: true;
|
|
16146
|
+
};
|
|
16147
|
+
|
|
16071
16148
|
/**
|
|
16072
16149
|
* Generated when a window has a view detached from it.
|
|
16073
16150
|
* @remarks Will fire when a view is destroyed in which case `target` will be null.
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -3654,11 +3654,6 @@ declare type ConstWindowOptions = {
|
|
|
3654
3654
|
* @deprecated - use `icon` instead.
|
|
3655
3655
|
*/
|
|
3656
3656
|
taskbarIcon: string;
|
|
3657
|
-
/**
|
|
3658
|
-
* Specify a taskbar group for the window.
|
|
3659
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
3660
|
-
*/
|
|
3661
|
-
taskbarIconGroup: string;
|
|
3662
3657
|
/**
|
|
3663
3658
|
* @defaultValue "about:blank"
|
|
3664
3659
|
*
|
|
@@ -8132,10 +8127,7 @@ declare type LayoutIdentity = Identity_4 & {
|
|
|
8132
8127
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8133
8128
|
type: 'layout-initialized';
|
|
8134
8129
|
layoutIdentity: OpenFin.LayoutIdentity;
|
|
8135
|
-
ofViews:
|
|
8136
|
-
identity: OpenFin.Identity;
|
|
8137
|
-
entityType: 'view';
|
|
8138
|
-
}[];
|
|
8130
|
+
ofViews: OpenFin.ViewCreationResult[];
|
|
8139
8131
|
};
|
|
8140
8132
|
|
|
8141
8133
|
/**
|
|
@@ -9234,6 +9226,12 @@ declare type MutableWindowOptions = {
|
|
|
9234
9226
|
* Shows the window's icon in the taskbar.
|
|
9235
9227
|
*/
|
|
9236
9228
|
showTaskbarIcon: boolean;
|
|
9229
|
+
/**
|
|
9230
|
+
* Specify a taskbar group for the window.
|
|
9231
|
+
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
9232
|
+
* @remarks It's only updatable when `enableJumpList` is set to false.
|
|
9233
|
+
*/
|
|
9234
|
+
taskbarIconGroup: string;
|
|
9237
9235
|
interop: InteropConfig;
|
|
9238
9236
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9239
9237
|
/* Excluded from this release type: workspacePlatform */
|
|
@@ -9490,6 +9488,9 @@ declare namespace OpenFin {
|
|
|
9490
9488
|
ViewOptions,
|
|
9491
9489
|
ConstViewOptions,
|
|
9492
9490
|
ViewState,
|
|
9491
|
+
ViewCreationSuccess,
|
|
9492
|
+
ViewCreationFailure,
|
|
9493
|
+
ViewCreationResult,
|
|
9493
9494
|
Certificate,
|
|
9494
9495
|
HostContextChangedPayload,
|
|
9495
9496
|
ApplySnapshotOptions,
|
|
@@ -11291,6 +11292,45 @@ declare interface PlatformProvider {
|
|
|
11291
11292
|
* @returns {Promise<void>}
|
|
11292
11293
|
*/
|
|
11293
11294
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
11295
|
+
/**
|
|
11296
|
+
* @experimental
|
|
11297
|
+
*
|
|
11298
|
+
* This method is called to handle errors with view creation and initial navigation during layout creation.
|
|
11299
|
+
* Overriding this method enables catching the error and correcting behavior (ie navigating to an error page).
|
|
11300
|
+
* * To indicate that the error has been handled, view creation should be treated as successful return {identity: viewIdentity, success: true}.
|
|
11301
|
+
* * Not returning anything will cause the layout-initialized event to include the view as failed with the original error.
|
|
11302
|
+
* * Throwing an error will update the error on the event payload of layout-initialized to the thrown error.
|
|
11303
|
+
*
|
|
11304
|
+
* @param viewIdentity Identity of the view
|
|
11305
|
+
* @param error error thrown during a view creation
|
|
11306
|
+
* @returns {Promise<OpenFin.ViewCreationSuccess | void>}
|
|
11307
|
+
*
|
|
11308
|
+
* @example
|
|
11309
|
+
*
|
|
11310
|
+
* ```js
|
|
11311
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
11312
|
+
* class Override extends PlatformProvider {
|
|
11313
|
+
* async handleFailedViewCreation(viewIdentity, error) {
|
|
11314
|
+
* const view = fin.View.wrapSync(viewId);
|
|
11315
|
+
* try {
|
|
11316
|
+
* // navigate to an error page
|
|
11317
|
+
* await view.navigate('http://localhost:3000/errorPage.html');
|
|
11318
|
+
* // resolve a success result after redirecting to a error page
|
|
11319
|
+
* return {identity: viewIdentity, success: true};
|
|
11320
|
+
* } catch(e) {
|
|
11321
|
+
* // layout-initialized event will include this view with the error
|
|
11322
|
+
* throw error;
|
|
11323
|
+
* }
|
|
11324
|
+
* }
|
|
11325
|
+
* }
|
|
11326
|
+
* return new Override();
|
|
11327
|
+
* }
|
|
11328
|
+
*
|
|
11329
|
+
* fin.Platform.init({ overrideCallback });
|
|
11330
|
+
*
|
|
11331
|
+
* ```
|
|
11332
|
+
*/
|
|
11333
|
+
handleFailedViewCreation(viewIdentity: OpenFin.Identity, error: Error): Promise<OpenFin.ViewCreationSuccess | void>;
|
|
11294
11334
|
}
|
|
11295
11335
|
|
|
11296
11336
|
/**
|
|
@@ -16053,6 +16093,24 @@ declare type ViewContentCreationRule = BaseContentCreationRule & {
|
|
|
16053
16093
|
options?: Partial<ViewOptions>;
|
|
16054
16094
|
};
|
|
16055
16095
|
|
|
16096
|
+
/**
|
|
16097
|
+
* @interface
|
|
16098
|
+
*/
|
|
16099
|
+
declare type ViewCreationFailure = {
|
|
16100
|
+
/**
|
|
16101
|
+
* The identity of the created view
|
|
16102
|
+
*/
|
|
16103
|
+
identity: Identity_4;
|
|
16104
|
+
/**
|
|
16105
|
+
* Whether the view was created with errors
|
|
16106
|
+
*/
|
|
16107
|
+
success: false;
|
|
16108
|
+
/**
|
|
16109
|
+
* Error thrown during view creation
|
|
16110
|
+
*/
|
|
16111
|
+
error: Error;
|
|
16112
|
+
};
|
|
16113
|
+
|
|
16056
16114
|
/**
|
|
16057
16115
|
* The options object required by {@link View.ViewModule.create View.create}.
|
|
16058
16116
|
*
|
|
@@ -16068,6 +16126,25 @@ declare type ViewCreationOptions = Partial<ViewOptions> & {
|
|
|
16068
16126
|
|
|
16069
16127
|
declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCreationOptions;
|
|
16070
16128
|
|
|
16129
|
+
/**
|
|
16130
|
+
* A view creation state
|
|
16131
|
+
*/
|
|
16132
|
+
declare type ViewCreationResult = ViewCreationSuccess | ViewCreationFailure;
|
|
16133
|
+
|
|
16134
|
+
/**
|
|
16135
|
+
* @interface
|
|
16136
|
+
*/
|
|
16137
|
+
declare type ViewCreationSuccess = {
|
|
16138
|
+
/**
|
|
16139
|
+
* The identity of the created view
|
|
16140
|
+
*/
|
|
16141
|
+
identity: Identity_4;
|
|
16142
|
+
/**
|
|
16143
|
+
* Whether the view was created without errors
|
|
16144
|
+
*/
|
|
16145
|
+
success: true;
|
|
16146
|
+
};
|
|
16147
|
+
|
|
16071
16148
|
/**
|
|
16072
16149
|
* Generated when a window has a view detached from it.
|
|
16073
16150
|
* @remarks Will fire when a view is destroyed in which case `target` will be null.
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -3654,11 +3654,6 @@ declare type ConstWindowOptions = {
|
|
|
3654
3654
|
* @deprecated - use `icon` instead.
|
|
3655
3655
|
*/
|
|
3656
3656
|
taskbarIcon: string;
|
|
3657
|
-
/**
|
|
3658
|
-
* Specify a taskbar group for the window.
|
|
3659
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
3660
|
-
*/
|
|
3661
|
-
taskbarIconGroup: string;
|
|
3662
3657
|
/**
|
|
3663
3658
|
* @defaultValue "about:blank"
|
|
3664
3659
|
*
|
|
@@ -8132,10 +8127,7 @@ declare type LayoutIdentity = Identity_4 & {
|
|
|
8132
8127
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8133
8128
|
type: 'layout-initialized';
|
|
8134
8129
|
layoutIdentity: OpenFin.LayoutIdentity;
|
|
8135
|
-
ofViews:
|
|
8136
|
-
identity: OpenFin.Identity;
|
|
8137
|
-
entityType: 'view';
|
|
8138
|
-
}[];
|
|
8130
|
+
ofViews: OpenFin.ViewCreationResult[];
|
|
8139
8131
|
};
|
|
8140
8132
|
|
|
8141
8133
|
/**
|
|
@@ -9234,6 +9226,12 @@ declare type MutableWindowOptions = {
|
|
|
9234
9226
|
* Shows the window's icon in the taskbar.
|
|
9235
9227
|
*/
|
|
9236
9228
|
showTaskbarIcon: boolean;
|
|
9229
|
+
/**
|
|
9230
|
+
* Specify a taskbar group for the window.
|
|
9231
|
+
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
9232
|
+
* @remarks It's only updatable when `enableJumpList` is set to false.
|
|
9233
|
+
*/
|
|
9234
|
+
taskbarIconGroup: string;
|
|
9237
9235
|
interop: InteropConfig;
|
|
9238
9236
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9239
9237
|
/* Excluded from this release type: workspacePlatform */
|
|
@@ -9490,6 +9488,9 @@ declare namespace OpenFin {
|
|
|
9490
9488
|
ViewOptions,
|
|
9491
9489
|
ConstViewOptions,
|
|
9492
9490
|
ViewState,
|
|
9491
|
+
ViewCreationSuccess,
|
|
9492
|
+
ViewCreationFailure,
|
|
9493
|
+
ViewCreationResult,
|
|
9493
9494
|
Certificate,
|
|
9494
9495
|
HostContextChangedPayload,
|
|
9495
9496
|
ApplySnapshotOptions,
|
|
@@ -11291,6 +11292,45 @@ declare interface PlatformProvider {
|
|
|
11291
11292
|
* @returns {Promise<void>}
|
|
11292
11293
|
*/
|
|
11293
11294
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
11295
|
+
/**
|
|
11296
|
+
* @experimental
|
|
11297
|
+
*
|
|
11298
|
+
* This method is called to handle errors with view creation and initial navigation during layout creation.
|
|
11299
|
+
* Overriding this method enables catching the error and correcting behavior (ie navigating to an error page).
|
|
11300
|
+
* * To indicate that the error has been handled, view creation should be treated as successful return {identity: viewIdentity, success: true}.
|
|
11301
|
+
* * Not returning anything will cause the layout-initialized event to include the view as failed with the original error.
|
|
11302
|
+
* * Throwing an error will update the error on the event payload of layout-initialized to the thrown error.
|
|
11303
|
+
*
|
|
11304
|
+
* @param viewIdentity Identity of the view
|
|
11305
|
+
* @param error error thrown during a view creation
|
|
11306
|
+
* @returns {Promise<OpenFin.ViewCreationSuccess | void>}
|
|
11307
|
+
*
|
|
11308
|
+
* @example
|
|
11309
|
+
*
|
|
11310
|
+
* ```js
|
|
11311
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
11312
|
+
* class Override extends PlatformProvider {
|
|
11313
|
+
* async handleFailedViewCreation(viewIdentity, error) {
|
|
11314
|
+
* const view = fin.View.wrapSync(viewId);
|
|
11315
|
+
* try {
|
|
11316
|
+
* // navigate to an error page
|
|
11317
|
+
* await view.navigate('http://localhost:3000/errorPage.html');
|
|
11318
|
+
* // resolve a success result after redirecting to a error page
|
|
11319
|
+
* return {identity: viewIdentity, success: true};
|
|
11320
|
+
* } catch(e) {
|
|
11321
|
+
* // layout-initialized event will include this view with the error
|
|
11322
|
+
* throw error;
|
|
11323
|
+
* }
|
|
11324
|
+
* }
|
|
11325
|
+
* }
|
|
11326
|
+
* return new Override();
|
|
11327
|
+
* }
|
|
11328
|
+
*
|
|
11329
|
+
* fin.Platform.init({ overrideCallback });
|
|
11330
|
+
*
|
|
11331
|
+
* ```
|
|
11332
|
+
*/
|
|
11333
|
+
handleFailedViewCreation(viewIdentity: OpenFin.Identity, error: Error): Promise<OpenFin.ViewCreationSuccess | void>;
|
|
11294
11334
|
}
|
|
11295
11335
|
|
|
11296
11336
|
/**
|
|
@@ -16053,6 +16093,24 @@ declare type ViewContentCreationRule = BaseContentCreationRule & {
|
|
|
16053
16093
|
options?: Partial<ViewOptions>;
|
|
16054
16094
|
};
|
|
16055
16095
|
|
|
16096
|
+
/**
|
|
16097
|
+
* @interface
|
|
16098
|
+
*/
|
|
16099
|
+
declare type ViewCreationFailure = {
|
|
16100
|
+
/**
|
|
16101
|
+
* The identity of the created view
|
|
16102
|
+
*/
|
|
16103
|
+
identity: Identity_4;
|
|
16104
|
+
/**
|
|
16105
|
+
* Whether the view was created with errors
|
|
16106
|
+
*/
|
|
16107
|
+
success: false;
|
|
16108
|
+
/**
|
|
16109
|
+
* Error thrown during view creation
|
|
16110
|
+
*/
|
|
16111
|
+
error: Error;
|
|
16112
|
+
};
|
|
16113
|
+
|
|
16056
16114
|
/**
|
|
16057
16115
|
* The options object required by {@link View.ViewModule.create View.create}.
|
|
16058
16116
|
*
|
|
@@ -16068,6 +16126,25 @@ declare type ViewCreationOptions = Partial<ViewOptions> & {
|
|
|
16068
16126
|
|
|
16069
16127
|
declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCreationOptions;
|
|
16070
16128
|
|
|
16129
|
+
/**
|
|
16130
|
+
* A view creation state
|
|
16131
|
+
*/
|
|
16132
|
+
declare type ViewCreationResult = ViewCreationSuccess | ViewCreationFailure;
|
|
16133
|
+
|
|
16134
|
+
/**
|
|
16135
|
+
* @interface
|
|
16136
|
+
*/
|
|
16137
|
+
declare type ViewCreationSuccess = {
|
|
16138
|
+
/**
|
|
16139
|
+
* The identity of the created view
|
|
16140
|
+
*/
|
|
16141
|
+
identity: Identity_4;
|
|
16142
|
+
/**
|
|
16143
|
+
* Whether the view was created without errors
|
|
16144
|
+
*/
|
|
16145
|
+
success: true;
|
|
16146
|
+
};
|
|
16147
|
+
|
|
16071
16148
|
/**
|
|
16072
16149
|
* Generated when a window has a view detached from it.
|
|
16073
16150
|
* @remarks Will fire when a view is destroyed in which case `target` will be null.
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -3713,11 +3713,6 @@ declare type ConstWindowOptions = {
|
|
|
3713
3713
|
* @deprecated - use `icon` instead.
|
|
3714
3714
|
*/
|
|
3715
3715
|
taskbarIcon: string;
|
|
3716
|
-
/**
|
|
3717
|
-
* Specify a taskbar group for the window.
|
|
3718
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
3719
|
-
*/
|
|
3720
|
-
taskbarIconGroup: string;
|
|
3721
3716
|
/**
|
|
3722
3717
|
* @defaultValue "about:blank"
|
|
3723
3718
|
*
|
|
@@ -8258,10 +8253,7 @@ declare type LayoutIdentity = Identity_4 & {
|
|
|
8258
8253
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8259
8254
|
type: 'layout-initialized';
|
|
8260
8255
|
layoutIdentity: OpenFin.LayoutIdentity;
|
|
8261
|
-
ofViews:
|
|
8262
|
-
identity: OpenFin.Identity;
|
|
8263
|
-
entityType: 'view';
|
|
8264
|
-
}[];
|
|
8256
|
+
ofViews: OpenFin.ViewCreationResult[];
|
|
8265
8257
|
};
|
|
8266
8258
|
|
|
8267
8259
|
/**
|
|
@@ -9534,6 +9526,12 @@ declare type MutableWindowOptions = {
|
|
|
9534
9526
|
* Shows the window's icon in the taskbar.
|
|
9535
9527
|
*/
|
|
9536
9528
|
showTaskbarIcon: boolean;
|
|
9529
|
+
/**
|
|
9530
|
+
* Specify a taskbar group for the window.
|
|
9531
|
+
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
9532
|
+
* @remarks It's only updatable when `enableJumpList` is set to false.
|
|
9533
|
+
*/
|
|
9534
|
+
taskbarIconGroup: string;
|
|
9537
9535
|
interop: InteropConfig;
|
|
9538
9536
|
/**
|
|
9539
9537
|
* @internal
|
|
@@ -9808,6 +9806,9 @@ declare namespace OpenFin {
|
|
|
9808
9806
|
ViewOptions,
|
|
9809
9807
|
ConstViewOptions,
|
|
9810
9808
|
ViewState,
|
|
9809
|
+
ViewCreationSuccess,
|
|
9810
|
+
ViewCreationFailure,
|
|
9811
|
+
ViewCreationResult,
|
|
9811
9812
|
Certificate,
|
|
9812
9813
|
HostContextChangedPayload,
|
|
9813
9814
|
ApplySnapshotOptions,
|
|
@@ -11692,6 +11693,45 @@ declare interface PlatformProvider {
|
|
|
11692
11693
|
* @returns {Promise<void>}
|
|
11693
11694
|
*/
|
|
11694
11695
|
handleRunRequested({ manifest, userAppConfigArgs }: RunRequestedEvent): Promise<void>;
|
|
11696
|
+
/**
|
|
11697
|
+
* @experimental
|
|
11698
|
+
*
|
|
11699
|
+
* This method is called to handle errors with view creation and initial navigation during layout creation.
|
|
11700
|
+
* Overriding this method enables catching the error and correcting behavior (ie navigating to an error page).
|
|
11701
|
+
* * To indicate that the error has been handled, view creation should be treated as successful return {identity: viewIdentity, success: true}.
|
|
11702
|
+
* * Not returning anything will cause the layout-initialized event to include the view as failed with the original error.
|
|
11703
|
+
* * Throwing an error will update the error on the event payload of layout-initialized to the thrown error.
|
|
11704
|
+
*
|
|
11705
|
+
* @param viewIdentity Identity of the view
|
|
11706
|
+
* @param error error thrown during a view creation
|
|
11707
|
+
* @returns {Promise<OpenFin.ViewCreationSuccess | void>}
|
|
11708
|
+
*
|
|
11709
|
+
* @example
|
|
11710
|
+
*
|
|
11711
|
+
* ```js
|
|
11712
|
+
* const overrideCallback = (PlatformProvider) => {
|
|
11713
|
+
* class Override extends PlatformProvider {
|
|
11714
|
+
* async handleFailedViewCreation(viewIdentity, error) {
|
|
11715
|
+
* const view = fin.View.wrapSync(viewId);
|
|
11716
|
+
* try {
|
|
11717
|
+
* // navigate to an error page
|
|
11718
|
+
* await view.navigate('http://localhost:3000/errorPage.html');
|
|
11719
|
+
* // resolve a success result after redirecting to a error page
|
|
11720
|
+
* return {identity: viewIdentity, success: true};
|
|
11721
|
+
* } catch(e) {
|
|
11722
|
+
* // layout-initialized event will include this view with the error
|
|
11723
|
+
* throw error;
|
|
11724
|
+
* }
|
|
11725
|
+
* }
|
|
11726
|
+
* }
|
|
11727
|
+
* return new Override();
|
|
11728
|
+
* }
|
|
11729
|
+
*
|
|
11730
|
+
* fin.Platform.init({ overrideCallback });
|
|
11731
|
+
*
|
|
11732
|
+
* ```
|
|
11733
|
+
*/
|
|
11734
|
+
handleFailedViewCreation(viewIdentity: OpenFin.Identity, error: Error): Promise<OpenFin.ViewCreationSuccess | void>;
|
|
11695
11735
|
}
|
|
11696
11736
|
|
|
11697
11737
|
/**
|
|
@@ -16504,6 +16544,24 @@ declare type ViewContentCreationRule = BaseContentCreationRule & {
|
|
|
16504
16544
|
options?: Partial<ViewOptions>;
|
|
16505
16545
|
};
|
|
16506
16546
|
|
|
16547
|
+
/**
|
|
16548
|
+
* @interface
|
|
16549
|
+
*/
|
|
16550
|
+
declare type ViewCreationFailure = {
|
|
16551
|
+
/**
|
|
16552
|
+
* The identity of the created view
|
|
16553
|
+
*/
|
|
16554
|
+
identity: Identity_4;
|
|
16555
|
+
/**
|
|
16556
|
+
* Whether the view was created with errors
|
|
16557
|
+
*/
|
|
16558
|
+
success: false;
|
|
16559
|
+
/**
|
|
16560
|
+
* Error thrown during view creation
|
|
16561
|
+
*/
|
|
16562
|
+
error: Error;
|
|
16563
|
+
};
|
|
16564
|
+
|
|
16507
16565
|
/**
|
|
16508
16566
|
* The options object required by {@link View.ViewModule.create View.create}.
|
|
16509
16567
|
*
|
|
@@ -16519,6 +16577,25 @@ declare type ViewCreationOptions = Partial<ViewOptions> & {
|
|
|
16519
16577
|
|
|
16520
16578
|
declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCreationOptions;
|
|
16521
16579
|
|
|
16580
|
+
/**
|
|
16581
|
+
* A view creation state
|
|
16582
|
+
*/
|
|
16583
|
+
declare type ViewCreationResult = ViewCreationSuccess | ViewCreationFailure;
|
|
16584
|
+
|
|
16585
|
+
/**
|
|
16586
|
+
* @interface
|
|
16587
|
+
*/
|
|
16588
|
+
declare type ViewCreationSuccess = {
|
|
16589
|
+
/**
|
|
16590
|
+
* The identity of the created view
|
|
16591
|
+
*/
|
|
16592
|
+
identity: Identity_4;
|
|
16593
|
+
/**
|
|
16594
|
+
* Whether the view was created without errors
|
|
16595
|
+
*/
|
|
16596
|
+
success: true;
|
|
16597
|
+
};
|
|
16598
|
+
|
|
16522
16599
|
/**
|
|
16523
16600
|
* Generated when a window has a view detached from it.
|
|
16524
16601
|
* @remarks Will fire when a view is destroyed in which case `target` will be null.
|