@openfin/node-adapter 34.78.6 → 34.78.7
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/README.md +11 -11
- package/out/node-adapter-alpha.d.ts +734 -3727
- package/out/node-adapter-beta.d.ts +734 -3727
- package/out/node-adapter-public.d.ts +734 -3727
- package/out/node-adapter.d.ts +785 -3726
- package/out/node-adapter.js +880 -918
- package/package.json +6 -9
- package/resources/win/OpenFinRVM.exe +0 -0
package/out/node-adapter.js
CHANGED
@@ -2,17 +2,16 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var require$$0 = require('events');
|
6
5
|
var require$$3 = require('lodash');
|
7
|
-
var require$$0$
|
6
|
+
var require$$0$1 = require('fs');
|
8
7
|
var require$$1$1 = require('crypto');
|
9
8
|
var require$$2$1 = require('ws');
|
10
9
|
var require$$1 = require('net');
|
11
|
-
var require$$0$
|
12
|
-
var require$$0$
|
10
|
+
var require$$0$2 = require('path');
|
11
|
+
var require$$0$3 = require('os');
|
13
12
|
var require$$4 = require('timers');
|
14
13
|
var require$$2 = require('child_process');
|
15
|
-
var require$$0
|
14
|
+
var require$$0 = require('node:url');
|
16
15
|
|
17
16
|
function _mergeNamespaces(n, m) {
|
18
17
|
m.forEach(function (e) {
|
@@ -31,17 +30,493 @@ function _mergeNamespaces(n, m) {
|
|
31
30
|
|
32
31
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
33
32
|
|
34
|
-
function getDefaultExportFromCjs (x) {
|
35
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
36
|
-
}
|
37
|
-
|
38
33
|
var main$1 = {};
|
39
34
|
|
40
35
|
var fin = {};
|
41
36
|
|
42
|
-
var
|
37
|
+
var eventsExports = {};
|
38
|
+
var events = {
|
39
|
+
get exports(){ return eventsExports; },
|
40
|
+
set exports(v){ eventsExports = v; },
|
41
|
+
};
|
42
|
+
|
43
|
+
var R = typeof Reflect === 'object' ? Reflect : null;
|
44
|
+
var ReflectApply = R && typeof R.apply === 'function'
|
45
|
+
? R.apply
|
46
|
+
: function ReflectApply(target, receiver, args) {
|
47
|
+
return Function.prototype.apply.call(target, receiver, args);
|
48
|
+
};
|
49
|
+
|
50
|
+
var ReflectOwnKeys;
|
51
|
+
if (R && typeof R.ownKeys === 'function') {
|
52
|
+
ReflectOwnKeys = R.ownKeys;
|
53
|
+
} else if (Object.getOwnPropertySymbols) {
|
54
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
55
|
+
return Object.getOwnPropertyNames(target)
|
56
|
+
.concat(Object.getOwnPropertySymbols(target));
|
57
|
+
};
|
58
|
+
} else {
|
59
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
60
|
+
return Object.getOwnPropertyNames(target);
|
61
|
+
};
|
62
|
+
}
|
63
|
+
|
64
|
+
function ProcessEmitWarning(warning) {
|
65
|
+
if (console && console.warn) console.warn(warning);
|
66
|
+
}
|
67
|
+
|
68
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
69
|
+
return value !== value;
|
70
|
+
};
|
71
|
+
|
72
|
+
function EventEmitter() {
|
73
|
+
EventEmitter.init.call(this);
|
74
|
+
}
|
75
|
+
events.exports = EventEmitter;
|
76
|
+
eventsExports.once = once;
|
77
|
+
|
78
|
+
// Backwards-compat with node 0.10.x
|
79
|
+
EventEmitter.EventEmitter = EventEmitter;
|
80
|
+
|
81
|
+
EventEmitter.prototype._events = undefined;
|
82
|
+
EventEmitter.prototype._eventsCount = 0;
|
83
|
+
EventEmitter.prototype._maxListeners = undefined;
|
84
|
+
|
85
|
+
// By default EventEmitters will print a warning if more than 10 listeners are
|
86
|
+
// added to it. This is a useful default which helps finding memory leaks.
|
87
|
+
var defaultMaxListeners = 10;
|
88
|
+
|
89
|
+
function checkListener(listener) {
|
90
|
+
if (typeof listener !== 'function') {
|
91
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
96
|
+
enumerable: true,
|
97
|
+
get: function() {
|
98
|
+
return defaultMaxListeners;
|
99
|
+
},
|
100
|
+
set: function(arg) {
|
101
|
+
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
102
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
103
|
+
}
|
104
|
+
defaultMaxListeners = arg;
|
105
|
+
}
|
106
|
+
});
|
107
|
+
|
108
|
+
EventEmitter.init = function() {
|
109
|
+
|
110
|
+
if (this._events === undefined ||
|
111
|
+
this._events === Object.getPrototypeOf(this)._events) {
|
112
|
+
this._events = Object.create(null);
|
113
|
+
this._eventsCount = 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
this._maxListeners = this._maxListeners || undefined;
|
117
|
+
};
|
118
|
+
|
119
|
+
// Obviously not all Emitters should be limited to 10. This function allows
|
120
|
+
// that to be increased. Set to zero for unlimited.
|
121
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
122
|
+
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
123
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
124
|
+
}
|
125
|
+
this._maxListeners = n;
|
126
|
+
return this;
|
127
|
+
};
|
128
|
+
|
129
|
+
function _getMaxListeners(that) {
|
130
|
+
if (that._maxListeners === undefined)
|
131
|
+
return EventEmitter.defaultMaxListeners;
|
132
|
+
return that._maxListeners;
|
133
|
+
}
|
134
|
+
|
135
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
136
|
+
return _getMaxListeners(this);
|
137
|
+
};
|
138
|
+
|
139
|
+
EventEmitter.prototype.emit = function emit(type) {
|
140
|
+
var args = [];
|
141
|
+
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
142
|
+
var doError = (type === 'error');
|
143
|
+
|
144
|
+
var events = this._events;
|
145
|
+
if (events !== undefined)
|
146
|
+
doError = (doError && events.error === undefined);
|
147
|
+
else if (!doError)
|
148
|
+
return false;
|
149
|
+
|
150
|
+
// If there is no 'error' event listener then throw.
|
151
|
+
if (doError) {
|
152
|
+
var er;
|
153
|
+
if (args.length > 0)
|
154
|
+
er = args[0];
|
155
|
+
if (er instanceof Error) {
|
156
|
+
// Note: The comments on the `throw` lines are intentional, they show
|
157
|
+
// up in Node's output if this results in an unhandled exception.
|
158
|
+
throw er; // Unhandled 'error' event
|
159
|
+
}
|
160
|
+
// At least give some kind of context to the user
|
161
|
+
var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
|
162
|
+
err.context = er;
|
163
|
+
throw err; // Unhandled 'error' event
|
164
|
+
}
|
165
|
+
|
166
|
+
var handler = events[type];
|
167
|
+
|
168
|
+
if (handler === undefined)
|
169
|
+
return false;
|
170
|
+
|
171
|
+
if (typeof handler === 'function') {
|
172
|
+
ReflectApply(handler, this, args);
|
173
|
+
} else {
|
174
|
+
var len = handler.length;
|
175
|
+
var listeners = arrayClone(handler, len);
|
176
|
+
for (var i = 0; i < len; ++i)
|
177
|
+
ReflectApply(listeners[i], this, args);
|
178
|
+
}
|
179
|
+
|
180
|
+
return true;
|
181
|
+
};
|
182
|
+
|
183
|
+
function _addListener(target, type, listener, prepend) {
|
184
|
+
var m;
|
185
|
+
var events;
|
186
|
+
var existing;
|
187
|
+
|
188
|
+
checkListener(listener);
|
189
|
+
|
190
|
+
events = target._events;
|
191
|
+
if (events === undefined) {
|
192
|
+
events = target._events = Object.create(null);
|
193
|
+
target._eventsCount = 0;
|
194
|
+
} else {
|
195
|
+
// To avoid recursion in the case that type === "newListener"! Before
|
196
|
+
// adding it to the listeners, first emit "newListener".
|
197
|
+
if (events.newListener !== undefined) {
|
198
|
+
target.emit('newListener', type,
|
199
|
+
listener.listener ? listener.listener : listener);
|
200
|
+
|
201
|
+
// Re-assign `events` because a newListener handler could have caused the
|
202
|
+
// this._events to be assigned to a new object
|
203
|
+
events = target._events;
|
204
|
+
}
|
205
|
+
existing = events[type];
|
206
|
+
}
|
207
|
+
|
208
|
+
if (existing === undefined) {
|
209
|
+
// Optimize the case of one listener. Don't need the extra array object.
|
210
|
+
existing = events[type] = listener;
|
211
|
+
++target._eventsCount;
|
212
|
+
} else {
|
213
|
+
if (typeof existing === 'function') {
|
214
|
+
// Adding the second element, need to change to array.
|
215
|
+
existing = events[type] =
|
216
|
+
prepend ? [listener, existing] : [existing, listener];
|
217
|
+
// If we've already got an array, just append.
|
218
|
+
} else if (prepend) {
|
219
|
+
existing.unshift(listener);
|
220
|
+
} else {
|
221
|
+
existing.push(listener);
|
222
|
+
}
|
223
|
+
|
224
|
+
// Check for listener leak
|
225
|
+
m = _getMaxListeners(target);
|
226
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
227
|
+
existing.warned = true;
|
228
|
+
// No error code for this since it is a Warning
|
229
|
+
// eslint-disable-next-line no-restricted-syntax
|
230
|
+
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
231
|
+
existing.length + ' ' + String(type) + ' listeners ' +
|
232
|
+
'added. Use emitter.setMaxListeners() to ' +
|
233
|
+
'increase limit');
|
234
|
+
w.name = 'MaxListenersExceededWarning';
|
235
|
+
w.emitter = target;
|
236
|
+
w.type = type;
|
237
|
+
w.count = existing.length;
|
238
|
+
ProcessEmitWarning(w);
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
return target;
|
243
|
+
}
|
244
|
+
|
245
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
246
|
+
return _addListener(this, type, listener, false);
|
247
|
+
};
|
248
|
+
|
249
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
250
|
+
|
251
|
+
EventEmitter.prototype.prependListener =
|
252
|
+
function prependListener(type, listener) {
|
253
|
+
return _addListener(this, type, listener, true);
|
254
|
+
};
|
255
|
+
|
256
|
+
function onceWrapper() {
|
257
|
+
if (!this.fired) {
|
258
|
+
this.target.removeListener(this.type, this.wrapFn);
|
259
|
+
this.fired = true;
|
260
|
+
if (arguments.length === 0)
|
261
|
+
return this.listener.call(this.target);
|
262
|
+
return this.listener.apply(this.target, arguments);
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
function _onceWrap(target, type, listener) {
|
267
|
+
var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
|
268
|
+
var wrapped = onceWrapper.bind(state);
|
269
|
+
wrapped.listener = listener;
|
270
|
+
state.wrapFn = wrapped;
|
271
|
+
return wrapped;
|
272
|
+
}
|
273
|
+
|
274
|
+
EventEmitter.prototype.once = function once(type, listener) {
|
275
|
+
checkListener(listener);
|
276
|
+
this.on(type, _onceWrap(this, type, listener));
|
277
|
+
return this;
|
278
|
+
};
|
279
|
+
|
280
|
+
EventEmitter.prototype.prependOnceListener =
|
281
|
+
function prependOnceListener(type, listener) {
|
282
|
+
checkListener(listener);
|
283
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
284
|
+
return this;
|
285
|
+
};
|
286
|
+
|
287
|
+
// Emits a 'removeListener' event if and only if the listener was removed.
|
288
|
+
EventEmitter.prototype.removeListener =
|
289
|
+
function removeListener(type, listener) {
|
290
|
+
var list, events, position, i, originalListener;
|
291
|
+
|
292
|
+
checkListener(listener);
|
293
|
+
|
294
|
+
events = this._events;
|
295
|
+
if (events === undefined)
|
296
|
+
return this;
|
297
|
+
|
298
|
+
list = events[type];
|
299
|
+
if (list === undefined)
|
300
|
+
return this;
|
301
|
+
|
302
|
+
if (list === listener || list.listener === listener) {
|
303
|
+
if (--this._eventsCount === 0)
|
304
|
+
this._events = Object.create(null);
|
305
|
+
else {
|
306
|
+
delete events[type];
|
307
|
+
if (events.removeListener)
|
308
|
+
this.emit('removeListener', type, list.listener || listener);
|
309
|
+
}
|
310
|
+
} else if (typeof list !== 'function') {
|
311
|
+
position = -1;
|
312
|
+
|
313
|
+
for (i = list.length - 1; i >= 0; i--) {
|
314
|
+
if (list[i] === listener || list[i].listener === listener) {
|
315
|
+
originalListener = list[i].listener;
|
316
|
+
position = i;
|
317
|
+
break;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
if (position < 0)
|
322
|
+
return this;
|
323
|
+
|
324
|
+
if (position === 0)
|
325
|
+
list.shift();
|
326
|
+
else {
|
327
|
+
spliceOne(list, position);
|
328
|
+
}
|
329
|
+
|
330
|
+
if (list.length === 1)
|
331
|
+
events[type] = list[0];
|
332
|
+
|
333
|
+
if (events.removeListener !== undefined)
|
334
|
+
this.emit('removeListener', type, originalListener || listener);
|
335
|
+
}
|
336
|
+
|
337
|
+
return this;
|
338
|
+
};
|
339
|
+
|
340
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
341
|
+
|
342
|
+
EventEmitter.prototype.removeAllListeners =
|
343
|
+
function removeAllListeners(type) {
|
344
|
+
var listeners, events, i;
|
345
|
+
|
346
|
+
events = this._events;
|
347
|
+
if (events === undefined)
|
348
|
+
return this;
|
349
|
+
|
350
|
+
// not listening for removeListener, no need to emit
|
351
|
+
if (events.removeListener === undefined) {
|
352
|
+
if (arguments.length === 0) {
|
353
|
+
this._events = Object.create(null);
|
354
|
+
this._eventsCount = 0;
|
355
|
+
} else if (events[type] !== undefined) {
|
356
|
+
if (--this._eventsCount === 0)
|
357
|
+
this._events = Object.create(null);
|
358
|
+
else
|
359
|
+
delete events[type];
|
360
|
+
}
|
361
|
+
return this;
|
362
|
+
}
|
363
|
+
|
364
|
+
// emit removeListener for all listeners on all events
|
365
|
+
if (arguments.length === 0) {
|
366
|
+
var keys = Object.keys(events);
|
367
|
+
var key;
|
368
|
+
for (i = 0; i < keys.length; ++i) {
|
369
|
+
key = keys[i];
|
370
|
+
if (key === 'removeListener') continue;
|
371
|
+
this.removeAllListeners(key);
|
372
|
+
}
|
373
|
+
this.removeAllListeners('removeListener');
|
374
|
+
this._events = Object.create(null);
|
375
|
+
this._eventsCount = 0;
|
376
|
+
return this;
|
377
|
+
}
|
43
378
|
|
44
|
-
|
379
|
+
listeners = events[type];
|
380
|
+
|
381
|
+
if (typeof listeners === 'function') {
|
382
|
+
this.removeListener(type, listeners);
|
383
|
+
} else if (listeners !== undefined) {
|
384
|
+
// LIFO order
|
385
|
+
for (i = listeners.length - 1; i >= 0; i--) {
|
386
|
+
this.removeListener(type, listeners[i]);
|
387
|
+
}
|
388
|
+
}
|
389
|
+
|
390
|
+
return this;
|
391
|
+
};
|
392
|
+
|
393
|
+
function _listeners(target, type, unwrap) {
|
394
|
+
var events = target._events;
|
395
|
+
|
396
|
+
if (events === undefined)
|
397
|
+
return [];
|
398
|
+
|
399
|
+
var evlistener = events[type];
|
400
|
+
if (evlistener === undefined)
|
401
|
+
return [];
|
402
|
+
|
403
|
+
if (typeof evlistener === 'function')
|
404
|
+
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
405
|
+
|
406
|
+
return unwrap ?
|
407
|
+
unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
408
|
+
}
|
409
|
+
|
410
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
411
|
+
return _listeners(this, type, true);
|
412
|
+
};
|
413
|
+
|
414
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
415
|
+
return _listeners(this, type, false);
|
416
|
+
};
|
417
|
+
|
418
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
419
|
+
if (typeof emitter.listenerCount === 'function') {
|
420
|
+
return emitter.listenerCount(type);
|
421
|
+
} else {
|
422
|
+
return listenerCount.call(emitter, type);
|
423
|
+
}
|
424
|
+
};
|
425
|
+
|
426
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
427
|
+
function listenerCount(type) {
|
428
|
+
var events = this._events;
|
429
|
+
|
430
|
+
if (events !== undefined) {
|
431
|
+
var evlistener = events[type];
|
432
|
+
|
433
|
+
if (typeof evlistener === 'function') {
|
434
|
+
return 1;
|
435
|
+
} else if (evlistener !== undefined) {
|
436
|
+
return evlistener.length;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
440
|
+
return 0;
|
441
|
+
}
|
442
|
+
|
443
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
444
|
+
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
445
|
+
};
|
446
|
+
|
447
|
+
function arrayClone(arr, n) {
|
448
|
+
var copy = new Array(n);
|
449
|
+
for (var i = 0; i < n; ++i)
|
450
|
+
copy[i] = arr[i];
|
451
|
+
return copy;
|
452
|
+
}
|
453
|
+
|
454
|
+
function spliceOne(list, index) {
|
455
|
+
for (; index + 1 < list.length; index++)
|
456
|
+
list[index] = list[index + 1];
|
457
|
+
list.pop();
|
458
|
+
}
|
459
|
+
|
460
|
+
function unwrapListeners(arr) {
|
461
|
+
var ret = new Array(arr.length);
|
462
|
+
for (var i = 0; i < ret.length; ++i) {
|
463
|
+
ret[i] = arr[i].listener || arr[i];
|
464
|
+
}
|
465
|
+
return ret;
|
466
|
+
}
|
467
|
+
|
468
|
+
function once(emitter, name) {
|
469
|
+
return new Promise(function (resolve, reject) {
|
470
|
+
function errorListener(err) {
|
471
|
+
emitter.removeListener(name, resolver);
|
472
|
+
reject(err);
|
473
|
+
}
|
474
|
+
|
475
|
+
function resolver() {
|
476
|
+
if (typeof emitter.removeListener === 'function') {
|
477
|
+
emitter.removeListener('error', errorListener);
|
478
|
+
}
|
479
|
+
resolve([].slice.call(arguments));
|
480
|
+
}
|
481
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
482
|
+
if (name !== 'error') {
|
483
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
484
|
+
}
|
485
|
+
});
|
486
|
+
}
|
487
|
+
|
488
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
489
|
+
if (typeof emitter.on === 'function') {
|
490
|
+
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
495
|
+
if (typeof emitter.on === 'function') {
|
496
|
+
if (flags.once) {
|
497
|
+
emitter.once(name, listener);
|
498
|
+
} else {
|
499
|
+
emitter.on(name, listener);
|
500
|
+
}
|
501
|
+
} else if (typeof emitter.addEventListener === 'function') {
|
502
|
+
// EventTarget does not have `error` event semantics like Node
|
503
|
+
// EventEmitters, we do not listen for `error` events here.
|
504
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
505
|
+
// IE does not have builtin `{ once: true }` support so we
|
506
|
+
// have to do it manually.
|
507
|
+
if (flags.once) {
|
508
|
+
emitter.removeEventListener(name, wrapListener);
|
509
|
+
}
|
510
|
+
listener(arg);
|
511
|
+
});
|
512
|
+
} else {
|
513
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
514
|
+
}
|
515
|
+
}
|
516
|
+
|
517
|
+
var system = {};
|
518
|
+
|
519
|
+
var base = {};
|
45
520
|
|
46
521
|
var promises = {};
|
47
522
|
|
@@ -84,8 +559,8 @@ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
84
559
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
85
560
|
};
|
86
561
|
var _EmitterBase_emitterAccessor;
|
87
|
-
Object.defineProperty(base
|
88
|
-
base
|
562
|
+
Object.defineProperty(base, "__esModule", { value: true });
|
563
|
+
base.Reply = base.EmitterBase = base.Base = void 0;
|
89
564
|
const promises_1$2 = promises;
|
90
565
|
class Base {
|
91
566
|
/**
|
@@ -106,18 +581,11 @@ class Base {
|
|
106
581
|
get fin() {
|
107
582
|
return this.wire.getFin();
|
108
583
|
}
|
109
|
-
/**
|
110
|
-
* Provides access to the OpenFin representation of the current code context (usually a document
|
111
|
-
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
112
|
-
*
|
113
|
-
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
114
|
-
* on the context in which the devtools panel was opened.
|
115
|
-
*/
|
116
584
|
get me() {
|
117
585
|
return this.wire.me;
|
118
586
|
}
|
119
587
|
}
|
120
|
-
base
|
588
|
+
base.Base = Base;
|
121
589
|
/**
|
122
590
|
* An entity that emits OpenFin events.
|
123
591
|
*
|
@@ -147,9 +615,6 @@ class EmitterBase extends Base {
|
|
147
615
|
this.topic = topic;
|
148
616
|
_EmitterBase_emitterAccessor.set(this, void 0);
|
149
617
|
this.eventNames = () => (this.hasEmitter() ? this.getOrCreateEmitter().eventNames() : []);
|
150
|
-
/**
|
151
|
-
* @internal
|
152
|
-
*/
|
153
618
|
this.emit = (eventType, payload, ...args) => {
|
154
619
|
return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
|
155
620
|
};
|
@@ -192,13 +657,16 @@ class EmitterBase extends Base {
|
|
192
657
|
// This will only be reached if unsubscribe from event that does not exist but do not want to error here
|
193
658
|
return Promise.resolve();
|
194
659
|
};
|
660
|
+
this.addListener = this.on;
|
195
661
|
__classPrivateFieldSet$d(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
196
662
|
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
197
663
|
}
|
198
664
|
/**
|
199
665
|
* Adds a listener to the end of the listeners array for the specified event.
|
200
666
|
*
|
201
|
-
* @
|
667
|
+
* @param eventType
|
668
|
+
* @param listener
|
669
|
+
* @param options
|
202
670
|
*/
|
203
671
|
async on(eventType, listener, options) {
|
204
672
|
await this.registerEventListener(eventType, options, (emitter) => {
|
@@ -208,16 +676,12 @@ class EmitterBase extends Base {
|
|
208
676
|
});
|
209
677
|
return this;
|
210
678
|
}
|
211
|
-
/**
|
212
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
213
|
-
*/
|
214
|
-
async addListener(eventType, listener, options) {
|
215
|
-
return this.on(eventType, listener, options);
|
216
|
-
}
|
217
679
|
/**
|
218
680
|
* 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
681
|
*
|
220
|
-
* @
|
682
|
+
* @param eventType
|
683
|
+
* @param listener
|
684
|
+
* @param options
|
221
685
|
*/
|
222
686
|
async once(eventType, listener, options) {
|
223
687
|
const deregister = () => this.deregisterEventListener(eventType);
|
@@ -233,7 +697,9 @@ class EmitterBase extends Base {
|
|
233
697
|
/**
|
234
698
|
* Adds a listener to the beginning of the listeners array for the specified event.
|
235
699
|
*
|
236
|
-
* @
|
700
|
+
* @param eventType
|
701
|
+
* @param listener
|
702
|
+
* @param options
|
237
703
|
*/
|
238
704
|
async prependListener(eventType, listener, options) {
|
239
705
|
await this.registerEventListener(eventType, options, (emitter) => {
|
@@ -247,7 +713,9 @@ class EmitterBase extends Base {
|
|
247
713
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
|
248
714
|
* after which it is removed. The listener is added to the beginning of the listeners array.
|
249
715
|
*
|
250
|
-
* @
|
716
|
+
* @param eventType
|
717
|
+
* @param listener
|
718
|
+
* @param options
|
251
719
|
*/
|
252
720
|
async prependOnceListener(eventType, listener, options) {
|
253
721
|
const deregister = () => this.deregisterEventListener(eventType);
|
@@ -264,6 +732,10 @@ class EmitterBase extends Base {
|
|
264
732
|
* Remove a listener from the listener array for the specified event.
|
265
733
|
*
|
266
734
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
735
|
+
*
|
736
|
+
* @param eventType
|
737
|
+
* @param listener
|
738
|
+
* @param options
|
267
739
|
*/
|
268
740
|
async removeListener(eventType, listener, options) {
|
269
741
|
const emitter = await this.deregisterEventListener(eventType, options);
|
@@ -290,6 +762,7 @@ class EmitterBase extends Base {
|
|
290
762
|
/**
|
291
763
|
* Removes all listeners, or those of the specified event.
|
292
764
|
*
|
765
|
+
* @param eventType
|
293
766
|
*/
|
294
767
|
async removeAllListeners(eventType) {
|
295
768
|
const removeByEvent = async (event) => {
|
@@ -314,11 +787,11 @@ class EmitterBase extends Base {
|
|
314
787
|
}
|
315
788
|
}
|
316
789
|
}
|
317
|
-
base
|
790
|
+
base.EmitterBase = EmitterBase;
|
318
791
|
_EmitterBase_emitterAccessor = new WeakMap();
|
319
792
|
class Reply {
|
320
793
|
}
|
321
|
-
base
|
794
|
+
base.Reply = Reply;
|
322
795
|
|
323
796
|
var transportErrors = {};
|
324
797
|
|
@@ -351,7 +824,7 @@ class InternalError extends Error {
|
|
351
824
|
const { message, name, stack, ...rest } = err;
|
352
825
|
super(message);
|
353
826
|
this.name = name || 'Error';
|
354
|
-
this.stack = stack
|
827
|
+
this.stack = stack !== null && stack !== void 0 ? stack : this.toString();
|
355
828
|
Object.keys(rest).forEach(key => {
|
356
829
|
this[key] = rest[key];
|
357
830
|
});
|
@@ -360,6 +833,7 @@ class InternalError extends Error {
|
|
360
833
|
// For documentation of the error methods being used see here: https://v8.dev/docs/stack-trace-api
|
361
834
|
class RuntimeError extends Error {
|
362
835
|
static getCallSite(callsToRemove = 0) {
|
836
|
+
var _a, _b;
|
363
837
|
const length = Error.stackTraceLimit;
|
364
838
|
const realCallsToRemove = callsToRemove + 1; // remove this call;
|
365
839
|
Error.stackTraceLimit = length + realCallsToRemove;
|
@@ -368,7 +842,7 @@ class RuntimeError extends Error {
|
|
368
842
|
// This will be called when we access the `stack` property
|
369
843
|
Error.prepareStackTrace = (_, stack) => stack;
|
370
844
|
// stack is optional in non chromium contexts
|
371
|
-
const stack = new Error().stack
|
845
|
+
const stack = (_b = (_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.slice(realCallsToRemove)) !== null && _b !== void 0 ? _b : [];
|
372
846
|
Error.prepareStackTrace = _prepareStackTrace;
|
373
847
|
Error.stackTraceLimit = length;
|
374
848
|
return stack;
|
@@ -390,7 +864,7 @@ class RuntimeError extends Error {
|
|
390
864
|
const { reason, error } = payload;
|
391
865
|
super(reason);
|
392
866
|
this.name = 'RuntimeError';
|
393
|
-
if (error
|
867
|
+
if (error === null || error === void 0 ? void 0 : error.stack) {
|
394
868
|
this.cause = new InternalError(error);
|
395
869
|
}
|
396
870
|
if (callSites) {
|
@@ -400,7 +874,7 @@ class RuntimeError extends Error {
|
|
400
874
|
}
|
401
875
|
transportErrors.RuntimeError = RuntimeError;
|
402
876
|
|
403
|
-
var window$
|
877
|
+
var window$1 = {};
|
404
878
|
|
405
879
|
var Factory$8 = {};
|
406
880
|
|
@@ -419,30 +893,16 @@ validate.validateIdentity = validateIdentity;
|
|
419
893
|
|
420
894
|
var Instance$7 = {};
|
421
895
|
|
422
|
-
var application
|
896
|
+
var application = {};
|
423
897
|
|
424
898
|
var Factory$7 = {};
|
425
899
|
|
426
900
|
var Instance$6 = {};
|
427
901
|
|
428
|
-
var view
|
902
|
+
var view = {};
|
429
903
|
|
430
904
|
var Factory$6 = {};
|
431
905
|
|
432
|
-
var warnings = {};
|
433
|
-
|
434
|
-
Object.defineProperty(warnings, "__esModule", { value: true });
|
435
|
-
warnings.handleDeprecatedWarnings = void 0;
|
436
|
-
const handleDeprecatedWarnings = (options) => {
|
437
|
-
if (options.contentNavigation?.whitelist ||
|
438
|
-
options.contentNavigation?.blacklist ||
|
439
|
-
options.contentRedirect?.whitelist ||
|
440
|
-
options.contentRedirect?.blacklist) {
|
441
|
-
console.warn(`The properties 'whitelist' and 'blacklist' have been marked as deprecated and will be removed in a future version. Please use 'allowlist' and 'denylist'.`);
|
442
|
-
}
|
443
|
-
};
|
444
|
-
warnings.handleDeprecatedWarnings = handleDeprecatedWarnings;
|
445
|
-
|
446
906
|
var hasRequiredFactory$3;
|
447
907
|
|
448
908
|
function requireFactory$3 () {
|
@@ -450,13 +910,9 @@ function requireFactory$3 () {
|
|
450
910
|
hasRequiredFactory$3 = 1;
|
451
911
|
Object.defineProperty(Factory$6, "__esModule", { value: true });
|
452
912
|
Factory$6.ViewModule = void 0;
|
453
|
-
const base_1 = base
|
913
|
+
const base_1 = base;
|
454
914
|
const validate_1 = validate;
|
455
915
|
const index_1 = requireView();
|
456
|
-
const warnings_1 = warnings;
|
457
|
-
/**
|
458
|
-
* Static namespace for OpenFin API methods that interact with the {@link View} class, available under `fin.View`.
|
459
|
-
*/
|
460
916
|
class ViewModule extends base_1.Base {
|
461
917
|
/**
|
462
918
|
* Creates a new View.
|
@@ -491,7 +947,6 @@ function requireFactory$3 () {
|
|
491
947
|
if (!options.name || typeof options.name !== 'string') {
|
492
948
|
throw new Error('Please provide a name property as a string in order to create a View.');
|
493
949
|
}
|
494
|
-
(0, warnings_1.handleDeprecatedWarnings)(options);
|
495
950
|
if (this.wire.environment.childViews) {
|
496
951
|
await this.wire.environment.createChildContent({
|
497
952
|
entityType: 'view',
|
@@ -779,7 +1234,7 @@ class ChannelsExposer {
|
|
779
1234
|
this.exposeFunction = async (target, config) => {
|
780
1235
|
const { key, options, meta } = config;
|
781
1236
|
const { id } = meta;
|
782
|
-
const action = `${id}.${options
|
1237
|
+
const action = `${id}.${(options === null || options === void 0 ? void 0 : options.action) || key}`;
|
783
1238
|
await this.channelProviderOrClient.register(action, async ({ args }) => {
|
784
1239
|
return target(...args);
|
785
1240
|
});
|
@@ -810,7 +1265,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
810
1265
|
};
|
811
1266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
812
1267
|
__exportStar(channelsConsumer, exports);
|
813
|
-
__exportStar(channelsExposer, exports);
|
1268
|
+
__exportStar(channelsExposer, exports);
|
814
1269
|
} (openfinChannels));
|
815
1270
|
|
816
1271
|
(function (exports) {
|
@@ -829,7 +1284,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
829
1284
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
830
1285
|
};
|
831
1286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
832
|
-
__exportStar(openfinChannels, exports);
|
1287
|
+
__exportStar(openfinChannels, exports);
|
833
1288
|
} (strategies));
|
834
1289
|
|
835
1290
|
(function (exports) {
|
@@ -851,7 +1306,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
851
1306
|
__exportStar(apiConsumer, exports);
|
852
1307
|
__exportStar(apiExposer, exports);
|
853
1308
|
__exportStar(strategies, exports);
|
854
|
-
__exportStar(decorators, exports);
|
1309
|
+
__exportStar(decorators, exports);
|
855
1310
|
} (apiExposer$1));
|
856
1311
|
|
857
1312
|
var channelApiRelay = {};
|
@@ -1092,14 +1547,14 @@ _LayoutNode_client = new WeakMap();
|
|
1092
1547
|
/**
|
1093
1548
|
* @ignore
|
1094
1549
|
* @internal
|
1095
|
-
* Encapsulates Api consumption of {@link
|
1550
|
+
* Encapsulates Api consumption of {@link LayoutEntitiesController} with a relayed dispatch
|
1096
1551
|
* @param client
|
1097
1552
|
* @param controllerId
|
1098
1553
|
* @param identity
|
1099
1554
|
* @returns a new instance of {@link LayoutEntitiesClient} with bound to the controllerId
|
1100
1555
|
*/
|
1101
1556
|
LayoutNode.newLayoutEntitiesClient = async (client, controllerId, identity) => {
|
1102
|
-
const dispatch = (0, channel_api_relay_1.createRelayedDispatch)(client, identity, 'layout-relay', 'You are trying to interact with a layout component on a window that
|
1557
|
+
const dispatch = (0, channel_api_relay_1.createRelayedDispatch)(client, identity, 'layout-relay', 'You are trying to interact with a layout component on a window that has been destroyed.');
|
1103
1558
|
const consumer = new api_exposer_1.ApiConsumer(new api_exposer_1.ChannelsConsumer({ dispatch }));
|
1104
1559
|
return consumer.consume({ id: controllerId });
|
1105
1560
|
};
|
@@ -1409,20 +1864,15 @@ _ColumnOrRow_client = new WeakMap();
|
|
1409
1864
|
var layout_constants = {};
|
1410
1865
|
|
1411
1866
|
Object.defineProperty(layout_constants, "__esModule", { value: true });
|
1412
|
-
layout_constants.
|
1867
|
+
layout_constants.LAYOUT_CONTROLLER_ID = void 0;
|
1413
1868
|
layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
|
1414
|
-
layout_constants.DEFAULT_LAYOUT_KEY = 'default';
|
1415
1869
|
|
1416
1870
|
var main = {};
|
1417
1871
|
|
1418
1872
|
Object.defineProperty(main, "__esModule", { value: true });
|
1419
1873
|
main.WebContents = void 0;
|
1420
|
-
const base_1$k = base
|
1874
|
+
const base_1$k = base;
|
1421
1875
|
class WebContents extends base_1$k.EmitterBase {
|
1422
|
-
/**
|
1423
|
-
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
1424
|
-
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
1425
|
-
*/
|
1426
1876
|
constructor(wire, identity, entityType) {
|
1427
1877
|
super(wire, entityType, identity.uuid, identity.name);
|
1428
1878
|
this.identity = identity;
|
@@ -1475,11 +1925,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1475
1925
|
* }
|
1476
1926
|
* console.log(await wnd.capturePage(options));
|
1477
1927
|
* ```
|
1478
|
-
*
|
1479
|
-
* @remarks
|
1480
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1481
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1482
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1483
1928
|
*/
|
1484
1929
|
capturePage(options) {
|
1485
1930
|
return this.wire.sendAction('capture-page', { options, ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1515,10 +1960,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1515
1960
|
*
|
1516
1961
|
* executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
|
1517
1962
|
* ```
|
1518
|
-
* @remarks
|
1519
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1520
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1521
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1522
1963
|
*/
|
1523
1964
|
executeJavaScript(code) {
|
1524
1965
|
return this.wire
|
@@ -1558,10 +1999,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1558
1999
|
*
|
1559
2000
|
* getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
|
1560
2001
|
* ```
|
1561
|
-
* @remarks
|
1562
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1563
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1564
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1565
2002
|
*/
|
1566
2003
|
getZoomLevel() {
|
1567
2004
|
return this.wire.sendAction('get-zoom-level', this.identity).then(({ payload }) => payload.data);
|
@@ -1600,10 +2037,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1600
2037
|
*
|
1601
2038
|
* setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
|
1602
2039
|
* ```
|
1603
|
-
* @remarks
|
1604
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1605
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1606
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1607
2040
|
*/
|
1608
2041
|
setZoomLevel(level) {
|
1609
2042
|
return this.wire.sendAction('set-zoom-level', { ...this.identity, level }).then(() => undefined);
|
@@ -1611,7 +2044,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1611
2044
|
/**
|
1612
2045
|
* Navigates the WebContents to a specified URL.
|
1613
2046
|
*
|
1614
|
-
*
|
2047
|
+
* @remarks The url must contain the protocol prefix such as http:// or https://.
|
1615
2048
|
* @param url - The URL to navigate the WebContents to.
|
1616
2049
|
*
|
1617
2050
|
* @example
|
@@ -1641,10 +2074,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1641
2074
|
* navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
|
1642
2075
|
* ```
|
1643
2076
|
* @experimental
|
1644
|
-
* @remarks
|
1645
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1646
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1647
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1648
2077
|
*/
|
1649
2078
|
navigate(url) {
|
1650
2079
|
return this.wire.sendAction('navigate-window', { ...this.identity, url }).then(() => undefined);
|
@@ -1672,10 +2101,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1672
2101
|
* }
|
1673
2102
|
* navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
|
1674
2103
|
* ```
|
1675
|
-
* @remarks
|
1676
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1677
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1678
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1679
2104
|
*/
|
1680
2105
|
navigateBack() {
|
1681
2106
|
return this.wire.sendAction('navigate-window-back', { ...this.identity }).then(() => undefined);
|
@@ -1705,10 +2130,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1705
2130
|
* }
|
1706
2131
|
* navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
|
1707
2132
|
* ```
|
1708
|
-
* @remarks
|
1709
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1710
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1711
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1712
2133
|
*/
|
1713
2134
|
async navigateForward() {
|
1714
2135
|
await this.wire.sendAction('navigate-window-forward', { ...this.identity });
|
@@ -1736,10 +2157,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1736
2157
|
* }
|
1737
2158
|
* stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
|
1738
2159
|
* ```
|
1739
|
-
* @remarks
|
1740
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1741
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1742
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1743
2160
|
*/
|
1744
2161
|
stopNavigation() {
|
1745
2162
|
return this.wire.sendAction('stop-window-navigation', { ...this.identity }).then(() => undefined);
|
@@ -1777,10 +2194,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1777
2194
|
* console.log('Reloaded window')
|
1778
2195
|
* }).catch(err => console.log(err));
|
1779
2196
|
* ```
|
1780
|
-
* @remarks
|
1781
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1782
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1783
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1784
2197
|
*/
|
1785
2198
|
reload(ignoreCache = false) {
|
1786
2199
|
return this.wire
|
@@ -1794,7 +2207,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1794
2207
|
* Prints the WebContents.
|
1795
2208
|
* @param options Printer Options
|
1796
2209
|
*
|
1797
|
-
*
|
2210
|
+
* @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
|
1798
2211
|
* is empty and the default settings for printing.
|
1799
2212
|
*
|
1800
2213
|
* Use the CSS style `page-break-before: always;` to force print to a new page.
|
@@ -1807,10 +2220,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1807
2220
|
* console.log('print call has been sent to the system');
|
1808
2221
|
* });
|
1809
2222
|
* ```
|
1810
|
-
* @remarks
|
1811
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1812
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1813
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1814
2223
|
*/
|
1815
2224
|
print(options = {}) {
|
1816
2225
|
return this.wire.sendAction('print', { ...this.identity, options }).then(() => undefined);
|
@@ -1820,7 +2229,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1820
2229
|
* @param searchTerm Term to find in page
|
1821
2230
|
* @param options Search options
|
1822
2231
|
*
|
1823
|
-
*
|
2232
|
+
* @remarks By default, each subsequent call will highlight the next text that matches the search term.
|
1824
2233
|
*
|
1825
2234
|
* Returns a promise with the results for the request. By subscribing to the
|
1826
2235
|
* found-in-page event, you can get the results of this call as well.
|
@@ -1855,10 +2264,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1855
2264
|
* console.log(result)
|
1856
2265
|
* });
|
1857
2266
|
* ```
|
1858
|
-
* @remarks
|
1859
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1860
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1861
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1862
2267
|
*/
|
1863
2268
|
findInPage(searchTerm, options) {
|
1864
2269
|
return this.wire
|
@@ -1902,10 +2307,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1902
2307
|
* console.log(results);
|
1903
2308
|
* });
|
1904
2309
|
* ```
|
1905
|
-
* @remarks
|
1906
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1907
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1908
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1909
2310
|
*/
|
1910
2311
|
stopFindInPage(action) {
|
1911
2312
|
return this.wire.sendAction('stop-find-in-page', { ...this.identity, action }).then(() => undefined);
|
@@ -1948,10 +2349,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1948
2349
|
* console.log(err);
|
1949
2350
|
* });
|
1950
2351
|
* ```
|
1951
|
-
* @remarks
|
1952
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1953
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1954
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1955
2352
|
*/
|
1956
2353
|
getPrinters() {
|
1957
2354
|
return this.wire.sendAction('get-printers', { ...this.identity }).then(({ payload }) => payload.data);
|
@@ -1974,10 +2371,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
1974
2371
|
*
|
1975
2372
|
* focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
|
1976
2373
|
* ```
|
1977
|
-
* @remarks
|
1978
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
1979
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
1980
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
1981
2374
|
*/
|
1982
2375
|
async focus({ emitSynthFocused } = { emitSynthFocused: true }) {
|
1983
2376
|
await this.wire.sendAction('focus-window', { emitSynthFocused, ...this.identity });
|
@@ -2009,10 +2402,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2009
2402
|
* .then(() => console.log('Showing dev tools'))
|
2010
2403
|
* .catch(err => console.error(err));
|
2011
2404
|
* ```
|
2012
|
-
* @remarks
|
2013
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2014
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2015
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2016
2405
|
*/
|
2017
2406
|
async showDeveloperTools() {
|
2018
2407
|
// Note this hits the system action map in core state for legacy reasons.
|
@@ -2021,7 +2410,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2021
2410
|
/**
|
2022
2411
|
* Retrieves the process information associated with a WebContents.
|
2023
2412
|
*
|
2024
|
-
*
|
2413
|
+
* @remarks This includes any iframes associated with the WebContents
|
2025
2414
|
*
|
2026
2415
|
* @example
|
2027
2416
|
* View:
|
@@ -2035,10 +2424,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2035
2424
|
* const win = await fin.Window.getCurrent();
|
2036
2425
|
* const processInfo = await win.getProcessInfo();
|
2037
2426
|
* ```
|
2038
|
-
* @remarks
|
2039
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2040
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2041
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2042
2427
|
*/
|
2043
2428
|
async getProcessInfo() {
|
2044
2429
|
const { payload: { data } } = await this.wire.sendAction('get-process-info', this.identity);
|
@@ -2074,10 +2459,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2074
2459
|
* const win = await fin.Window.create(winOption);
|
2075
2460
|
* const sharedWorkers = await win.getSharedWorkers();
|
2076
2461
|
* ```
|
2077
|
-
* @remarks
|
2078
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2079
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2080
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2081
2462
|
*/
|
2082
2463
|
async getSharedWorkers() {
|
2083
2464
|
return this.wire.sendAction('get-shared-workers', this.identity).then(({ payload }) => payload.data);
|
@@ -2112,10 +2493,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2112
2493
|
* const win = await fin.Window.create(winOption);
|
2113
2494
|
* await win.inspectSharedWorker();
|
2114
2495
|
* ```
|
2115
|
-
* @remarks
|
2116
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2117
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2118
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2119
2496
|
*/
|
2120
2497
|
async inspectSharedWorker() {
|
2121
2498
|
await this.wire.sendAction('inspect-shared-worker', { ...this.identity });
|
@@ -2153,10 +2530,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2153
2530
|
* const sharedWorkers = await win.getSharedWorkers();
|
2154
2531
|
* await win.inspectSharedWorkerById(sharedWorkers[0].id);
|
2155
2532
|
* ```
|
2156
|
-
* @remarks
|
2157
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2158
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2159
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2160
2533
|
*/
|
2161
2534
|
async inspectSharedWorkerById(workerId) {
|
2162
2535
|
await this.wire.sendAction('inspect-shared-worker-by-id', { ...this.identity, workerId });
|
@@ -2191,10 +2564,6 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2191
2564
|
* const win = await fin.Window.create(winOption);
|
2192
2565
|
* await win.inspectServiceWorker();
|
2193
2566
|
* ```
|
2194
|
-
* @remarks
|
2195
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2196
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2197
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2198
2567
|
*/
|
2199
2568
|
async inspectServiceWorker() {
|
2200
2569
|
await this.wire.sendAction('inspect-service-worker', { ...this.identity });
|
@@ -2202,7 +2571,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2202
2571
|
/**
|
2203
2572
|
* Shows a popup window.
|
2204
2573
|
*
|
2205
|
-
*
|
2574
|
+
* @remarks If this WebContents is a view and its attached window has a popup open, this will close it.
|
2206
2575
|
*
|
2207
2576
|
* Shows a popup window. Including a `name` in `options` will attempt to show an existing window as a popup, if
|
2208
2577
|
* that window doesn't exist or no `name` is included a window will be created. If the caller view or the caller
|
@@ -2210,7 +2579,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2210
2579
|
* open popup window before showing the new popup window. Also, if the caller view is destroyed or detached, the popup
|
2211
2580
|
* will be dismissed.
|
2212
2581
|
*
|
2213
|
-
*
|
2582
|
+
* 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.
|
2214
2583
|
*
|
2215
2584
|
* @example
|
2216
2585
|
*
|
@@ -2405,16 +2774,12 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2405
2774
|
* onPopupReady: popupWindowCallback;
|
2406
2775
|
* });
|
2407
2776
|
* ```
|
2408
|
-
* @remarks
|
2409
|
-
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
2410
|
-
* We do not expose an explicit superclass for this functionality, but it does have its own
|
2411
|
-
* {@link OpenFin.WebContentsEvents event namespace}.
|
2412
2777
|
*/
|
2413
2778
|
async showPopupWindow(options) {
|
2414
2779
|
this.wire.sendAction(`${this.entityType}-show-popup-window`, this.identity).catch(() => {
|
2415
2780
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
2416
2781
|
});
|
2417
|
-
if (options
|
2782
|
+
if (options === null || options === void 0 ? void 0 : options.onPopupReady) {
|
2418
2783
|
const readyListener = async ({ popupName }) => {
|
2419
2784
|
try {
|
2420
2785
|
const popupWindow = this.fin.Window.wrapSync({ uuid: this.fin.me.uuid, name: popupName });
|
@@ -2433,8 +2798,8 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2433
2798
|
...options,
|
2434
2799
|
// Internal use only.
|
2435
2800
|
// @ts-expect-error
|
2436
|
-
hasResultCallback: !!options
|
2437
|
-
hasReadyCallback: !!options
|
2801
|
+
hasResultCallback: !!(options === null || options === void 0 ? void 0 : options.onPopupResult),
|
2802
|
+
hasReadyCallback: !!(options === null || options === void 0 ? void 0 : options.onPopupReady)
|
2438
2803
|
},
|
2439
2804
|
...this.identity
|
2440
2805
|
});
|
@@ -2459,7 +2824,7 @@ class WebContents extends base_1$k.EmitterBase {
|
|
2459
2824
|
}
|
2460
2825
|
return popupResult;
|
2461
2826
|
};
|
2462
|
-
if (options
|
2827
|
+
if (options === null || options === void 0 ? void 0 : options.onPopupResult) {
|
2463
2828
|
const dispatchResultListener = async (payload) => {
|
2464
2829
|
await options.onPopupResult(normalizePopupResult(payload));
|
2465
2830
|
};
|
@@ -2785,49 +3150,6 @@ function requireInstance$2 () {
|
|
2785
3150
|
this.show = async () => {
|
2786
3151
|
await this.wire.sendAction('show-view', { ...this.identity });
|
2787
3152
|
};
|
2788
|
-
/**
|
2789
|
-
* Sets the bounds (top, left, width, height) of the view relative to its window and shows it if it is hidden.
|
2790
|
-
* This method ensures the view is both positioned and showing. It will reposition a visible view and both show and reposition a hidden view.
|
2791
|
-
*
|
2792
|
-
* @remarks View position is relative to the bounds of the window.
|
2793
|
-
* ({top: 0, left: 0} represents the top left corner of the window)
|
2794
|
-
*
|
2795
|
-
* @example
|
2796
|
-
* ```js
|
2797
|
-
* let view;
|
2798
|
-
* async function createView() {
|
2799
|
-
* const me = await fin.Window.getCurrent();
|
2800
|
-
* return fin.View.create({
|
2801
|
-
* name: 'viewNameSetBounds',
|
2802
|
-
* target: me.identity,
|
2803
|
-
* bounds: {top: 10, left: 10, width: 200, height: 200}
|
2804
|
-
* });
|
2805
|
-
* }
|
2806
|
-
*
|
2807
|
-
* async function showViewAt() {
|
2808
|
-
* view = await createView();
|
2809
|
-
* console.log('View created.');
|
2810
|
-
*
|
2811
|
-
* await view.navigate('https://google.com');
|
2812
|
-
* console.log('View navigated to given url.');
|
2813
|
-
*
|
2814
|
-
* await view.showAt({
|
2815
|
-
* top: 100,
|
2816
|
-
* left: 100,
|
2817
|
-
* width: 300,
|
2818
|
-
* height: 300
|
2819
|
-
* });
|
2820
|
-
* }
|
2821
|
-
*
|
2822
|
-
* showViewAt()
|
2823
|
-
* .then(() => console.log('View set to new bounds and shown.'))
|
2824
|
-
* .catch(err => console.log(err));
|
2825
|
-
* ```
|
2826
|
-
* @experimental
|
2827
|
-
*/
|
2828
|
-
this.showAt = async (bounds) => {
|
2829
|
-
await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
|
2830
|
-
};
|
2831
3153
|
/**
|
2832
3154
|
* Hides the current view if it is currently visible.
|
2833
3155
|
*
|
@@ -2987,24 +3309,8 @@ function requireInstance$2 () {
|
|
2987
3309
|
this.wire.sendAction('view-get-parent-layout', { ...this.identity }).catch(() => {
|
2988
3310
|
// don't expose
|
2989
3311
|
});
|
2990
|
-
const
|
2991
|
-
|
2992
|
-
const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
|
2993
|
-
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
|
2994
|
-
const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
|
2995
|
-
return this.fin.Platform.Layout.wrap(layoutIdentity);
|
2996
|
-
}
|
2997
|
-
catch (e) {
|
2998
|
-
const allowedErrors = [
|
2999
|
-
'No action registered at target for',
|
3000
|
-
'getLayoutIdentityForViewOrThrow is not a function'
|
3001
|
-
];
|
3002
|
-
if (!allowedErrors.some((m) => e.message.includes(m))) {
|
3003
|
-
throw e;
|
3004
|
-
}
|
3005
|
-
// fallback logic for missing endpoint
|
3006
|
-
return this.fin.Platform.Layout.wrap(layoutWindow.identity);
|
3007
|
-
}
|
3312
|
+
const currentWindow = await this.getCurrentWindow();
|
3313
|
+
return currentWindow.getLayout();
|
3008
3314
|
};
|
3009
3315
|
/**
|
3010
3316
|
* Gets the View's options.
|
@@ -3219,7 +3525,7 @@ function requireInstance$2 () {
|
|
3219
3525
|
var hasRequiredView;
|
3220
3526
|
|
3221
3527
|
function requireView () {
|
3222
|
-
if (hasRequiredView) return view
|
3528
|
+
if (hasRequiredView) return view;
|
3223
3529
|
hasRequiredView = 1;
|
3224
3530
|
(function (exports) {
|
3225
3531
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
@@ -3238,9 +3544,9 @@ function requireView () {
|
|
3238
3544
|
};
|
3239
3545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3240
3546
|
/**
|
3241
|
-
* Entry points for the OpenFin `View` API
|
3547
|
+
* Entry points for the OpenFin `View` API.
|
3242
3548
|
*
|
3243
|
-
* * {@link ViewModule} contains static
|
3549
|
+
* * {@link ViewModule} contains static methods relating to the `View` type, accessible through `fin.View`.
|
3244
3550
|
* * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
|
3245
3551
|
*
|
3246
3552
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -3249,9 +3555,9 @@ function requireView () {
|
|
3249
3555
|
* @packageDocumentation
|
3250
3556
|
*/
|
3251
3557
|
__exportStar(requireFactory$3(), exports);
|
3252
|
-
__exportStar(requireInstance$2(), exports);
|
3253
|
-
|
3254
|
-
return view
|
3558
|
+
__exportStar(requireInstance$2(), exports);
|
3559
|
+
} (view));
|
3560
|
+
return view;
|
3255
3561
|
}
|
3256
3562
|
|
3257
3563
|
var hasRequiredInstance$1;
|
@@ -3262,7 +3568,7 @@ function requireInstance$1 () {
|
|
3262
3568
|
Object.defineProperty(Instance$6, "__esModule", { value: true });
|
3263
3569
|
Instance$6.Application = void 0;
|
3264
3570
|
/* eslint-disable import/prefer-default-export */
|
3265
|
-
const base_1 = base
|
3571
|
+
const base_1 = base;
|
3266
3572
|
const window_1 = requireWindow();
|
3267
3573
|
const view_1 = requireView();
|
3268
3574
|
/**
|
@@ -3737,7 +4043,6 @@ function requireInstance$1 () {
|
|
3737
4043
|
/**
|
3738
4044
|
* Sets or removes a custom JumpList for the application. Only applicable in Windows OS.
|
3739
4045
|
* If categories is null the previously set custom JumpList (if any) will be replaced by the standard JumpList for the app (managed by Windows).
|
3740
|
-
*
|
3741
4046
|
* Note: If the "name" property is omitted it defaults to "tasks".
|
3742
4047
|
* @param jumpListCategories An array of JumpList Categories to populate. If null, remove any existing JumpList configuration and set to Windows default.
|
3743
4048
|
*
|
@@ -4038,7 +4343,6 @@ function requireInstance$1 () {
|
|
4038
4343
|
}
|
4039
4344
|
/**
|
4040
4345
|
* Sets file auto download location. It's only allowed in the same application.
|
4041
|
-
*
|
4042
4346
|
* Note: This method is restricted by default and must be enabled via
|
4043
4347
|
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
4044
4348
|
* @param downloadLocation file auto download location
|
@@ -4064,7 +4368,6 @@ function requireInstance$1 () {
|
|
4064
4368
|
}
|
4065
4369
|
/**
|
4066
4370
|
* 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.
|
4067
|
-
*
|
4068
4371
|
* Note: This method is restricted by default and must be enabled via
|
4069
4372
|
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
4070
4373
|
*
|
@@ -4092,12 +4395,9 @@ function requireFactory$2 () {
|
|
4092
4395
|
hasRequiredFactory$2 = 1;
|
4093
4396
|
Object.defineProperty(Factory$7, "__esModule", { value: true });
|
4094
4397
|
Factory$7.ApplicationModule = void 0;
|
4095
|
-
const base_1 = base
|
4398
|
+
const base_1 = base;
|
4096
4399
|
const validate_1 = validate;
|
4097
4400
|
const Instance_1 = requireInstance$1();
|
4098
|
-
/**
|
4099
|
-
* Static namespace for OpenFin API methods that interact with the {@link Application} class, available under `fin.Application`.
|
4100
|
-
*/
|
4101
4401
|
class ApplicationModule extends base_1.Base {
|
4102
4402
|
/**
|
4103
4403
|
* Asynchronously returns an Application object that represents an existing application.
|
@@ -4360,7 +4660,7 @@ function requireFactory$2 () {
|
|
4360
4660
|
var hasRequiredApplication;
|
4361
4661
|
|
4362
4662
|
function requireApplication () {
|
4363
|
-
if (hasRequiredApplication) return application
|
4663
|
+
if (hasRequiredApplication) return application;
|
4364
4664
|
hasRequiredApplication = 1;
|
4365
4665
|
(function (exports) {
|
4366
4666
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
@@ -4379,9 +4679,9 @@ function requireApplication () {
|
|
4379
4679
|
};
|
4380
4680
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4381
4681
|
/**
|
4382
|
-
* Entry points for the OpenFin `Application` API
|
4682
|
+
* Entry points for the OpenFin `Application` API.
|
4383
4683
|
*
|
4384
|
-
* * {@link ApplicationModule} contains static
|
4684
|
+
* * {@link ApplicationModule} contains static methods relating to the `Application` type, accessible through `fin.Application`.
|
4385
4685
|
* * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
|
4386
4686
|
*
|
4387
4687
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -4390,9 +4690,9 @@ function requireApplication () {
|
|
4390
4690
|
* @packageDocumentation
|
4391
4691
|
*/
|
4392
4692
|
__exportStar(requireFactory$2(), exports);
|
4393
|
-
__exportStar(requireInstance$1(), exports);
|
4394
|
-
|
4395
|
-
return application
|
4693
|
+
__exportStar(requireInstance$1(), exports);
|
4694
|
+
} (application));
|
4695
|
+
return application;
|
4396
4696
|
}
|
4397
4697
|
|
4398
4698
|
var hasRequiredInstance;
|
@@ -4409,7 +4709,6 @@ function requireInstance () {
|
|
4409
4709
|
const application_1 = requireApplication();
|
4410
4710
|
const main_1 = main;
|
4411
4711
|
const view_1 = requireView();
|
4412
|
-
const warnings_1 = warnings;
|
4413
4712
|
/**
|
4414
4713
|
* @PORTED
|
4415
4714
|
* @typedef { object } Margins
|
@@ -4894,6 +5193,7 @@ function requireInstance () {
|
|
4894
5193
|
*/
|
4895
5194
|
constructor(wire, identity) {
|
4896
5195
|
super(wire, identity, 'window');
|
5196
|
+
this.identity = identity;
|
4897
5197
|
}
|
4898
5198
|
/**
|
4899
5199
|
* Adds a listener to the end of the listeners array for the specified event.
|
@@ -5019,7 +5319,6 @@ function requireInstance () {
|
|
5019
5319
|
if (options.autoShow === undefined) {
|
5020
5320
|
options.autoShow = true;
|
5021
5321
|
}
|
5022
|
-
(0, warnings_1.handleDeprecatedWarnings)(options);
|
5023
5322
|
const windowCreation = this.wire.environment.createChildContent({ entityType: 'window', options });
|
5024
5323
|
Promise.all([pageResponse, windowCreation])
|
5025
5324
|
.then((resolvedArr) => {
|
@@ -5436,15 +5735,15 @@ function requireInstance () {
|
|
5436
5735
|
* ```
|
5437
5736
|
* @experimental
|
5438
5737
|
*/
|
5439
|
-
async getLayout(
|
5738
|
+
async getLayout() {
|
5440
5739
|
this.wire.sendAction('window-get-layout', this.identity).catch((e) => {
|
5441
5740
|
// don't expose
|
5442
5741
|
});
|
5443
5742
|
const opts = await this.getOptions();
|
5444
|
-
if (!opts.layout
|
5743
|
+
if (!opts.layout) {
|
5445
5744
|
throw new Error('Window does not have a Layout');
|
5446
5745
|
}
|
5447
|
-
return this.fin.Platform.Layout.wrap(
|
5746
|
+
return this.fin.Platform.Layout.wrap(this.identity);
|
5448
5747
|
}
|
5449
5748
|
/**
|
5450
5749
|
* Gets the current settings of the window.
|
@@ -5725,12 +6024,11 @@ function requireInstance () {
|
|
5725
6024
|
* moveBy(580, 300).then(() => console.log('Moved')).catch(err => console.log(err));
|
5726
6025
|
* ```
|
5727
6026
|
*/
|
5728
|
-
moveBy(deltaLeft, deltaTop
|
6027
|
+
moveBy(deltaLeft, deltaTop) {
|
5729
6028
|
return this.wire
|
5730
6029
|
.sendAction('move-window-by', {
|
5731
6030
|
deltaLeft,
|
5732
6031
|
deltaTop,
|
5733
|
-
positioningOptions,
|
5734
6032
|
...this.identity
|
5735
6033
|
})
|
5736
6034
|
.then(() => undefined);
|
@@ -5760,12 +6058,11 @@ function requireInstance () {
|
|
5760
6058
|
* moveTo(580, 300).then(() => console.log('Moved')).catch(err => console.log(err))
|
5761
6059
|
* ```
|
5762
6060
|
*/
|
5763
|
-
moveTo(left, top
|
6061
|
+
moveTo(left, top) {
|
5764
6062
|
return this.wire
|
5765
6063
|
.sendAction('move-window', {
|
5766
6064
|
left,
|
5767
6065
|
top,
|
5768
|
-
positioningOptions,
|
5769
6066
|
...this.identity
|
5770
6067
|
})
|
5771
6068
|
.then(() => undefined);
|
@@ -5798,13 +6095,12 @@ function requireInstance () {
|
|
5798
6095
|
* resizeBy(580, 300, 'top-right').then(() => console.log('Resized')).catch(err => console.log(err));
|
5799
6096
|
* ```
|
5800
6097
|
*/
|
5801
|
-
resizeBy(deltaWidth, deltaHeight, anchor
|
6098
|
+
resizeBy(deltaWidth, deltaHeight, anchor) {
|
5802
6099
|
return this.wire
|
5803
6100
|
.sendAction('resize-window-by', {
|
5804
6101
|
deltaWidth: Math.floor(deltaWidth),
|
5805
6102
|
deltaHeight: Math.floor(deltaHeight),
|
5806
6103
|
anchor,
|
5807
|
-
positioningOptions,
|
5808
6104
|
...this.identity
|
5809
6105
|
})
|
5810
6106
|
.then(() => undefined);
|
@@ -5837,13 +6133,12 @@ function requireInstance () {
|
|
5837
6133
|
* resizeTo(580, 300, 'top-left').then(() => console.log('Resized')).catch(err => console.log(err));
|
5838
6134
|
* ```
|
5839
6135
|
*/
|
5840
|
-
resizeTo(width, height, anchor
|
6136
|
+
resizeTo(width, height, anchor) {
|
5841
6137
|
return this.wire
|
5842
6138
|
.sendAction('resize-window', {
|
5843
6139
|
width: Math.floor(width),
|
5844
6140
|
height: Math.floor(height),
|
5845
6141
|
anchor,
|
5846
|
-
positioningOptions,
|
5847
6142
|
...this.identity
|
5848
6143
|
})
|
5849
6144
|
.then(() => undefined);
|
@@ -5902,6 +6197,7 @@ function requireInstance () {
|
|
5902
6197
|
}
|
5903
6198
|
/**
|
5904
6199
|
* Sets the window's size and position.
|
6200
|
+
* @property { Bounds } bounds This is a * @type {string} name - name of the window.object that holds the propertys of
|
5905
6201
|
*
|
5906
6202
|
* @example
|
5907
6203
|
* ```js
|
@@ -5928,10 +6224,8 @@ function requireInstance () {
|
|
5928
6224
|
* }).then(() => console.log('Bounds set to window')).catch(err => console.log(err));
|
5929
6225
|
* ```
|
5930
6226
|
*/
|
5931
|
-
setBounds(bounds
|
5932
|
-
return this.wire
|
5933
|
-
.sendAction('set-window-bounds', { ...bounds, ...this.identity, positioningOptions })
|
5934
|
-
.then(() => undefined);
|
6227
|
+
setBounds(bounds) {
|
6228
|
+
return this.wire.sendAction('set-window-bounds', { ...bounds, ...this.identity }).then(() => undefined);
|
5935
6229
|
}
|
5936
6230
|
/**
|
5937
6231
|
* Shows the window if it is hidden.
|
@@ -6073,10 +6367,7 @@ function requireInstance () {
|
|
6073
6367
|
* Calling this method will close previously opened menus.
|
6074
6368
|
* @experimental
|
6075
6369
|
* @param options
|
6076
|
-
*
|
6077
|
-
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
6078
|
-
* of all possible data shapes for the entire menu, and the click handler should process
|
6079
|
-
* these with a "reducer" pattern.
|
6370
|
+
*
|
6080
6371
|
* @example
|
6081
6372
|
* This could be used to show a drop down menu over views in a platform window:
|
6082
6373
|
* ```js
|
@@ -6166,7 +6457,6 @@ function requireInstance () {
|
|
6166
6457
|
return this.wire.sendAction('close-popup-menu', { ...this.identity }).then(() => undefined);
|
6167
6458
|
}
|
6168
6459
|
/**
|
6169
|
-
* @PORTED
|
6170
6460
|
* @typedef {object} PopupOptions
|
6171
6461
|
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
6172
6462
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
@@ -6184,7 +6474,6 @@ function requireInstance () {
|
|
6184
6474
|
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
6185
6475
|
*/
|
6186
6476
|
/**
|
6187
|
-
* @PORTED
|
6188
6477
|
* @typedef {object} PopupResult
|
6189
6478
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
6190
6479
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
@@ -6275,12 +6564,9 @@ function requireFactory$1 () {
|
|
6275
6564
|
hasRequiredFactory$1 = 1;
|
6276
6565
|
Object.defineProperty(Factory$8, "__esModule", { value: true });
|
6277
6566
|
Factory$8._WindowModule = void 0;
|
6278
|
-
const base_1 = base
|
6567
|
+
const base_1 = base;
|
6279
6568
|
const validate_1 = validate;
|
6280
6569
|
const Instance_1 = requireInstance();
|
6281
|
-
/**
|
6282
|
-
* Static namespace for OpenFin API methods that interact with the {@link _Window} class, available under `fin.Window`.
|
6283
|
-
*/
|
6284
6570
|
class _WindowModule extends base_1.Base {
|
6285
6571
|
/**
|
6286
6572
|
* Asynchronously returns a Window object that represents an existing window.
|
@@ -6417,7 +6703,7 @@ function requireFactory$1 () {
|
|
6417
6703
|
var hasRequiredWindow;
|
6418
6704
|
|
6419
6705
|
function requireWindow () {
|
6420
|
-
if (hasRequiredWindow) return window$
|
6706
|
+
if (hasRequiredWindow) return window$1;
|
6421
6707
|
hasRequiredWindow = 1;
|
6422
6708
|
(function (exports) {
|
6423
6709
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
@@ -6436,9 +6722,9 @@ function requireWindow () {
|
|
6436
6722
|
};
|
6437
6723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6438
6724
|
/**
|
6439
|
-
* Entry points for the OpenFin `Window` API
|
6725
|
+
* Entry points for the OpenFin `Window` API.
|
6440
6726
|
*
|
6441
|
-
* * {@link _WindowModule} contains static
|
6727
|
+
* * {@link _WindowModule} contains static methods relating to the `Window` type, accessible through `fin.Window`.
|
6442
6728
|
* * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
|
6443
6729
|
*
|
6444
6730
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -6449,24 +6735,17 @@ function requireWindow () {
|
|
6449
6735
|
* @packageDocumentation
|
6450
6736
|
*/
|
6451
6737
|
__exportStar(requireFactory$1(), exports);
|
6452
|
-
__exportStar(requireInstance(), exports);
|
6453
|
-
|
6454
|
-
return window$
|
6738
|
+
__exportStar(requireInstance(), exports);
|
6739
|
+
} (window$1));
|
6740
|
+
return window$1;
|
6455
6741
|
}
|
6456
6742
|
|
6457
|
-
|
6458
|
-
|
6459
|
-
|
6460
|
-
* * {@link System} contains static members of the `System` API (available under `fin.System`)
|
6461
|
-
*
|
6462
|
-
* @packageDocumentation
|
6463
|
-
*/
|
6464
|
-
Object.defineProperty(system$1, "__esModule", { value: true });
|
6465
|
-
system$1.System = void 0;
|
6466
|
-
const base_1$j = base$1;
|
6743
|
+
Object.defineProperty(system, "__esModule", { value: true });
|
6744
|
+
system.System = void 0;
|
6745
|
+
const base_1$j = base;
|
6467
6746
|
const transport_errors_1$2 = transportErrors;
|
6468
6747
|
const window_1 = requireWindow();
|
6469
|
-
const events_1$6 =
|
6748
|
+
const events_1$6 = eventsExports;
|
6470
6749
|
/**
|
6471
6750
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
6472
6751
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
@@ -7468,8 +7747,7 @@ class System extends base_1$j.EmitterBase {
|
|
7468
7747
|
}
|
7469
7748
|
/**
|
7470
7749
|
* Attempt to close an external process. The process will be terminated if it
|
7471
|
-
* has not closed after the elapsed timeout in milliseconds
|
7472
|
-
*
|
7750
|
+
* has not closed after the elapsed timeout in milliseconds.<br>
|
7473
7751
|
* Note: This method is restricted by default and must be enabled via
|
7474
7752
|
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
7475
7753
|
* @param options A object defined in the TerminateExternalRequestType interface
|
@@ -7505,8 +7783,7 @@ class System extends base_1$j.EmitterBase {
|
|
7505
7783
|
return this.wire.sendAction('update-proxy', options).then(() => undefined);
|
7506
7784
|
}
|
7507
7785
|
/**
|
7508
|
-
* Downloads the given application asset
|
7509
|
-
*
|
7786
|
+
* Downloads the given application asset<br>
|
7510
7787
|
* Note: This method is restricted by default and must be enabled via
|
7511
7788
|
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
7512
7789
|
* @param appAsset App asset object
|
@@ -8309,7 +8586,7 @@ class System extends base_1$j.EmitterBase {
|
|
8309
8586
|
await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
|
8310
8587
|
}
|
8311
8588
|
}
|
8312
|
-
system
|
8589
|
+
system.System = System;
|
8313
8590
|
|
8314
8591
|
var interappbus = {};
|
8315
8592
|
|
@@ -8400,7 +8677,7 @@ class ChannelBase {
|
|
8400
8677
|
try {
|
8401
8678
|
const mainAction = this.subscriptions.has(topic)
|
8402
8679
|
? this.subscriptions.get(topic)
|
8403
|
-
: (currentPayload, id) => (this.defaultAction
|
8680
|
+
: (currentPayload, id) => { var _a; return ((_a = this.defaultAction) !== null && _a !== void 0 ? _a : ChannelBase.defaultAction)(topic, currentPayload, id); };
|
8404
8681
|
const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
|
8405
8682
|
const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
|
8406
8683
|
return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
|
@@ -8729,17 +9006,17 @@ const channelClientsByEndpointId = new Map();
|
|
8729
9006
|
* provider via {@link ChannelClient#dispatch dispatch} and to listen for communication
|
8730
9007
|
* from the provider by registering an action via {@link ChannelClient#register register}.
|
8731
9008
|
*
|
8732
|
-
*
|
9009
|
+
* Synchronous Methods:
|
8733
9010
|
* * {@link ChannelClient#onDisconnection onDisconnection(listener)}
|
8734
9011
|
* * {@link ChannelClient#register register(action, listener)}
|
8735
9012
|
* * {@link ChannelClient#remove remove(action)}
|
8736
9013
|
*
|
8737
|
-
*
|
9014
|
+
* Asynchronous Methods:
|
8738
9015
|
* * {@link ChannelClient#disconnect disconnect()}
|
8739
9016
|
* * {@link ChannelClient#dispatch dispatch(action, payload)}
|
8740
9017
|
*
|
8741
|
-
*
|
8742
|
-
* Middleware functions receive the following arguments: (action, payload, senderId).
|
9018
|
+
* Middleware:
|
9019
|
+
* <br>Middleware functions receive the following arguments: (action, payload, senderId).
|
8743
9020
|
* The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
|
8744
9021
|
* unless it is undefined, in which case the original payload is used. Middleware can be used for side effects.
|
8745
9022
|
* * {@link ChannelClient#setDefaultAction setDefaultAction(middleware)}
|
@@ -8933,6 +9210,7 @@ class ClassicStrategy {
|
|
8933
9210
|
// connection problems occur
|
8934
9211
|
_ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map);
|
8935
9212
|
this.send = async (endpointId, action, payload) => {
|
9213
|
+
var _a;
|
8936
9214
|
const to = __classPrivateFieldGet$c(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
|
8937
9215
|
if (!to) {
|
8938
9216
|
throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
|
@@ -8952,12 +9230,13 @@ class ClassicStrategy {
|
|
8952
9230
|
action,
|
8953
9231
|
payload
|
8954
9232
|
});
|
8955
|
-
__classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)
|
9233
|
+
(_a = __classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)) === null || _a === void 0 ? void 0 : _a.add(p);
|
8956
9234
|
const raw = await p.catch((error) => {
|
8957
9235
|
throw new Error(error.message);
|
8958
9236
|
}).finally(() => {
|
9237
|
+
var _a;
|
8959
9238
|
// clean up the pending promise
|
8960
|
-
__classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)
|
9239
|
+
(_a = __classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)) === null || _a === void 0 ? void 0 : _a.delete(p);
|
8961
9240
|
});
|
8962
9241
|
return raw.payload.data.result;
|
8963
9242
|
};
|
@@ -8978,8 +9257,8 @@ class ClassicStrategy {
|
|
8978
9257
|
const id = __classPrivateFieldGet$c(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
|
8979
9258
|
__classPrivateFieldGet$c(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
|
8980
9259
|
const pendingSet = __classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
|
8981
|
-
pendingSet
|
8982
|
-
const errorMsg = `Channel connection with identity uuid: ${id
|
9260
|
+
pendingSet === null || pendingSet === void 0 ? void 0 : pendingSet.forEach((p) => {
|
9261
|
+
const errorMsg = `Channel connection with identity uuid: ${id === null || id === void 0 ? void 0 : id.uuid} / name: ${id === null || id === void 0 ? void 0 : id.name} / endpointId: ${endpointId} no longer connected.`;
|
8983
9262
|
p.cancel(new Error(errorMsg));
|
8984
9263
|
});
|
8985
9264
|
}
|
@@ -8991,8 +9270,9 @@ class ClassicStrategy {
|
|
8991
9270
|
__classPrivateFieldGet$c(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
|
8992
9271
|
}
|
8993
9272
|
isValidEndpointPayload(payload) {
|
8994
|
-
|
8995
|
-
|
9273
|
+
var _a, _b;
|
9274
|
+
return (typeof ((_a = payload === null || payload === void 0 ? void 0 : payload.endpointIdentity) === null || _a === void 0 ? void 0 : _a.endpointId) === 'string' ||
|
9275
|
+
typeof ((_b = payload === null || payload === void 0 ? void 0 : payload.endpointIdentity) === null || _b === void 0 ? void 0 : _b.channelId) === 'string');
|
8996
9276
|
}
|
8997
9277
|
}
|
8998
9278
|
strategy$2.ClassicStrategy = ClassicStrategy;
|
@@ -9069,12 +9349,13 @@ class RTCEndpoint {
|
|
9069
9349
|
this.rtc.rtcClient.close();
|
9070
9350
|
};
|
9071
9351
|
this.rtc.channels.response.addEventListener('message', (e) => {
|
9352
|
+
var _a;
|
9072
9353
|
let { data } = e;
|
9073
9354
|
if (e.data instanceof ArrayBuffer) {
|
9074
9355
|
data = new TextDecoder().decode(e.data);
|
9075
9356
|
}
|
9076
9357
|
const { messageId, payload, success, error } = JSON.parse(data);
|
9077
|
-
const { resolve, reject } = this.responseMap.get(messageId)
|
9358
|
+
const { resolve, reject } = (_a = this.responseMap.get(messageId)) !== null && _a !== void 0 ? _a : {};
|
9078
9359
|
if (resolve && reject) {
|
9079
9360
|
this.responseMap.delete(messageId);
|
9080
9361
|
if (success) {
|
@@ -9247,7 +9528,7 @@ var iceManager = {};
|
|
9247
9528
|
|
9248
9529
|
Object.defineProperty(iceManager, "__esModule", { value: true });
|
9249
9530
|
iceManager.RTCICEManager = void 0;
|
9250
|
-
const base_1$i = base
|
9531
|
+
const base_1$i = base;
|
9251
9532
|
/*
|
9252
9533
|
Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
|
9253
9534
|
*/
|
@@ -9323,8 +9604,9 @@ class RTCICEManager extends base_1$i.EmitterBase {
|
|
9323
9604
|
const rtcConnectionId = Math.random().toString();
|
9324
9605
|
const rtcClient = this.createRtcPeer();
|
9325
9606
|
rtcClient.addEventListener('icecandidate', async (e) => {
|
9607
|
+
var _a;
|
9326
9608
|
if (e.candidate) {
|
9327
|
-
await this.raiseClientIce(rtcConnectionId, { candidate: e.candidate
|
9609
|
+
await this.raiseClientIce(rtcConnectionId, { candidate: (_a = e.candidate) === null || _a === void 0 ? void 0 : _a.toJSON() });
|
9328
9610
|
}
|
9329
9611
|
});
|
9330
9612
|
await this.listenForProviderIce(rtcConnectionId, async (payload) => {
|
@@ -9349,8 +9631,9 @@ class RTCICEManager extends base_1$i.EmitterBase {
|
|
9349
9631
|
const requestChannelPromise = RTCICEManager.createDataChannelPromise('request', rtcClient);
|
9350
9632
|
const responseChannelPromise = RTCICEManager.createDataChannelPromise('response', rtcClient);
|
9351
9633
|
rtcClient.addEventListener('icecandidate', async (e) => {
|
9634
|
+
var _a;
|
9352
9635
|
if (e.candidate) {
|
9353
|
-
await this.raiseProviderIce(rtcConnectionId, { candidate: e.candidate
|
9636
|
+
await this.raiseProviderIce(rtcConnectionId, { candidate: (_a = e.candidate) === null || _a === void 0 ? void 0 : _a.toJSON() });
|
9354
9637
|
}
|
9355
9638
|
});
|
9356
9639
|
await this.listenForClientIce(rtcConnectionId, async (payload) => {
|
@@ -9423,20 +9706,20 @@ const runtimeVersioning_1 = runtimeVersioning;
|
|
9423
9706
|
* a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
|
9424
9707
|
* and to listen for communication from clients by registering an action via {@link ChannelProvider#register register}.
|
9425
9708
|
*
|
9426
|
-
*
|
9709
|
+
* Synchronous Methods:
|
9427
9710
|
* * {@link ChannelProvider#onConnection onConnection(listener)}
|
9428
9711
|
* * {@link ChannelProvider#onDisconnection onDisconnection(listener)}
|
9429
9712
|
* * {@link ChannelProvider#publish publish(action, payload)}
|
9430
9713
|
* * {@link ChannelProvider#register register(action, listener)}
|
9431
9714
|
* * {@link ChannelProvider#remove remove(action)}
|
9432
9715
|
*
|
9433
|
-
*
|
9716
|
+
* Asynchronous Methods:
|
9434
9717
|
* * {@link ChannelProvider#destroy destroy()}
|
9435
9718
|
* * {@link ChannelProvider#dispatch dispatch(to, action, payload)}
|
9436
9719
|
* * {@link ChannelProvider#getAllClientInfo getAllClientInfo()}
|
9437
9720
|
*
|
9438
|
-
*
|
9439
|
-
* Middleware functions receive the following arguments: (action, payload, senderId).
|
9721
|
+
* Middleware:
|
9722
|
+
* <br>Middleware functions receive the following arguments: (action, payload, senderId).
|
9440
9723
|
* The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
|
9441
9724
|
* unless it is undefined, in which case the most recently defined payload is used. Middleware can be used for side effects.
|
9442
9725
|
* * {@link ChannelProvider#setDefaultAction setDefaultAction(middleware)}
|
@@ -9532,7 +9815,8 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
9532
9815
|
* ```
|
9533
9816
|
*/
|
9534
9817
|
dispatch(to, action, payload) {
|
9535
|
-
|
9818
|
+
var _a;
|
9819
|
+
const endpointId = (_a = to.endpointId) !== null && _a !== void 0 ? _a : this.getEndpointIdForOpenFinId(to, action);
|
9536
9820
|
if (endpointId && __classPrivateFieldGet$9(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
|
9537
9821
|
return __classPrivateFieldGet$9(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload);
|
9538
9822
|
}
|
@@ -9708,12 +9992,13 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
9708
9992
|
}
|
9709
9993
|
}
|
9710
9994
|
getEndpointIdForOpenFinId(clientIdentity, action) {
|
9995
|
+
var _a;
|
9711
9996
|
const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
|
9712
9997
|
if (matchingConnections.length >= 2) {
|
9713
9998
|
const protectedObj = __classPrivateFieldGet$9(this, _ChannelProvider_protectedObj, "f");
|
9714
9999
|
const { uuid, name } = clientIdentity;
|
9715
|
-
const providerUuid = protectedObj
|
9716
|
-
const providerName = protectedObj
|
10000
|
+
const providerUuid = protectedObj === null || protectedObj === void 0 ? void 0 : protectedObj.providerIdentity.uuid;
|
10001
|
+
const providerName = protectedObj === null || protectedObj === void 0 ? void 0 : protectedObj.providerIdentity.name;
|
9717
10002
|
// eslint-disable-next-line no-console
|
9718
10003
|
console.warn(`WARNING: Dispatch call may have unintended results. The "to" argument of your dispatch call is missing the
|
9719
10004
|
"endpointId" parameter. The identity you are dispatching to ({uuid: ${uuid}, name: ${name}})
|
@@ -9721,7 +10006,7 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
9721
10006
|
({uuid: ${providerUuid}, name: ${providerName}}) will only be processed by the most recently-created client.`);
|
9722
10007
|
}
|
9723
10008
|
// Pop to return the most recently created endpointId.
|
9724
|
-
return matchingConnections.pop()
|
10009
|
+
return (_a = matchingConnections.pop()) === null || _a === void 0 ? void 0 : _a.endpointId;
|
9725
10010
|
}
|
9726
10011
|
// eslint-disable-next-line class-methods-use-this
|
9727
10012
|
static clientIdentityIncludesEndpointId(subscriptionIdentity) {
|
@@ -9743,7 +10028,7 @@ var messageReceiver = {};
|
|
9743
10028
|
Object.defineProperty(messageReceiver, "__esModule", { value: true });
|
9744
10029
|
messageReceiver.MessageReceiver = void 0;
|
9745
10030
|
const client_1$1 = client;
|
9746
|
-
const base_1$h = base
|
10031
|
+
const base_1$h = base;
|
9747
10032
|
/*
|
9748
10033
|
This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
|
9749
10034
|
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.
|
@@ -9764,10 +10049,9 @@ class MessageReceiver extends base_1$h.Base {
|
|
9764
10049
|
wire.registerMessageHandler(this.onmessage.bind(this));
|
9765
10050
|
}
|
9766
10051
|
async processChannelMessage(msg) {
|
10052
|
+
var _a, _b;
|
9767
10053
|
const { senderIdentity, providerIdentity, action, ackToSender, payload, intendedTargetIdentity } = msg.payload;
|
9768
|
-
const key = intendedTargetIdentity.channelId
|
9769
|
-
intendedTargetIdentity.endpointId ?? // The recipient is a client
|
9770
|
-
this.latestEndpointIdByChannelId.get(providerIdentity.channelId); // No endpointId was passed, make best attempt
|
10054
|
+
const key = (_b = (_a = intendedTargetIdentity.channelId) !== null && _a !== void 0 ? _a : intendedTargetIdentity.endpointId) !== null && _b !== void 0 ? _b : this.latestEndpointIdByChannelId.get(providerIdentity.channelId); // No endpointId was passed, make best attempt
|
9771
10055
|
const handler = this.endpointMap.get(key);
|
9772
10056
|
if (!handler) {
|
9773
10057
|
ackToSender.payload.success = false;
|
@@ -9847,9 +10131,12 @@ class ProtocolManager {
|
|
9847
10131
|
return supported;
|
9848
10132
|
};
|
9849
10133
|
this.getCompatibleProtocols = (providerProtocols, clientOffer) => {
|
9850
|
-
const supported = clientOffer.supportedProtocols.filter((clientProtocol) => providerProtocols.some((providerProtocol) =>
|
9851
|
-
|
9852
|
-
providerProtocol.
|
10134
|
+
const supported = clientOffer.supportedProtocols.filter((clientProtocol) => providerProtocols.some((providerProtocol) => {
|
10135
|
+
var _a;
|
10136
|
+
return providerProtocol.type === clientProtocol.type &&
|
10137
|
+
clientProtocol.version >= providerProtocol.minimumVersion &&
|
10138
|
+
providerProtocol.version >= ((_a = clientProtocol.minimumVersion) !== null && _a !== void 0 ? _a : 0);
|
10139
|
+
}));
|
9853
10140
|
return supported.slice(0, clientOffer.maxProtocols);
|
9854
10141
|
};
|
9855
10142
|
}
|
@@ -9931,7 +10218,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
|
|
9931
10218
|
Object.defineProperty(connectionManager, "__esModule", { value: true });
|
9932
10219
|
connectionManager.ConnectionManager = void 0;
|
9933
10220
|
const exhaustive_1 = exhaustive;
|
9934
|
-
const base_1$g = base
|
10221
|
+
const base_1$g = base;
|
9935
10222
|
const strategy_1 = strategy$2;
|
9936
10223
|
const strategy_2 = strategy$1;
|
9937
10224
|
const ice_manager_1 = iceManager;
|
@@ -9974,7 +10261,7 @@ class ConnectionManager extends base_1$g.Base {
|
|
9974
10261
|
}
|
9975
10262
|
createProvider(options, providerIdentity) {
|
9976
10263
|
const opts = Object.assign(this.wire.environment.getDefaultChannelOptions().create, options || {});
|
9977
|
-
const protocols = this.protocolManager.getProviderProtocols(opts
|
10264
|
+
const protocols = this.protocolManager.getProviderProtocols(opts === null || opts === void 0 ? void 0 : opts.protocols);
|
9978
10265
|
const createSingleStrategy = (stratType) => {
|
9979
10266
|
switch (stratType) {
|
9980
10267
|
case 'rtc':
|
@@ -10011,7 +10298,7 @@ class ConnectionManager extends base_1$g.Base {
|
|
10011
10298
|
return channel;
|
10012
10299
|
}
|
10013
10300
|
async createClientOffer(options) {
|
10014
|
-
const protocols = this.protocolManager.getClientProtocols(options
|
10301
|
+
const protocols = this.protocolManager.getClientProtocols(options === null || options === void 0 ? void 0 : options.protocols);
|
10015
10302
|
let rtcPacket;
|
10016
10303
|
const supportedProtocols = await Promise.all(protocols.map(async (type) => {
|
10017
10304
|
switch (type) {
|
@@ -10039,13 +10326,14 @@ class ConnectionManager extends base_1$g.Base {
|
|
10039
10326
|
};
|
10040
10327
|
}
|
10041
10328
|
async createClientStrategy(rtcPacket, routingInfo) {
|
10329
|
+
var _a;
|
10042
10330
|
if (!routingInfo.endpointId) {
|
10043
10331
|
routingInfo.endpointId = this.wire.environment.getNextMessageId();
|
10044
10332
|
// For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
|
10045
10333
|
// clients that are in the same context as the newly-connected client.
|
10046
10334
|
__classPrivateFieldGet$8(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
|
10047
10335
|
}
|
10048
|
-
const answer = routingInfo.answer
|
10336
|
+
const answer = (_a = routingInfo.answer) !== null && _a !== void 0 ? _a : {
|
10049
10337
|
supportedProtocols: [{ type: 'classic', version: 1 }]
|
10050
10338
|
};
|
10051
10339
|
const createStrategyFromAnswer = async (protocol) => {
|
@@ -10103,7 +10391,7 @@ class ConnectionManager extends base_1$g.Base {
|
|
10103
10391
|
if (!(provider instanceof provider_1$1.ChannelProvider)) {
|
10104
10392
|
throw Error('Cannot connect to a channel client');
|
10105
10393
|
}
|
10106
|
-
const offer = clientOffer
|
10394
|
+
const offer = clientOffer !== null && clientOffer !== void 0 ? clientOffer : {
|
10107
10395
|
supportedProtocols: [{ type: 'classic', version: 1 }],
|
10108
10396
|
maxProtocols: 1
|
10109
10397
|
};
|
@@ -10161,15 +10449,6 @@ class ConnectionManager extends base_1$g.Base {
|
|
10161
10449
|
connectionManager.ConnectionManager = ConnectionManager;
|
10162
10450
|
_ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnectionManager = new WeakMap();
|
10163
10451
|
|
10164
|
-
/**
|
10165
|
-
* Entry points for the `Channel` subset of the `InterApplicationBus` API (`fin.InterApplicationBus.Channel`).
|
10166
|
-
*
|
10167
|
-
* * {@link Channel} contains static members of the `Channel` API, accessible through `fin.InterApplicationBus.Channel`.
|
10168
|
-
* * {@link OpenFin.ChannelClient} describes a client of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.connect`.
|
10169
|
-
* * {@link OpenFin.ChannelProvider} describes a provider of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.create`.
|
10170
|
-
*
|
10171
|
-
* @packageDocumentation
|
10172
|
-
*/
|
10173
10452
|
var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
10174
10453
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
10175
10454
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
@@ -10185,9 +10464,9 @@ var _Channel_connectionManager, _Channel_internalEmitter, _Channel_readyToConnec
|
|
10185
10464
|
Object.defineProperty(channel$1, "__esModule", { value: true });
|
10186
10465
|
channel$1.Channel = void 0;
|
10187
10466
|
/* eslint-disable no-console */
|
10188
|
-
const events_1$5 =
|
10467
|
+
const events_1$5 = eventsExports;
|
10189
10468
|
const lazy_1$1 = lazy;
|
10190
|
-
const base_1$f = base
|
10469
|
+
const base_1$f = base;
|
10191
10470
|
const client_1 = client;
|
10192
10471
|
const connection_manager_1 = connectionManager;
|
10193
10472
|
const provider_1 = provider;
|
@@ -10505,15 +10784,8 @@ _Channel_connectionManager = new WeakMap(), _Channel_internalEmitter = new WeakM
|
|
10505
10784
|
|
10506
10785
|
Object.defineProperty(interappbus, "__esModule", { value: true });
|
10507
10786
|
interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
10508
|
-
|
10509
|
-
|
10510
|
-
*
|
10511
|
-
* * {@link InterApplicationBus} contains static members of the `InterApplicationBus` API, accessible through `fin.InterApplicationBus`.
|
10512
|
-
*
|
10513
|
-
* @packageDocumentation
|
10514
|
-
*/
|
10515
|
-
const events_1$4 = require$$0;
|
10516
|
-
const base_1$e = base$1;
|
10787
|
+
const events_1$4 = eventsExports;
|
10788
|
+
const base_1$e = base;
|
10517
10789
|
const ref_counter_1 = refCounter;
|
10518
10790
|
const index_1$2 = channel$1;
|
10519
10791
|
const validate_1$3 = validate;
|
@@ -10720,16 +10992,9 @@ function createKey(...toHash) {
|
|
10720
10992
|
|
10721
10993
|
var clipboard = {};
|
10722
10994
|
|
10723
|
-
/**
|
10724
|
-
* Entry point for the OpenFin `Clipboard` API (`fin.Clipboard`).
|
10725
|
-
*
|
10726
|
-
* * {@link Clipboard} contains static members of the `Clipboard` API, accessible through `fin.Clipboard`.
|
10727
|
-
*
|
10728
|
-
* @packageDocumentation
|
10729
|
-
*/
|
10730
10995
|
Object.defineProperty(clipboard, "__esModule", { value: true });
|
10731
10996
|
clipboard.Clipboard = void 0;
|
10732
|
-
const base_1$d = base
|
10997
|
+
const base_1$d = base;
|
10733
10998
|
/**
|
10734
10999
|
* @PORTED
|
10735
11000
|
* WriteRequestType interface
|
@@ -10928,7 +11193,7 @@ class Clipboard extends base_1$d.Base {
|
|
10928
11193
|
}
|
10929
11194
|
clipboard.Clipboard = Clipboard;
|
10930
11195
|
|
10931
|
-
var externalApplication
|
11196
|
+
var externalApplication = {};
|
10932
11197
|
|
10933
11198
|
var Factory$5 = {};
|
10934
11199
|
|
@@ -10937,11 +11202,11 @@ var Instance$4 = {};
|
|
10937
11202
|
Object.defineProperty(Instance$4, "__esModule", { value: true });
|
10938
11203
|
Instance$4.ExternalApplication = void 0;
|
10939
11204
|
/* eslint-disable import/prefer-default-export */
|
10940
|
-
const base_1$c = base
|
11205
|
+
const base_1$c = base;
|
10941
11206
|
/**
|
10942
11207
|
* An ExternalApplication object representing native language adapter connections to the runtime. Allows
|
10943
11208
|
* the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
|
10944
|
-
* Discovery of connections is provided by
|
11209
|
+
* Discovery of connections is provided by <a href="tutorial-System.getAllExternalApplications.html">getAllExternalApplications.</a>
|
10945
11210
|
*
|
10946
11211
|
* Processes that can be wrapped as `ExternalApplication`s include the following:
|
10947
11212
|
* - Processes which have connected to an OpenFin runtime via an adapter
|
@@ -11053,11 +11318,8 @@ Instance$4.ExternalApplication = ExternalApplication;
|
|
11053
11318
|
|
11054
11319
|
Object.defineProperty(Factory$5, "__esModule", { value: true });
|
11055
11320
|
Factory$5.ExternalApplicationModule = void 0;
|
11056
|
-
const base_1$b = base
|
11321
|
+
const base_1$b = base;
|
11057
11322
|
const Instance_1$4 = Instance$4;
|
11058
|
-
/**
|
11059
|
-
* Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
|
11060
|
-
*/
|
11061
11323
|
class ExternalApplicationModule extends base_1$b.Base {
|
11062
11324
|
/**
|
11063
11325
|
* Asynchronously returns an External Application object that represents an external application.
|
@@ -11117,9 +11379,9 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
11117
11379
|
};
|
11118
11380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11119
11381
|
/**
|
11120
|
-
* Entry points for the OpenFin `ExternalApplication` API
|
11382
|
+
* Entry points for the OpenFin `ExternalApplication` API.
|
11121
11383
|
*
|
11122
|
-
* * {@link ExternalApplicationModule} contains static
|
11384
|
+
* * {@link ExternalApplicationModule} contains static methods relating to the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
|
11123
11385
|
* * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
|
11124
11386
|
*
|
11125
11387
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -11128,10 +11390,10 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
11128
11390
|
* @packageDocumentation
|
11129
11391
|
*/
|
11130
11392
|
__exportStar(Factory$5, exports);
|
11131
|
-
__exportStar(Instance$4, exports);
|
11132
|
-
} (externalApplication
|
11393
|
+
__exportStar(Instance$4, exports);
|
11394
|
+
} (externalApplication));
|
11133
11395
|
|
11134
|
-
var frame
|
11396
|
+
var frame = {};
|
11135
11397
|
|
11136
11398
|
var Factory$4 = {};
|
11137
11399
|
|
@@ -11140,7 +11402,7 @@ var Instance$3 = {};
|
|
11140
11402
|
Object.defineProperty(Instance$3, "__esModule", { value: true });
|
11141
11403
|
Instance$3._Frame = void 0;
|
11142
11404
|
/* eslint-disable import/prefer-default-export */
|
11143
|
-
const base_1$a = base
|
11405
|
+
const base_1$a = base;
|
11144
11406
|
/**
|
11145
11407
|
* An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
|
11146
11408
|
* has its own DOM and global JS context (which may or may not be linked to that of the parent depending
|
@@ -11282,12 +11544,9 @@ Instance$3._Frame = _Frame;
|
|
11282
11544
|
|
11283
11545
|
Object.defineProperty(Factory$4, "__esModule", { value: true });
|
11284
11546
|
Factory$4._FrameModule = void 0;
|
11285
|
-
const base_1$9 = base
|
11547
|
+
const base_1$9 = base;
|
11286
11548
|
const validate_1$2 = validate;
|
11287
11549
|
const Instance_1$3 = Instance$3;
|
11288
|
-
/**
|
11289
|
-
* Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
|
11290
|
-
*/
|
11291
11550
|
class _FrameModule extends base_1$9.Base {
|
11292
11551
|
/**
|
11293
11552
|
* Asynchronously returns a reference to the specified frame. The frame does not have to exist
|
@@ -11368,12 +11627,12 @@ Factory$4._FrameModule = _FrameModule;
|
|
11368
11627
|
|
11369
11628
|
(function (exports) {
|
11370
11629
|
/**
|
11371
|
-
* Entry points for the OpenFin `Frame` API
|
11630
|
+
* Entry points for the OpenFin `Frame` API.
|
11372
11631
|
*
|
11373
|
-
* * {@link _FrameModule} contains static
|
11632
|
+
* * {@link _FrameModule} contains static methods relating to the `Frame` type, accessible through `fin.Frame`.
|
11374
11633
|
* * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
|
11375
11634
|
*
|
11376
|
-
* These are separate code entities, and are documented separately.
|
11635
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
11377
11636
|
* both of these were documented on the same page.
|
11378
11637
|
*
|
11379
11638
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
@@ -11396,14 +11655,14 @@ Factory$4._FrameModule = _FrameModule;
|
|
11396
11655
|
};
|
11397
11656
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11398
11657
|
__exportStar(Factory$4, exports);
|
11399
|
-
__exportStar(Instance$3, exports);
|
11400
|
-
} (frame
|
11658
|
+
__exportStar(Instance$3, exports);
|
11659
|
+
} (frame));
|
11401
11660
|
|
11402
|
-
var globalHotkey
|
11661
|
+
var globalHotkey = {};
|
11403
11662
|
|
11404
|
-
Object.defineProperty(globalHotkey
|
11405
|
-
globalHotkey
|
11406
|
-
const base_1$8 = base
|
11663
|
+
Object.defineProperty(globalHotkey, "__esModule", { value: true });
|
11664
|
+
globalHotkey.GlobalHotkey = void 0;
|
11665
|
+
const base_1$8 = base;
|
11407
11666
|
/**
|
11408
11667
|
* The GlobalHotkey module can register/unregister a global hotkeys.
|
11409
11668
|
*
|
@@ -11419,8 +11678,6 @@ class GlobalHotkey extends base_1$8.EmitterBase {
|
|
11419
11678
|
* Registers a global hotkey with the operating system.
|
11420
11679
|
* @param hotkey a hotkey string
|
11421
11680
|
* @param listener called when the registered hotkey is pressed by the user.
|
11422
|
-
* @throws If the `hotkey` is reserved, see list below.
|
11423
|
-
* @throws if the `hotkey` is already registered by another application.
|
11424
11681
|
*
|
11425
11682
|
* @remarks The `hotkey` parameter expects an electron compatible [accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) and the `listener` will be called if the `hotkey` is pressed by the user.
|
11426
11683
|
* If successfull, the hotkey will be 'claimed' by the application, meaning that this register call can be called multiple times from within the same application but will fail if another application has registered the hotkey.
|
@@ -11513,7 +11770,7 @@ class GlobalHotkey extends base_1$8.EmitterBase {
|
|
11513
11770
|
return undefined;
|
11514
11771
|
}
|
11515
11772
|
/**
|
11516
|
-
* Checks if a given hotkey has been registered
|
11773
|
+
* Checks if a given hotkey has been registered
|
11517
11774
|
* @param hotkey a hotkey string
|
11518
11775
|
*
|
11519
11776
|
* @example
|
@@ -11534,9 +11791,9 @@ class GlobalHotkey extends base_1$8.EmitterBase {
|
|
11534
11791
|
return data;
|
11535
11792
|
}
|
11536
11793
|
}
|
11537
|
-
globalHotkey
|
11794
|
+
globalHotkey.GlobalHotkey = GlobalHotkey;
|
11538
11795
|
|
11539
|
-
var platform
|
11796
|
+
var platform = {};
|
11540
11797
|
|
11541
11798
|
var Factory$3 = {};
|
11542
11799
|
|
@@ -11551,14 +11808,16 @@ var _Platform_connectToProvider;
|
|
11551
11808
|
Object.defineProperty(Instance$2, "__esModule", { value: true });
|
11552
11809
|
Instance$2.Platform = void 0;
|
11553
11810
|
/* eslint-disable import/prefer-default-export, no-undef */
|
11554
|
-
const base_1$7 = base
|
11811
|
+
const base_1$7 = base;
|
11555
11812
|
const validate_1$1 = validate;
|
11556
11813
|
// Reuse clients to avoid overwriting already-registered client in provider
|
11557
11814
|
const clientMap = new Map();
|
11558
11815
|
/** Manages the life cycle of windows and views in the application.
|
11559
11816
|
*
|
11560
|
-
* Enables taking snapshots of itself and
|
11817
|
+
* Enables taking snapshots of itself and applyi
|
11818
|
+
* ng them to restore a previous configuration
|
11561
11819
|
* as well as listen to {@link OpenFin.PlatformEvents platform events}.
|
11820
|
+
*
|
11562
11821
|
*/
|
11563
11822
|
class Platform extends base_1$7.EmitterBase {
|
11564
11823
|
/**
|
@@ -11917,13 +12176,15 @@ class Platform extends base_1$7.EmitterBase {
|
|
11917
12176
|
});
|
11918
12177
|
}
|
11919
12178
|
/**
|
11920
|
-
* ***DEPRECATED - please use
|
12179
|
+
* ***DEPRECATED - please use Platform.createView.***
|
11921
12180
|
* Reparents a specified view in a new target window.
|
11922
12181
|
* @param viewIdentity View identity
|
11923
12182
|
* @param target new owner window identity
|
11924
12183
|
*
|
12184
|
+
* @tutorial Platform.createView
|
11925
12185
|
*/
|
11926
12186
|
async reparentView(viewIdentity, target) {
|
12187
|
+
var _a;
|
11927
12188
|
// eslint-disable-next-line no-console
|
11928
12189
|
console.warn('Platform.reparentView has been deprecated, please use Platform.createView');
|
11929
12190
|
this.wire.sendAction('platform-reparent-view', this.identity).catch((e) => {
|
@@ -11931,7 +12192,7 @@ class Platform extends base_1$7.EmitterBase {
|
|
11931
12192
|
});
|
11932
12193
|
const normalizedViewIdentity = {
|
11933
12194
|
...viewIdentity,
|
11934
|
-
uuid: viewIdentity.uuid
|
12195
|
+
uuid: (_a = viewIdentity.uuid) !== null && _a !== void 0 ? _a : this.identity.uuid
|
11935
12196
|
};
|
11936
12197
|
const view = await this.fin.View.wrap(normalizedViewIdentity);
|
11937
12198
|
const viewOptions = await view.getOptions();
|
@@ -12410,142 +12671,10 @@ Object.defineProperty(Instance$1, "__esModule", { value: true });
|
|
12410
12671
|
Instance$1.Layout = void 0;
|
12411
12672
|
const lazy_1 = lazy;
|
12412
12673
|
const validate_1 = validate;
|
12413
|
-
const base_1$6 = base
|
12674
|
+
const base_1$6 = base;
|
12414
12675
|
const common_utils_1 = commonUtils;
|
12415
12676
|
const layout_entities_1 = layoutEntities;
|
12416
12677
|
const layout_constants_1 = layout_constants;
|
12417
|
-
/**
|
12418
|
-
*
|
12419
|
-
* Layouts give app providers the ability to embed multiple views in a single window. The Layout namespace
|
12420
|
-
* enables the initialization and manipulation of a window's Layout. A Layout will
|
12421
|
-
* emit events locally on the DOM element representing the layout-container.
|
12422
|
-
*
|
12423
|
-
*
|
12424
|
-
* ### Layout.DOMEvents
|
12425
|
-
*
|
12426
|
-
* When a Layout is created, it emits events onto the DOM element representing the Layout container.
|
12427
|
-
* This Layout container is the DOM element referenced by containerId in {@link Layout.LayoutModule#init Layout.init}.
|
12428
|
-
* You can use the built-in event emitter to listen to these events using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
|
12429
|
-
* The events are emitted synchronously and only in the process where the Layout exists.
|
12430
|
-
* Any values returned by the called listeners are ignored and will be discarded.
|
12431
|
-
* If the target DOM element is destroyed, any events that have been set up on that element will be destroyed.
|
12432
|
-
*
|
12433
|
-
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
12434
|
-
*
|
12435
|
-
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
|
12436
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
12437
|
-
* @example
|
12438
|
-
* ```js
|
12439
|
-
* const myLayoutContainer = document.getElementById('layout-container');
|
12440
|
-
*
|
12441
|
-
* myLayoutContainer.addEventListener('tab-created', function(event) {
|
12442
|
-
* const { tabSelector } = event.detail;
|
12443
|
-
* const tabElement = document.getElementById(tabSelector);
|
12444
|
-
* const existingColor = tabElement.style.backgroundColor;
|
12445
|
-
* tabElement.style.backgroundColor = "red";
|
12446
|
-
* setTimeout(() => {
|
12447
|
-
* tabElement.style.backgroundColor = existingColor;
|
12448
|
-
* }, 2000);
|
12449
|
-
* });
|
12450
|
-
* ```
|
12451
|
-
*
|
12452
|
-
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
|
12453
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
12454
|
-
* @example
|
12455
|
-
* ```js
|
12456
|
-
* const myLayoutContainer = document.getElementById('layout-container');
|
12457
|
-
*
|
12458
|
-
* const listener = function(event) {
|
12459
|
-
* console.log(event.detail);
|
12460
|
-
* console.log('container-created event fired once, removing listener');
|
12461
|
-
* myLayoutContainer.removeEventListener('container-created', listener);
|
12462
|
-
* };
|
12463
|
-
*
|
12464
|
-
* myLayoutContainer.addEventListener('container-created', listener);
|
12465
|
-
* ```
|
12466
|
-
*
|
12467
|
-
* ### Supported event types are:
|
12468
|
-
*
|
12469
|
-
* * tab-created
|
12470
|
-
* * container-created
|
12471
|
-
* * layout-state-changed
|
12472
|
-
* * tab-closed
|
12473
|
-
* * tab-dropped
|
12474
|
-
*
|
12475
|
-
* ### Layout DOM Node Events
|
12476
|
-
*
|
12477
|
-
* #### tab-created
|
12478
|
-
* Generated when a tab is created. As a user drags and drops tabs within window, new tabs are created. A single view may have multiple tabs created and destroyed during its lifetime attached to a single window.
|
12479
|
-
* ```js
|
12480
|
-
* // The response has the following shape in event.detail:
|
12481
|
-
* {
|
12482
|
-
* containerSelector: "container-component_A",
|
12483
|
-
* name: "component_A",
|
12484
|
-
* tabSelector: "tab-component_A",
|
12485
|
-
* topic: "openfin-DOM-event",
|
12486
|
-
* type: "tab-created",
|
12487
|
-
* uuid: "OpenFin POC"
|
12488
|
-
* }
|
12489
|
-
* ```
|
12490
|
-
*
|
12491
|
-
* #### container-created
|
12492
|
-
* Generated when a container is created. A single view will have only one container during its lifetime attached to a single window and the container's lifecycle is tied to the view. To discover when the container is destroyed, please listen to view-detached event.
|
12493
|
-
* ```js
|
12494
|
-
* // The response has the following shape in event.detail:
|
12495
|
-
* {
|
12496
|
-
* containerSelector: "container-component_A",
|
12497
|
-
* name: "component_A",
|
12498
|
-
* tabSelector: "tab-component_A",
|
12499
|
-
* topic: "openfin-DOM-event",
|
12500
|
-
* type: "container-created",
|
12501
|
-
* uuid: "OpenFin POC"
|
12502
|
-
* }
|
12503
|
-
* ```
|
12504
|
-
*
|
12505
|
-
* ### layout-state-changed
|
12506
|
-
* Generated when the state of the layout changes in any way, such as a view added/removed/replaced. Note that this event can fire frequently as the underlying layout can change multiple components from all kinds of changes (resizing for example). Given this, it is recommended to debounce this event and then you can use the {@link Layout#getConfig Layout.getConfig} API to retrieve the most up-to-date state.
|
12507
|
-
* ```js
|
12508
|
-
* // The response has the following shape in event.detail
|
12509
|
-
* {
|
12510
|
-
* containerSelector: "container-component_A",
|
12511
|
-
* name: "component_A",
|
12512
|
-
* tabSelector: "tab-component_A",
|
12513
|
-
* topic: "openfin-DOM-event",
|
12514
|
-
* type: "layout-state-changed",
|
12515
|
-
* uuid: "OpenFin POC"
|
12516
|
-
* }
|
12517
|
-
* ```
|
12518
|
-
*
|
12519
|
-
* #### tab-closed
|
12520
|
-
* Generated when a tab is closed.
|
12521
|
-
* ```js
|
12522
|
-
* // The response has the following shape in event.detail:
|
12523
|
-
* {
|
12524
|
-
* containerSelector: "container-component_A",
|
12525
|
-
* name: "component_A",
|
12526
|
-
* tabSelector: "tab-component_A",
|
12527
|
-
* topic: "openfin-DOM-event",
|
12528
|
-
* type: "tab-closed",
|
12529
|
-
* uuid: "OpenFin POC",
|
12530
|
-
* url: "http://openfin.co" // The url of the view that was closed.
|
12531
|
-
* }
|
12532
|
-
* ```
|
12533
|
-
*
|
12534
|
-
* #### tab-dropped
|
12535
|
-
* Generated when a tab is dropped.
|
12536
|
-
* ```js
|
12537
|
-
* // The response has the following shape in event.detail:
|
12538
|
-
* {
|
12539
|
-
* containerSelector: "container-component_A",
|
12540
|
-
* name: "component_A",
|
12541
|
-
* tabSelector: "tab-component_A",
|
12542
|
-
* topic: "openfin-DOM-event",
|
12543
|
-
* type: "tab-dropped",
|
12544
|
-
* uuid: "OpenFin POC",
|
12545
|
-
* url: "http://openfin.co" // The url of the view linked to the dropped tab.
|
12546
|
-
* }
|
12547
|
-
* ```
|
12548
|
-
*/
|
12549
12678
|
class Layout extends base_1$6.Base {
|
12550
12679
|
/**
|
12551
12680
|
* @internal
|
@@ -12719,30 +12848,10 @@ class Layout extends base_1$6.Base {
|
|
12719
12848
|
// don't expose
|
12720
12849
|
});
|
12721
12850
|
const client = await this.platform.getClient();
|
12722
|
-
console.log(`Layout::toConfig() called!`);
|
12723
12851
|
return client.dispatch('get-frame-snapshot', {
|
12724
12852
|
target: this.identity
|
12725
12853
|
});
|
12726
12854
|
}
|
12727
|
-
/**
|
12728
|
-
* Retrieves the attached views in current window layout.
|
12729
|
-
*
|
12730
|
-
* @example
|
12731
|
-
* ```js
|
12732
|
-
* const layout = fin.Platform.Layout.getCurrentSync();
|
12733
|
-
* const views = await layout.getCurrentViews();
|
12734
|
-
* ```
|
12735
|
-
*/
|
12736
|
-
async getCurrentViews() {
|
12737
|
-
this.wire.sendAction('layout-get-views').catch((e) => {
|
12738
|
-
// don't expose
|
12739
|
-
});
|
12740
|
-
const client = await this.platform.getClient();
|
12741
|
-
const viewIdentities = await client.dispatch('get-layout-views', {
|
12742
|
-
target: this.identity
|
12743
|
-
});
|
12744
|
-
return viewIdentities.map((identity) => this.fin.View.wrapSync(identity));
|
12745
|
-
}
|
12746
12855
|
/**
|
12747
12856
|
* Retrieves the top level content item of the layout.
|
12748
12857
|
*
|
@@ -12769,7 +12878,7 @@ class Layout extends base_1$6.Base {
|
|
12769
12878
|
// don't expose
|
12770
12879
|
});
|
12771
12880
|
const client = await __classPrivateFieldGet$5(this, _Layout_layoutClient, "f").getValue();
|
12772
|
-
const root = await client.getRoot(
|
12881
|
+
const root = await client.getRoot();
|
12773
12882
|
return layout_entities_1.LayoutNode.getEntity(root, client);
|
12774
12883
|
}
|
12775
12884
|
}
|
@@ -12787,20 +12896,16 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
12787
12896
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
12788
12897
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
12789
12898
|
};
|
12790
|
-
var _LayoutModule_layoutInitializationAttempted
|
12899
|
+
var _LayoutModule_layoutInitializationAttempted;
|
12791
12900
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
12792
12901
|
Factory$2.LayoutModule = void 0;
|
12793
12902
|
/* eslint-disable no-undef, import/prefer-default-export */
|
12794
|
-
const base_1$5 = base
|
12903
|
+
const base_1$5 = base;
|
12795
12904
|
const Instance_1$2 = Instance$1;
|
12796
|
-
/**
|
12797
|
-
* Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
|
12798
|
-
*/
|
12799
12905
|
class LayoutModule extends base_1$5.Base {
|
12800
12906
|
constructor() {
|
12801
12907
|
super(...arguments);
|
12802
12908
|
_LayoutModule_layoutInitializationAttempted.set(this, false);
|
12803
|
-
_LayoutModule_layoutManager.set(this, null);
|
12804
12909
|
/**
|
12805
12910
|
* Initialize the window's Layout.
|
12806
12911
|
*
|
@@ -12850,17 +12955,7 @@ class LayoutModule extends base_1$5.Base {
|
|
12850
12955
|
throw new Error('Layout for this window already initialized, please use Layout.replace call to replace the layout.');
|
12851
12956
|
}
|
12852
12957
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
12853
|
-
|
12854
|
-
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayout(this.fin, this.wire, options), "f");
|
12855
|
-
// TODO: if create() wasn't called, warn!! aka, if lm.getLayouts().length === 0
|
12856
|
-
const layoutInstance = await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").resolveLayout();
|
12857
|
-
const layout = this.wrapSync(layoutInstance.identity);
|
12858
|
-
// Adding this to the returned instance undocumented/typed for Browser
|
12859
|
-
// TODO: if not overridden, then return layoutManager: layoutInstance
|
12860
|
-
return Object.assign(layout, { layoutManager: layoutInstance });
|
12861
|
-
};
|
12862
|
-
this.getCurrentLayoutManagerSync = () => {
|
12863
|
-
return __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f");
|
12958
|
+
return this.wire.environment.initLayout(this.fin, this.wire, options);
|
12864
12959
|
};
|
12865
12960
|
}
|
12866
12961
|
/**
|
@@ -12958,13 +13053,13 @@ class LayoutModule extends base_1$5.Base {
|
|
12958
13053
|
}
|
12959
13054
|
}
|
12960
13055
|
Factory$2.LayoutModule = LayoutModule;
|
12961
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap()
|
13056
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap();
|
12962
13057
|
|
12963
13058
|
(function (exports) {
|
12964
13059
|
/**
|
12965
|
-
* Entry point for the OpenFin `Layout`
|
13060
|
+
* Entry point for the OpenFin `Layout` namespace.
|
12966
13061
|
*
|
12967
|
-
* * {@link LayoutModule} contains static
|
13062
|
+
* * {@link LayoutModule} contains static methods relating to the `Layout` type, accessible through `fin.Platform.Layout`.
|
12968
13063
|
* * {@link Layout} describes an instance of an OpenFin Layout, e.g. as returned by `fin.Platform.Layout.getCurrent`.
|
12969
13064
|
*
|
12970
13065
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -12972,6 +13067,131 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
12972
13067
|
*
|
12973
13068
|
* @packageDocumentation
|
12974
13069
|
*
|
13070
|
+
*
|
13071
|
+
* ### Layout.DOMEvents
|
13072
|
+
*
|
13073
|
+
* When a Layout is created, it emits events onto the DOM element representing the Layout container.
|
13074
|
+
* This Layout container is the DOM element referenced by containerId in {@link Layout.LayoutModule#init Layout.init}.
|
13075
|
+
* You can use the built-in event emitter to listen to these events using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener).
|
13076
|
+
* The events are emitted synchronously and only in the process where the Layout exists.
|
13077
|
+
* Any values returned by the called listeners are ignored and will be discarded.
|
13078
|
+
* If the target DOM element is destroyed, any events that have been set up on that element will be destroyed.
|
13079
|
+
*
|
13080
|
+
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
13081
|
+
*
|
13082
|
+
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
|
13083
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
13084
|
+
* @example
|
13085
|
+
* ```js
|
13086
|
+
* const myLayoutContainer = document.getElementById('layout-container');
|
13087
|
+
*
|
13088
|
+
* myLayoutContainer.addEventListener('tab-created', function(event) {
|
13089
|
+
* const { tabSelector } = event.detail;
|
13090
|
+
* const tabElement = document.getElementById(tabSelector);
|
13091
|
+
* const existingColor = tabElement.style.backgroundColor;
|
13092
|
+
* tabElement.style.backgroundColor = "red";
|
13093
|
+
* setTimeout(() => {
|
13094
|
+
* tabElement.style.backgroundColor = existingColor;
|
13095
|
+
* }, 2000);
|
13096
|
+
* });
|
13097
|
+
* ```
|
13098
|
+
*
|
13099
|
+
* #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
|
13100
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
13101
|
+
* @example
|
13102
|
+
* ```js
|
13103
|
+
* const myLayoutContainer = document.getElementById('layout-container');
|
13104
|
+
*
|
13105
|
+
* const listener = function(event) {
|
13106
|
+
* console.log(event.detail);
|
13107
|
+
* console.log('container-created event fired once, removing listener');
|
13108
|
+
* myLayoutContainer.removeEventListener('container-created', listener);
|
13109
|
+
* };
|
13110
|
+
*
|
13111
|
+
* myLayoutContainer.addEventListener('container-created', listener);
|
13112
|
+
* ```
|
13113
|
+
*
|
13114
|
+
* ### Supported event types are:
|
13115
|
+
*
|
13116
|
+
* * tab-created
|
13117
|
+
* * container-created
|
13118
|
+
* * layout-state-changed
|
13119
|
+
* * tab-closed
|
13120
|
+
* * tab-dropped
|
13121
|
+
*
|
13122
|
+
* ### Layout DOM Node Events
|
13123
|
+
*
|
13124
|
+
* #### tab-created
|
13125
|
+
* Generated when a tab is created. As a user drags and drops tabs within window, new tabs are created. A single view may have multiple tabs created and destroyed during its lifetime attached to a single window.
|
13126
|
+
* ```js
|
13127
|
+
* // The response has the following shape in event.detail:
|
13128
|
+
* {
|
13129
|
+
* containerSelector: "container-component_A",
|
13130
|
+
* name: "component_A",
|
13131
|
+
* tabSelector: "tab-component_A",
|
13132
|
+
* topic: "openfin-DOM-event",
|
13133
|
+
* type: "tab-created",
|
13134
|
+
* uuid: "OpenFin POC"
|
13135
|
+
* }
|
13136
|
+
* ```
|
13137
|
+
*
|
13138
|
+
* #### container-created
|
13139
|
+
* Generated when a container is created. A single view will have only one container during its lifetime attached to a single window and the container's lifecycle is tied to the view. To discover when the container is destroyed, please listen to view-detached event.
|
13140
|
+
* ```js
|
13141
|
+
* // The response has the following shape in event.detail:
|
13142
|
+
* {
|
13143
|
+
* containerSelector: "container-component_A",
|
13144
|
+
* name: "component_A",
|
13145
|
+
* tabSelector: "tab-component_A",
|
13146
|
+
* topic: "openfin-DOM-event",
|
13147
|
+
* type: "container-created",
|
13148
|
+
* uuid: "OpenFin POC"
|
13149
|
+
* }
|
13150
|
+
* ```
|
13151
|
+
*
|
13152
|
+
* ### layout-state-changed
|
13153
|
+
* Generated when the state of the layout changes in any way, such as a view added/removed/replaced. Note that this event can fire frequently as the underlying layout can change multiple components from all kinds of changes (resizing for example). Given this, it is recommended to debounce this event and then you can use the {@link Layout#getConfig Layout.getConfig} API to retrieve the most up-to-date state.
|
13154
|
+
* ```js
|
13155
|
+
* // The response has the following shape in event.detail
|
13156
|
+
* {
|
13157
|
+
* containerSelector: "container-component_A",
|
13158
|
+
* name: "component_A",
|
13159
|
+
* tabSelector: "tab-component_A",
|
13160
|
+
* topic: "openfin-DOM-event",
|
13161
|
+
* type: "layout-state-changed",
|
13162
|
+
* uuid: "OpenFin POC"
|
13163
|
+
* }
|
13164
|
+
* ```
|
13165
|
+
*
|
13166
|
+
* #### tab-closed
|
13167
|
+
* Generated when a tab is closed.
|
13168
|
+
* ```js
|
13169
|
+
* // The response has the following shape in event.detail:
|
13170
|
+
* {
|
13171
|
+
* containerSelector: "container-component_A",
|
13172
|
+
* name: "component_A",
|
13173
|
+
* tabSelector: "tab-component_A",
|
13174
|
+
* topic: "openfin-DOM-event",
|
13175
|
+
* type: "tab-closed",
|
13176
|
+
* uuid: "OpenFin POC",
|
13177
|
+
* url: "http://openfin.co" // The url of the view that was closed.
|
13178
|
+
* }
|
13179
|
+
* ```
|
13180
|
+
*
|
13181
|
+
* #### tab-dropped
|
13182
|
+
* Generated when a tab is dropped.
|
13183
|
+
* ```js
|
13184
|
+
* // The response has the following shape in event.detail:
|
13185
|
+
* {
|
13186
|
+
* containerSelector: "container-component_A",
|
13187
|
+
* name: "component_A",
|
13188
|
+
* tabSelector: "tab-component_A",
|
13189
|
+
* topic: "openfin-DOM-event",
|
13190
|
+
* type: "tab-dropped",
|
13191
|
+
* uuid: "OpenFin POC",
|
13192
|
+
* url: "http://openfin.co" // The url of the view linked to the dropped tab.
|
13193
|
+
* }
|
13194
|
+
* ```
|
12975
13195
|
*/
|
12976
13196
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
12977
13197
|
if (k2 === undefined) k2 = k;
|
@@ -12989,17 +13209,14 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
12989
13209
|
};
|
12990
13210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12991
13211
|
__exportStar(Factory$2, exports);
|
12992
|
-
__exportStar(Instance$1, exports);
|
13212
|
+
__exportStar(Instance$1, exports);
|
12993
13213
|
} (layout));
|
12994
13214
|
|
12995
13215
|
Object.defineProperty(Factory$3, "__esModule", { value: true });
|
12996
13216
|
Factory$3.PlatformModule = void 0;
|
12997
|
-
const base_1$4 = base
|
13217
|
+
const base_1$4 = base;
|
12998
13218
|
const Instance_1$1 = Instance$2;
|
12999
13219
|
const index_1$1 = layout;
|
13000
|
-
/**
|
13001
|
-
* Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
|
13002
|
-
*/
|
13003
13220
|
class PlatformModule extends base_1$4.Base {
|
13004
13221
|
/**
|
13005
13222
|
* @internal
|
@@ -13243,9 +13460,9 @@ Factory$3.PlatformModule = PlatformModule;
|
|
13243
13460
|
};
|
13244
13461
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13245
13462
|
/**
|
13246
|
-
* Entry points for the OpenFin `Platform` API
|
13463
|
+
* Entry points for the OpenFin `Platform` API.
|
13247
13464
|
*
|
13248
|
-
* * {@link PlatformModule} contains static
|
13465
|
+
* * {@link PlatformModule} contains static methods relating to the `Platform` type, accessible through `fin.Platform`.
|
13249
13466
|
* * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
|
13250
13467
|
*
|
13251
13468
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -13254,8 +13471,8 @@ Factory$3.PlatformModule = PlatformModule;
|
|
13254
13471
|
* @packageDocumentation
|
13255
13472
|
*/
|
13256
13473
|
__exportStar(Factory$3, exports);
|
13257
|
-
__exportStar(Instance$2, exports);
|
13258
|
-
} (platform
|
13474
|
+
__exportStar(Instance$2, exports);
|
13475
|
+
} (platform));
|
13259
13476
|
|
13260
13477
|
var me = {};
|
13261
13478
|
|
@@ -13263,9 +13480,9 @@ var me = {};
|
|
13263
13480
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13264
13481
|
exports.getMe = exports.getBaseMe = exports.environmentUnsupportedMessage = void 0;
|
13265
13482
|
const view_1 = requireView();
|
13266
|
-
const frame_1 = frame
|
13483
|
+
const frame_1 = frame;
|
13267
13484
|
const window_1 = requireWindow();
|
13268
|
-
const external_application_1 = externalApplication
|
13485
|
+
const external_application_1 = externalApplication;
|
13269
13486
|
exports.environmentUnsupportedMessage = 'You are not running in OpenFin.';
|
13270
13487
|
function getBaseMe(entityType, uuid, name) {
|
13271
13488
|
const entityTypeHelpers = {
|
@@ -13392,7 +13609,7 @@ var me = {};
|
|
13392
13609
|
};
|
13393
13610
|
}
|
13394
13611
|
}
|
13395
|
-
exports.getMe = getMe;
|
13612
|
+
exports.getMe = getMe;
|
13396
13613
|
} (me));
|
13397
13614
|
|
13398
13615
|
var interop = {};
|
@@ -13495,8 +13712,9 @@ function requireSessionContextGroupBroker () {
|
|
13495
13712
|
this.lastContext = context;
|
13496
13713
|
const clientSubscriptionStates = Array.from(this.clients.values());
|
13497
13714
|
clientSubscriptionStates.forEach((client) => {
|
13715
|
+
var _a;
|
13498
13716
|
// eslint-disable-next-line no-unused-expressions
|
13499
|
-
client.contextHandlers.get(context.type)
|
13717
|
+
(_a = client.contextHandlers.get(context.type)) === null || _a === void 0 ? void 0 : _a.forEach((handlerId) => {
|
13500
13718
|
this.provider.dispatch(client.clientIdentity, handlerId, context);
|
13501
13719
|
});
|
13502
13720
|
if (client.globalHandler) {
|
@@ -13630,7 +13848,7 @@ var utils$1 = {};
|
|
13630
13848
|
}
|
13631
13849
|
};
|
13632
13850
|
};
|
13633
|
-
exports.wrapIntentHandler = wrapIntentHandler;
|
13851
|
+
exports.wrapIntentHandler = wrapIntentHandler;
|
13634
13852
|
} (utils$1));
|
13635
13853
|
|
13636
13854
|
var PrivateChannelProvider = {};
|
@@ -13925,7 +14143,7 @@ function requireInteropBroker () {
|
|
13925
14143
|
hasRequiredInteropBroker = 1;
|
13926
14144
|
Object.defineProperty(InteropBroker, "__esModule", { value: true });
|
13927
14145
|
InteropBroker.InteropBroker = void 0;
|
13928
|
-
const base_1 = base
|
14146
|
+
const base_1 = base;
|
13929
14147
|
const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
|
13930
14148
|
const utils_1 = utils$1;
|
13931
14149
|
const lodash_1 = require$$3;
|
@@ -14103,10 +14321,10 @@ function requireInteropBroker () {
|
|
14103
14321
|
this.getProvider = getProvider;
|
14104
14322
|
this.interopClients = new Map();
|
14105
14323
|
this.contextGroupsById = new Map();
|
14106
|
-
if (options
|
14324
|
+
if (options === null || options === void 0 ? void 0 : options.contextGroups) {
|
14107
14325
|
contextGroups = options.contextGroups;
|
14108
14326
|
}
|
14109
|
-
if (options
|
14327
|
+
if (options === null || options === void 0 ? void 0 : options.logging) {
|
14110
14328
|
this.logging = options.logging;
|
14111
14329
|
}
|
14112
14330
|
this.intentClientMap = new Map();
|
@@ -14241,17 +14459,18 @@ function requireInteropBroker () {
|
|
14241
14459
|
*
|
14242
14460
|
*/
|
14243
14461
|
getCurrentContext(getCurrentContextOptions, clientIdentity) {
|
14462
|
+
var _a;
|
14244
14463
|
this.wire.sendAction('interop-broker-get-current-context').catch((e) => {
|
14245
14464
|
// don't expose, analytics-only call
|
14246
14465
|
});
|
14247
14466
|
const clientState = this.getClientState(clientIdentity);
|
14248
|
-
if (!clientState
|
14467
|
+
if (!(clientState === null || clientState === void 0 ? void 0 : clientState.contextGroupId)) {
|
14249
14468
|
throw new Error('You must be a member of a context group to call getCurrentContext');
|
14250
14469
|
}
|
14251
14470
|
const { contextGroupId } = clientState;
|
14252
14471
|
const contextGroupState = this.contextGroupsById.get(contextGroupId);
|
14253
14472
|
const lastContextType = this.lastContextMap.get(contextGroupId);
|
14254
|
-
const contextType = getCurrentContextOptions
|
14473
|
+
const contextType = (_a = getCurrentContextOptions === null || getCurrentContextOptions === void 0 ? void 0 : getCurrentContextOptions.contextType) !== null && _a !== void 0 ? _a : lastContextType;
|
14255
14474
|
return contextGroupState && contextType ? contextGroupState.get(contextType) : undefined;
|
14256
14475
|
}
|
14257
14476
|
/*
|
@@ -14902,9 +15121,10 @@ function requireInteropBroker () {
|
|
14902
15121
|
}
|
14903
15122
|
// Used to restore interop broker state in snapshots.
|
14904
15123
|
applySnapshot(snapshot, options) {
|
14905
|
-
|
15124
|
+
var _a;
|
15125
|
+
const contextGroupStates = (_a = snapshot === null || snapshot === void 0 ? void 0 : snapshot.interopSnapshotDetails) === null || _a === void 0 ? void 0 : _a.contextGroupStates;
|
14906
15126
|
if (contextGroupStates) {
|
14907
|
-
if (!options
|
15127
|
+
if (!(options === null || options === void 0 ? void 0 : options.closeExistingWindows)) {
|
14908
15128
|
this.updateExistingClients(contextGroupStates);
|
14909
15129
|
}
|
14910
15130
|
this.rehydrateContextGroupStates(contextGroupStates);
|
@@ -14955,7 +15175,7 @@ function requireInteropBroker () {
|
|
14955
15175
|
contextHandlerRegistered({ contextType, handlerId }, clientIdentity) {
|
14956
15176
|
const handlerInfo = { contextType, handlerId };
|
14957
15177
|
const clientState = this.getClientState(clientIdentity);
|
14958
|
-
clientState
|
15178
|
+
clientState === null || clientState === void 0 ? void 0 : clientState.contextHandlers.set(handlerId, handlerInfo);
|
14959
15179
|
if (clientState && clientState.contextGroupId) {
|
14960
15180
|
const { contextGroupId } = clientState;
|
14961
15181
|
const contextGroupMap = this.contextGroupsById.get(contextGroupId);
|
@@ -14977,7 +15197,7 @@ function requireInteropBroker () {
|
|
14977
15197
|
async intentHandlerRegistered(payload, clientIdentity) {
|
14978
15198
|
const { handlerId } = payload;
|
14979
15199
|
const clientIntentInfo = this.intentClientMap.get(clientIdentity.name);
|
14980
|
-
const handlerInfo = clientIntentInfo
|
15200
|
+
const handlerInfo = clientIntentInfo === null || clientIntentInfo === void 0 ? void 0 : clientIntentInfo.get(handlerId);
|
14981
15201
|
if (!clientIntentInfo) {
|
14982
15202
|
this.intentClientMap.set(clientIdentity.name, new Map());
|
14983
15203
|
const newHandlerInfoMap = this.intentClientMap.get(clientIdentity.name);
|
@@ -15146,8 +15366,8 @@ function requireInteropBroker () {
|
|
15146
15366
|
clientIdentity
|
15147
15367
|
};
|
15148
15368
|
// Only allow the client to join a contextGroup that actually exists.
|
15149
|
-
if (payload
|
15150
|
-
clientSubscriptionState.contextGroupId = payload
|
15369
|
+
if ((payload === null || payload === void 0 ? void 0 : payload.currentContextGroup) && this.contextGroupsById.has(payload.currentContextGroup)) {
|
15370
|
+
clientSubscriptionState.contextGroupId = payload === null || payload === void 0 ? void 0 : payload.currentContextGroup;
|
15151
15371
|
}
|
15152
15372
|
this.interopClients.set(clientIdentity.endpointId, clientSubscriptionState);
|
15153
15373
|
});
|
@@ -15165,15 +15385,17 @@ function requireInteropBroker () {
|
|
15165
15385
|
this.clientDisconnected(clientIdentity);
|
15166
15386
|
});
|
15167
15387
|
channel.beforeAction(async (action, payload, clientIdentity) => {
|
15388
|
+
var _a, _b;
|
15168
15389
|
if (!(await this.isActionAuthorized(action, payload, clientIdentity))) {
|
15169
15390
|
throw new Error(`Action (${action}) not authorized for ${clientIdentity.uuid}, ${clientIdentity.name}`);
|
15170
15391
|
}
|
15171
|
-
if (this.logging
|
15392
|
+
if ((_b = (_a = this.logging) === null || _a === void 0 ? void 0 : _a.beforeAction) === null || _b === void 0 ? void 0 : _b.enabled) {
|
15172
15393
|
console.log(action, payload, clientIdentity);
|
15173
15394
|
}
|
15174
15395
|
});
|
15175
15396
|
channel.afterAction((action, payload, clientIdentity) => {
|
15176
|
-
|
15397
|
+
var _a, _b;
|
15398
|
+
if ((_b = (_a = this.logging) === null || _a === void 0 ? void 0 : _a.afterAction) === null || _b === void 0 ? void 0 : _b.enabled) {
|
15177
15399
|
console.log(action, payload, clientIdentity);
|
15178
15400
|
}
|
15179
15401
|
});
|
@@ -15255,7 +15477,7 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
15255
15477
|
};
|
15256
15478
|
var _SessionContextGroupClient_clientPromise;
|
15257
15479
|
Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
|
15258
|
-
const base_1$3 = base
|
15480
|
+
const base_1$3 = base;
|
15259
15481
|
const utils_1$3 = utils$1;
|
15260
15482
|
class SessionContextGroupClient extends base_1$3.Base {
|
15261
15483
|
constructor(wire, client, id) {
|
@@ -15342,7 +15564,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
15342
15564
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
|
15343
15565
|
Object.defineProperty(InteropClient$1, "__esModule", { value: true });
|
15344
15566
|
InteropClient$1.InteropClient = void 0;
|
15345
|
-
const base_1$2 = base
|
15567
|
+
const base_1$2 = base;
|
15346
15568
|
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
15347
15569
|
const utils_1$2 = utils$1;
|
15348
15570
|
/**
|
@@ -16022,8 +16244,9 @@ function requireOverrideCheck () {
|
|
16022
16244
|
overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
16023
16245
|
const InteropBroker_1 = requireInteropBroker();
|
16024
16246
|
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
16025
|
-
|
16026
|
-
|
16247
|
+
var _a, _b, _c, _d;
|
16248
|
+
const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
|
16249
|
+
return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
|
16027
16250
|
}
|
16028
16251
|
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
16029
16252
|
// TODO: Unit test this
|
@@ -16060,7 +16283,7 @@ function requireFactory () {
|
|
16060
16283
|
Factory$1.InteropModule = void 0;
|
16061
16284
|
const lodash_1 = require$$3;
|
16062
16285
|
const inaccessibleObject_1 = inaccessibleObject;
|
16063
|
-
const base_1 = base
|
16286
|
+
const base_1 = base;
|
16064
16287
|
const InteropBroker_1 = requireInteropBroker();
|
16065
16288
|
const InteropClient_1 = InteropClient$1;
|
16066
16289
|
const overrideCheck_1 = requireOverrideCheck();
|
@@ -16096,12 +16319,13 @@ function requireFactory () {
|
|
16096
16319
|
* ```
|
16097
16320
|
*/
|
16098
16321
|
async init(name, override = defaultOverride) {
|
16322
|
+
var _a;
|
16099
16323
|
this.wire.sendAction('interop-init').catch(() => {
|
16100
16324
|
// don't expose, analytics-only call
|
16101
16325
|
});
|
16102
16326
|
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
|
16103
16327
|
const options = await this.fin.Application.getCurrentSync().getInfo();
|
16104
|
-
const opts = options.initialOptions.interopBrokerConfiguration
|
16328
|
+
const opts = (_a = options.initialOptions.interopBrokerConfiguration) !== null && _a !== void 0 ? _a : {};
|
16105
16329
|
const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
|
16106
16330
|
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(opts));
|
16107
16331
|
let provider;
|
@@ -16169,9 +16393,9 @@ function requireInterop () {
|
|
16169
16393
|
hasRequiredInterop = 1;
|
16170
16394
|
(function (exports) {
|
16171
16395
|
/**
|
16172
|
-
* Entry point for the OpenFin
|
16396
|
+
* Entry point for the OpenFin Interop namespace.
|
16173
16397
|
*
|
16174
|
-
* * {@link InteropModule} contains static members of the `Interop`
|
16398
|
+
* * {@link InteropModule} contains static members of the `Interop` namespace (available under `fin.Interop`)
|
16175
16399
|
* * {@link InteropClient} and {@link InteropBroker} document instances of their respective classes.
|
16176
16400
|
*
|
16177
16401
|
* @packageDocumentation
|
@@ -16193,8 +16417,8 @@ function requireInterop () {
|
|
16193
16417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16194
16418
|
__exportStar(requireFactory(), exports);
|
16195
16419
|
__exportStar(InteropClient$1, exports);
|
16196
|
-
__exportStar(requireInteropBroker(), exports);
|
16197
|
-
|
16420
|
+
__exportStar(requireInteropBroker(), exports);
|
16421
|
+
} (interop));
|
16198
16422
|
return interop;
|
16199
16423
|
}
|
16200
16424
|
|
@@ -16227,14 +16451,12 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
|
|
16227
16451
|
Object.defineProperty(Instance, "__esModule", { value: true });
|
16228
16452
|
Instance.SnapshotSource = void 0;
|
16229
16453
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
16230
|
-
const base_1$1 = base
|
16454
|
+
const base_1$1 = base;
|
16231
16455
|
const utils_1$1 = utils;
|
16232
16456
|
const connectionMap = new Map();
|
16233
16457
|
/**
|
16234
16458
|
* Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
|
16235
16459
|
*
|
16236
|
-
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
16237
|
-
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
16238
16460
|
*/
|
16239
16461
|
class SnapshotSource extends base_1$1.Base {
|
16240
16462
|
/**
|
@@ -16370,19 +16592,13 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
|
|
16370
16592
|
|
16371
16593
|
Object.defineProperty(Factory, "__esModule", { value: true });
|
16372
16594
|
Factory.SnapshotSourceModule = void 0;
|
16373
|
-
const base_1 = base
|
16595
|
+
const base_1 = base;
|
16374
16596
|
const Instance_1 = Instance;
|
16375
16597
|
const utils_1 = utils;
|
16376
|
-
/**
|
16377
|
-
* Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
|
16378
|
-
*/
|
16379
16598
|
class SnapshotSourceModule extends base_1.Base {
|
16380
16599
|
/**
|
16381
16600
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
16382
16601
|
*
|
16383
|
-
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
16384
|
-
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
16385
|
-
*
|
16386
16602
|
* @example
|
16387
16603
|
* ```js
|
16388
16604
|
* const snapshotProvider = {
|
@@ -16398,7 +16614,6 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16398
16614
|
*
|
16399
16615
|
* await fin.SnapshotSource.init(snapshotProvider);
|
16400
16616
|
* ```
|
16401
|
-
*
|
16402
16617
|
*/
|
16403
16618
|
async init(provider) {
|
16404
16619
|
this.wire.sendAction('snapshot-source-init').catch((e) => {
|
@@ -16453,10 +16668,10 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16453
16668
|
|
16454
16669
|
(function (exports) {
|
16455
16670
|
/**
|
16456
|
-
* Entry points for the OpenFin `SnapshotSource` API
|
16671
|
+
* Entry points for the OpenFin `SnapshotSource` API.
|
16457
16672
|
*
|
16458
|
-
* * {@link SnapshotSourceModule} contains static
|
16459
|
-
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.
|
16673
|
+
* * {@link SnapshotSourceModule} contains static methods relating to the `SnapshotSource` type, accessible through `fin.SnapshotSource`.
|
16674
|
+
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.getCurrent`.
|
16460
16675
|
*
|
16461
16676
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
16462
16677
|
* both of these were documented on the same page.
|
@@ -16479,29 +16694,26 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16479
16694
|
};
|
16480
16695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16481
16696
|
__exportStar(Factory, exports);
|
16482
|
-
__exportStar(Instance, exports);
|
16697
|
+
__exportStar(Instance, exports);
|
16483
16698
|
} (snapshotSource));
|
16484
16699
|
|
16485
16700
|
Object.defineProperty(fin, "__esModule", { value: true });
|
16486
16701
|
fin.Fin = void 0;
|
16487
|
-
const events_1$3 =
|
16702
|
+
const events_1$3 = eventsExports;
|
16488
16703
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
16489
|
-
const index_1 = system
|
16704
|
+
const index_1 = system;
|
16490
16705
|
const index_2 = requireWindow();
|
16491
16706
|
const index_3 = requireApplication();
|
16492
16707
|
const index_4 = interappbus;
|
16493
16708
|
const index_5 = clipboard;
|
16494
|
-
const index_6 = externalApplication
|
16495
|
-
const index_7 = frame
|
16496
|
-
const index_8 = globalHotkey
|
16709
|
+
const index_6 = externalApplication;
|
16710
|
+
const index_7 = frame;
|
16711
|
+
const index_8 = globalHotkey;
|
16497
16712
|
const index_9 = requireView();
|
16498
|
-
const index_10 = platform
|
16713
|
+
const index_10 = platform;
|
16499
16714
|
const me_1$1 = me;
|
16500
16715
|
const interop_1 = requireInterop();
|
16501
16716
|
const snapshot_source_1 = snapshotSource;
|
16502
|
-
/**
|
16503
|
-
* @internal
|
16504
|
-
*/
|
16505
16717
|
class Fin extends events_1$3.EventEmitter {
|
16506
16718
|
/**
|
16507
16719
|
* @internal
|
@@ -16590,8 +16802,8 @@ var http = {};
|
|
16590
16802
|
(function (exports) {
|
16591
16803
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16592
16804
|
exports.fetchJson = exports.downloadFile = exports.fetch = exports.getRequestOptions = exports.getProxy = void 0;
|
16593
|
-
const node_url_1 = require$$0
|
16594
|
-
const fs = require$$0$
|
16805
|
+
const node_url_1 = require$$0; // This must explicitly use node builtin to avoid accidentally bundling npm:url.
|
16806
|
+
const fs = require$$0$1;
|
16595
16807
|
const getProxyVar = () => {
|
16596
16808
|
return process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy;
|
16597
16809
|
};
|
@@ -16676,13 +16888,13 @@ var http = {};
|
|
16676
16888
|
const res = await (0, exports.fetch)(url);
|
16677
16889
|
return JSON.parse(res);
|
16678
16890
|
};
|
16679
|
-
exports.fetchJson = fetchJson;
|
16891
|
+
exports.fetchJson = fetchJson;
|
16680
16892
|
} (http));
|
16681
16893
|
|
16682
16894
|
Object.defineProperty(util, "__esModule", { value: true });
|
16683
16895
|
util.resolveDir = util.first = util.resolveRuntimeVersion = util.rmDir = util.unzip = util.exists = void 0;
|
16684
|
-
const path$1 = require$$0$
|
16685
|
-
const fs$1 = require$$0$
|
16896
|
+
const path$1 = require$$0$2;
|
16897
|
+
const fs$1 = require$$0$1;
|
16686
16898
|
const child_process_1$1 = require$$2;
|
16687
16899
|
const promises_1$1 = promises;
|
16688
16900
|
const http_1$1 = http;
|
@@ -16784,7 +16996,7 @@ async function resolveDir(base, paths) {
|
|
16784
16996
|
util.resolveDir = resolveDir;
|
16785
16997
|
|
16786
16998
|
Object.defineProperty(winLaunch, "__esModule", { value: true });
|
16787
|
-
const path = require$$0$
|
16999
|
+
const path = require$$0$2;
|
16788
17000
|
const child_process_1 = require$$2;
|
16789
17001
|
const util_1 = util;
|
16790
17002
|
function launchRVM(config, manifestLocation, namedPipeName, rvm) {
|
@@ -16806,7 +17018,7 @@ function launchRVM(config, manifestLocation, namedPipeName, rvm) {
|
|
16806
17018
|
async function checkRvmPath() {
|
16807
17019
|
let rvmPath = path.resolve(process.env.LOCALAPPDATA, 'OpenFin', 'OpenFinRVM.exe');
|
16808
17020
|
if (!(await (0, util_1.exists)(rvmPath))) {
|
16809
|
-
rvmPath = path.join(__dirname, '..', 'resources', 'win', 'OpenFinRVM.exe');
|
17021
|
+
rvmPath = path.join(__dirname, '..', '..', 'resources', 'win', 'OpenFinRVM.exe');
|
16810
17022
|
}
|
16811
17023
|
return rvmPath;
|
16812
17024
|
}
|
@@ -16868,8 +17080,8 @@ function requireServices () {
|
|
16868
17080
|
const startServices = async (services) => {
|
16869
17081
|
await (0, promises_1.promiseMapSerial)(services, exports.launchService);
|
16870
17082
|
};
|
16871
|
-
exports.startServices = startServices;
|
16872
|
-
|
17083
|
+
exports.startServices = startServices;
|
17084
|
+
} (services));
|
16873
17085
|
return services;
|
16874
17086
|
}
|
16875
17087
|
|
@@ -16880,8 +17092,8 @@ function requireNixLaunch () {
|
|
16880
17092
|
hasRequiredNixLaunch = 1;
|
16881
17093
|
Object.defineProperty(nixLaunch, "__esModule", { value: true });
|
16882
17094
|
nixLaunch.install = nixLaunch.getRuntimePath = nixLaunch.download = nixLaunch.getUrl = void 0;
|
16883
|
-
const fs = require$$0$
|
16884
|
-
const path = require$$0$
|
17095
|
+
const fs = require$$0$1;
|
17096
|
+
const path = require$$0$2;
|
16885
17097
|
const child_process_1 = require$$2;
|
16886
17098
|
const promises_1 = promises;
|
16887
17099
|
const util_1 = util;
|
@@ -16988,8 +17200,8 @@ function requireLauncher () {
|
|
16988
17200
|
if (hasRequiredLauncher) return launcher;
|
16989
17201
|
hasRequiredLauncher = 1;
|
16990
17202
|
Object.defineProperty(launcher, "__esModule", { value: true });
|
16991
|
-
const os = require$$0$
|
16992
|
-
const path = require$$0$
|
17203
|
+
const os = require$$0$3;
|
17204
|
+
const path = require$$0$2;
|
16993
17205
|
const win_launch_1 = winLaunch;
|
16994
17206
|
const nix_launch_1 = requireNixLaunch();
|
16995
17207
|
class Launcher {
|
@@ -17064,10 +17276,10 @@ function requirePortDiscovery () {
|
|
17064
17276
|
hasRequiredPortDiscovery = 1;
|
17065
17277
|
Object.defineProperty(portDiscovery, "__esModule", { value: true });
|
17066
17278
|
/* eslint-disable @typescript-eslint/naming-convention */
|
17067
|
-
const fs = require$$0$
|
17279
|
+
const fs = require$$0$1;
|
17068
17280
|
const net = require$$1;
|
17069
|
-
const path = require$$0$
|
17070
|
-
const os = require$$0$
|
17281
|
+
const path = require$$0$2;
|
17282
|
+
const os = require$$0$3;
|
17071
17283
|
const timers_1 = require$$4;
|
17072
17284
|
const wire_1 = wire;
|
17073
17285
|
const launcher_1 = requireLauncher();
|
@@ -17342,17 +17554,12 @@ function requireNodeEnv () {
|
|
17342
17554
|
hasRequiredNodeEnv = 1;
|
17343
17555
|
Object.defineProperty(nodeEnv, "__esModule", { value: true });
|
17344
17556
|
/* eslint-disable class-methods-use-this */
|
17345
|
-
const fs_1 = require$$0$
|
17557
|
+
const fs_1 = require$$0$1;
|
17346
17558
|
const crypto_1 = require$$1$1;
|
17347
|
-
const
|
17559
|
+
const WS = require$$2$1;
|
17348
17560
|
const environment_1 = environment;
|
17349
17561
|
const port_discovery_1 = requirePortDiscovery();
|
17350
17562
|
const transport_errors_1 = transportErrors;
|
17351
|
-
// Due to https://github.com/rollup/rollup/issues/1267, we need this guard
|
17352
|
-
// to ensure the import works with and without the 'esModuleInterop' ts flag.
|
17353
|
-
// This is due to our mocha tests not being compatible with esModuleInterop,
|
17354
|
-
// whereas rollup enforces it.
|
17355
|
-
const WS = _WS.default || _WS;
|
17356
17563
|
class NodeEnvironment {
|
17357
17564
|
constructor() {
|
17358
17565
|
this.messageCounter = 0;
|
@@ -17427,7 +17634,7 @@ var emitterMap = {};
|
|
17427
17634
|
|
17428
17635
|
Object.defineProperty(emitterMap, "__esModule", { value: true });
|
17429
17636
|
emitterMap.EmitterMap = void 0;
|
17430
|
-
const events_1$2 =
|
17637
|
+
const events_1$2 = eventsExports;
|
17431
17638
|
class EmitterMap {
|
17432
17639
|
constructor() {
|
17433
17640
|
this.storage = new Map();
|
@@ -17509,7 +17716,7 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
|
|
17509
17716
|
var _Transport_wire, _Transport_fin;
|
17510
17717
|
Object.defineProperty(transport, "__esModule", { value: true });
|
17511
17718
|
transport.Transport = void 0;
|
17512
|
-
const events_1$1 =
|
17719
|
+
const events_1$1 = eventsExports;
|
17513
17720
|
const wire_1$1 = wire;
|
17514
17721
|
const transport_errors_1$1 = transportErrors;
|
17515
17722
|
const eventAggregator_1 = eventAggregator;
|
@@ -17717,7 +17924,7 @@ _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
|
|
17717
17924
|
var websocket = {};
|
17718
17925
|
|
17719
17926
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
17720
|
-
const events_1 =
|
17927
|
+
const events_1 = eventsExports;
|
17721
17928
|
const transport_errors_1 = transportErrors;
|
17722
17929
|
/* `READY_STATE` is an instance var set by `constructor` to reference the `WebTransportSocket.READY_STATE` enum.
|
17723
17930
|
* This is syntactic sugar that makes the enum accessible through the `wire` property of the various `fin` singletons.
|
@@ -17777,8 +17984,8 @@ var normalizeConfig$1 = {};
|
|
17777
17984
|
|
17778
17985
|
Object.defineProperty(normalizeConfig$1, "__esModule", { value: true });
|
17779
17986
|
normalizeConfig$1.validateConfig = normalizeConfig$1.normalizeConfig = void 0;
|
17780
|
-
const fs = require$$0$
|
17781
|
-
const node_url_1 = require$$0
|
17987
|
+
const fs = require$$0$1;
|
17988
|
+
const node_url_1 = require$$0; // This must explicitly use node builtin to avoid accidentally bundling npm:url
|
17782
17989
|
const wire_1 = wire;
|
17783
17990
|
const promises_1 = promises;
|
17784
17991
|
const http_1 = http;
|
@@ -17847,9 +18054,9 @@ function requireMain () {
|
|
17847
18054
|
Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return client_1.ChannelClient; } });
|
17848
18055
|
const provider_1 = provider;
|
17849
18056
|
Object.defineProperty(exports, "ChannelProvider", { enumerable: true, get: function () { return provider_1.ChannelProvider; } });
|
17850
|
-
const frame_1 = frame
|
18057
|
+
const frame_1 = frame;
|
17851
18058
|
Object.defineProperty(exports, "Frame", { enumerable: true, get: function () { return frame_1._Frame; } });
|
17852
|
-
const system_1 = system
|
18059
|
+
const system_1 = system;
|
17853
18060
|
Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
|
17854
18061
|
const wire_1 = wire;
|
17855
18062
|
const node_env_1 = requireNodeEnv();
|
@@ -17860,10 +18067,11 @@ function requireMain () {
|
|
17860
18067
|
const environment = new node_env_1.default();
|
17861
18068
|
// Connect to an OpenFin Runtime
|
17862
18069
|
async function connect(config) {
|
18070
|
+
var _a;
|
17863
18071
|
const normalized = await (0, normalize_config_1.validateConfig)(config);
|
17864
18072
|
const wire = new transport_1.Transport(websocket_1.default, environment, {
|
17865
18073
|
...normalized,
|
17866
|
-
name: normalized.name
|
18074
|
+
name: (_a = normalized.name) !== null && _a !== void 0 ? _a : normalized.uuid
|
17867
18075
|
});
|
17868
18076
|
await wire.connect(normalized);
|
17869
18077
|
return new fin_1.Fin(wire);
|
@@ -17877,268 +18085,22 @@ function requireMain () {
|
|
17877
18085
|
const pd = new port_discovery_1.default(normalized, environment);
|
17878
18086
|
return pd.retrievePort();
|
17879
18087
|
}
|
17880
|
-
exports.launch = launch;
|
17881
|
-
|
18088
|
+
exports.launch = launch;
|
18089
|
+
} (main$1));
|
17882
18090
|
return main$1;
|
17883
18091
|
}
|
17884
18092
|
|
17885
18093
|
var mainExports = requireMain();
|
17886
18094
|
|
17887
|
-
var OpenFin$
|
17888
|
-
|
17889
|
-
var events = {};
|
17890
|
-
|
17891
|
-
var application = {};
|
17892
|
-
|
17893
|
-
/**
|
17894
|
-
* Namespace for events that can be emitted by an {@link OpenFin.Application}. Includes events
|
17895
|
-
* re-propagated from the {@link OpenFin.Window} (and, transitively, {@link OpenFin.View}) level, prefixed with `window-` (and also, if applicable, `view-`).
|
17896
|
-
* For example, a view's "attached" event will fire as 'window-view-attached' at the application level.
|
17897
|
-
*
|
17898
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
17899
|
-
*
|
17900
|
-
* This namespace contains only payload shapes for events that are unique to `Application`. Events that propagate to `Application` from
|
17901
|
-
* child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
|
17902
|
-
* {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all* application events, see {@link Application.on Application.on}.
|
17903
|
-
*
|
17904
|
-
* {@link NativeApplicationEvent Native application events} (i.e. those that have not propagated from {@link OpenFin.ViewEvents Views}
|
17905
|
-
* or {@link OpenFin.WindowEvents Windows} re-propagate to {@link OpenFin.SystemEvents System} with their type string prefixed with `application-`.
|
17906
|
-
* {@link OpenFin.ApplicationEvents.ApplicationWindowEvent Application events that are tied to Windows but do not propagate from them}
|
17907
|
-
* are propagated to `System` without any type string prefixing.
|
17908
|
-
*
|
17909
|
-
* "Requested" events (e.g. {@link RunRequestedEvent}) do not propagate.
|
17910
|
-
*
|
17911
|
-
* @packageDocumentation
|
17912
|
-
*/
|
17913
|
-
Object.defineProperty(application, "__esModule", { value: true });
|
17914
|
-
|
17915
|
-
var base = {};
|
17916
|
-
|
17917
|
-
/**
|
17918
|
-
* Namespace for shared event payloads and utility types common to all event emitters.
|
17919
|
-
*
|
17920
|
-
* @packageDocumentation
|
17921
|
-
*/
|
17922
|
-
Object.defineProperty(base, "__esModule", { value: true });
|
17923
|
-
|
17924
|
-
var externalApplication = {};
|
17925
|
-
|
17926
|
-
/**
|
17927
|
-
* Namespace for events that can be transmitted by an {@link OpenFin.ExternalApplication}.
|
17928
|
-
*
|
17929
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
17930
|
-
*
|
17931
|
-
* For a list of valid string keys for external application events, see {@link ExternalApplication.on ExternalApplication.on}.
|
17932
|
-
*
|
17933
|
-
* @packageDocumentation
|
17934
|
-
*/
|
17935
|
-
Object.defineProperty(externalApplication, "__esModule", { value: true });
|
17936
|
-
|
17937
|
-
var frame = {};
|
17938
|
-
|
17939
|
-
Object.defineProperty(frame, "__esModule", { value: true });
|
17940
|
-
|
17941
|
-
var globalHotkey = {};
|
17942
|
-
|
17943
|
-
Object.defineProperty(globalHotkey, "__esModule", { value: true });
|
17944
|
-
|
17945
|
-
var platform = {};
|
17946
|
-
|
17947
|
-
/**
|
17948
|
-
*
|
17949
|
-
* Namespace for events that can emitted by a {@link OpenFin.Platform}.
|
17950
|
-
*
|
17951
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
17952
|
-
*
|
17953
|
-
* The Platform `EventEmitter` is a superset of the {@link OpenFin.Application} `EventEmitter`,
|
17954
|
-
* meaning it can listen to all {@link OpenFin.ApplicationEvents Application events} in addition to the
|
17955
|
-
* Platform-specific events listed here. For a list of valid string keys for *all* platform events, see
|
17956
|
-
* {@link Platform.on Platform.on}.
|
17957
|
-
*
|
17958
|
-
* @packageDocumentation
|
17959
|
-
*/
|
17960
|
-
Object.defineProperty(platform, "__esModule", { value: true });
|
17961
|
-
|
17962
|
-
var system = {};
|
17963
|
-
|
17964
|
-
/**
|
17965
|
-
* Namespace for runtime-wide OpenFin events emitted by {@link System.System}. Includes events
|
17966
|
-
* re-propagated from {@link OpenFin.Application}, {@link OpenFin.Window}, and {@link OpenFin.View} (prefixed with `application-`, `window-`, and `view-`). All
|
17967
|
-
* event propagations are visible at the System level. Propagated events from WebContents (windows, views, frames) to the Application level will *not*
|
17968
|
-
* transitively re-propagate to the System level, because they are already visible at the system level and contain the identity
|
17969
|
-
* of the application. For example, an application's "closed" event will fire as 'application-closed' at the system level. A view's 'shown' event
|
17970
|
-
* will be visible as 'view-shown' at the system level, but *not* as `application-window-view-shown`.
|
17971
|
-
*
|
17972
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
17973
|
-
*
|
17974
|
-
* This namespace contains only payload shapes for events that are unique to `System`. Events that propagate to `System` from
|
17975
|
-
* child {@link OpenFin.Application applications}, {@link OpenFin.Window windows}, and {@link OpenFin.View views} are defined in the
|
17976
|
-
* {@link OpenFin.ApplicationEvents}, {@link OpenFin.WindowEvents}, and {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all*
|
17977
|
-
* system events, see {@link System.on System.on}.
|
17978
|
-
*
|
17979
|
-
* @packageDocumentation
|
17980
|
-
*/
|
17981
|
-
Object.defineProperty(system, "__esModule", { value: true });
|
17982
|
-
|
17983
|
-
var view = {};
|
17984
|
-
|
17985
|
-
/**
|
17986
|
-
* Namespace for events that can be emitted by a {@link OpenFin.View}.
|
17987
|
-
*
|
17988
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
17989
|
-
*
|
17990
|
-
* This namespace contains only payload shapes for events that are unique to `View`. Events that are shared between all `WebContents`
|
17991
|
-
* (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. For a list
|
17992
|
-
* of valid string keys for *all* View events, see {@link View.on View.on}.
|
17993
|
-
*
|
17994
|
-
* View events propagate to their parent {@link OpenFin.WindowEvents Window}, {@link OpenFin.ApplicationEvents Application},
|
17995
|
-
* and {@link OpenFin.SystemEvents System} with an added `viewIdentity` property and their event types prefixed with `'view-'`.
|
17996
|
-
*
|
17997
|
-
* @packageDocumentation
|
17998
|
-
*/
|
17999
|
-
Object.defineProperty(view, "__esModule", { value: true });
|
18000
|
-
|
18001
|
-
var webcontents = {};
|
18002
|
-
|
18003
|
-
/**
|
18004
|
-
* Namespace for events shared by all OpenFin WebContents elements (i.e. {@link OpenFin.Window},
|
18005
|
-
* {@link OpenFin.View}).
|
18006
|
-
*
|
18007
|
-
* WebContents events are divided into two groups: {@link WillPropagateWebContentsEvent} and {@link NonPropagatedWebContentsEvent}. Propagating events
|
18008
|
-
* will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
|
18009
|
-
* parent window, and propagating events in a window will also be emitted on the window's parent {@link OpenFin.Application}.
|
18010
|
-
*
|
18011
|
-
* Non-propagating events will not re-emit on parent entities.
|
18012
|
-
*
|
18013
|
-
* @packageDocumentation
|
18014
|
-
*/
|
18015
|
-
Object.defineProperty(webcontents, "__esModule", { value: true });
|
18016
|
-
|
18017
|
-
var window$1 = {};
|
18018
|
-
|
18019
|
-
/**
|
18020
|
-
* Namespace for events that can be emitted by a {@link OpenFin.Window}.
|
18021
|
-
*
|
18022
|
-
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
18023
|
-
*
|
18024
|
-
* This namespace contains only payload shapes for events that are unique to `Window`. Events that are shared between all `WebContents`
|
18025
|
-
* (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. Events that
|
18026
|
-
* propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
|
18027
|
-
* {@link Window.on Window.on}
|
18028
|
-
*
|
18029
|
-
* {@link OpenFin.WindowEvents.NativeWindowEvent Native window events} (i.e. those that are not propagated from a
|
18030
|
-
* {@link OpenFin.ViewEvents View}) propagate to their parent {@link OpenFin.ApplicationEvents Application} and
|
18031
|
-
* {@link OpenFin.SystemEvents System} with their event types prefixed with `'window-'`).
|
18032
|
-
*
|
18033
|
-
* "Requested" events (e.g. {@link AuthRequestedEvent}) do not propagate to `System. The {@link OpenFin.WindowEvents.WindowCloseRequestedEvent}
|
18034
|
-
* does not propagate at all.
|
18035
|
-
*
|
18036
|
-
* @packageDocumentation
|
18037
|
-
*/
|
18038
|
-
Object.defineProperty(window$1, "__esModule", { value: true });
|
18039
|
-
|
18040
|
-
/**
|
18041
|
-
* Namespace for OpenFin event types. Each entity that emits OpenFin events has its own sub-namespace. Event payloads
|
18042
|
-
* themselves are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
18043
|
-
*
|
18044
|
-
* #### Event emitters
|
18045
|
-
*
|
18046
|
-
* The following entities emit OpenFin events, and have corresponding sub-namespaces:
|
18047
|
-
*
|
18048
|
-
* * {@link OpenFin.Application}: {@link OpenFin.ApplicationEvents}
|
18049
|
-
* * {@link OpenFin.ExternalApplication}: {@link OpenFin.ExternalApplicationEvents}
|
18050
|
-
* * {@link OpenFin.Frame}: {@link OpenFin.FrameEvents}
|
18051
|
-
* * {@link OpenFin.GlobalHotkey}: {@link OpenFin.GlobalHotkeyEvents}
|
18052
|
-
* * {@link OpenFin.Platform}: {@link OpenFin.PlatformEvents}
|
18053
|
-
* * {@link OpenFin.System}: {@link OpenFin.SystemEvents}
|
18054
|
-
* * {@link OpenFin.View}: {@link OpenFin.ViewEvents}
|
18055
|
-
* * {@link OpenFin.Window}: {@link OpenFin.WindowEvents}
|
18056
|
-
*
|
18057
|
-
* These `EventEmitter` entities share a common set of methods for interacting with the OpenFin event bus, which can be
|
18058
|
-
* seen on the individual documentation pages for each entity type.
|
18059
|
-
*
|
18060
|
-
* Registering event handlers is an asynchronous operation. It is important to ensure that the returned Promises are awaited to reduce the
|
18061
|
-
* risk of race conditions.
|
18062
|
-
*
|
18063
|
-
* When the `EventEmitter` receives an event from the browser process and emits on the renderer, all of the functions attached to that
|
18064
|
-
* specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded. If the window document
|
18065
|
-
* is destroyed by page navigation or reload, its registered event listeners will be removed.
|
18066
|
-
*
|
18067
|
-
* We recommend using Arrow Functions for event listeners to ensure the this scope is consistent with the original function context.
|
18068
|
-
*
|
18069
|
-
* Events re-propagate from smaller/more-local scopes to larger/more-global scopes. For example, an event emitted on a specific
|
18070
|
-
* view will propagate to the window in which the view is embedded, and then to the application in which the window is running, and
|
18071
|
-
* finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
|
18072
|
-
* the propagating (or propagated-to) entity.
|
18073
|
-
*
|
18074
|
-
* If you need the payload type for a specific type of event (especially propagated events), use the emitting topic's `EventPayload`
|
18075
|
-
* (e.g. {@link WindowEvents.WindowEventPayload}) generic with the event's `type` string. For example, the payload of
|
18076
|
-
* a {@link ViewEvents.CreatedEvent} after it has propagated to its parent {@link WindowEvents Window} can be found with
|
18077
|
-
* `WindowEventPayload<'view-created'>`.
|
18078
|
-
*
|
18079
|
-
* @packageDocumentation
|
18080
|
-
*/
|
18081
|
-
Object.defineProperty(events, "__esModule", { value: true });
|
18082
|
-
events.WindowEvents = events.WebContentsEvents = events.ViewEvents = events.SystemEvents = events.PlatformEvents = events.GlobalHotkeyEvents = events.FrameEvents = events.ExternalApplicationEvents = events.BaseEvents = events.ApplicationEvents = void 0;
|
18083
|
-
const ApplicationEvents = application;
|
18084
|
-
events.ApplicationEvents = ApplicationEvents;
|
18085
|
-
const BaseEvents = base;
|
18086
|
-
events.BaseEvents = BaseEvents;
|
18087
|
-
const ExternalApplicationEvents = externalApplication;
|
18088
|
-
events.ExternalApplicationEvents = ExternalApplicationEvents;
|
18089
|
-
const FrameEvents = frame;
|
18090
|
-
events.FrameEvents = FrameEvents;
|
18091
|
-
const GlobalHotkeyEvents = globalHotkey;
|
18092
|
-
events.GlobalHotkeyEvents = GlobalHotkeyEvents;
|
18093
|
-
const PlatformEvents = platform;
|
18094
|
-
events.PlatformEvents = PlatformEvents;
|
18095
|
-
const SystemEvents = system;
|
18096
|
-
events.SystemEvents = SystemEvents;
|
18097
|
-
const ViewEvents = view;
|
18098
|
-
events.ViewEvents = ViewEvents;
|
18099
|
-
const WebContentsEvents = webcontents;
|
18100
|
-
events.WebContentsEvents = WebContentsEvents;
|
18101
|
-
const WindowEvents = window$1;
|
18102
|
-
events.WindowEvents = WindowEvents;
|
18103
|
-
|
18104
|
-
(function (exports) {
|
18105
|
-
/**
|
18106
|
-
* Top-level namespace for types referenced by the OpenFin API. Contains:
|
18107
|
-
*
|
18108
|
-
* * The type of the global `fin` entry point ({@link FinApi})
|
18109
|
-
* * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
|
18110
|
-
* * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
|
18111
|
-
* * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
|
18112
|
-
* * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
|
18113
|
-
*
|
18114
|
-
* @packageDocumentation
|
18115
|
-
*/
|
18116
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18117
|
-
if (k2 === undefined) k2 = k;
|
18118
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
18119
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
18120
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
18121
|
-
}
|
18122
|
-
Object.defineProperty(o, k2, desc);
|
18123
|
-
}) : (function(o, m, k, k2) {
|
18124
|
-
if (k2 === undefined) k2 = k;
|
18125
|
-
o[k2] = m[k];
|
18126
|
-
}));
|
18127
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
18128
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
18129
|
-
};
|
18130
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18131
|
-
// Deprecated shim to preserve v30 namespace names
|
18132
|
-
__exportStar(events, exports);
|
18133
|
-
} (OpenFin$2));
|
18095
|
+
var OpenFin$1 = {};
|
18134
18096
|
|
18135
|
-
|
18097
|
+
Object.defineProperty(OpenFin$1, "__esModule", { value: true });
|
18136
18098
|
|
18137
|
-
var OpenFin
|
18099
|
+
var OpenFin = /*#__PURE__*/_mergeNamespaces({
|
18138
18100
|
__proto__: null,
|
18139
|
-
default: OpenFin
|
18140
|
-
}, [OpenFin$
|
18101
|
+
default: OpenFin$1
|
18102
|
+
}, [OpenFin$1]);
|
18141
18103
|
|
18142
18104
|
exports.connect = mainExports.connect;
|
18143
|
-
exports.default = OpenFin
|
18105
|
+
exports.default = OpenFin;
|
18144
18106
|
exports.launch = mainExports.launch;
|