@openfin/node-adapter 34.78.43 → 34.78.47
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/node-adapter-alpha.d.ts +256 -90
- package/out/node-adapter-beta.d.ts +256 -90
- package/out/node-adapter-public.d.ts +256 -90
- package/out/node-adapter.d.ts +260 -94
- package/package.json +1 -1
@@ -43,6 +43,23 @@ declare type Accelerator = {
|
|
43
43
|
zoom: boolean;
|
44
44
|
};
|
45
45
|
|
46
|
+
/**
|
47
|
+
* @interface
|
48
|
+
*/
|
49
|
+
declare type AddLayoutInstanceOptions = {
|
50
|
+
container: HTMLDivElement;
|
51
|
+
layoutName: string;
|
52
|
+
layout: LayoutOptions;
|
53
|
+
};
|
54
|
+
|
55
|
+
/**
|
56
|
+
* @interface
|
57
|
+
*/
|
58
|
+
declare type AddViewOptions = CreateViewTarget & {
|
59
|
+
options: ViewState;
|
60
|
+
targetView?: Identity_5;
|
61
|
+
};
|
62
|
+
|
46
63
|
/**
|
47
64
|
* @interface
|
48
65
|
*/
|
@@ -4281,6 +4298,18 @@ declare type CreatedEvent = BaseViewEvent & {
|
|
4281
4298
|
type: 'created';
|
4282
4299
|
};
|
4283
4300
|
|
4301
|
+
/**
|
4302
|
+
* @interface
|
4303
|
+
*/
|
4304
|
+
declare type CreateLayoutOptions = {
|
4305
|
+
/**
|
4306
|
+
* @experimental
|
4307
|
+
*
|
4308
|
+
* @returns
|
4309
|
+
*/
|
4310
|
+
layoutManagerOverride: () => any;
|
4311
|
+
};
|
4312
|
+
|
4284
4313
|
/**
|
4285
4314
|
* @interface
|
4286
4315
|
*/
|
@@ -4399,6 +4428,13 @@ declare type DestroyedEvent = BaseViewEvent & {
|
|
4399
4428
|
type: 'destroyed';
|
4400
4429
|
};
|
4401
4430
|
|
4431
|
+
/**
|
4432
|
+
* @interface
|
4433
|
+
*/
|
4434
|
+
declare type DestroyLayoutOptions = {
|
4435
|
+
layoutName: string;
|
4436
|
+
};
|
4437
|
+
|
4402
4438
|
/**
|
4403
4439
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
4404
4440
|
* @interface
|
@@ -8393,6 +8429,17 @@ declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes
|
|
8393
8429
|
|
8394
8430
|
declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'root'>;
|
8395
8431
|
|
8432
|
+
/**
|
8433
|
+
* @interface
|
8434
|
+
*/
|
8435
|
+
declare type LayoutIdentity = Identity_5 & {
|
8436
|
+
/**
|
8437
|
+
* The name of the layout an action should be targeted to. When not provided,
|
8438
|
+
* OpenFin attempts to resolve the instance via visibility checks.
|
8439
|
+
*/
|
8440
|
+
layoutName?: string;
|
8441
|
+
};
|
8442
|
+
|
8396
8443
|
/**
|
8397
8444
|
* Generated when a window and all of its layout's views have either finished or failed navigation.
|
8398
8445
|
* @interface
|
@@ -8404,6 +8451,25 @@ declare type LayoutInitializedEvent = BaseWindowEvent & {
|
|
8404
8451
|
})[];
|
8405
8452
|
};
|
8406
8453
|
|
8454
|
+
/**
|
8455
|
+
* @interface @experimental
|
8456
|
+
*
|
8457
|
+
* Responsible for handling all layout management and renderering
|
8458
|
+
*/
|
8459
|
+
declare type LayoutInstance = {
|
8460
|
+
getFrameSnapshot: () => Promise<LayoutOptions>;
|
8461
|
+
addView: (payload: AddViewOptions) => Promise<View_2>;
|
8462
|
+
closeView: (viewIdentity: Identity_5) => Promise<void>;
|
8463
|
+
removeView: (viewConfig: Identity_5 | ViewState) => Promise<View_2>;
|
8464
|
+
replaceView: (payload: ReplaceViewOptions) => Promise<View_2>;
|
8465
|
+
getViews: () => LayoutComponent[];
|
8466
|
+
getCurrentViews: () => Identity_5[];
|
8467
|
+
startReplaceLayout: (payload: ReplaceLayoutOptions) => Promise<void>;
|
8468
|
+
applyPreset: (payload: PresetLayoutOptions_3) => void;
|
8469
|
+
isVisible: () => boolean;
|
8470
|
+
destroy: () => void;
|
8471
|
+
};
|
8472
|
+
|
8407
8473
|
/**
|
8408
8474
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
8409
8475
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
@@ -8427,95 +8493,64 @@ declare type LayoutItemConfig = {
|
|
8427
8493
|
title?: string;
|
8428
8494
|
};
|
8429
8495
|
|
8430
|
-
|
8431
|
-
|
8432
|
-
|
8433
|
-
|
8434
|
-
private readonly layoutContentCache;
|
8435
|
-
private client;
|
8436
|
-
private container;
|
8437
|
-
private containerResizeObserver;
|
8438
|
-
private viewsResizeObserver;
|
8439
|
-
private dragProxy;
|
8440
|
-
private isDragging;
|
8441
|
-
private resizing;
|
8442
|
-
layout: GoldenLayout.GoldenLayout;
|
8443
|
-
private layoutConfigToRestore?;
|
8444
|
-
readonly ofWindow: OpenFin.Window;
|
8445
|
-
readonly platform: Platform_2;
|
8446
|
-
private showBackgroundImages;
|
8447
|
-
private showFavicons;
|
8448
|
-
private defaultFaviconUrl;
|
8449
|
-
private showViewsOnWindowResize?;
|
8450
|
-
private showViewsOnSplitterDrag?;
|
8451
|
-
private showViewsOnTabDrag?;
|
8452
|
-
private dropzonePreview?;
|
8453
|
-
private lastItemDestroyed?;
|
8454
|
-
private viewsSubscribedTo;
|
8455
|
-
constructor(splitterController: SplitterController, tabDragController: TabDragController, layoutContentCache: LayoutContentCache);
|
8456
|
-
/* Excluded from this release type: getClient */
|
8457
|
-
initManager: () => Promise<void>;
|
8458
|
-
createLayout: (layout: GoldenLayout.Config, container: HTMLElement) => Promise<void>;
|
8459
|
-
private setContainer;
|
8460
|
-
private setupDragDropRegions;
|
8461
|
-
private replaceLayout;
|
8462
|
-
private onViewDetached;
|
8463
|
-
private setupLayoutListeners;
|
8464
|
-
private onLayoutInit;
|
8465
|
-
private registerViewComponent;
|
8466
|
-
private setupWindowListeners;
|
8467
|
-
private setupResizeObservers;
|
8496
|
+
/**
|
8497
|
+
* @interface @experimental
|
8498
|
+
*/
|
8499
|
+
declare interface LayoutManager<T extends LayoutSnapshot = LayoutSnapshot> {
|
8468
8500
|
/**
|
8469
|
-
*
|
8470
|
-
*
|
8501
|
+
* @experimental
|
8502
|
+
*
|
8503
|
+
* Must be overridden when working with multiple layouts
|
8504
|
+
*
|
8505
|
+
* Hook called during fin.Platform.Layout.init() call, to inform derived classes
|
8506
|
+
* when a snapshot is being applied to launch a platform window. Use this hook to set the
|
8507
|
+
* local state and ensure you call fin.Platform.Layout.create() on every layout in snapshot.layouts
|
8508
|
+
*
|
8509
|
+
* When using custom data to the app manifest snapshot.windows.layoutSnapshot key, this data will
|
8510
|
+
* be included in the snapshot type T and should align with your component state T.
|
8511
|
+
*
|
8512
|
+
* TODO: detect if layoutManager override was set and this was not overridden somehow to warn?
|
8513
|
+
* @param snapshot
|
8514
|
+
* @returns
|
8471
8515
|
*/
|
8472
|
-
|
8473
|
-
|
8474
|
-
|
8475
|
-
|
8476
|
-
|
8477
|
-
|
8478
|
-
|
8479
|
-
|
8480
|
-
|
8481
|
-
|
8482
|
-
|
8483
|
-
|
8484
|
-
|
8485
|
-
|
8486
|
-
|
8487
|
-
|
8488
|
-
|
8489
|
-
|
8490
|
-
|
8491
|
-
|
8492
|
-
|
8493
|
-
|
8494
|
-
|
8495
|
-
|
8496
|
-
|
8497
|
-
|
8498
|
-
|
8499
|
-
|
8500
|
-
|
8501
|
-
|
8502
|
-
|
8503
|
-
|
8504
|
-
|
8505
|
-
|
8506
|
-
|
8507
|
-
|
8508
|
-
|
8509
|
-
|
8510
|
-
private hideAllViews;
|
8511
|
-
private showViews;
|
8512
|
-
private initializeLayoutViews;
|
8513
|
-
private createResizableView;
|
8514
|
-
private attachView;
|
8515
|
-
private createAndAttachView;
|
8516
|
-
private setupViewEvents;
|
8517
|
-
private dispatchLayoutEvent;
|
8518
|
-
private setComponentState;
|
8516
|
+
applyLayoutSnapshot: (snapshot: T) => Promise<void>;
|
8517
|
+
/**
|
8518
|
+
* @experimental
|
8519
|
+
*
|
8520
|
+
* Must be overridden when working with multiple layouts
|
8521
|
+
*
|
8522
|
+
* Hook for allowing OpenFin to show a given layout. It's recommended to enumerate your layout containers
|
8523
|
+
* and find the one matching layoutIdentity.layoutName and show that container and hide the others.
|
8524
|
+
* @param layoutIdentity
|
8525
|
+
* @returns
|
8526
|
+
*/
|
8527
|
+
showLayout: ({ layoutName }: LayoutIdentity) => Promise<void>;
|
8528
|
+
/**
|
8529
|
+
* @experimental
|
8530
|
+
*
|
8531
|
+
* @returns T
|
8532
|
+
*/
|
8533
|
+
getLayoutSnapshot: () => Promise<T>;
|
8534
|
+
/**
|
8535
|
+
* @experimental
|
8536
|
+
*
|
8537
|
+
* @param param0
|
8538
|
+
* @returns
|
8539
|
+
*/
|
8540
|
+
resolveLayout: ({ layoutName }: LayoutIdentity) => LayoutInstance;
|
8541
|
+
/**
|
8542
|
+
* @experimental
|
8543
|
+
*
|
8544
|
+
* Returns a LayoutInstance if one exists with the name layoutIdentity.layoutName.
|
8545
|
+
* Throws if it does not exist.
|
8546
|
+
* @param layoutIdentity
|
8547
|
+
* @returns
|
8548
|
+
*/
|
8549
|
+
getLayoutByName: (layoutName: string) => LayoutInstance;
|
8550
|
+
/**
|
8551
|
+
* @experimental
|
8552
|
+
*/
|
8553
|
+
getLayouts(): Record<string, LayoutInstance>;
|
8519
8554
|
}
|
8520
8555
|
|
8521
8556
|
/**
|
@@ -8749,6 +8784,13 @@ declare type LayoutRow = LayoutItemConfig & {
|
|
8749
8784
|
type: 'row';
|
8750
8785
|
};
|
8751
8786
|
|
8787
|
+
/**
|
8788
|
+
* @interface
|
8789
|
+
*/
|
8790
|
+
declare type LayoutSnapshot = {
|
8791
|
+
layouts: Record<string, LayoutOptions>;
|
8792
|
+
};
|
8793
|
+
|
8752
8794
|
/**
|
8753
8795
|
* @interface
|
8754
8796
|
*/
|
@@ -9627,11 +9669,14 @@ declare namespace OpenFin {
|
|
9627
9669
|
AddViewToStackOptions,
|
9628
9670
|
CreateViewTarget,
|
9629
9671
|
CreateViewPayload,
|
9672
|
+
AddViewOptions,
|
9630
9673
|
ReplaceViewPayload,
|
9674
|
+
ReplaceViewOptions,
|
9631
9675
|
CloseViewPayload,
|
9632
9676
|
FetchManifestPayload,
|
9633
9677
|
ReplaceLayoutOpts,
|
9634
9678
|
ReplaceLayoutPayload,
|
9679
|
+
ReplaceLayoutOptions,
|
9635
9680
|
SetWindowContextPayload,
|
9636
9681
|
LaunchIntoPlatformPayload,
|
9637
9682
|
GetWindowContextPayload,
|
@@ -9788,8 +9833,15 @@ declare namespace OpenFin {
|
|
9788
9833
|
ApplicationWindowInfo_2 as ApplicationWindowInfo,
|
9789
9834
|
WindowDetail,
|
9790
9835
|
LayoutPresetType,
|
9836
|
+
LayoutIdentity,
|
9837
|
+
LayoutSnapshot,
|
9791
9838
|
InitLayoutOptions_3 as InitLayoutOptions,
|
9792
|
-
|
9839
|
+
LayoutInstance,
|
9840
|
+
LayoutManager,
|
9841
|
+
AddLayoutInstanceOptions,
|
9842
|
+
CreateLayoutOptions,
|
9843
|
+
DestroyLayoutOptions,
|
9844
|
+
PresetLayoutOptions_3 as PresetLayoutOptions,
|
9793
9845
|
ResultBehavior,
|
9794
9846
|
PopupBaseBehavior,
|
9795
9847
|
PopupResultBehavior,
|
@@ -9843,6 +9895,103 @@ declare namespace OpenFin {
|
|
9843
9895
|
}
|
9844
9896
|
export default OpenFin;
|
9845
9897
|
|
9898
|
+
declare class OpenFinLayout implements OpenFin.LayoutInstance {
|
9899
|
+
#private;
|
9900
|
+
private readonly splitterController;
|
9901
|
+
private readonly tabDragController;
|
9902
|
+
private readonly layoutContentCache;
|
9903
|
+
private client;
|
9904
|
+
private container;
|
9905
|
+
private containerResizeObserver;
|
9906
|
+
private viewsResizeObserver;
|
9907
|
+
private dragProxy;
|
9908
|
+
private isDragging;
|
9909
|
+
private resizing;
|
9910
|
+
layout: GoldenLayout.GoldenLayout;
|
9911
|
+
private layoutConfigToRestore?;
|
9912
|
+
readonly ofWindow: OpenFin.Window;
|
9913
|
+
readonly platform: Platform_2;
|
9914
|
+
private showBackgroundImages;
|
9915
|
+
private showFavicons;
|
9916
|
+
private defaultFaviconUrl;
|
9917
|
+
private showViewsOnWindowResize?;
|
9918
|
+
private showViewsOnSplitterDrag?;
|
9919
|
+
private showViewsOnTabDrag?;
|
9920
|
+
private dropzonePreview?;
|
9921
|
+
private lastItemDestroyed?;
|
9922
|
+
private viewsSubscribedTo;
|
9923
|
+
constructor(splitterController: SplitterController, tabDragController: TabDragController, layoutContentCache: LayoutContentCache);
|
9924
|
+
getViews: () => OpenFin.LayoutComponent[];
|
9925
|
+
startReplaceLayout: ({ layout }: {
|
9926
|
+
layout: GoldenLayout.Config;
|
9927
|
+
}) => Promise<void>;
|
9928
|
+
applyPreset: (payload: PresetLayoutOptions_2) => void;
|
9929
|
+
isVisible: () => boolean;
|
9930
|
+
destroy: () => void;
|
9931
|
+
/* Excluded from this release type: getClient */
|
9932
|
+
initManager: () => Promise<void>;
|
9933
|
+
createLayout: (layout: GoldenLayout.Config, container: HTMLElement) => Promise<void>;
|
9934
|
+
private setContainer;
|
9935
|
+
private setupDragDropRegions;
|
9936
|
+
private replaceLayout;
|
9937
|
+
private onViewDetached;
|
9938
|
+
private setupLayoutListeners;
|
9939
|
+
private onLayoutInit;
|
9940
|
+
private registerViewComponent;
|
9941
|
+
private setupWindowListeners;
|
9942
|
+
private setupResizeObservers;
|
9943
|
+
/**
|
9944
|
+
* Shows/hides a view depending on use case (used by browser)
|
9945
|
+
* @ignore
|
9946
|
+
*/
|
9947
|
+
private updateViewVisibility;
|
9948
|
+
private onStackCreated;
|
9949
|
+
private onTabCreated;
|
9950
|
+
private onTabMouseUp;
|
9951
|
+
private replaceCloseTabButton;
|
9952
|
+
onCloseTabButtonClick: (tab: GoldenLayout.Tab) => Promise<void>;
|
9953
|
+
addFaviconToTab: (tab: GoldenLayout.Tab, eventIcons: string[]) => void;
|
9954
|
+
onPopoutClick: (stack: GoldenLayout.ContentItem) => void;
|
9955
|
+
onStackCloseClick: (stack: GoldenLayout.ContentItem) => void;
|
9956
|
+
private updateButtonDisplay;
|
9957
|
+
private onItemCreated;
|
9958
|
+
private observeSplitters;
|
9959
|
+
handleOutOfWindowDrop: (e: {
|
9960
|
+
screenY: number;
|
9961
|
+
screenX: number;
|
9962
|
+
}, parentTab: GoldenLayout.Tab, dimensions: {
|
9963
|
+
width: any;
|
9964
|
+
height: any;
|
9965
|
+
}) => Promise<void>;
|
9966
|
+
private onTabDragStart;
|
9967
|
+
private setBackgroundImage;
|
9968
|
+
private setBackgroundImages;
|
9969
|
+
getFrameSnapshot: () => Promise<GoldenLayout.Config>;
|
9970
|
+
getCurrentViews: () => OpenFin.Identity[];
|
9971
|
+
addView: ({ options: viewConfig, targetView, location }: OpenFin.AddViewOptions) => Promise<View_4>;
|
9972
|
+
replaceView: ({ viewToReplace, newView }: OpenFin.ReplaceViewOptions) => Promise<View_4>;
|
9973
|
+
removeView: (viewConfig: OpenFin.Identity | OpenFin.ViewState) => Promise<View_4>;
|
9974
|
+
closeView: (viewIdentity: OpenFin.Identity) => Promise<void>;
|
9975
|
+
private createChannelConnections;
|
9976
|
+
getViewComponent: ({ name }: {
|
9977
|
+
name: string;
|
9978
|
+
}) => ViewComponent | undefined;
|
9979
|
+
getViewComponents: () => ViewComponent[];
|
9980
|
+
private hideHighlight;
|
9981
|
+
getOfViewFromComponentState: ({ name }: {
|
9982
|
+
name: string;
|
9983
|
+
}) => View_4;
|
9984
|
+
private hideAllViews;
|
9985
|
+
private showViews;
|
9986
|
+
private initializeLayoutViews;
|
9987
|
+
private createResizableView;
|
9988
|
+
private attachView;
|
9989
|
+
private createAndAttachView;
|
9990
|
+
private setupViewEvents;
|
9991
|
+
private dispatchLayoutEvent;
|
9992
|
+
private setComponentState;
|
9993
|
+
}
|
9994
|
+
|
9846
9995
|
declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
9847
9996
|
|
9848
9997
|
declare type OverlapsOnlyIfMatching<T, U> = {
|
@@ -11571,10 +11720,12 @@ declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent &
|
|
11571
11720
|
|
11572
11721
|
declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
|
11573
11722
|
|
11723
|
+
declare type PresetLayoutOptions_2 = OpenFin.PresetLayoutOptions;
|
11724
|
+
|
11574
11725
|
/**
|
11575
11726
|
* @interface
|
11576
11727
|
*/
|
11577
|
-
declare type
|
11728
|
+
declare type PresetLayoutOptions_3 = {
|
11578
11729
|
/**
|
11579
11730
|
* Which preset layout arrangement to use.
|
11580
11731
|
* The preset options are `columns`, `grid`, `rows`, and `tabs`.
|
@@ -12242,6 +12393,13 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
12242
12393
|
/**
|
12243
12394
|
* @interface
|
12244
12395
|
*/
|
12396
|
+
declare type ReplaceLayoutOptions = ReplaceLayoutOpts;
|
12397
|
+
|
12398
|
+
/**
|
12399
|
+
* @interface
|
12400
|
+
*
|
12401
|
+
* @deprecated use ReplaceLayoutOptions instead
|
12402
|
+
*/
|
12245
12403
|
declare type ReplaceLayoutOpts = {
|
12246
12404
|
/**
|
12247
12405
|
* Layout config to be applied.
|
@@ -12256,13 +12414,21 @@ declare type ReplaceLayoutPayload = {
|
|
12256
12414
|
/**
|
12257
12415
|
* Object containing the layout to be applied.
|
12258
12416
|
*/
|
12259
|
-
opts:
|
12417
|
+
opts: ReplaceLayoutOptions;
|
12260
12418
|
/**
|
12261
12419
|
* Identity of the window whose layout will be replace.
|
12262
12420
|
*/
|
12263
12421
|
target: Identity_5;
|
12264
12422
|
};
|
12265
12423
|
|
12424
|
+
/**
|
12425
|
+
* @interface
|
12426
|
+
*/
|
12427
|
+
declare type ReplaceViewOptions = {
|
12428
|
+
viewToReplace: Identity_5;
|
12429
|
+
newView: ViewState;
|
12430
|
+
};
|
12431
|
+
|
12266
12432
|
/**
|
12267
12433
|
* @interface
|
12268
12434
|
*/
|