@openfin/core 42.100.40 → 42.100.42

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.
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
72
72
  * Optional index within the stack to insert the view. Defaults to 0
73
73
  */
74
74
  index?: number;
75
+ /**
76
+ * How the view should be displayed in the stack. Defaults to 'focused'
77
+ */
78
+ displayState?: 'focused' | 'background';
75
79
  };
76
80
 
77
81
  /**
@@ -3904,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3904
3908
  * The features string passed to `window.open()` converted to OpenFin window options
3905
3909
  */
3906
3910
  parsedFeatures: Partial<OpenFin_2.WindowOptions>;
3907
- disposition: string;
3911
+ /**
3912
+ * The reported disposition of the content creation request.
3913
+ * @remarks
3914
+ * - `default` - The default behavior of the browser.
3915
+ * - `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.
3916
+ * - `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.
3917
+ * - `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.
3918
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3919
+ * - `other` - The content is loaded in some other way.
3920
+ */
3921
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3908
3922
  };
3909
3923
 
3910
3924
  /**
@@ -4246,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4246
4260
  */
4247
4261
  location?: {
4248
4262
  id: string;
4249
- index?: number;
4250
- };
4263
+ } & AddViewToStackOptions;
4251
4264
  };
4252
4265
 
4253
4266
  /**
@@ -8109,9 +8122,7 @@ declare type LayoutEntitiesController = {
8109
8122
  getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
8110
8123
  isRoot: (id: string) => boolean;
8111
8124
  exists: (entityId: string) => boolean;
8112
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8113
- index?: number;
8114
- }) => Promise<OpenFin_2.Identity>;
8125
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
8115
8126
  removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
8116
8127
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8117
8128
  position?: OpenFin_2.LayoutPosition;
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
72
72
  * Optional index within the stack to insert the view. Defaults to 0
73
73
  */
74
74
  index?: number;
75
+ /**
76
+ * How the view should be displayed in the stack. Defaults to 'focused'
77
+ */
78
+ displayState?: 'focused' | 'background';
75
79
  };
76
80
 
77
81
  /**
@@ -3904,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3904
3908
  * The features string passed to `window.open()` converted to OpenFin window options
3905
3909
  */
3906
3910
  parsedFeatures: Partial<OpenFin_2.WindowOptions>;
3907
- disposition: string;
3911
+ /**
3912
+ * The reported disposition of the content creation request.
3913
+ * @remarks
3914
+ * - `default` - The default behavior of the browser.
3915
+ * - `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.
3916
+ * - `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.
3917
+ * - `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.
3918
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3919
+ * - `other` - The content is loaded in some other way.
3920
+ */
3921
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3908
3922
  };
3909
3923
 
3910
3924
  /**
@@ -4246,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4246
4260
  */
4247
4261
  location?: {
4248
4262
  id: string;
4249
- index?: number;
4250
- };
4263
+ } & AddViewToStackOptions;
4251
4264
  };
4252
4265
 
4253
4266
  /**
@@ -8109,9 +8122,7 @@ declare type LayoutEntitiesController = {
8109
8122
  getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
8110
8123
  isRoot: (id: string) => boolean;
8111
8124
  exists: (entityId: string) => boolean;
8112
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8113
- index?: number;
8114
- }) => Promise<OpenFin_2.Identity>;
8125
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
8115
8126
  removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
8116
8127
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8117
8128
  position?: OpenFin_2.LayoutPosition;
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
72
72
  * Optional index within the stack to insert the view. Defaults to 0
73
73
  */
74
74
  index?: number;
75
+ /**
76
+ * How the view should be displayed in the stack. Defaults to 'focused'
77
+ */
78
+ displayState?: 'focused' | 'background';
75
79
  };
76
80
 
77
81
  /**
@@ -3904,7 +3908,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3904
3908
  * The features string passed to `window.open()` converted to OpenFin window options
3905
3909
  */
3906
3910
  parsedFeatures: Partial<OpenFin_2.WindowOptions>;
3907
- disposition: string;
3911
+ /**
3912
+ * The reported disposition of the content creation request.
3913
+ * @remarks
3914
+ * - `default` - The default behavior of the browser.
3915
+ * - `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.
3916
+ * - `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.
3917
+ * - `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.
3918
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3919
+ * - `other` - The content is loaded in some other way.
3920
+ */
3921
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3908
3922
  };
3909
3923
 
3910
3924
  /**
@@ -4246,8 +4260,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4246
4260
  */
4247
4261
  location?: {
4248
4262
  id: string;
4249
- index?: number;
4250
- };
4263
+ } & AddViewToStackOptions;
4251
4264
  };
4252
4265
 
4253
4266
  /**
@@ -8109,9 +8122,7 @@ declare type LayoutEntitiesController = {
8109
8122
  getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
8110
8123
  isRoot: (id: string) => boolean;
8111
8124
  exists: (entityId: string) => boolean;
8112
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8113
- index?: number;
8114
- }) => Promise<OpenFin_2.Identity>;
8125
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
8115
8126
  removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
8116
8127
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8117
8128
  position?: OpenFin_2.LayoutPosition;
package/out/stub.d.ts CHANGED
@@ -72,6 +72,10 @@ declare type AddViewToStackOptions = {
72
72
  * Optional index within the stack to insert the view. Defaults to 0
73
73
  */
74
74
  index?: number;
75
+ /**
76
+ * How the view should be displayed in the stack. Defaults to 'focused'
77
+ */
78
+ displayState?: 'focused' | 'background';
75
79
  };
76
80
 
77
81
  /**
@@ -3963,7 +3967,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3963
3967
  * The features string passed to `window.open()` converted to OpenFin window options
3964
3968
  */
3965
3969
  parsedFeatures: Partial<OpenFin_2.WindowOptions>;
3966
- disposition: string;
3970
+ /**
3971
+ * The reported disposition of the content creation request.
3972
+ * @remarks
3973
+ * - `default` - The default behavior of the browser.
3974
+ * - `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.
3975
+ * - `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.
3976
+ * - `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.
3977
+ * - `popup` - The content is loaded in a popup window. This is the result of passing popup features to `window.open()`.
3978
+ * - `other` - The content is loaded in some other way.
3979
+ */
3980
+ disposition: 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'popup' | 'other';
3967
3981
  };
3968
3982
 
3969
3983
  /**
@@ -4305,8 +4319,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4305
4319
  */
4306
4320
  location?: {
4307
4321
  id: string;
4308
- index?: number;
4309
- };
4322
+ } & AddViewToStackOptions;
4310
4323
  };
4311
4324
 
4312
4325
  /**
@@ -8235,9 +8248,7 @@ declare type LayoutEntitiesController = {
8235
8248
  getParent: (id: string) => OpenFin_2.LayoutEntityDefinition | undefined;
8236
8249
  isRoot: (id: string) => boolean;
8237
8250
  exists: (entityId: string) => boolean;
8238
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8239
- index?: number;
8240
- }) => Promise<OpenFin_2.Identity>;
8251
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin_2.AddViewToStackOptions) => Promise<OpenFin_2.Identity>;
8241
8252
  removeViewFromStack: (stackEntityId: string, view: OpenFin_2.Identity) => Promise<void>;
8242
8253
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8243
8254
  position?: OpenFin_2.LayoutPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "42.100.40",
3
+ "version": "42.100.42",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",