@openfin/node-adapter 34.78.15 → 34.78.17

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}.
@@ -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
  /**
@@ -3999,7 +4014,7 @@ function requireFactory$2 () {
3999
4014
  hasRequiredFactory$2 = 1;
4000
4015
  Object.defineProperty(Factory$7, "__esModule", { value: true });
4001
4016
  Factory$7.ApplicationModule = void 0;
4002
- const base_1 = base;
4017
+ const base_1 = base$1;
4003
4018
  const validate_1 = validate;
4004
4019
  const Instance_1 = requireInstance$1();
4005
4020
  /**
@@ -4267,7 +4282,7 @@ function requireFactory$2 () {
4267
4282
  var hasRequiredApplication;
4268
4283
 
4269
4284
  function requireApplication () {
4270
- if (hasRequiredApplication) return application;
4285
+ if (hasRequiredApplication) return application$1;
4271
4286
  hasRequiredApplication = 1;
4272
4287
  (function (exports) {
4273
4288
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -4298,8 +4313,8 @@ function requireApplication () {
4298
4313
  */
4299
4314
  __exportStar(requireFactory$2(), exports);
4300
4315
  __exportStar(requireInstance$1(), exports);
4301
- } (application));
4302
- return application;
4316
+ } (application$1));
4317
+ return application$1;
4303
4318
  }
4304
4319
 
4305
4320
  var hasRequiredInstance;
@@ -6180,7 +6195,7 @@ function requireFactory$1 () {
6180
6195
  hasRequiredFactory$1 = 1;
6181
6196
  Object.defineProperty(Factory$8, "__esModule", { value: true });
6182
6197
  Factory$8._WindowModule = void 0;
6183
- const base_1 = base;
6198
+ const base_1 = base$1;
6184
6199
  const validate_1 = validate;
6185
6200
  const Instance_1 = requireInstance();
6186
6201
  /**
@@ -6322,7 +6337,7 @@ function requireFactory$1 () {
6322
6337
  var hasRequiredWindow;
6323
6338
 
6324
6339
  function requireWindow () {
6325
- if (hasRequiredWindow) return window$1;
6340
+ if (hasRequiredWindow) return window$2;
6326
6341
  hasRequiredWindow = 1;
6327
6342
  (function (exports) {
6328
6343
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -6355,8 +6370,8 @@ function requireWindow () {
6355
6370
  */
6356
6371
  __exportStar(requireFactory$1(), exports);
6357
6372
  __exportStar(requireInstance(), exports);
6358
- } (window$1));
6359
- return window$1;
6373
+ } (window$2));
6374
+ return window$2;
6360
6375
  }
6361
6376
 
6362
6377
  /**
@@ -6366,9 +6381,9 @@ function requireWindow () {
6366
6381
  *
6367
6382
  * @packageDocumentation
6368
6383
  */
6369
- Object.defineProperty(system, "__esModule", { value: true });
6370
- system.System = void 0;
6371
- const base_1$j = base;
6384
+ Object.defineProperty(system$1, "__esModule", { value: true });
6385
+ system$1.System = void 0;
6386
+ const base_1$j = base$1;
6372
6387
  const transport_errors_1$2 = transportErrors;
6373
6388
  const window_1 = requireWindow();
6374
6389
  const events_1$6 = require$$0;
@@ -8212,7 +8227,7 @@ class System extends base_1$j.EmitterBase {
8212
8227
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
8213
8228
  }
8214
8229
  }
8215
- system.System = System;
8230
+ system$1.System = System;
8216
8231
 
8217
8232
  var interappbus = {};
8218
8233
 
@@ -9154,7 +9169,7 @@ var iceManager = {};
9154
9169
 
9155
9170
  Object.defineProperty(iceManager, "__esModule", { value: true });
9156
9171
  iceManager.RTCICEManager = void 0;
9157
- const base_1$i = base;
9172
+ const base_1$i = base$1;
9158
9173
  /*
9159
9174
  Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
9160
9175
  */
@@ -9654,7 +9669,7 @@ var messageReceiver = {};
9654
9669
  Object.defineProperty(messageReceiver, "__esModule", { value: true });
9655
9670
  messageReceiver.MessageReceiver = void 0;
9656
9671
  const client_1$1 = client;
9657
- const base_1$h = base;
9672
+ const base_1$h = base$1;
9658
9673
  /*
9659
9674
  This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
9660
9675
  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 +9859,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
9844
9859
  Object.defineProperty(connectionManager, "__esModule", { value: true });
9845
9860
  connectionManager.ConnectionManager = void 0;
9846
9861
  const exhaustive_1 = exhaustive;
9847
- const base_1$g = base;
9862
+ const base_1$g = base$1;
9848
9863
  const strategy_1 = strategy$2;
9849
9864
  const strategy_2 = strategy$1;
9850
9865
  const ice_manager_1 = iceManager;
@@ -10101,7 +10116,7 @@ channel$1.Channel = void 0;
10101
10116
  /* eslint-disable no-console */
10102
10117
  const events_1$5 = require$$0;
10103
10118
  const lazy_1$1 = lazy;
10104
- const base_1$f = base;
10119
+ const base_1$f = base$1;
10105
10120
  const client_1 = client;
10106
10121
  const connection_manager_1 = connectionManager;
10107
10122
  const provider_1 = provider;
@@ -10427,7 +10442,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
10427
10442
  * @packageDocumentation
10428
10443
  */
10429
10444
  const events_1$4 = require$$0;
10430
- const base_1$e = base;
10445
+ const base_1$e = base$1;
10431
10446
  const ref_counter_1 = refCounter;
10432
10447
  const index_1$2 = channel$1;
10433
10448
  const validate_1$3 = validate;
@@ -10643,7 +10658,7 @@ var clipboard = {};
10643
10658
  */
10644
10659
  Object.defineProperty(clipboard, "__esModule", { value: true });
10645
10660
  clipboard.Clipboard = void 0;
10646
- const base_1$d = base;
10661
+ const base_1$d = base$1;
10647
10662
  /**
10648
10663
  * @PORTED
10649
10664
  * WriteRequestType interface
@@ -10842,7 +10857,7 @@ class Clipboard extends base_1$d.Base {
10842
10857
  }
10843
10858
  clipboard.Clipboard = Clipboard;
10844
10859
 
10845
- var externalApplication = {};
10860
+ var externalApplication$1 = {};
10846
10861
 
10847
10862
  var Factory$5 = {};
10848
10863
 
@@ -10851,7 +10866,7 @@ var Instance$4 = {};
10851
10866
  Object.defineProperty(Instance$4, "__esModule", { value: true });
10852
10867
  Instance$4.ExternalApplication = void 0;
10853
10868
  /* eslint-disable import/prefer-default-export */
10854
- const base_1$c = base;
10869
+ const base_1$c = base$1;
10855
10870
  /**
10856
10871
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
10857
10872
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -10967,7 +10982,7 @@ Instance$4.ExternalApplication = ExternalApplication;
10967
10982
 
10968
10983
  Object.defineProperty(Factory$5, "__esModule", { value: true });
10969
10984
  Factory$5.ExternalApplicationModule = void 0;
10970
- const base_1$b = base;
10985
+ const base_1$b = base$1;
10971
10986
  const Instance_1$4 = Instance$4;
10972
10987
  /**
10973
10988
  * Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
@@ -11043,9 +11058,9 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
11043
11058
  */
11044
11059
  __exportStar(Factory$5, exports);
11045
11060
  __exportStar(Instance$4, exports);
11046
- } (externalApplication));
11061
+ } (externalApplication$1));
11047
11062
 
11048
- var frame = {};
11063
+ var frame$1 = {};
11049
11064
 
11050
11065
  var Factory$4 = {};
11051
11066
 
@@ -11054,7 +11069,7 @@ var Instance$3 = {};
11054
11069
  Object.defineProperty(Instance$3, "__esModule", { value: true });
11055
11070
  Instance$3._Frame = void 0;
11056
11071
  /* eslint-disable import/prefer-default-export */
11057
- const base_1$a = base;
11072
+ const base_1$a = base$1;
11058
11073
  /**
11059
11074
  * An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
11060
11075
  * has its own DOM and global JS context (which may or may not be linked to that of the parent depending
@@ -11196,7 +11211,7 @@ Instance$3._Frame = _Frame;
11196
11211
 
11197
11212
  Object.defineProperty(Factory$4, "__esModule", { value: true });
11198
11213
  Factory$4._FrameModule = void 0;
11199
- const base_1$9 = base;
11214
+ const base_1$9 = base$1;
11200
11215
  const validate_1$2 = validate;
11201
11216
  const Instance_1$3 = Instance$3;
11202
11217
  /**
@@ -11311,13 +11326,13 @@ Factory$4._FrameModule = _FrameModule;
11311
11326
  Object.defineProperty(exports, "__esModule", { value: true });
11312
11327
  __exportStar(Factory$4, exports);
11313
11328
  __exportStar(Instance$3, exports);
11314
- } (frame));
11329
+ } (frame$1));
11315
11330
 
11316
- var globalHotkey = {};
11331
+ var globalHotkey$1 = {};
11317
11332
 
11318
- Object.defineProperty(globalHotkey, "__esModule", { value: true });
11319
- globalHotkey.GlobalHotkey = void 0;
11320
- const base_1$8 = base;
11333
+ Object.defineProperty(globalHotkey$1, "__esModule", { value: true });
11334
+ globalHotkey$1.GlobalHotkey = void 0;
11335
+ const base_1$8 = base$1;
11321
11336
  /**
11322
11337
  * The GlobalHotkey module can register/unregister a global hotkeys.
11323
11338
  *
@@ -11446,9 +11461,9 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11446
11461
  return data;
11447
11462
  }
11448
11463
  }
11449
- globalHotkey.GlobalHotkey = GlobalHotkey;
11464
+ globalHotkey$1.GlobalHotkey = GlobalHotkey;
11450
11465
 
11451
- var platform = {};
11466
+ var platform$1 = {};
11452
11467
 
11453
11468
  var Factory$3 = {};
11454
11469
 
@@ -11463,16 +11478,14 @@ var _Platform_connectToProvider;
11463
11478
  Object.defineProperty(Instance$2, "__esModule", { value: true });
11464
11479
  Instance$2.Platform = void 0;
11465
11480
  /* eslint-disable import/prefer-default-export, no-undef */
11466
- const base_1$7 = base;
11481
+ const base_1$7 = base$1;
11467
11482
  const validate_1$1 = validate;
11468
11483
  // Reuse clients to avoid overwriting already-registered client in provider
11469
11484
  const clientMap = new Map();
11470
11485
  /** Manages the life cycle of windows and views in the application.
11471
11486
  *
11472
- * Enables taking snapshots of itself and applyi
11473
- * ng them to restore a previous configuration
11487
+ * Enables taking snapshots of itself and applying them to restore a previous configuration
11474
11488
  * as well as listen to {@link OpenFin.PlatformEvents platform events}.
11475
- *
11476
11489
  */
11477
11490
  class Platform extends base_1$7.EmitterBase {
11478
11491
  /**
@@ -12325,7 +12338,7 @@ Object.defineProperty(Instance$1, "__esModule", { value: true });
12325
12338
  Instance$1.Layout = void 0;
12326
12339
  const lazy_1 = lazy;
12327
12340
  const validate_1 = validate;
12328
- const base_1$6 = base;
12341
+ const base_1$6 = base$1;
12329
12342
  const common_utils_1 = commonUtils;
12330
12343
  const layout_entities_1 = layoutEntities;
12331
12344
  const layout_constants_1 = layout_constants;
@@ -12686,7 +12699,7 @@ var _LayoutModule_layoutInitializationAttempted;
12686
12699
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12687
12700
  Factory$2.LayoutModule = void 0;
12688
12701
  /* eslint-disable no-undef, import/prefer-default-export */
12689
- const base_1$5 = base;
12702
+ const base_1$5 = base$1;
12690
12703
  const Instance_1$2 = Instance$1;
12691
12704
  /**
12692
12705
  * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
@@ -12878,7 +12891,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
12878
12891
 
12879
12892
  Object.defineProperty(Factory$3, "__esModule", { value: true });
12880
12893
  Factory$3.PlatformModule = void 0;
12881
- const base_1$4 = base;
12894
+ const base_1$4 = base$1;
12882
12895
  const Instance_1$1 = Instance$2;
12883
12896
  const index_1$1 = layout;
12884
12897
  /**
@@ -13139,7 +13152,7 @@ Factory$3.PlatformModule = PlatformModule;
13139
13152
  */
13140
13153
  __exportStar(Factory$3, exports);
13141
13154
  __exportStar(Instance$2, exports);
13142
- } (platform));
13155
+ } (platform$1));
13143
13156
 
13144
13157
  var me = {};
13145
13158
 
@@ -13147,9 +13160,9 @@ var me = {};
13147
13160
  Object.defineProperty(exports, "__esModule", { value: true });
13148
13161
  exports.getMe = exports.getBaseMe = exports.environmentUnsupportedMessage = void 0;
13149
13162
  const view_1 = requireView();
13150
- const frame_1 = frame;
13163
+ const frame_1 = frame$1;
13151
13164
  const window_1 = requireWindow();
13152
- const external_application_1 = externalApplication;
13165
+ const external_application_1 = externalApplication$1;
13153
13166
  exports.environmentUnsupportedMessage = 'You are not running in OpenFin.';
13154
13167
  function getBaseMe(entityType, uuid, name) {
13155
13168
  const entityTypeHelpers = {
@@ -13810,7 +13823,7 @@ function requireInteropBroker () {
13810
13823
  hasRequiredInteropBroker = 1;
13811
13824
  Object.defineProperty(InteropBroker, "__esModule", { value: true });
13812
13825
  InteropBroker.InteropBroker = void 0;
13813
- const base_1 = base;
13826
+ const base_1 = base$1;
13814
13827
  const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
13815
13828
  const utils_1 = utils$1;
13816
13829
  const lodash_1 = require$$3;
@@ -15144,7 +15157,7 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15144
15157
  };
15145
15158
  var _SessionContextGroupClient_clientPromise;
15146
15159
  Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
15147
- const base_1$3 = base;
15160
+ const base_1$3 = base$1;
15148
15161
  const utils_1$3 = utils$1;
15149
15162
  class SessionContextGroupClient extends base_1$3.Base {
15150
15163
  constructor(wire, client, id) {
@@ -15231,7 +15244,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15231
15244
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
15232
15245
  Object.defineProperty(InteropClient$1, "__esModule", { value: true });
15233
15246
  InteropClient$1.InteropClient = void 0;
15234
- const base_1$2 = base;
15247
+ const base_1$2 = base$1;
15235
15248
  const SessionContextGroupClient_1 = SessionContextGroupClient$1;
15236
15249
  const utils_1$2 = utils$1;
15237
15250
  /**
@@ -15950,7 +15963,7 @@ function requireFactory () {
15950
15963
  Factory$1.InteropModule = void 0;
15951
15964
  const lodash_1 = require$$3;
15952
15965
  const inaccessibleObject_1 = inaccessibleObject;
15953
- const base_1 = base;
15966
+ const base_1 = base$1;
15954
15967
  const InteropBroker_1 = requireInteropBroker();
15955
15968
  const InteropClient_1 = InteropClient$1;
15956
15969
  const overrideCheck_1 = requireOverrideCheck();
@@ -16118,7 +16131,7 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
16118
16131
  Object.defineProperty(Instance, "__esModule", { value: true });
16119
16132
  Instance.SnapshotSource = void 0;
16120
16133
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
16121
- const base_1$1 = base;
16134
+ const base_1$1 = base$1;
16122
16135
  const utils_1$1 = utils;
16123
16136
  const connectionMap = new Map();
16124
16137
  /**
@@ -16261,7 +16274,7 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
16261
16274
 
16262
16275
  Object.defineProperty(Factory, "__esModule", { value: true });
16263
16276
  Factory.SnapshotSourceModule = void 0;
16264
- const base_1 = base;
16277
+ const base_1 = base$1;
16265
16278
  const Instance_1 = Instance;
16266
16279
  const utils_1 = utils;
16267
16280
  /**
@@ -16377,16 +16390,16 @@ Object.defineProperty(fin, "__esModule", { value: true });
16377
16390
  fin.Fin = void 0;
16378
16391
  const events_1$3 = require$$0;
16379
16392
  // 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;
16393
+ const index_1 = system$1;
16381
16394
  const index_2 = requireWindow();
16382
16395
  const index_3 = requireApplication();
16383
16396
  const index_4 = interappbus;
16384
16397
  const index_5 = clipboard;
16385
- const index_6 = externalApplication;
16386
- const index_7 = frame;
16387
- const index_8 = globalHotkey;
16398
+ const index_6 = externalApplication$1;
16399
+ const index_7 = frame$1;
16400
+ const index_8 = globalHotkey$1;
16388
16401
  const index_9 = requireView();
16389
- const index_10 = platform;
16402
+ const index_10 = platform$1;
16390
16403
  const me_1$1 = me;
16391
16404
  const interop_1 = requireInterop();
16392
16405
  const snapshot_source_1 = snapshotSource;
@@ -17733,9 +17746,9 @@ function requireMain () {
17733
17746
  Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return client_1.ChannelClient; } });
17734
17747
  const provider_1 = provider;
17735
17748
  Object.defineProperty(exports, "ChannelProvider", { enumerable: true, get: function () { return provider_1.ChannelProvider; } });
17736
- const frame_1 = frame;
17749
+ const frame_1 = frame$1;
17737
17750
  Object.defineProperty(exports, "Frame", { enumerable: true, get: function () { return frame_1._Frame; } });
17738
- const system_1 = system;
17751
+ const system_1 = system$1;
17739
17752
  Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
17740
17753
  const wire_1 = wire;
17741
17754
  const node_env_1 = requireNodeEnv();
@@ -17771,26 +17784,250 @@ function requireMain () {
17771
17784
 
17772
17785
  var mainExports = requireMain();
17773
17786
 
17774
- var OpenFin$1 = {};
17787
+ var OpenFin$2 = {};
17788
+
17789
+ var events = {};
17790
+
17791
+ var application = {};
17792
+
17793
+ /**
17794
+ * Namespace for events that can be emitted by an {@link OpenFin.Application}. Includes events
17795
+ * re-propagated from the {@link OpenFin.Window} (and, transitively, {@link OpenFin.View}) level, prefixed with `window-` (and also, if applicable, `view-`).
17796
+ * For example, a view's "attached" event will fire as 'window-view-attached' at the application level.
17797
+ *
17798
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17799
+ *
17800
+ * This namespace contains only payload shapes for events that are unique to `Application`. Events that propagate to `Application` from
17801
+ * child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
17802
+ * {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all* application events, see {@link Application.on Application.on}.
17803
+ *
17804
+ * {@link WillPropagateApplicationEvent Bespoke application events} re-propagate to the system level, prefixed with `application-`. For example,
17805
+ * the `closed` event will fire as `application-closed` at the system level. Propagated events from {@link PropagatedWindowEvent windows}
17806
+ * and {@link PropagatedViewEvent views} within an application will *not* transitively re-propagate to the system level, because they are already
17807
+ * visible at the system level and contain the identity of the application.
17808
+ *
17809
+ * @packageDocumentation
17810
+ */
17811
+ Object.defineProperty(application, "__esModule", { value: true });
17812
+
17813
+ var base = {};
17814
+
17815
+ Object.defineProperty(base, "__esModule", { value: true });
17816
+
17817
+ var externalApplication = {};
17818
+
17819
+ /**
17820
+ * Namespace for events that can be transmitted by an {@link OpenFin.ExternalApplication}.
17821
+ *
17822
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17823
+ *
17824
+ * For a list of valid string keys for external application events, see {@link ExternalApplication.on ExternalApplication.on}.
17825
+ *
17826
+ * @packageDocumentation
17827
+ */
17828
+ Object.defineProperty(externalApplication, "__esModule", { value: true });
17829
+
17830
+ var frame = {};
17831
+
17832
+ Object.defineProperty(frame, "__esModule", { value: true });
17833
+
17834
+ var globalHotkey = {};
17835
+
17836
+ Object.defineProperty(globalHotkey, "__esModule", { value: true });
17837
+
17838
+ var platform = {};
17839
+
17840
+ /**
17841
+ *
17842
+ * Namespace for events that can emitted by a {@link OpenFin.Platform}.
17843
+ *
17844
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17845
+ *
17846
+ * The Platform `EventEmitter` is a superset of the {@link OpenFin.Application} `EventEmitter`,
17847
+ * meaning it can listen to all {@link OpenFin.ApplicationEvents Application events} in addition to the
17848
+ * Platform-specific events listed here. For a list of valid string keys for *all* platform events, see
17849
+ * {@link Platform.on Platform.on}.
17850
+ *
17851
+ * @packageDocumentation
17852
+ */
17853
+ Object.defineProperty(platform, "__esModule", { value: true });
17854
+
17855
+ var system = {};
17856
+
17857
+ /**
17858
+ * Namespace for runtime-wide OpenFin events emitted by {@link System.System}. Includes events
17859
+ * re-propagated from {@link OpenFin.Application}, {@link OpenFin.Window}, and {@link OpenFin.View} (prefixed with `application-`, `window-`, and `view-`). All
17860
+ * event propagations are visible at the System level. Propagated events from WebContents (windows, views, frames) to the Application level will *not*
17861
+ * transitively re-propagate to the System level, because they are already visible at the system level and contain the identity
17862
+ * of the application. For example, an application's "closed" event will fire as 'application-closed' at the system level. A view's 'shown' event
17863
+ * will be visible as 'view-shown' at the system level, but *not* as `application-window-view-shown`.
17864
+ *
17865
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17866
+ *
17867
+ * This namespace contains only payload shapes for events that are unique to `System`. Events that propagate to `System` from
17868
+ * child {@link OpenFin.Application applications}, {@link OpenFin.Window windows}, and {@link OpenFin.View views} are defined in the
17869
+ * {@link OpenFin.ApplicationEvents}, {@link OpenFin.WindowEvents}, and {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all*
17870
+ * system events, see {@link System.on System.on}.
17871
+ *
17872
+ * @packageDocumentation
17873
+ */
17874
+ Object.defineProperty(system, "__esModule", { value: true });
17875
+
17876
+ var view = {};
17877
+
17878
+ /**
17879
+ * Namespace for events that can be emitted by a {@link OpenFin.View}.
17880
+ *
17881
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17882
+ *
17883
+ * This namespace contains only payload shapes for events that are unique to `View`. Events that are shared between all `WebContents`
17884
+ * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. For a list
17885
+ * of valid string keys for *all* View events, see {@link View.on View.on}.
17886
+ *
17887
+ * View events fall into two categories: {@link WillPropagateViewEvent} and {@link NonPropagatedViewEvent}. Propagated events will
17888
+ * be re-emitted on the parent {@link OpenFin.Window} of the target view, prefixed with "view-". For example,
17889
+ * the "shown" event will be re-emitted on the parent window as "view-shown". Non-propagated events
17890
+ * will not be re-emitted on the parent window.
17891
+ *
17892
+ * @packageDocumentation
17893
+ */
17894
+ Object.defineProperty(view, "__esModule", { value: true });
17895
+
17896
+ var webcontents = {};
17775
17897
 
17776
17898
  /**
17777
- * Top-level namespace for types referenced by the OpenFin API. Contains:
17899
+ * Namespace for events shared by all OpenFin WebContents elements (i.e. {@link OpenFin.Window},
17900
+ * {@link OpenFin.View}).
17778
17901
  *
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})
17902
+ * WebContents events are divided into two groups: {@link WillPropagateWebContentsEvent} and {@link NonPropagatedWebContentsEvent}. Propagating events
17903
+ * will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
17904
+ * parent window, and propagating events in a window will also be emitted on the window's parent {@link OpenFin.Application}.
17905
+ *
17906
+ * Non-propagating events will not re-emit on parent entities.
17784
17907
  *
17785
17908
  * @packageDocumentation
17786
17909
  */
17787
- Object.defineProperty(OpenFin$1, "__esModule", { value: true });
17910
+ Object.defineProperty(webcontents, "__esModule", { value: true });
17911
+
17912
+ var window$1 = {};
17913
+
17914
+ /**
17915
+ *
17916
+ * Namespace for events that can be emitted by a {@link OpenFin.Window}.
17917
+ *
17918
+ * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17919
+ *
17920
+ * This namespace contains only payload shapes for events that are unique to `Window`. Events that are shared between all `WebContents`
17921
+ * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. Events that
17922
+ * propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
17923
+ * {@link Window.on Window.on}
17924
+ *
17925
+ * Window events fall into two categories: {@link WillPropagateWindowEvent} and {@link NonPropagatedWindowEvent}.
17926
+ * Propagated events will be re-emitted on the parent {@link OpenFin.Application} of the target window, prefixed with "window-". For example,
17927
+ * a window's "reloaded" event will be re-emitted on the parent application as "window-reloaded". Non-propagated
17928
+ * events will not be re-emitted on the parent application.
17929
+ *
17930
+ * @packageDocumentation
17931
+ */
17932
+ Object.defineProperty(window$1, "__esModule", { value: true });
17933
+
17934
+ /**
17935
+ * Namespace for OpenFin event types. Each entity that emits OpenFin events has its own sub-namespace. Event payloads
17936
+ * themselves are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
17937
+ *
17938
+ * #### Event emitters
17939
+ *
17940
+ * The following entities emit OpenFin events, and have corresponding sub-namespaces:
17941
+ *
17942
+ * * {@link OpenFin.Application}: {@link OpenFin.ApplicationEvents}
17943
+ * * {@link OpenFin.ExternalApplication}: {@link OpenFin.ExternalApplicationEvents}
17944
+ * * {@link OpenFin.Frame}: {@link OpenFin.FrameEvents}
17945
+ * * {@link OpenFin.GlobalHotkey}: {@link OpenFin.GlobalHotkeyEvents}
17946
+ * * {@link OpenFin.Platform}: {@link OpenFin.PlatformEvents}
17947
+ * * {@link OpenFin.System}: {@link OpenFin.SystemEvents}
17948
+ * * {@link OpenFin.View}: {@link OpenFin.ViewEvents}
17949
+ * * {@link OpenFin.Window}: {@link OpenFin.WindowEvents}
17950
+ *
17951
+ * These `EventEmitter` entities share a common set of methods for interacting with the OpenFin event bus, which can be
17952
+ * seen on the individual documentation pages for each entity type.
17953
+ *
17954
+ * Registering event handlers is an asynchronous operation. It is important to ensure that the returned Promises are awaited to reduce the
17955
+ * risk of race conditions.
17956
+ *
17957
+ * When the `EventEmitter` receives an event from the browser process and emits on the renderer, all of the functions attached to that
17958
+ * specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded. If the window document
17959
+ * is destroyed by page navigation or reload, its registered event listeners will be removed.
17960
+ *
17961
+ * We recommend using Arrow Functions for event listeners to ensure the this scope is consistent with the original function context.
17962
+ *
17963
+ * Events re-propagate from smaller/more-local scopes to larger/more-global scopes. For example, an event emitted on a specific
17964
+ * view will propagate to the window in which the view is embedded, and then to the application in which the window is running, and
17965
+ * finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
17966
+ * the propagating (or propagated-to) entity.
17967
+ *
17968
+ * @packageDocumentation
17969
+ */
17970
+ Object.defineProperty(events, "__esModule", { value: true });
17971
+ events.WindowEvents = events.WebContentsEvents = events.ViewEvents = events.SystemEvents = events.PlatformEvents = events.GlobalHotkeyEvents = events.FrameEvents = events.ExternalApplicationEvents = events.BaseEvents = events.ApplicationEvents = void 0;
17972
+ const ApplicationEvents = application;
17973
+ events.ApplicationEvents = ApplicationEvents;
17974
+ const BaseEvents = base;
17975
+ events.BaseEvents = BaseEvents;
17976
+ const ExternalApplicationEvents = externalApplication;
17977
+ events.ExternalApplicationEvents = ExternalApplicationEvents;
17978
+ const FrameEvents = frame;
17979
+ events.FrameEvents = FrameEvents;
17980
+ const GlobalHotkeyEvents = globalHotkey;
17981
+ events.GlobalHotkeyEvents = GlobalHotkeyEvents;
17982
+ const PlatformEvents = platform;
17983
+ events.PlatformEvents = PlatformEvents;
17984
+ const SystemEvents = system;
17985
+ events.SystemEvents = SystemEvents;
17986
+ const ViewEvents = view;
17987
+ events.ViewEvents = ViewEvents;
17988
+ const WebContentsEvents = webcontents;
17989
+ events.WebContentsEvents = WebContentsEvents;
17990
+ const WindowEvents = window$1;
17991
+ events.WindowEvents = WindowEvents;
17992
+
17993
+ (function (exports) {
17994
+ /**
17995
+ * Top-level namespace for types referenced by the OpenFin API. Contains:
17996
+ *
17997
+ * * The type of the global `fin` entry point ({@link FinApi})
17998
+ * * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
17999
+ * * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
18000
+ * * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
18001
+ * * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
18002
+ *
18003
+ * @packageDocumentation
18004
+ */
18005
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18006
+ if (k2 === undefined) k2 = k;
18007
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18008
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18009
+ desc = { enumerable: true, get: function() { return m[k]; } };
18010
+ }
18011
+ Object.defineProperty(o, k2, desc);
18012
+ }) : (function(o, m, k, k2) {
18013
+ if (k2 === undefined) k2 = k;
18014
+ o[k2] = m[k];
18015
+ }));
18016
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
18017
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18018
+ };
18019
+ Object.defineProperty(exports, "__esModule", { value: true });
18020
+ // Deprecated shim to preserve v30 namespace names
18021
+ __exportStar(events, exports);
18022
+ } (OpenFin$2));
18023
+
18024
+ var OpenFin = /*@__PURE__*/getDefaultExportFromCjs(OpenFin$2);
17788
18025
 
17789
- var OpenFin = /*#__PURE__*/_mergeNamespaces({
18026
+ var OpenFin$1 = /*#__PURE__*/_mergeNamespaces({
17790
18027
  __proto__: null,
17791
- default: OpenFin$1
17792
- }, [OpenFin$1]);
18028
+ default: OpenFin
18029
+ }, [OpenFin$2]);
17793
18030
 
17794
18031
  exports.connect = mainExports.connect;
17795
- exports.default = OpenFin;
18032
+ exports.default = OpenFin$1;
17796
18033
  exports.launch = mainExports.launch;