@openfin/fdc3-api 42.100.40 → 42.100.43

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.
@@ -69,6 +69,10 @@ declare type AddViewToStackOptions = {
69
69
  * Optional index within the stack to insert the view. Defaults to 0
70
70
  */
71
71
  index?: number;
72
+ /**
73
+ * How the view should be displayed in the stack. Defaults to 'focused'
74
+ */
75
+ displayState?: 'focused' | 'background';
72
76
  };
73
77
 
74
78
  /**
@@ -3901,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3901
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3902
3906
  */
3903
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3904
- disposition: string;
3908
+ /**
3909
+ * The reported disposition of the content creation request.
3910
+ * @remarks
3911
+ * - `default` - The default behavior of the browser.
3912
+ * - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
3913
+ * - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
3914
+ * - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
3915
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3916
+ * - `other` - The content is loaded in some other way.
3917
+ */
3918
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3905
3919
  };
3906
3920
 
3907
3921
  /**
@@ -4243,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4243
4257
  */
4244
4258
  location?: {
4245
4259
  id: string;
4246
- index?: number;
4247
- };
4260
+ } & AddViewToStackOptions;
4248
4261
  };
4249
4262
 
4250
4263
  /**
@@ -8451,9 +8464,7 @@ declare type LayoutEntitiesController = {
8451
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8452
8465
  isRoot: (id: string) => boolean;
8453
8466
  exists: (entityId: string) => boolean;
8454
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8455
- index?: number;
8456
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8457
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8458
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8459
8470
  position?: OpenFin.LayoutPosition;
@@ -69,6 +69,10 @@ declare type AddViewToStackOptions = {
69
69
  * Optional index within the stack to insert the view. Defaults to 0
70
70
  */
71
71
  index?: number;
72
+ /**
73
+ * How the view should be displayed in the stack. Defaults to 'focused'
74
+ */
75
+ displayState?: 'focused' | 'background';
72
76
  };
73
77
 
74
78
  /**
@@ -3901,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3901
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3902
3906
  */
3903
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3904
- disposition: string;
3908
+ /**
3909
+ * The reported disposition of the content creation request.
3910
+ * @remarks
3911
+ * - `default` - The default behavior of the browser.
3912
+ * - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
3913
+ * - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
3914
+ * - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
3915
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3916
+ * - `other` - The content is loaded in some other way.
3917
+ */
3918
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3905
3919
  };
3906
3920
 
3907
3921
  /**
@@ -4243,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4243
4257
  */
4244
4258
  location?: {
4245
4259
  id: string;
4246
- index?: number;
4247
- };
4260
+ } & AddViewToStackOptions;
4248
4261
  };
4249
4262
 
4250
4263
  /**
@@ -8451,9 +8464,7 @@ declare type LayoutEntitiesController = {
8451
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8452
8465
  isRoot: (id: string) => boolean;
8453
8466
  exists: (entityId: string) => boolean;
8454
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8455
- index?: number;
8456
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8457
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8458
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8459
8470
  position?: OpenFin.LayoutPosition;
@@ -69,6 +69,10 @@ declare type AddViewToStackOptions = {
69
69
  * Optional index within the stack to insert the view. Defaults to 0
70
70
  */
71
71
  index?: number;
72
+ /**
73
+ * How the view should be displayed in the stack. Defaults to 'focused'
74
+ */
75
+ displayState?: 'focused' | 'background';
72
76
  };
73
77
 
74
78
  /**
@@ -3901,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3901
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3902
3906
  */
3903
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3904
- disposition: string;
3908
+ /**
3909
+ * The reported disposition of the content creation request.
3910
+ * @remarks
3911
+ * - `default` - The default behavior of the browser.
3912
+ * - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
3913
+ * - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
3914
+ * - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
3915
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3916
+ * - `other` - The content is loaded in some other way.
3917
+ */
3918
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3905
3919
  };
3906
3920
 
3907
3921
  /**
@@ -4243,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4243
4257
  */
4244
4258
  location?: {
4245
4259
  id: string;
4246
- index?: number;
4247
- };
4260
+ } & AddViewToStackOptions;
4248
4261
  };
4249
4262
 
4250
4263
  /**
@@ -8451,9 +8464,7 @@ declare type LayoutEntitiesController = {
8451
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8452
8465
  isRoot: (id: string) => boolean;
8453
8466
  exists: (entityId: string) => boolean;
8454
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8455
- index?: number;
8456
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8457
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8458
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8459
8470
  position?: OpenFin.LayoutPosition;
package/out/fdc3-api.d.ts CHANGED
@@ -69,6 +69,10 @@ declare type AddViewToStackOptions = {
69
69
  * Optional index within the stack to insert the view. Defaults to 0
70
70
  */
71
71
  index?: number;
72
+ /**
73
+ * How the view should be displayed in the stack. Defaults to 'focused'
74
+ */
75
+ displayState?: 'focused' | 'background';
72
76
  };
73
77
 
74
78
  /**
@@ -3960,7 +3964,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3960
3964
  * The features string passed to `window.open()` converted to OpenFin window options
3961
3965
  */
3962
3966
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3963
- disposition: string;
3967
+ /**
3968
+ * The reported disposition of the content creation request.
3969
+ * @remarks
3970
+ * - `default` - The default behavior of the browser.
3971
+ * - `foreground-tab` - The content is loaded in a new tab in the foreground. This is the default behavior for `window.open()` or a link with target=_blank.
3972
+ * - `background-tab` - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the `ctrl` or `cmd` key pressed.
3973
+ * - `new-window` - The content is loaded in a new window. This is the default behavior when clicking on a link with the `shift` key pressed.
3974
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3975
+ * - `other` - The content is loaded in some other way.
3976
+ */
3977
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3964
3978
  };
3965
3979
 
3966
3980
  /**
@@ -4302,8 +4316,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4302
4316
  */
4303
4317
  location?: {
4304
4318
  id: string;
4305
- index?: number;
4306
- };
4319
+ } & AddViewToStackOptions;
4307
4320
  };
4308
4321
 
4309
4322
  /**
@@ -8577,9 +8590,7 @@ declare type LayoutEntitiesController = {
8577
8590
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8578
8591
  isRoot: (id: string) => boolean;
8579
8592
  exists: (entityId: string) => boolean;
8580
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8581
- index?: number;
8582
- }) => Promise<OpenFin.Identity>;
8593
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8583
8594
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8584
8595
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8585
8596
  position?: OpenFin.LayoutPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "42.100.40",
3
+ "version": "42.100.43",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,