@openfin/fdc3-api 41.100.111 → 41.100.113

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
  /**
@@ -3066,6 +3070,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
3066
3070
  *
3067
3071
  */
3068
3072
  declare class Clipboard_2 extends Base {
3073
+ #private;
3069
3074
  /**
3070
3075
  * Writes data into the clipboard as plain text
3071
3076
  * @param writeObj The object for writing data into the clipboard
@@ -3218,6 +3223,21 @@ declare class Clipboard_2 extends Base {
3218
3223
  getAvailableFormats(type?: OpenFin.ClipboardSelectionType): Promise<Array<string>>;
3219
3224
  }
3220
3225
 
3226
+ /**
3227
+ * Permissions for {@link Clipboard} APIs.
3228
+ */
3229
+ declare type ClipboardApiPermissions = {
3230
+ writeText: boolean;
3231
+ readText: boolean;
3232
+ writeImage: boolean;
3233
+ readImage: boolean;
3234
+ writeHtml: boolean;
3235
+ readHtml: boolean;
3236
+ writeRtf: boolean;
3237
+ readRtf: boolean;
3238
+ write: boolean;
3239
+ };
3240
+
3221
3241
  /**
3222
3242
  * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3223
3243
  * @interface
@@ -3885,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3885
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3886
3906
  */
3887
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3888
- 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';
3889
3919
  };
3890
3920
 
3891
3921
  /**
@@ -4227,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4227
4257
  */
4228
4258
  location?: {
4229
4259
  id: string;
4230
- index?: number;
4231
- };
4260
+ } & AddViewToStackOptions;
4232
4261
  };
4233
4262
 
4234
4263
  /**
@@ -8435,9 +8464,7 @@ declare type LayoutEntitiesController = {
8435
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8436
8465
  isRoot: (id: string) => boolean;
8437
8466
  exists: (entityId: string) => boolean;
8438
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8439
- index?: number;
8440
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8441
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8442
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8443
8470
  position?: OpenFin.LayoutPosition;
@@ -9911,6 +9938,7 @@ declare namespace OpenFin {
9911
9938
  OpenExternalPermission,
9912
9939
  DeviceInfo,
9913
9940
  Permissions_2 as Permissions,
9941
+ ClipboardApiPermissions,
9914
9942
  PlatformWindowCreationOptions,
9915
9943
  PlatformWindowOptions,
9916
9944
  PlatformViewCreationOptions,
@@ -10426,6 +10454,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
10426
10454
  declare type Permissions_2 = {
10427
10455
  Application?: Partial<ApplicationPermissions>;
10428
10456
  System?: Partial<SystemPermissions>;
10457
+ Clipboard?: Partial<ClipboardApiPermissions>;
10429
10458
  webAPIs?: WebPermission[];
10430
10459
  devices?: DeviceInfo[];
10431
10460
  };
@@ -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
  /**
@@ -3066,6 +3070,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
3066
3070
  *
3067
3071
  */
3068
3072
  declare class Clipboard_2 extends Base {
3073
+ #private;
3069
3074
  /**
3070
3075
  * Writes data into the clipboard as plain text
3071
3076
  * @param writeObj The object for writing data into the clipboard
@@ -3218,6 +3223,21 @@ declare class Clipboard_2 extends Base {
3218
3223
  getAvailableFormats(type?: OpenFin.ClipboardSelectionType): Promise<Array<string>>;
3219
3224
  }
3220
3225
 
3226
+ /**
3227
+ * Permissions for {@link Clipboard} APIs.
3228
+ */
3229
+ declare type ClipboardApiPermissions = {
3230
+ writeText: boolean;
3231
+ readText: boolean;
3232
+ writeImage: boolean;
3233
+ readImage: boolean;
3234
+ writeHtml: boolean;
3235
+ readHtml: boolean;
3236
+ writeRtf: boolean;
3237
+ readRtf: boolean;
3238
+ write: boolean;
3239
+ };
3240
+
3221
3241
  /**
3222
3242
  * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3223
3243
  * @interface
@@ -3885,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3885
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3886
3906
  */
3887
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3888
- 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';
3889
3919
  };
3890
3920
 
3891
3921
  /**
@@ -4227,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4227
4257
  */
4228
4258
  location?: {
4229
4259
  id: string;
4230
- index?: number;
4231
- };
4260
+ } & AddViewToStackOptions;
4232
4261
  };
4233
4262
 
4234
4263
  /**
@@ -8435,9 +8464,7 @@ declare type LayoutEntitiesController = {
8435
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8436
8465
  isRoot: (id: string) => boolean;
8437
8466
  exists: (entityId: string) => boolean;
8438
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8439
- index?: number;
8440
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8441
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8442
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8443
8470
  position?: OpenFin.LayoutPosition;
@@ -9911,6 +9938,7 @@ declare namespace OpenFin {
9911
9938
  OpenExternalPermission,
9912
9939
  DeviceInfo,
9913
9940
  Permissions_2 as Permissions,
9941
+ ClipboardApiPermissions,
9914
9942
  PlatformWindowCreationOptions,
9915
9943
  PlatformWindowOptions,
9916
9944
  PlatformViewCreationOptions,
@@ -10426,6 +10454,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
10426
10454
  declare type Permissions_2 = {
10427
10455
  Application?: Partial<ApplicationPermissions>;
10428
10456
  System?: Partial<SystemPermissions>;
10457
+ Clipboard?: Partial<ClipboardApiPermissions>;
10429
10458
  webAPIs?: WebPermission[];
10430
10459
  devices?: DeviceInfo[];
10431
10460
  };
@@ -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
  /**
@@ -3066,6 +3070,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
3066
3070
  *
3067
3071
  */
3068
3072
  declare class Clipboard_2 extends Base {
3073
+ #private;
3069
3074
  /**
3070
3075
  * Writes data into the clipboard as plain text
3071
3076
  * @param writeObj The object for writing data into the clipboard
@@ -3218,6 +3223,21 @@ declare class Clipboard_2 extends Base {
3218
3223
  getAvailableFormats(type?: OpenFin.ClipboardSelectionType): Promise<Array<string>>;
3219
3224
  }
3220
3225
 
3226
+ /**
3227
+ * Permissions for {@link Clipboard} APIs.
3228
+ */
3229
+ declare type ClipboardApiPermissions = {
3230
+ writeText: boolean;
3231
+ readText: boolean;
3232
+ writeImage: boolean;
3233
+ readImage: boolean;
3234
+ writeHtml: boolean;
3235
+ readHtml: boolean;
3236
+ writeRtf: boolean;
3237
+ readRtf: boolean;
3238
+ write: boolean;
3239
+ };
3240
+
3221
3241
  /**
3222
3242
  * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3223
3243
  * @interface
@@ -3885,7 +3905,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3885
3905
  * The features string passed to `window.open()` converted to OpenFin window options
3886
3906
  */
3887
3907
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3888
- 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';
3889
3919
  };
3890
3920
 
3891
3921
  /**
@@ -4227,8 +4257,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4227
4257
  */
4228
4258
  location?: {
4229
4259
  id: string;
4230
- index?: number;
4231
- };
4260
+ } & AddViewToStackOptions;
4232
4261
  };
4233
4262
 
4234
4263
  /**
@@ -8435,9 +8464,7 @@ declare type LayoutEntitiesController = {
8435
8464
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8436
8465
  isRoot: (id: string) => boolean;
8437
8466
  exists: (entityId: string) => boolean;
8438
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8439
- index?: number;
8440
- }) => Promise<OpenFin.Identity>;
8467
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8441
8468
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8442
8469
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8443
8470
  position?: OpenFin.LayoutPosition;
@@ -9911,6 +9938,7 @@ declare namespace OpenFin {
9911
9938
  OpenExternalPermission,
9912
9939
  DeviceInfo,
9913
9940
  Permissions_2 as Permissions,
9941
+ ClipboardApiPermissions,
9914
9942
  PlatformWindowCreationOptions,
9915
9943
  PlatformWindowOptions,
9916
9944
  PlatformViewCreationOptions,
@@ -10426,6 +10454,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
10426
10454
  declare type Permissions_2 = {
10427
10455
  Application?: Partial<ApplicationPermissions>;
10428
10456
  System?: Partial<SystemPermissions>;
10457
+ Clipboard?: Partial<ClipboardApiPermissions>;
10429
10458
  webAPIs?: WebPermission[];
10430
10459
  devices?: DeviceInfo[];
10431
10460
  };
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
  /**
@@ -3122,6 +3126,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
3122
3126
  *
3123
3127
  */
3124
3128
  declare class Clipboard_2 extends Base {
3129
+ #private;
3125
3130
  /**
3126
3131
  * Writes data into the clipboard as plain text
3127
3132
  * @param writeObj The object for writing data into the clipboard
@@ -3274,6 +3279,21 @@ declare class Clipboard_2 extends Base {
3274
3279
  getAvailableFormats(type?: OpenFin.ClipboardSelectionType): Promise<Array<string>>;
3275
3280
  }
3276
3281
 
3282
+ /**
3283
+ * Permissions for {@link Clipboard} APIs.
3284
+ */
3285
+ declare type ClipboardApiPermissions = {
3286
+ writeText: boolean;
3287
+ readText: boolean;
3288
+ writeImage: boolean;
3289
+ readImage: boolean;
3290
+ writeHtml: boolean;
3291
+ readHtml: boolean;
3292
+ writeRtf: boolean;
3293
+ readRtf: boolean;
3294
+ write: boolean;
3295
+ };
3296
+
3277
3297
  /**
3278
3298
  * Generated when a copy operation is blocked through {@link OpenFin.DomainSettings}.
3279
3299
  * @interface
@@ -3944,7 +3964,17 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3944
3964
  * The features string passed to `window.open()` converted to OpenFin window options
3945
3965
  */
3946
3966
  parsedFeatures: Partial<OpenFin.WindowOptions>;
3947
- 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';
3948
3978
  };
3949
3979
 
3950
3980
  /**
@@ -4286,8 +4316,7 @@ declare type CreateViewTarget = (Identity_4 | LayoutIdentity) & {
4286
4316
  */
4287
4317
  location?: {
4288
4318
  id: string;
4289
- index?: number;
4290
- };
4319
+ } & AddViewToStackOptions;
4291
4320
  };
4292
4321
 
4293
4322
  /**
@@ -8561,9 +8590,7 @@ declare type LayoutEntitiesController = {
8561
8590
  getParent: (id: string) => OpenFin.LayoutEntityDefinition | undefined;
8562
8591
  isRoot: (id: string) => boolean;
8563
8592
  exists: (entityId: string) => boolean;
8564
- addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: {
8565
- index?: number;
8566
- }) => Promise<OpenFin.Identity>;
8593
+ addViewToStack: (stackEntityId: string, viewCreationOrReference: ViewCreationOrReference, viewInsertionOptions?: OpenFin.AddViewToStackOptions) => Promise<OpenFin.Identity>;
8567
8594
  removeViewFromStack: (stackEntityId: string, view: OpenFin.Identity) => Promise<void>;
8568
8595
  createAdjacentStack: (targetId: string, views: ViewCreationOrReference[], stackCreationOptions?: {
8569
8596
  position?: OpenFin.LayoutPosition;
@@ -10229,6 +10256,7 @@ declare namespace OpenFin {
10229
10256
  OpenExternalPermission,
10230
10257
  DeviceInfo,
10231
10258
  Permissions_2 as Permissions,
10259
+ ClipboardApiPermissions,
10232
10260
  PlatformWindowCreationOptions,
10233
10261
  PlatformWindowOptions,
10234
10262
  PlatformViewCreationOptions,
@@ -10744,6 +10772,7 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
10744
10772
  declare type Permissions_2 = {
10745
10773
  Application?: Partial<ApplicationPermissions>;
10746
10774
  System?: Partial<SystemPermissions>;
10775
+ Clipboard?: Partial<ClipboardApiPermissions>;
10747
10776
  webAPIs?: WebPermission[];
10748
10777
  devices?: DeviceInfo[];
10749
10778
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "41.100.111",
3
+ "version": "41.100.113",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,