@openfin/node-adapter 34.78.73 → 34.78.74
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 +10 -6
- package/out/node-adapter-beta.d.ts +10 -6
- package/out/node-adapter-public.d.ts +10 -6
- package/out/node-adapter.d.ts +10 -6
- package/out/node-adapter.js +6 -11
- package/package.json +1 -1
@@ -5093,6 +5093,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
5093
5093
|
|
5094
5094
|
declare interface Environment {
|
5095
5095
|
initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
|
5096
|
+
applyLayoutSnapshot(fin: OpenFin.Fin<OpenFin.EntityType>, layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.InitLayoutOptions): Promise<void>;
|
5096
5097
|
createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
|
5097
5098
|
destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
|
5098
5099
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
@@ -8873,16 +8874,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
8873
8874
|
};
|
8874
8875
|
|
8875
8876
|
/**
|
8876
|
-
* Generated
|
8877
|
-
*
|
8877
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
8878
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
8878
8879
|
* @interface
|
8879
8880
|
*/
|
8880
8881
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
8881
8882
|
type: 'layout-initialized';
|
8882
8883
|
layoutIdentity: OpenFin.LayoutIdentity;
|
8883
|
-
ofViews:
|
8884
|
+
ofViews: {
|
8885
|
+
identity: OpenFin.Identity;
|
8884
8886
|
entityType: 'view';
|
8885
|
-
}
|
8887
|
+
}[];
|
8886
8888
|
};
|
8887
8889
|
|
8888
8890
|
/**
|
@@ -9250,9 +9252,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
9250
9252
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
9251
9253
|
type: 'layout-ready';
|
9252
9254
|
layoutIdentity: OpenFin.LayoutIdentity;
|
9253
|
-
views:
|
9255
|
+
views: {
|
9256
|
+
identity: OpenFin.Identity;
|
9254
9257
|
success: boolean;
|
9255
|
-
|
9258
|
+
error?: Error;
|
9259
|
+
}[];
|
9256
9260
|
};
|
9257
9261
|
|
9258
9262
|
/**
|
@@ -5093,6 +5093,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
5093
5093
|
|
5094
5094
|
declare interface Environment {
|
5095
5095
|
initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
|
5096
|
+
applyLayoutSnapshot(fin: OpenFin.Fin<OpenFin.EntityType>, layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.InitLayoutOptions): Promise<void>;
|
5096
5097
|
createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
|
5097
5098
|
destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
|
5098
5099
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
@@ -8873,16 +8874,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
8873
8874
|
};
|
8874
8875
|
|
8875
8876
|
/**
|
8876
|
-
* Generated
|
8877
|
-
*
|
8877
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
8878
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
8878
8879
|
* @interface
|
8879
8880
|
*/
|
8880
8881
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
8881
8882
|
type: 'layout-initialized';
|
8882
8883
|
layoutIdentity: OpenFin.LayoutIdentity;
|
8883
|
-
ofViews:
|
8884
|
+
ofViews: {
|
8885
|
+
identity: OpenFin.Identity;
|
8884
8886
|
entityType: 'view';
|
8885
|
-
}
|
8887
|
+
}[];
|
8886
8888
|
};
|
8887
8889
|
|
8888
8890
|
/**
|
@@ -9250,9 +9252,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
9250
9252
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
9251
9253
|
type: 'layout-ready';
|
9252
9254
|
layoutIdentity: OpenFin.LayoutIdentity;
|
9253
|
-
views:
|
9255
|
+
views: {
|
9256
|
+
identity: OpenFin.Identity;
|
9254
9257
|
success: boolean;
|
9255
|
-
|
9258
|
+
error?: Error;
|
9259
|
+
}[];
|
9256
9260
|
};
|
9257
9261
|
|
9258
9262
|
/**
|
@@ -5093,6 +5093,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
5093
5093
|
|
5094
5094
|
declare interface Environment {
|
5095
5095
|
initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
|
5096
|
+
applyLayoutSnapshot(fin: OpenFin.Fin<OpenFin.EntityType>, layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.InitLayoutOptions): Promise<void>;
|
5096
5097
|
createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
|
5097
5098
|
destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
|
5098
5099
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
@@ -8873,16 +8874,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
8873
8874
|
};
|
8874
8875
|
|
8875
8876
|
/**
|
8876
|
-
* Generated
|
8877
|
-
*
|
8877
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
8878
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
8878
8879
|
* @interface
|
8879
8880
|
*/
|
8880
8881
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
8881
8882
|
type: 'layout-initialized';
|
8882
8883
|
layoutIdentity: OpenFin.LayoutIdentity;
|
8883
|
-
ofViews:
|
8884
|
+
ofViews: {
|
8885
|
+
identity: OpenFin.Identity;
|
8884
8886
|
entityType: 'view';
|
8885
|
-
}
|
8887
|
+
}[];
|
8886
8888
|
};
|
8887
8889
|
|
8888
8890
|
/**
|
@@ -9250,9 +9252,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
9250
9252
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
9251
9253
|
type: 'layout-ready';
|
9252
9254
|
layoutIdentity: OpenFin.LayoutIdentity;
|
9253
|
-
views:
|
9255
|
+
views: {
|
9256
|
+
identity: OpenFin.Identity;
|
9254
9257
|
success: boolean;
|
9255
|
-
|
9258
|
+
error?: Error;
|
9259
|
+
}[];
|
9256
9260
|
};
|
9257
9261
|
|
9258
9262
|
/**
|
package/out/node-adapter.d.ts
CHANGED
@@ -5141,6 +5141,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
5141
5141
|
|
5142
5142
|
declare interface Environment {
|
5143
5143
|
initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
|
5144
|
+
applyLayoutSnapshot(fin: OpenFin.Fin<OpenFin.EntityType>, layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.InitLayoutOptions): Promise<void>;
|
5144
5145
|
createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
|
5145
5146
|
destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
|
5146
5147
|
resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
|
@@ -9002,16 +9003,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
9002
9003
|
};
|
9003
9004
|
|
9004
9005
|
/**
|
9005
|
-
* Generated
|
9006
|
-
*
|
9006
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
9007
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
9007
9008
|
* @interface
|
9008
9009
|
*/
|
9009
9010
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
9010
9011
|
type: 'layout-initialized';
|
9011
9012
|
layoutIdentity: OpenFin.LayoutIdentity;
|
9012
|
-
ofViews:
|
9013
|
+
ofViews: {
|
9014
|
+
identity: OpenFin.Identity;
|
9013
9015
|
entityType: 'view';
|
9014
|
-
}
|
9016
|
+
}[];
|
9015
9017
|
};
|
9016
9018
|
|
9017
9019
|
/**
|
@@ -9549,9 +9551,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
9549
9551
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
9550
9552
|
type: 'layout-ready';
|
9551
9553
|
layoutIdentity: OpenFin.LayoutIdentity;
|
9552
|
-
views:
|
9554
|
+
views: {
|
9555
|
+
identity: OpenFin.Identity;
|
9553
9556
|
success: boolean;
|
9554
|
-
|
9557
|
+
error?: Error;
|
9558
|
+
}[];
|
9555
9559
|
};
|
9556
9560
|
|
9557
9561
|
/**
|
package/out/node-adapter.js
CHANGED
@@ -12819,24 +12819,16 @@ class LayoutModule extends base_1$5.Base {
|
|
12819
12819
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
12820
12820
|
}
|
12821
12821
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
12822
|
+
// preload the client
|
12823
|
+
await this.fin.Platform.getCurrentSync().getClient();
|
12822
12824
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
12823
|
-
|
12824
|
-
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
12825
|
-
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
12826
|
-
await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
12825
|
+
await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
|
12827
12826
|
if (!options.layoutManagerOverride) {
|
12828
12827
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
12829
12828
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
12830
12829
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
12831
12830
|
return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
|
12832
12831
|
}
|
12833
|
-
// warn user if they do not call create() in the next 30 seconds
|
12834
|
-
setTimeout(() => {
|
12835
|
-
if (__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").size() === 0) {
|
12836
|
-
console.warn(`[Layout.init] Layout.init was called 30s ago, but no layouts have been created yet. Make sure you ` +
|
12837
|
-
`override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
|
12838
|
-
}
|
12839
|
-
}, 30000);
|
12840
12832
|
return this.wrapSync(this.fin.me.identity);
|
12841
12833
|
};
|
12842
12834
|
/**
|
@@ -17412,6 +17404,9 @@ function requireNodeEnv () {
|
|
17412
17404
|
async initLayoutManager() {
|
17413
17405
|
throw new Error('Method not implemented.');
|
17414
17406
|
}
|
17407
|
+
async applyLayoutSnapshot() {
|
17408
|
+
throw new Error('Method not implemented.');
|
17409
|
+
}
|
17415
17410
|
async createLayout() {
|
17416
17411
|
throw new Error('Method not implemented.');
|
17417
17412
|
}
|