@openfin/node-adapter 34.78.16 → 34.78.18

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.
@@ -31,13 +31,17 @@ function _mergeNamespaces(n, m) {
31
31
 
32
32
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
33
33
 
34
+ function getDefaultExportFromCjs (x) {
35
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
36
+ }
37
+
34
38
  var main$1 = {};
35
39
 
36
40
  var fin = {};
37
41
 
38
- var system = {};
42
+ var system$1 = {};
39
43
 
40
- var base = {};
44
+ var base$1 = {};
41
45
 
42
46
  var promises = {};
43
47
 
@@ -80,8 +84,8 @@ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateF
80
84
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
81
85
  };
82
86
  var _EmitterBase_emitterAccessor;
83
- Object.defineProperty(base, "__esModule", { value: true });
84
- base.Reply = base.EmitterBase = base.Base = void 0;
87
+ Object.defineProperty(base$1, "__esModule", { value: true });
88
+ base$1.Reply = base$1.EmitterBase = base$1.Base = void 0;
85
89
  const promises_1$2 = promises;
86
90
  class Base {
87
91
  /**
@@ -113,7 +117,7 @@ class Base {
113
117
  return this.wire.me;
114
118
  }
115
119
  }
116
- base.Base = Base;
120
+ base$1.Base = Base;
117
121
  /**
118
122
  * An entity that emits OpenFin events.
119
123
  *
@@ -143,6 +147,9 @@ class EmitterBase extends Base {
143
147
  this.topic = topic;
144
148
  _EmitterBase_emitterAccessor.set(this, void 0);
145
149
  this.eventNames = () => (this.hasEmitter() ? this.getOrCreateEmitter().eventNames() : []);
150
+ /**
151
+ * @internal
152
+ */
146
153
  this.emit = (eventType, payload, ...args) => {
147
154
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
148
155
  };
@@ -190,6 +197,8 @@ class EmitterBase extends Base {
190
197
  }
191
198
  /**
192
199
  * Adds a listener to the end of the listeners array for the specified event.
200
+ *
201
+ * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
193
202
  */
194
203
  async on(eventType, listener, options) {
195
204
  await this.registerEventListener(eventType, options, (emitter) => {
@@ -207,6 +216,8 @@ class EmitterBase extends Base {
207
216
  }
208
217
  /**
209
218
  * Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
219
+ *
220
+ * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
210
221
  */
211
222
  async once(eventType, listener, options) {
212
223
  const deregister = () => this.deregisterEventListener(eventType);
@@ -221,6 +232,8 @@ class EmitterBase extends Base {
221
232
  }
222
233
  /**
223
234
  * Adds a listener to the beginning of the listeners array for the specified event.
235
+ *
236
+ * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
224
237
  */
225
238
  async prependListener(eventType, listener, options) {
226
239
  await this.registerEventListener(eventType, options, (emitter) => {
@@ -233,6 +246,8 @@ class EmitterBase extends Base {
233
246
  /**
234
247
  * Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
235
248
  * after which it is removed. The listener is added to the beginning of the listeners array.
249
+ *
250
+ * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
236
251
  */
237
252
  async prependOnceListener(eventType, listener, options) {
238
253
  const deregister = () => this.deregisterEventListener(eventType);
@@ -299,11 +314,11 @@ class EmitterBase extends Base {
299
314
  }
300
315
  }
301
316
  }
302
- base.EmitterBase = EmitterBase;
317
+ base$1.EmitterBase = EmitterBase;
303
318
  _EmitterBase_emitterAccessor = new WeakMap();
304
319
  class Reply {
305
320
  }
306
- base.Reply = Reply;
321
+ base$1.Reply = Reply;
307
322
 
308
323
  var transportErrors = {};
309
324
 
@@ -386,7 +401,7 @@ class RuntimeError extends Error {
386
401
  }
387
402
  transportErrors.RuntimeError = RuntimeError;
388
403
 
389
- var window$1 = {};
404
+ var window$2 = {};
390
405
 
391
406
  var Factory$8 = {};
392
407
 
@@ -405,13 +420,13 @@ validate.validateIdentity = validateIdentity;
405
420
 
406
421
  var Instance$7 = {};
407
422
 
408
- var application = {};
423
+ var application$1 = {};
409
424
 
410
425
  var Factory$7 = {};
411
426
 
412
427
  var Instance$6 = {};
413
428
 
414
- var view = {};
429
+ var view$1 = {};
415
430
 
416
431
  var Factory$6 = {};
417
432
 
@@ -422,7 +437,7 @@ function requireFactory$3 () {
422
437
  hasRequiredFactory$3 = 1;
423
438
  Object.defineProperty(Factory$6, "__esModule", { value: true });
424
439
  Factory$6.ViewModule = void 0;
425
- const base_1 = base;
440
+ const base_1 = base$1;
426
441
  const validate_1 = validate;
427
442
  const index_1 = requireView();
428
443
  /**
@@ -1386,7 +1401,7 @@ var main = {};
1386
1401
 
1387
1402
  Object.defineProperty(main, "__esModule", { value: true });
1388
1403
  main.WebContents = void 0;
1389
- const base_1$k = base;
1404
+ const base_1$k = base$1;
1390
1405
  class WebContents extends base_1$k.EmitterBase {
1391
1406
  /**
1392
1407
  * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
@@ -1580,7 +1595,7 @@ class WebContents extends base_1$k.EmitterBase {
1580
1595
  /**
1581
1596
  * Navigates the WebContents to a specified URL.
1582
1597
  *
1583
- * @remarks The url must contain the protocol prefix such as http:// or https://.
1598
+ * Note: The url must contain the protocol prefix such as http:// or https://.
1584
1599
  * @param url - The URL to navigate the WebContents to.
1585
1600
  *
1586
1601
  * @example
@@ -1763,7 +1778,7 @@ class WebContents extends base_1$k.EmitterBase {
1763
1778
  * Prints the WebContents.
1764
1779
  * @param options Printer Options
1765
1780
  *
1766
- * @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
1781
+ * Note: When `silent` is set to `true`, the API will pick the system's default printer if deviceName
1767
1782
  * is empty and the default settings for printing.
1768
1783
  *
1769
1784
  * Use the CSS style `page-break-before: always;` to force print to a new page.
@@ -1789,7 +1804,7 @@ class WebContents extends base_1$k.EmitterBase {
1789
1804
  * @param searchTerm Term to find in page
1790
1805
  * @param options Search options
1791
1806
  *
1792
- * @remarks By default, each subsequent call will highlight the next text that matches the search term.
1807
+ * Note: By default, each subsequent call will highlight the next text that matches the search term.
1793
1808
  *
1794
1809
  * Returns a promise with the results for the request. By subscribing to the
1795
1810
  * found-in-page event, you can get the results of this call as well.
@@ -1990,7 +2005,7 @@ class WebContents extends base_1$k.EmitterBase {
1990
2005
  /**
1991
2006
  * Retrieves the process information associated with a WebContents.
1992
2007
  *
1993
- * @remarks This includes any iframes associated with the WebContents
2008
+ * Note: This includes any iframes associated with the WebContents
1994
2009
  *
1995
2010
  * @example
1996
2011
  * View:
@@ -2171,7 +2186,7 @@ class WebContents extends base_1$k.EmitterBase {
2171
2186
  /**
2172
2187
  * Shows a popup window.
2173
2188
  *
2174
- * @remarks If this WebContents is a view and its attached window has a popup open, this will close it.
2189
+ * Note: If this WebContents is a view and its attached window has a popup open, this will close it.
2175
2190
  *
2176
2191
  * Shows a popup window. Including a `name` in `options` will attempt to show an existing window as a popup, if
2177
2192
  * that window doesn't exist or no `name` is included a window will be created. If the caller view or the caller
@@ -2179,7 +2194,7 @@ class WebContents extends base_1$k.EmitterBase {
2179
2194
  * open popup window before showing the new popup window. Also, if the caller view is destroyed or detached, the popup
2180
2195
  * will be dismissed.
2181
2196
  *
2182
- * NOTE: in the case where the window being shown as a popup needs to be created, it is a child of the caller view's parent window.
2197
+ * Note: in the case where the window being shown as a popup needs to be created, it is a child of the caller view's parent window.
2183
2198
  *
2184
2199
  * @example
2185
2200
  *
@@ -3129,7 +3144,7 @@ function requireInstance$2 () {
3129
3144
  var hasRequiredView;
3130
3145
 
3131
3146
  function requireView () {
3132
- if (hasRequiredView) return view;
3147
+ if (hasRequiredView) return view$1;
3133
3148
  hasRequiredView = 1;
3134
3149
  (function (exports) {
3135
3150
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -3160,8 +3175,8 @@ function requireView () {
3160
3175
  */
3161
3176
  __exportStar(requireFactory$3(), exports);
3162
3177
  __exportStar(requireInstance$2(), exports);
3163
- } (view));
3164
- return view;
3178
+ } (view$1));
3179
+ return view$1;
3165
3180
  }
3166
3181
 
3167
3182
  var hasRequiredInstance$1;
@@ -3172,7 +3187,7 @@ function requireInstance$1 () {
3172
3187
  Object.defineProperty(Instance$6, "__esModule", { value: true });
3173
3188
  Instance$6.Application = void 0;
3174
3189
  /* eslint-disable import/prefer-default-export */
3175
- const base_1 = base;
3190
+ const base_1 = base$1;
3176
3191
  const window_1 = requireWindow();
3177
3192
  const view_1 = requireView();
3178
3193
  /**
@@ -3647,6 +3662,7 @@ function requireInstance$1 () {
3647
3662
  /**
3648
3663
  * Sets or removes a custom JumpList for the application. Only applicable in Windows OS.
3649
3664
  * If categories is null the previously set custom JumpList (if any) will be replaced by the standard JumpList for the app (managed by Windows).
3665
+ *
3650
3666
  * Note: If the "name" property is omitted it defaults to "tasks".
3651
3667
  * @param jumpListCategories An array of JumpList Categories to populate. If null, remove any existing JumpList configuration and set to Windows default.
3652
3668
  *
@@ -3947,6 +3963,7 @@ function requireInstance$1 () {
3947
3963
  }
3948
3964
  /**
3949
3965
  * Sets file auto download location. It's only allowed in the same application.
3966
+ *
3950
3967
  * Note: This method is restricted by default and must be enabled via
3951
3968
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
3952
3969
  * @param downloadLocation file auto download location
@@ -3972,6 +3989,7 @@ function requireInstance$1 () {
3972
3989
  }
3973
3990
  /**
3974
3991
  * Gets file auto download location. It's only allowed in the same application. If file auto download location is not set, it will return the default location.
3992
+ *
3975
3993
  * Note: This method is restricted by default and must be enabled via
3976
3994
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
3977
3995
  *
@@ -3999,7 +4017,7 @@ function requireFactory$2 () {
3999
4017
  hasRequiredFactory$2 = 1;
4000
4018
  Object.defineProperty(Factory$7, "__esModule", { value: true });
4001
4019
  Factory$7.ApplicationModule = void 0;
4002
- const base_1 = base;
4020
+ const base_1 = base$1;
4003
4021
  const validate_1 = validate;
4004
4022
  const Instance_1 = requireInstance$1();
4005
4023
  /**
@@ -4267,7 +4285,7 @@ function requireFactory$2 () {
4267
4285
  var hasRequiredApplication;
4268
4286
 
4269
4287
  function requireApplication () {
4270
- if (hasRequiredApplication) return application;
4288
+ if (hasRequiredApplication) return application$1;
4271
4289
  hasRequiredApplication = 1;
4272
4290
  (function (exports) {
4273
4291
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -4298,8 +4316,8 @@ function requireApplication () {
4298
4316
  */
4299
4317
  __exportStar(requireFactory$2(), exports);
4300
4318
  __exportStar(requireInstance$1(), exports);
4301
- } (application));
4302
- return application;
4319
+ } (application$1));
4320
+ return application$1;
4303
4321
  }
4304
4322
 
4305
4323
  var hasRequiredInstance;
@@ -6180,7 +6198,7 @@ function requireFactory$1 () {
6180
6198
  hasRequiredFactory$1 = 1;
6181
6199
  Object.defineProperty(Factory$8, "__esModule", { value: true });
6182
6200
  Factory$8._WindowModule = void 0;
6183
- const base_1 = base;
6201
+ const base_1 = base$1;
6184
6202
  const validate_1 = validate;
6185
6203
  const Instance_1 = requireInstance();
6186
6204
  /**
@@ -6322,7 +6340,7 @@ function requireFactory$1 () {
6322
6340
  var hasRequiredWindow;
6323
6341
 
6324
6342
  function requireWindow () {
6325
- if (hasRequiredWindow) return window$1;
6343
+ if (hasRequiredWindow) return window$2;
6326
6344
  hasRequiredWindow = 1;
6327
6345
  (function (exports) {
6328
6346
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -6355,8 +6373,8 @@ function requireWindow () {
6355
6373
  */
6356
6374
  __exportStar(requireFactory$1(), exports);
6357
6375
  __exportStar(requireInstance(), exports);
6358
- } (window$1));
6359
- return window$1;
6376
+ } (window$2));
6377
+ return window$2;
6360
6378
  }
6361
6379
 
6362
6380
  /**
@@ -6366,9 +6384,9 @@ function requireWindow () {
6366
6384
  *
6367
6385
  * @packageDocumentation
6368
6386
  */
6369
- Object.defineProperty(system, "__esModule", { value: true });
6370
- system.System = void 0;
6371
- const base_1$j = base;
6387
+ Object.defineProperty(system$1, "__esModule", { value: true });
6388
+ system$1.System = void 0;
6389
+ const base_1$j = base$1;
6372
6390
  const transport_errors_1$2 = transportErrors;
6373
6391
  const window_1 = requireWindow();
6374
6392
  const events_1$6 = require$$0;
@@ -7373,7 +7391,8 @@ class System extends base_1$j.EmitterBase {
7373
7391
  }
7374
7392
  /**
7375
7393
  * Attempt to close an external process. The process will be terminated if it
7376
- * has not closed after the elapsed timeout in milliseconds.<br>
7394
+ * has not closed after the elapsed timeout in milliseconds.
7395
+ *
7377
7396
  * Note: This method is restricted by default and must be enabled via
7378
7397
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
7379
7398
  * @param options A object defined in the TerminateExternalRequestType interface
@@ -7409,7 +7428,8 @@ class System extends base_1$j.EmitterBase {
7409
7428
  return this.wire.sendAction('update-proxy', options).then(() => undefined);
7410
7429
  }
7411
7430
  /**
7412
- * Downloads the given application asset<br>
7431
+ * Downloads the given application asset.
7432
+ *
7413
7433
  * Note: This method is restricted by default and must be enabled via
7414
7434
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
7415
7435
  * @param appAsset App asset object
@@ -8212,7 +8232,7 @@ class System extends base_1$j.EmitterBase {
8212
8232
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
8213
8233
  }
8214
8234
  }
8215
- system.System = System;
8235
+ system$1.System = System;
8216
8236
 
8217
8237
  var interappbus = {};
8218
8238
 
@@ -9154,7 +9174,7 @@ var iceManager = {};
9154
9174
 
9155
9175
  Object.defineProperty(iceManager, "__esModule", { value: true });
9156
9176
  iceManager.RTCICEManager = void 0;
9157
- const base_1$i = base;
9177
+ const base_1$i = base$1;
9158
9178
  /*
9159
9179
  Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
9160
9180
  */
@@ -9654,7 +9674,7 @@ var messageReceiver = {};
9654
9674
  Object.defineProperty(messageReceiver, "__esModule", { value: true });
9655
9675
  messageReceiver.MessageReceiver = void 0;
9656
9676
  const client_1$1 = client;
9657
- const base_1$h = base;
9677
+ const base_1$h = base$1;
9658
9678
  /*
9659
9679
  This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
9660
9680
  It needs to be a singleton because there can only be one per wire. It tracks both clients and providers' processAction passed in via the strategy.
@@ -9844,7 +9864,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
9844
9864
  Object.defineProperty(connectionManager, "__esModule", { value: true });
9845
9865
  connectionManager.ConnectionManager = void 0;
9846
9866
  const exhaustive_1 = exhaustive;
9847
- const base_1$g = base;
9867
+ const base_1$g = base$1;
9848
9868
  const strategy_1 = strategy$2;
9849
9869
  const strategy_2 = strategy$1;
9850
9870
  const ice_manager_1 = iceManager;
@@ -10101,7 +10121,7 @@ channel$1.Channel = void 0;
10101
10121
  /* eslint-disable no-console */
10102
10122
  const events_1$5 = require$$0;
10103
10123
  const lazy_1$1 = lazy;
10104
- const base_1$f = base;
10124
+ const base_1$f = base$1;
10105
10125
  const client_1 = client;
10106
10126
  const connection_manager_1 = connectionManager;
10107
10127
  const provider_1 = provider;
@@ -10427,7 +10447,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
10427
10447
  * @packageDocumentation
10428
10448
  */
10429
10449
  const events_1$4 = require$$0;
10430
- const base_1$e = base;
10450
+ const base_1$e = base$1;
10431
10451
  const ref_counter_1 = refCounter;
10432
10452
  const index_1$2 = channel$1;
10433
10453
  const validate_1$3 = validate;
@@ -10643,7 +10663,7 @@ var clipboard = {};
10643
10663
  */
10644
10664
  Object.defineProperty(clipboard, "__esModule", { value: true });
10645
10665
  clipboard.Clipboard = void 0;
10646
- const base_1$d = base;
10666
+ const base_1$d = base$1;
10647
10667
  /**
10648
10668
  * @PORTED
10649
10669
  * WriteRequestType interface
@@ -10842,7 +10862,7 @@ class Clipboard extends base_1$d.Base {
10842
10862
  }
10843
10863
  clipboard.Clipboard = Clipboard;
10844
10864
 
10845
- var externalApplication = {};
10865
+ var externalApplication$1 = {};
10846
10866
 
10847
10867
  var Factory$5 = {};
10848
10868
 
@@ -10851,7 +10871,7 @@ var Instance$4 = {};
10851
10871
  Object.defineProperty(Instance$4, "__esModule", { value: true });
10852
10872
  Instance$4.ExternalApplication = void 0;
10853
10873
  /* eslint-disable import/prefer-default-export */
10854
- const base_1$c = base;
10874
+ const base_1$c = base$1;
10855
10875
  /**
10856
10876
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
10857
10877
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -10967,7 +10987,7 @@ Instance$4.ExternalApplication = ExternalApplication;
10967
10987
 
10968
10988
  Object.defineProperty(Factory$5, "__esModule", { value: true });
10969
10989
  Factory$5.ExternalApplicationModule = void 0;
10970
- const base_1$b = base;
10990
+ const base_1$b = base$1;
10971
10991
  const Instance_1$4 = Instance$4;
10972
10992
  /**
10973
10993
  * Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
@@ -11043,9 +11063,9 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
11043
11063
  */
11044
11064
  __exportStar(Factory$5, exports);
11045
11065
  __exportStar(Instance$4, exports);
11046
- } (externalApplication));
11066
+ } (externalApplication$1));
11047
11067
 
11048
- var frame = {};
11068
+ var frame$1 = {};
11049
11069
 
11050
11070
  var Factory$4 = {};
11051
11071
 
@@ -11054,7 +11074,7 @@ var Instance$3 = {};
11054
11074
  Object.defineProperty(Instance$3, "__esModule", { value: true });
11055
11075
  Instance$3._Frame = void 0;
11056
11076
  /* eslint-disable import/prefer-default-export */
11057
- const base_1$a = base;
11077
+ const base_1$a = base$1;
11058
11078
  /**
11059
11079
  * An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
11060
11080
  * has its own DOM and global JS context (which may or may not be linked to that of the parent depending
@@ -11196,7 +11216,7 @@ Instance$3._Frame = _Frame;
11196
11216
 
11197
11217
  Object.defineProperty(Factory$4, "__esModule", { value: true });
11198
11218
  Factory$4._FrameModule = void 0;
11199
- const base_1$9 = base;
11219
+ const base_1$9 = base$1;
11200
11220
  const validate_1$2 = validate;
11201
11221
  const Instance_1$3 = Instance$3;
11202
11222
  /**
@@ -11311,13 +11331,13 @@ Factory$4._FrameModule = _FrameModule;
11311
11331
  Object.defineProperty(exports, "__esModule", { value: true });
11312
11332
  __exportStar(Factory$4, exports);
11313
11333
  __exportStar(Instance$3, exports);
11314
- } (frame));
11334
+ } (frame$1));
11315
11335
 
11316
- var globalHotkey = {};
11336
+ var globalHotkey$1 = {};
11317
11337
 
11318
- Object.defineProperty(globalHotkey, "__esModule", { value: true });
11319
- globalHotkey.GlobalHotkey = void 0;
11320
- const base_1$8 = base;
11338
+ Object.defineProperty(globalHotkey$1, "__esModule", { value: true });
11339
+ globalHotkey$1.GlobalHotkey = void 0;
11340
+ const base_1$8 = base$1;
11321
11341
  /**
11322
11342
  * The GlobalHotkey module can register/unregister a global hotkeys.
11323
11343
  *
@@ -11446,9 +11466,9 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11446
11466
  return data;
11447
11467
  }
11448
11468
  }
11449
- globalHotkey.GlobalHotkey = GlobalHotkey;
11469
+ globalHotkey$1.GlobalHotkey = GlobalHotkey;
11450
11470
 
11451
- var platform = {};
11471
+ var platform$1 = {};
11452
11472
 
11453
11473
  var Factory$3 = {};
11454
11474
 
@@ -11463,16 +11483,14 @@ var _Platform_connectToProvider;
11463
11483
  Object.defineProperty(Instance$2, "__esModule", { value: true });
11464
11484
  Instance$2.Platform = void 0;
11465
11485
  /* eslint-disable import/prefer-default-export, no-undef */
11466
- const base_1$7 = base;
11486
+ const base_1$7 = base$1;
11467
11487
  const validate_1$1 = validate;
11468
11488
  // Reuse clients to avoid overwriting already-registered client in provider
11469
11489
  const clientMap = new Map();
11470
11490
  /** Manages the life cycle of windows and views in the application.
11471
11491
  *
11472
- * Enables taking snapshots of itself and applyi
11473
- * ng them to restore a previous configuration
11492
+ * Enables taking snapshots of itself and applying them to restore a previous configuration
11474
11493
  * as well as listen to {@link OpenFin.PlatformEvents platform events}.
11475
- *
11476
11494
  */
11477
11495
  class Platform extends base_1$7.EmitterBase {
11478
11496
  /**
@@ -12325,7 +12343,7 @@ Object.defineProperty(Instance$1, "__esModule", { value: true });
12325
12343
  Instance$1.Layout = void 0;
12326
12344
  const lazy_1 = lazy;
12327
12345
  const validate_1 = validate;
12328
- const base_1$6 = base;
12346
+ const base_1$6 = base$1;
12329
12347
  const common_utils_1 = commonUtils;
12330
12348
  const layout_entities_1 = layoutEntities;
12331
12349
  const layout_constants_1 = layout_constants;
@@ -12686,7 +12704,7 @@ var _LayoutModule_layoutInitializationAttempted;
12686
12704
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12687
12705
  Factory$2.LayoutModule = void 0;
12688
12706
  /* eslint-disable no-undef, import/prefer-default-export */
12689
- const base_1$5 = base;
12707
+ const base_1$5 = base$1;
12690
12708
  const Instance_1$2 = Instance$1;
12691
12709
  /**
12692
12710
  * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
@@ -12878,7 +12896,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
12878
12896
 
12879
12897
  Object.defineProperty(Factory$3, "__esModule", { value: true });
12880
12898
  Factory$3.PlatformModule = void 0;
12881
- const base_1$4 = base;
12899
+ const base_1$4 = base$1;
12882
12900
  const Instance_1$1 = Instance$2;
12883
12901
  const index_1$1 = layout;
12884
12902
  /**
@@ -13139,7 +13157,7 @@ Factory$3.PlatformModule = PlatformModule;
13139
13157
  */
13140
13158
  __exportStar(Factory$3, exports);
13141
13159
  __exportStar(Instance$2, exports);
13142
- } (platform));
13160
+ } (platform$1));
13143
13161
 
13144
13162
  var me = {};
13145
13163
 
@@ -13147,9 +13165,9 @@ var me = {};
13147
13165
  Object.defineProperty(exports, "__esModule", { value: true });
13148
13166
  exports.getMe = exports.getBaseMe = exports.environmentUnsupportedMessage = void 0;
13149
13167
  const view_1 = requireView();
13150
- const frame_1 = frame;
13168
+ const frame_1 = frame$1;
13151
13169
  const window_1 = requireWindow();
13152
- const external_application_1 = externalApplication;
13170
+ const external_application_1 = externalApplication$1;
13153
13171
  exports.environmentUnsupportedMessage = 'You are not running in OpenFin.';
13154
13172
  function getBaseMe(entityType, uuid, name) {
13155
13173
  const entityTypeHelpers = {
@@ -13810,7 +13828,7 @@ function requireInteropBroker () {
13810
13828
  hasRequiredInteropBroker = 1;
13811
13829
  Object.defineProperty(InteropBroker, "__esModule", { value: true });
13812
13830
  InteropBroker.InteropBroker = void 0;
13813
- const base_1 = base;
13831
+ const base_1 = base$1;
13814
13832
  const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
13815
13833
  const utils_1 = utils$1;
13816
13834
  const lodash_1 = require$$3;
@@ -15144,7 +15162,7 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15144
15162
  };
15145
15163
  var _SessionContextGroupClient_clientPromise;
15146
15164
  Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
15147
- const base_1$3 = base;
15165
+ const base_1$3 = base$1;
15148
15166
  const utils_1$3 = utils$1;
15149
15167
  class SessionContextGroupClient extends base_1$3.Base {
15150
15168
  constructor(wire, client, id) {
@@ -15231,7 +15249,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15231
15249
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
15232
15250
  Object.defineProperty(InteropClient$1, "__esModule", { value: true });
15233
15251
  InteropClient$1.InteropClient = void 0;
15234
- const base_1$2 = base;
15252
+ const base_1$2 = base$1;
15235
15253
  const SessionContextGroupClient_1 = SessionContextGroupClient$1;
15236
15254
  const utils_1$2 = utils$1;
15237
15255
  /**
@@ -15950,7 +15968,7 @@ function requireFactory () {
15950
15968
  Factory$1.InteropModule = void 0;
15951
15969
  const lodash_1 = require$$3;
15952
15970
  const inaccessibleObject_1 = inaccessibleObject;
15953
- const base_1 = base;
15971
+ const base_1 = base$1;
15954
15972
  const InteropBroker_1 = requireInteropBroker();
15955
15973
  const InteropClient_1 = InteropClient$1;
15956
15974
  const overrideCheck_1 = requireOverrideCheck();
@@ -16118,7 +16136,7 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
16118
16136
  Object.defineProperty(Instance, "__esModule", { value: true });
16119
16137
  Instance.SnapshotSource = void 0;
16120
16138
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
16121
- const base_1$1 = base;
16139
+ const base_1$1 = base$1;
16122
16140
  const utils_1$1 = utils;
16123
16141
  const connectionMap = new Map();
16124
16142
  /**
@@ -16261,7 +16279,7 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
16261
16279
 
16262
16280
  Object.defineProperty(Factory, "__esModule", { value: true });
16263
16281
  Factory.SnapshotSourceModule = void 0;
16264
- const base_1 = base;
16282
+ const base_1 = base$1;
16265
16283
  const Instance_1 = Instance;
16266
16284
  const utils_1 = utils;
16267
16285
  /**
@@ -16377,16 +16395,16 @@ Object.defineProperty(fin, "__esModule", { value: true });
16377
16395
  fin.Fin = void 0;
16378
16396
  const events_1$3 = require$$0;
16379
16397
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
16380
- const index_1 = system;
16398
+ const index_1 = system$1;
16381
16399
  const index_2 = requireWindow();
16382
16400
  const index_3 = requireApplication();
16383
16401
  const index_4 = interappbus;
16384
16402
  const index_5 = clipboard;
16385
- const index_6 = externalApplication;
16386
- const index_7 = frame;
16387
- const index_8 = globalHotkey;
16403
+ const index_6 = externalApplication$1;
16404
+ const index_7 = frame$1;
16405
+ const index_8 = globalHotkey$1;
16388
16406
  const index_9 = requireView();
16389
- const index_10 = platform;
16407
+ const index_10 = platform$1;
16390
16408
  const me_1$1 = me;
16391
16409
  const interop_1 = requireInterop();
16392
16410
  const snapshot_source_1 = snapshotSource;
@@ -17733,9 +17751,9 @@ function requireMain () {
17733
17751
  Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return client_1.ChannelClient; } });
17734
17752
  const provider_1 = provider;
17735
17753
  Object.defineProperty(exports, "ChannelProvider", { enumerable: true, get: function () { return provider_1.ChannelProvider; } });
17736
- const frame_1 = frame;
17754
+ const frame_1 = frame$1;
17737
17755
  Object.defineProperty(exports, "Frame", { enumerable: true, get: function () { return frame_1._Frame; } });
17738
- const system_1 = system;
17756
+ const system_1 = system$1;
17739
17757
  Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
17740
17758
  const wire_1 = wire;
17741
17759
  const node_env_1 = requireNodeEnv();
@@ -17771,26 +17789,250 @@ function requireMain () {
17771
17789
 
17772
17790
  var mainExports = requireMain();
17773
17791
 
17774
- var OpenFin$1 = {};
17792
+ var OpenFin$2 = {};
17793
+
17794
+ var events = {};
17795
+
17796
+ var application = {};
17797
+
17798
+ /**
17799
+ * Namespace for events that can be emitted by an {@link OpenFin.Application}. Includes events
17800
+ * re-propagated from the {@link OpenFin.Window} (and, transitively, {@link OpenFin.View}) level, prefixed with `window-` (and also, if applicable, `view-`).
17801
+ * For example, a view's "attached" event will fire as 'window-view-attached' at the application level.
17802
+ *
17803
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17804
+ *
17805
+ * This namespace contains only payload shapes for events that are unique to `Application`. Events that propagate to `Application` from
17806
+ * child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
17807
+ * {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all* application events, see {@link Application.on Application.on}.
17808
+ *
17809
+ * {@link WillPropagateApplicationEvent Bespoke application events} re-propagate to the system level, prefixed with `application-`. For example,
17810
+ * the `closed` event will fire as `application-closed` at the system level. Propagated events from {@link PropagatedWindowEvent windows}
17811
+ * and {@link PropagatedViewEvent views} within an application will *not* transitively re-propagate to the system level, because they are already
17812
+ * visible at the system level and contain the identity of the application.
17813
+ *
17814
+ * @packageDocumentation
17815
+ */
17816
+ Object.defineProperty(application, "__esModule", { value: true });
17817
+
17818
+ var base = {};
17819
+
17820
+ Object.defineProperty(base, "__esModule", { value: true });
17821
+
17822
+ var externalApplication = {};
17775
17823
 
17776
17824
  /**
17777
- * Top-level namespace for types referenced by the OpenFin API. Contains:
17825
+ * Namespace for events that can be transmitted by an {@link OpenFin.ExternalApplication}.
17778
17826
  *
17779
- * * The type of the global `fin` entry point ({@link FinApi})
17780
- * * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
17781
- * * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
17782
- * * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
17783
- * * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
17827
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17828
+ *
17829
+ * For a list of valid string keys for external application events, see {@link ExternalApplication.on ExternalApplication.on}.
17784
17830
  *
17785
17831
  * @packageDocumentation
17786
17832
  */
17787
- Object.defineProperty(OpenFin$1, "__esModule", { value: true });
17833
+ Object.defineProperty(externalApplication, "__esModule", { value: true });
17834
+
17835
+ var frame = {};
17836
+
17837
+ Object.defineProperty(frame, "__esModule", { value: true });
17838
+
17839
+ var globalHotkey = {};
17840
+
17841
+ Object.defineProperty(globalHotkey, "__esModule", { value: true });
17842
+
17843
+ var platform = {};
17844
+
17845
+ /**
17846
+ *
17847
+ * Namespace for events that can emitted by a {@link OpenFin.Platform}.
17848
+ *
17849
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17850
+ *
17851
+ * The Platform `EventEmitter` is a superset of the {@link OpenFin.Application} `EventEmitter`,
17852
+ * meaning it can listen to all {@link OpenFin.ApplicationEvents Application events} in addition to the
17853
+ * Platform-specific events listed here. For a list of valid string keys for *all* platform events, see
17854
+ * {@link Platform.on Platform.on}.
17855
+ *
17856
+ * @packageDocumentation
17857
+ */
17858
+ Object.defineProperty(platform, "__esModule", { value: true });
17859
+
17860
+ var system = {};
17861
+
17862
+ /**
17863
+ * Namespace for runtime-wide OpenFin events emitted by {@link System.System}. Includes events
17864
+ * re-propagated from {@link OpenFin.Application}, {@link OpenFin.Window}, and {@link OpenFin.View} (prefixed with `application-`, `window-`, and `view-`). All
17865
+ * event propagations are visible at the System level. Propagated events from WebContents (windows, views, frames) to the Application level will *not*
17866
+ * transitively re-propagate to the System level, because they are already visible at the system level and contain the identity
17867
+ * of the application. For example, an application's "closed" event will fire as 'application-closed' at the system level. A view's 'shown' event
17868
+ * will be visible as 'view-shown' at the system level, but *not* as `application-window-view-shown`.
17869
+ *
17870
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17871
+ *
17872
+ * This namespace contains only payload shapes for events that are unique to `System`. Events that propagate to `System` from
17873
+ * child {@link OpenFin.Application applications}, {@link OpenFin.Window windows}, and {@link OpenFin.View views} are defined in the
17874
+ * {@link OpenFin.ApplicationEvents}, {@link OpenFin.WindowEvents}, and {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all*
17875
+ * system events, see {@link System.on System.on}.
17876
+ *
17877
+ * @packageDocumentation
17878
+ */
17879
+ Object.defineProperty(system, "__esModule", { value: true });
17880
+
17881
+ var view = {};
17882
+
17883
+ /**
17884
+ * Namespace for events that can be emitted by a {@link OpenFin.View}.
17885
+ *
17886
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17887
+ *
17888
+ * This namespace contains only payload shapes for events that are unique to `View`. Events that are shared between all `WebContents`
17889
+ * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. For a list
17890
+ * of valid string keys for *all* View events, see {@link View.on View.on}.
17891
+ *
17892
+ * View events fall into two categories: {@link WillPropagateViewEvent} and {@link NonPropagatedViewEvent}. Propagated events will
17893
+ * be re-emitted on the parent {@link OpenFin.Window} of the target view, prefixed with "view-". For example,
17894
+ * the "shown" event will be re-emitted on the parent window as "view-shown". Non-propagated events
17895
+ * will not be re-emitted on the parent window.
17896
+ *
17897
+ * @packageDocumentation
17898
+ */
17899
+ Object.defineProperty(view, "__esModule", { value: true });
17900
+
17901
+ var webcontents = {};
17902
+
17903
+ /**
17904
+ * Namespace for events shared by all OpenFin WebContents elements (i.e. {@link OpenFin.Window},
17905
+ * {@link OpenFin.View}).
17906
+ *
17907
+ * WebContents events are divided into two groups: {@link WillPropagateWebContentsEvent} and {@link NonPropagatedWebContentsEvent}. Propagating events
17908
+ * will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
17909
+ * parent window, and propagating events in a window will also be emitted on the window's parent {@link OpenFin.Application}.
17910
+ *
17911
+ * Non-propagating events will not re-emit on parent entities.
17912
+ *
17913
+ * @packageDocumentation
17914
+ */
17915
+ Object.defineProperty(webcontents, "__esModule", { value: true });
17916
+
17917
+ var window$1 = {};
17918
+
17919
+ /**
17920
+ *
17921
+ * Namespace for events that can be emitted by a {@link OpenFin.Window}.
17922
+ *
17923
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17924
+ *
17925
+ * This namespace contains only payload shapes for events that are unique to `Window`. Events that are shared between all `WebContents`
17926
+ * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. Events that
17927
+ * propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
17928
+ * {@link Window.on Window.on}
17929
+ *
17930
+ * Window events fall into two categories: {@link WillPropagateWindowEvent} and {@link NonPropagatedWindowEvent}.
17931
+ * Propagated events will be re-emitted on the parent {@link OpenFin.Application} of the target window, prefixed with "window-". For example,
17932
+ * a window's "reloaded" event will be re-emitted on the parent application as "window-reloaded". Non-propagated
17933
+ * events will not be re-emitted on the parent application.
17934
+ *
17935
+ * @packageDocumentation
17936
+ */
17937
+ Object.defineProperty(window$1, "__esModule", { value: true });
17938
+
17939
+ /**
17940
+ * Namespace for OpenFin event types. Each entity that emits OpenFin events has its own sub-namespace. Event payloads
17941
+ * themselves are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17942
+ *
17943
+ * #### Event emitters
17944
+ *
17945
+ * The following entities emit OpenFin events, and have corresponding sub-namespaces:
17946
+ *
17947
+ * * {@link OpenFin.Application}: {@link OpenFin.ApplicationEvents}
17948
+ * * {@link OpenFin.ExternalApplication}: {@link OpenFin.ExternalApplicationEvents}
17949
+ * * {@link OpenFin.Frame}: {@link OpenFin.FrameEvents}
17950
+ * * {@link OpenFin.GlobalHotkey}: {@link OpenFin.GlobalHotkeyEvents}
17951
+ * * {@link OpenFin.Platform}: {@link OpenFin.PlatformEvents}
17952
+ * * {@link OpenFin.System}: {@link OpenFin.SystemEvents}
17953
+ * * {@link OpenFin.View}: {@link OpenFin.ViewEvents}
17954
+ * * {@link OpenFin.Window}: {@link OpenFin.WindowEvents}
17955
+ *
17956
+ * These `EventEmitter` entities share a common set of methods for interacting with the OpenFin event bus, which can be
17957
+ * seen on the individual documentation pages for each entity type.
17958
+ *
17959
+ * Registering event handlers is an asynchronous operation. It is important to ensure that the returned Promises are awaited to reduce the
17960
+ * risk of race conditions.
17961
+ *
17962
+ * When the `EventEmitter` receives an event from the browser process and emits on the renderer, all of the functions attached to that
17963
+ * specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded. If the window document
17964
+ * is destroyed by page navigation or reload, its registered event listeners will be removed.
17965
+ *
17966
+ * We recommend using Arrow Functions for event listeners to ensure the this scope is consistent with the original function context.
17967
+ *
17968
+ * Events re-propagate from smaller/more-local scopes to larger/more-global scopes. For example, an event emitted on a specific
17969
+ * view will propagate to the window in which the view is embedded, and then to the application in which the window is running, and
17970
+ * finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
17971
+ * the propagating (or propagated-to) entity.
17972
+ *
17973
+ * @packageDocumentation
17974
+ */
17975
+ Object.defineProperty(events, "__esModule", { value: true });
17976
+ events.WindowEvents = events.WebContentsEvents = events.ViewEvents = events.SystemEvents = events.PlatformEvents = events.GlobalHotkeyEvents = events.FrameEvents = events.ExternalApplicationEvents = events.BaseEvents = events.ApplicationEvents = void 0;
17977
+ const ApplicationEvents = application;
17978
+ events.ApplicationEvents = ApplicationEvents;
17979
+ const BaseEvents = base;
17980
+ events.BaseEvents = BaseEvents;
17981
+ const ExternalApplicationEvents = externalApplication;
17982
+ events.ExternalApplicationEvents = ExternalApplicationEvents;
17983
+ const FrameEvents = frame;
17984
+ events.FrameEvents = FrameEvents;
17985
+ const GlobalHotkeyEvents = globalHotkey;
17986
+ events.GlobalHotkeyEvents = GlobalHotkeyEvents;
17987
+ const PlatformEvents = platform;
17988
+ events.PlatformEvents = PlatformEvents;
17989
+ const SystemEvents = system;
17990
+ events.SystemEvents = SystemEvents;
17991
+ const ViewEvents = view;
17992
+ events.ViewEvents = ViewEvents;
17993
+ const WebContentsEvents = webcontents;
17994
+ events.WebContentsEvents = WebContentsEvents;
17995
+ const WindowEvents = window$1;
17996
+ events.WindowEvents = WindowEvents;
17997
+
17998
+ (function (exports) {
17999
+ /**
18000
+ * Top-level namespace for types referenced by the OpenFin API. Contains:
18001
+ *
18002
+ * * The type of the global `fin` entry point ({@link FinApi})
18003
+ * * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
18004
+ * * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
18005
+ * * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
18006
+ * * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
18007
+ *
18008
+ * @packageDocumentation
18009
+ */
18010
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18011
+ if (k2 === undefined) k2 = k;
18012
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18013
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18014
+ desc = { enumerable: true, get: function() { return m[k]; } };
18015
+ }
18016
+ Object.defineProperty(o, k2, desc);
18017
+ }) : (function(o, m, k, k2) {
18018
+ if (k2 === undefined) k2 = k;
18019
+ o[k2] = m[k];
18020
+ }));
18021
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
18022
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18023
+ };
18024
+ Object.defineProperty(exports, "__esModule", { value: true });
18025
+ // Deprecated shim to preserve v30 namespace names
18026
+ __exportStar(events, exports);
18027
+ } (OpenFin$2));
18028
+
18029
+ var OpenFin = /*@__PURE__*/getDefaultExportFromCjs(OpenFin$2);
17788
18030
 
17789
- var OpenFin = /*#__PURE__*/_mergeNamespaces({
18031
+ var OpenFin$1 = /*#__PURE__*/_mergeNamespaces({
17790
18032
  __proto__: null,
17791
- default: OpenFin$1
17792
- }, [OpenFin$1]);
18033
+ default: OpenFin
18034
+ }, [OpenFin$2]);
17793
18035
 
17794
18036
  exports.connect = mainExports.connect;
17795
- exports.default = OpenFin;
18037
+ exports.default = OpenFin$1;
17796
18038
  exports.launch = mainExports.launch;