@openfin/fdc3-api 36.79.12 → 36.79.15

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.
@@ -4466,6 +4466,32 @@ declare type CreateLayoutOptions = {
4466
4466
  container: HTMLElement;
4467
4467
  layoutName: string;
4468
4468
  layout: LayoutOptions;
4469
+ /**
4470
+ * @defaultValue 'default'
4471
+ *
4472
+ * Controls the View behavior for the given `layout` property. Note
4473
+ * that the selected behavior only applies to unnamed Views or
4474
+ * Views with the prefix `internal-generated-`. In all cases, if any
4475
+ * View in the `layout` does not already exist, it will be created
4476
+ * with a name that starts with `internal-generated-`.
4477
+ *
4478
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4479
+ * be reparented to the current Window and added to this new Layout.
4480
+ * Use this option when you need to transfer an existing Layout between Windows.
4481
+ *
4482
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4483
+ * be duplicated with new generated names. Use this option when you need
4484
+ * to clone a Layout to any Window.
4485
+ *
4486
+ * When set to `default` or omitted, the Layout will attempt to re-use
4487
+ * existing Views only if they are attached to the current Window or
4488
+ * the Provider Window. Set to `default` or omit this option when creating
4489
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4490
+ * override. Note that during applyLayoutSnapshot, Views are created and
4491
+ * attached to the Provider while the Window is being created, so it's
4492
+ * important to not 'duplicate' Views in this workflow.
4493
+ */
4494
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4469
4495
  };
4470
4496
 
4471
4497
  /**
@@ -9737,6 +9763,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9737
9763
  type: 'monitor-info-changed';
9738
9764
  };
9739
9765
 
9766
+ /**
9767
+ * @experimental
9768
+ *
9769
+ * Used to control view behavior for Layout.create API
9770
+ */
9771
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9772
+
9740
9773
  /**
9741
9774
  * @interface
9742
9775
  */
@@ -10457,6 +10490,7 @@ declare namespace OpenFin {
10457
10490
  LayoutManagerOverride,
10458
10491
  LayoutManager,
10459
10492
  CreateLayoutOptions,
10493
+ MultiInstanceViewBehavior,
10460
10494
  PresetLayoutOptions_2 as PresetLayoutOptions,
10461
10495
  ResultBehavior,
10462
10496
  PopupBaseBehavior,
@@ -4466,6 +4466,32 @@ declare type CreateLayoutOptions = {
4466
4466
  container: HTMLElement;
4467
4467
  layoutName: string;
4468
4468
  layout: LayoutOptions;
4469
+ /**
4470
+ * @defaultValue 'default'
4471
+ *
4472
+ * Controls the View behavior for the given `layout` property. Note
4473
+ * that the selected behavior only applies to unnamed Views or
4474
+ * Views with the prefix `internal-generated-`. In all cases, if any
4475
+ * View in the `layout` does not already exist, it will be created
4476
+ * with a name that starts with `internal-generated-`.
4477
+ *
4478
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4479
+ * be reparented to the current Window and added to this new Layout.
4480
+ * Use this option when you need to transfer an existing Layout between Windows.
4481
+ *
4482
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4483
+ * be duplicated with new generated names. Use this option when you need
4484
+ * to clone a Layout to any Window.
4485
+ *
4486
+ * When set to `default` or omitted, the Layout will attempt to re-use
4487
+ * existing Views only if they are attached to the current Window or
4488
+ * the Provider Window. Set to `default` or omit this option when creating
4489
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4490
+ * override. Note that during applyLayoutSnapshot, Views are created and
4491
+ * attached to the Provider while the Window is being created, so it's
4492
+ * important to not 'duplicate' Views in this workflow.
4493
+ */
4494
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4469
4495
  };
4470
4496
 
4471
4497
  /**
@@ -9737,6 +9763,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9737
9763
  type: 'monitor-info-changed';
9738
9764
  };
9739
9765
 
9766
+ /**
9767
+ * @experimental
9768
+ *
9769
+ * Used to control view behavior for Layout.create API
9770
+ */
9771
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9772
+
9740
9773
  /**
9741
9774
  * @interface
9742
9775
  */
@@ -10457,6 +10490,7 @@ declare namespace OpenFin {
10457
10490
  LayoutManagerOverride,
10458
10491
  LayoutManager,
10459
10492
  CreateLayoutOptions,
10493
+ MultiInstanceViewBehavior,
10460
10494
  PresetLayoutOptions_2 as PresetLayoutOptions,
10461
10495
  ResultBehavior,
10462
10496
  PopupBaseBehavior,
@@ -4466,6 +4466,32 @@ declare type CreateLayoutOptions = {
4466
4466
  container: HTMLElement;
4467
4467
  layoutName: string;
4468
4468
  layout: LayoutOptions;
4469
+ /**
4470
+ * @defaultValue 'default'
4471
+ *
4472
+ * Controls the View behavior for the given `layout` property. Note
4473
+ * that the selected behavior only applies to unnamed Views or
4474
+ * Views with the prefix `internal-generated-`. In all cases, if any
4475
+ * View in the `layout` does not already exist, it will be created
4476
+ * with a name that starts with `internal-generated-`.
4477
+ *
4478
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4479
+ * be reparented to the current Window and added to this new Layout.
4480
+ * Use this option when you need to transfer an existing Layout between Windows.
4481
+ *
4482
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4483
+ * be duplicated with new generated names. Use this option when you need
4484
+ * to clone a Layout to any Window.
4485
+ *
4486
+ * When set to `default` or omitted, the Layout will attempt to re-use
4487
+ * existing Views only if they are attached to the current Window or
4488
+ * the Provider Window. Set to `default` or omit this option when creating
4489
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4490
+ * override. Note that during applyLayoutSnapshot, Views are created and
4491
+ * attached to the Provider while the Window is being created, so it's
4492
+ * important to not 'duplicate' Views in this workflow.
4493
+ */
4494
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4469
4495
  };
4470
4496
 
4471
4497
  /**
@@ -9737,6 +9763,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
9737
9763
  type: 'monitor-info-changed';
9738
9764
  };
9739
9765
 
9766
+ /**
9767
+ * @experimental
9768
+ *
9769
+ * Used to control view behavior for Layout.create API
9770
+ */
9771
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9772
+
9740
9773
  /**
9741
9774
  * @interface
9742
9775
  */
@@ -10457,6 +10490,7 @@ declare namespace OpenFin {
10457
10490
  LayoutManagerOverride,
10458
10491
  LayoutManager,
10459
10492
  CreateLayoutOptions,
10493
+ MultiInstanceViewBehavior,
10460
10494
  PresetLayoutOptions_2 as PresetLayoutOptions,
10461
10495
  ResultBehavior,
10462
10496
  PopupBaseBehavior,
package/out/fdc3-api.d.ts CHANGED
@@ -4509,6 +4509,32 @@ declare type CreateLayoutOptions = {
4509
4509
  container: HTMLElement;
4510
4510
  layoutName: string;
4511
4511
  layout: LayoutOptions;
4512
+ /**
4513
+ * @defaultValue 'default'
4514
+ *
4515
+ * Controls the View behavior for the given `layout` property. Note
4516
+ * that the selected behavior only applies to unnamed Views or
4517
+ * Views with the prefix `internal-generated-`. In all cases, if any
4518
+ * View in the `layout` does not already exist, it will be created
4519
+ * with a name that starts with `internal-generated-`.
4520
+ *
4521
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4522
+ * be reparented to the current Window and added to this new Layout.
4523
+ * Use this option when you need to transfer an existing Layout between Windows.
4524
+ *
4525
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4526
+ * be duplicated with new generated names. Use this option when you need
4527
+ * to clone a Layout to any Window.
4528
+ *
4529
+ * When set to `default` or omitted, the Layout will attempt to re-use
4530
+ * existing Views only if they are attached to the current Window or
4531
+ * the Provider Window. Set to `default` or omit this option when creating
4532
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4533
+ * override. Note that during applyLayoutSnapshot, Views are created and
4534
+ * attached to the Provider while the Window is being created, so it's
4535
+ * important to not 'duplicate' Views in this workflow.
4536
+ */
4537
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4512
4538
  };
4513
4539
 
4514
4540
  /**
@@ -10014,6 +10040,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
10014
10040
  type: 'monitor-info-changed';
10015
10041
  };
10016
10042
 
10043
+ /**
10044
+ * @experimental
10045
+ *
10046
+ * Used to control view behavior for Layout.create API
10047
+ */
10048
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
10049
+
10017
10050
  /**
10018
10051
  * @interface
10019
10052
  */
@@ -10756,6 +10789,7 @@ declare namespace OpenFin {
10756
10789
  LayoutManagerOverride,
10757
10790
  LayoutManager,
10758
10791
  CreateLayoutOptions,
10792
+ MultiInstanceViewBehavior,
10759
10793
  PresetLayoutOptions_2 as PresetLayoutOptions,
10760
10794
  ResultBehavior,
10761
10795
  PopupBaseBehavior,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "36.79.12",
3
+ "version": "36.79.15",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "private": false,