@openfin/core 33.76.2 → 33.76.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "33.76.2",
3
+ "version": "33.76.3",
4
4
  "license": "SEE LICENSE IN LICENSE.MD",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -174,6 +174,9 @@ class Fdc3Module2 extends base_1.Base {
174
174
  * @tutorial fdc3.open
175
175
  */
176
176
  async open(app, context) {
177
+ if (typeof app === 'string') {
178
+ console.warn('Passing a string as the app parameter is deprecated, please use an AppIdentifier ({ appId: string; instanceId?: string }).');
179
+ }
177
180
  return this.fdc3Module.open(app, context);
178
181
  }
179
182
  /**
@@ -304,6 +307,9 @@ class Fdc3Module2 extends base_1.Base {
304
307
  // we do not want to expose this error, just continue if this analytics-only call fails
305
308
  });
306
309
  try {
310
+ if (typeof app === 'string') {
311
+ console.warn('Passing a string as the app parameter is deprecated, please use an AppIdentifier ({ appId: string; instanceId?: string }).');
312
+ }
307
313
  return (0, utils_2.getIntentResolution)(this.fin.me.interop, context, app, intent);
308
314
  }
309
315
  catch (error) {
@@ -324,6 +330,9 @@ class Fdc3Module2 extends base_1.Base {
324
330
  // we do not want to expose this error, just continue if this analytics-only call fails
325
331
  });
326
332
  try {
333
+ if (typeof app === 'string') {
334
+ console.warn('Passing a string as the app parameter is deprecated, please use an AppIdentifier ({ appId: string; instanceId?: string }).');
335
+ }
327
336
  return (0, utils_2.getIntentResolution)(this.fin.me.interop, context, app);
328
337
  }
329
338
  catch (error) {
@@ -1,5 +1,5 @@
1
1
  import * as OpenFin from '../../../../OpenFin';
2
- import { Channel as ChannelV1, SystemChannel } from './fdc3v1';
2
+ import { Channel as ChannelV1, SystemChannel, TargetApp } from './fdc3v1';
3
3
  import type { Listener } from 'fdc3v2/src/api/Listener';
4
4
  import type { AppIntent } from 'fdc3v2/src/api/AppIntent';
5
5
  import type { ImplementationMetadata } from 'fdc3v2/src/api/ImplementationMetadata';
@@ -53,13 +53,13 @@ export type PrivateChannel = Omit<Channel, 'addContextListener'> & {
53
53
  disconnect(): void;
54
54
  };
55
55
  export interface DesktopAgent {
56
- open(app: AppIdentifier, context?: Context): Promise<AppIdentifier>;
56
+ open(app: AppIdentifier | TargetApp, context?: Context): Promise<AppIdentifier>;
57
57
  findIntent(intent: string, context?: Context, resultType?: string): Promise<AppIntent>;
58
58
  findIntentsByContext(context: Context, resultType?: string): Promise<Array<AppIntent>>;
59
59
  findInstances(app: AppIdentifier): Promise<Array<AppIdentifier>>;
60
60
  broadcast(context: Context): Promise<void>;
61
- raiseIntent(intent: string, context: Context, app?: AppIdentifier): Promise<IntentResolution>;
62
- raiseIntentForContext(context: Context, app?: AppIdentifier): Promise<IntentResolution>;
61
+ raiseIntent(intent: string, context: Context, app?: AppIdentifier | TargetApp): Promise<IntentResolution>;
62
+ raiseIntentForContext(context: Context, app?: AppIdentifier | TargetApp): Promise<IntentResolution>;
63
63
  addIntentListener(intent: string, handler: IntentHandler): Promise<Listener>;
64
64
  addContextListener(contextType: string | null, handler: ContextHandler): Promise<Listener>;
65
65
  getUserChannels(): Promise<Array<SystemChannel>>;