@openfin/core 45.100.29 → 45.100.30

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.
@@ -4434,6 +4434,27 @@ declare type CreateLayoutOptions = {
4434
4434
  * @default 'default'
4435
4435
  */
4436
4436
  multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4437
+ /**
4438
+ * Callback invoked for each stack when its header controls area is rendered.
4439
+ * The callback receives the `.lm_controls` DOM element and a context object
4440
+ * with a {@link HeaderControlsContext.getStack | getStack()} async getter.
4441
+ * Use this to inject custom controls (e.g. search buttons) into stack headers.
4442
+ *
4443
+ * Optionally return a cleanup function that will be called when the stack is destroyed.
4444
+ *
4445
+ * Custom controls are not serialized into snapshots since callbacks are not
4446
+ * serializable. The callback is re-invoked when layouts are restored.
4447
+ *
4448
+ * **NOTE**: This feature is currently only supported in OpenFin Runtime environments.
4449
+ *
4450
+ * @param controlsElement The `.lm_controls` DOM element for the stack header.
4451
+ * @param context Context object providing an async {@link HeaderControlsContext.getStack | getStack()} to
4452
+ * retrieve the {@link TabStack} instance.
4453
+ * @returns A callback to be called when the rendered element needs to be cleaned up.
4454
+ *
4455
+ * @experimental
4456
+ */
4457
+ renderCustomHeaderControls?: (controlsElement: HTMLElement, context: HeaderControlsContext) => (() => void) | void;
4437
4458
  };
4438
4459
 
4439
4460
  /**
@@ -6256,6 +6277,13 @@ declare type GpuInfo = {
6256
6277
  name: string;
6257
6278
  };
6258
6279
 
6280
+ /**
6281
+ * @interface @experimental
6282
+ */
6283
+ declare type HeaderControlsContext = {
6284
+ getStack: () => Promise<TabStack>;
6285
+ };
6286
+
6259
6287
  /**
6260
6288
  * Generated when a View is hidden.
6261
6289
  *
@@ -10445,6 +10473,7 @@ declare namespace OpenFin_2 {
10445
10473
  LayoutManagerConstructor,
10446
10474
  LayoutManagerOverride,
10447
10475
  LayoutManager,
10476
+ HeaderControlsContext,
10448
10477
  CreateLayoutOptions,
10449
10478
  MultiInstanceViewBehavior,
10450
10479
  PresetLayoutOptions_2 as PresetLayoutOptions,
@@ -4434,6 +4434,27 @@ declare type CreateLayoutOptions = {
4434
4434
  * @default 'default'
4435
4435
  */
4436
4436
  multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4437
+ /**
4438
+ * Callback invoked for each stack when its header controls area is rendered.
4439
+ * The callback receives the `.lm_controls` DOM element and a context object
4440
+ * with a {@link HeaderControlsContext.getStack | getStack()} async getter.
4441
+ * Use this to inject custom controls (e.g. search buttons) into stack headers.
4442
+ *
4443
+ * Optionally return a cleanup function that will be called when the stack is destroyed.
4444
+ *
4445
+ * Custom controls are not serialized into snapshots since callbacks are not
4446
+ * serializable. The callback is re-invoked when layouts are restored.
4447
+ *
4448
+ * **NOTE**: This feature is currently only supported in OpenFin Runtime environments.
4449
+ *
4450
+ * @param controlsElement The `.lm_controls` DOM element for the stack header.
4451
+ * @param context Context object providing an async {@link HeaderControlsContext.getStack | getStack()} to
4452
+ * retrieve the {@link TabStack} instance.
4453
+ * @returns A callback to be called when the rendered element needs to be cleaned up.
4454
+ *
4455
+ * @experimental
4456
+ */
4457
+ renderCustomHeaderControls?: (controlsElement: HTMLElement, context: HeaderControlsContext) => (() => void) | void;
4437
4458
  };
4438
4459
 
4439
4460
  /**
@@ -6256,6 +6277,13 @@ declare type GpuInfo = {
6256
6277
  name: string;
6257
6278
  };
6258
6279
 
6280
+ /**
6281
+ * @interface @experimental
6282
+ */
6283
+ declare type HeaderControlsContext = {
6284
+ getStack: () => Promise<TabStack>;
6285
+ };
6286
+
6259
6287
  /**
6260
6288
  * Generated when a View is hidden.
6261
6289
  *
@@ -10445,6 +10473,7 @@ declare namespace OpenFin_2 {
10445
10473
  LayoutManagerConstructor,
10446
10474
  LayoutManagerOverride,
10447
10475
  LayoutManager,
10476
+ HeaderControlsContext,
10448
10477
  CreateLayoutOptions,
10449
10478
  MultiInstanceViewBehavior,
10450
10479
  PresetLayoutOptions_2 as PresetLayoutOptions,
@@ -4434,6 +4434,27 @@ declare type CreateLayoutOptions = {
4434
4434
  * @default 'default'
4435
4435
  */
4436
4436
  multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4437
+ /**
4438
+ * Callback invoked for each stack when its header controls area is rendered.
4439
+ * The callback receives the `.lm_controls` DOM element and a context object
4440
+ * with a {@link HeaderControlsContext.getStack | getStack()} async getter.
4441
+ * Use this to inject custom controls (e.g. search buttons) into stack headers.
4442
+ *
4443
+ * Optionally return a cleanup function that will be called when the stack is destroyed.
4444
+ *
4445
+ * Custom controls are not serialized into snapshots since callbacks are not
4446
+ * serializable. The callback is re-invoked when layouts are restored.
4447
+ *
4448
+ * **NOTE**: This feature is currently only supported in OpenFin Runtime environments.
4449
+ *
4450
+ * @param controlsElement The `.lm_controls` DOM element for the stack header.
4451
+ * @param context Context object providing an async {@link HeaderControlsContext.getStack | getStack()} to
4452
+ * retrieve the {@link TabStack} instance.
4453
+ * @returns A callback to be called when the rendered element needs to be cleaned up.
4454
+ *
4455
+ * @experimental
4456
+ */
4457
+ renderCustomHeaderControls?: (controlsElement: HTMLElement, context: HeaderControlsContext) => (() => void) | void;
4437
4458
  };
4438
4459
 
4439
4460
  /**
@@ -6256,6 +6277,13 @@ declare type GpuInfo = {
6256
6277
  name: string;
6257
6278
  };
6258
6279
 
6280
+ /**
6281
+ * @interface @experimental
6282
+ */
6283
+ declare type HeaderControlsContext = {
6284
+ getStack: () => Promise<TabStack>;
6285
+ };
6286
+
6259
6287
  /**
6260
6288
  * Generated when a View is hidden.
6261
6289
  *
@@ -10445,6 +10473,7 @@ declare namespace OpenFin_2 {
10445
10473
  LayoutManagerConstructor,
10446
10474
  LayoutManagerOverride,
10447
10475
  LayoutManager,
10476
+ HeaderControlsContext,
10448
10477
  CreateLayoutOptions,
10449
10478
  MultiInstanceViewBehavior,
10450
10479
  PresetLayoutOptions_2 as PresetLayoutOptions,
package/out/stub.d.ts CHANGED
@@ -4493,6 +4493,27 @@ declare type CreateLayoutOptions = {
4493
4493
  * @default 'default'
4494
4494
  */
4495
4495
  multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4496
+ /**
4497
+ * Callback invoked for each stack when its header controls area is rendered.
4498
+ * The callback receives the `.lm_controls` DOM element and a context object
4499
+ * with a {@link HeaderControlsContext.getStack | getStack()} async getter.
4500
+ * Use this to inject custom controls (e.g. search buttons) into stack headers.
4501
+ *
4502
+ * Optionally return a cleanup function that will be called when the stack is destroyed.
4503
+ *
4504
+ * Custom controls are not serialized into snapshots since callbacks are not
4505
+ * serializable. The callback is re-invoked when layouts are restored.
4506
+ *
4507
+ * **NOTE**: This feature is currently only supported in OpenFin Runtime environments.
4508
+ *
4509
+ * @param controlsElement The `.lm_controls` DOM element for the stack header.
4510
+ * @param context Context object providing an async {@link HeaderControlsContext.getStack | getStack()} to
4511
+ * retrieve the {@link TabStack} instance.
4512
+ * @returns A callback to be called when the rendered element needs to be cleaned up.
4513
+ *
4514
+ * @experimental
4515
+ */
4516
+ renderCustomHeaderControls?: (controlsElement: HTMLElement, context: HeaderControlsContext) => (() => void) | void;
4496
4517
  };
4497
4518
 
4498
4519
  /**
@@ -6347,6 +6368,13 @@ declare type GpuInfo = {
6347
6368
  name: string;
6348
6369
  };
6349
6370
 
6371
+ /**
6372
+ * @interface @experimental
6373
+ */
6374
+ declare type HeaderControlsContext = {
6375
+ getStack: () => Promise<TabStack>;
6376
+ };
6377
+
6350
6378
  /**
6351
6379
  * Generated when a View is hidden.
6352
6380
  *
@@ -10779,6 +10807,7 @@ declare namespace OpenFin_2 {
10779
10807
  LayoutManagerConstructor,
10780
10808
  LayoutManagerOverride,
10781
10809
  LayoutManager,
10810
+ HeaderControlsContext,
10782
10811
  CreateLayoutOptions,
10783
10812
  MultiInstanceViewBehavior,
10784
10813
  PresetLayoutOptions_2 as PresetLayoutOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "45.100.29",
3
+ "version": "45.100.30",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",