@openfin/node-adapter 33.77.6 → 33.77.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.
@@ -30,16 +30,12 @@ function _mergeNamespaces(n, m) {
30
30
 
31
31
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
32
32
 
33
- function getDefaultExportFromCjs (x) {
34
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
35
- }
36
-
37
33
  var main$1 = {};
38
34
 
39
35
  var fin = {};
40
36
 
41
37
  var eventsExports = {};
42
- var events$1 = {
38
+ var events = {
43
39
  get exports(){ return eventsExports; },
44
40
  set exports(v){ eventsExports = v; },
45
41
  };
@@ -76,7 +72,7 @@ var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
76
72
  function EventEmitter() {
77
73
  EventEmitter.init.call(this);
78
74
  }
79
- events$1.exports = EventEmitter;
75
+ events.exports = EventEmitter;
80
76
  eventsExports.once = once;
81
77
 
82
78
  // Backwards-compat with node 0.10.x
@@ -518,9 +514,9 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
518
514
  }
519
515
  }
520
516
 
521
- var system$1 = {};
517
+ var system = {};
522
518
 
523
- var base$1 = {};
519
+ var base = {};
524
520
 
525
521
  var promises = {};
526
522
 
@@ -563,8 +559,8 @@ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateF
563
559
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
564
560
  };
565
561
  var _EmitterBase_emitterAccessor;
566
- Object.defineProperty(base$1, "__esModule", { value: true });
567
- base$1.Reply = base$1.EmitterBase = base$1.Base = void 0;
562
+ Object.defineProperty(base, "__esModule", { value: true });
563
+ base.Reply = base.EmitterBase = base.Base = void 0;
568
564
  const promises_1$2 = promises;
569
565
  class Base {
570
566
  /**
@@ -585,18 +581,11 @@ class Base {
585
581
  get fin() {
586
582
  return this.wire.getFin();
587
583
  }
588
- /**
589
- * Provides access to the OpenFin representation of the current code context (usually a document
590
- * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
591
- *
592
- * Useful for debugging in the devtools console, where this will intelligently type itself based
593
- * on the context in which the devtools panel was opened.
594
- */
595
584
  get me() {
596
585
  return this.wire.me;
597
586
  }
598
587
  }
599
- base$1.Base = Base;
588
+ base.Base = Base;
600
589
  /**
601
590
  * An entity that emits OpenFin events.
602
591
  *
@@ -626,9 +615,6 @@ class EmitterBase extends Base {
626
615
  this.topic = topic;
627
616
  _EmitterBase_emitterAccessor.set(this, void 0);
628
617
  this.eventNames = () => (this.hasEmitter() ? this.getOrCreateEmitter().eventNames() : []);
629
- /**
630
- * @internal
631
- */
632
618
  this.emit = (eventType, payload, ...args) => {
633
619
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
634
620
  };
@@ -671,13 +657,16 @@ class EmitterBase extends Base {
671
657
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
672
658
  return Promise.resolve();
673
659
  };
660
+ this.addListener = this.on;
674
661
  __classPrivateFieldSet$d(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
675
662
  this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
676
663
  }
677
664
  /**
678
665
  * Adds a listener to the end of the listeners array for the specified event.
679
666
  *
680
- * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
667
+ * @param eventType
668
+ * @param listener
669
+ * @param options
681
670
  */
682
671
  async on(eventType, listener, options) {
683
672
  await this.registerEventListener(eventType, options, (emitter) => {
@@ -687,16 +676,12 @@ class EmitterBase extends Base {
687
676
  });
688
677
  return this;
689
678
  }
690
- /**
691
- * Adds a listener to the end of the listeners array for the specified event.
692
- */
693
- async addListener(eventType, listener, options) {
694
- return this.on(eventType, listener, options);
695
- }
696
679
  /**
697
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.
698
681
  *
699
- * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
682
+ * @param eventType
683
+ * @param listener
684
+ * @param options
700
685
  */
701
686
  async once(eventType, listener, options) {
702
687
  const deregister = () => this.deregisterEventListener(eventType);
@@ -712,7 +697,9 @@ class EmitterBase extends Base {
712
697
  /**
713
698
  * Adds a listener to the beginning of the listeners array for the specified event.
714
699
  *
715
- * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
700
+ * @param eventType
701
+ * @param listener
702
+ * @param options
716
703
  */
717
704
  async prependListener(eventType, listener, options) {
718
705
  await this.registerEventListener(eventType, options, (emitter) => {
@@ -726,7 +713,9 @@ class EmitterBase extends Base {
726
713
  * Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
727
714
  * after which it is removed. The listener is added to the beginning of the listeners array.
728
715
  *
729
- * @remarks Event payloads are documented in the {@link OpenFin.Events} namespace.
716
+ * @param eventType
717
+ * @param listener
718
+ * @param options
730
719
  */
731
720
  async prependOnceListener(eventType, listener, options) {
732
721
  const deregister = () => this.deregisterEventListener(eventType);
@@ -743,6 +732,10 @@ class EmitterBase extends Base {
743
732
  * Remove a listener from the listener array for the specified event.
744
733
  *
745
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
746
739
  */
747
740
  async removeListener(eventType, listener, options) {
748
741
  const emitter = await this.deregisterEventListener(eventType, options);
@@ -769,6 +762,7 @@ class EmitterBase extends Base {
769
762
  /**
770
763
  * Removes all listeners, or those of the specified event.
771
764
  *
765
+ * @param eventType
772
766
  */
773
767
  async removeAllListeners(eventType) {
774
768
  const removeByEvent = async (event) => {
@@ -793,11 +787,11 @@ class EmitterBase extends Base {
793
787
  }
794
788
  }
795
789
  }
796
- base$1.EmitterBase = EmitterBase;
790
+ base.EmitterBase = EmitterBase;
797
791
  _EmitterBase_emitterAccessor = new WeakMap();
798
792
  class Reply {
799
793
  }
800
- base$1.Reply = Reply;
794
+ base.Reply = Reply;
801
795
 
802
796
  var transportErrors = {};
803
797
 
@@ -880,7 +874,7 @@ class RuntimeError extends Error {
880
874
  }
881
875
  transportErrors.RuntimeError = RuntimeError;
882
876
 
883
- var window$2 = {};
877
+ var window$1 = {};
884
878
 
885
879
  var Factory$8 = {};
886
880
 
@@ -899,45 +893,25 @@ validate.validateIdentity = validateIdentity;
899
893
 
900
894
  var Instance$7 = {};
901
895
 
902
- var application$1 = {};
896
+ var application = {};
903
897
 
904
898
  var Factory$7 = {};
905
899
 
906
900
  var Instance$6 = {};
907
901
 
908
- var view$1 = {};
902
+ var view = {};
909
903
 
910
904
  var Factory$6 = {};
911
905
 
912
- var warnings = {};
913
-
914
- Object.defineProperty(warnings, "__esModule", { value: true });
915
- warnings.handleDeprecatedWarnings = void 0;
916
- const handleDeprecatedWarnings = (options) => {
917
- var _a, _b, _c, _d;
918
- if (((_a = options.contentNavigation) === null || _a === void 0 ? void 0 : _a.whitelist) ||
919
- ((_b = options.contentNavigation) === null || _b === void 0 ? void 0 : _b.blacklist) ||
920
- ((_c = options.contentRedirect) === null || _c === void 0 ? void 0 : _c.whitelist) ||
921
- ((_d = options.contentRedirect) === null || _d === void 0 ? void 0 : _d.blacklist)) {
922
- 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'.`);
923
- }
924
- };
925
- warnings.handleDeprecatedWarnings = handleDeprecatedWarnings;
926
-
927
906
  var hasRequiredFactory$3;
928
907
 
929
908
  function requireFactory$3 () {
930
909
  if (hasRequiredFactory$3) return Factory$6;
931
910
  hasRequiredFactory$3 = 1;
932
911
  Object.defineProperty(Factory$6, "__esModule", { value: true });
933
- Factory$6.ViewModule = void 0;
934
- const base_1 = base$1;
912
+ const base_1 = base;
935
913
  const validate_1 = validate;
936
914
  const index_1 = requireView();
937
- const warnings_1 = warnings;
938
- /**
939
- * Static namespace for OpenFin API methods that interact with the {@link View} class, available under `fin.View`.
940
- */
941
915
  class ViewModule extends base_1.Base {
942
916
  /**
943
917
  * Creates a new View.
@@ -966,13 +940,13 @@ function requireFactory$3 () {
966
940
  * ```
967
941
  * Note that created views needs to navigate somewhere for them to actually render a website.
968
942
  * @experimental
943
+ * @static
969
944
  */
970
945
  async create(options) {
971
946
  const { uuid } = this.wire.me;
972
947
  if (!options.name || typeof options.name !== 'string') {
973
948
  throw new Error('Please provide a name property as a string in order to create a View.');
974
949
  }
975
- (0, warnings_1.handleDeprecatedWarnings)(options);
976
950
  if (this.wire.environment.childViews) {
977
951
  await this.wire.environment.createChildContent({
978
952
  entityType: 'view',
@@ -986,6 +960,7 @@ function requireFactory$3 () {
986
960
  }
987
961
  /**
988
962
  * Asynchronously returns a View object that represents an existing view.
963
+ * @param identity
989
964
  *
990
965
  * @example
991
966
  * ```js
@@ -994,6 +969,7 @@ function requireFactory$3 () {
994
969
  * .catch(err => console.log(err));
995
970
  * ```
996
971
  * @experimental
972
+ * @static
997
973
  */
998
974
  async wrap(identity) {
999
975
  this.wire.sendAction('view-wrap');
@@ -1005,6 +981,7 @@ function requireFactory$3 () {
1005
981
  }
1006
982
  /**
1007
983
  * Synchronously returns a View object that represents an existing view.
984
+ * @param identity
1008
985
  *
1009
986
  * @example
1010
987
  * ```js
@@ -1012,6 +989,7 @@ function requireFactory$3 () {
1012
989
  * await view.hide();
1013
990
  * ```
1014
991
  * @experimental
992
+ * @static
1015
993
  */
1016
994
  wrapSync(identity) {
1017
995
  this.wire.sendAction('view-wrap-sync').catch((e) => {
@@ -1034,6 +1012,7 @@ function requireFactory$3 () {
1034
1012
  *
1035
1013
  * ```
1036
1014
  * @experimental
1015
+ * @static
1037
1016
  */
1038
1017
  getCurrent() {
1039
1018
  this.wire.sendAction('view-get-current').catch((e) => {
@@ -1055,6 +1034,7 @@ function requireFactory$3 () {
1055
1034
  *
1056
1035
  * ```
1057
1036
  * @experimental
1037
+ * @static
1058
1038
  */
1059
1039
  getCurrentSync() {
1060
1040
  this.wire.sendAction('view-get-current-sync').catch((e) => {
@@ -1067,7 +1047,7 @@ function requireFactory$3 () {
1067
1047
  return this.wrapSync({ uuid, name });
1068
1048
  }
1069
1049
  }
1070
- Factory$6.ViewModule = ViewModule;
1050
+ Factory$6.default = ViewModule;
1071
1051
  return Factory$6;
1072
1052
  }
1073
1053
 
@@ -1897,12 +1877,8 @@ var main = {};
1897
1877
 
1898
1878
  Object.defineProperty(main, "__esModule", { value: true });
1899
1879
  main.WebContents = void 0;
1900
- const base_1$k = base$1;
1880
+ const base_1$k = base;
1901
1881
  class WebContents extends base_1$k.EmitterBase {
1902
- /**
1903
- * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
1904
- * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
1905
- */
1906
1882
  constructor(wire, identity, entityType) {
1907
1883
  super(wire, entityType, identity.uuid, identity.name);
1908
1884
  this.identity = identity;
@@ -1910,7 +1886,10 @@ class WebContents extends base_1$k.EmitterBase {
1910
1886
  }
1911
1887
  /**
1912
1888
  * Gets a base64 encoded image of all or part of the WebContents.
1889
+ * @function capturePage
1913
1890
  * @param options Options for the capturePage call.
1891
+ * @memberOf View
1892
+ * @instance
1914
1893
  *
1915
1894
  * @example
1916
1895
  *
@@ -1955,11 +1934,6 @@ class WebContents extends base_1$k.EmitterBase {
1955
1934
  * }
1956
1935
  * console.log(await wnd.capturePage(options));
1957
1936
  * ```
1958
- *
1959
- * @remarks
1960
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
1961
- * We do not expose an explicit superclass for this functionality, but it does have its own
1962
- * {@link OpenFin.WebContentsEvents event namespace}.
1963
1937
  */
1964
1938
  capturePage(options) {
1965
1939
  return this.wire.sendAction('capture-page', { options, ...this.identity }).then(({ payload }) => payload.data);
@@ -1968,6 +1942,9 @@ class WebContents extends base_1$k.EmitterBase {
1968
1942
  * Executes Javascript on the WebContents, restricted to contents you own or contents owned by
1969
1943
  * applications you have created.
1970
1944
  * @param code JavaScript code to be executed on the view.
1945
+ * @function executeJavaScript
1946
+ * @memberOf View
1947
+ * @instance
1971
1948
  *
1972
1949
  * @example
1973
1950
  * View:
@@ -1995,10 +1972,6 @@ class WebContents extends base_1$k.EmitterBase {
1995
1972
  *
1996
1973
  * executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
1997
1974
  * ```
1998
- * @remarks
1999
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2000
- * We do not expose an explicit superclass for this functionality, but it does have its own
2001
- * {@link OpenFin.WebContentsEvents event namespace}.
2002
1975
  */
2003
1976
  executeJavaScript(code) {
2004
1977
  return this.wire
@@ -2007,6 +1980,9 @@ class WebContents extends base_1$k.EmitterBase {
2007
1980
  }
2008
1981
  /**
2009
1982
  * Returns the zoom level of the WebContents.
1983
+ * @function getZoomLevel
1984
+ * @memberOf View
1985
+ * @instance
2010
1986
  *
2011
1987
  * @example
2012
1988
  * View:
@@ -2038,10 +2014,6 @@ class WebContents extends base_1$k.EmitterBase {
2038
2014
  *
2039
2015
  * getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
2040
2016
  * ```
2041
- * @remarks
2042
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2043
- * We do not expose an explicit superclass for this functionality, but it does have its own
2044
- * {@link OpenFin.WebContentsEvents event namespace}.
2045
2017
  */
2046
2018
  getZoomLevel() {
2047
2019
  return this.wire.sendAction('get-zoom-level', this.identity).then(({ payload }) => payload.data);
@@ -2049,6 +2021,9 @@ class WebContents extends base_1$k.EmitterBase {
2049
2021
  /**
2050
2022
  * Sets the zoom level of the WebContents.
2051
2023
  * @param level The zoom level
2024
+ * @function setZoomLevel
2025
+ * @memberOf View
2026
+ * @instance
2052
2027
  *
2053
2028
  * @example
2054
2029
  * View:
@@ -2080,10 +2055,6 @@ class WebContents extends base_1$k.EmitterBase {
2080
2055
  *
2081
2056
  * setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
2082
2057
  * ```
2083
- * @remarks
2084
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2085
- * We do not expose an explicit superclass for this functionality, but it does have its own
2086
- * {@link OpenFin.WebContentsEvents event namespace}.
2087
2058
  */
2088
2059
  setZoomLevel(level) {
2089
2060
  return this.wire.sendAction('set-zoom-level', { ...this.identity, level }).then(() => undefined);
@@ -2091,9 +2062,12 @@ class WebContents extends base_1$k.EmitterBase {
2091
2062
  /**
2092
2063
  * Navigates the WebContents to a specified URL.
2093
2064
  *
2094
- * Note: The url must contain the protocol prefix such as http:// or https://.
2065
+ * @remarks The url must contain the protocol prefix such as http:// or https://.
2095
2066
  * @param url - The URL to navigate the WebContents to.
2096
2067
  *
2068
+ * @function navigate
2069
+ * @memberof View
2070
+ * @instance
2097
2071
  * @example
2098
2072
  * View:
2099
2073
  * ```js
@@ -2121,16 +2095,15 @@ class WebContents extends base_1$k.EmitterBase {
2121
2095
  * navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
2122
2096
  * ```
2123
2097
  * @experimental
2124
- * @remarks
2125
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2126
- * We do not expose an explicit superclass for this functionality, but it does have its own
2127
- * {@link OpenFin.WebContentsEvents event namespace}.
2128
2098
  */
2129
2099
  navigate(url) {
2130
2100
  return this.wire.sendAction('navigate-window', { ...this.identity, url }).then(() => undefined);
2131
2101
  }
2132
2102
  /**
2133
2103
  * Navigates the WebContents back one page.
2104
+ * @function navigateBack
2105
+ * @memberOf View
2106
+ * @instance
2134
2107
  *
2135
2108
  * @example
2136
2109
  * View:
@@ -2152,16 +2125,15 @@ class WebContents extends base_1$k.EmitterBase {
2152
2125
  * }
2153
2126
  * navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
2154
2127
  * ```
2155
- * @remarks
2156
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2157
- * We do not expose an explicit superclass for this functionality, but it does have its own
2158
- * {@link OpenFin.WebContentsEvents event namespace}.
2159
2128
  */
2160
2129
  navigateBack() {
2161
2130
  return this.wire.sendAction('navigate-window-back', { ...this.identity }).then(() => undefined);
2162
2131
  }
2163
2132
  /**
2164
2133
  * Navigates the WebContents forward one page.
2134
+ * @function navigateForward
2135
+ * @memberOf View
2136
+ * @instance
2165
2137
  *
2166
2138
  * @example
2167
2139
  * View:
@@ -2185,16 +2157,15 @@ class WebContents extends base_1$k.EmitterBase {
2185
2157
  * }
2186
2158
  * navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
2187
2159
  * ```
2188
- * @remarks
2189
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2190
- * We do not expose an explicit superclass for this functionality, but it does have its own
2191
- * {@link OpenFin.WebContentsEvents event namespace}.
2192
2160
  */
2193
2161
  async navigateForward() {
2194
2162
  await this.wire.sendAction('navigate-window-forward', { ...this.identity });
2195
2163
  }
2196
2164
  /**
2197
2165
  * Stops any current navigation the WebContents is performing.
2166
+ * @function stopNavigation
2167
+ * @memberOf View
2168
+ * @instance
2198
2169
  *
2199
2170
  * @example
2200
2171
  * View:
@@ -2216,16 +2187,15 @@ class WebContents extends base_1$k.EmitterBase {
2216
2187
  * }
2217
2188
  * stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
2218
2189
  * ```
2219
- * @remarks
2220
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2221
- * We do not expose an explicit superclass for this functionality, but it does have its own
2222
- * {@link OpenFin.WebContentsEvents event namespace}.
2223
2190
  */
2224
2191
  stopNavigation() {
2225
2192
  return this.wire.sendAction('stop-window-navigation', { ...this.identity }).then(() => undefined);
2226
2193
  }
2227
2194
  /**
2228
2195
  * Reloads the WebContents
2196
+ * @function reload
2197
+ * @memberOf View
2198
+ * @instance
2229
2199
  *
2230
2200
  * @example
2231
2201
  * View:
@@ -2257,10 +2227,6 @@ class WebContents extends base_1$k.EmitterBase {
2257
2227
  * console.log('Reloaded window')
2258
2228
  * }).catch(err => console.log(err));
2259
2229
  * ```
2260
- * @remarks
2261
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2262
- * We do not expose an explicit superclass for this functionality, but it does have its own
2263
- * {@link OpenFin.WebContentsEvents event namespace}.
2264
2230
  */
2265
2231
  reload(ignoreCache = false) {
2266
2232
  return this.wire
@@ -2273,8 +2239,11 @@ class WebContents extends base_1$k.EmitterBase {
2273
2239
  /**
2274
2240
  * Prints the WebContents.
2275
2241
  * @param options Printer Options
2242
+ * @function print
2243
+ * @memberOf View
2244
+ * @instance
2276
2245
  *
2277
- * Note: When `silent` is set to `true`, the API will pick the system's default printer if deviceName
2246
+ * @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
2278
2247
  * is empty and the default settings for printing.
2279
2248
  *
2280
2249
  * Use the CSS style `page-break-before: always;` to force print to a new page.
@@ -2287,10 +2256,6 @@ class WebContents extends base_1$k.EmitterBase {
2287
2256
  * console.log('print call has been sent to the system');
2288
2257
  * });
2289
2258
  * ```
2290
- * @remarks
2291
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2292
- * We do not expose an explicit superclass for this functionality, but it does have its own
2293
- * {@link OpenFin.WebContentsEvents event namespace}.
2294
2259
  */
2295
2260
  print(options = {}) {
2296
2261
  return this.wire.sendAction('print', { ...this.identity, options }).then(() => undefined);
@@ -2299,8 +2264,11 @@ class WebContents extends base_1$k.EmitterBase {
2299
2264
  * Find and highlight text on a page.
2300
2265
  * @param searchTerm Term to find in page
2301
2266
  * @param options Search options
2267
+ * @function findInPage
2268
+ * @memberOf View
2269
+ * @instance
2302
2270
  *
2303
- * Note: By default, each subsequent call will highlight the next text that matches the search term.
2271
+ * @remarks By default, each subsequent call will highlight the next text that matches the search term.
2304
2272
  *
2305
2273
  * Returns a promise with the results for the request. By subscribing to the
2306
2274
  * found-in-page event, you can get the results of this call as well.
@@ -2335,10 +2303,6 @@ class WebContents extends base_1$k.EmitterBase {
2335
2303
  * console.log(result)
2336
2304
  * });
2337
2305
  * ```
2338
- * @remarks
2339
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2340
- * We do not expose an explicit superclass for this functionality, but it does have its own
2341
- * {@link OpenFin.WebContentsEvents event namespace}.
2342
2306
  */
2343
2307
  findInPage(searchTerm, options) {
2344
2308
  return this.wire
@@ -2382,10 +2346,6 @@ class WebContents extends base_1$k.EmitterBase {
2382
2346
  * console.log(results);
2383
2347
  * });
2384
2348
  * ```
2385
- * @remarks
2386
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2387
- * We do not expose an explicit superclass for this functionality, but it does have its own
2388
- * {@link OpenFin.WebContentsEvents event namespace}.
2389
2349
  */
2390
2350
  stopFindInPage(action) {
2391
2351
  return this.wire.sendAction('stop-find-in-page', { ...this.identity, action }).then(() => undefined);
@@ -2393,6 +2353,9 @@ class WebContents extends base_1$k.EmitterBase {
2393
2353
  /**
2394
2354
  * Returns an array with all system printers
2395
2355
  * @deprecated use System.getPrinters instead
2356
+ * @function getPrinters
2357
+ * @memberOf View
2358
+ * @instance
2396
2359
  *
2397
2360
  * @example
2398
2361
  * View:
@@ -2428,10 +2391,6 @@ class WebContents extends base_1$k.EmitterBase {
2428
2391
  * console.log(err);
2429
2392
  * });
2430
2393
  * ```
2431
- * @remarks
2432
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2433
- * We do not expose an explicit superclass for this functionality, but it does have its own
2434
- * {@link OpenFin.WebContentsEvents event namespace}.
2435
2394
  */
2436
2395
  getPrinters() {
2437
2396
  return this.wire.sendAction('get-printers', { ...this.identity }).then(({ payload }) => payload.data);
@@ -2439,6 +2398,10 @@ class WebContents extends base_1$k.EmitterBase {
2439
2398
  /**
2440
2399
  * Gives focus to the WebContents.
2441
2400
  *
2401
+ * @function focus
2402
+ * @emits focused
2403
+ * @memberOf Window
2404
+ * @instance
2442
2405
  * @example
2443
2406
  * ```js
2444
2407
  * async function focusWindow() {
@@ -2454,16 +2417,15 @@ class WebContents extends base_1$k.EmitterBase {
2454
2417
  *
2455
2418
  * focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
2456
2419
  * ```
2457
- * @remarks
2458
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2459
- * We do not expose an explicit superclass for this functionality, but it does have its own
2460
- * {@link OpenFin.WebContentsEvents event namespace}.
2461
2420
  */
2462
2421
  async focus({ emitSynthFocused } = { emitSynthFocused: true }) {
2463
2422
  await this.wire.sendAction('focus-window', { emitSynthFocused, ...this.identity });
2464
2423
  }
2465
2424
  /**
2466
2425
  * Shows the Chromium Developer Tools
2426
+ * @function showDeveloperTools
2427
+ * @memberOf View
2428
+ * @instance
2467
2429
  *
2468
2430
  * @example
2469
2431
  * View:
@@ -2489,10 +2451,6 @@ class WebContents extends base_1$k.EmitterBase {
2489
2451
  * .then(() => console.log('Showing dev tools'))
2490
2452
  * .catch(err => console.error(err));
2491
2453
  * ```
2492
- * @remarks
2493
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2494
- * We do not expose an explicit superclass for this functionality, but it does have its own
2495
- * {@link OpenFin.WebContentsEvents event namespace}.
2496
2454
  */
2497
2455
  async showDeveloperTools() {
2498
2456
  // Note this hits the system action map in core state for legacy reasons.
@@ -2501,7 +2459,11 @@ class WebContents extends base_1$k.EmitterBase {
2501
2459
  /**
2502
2460
  * Retrieves the process information associated with a WebContents.
2503
2461
  *
2504
- * Note: This includes any iframes associated with the WebContents
2462
+ * @remarks This includes any iframes associated with the WebContents
2463
+ *
2464
+ * @function getProcessInfo
2465
+ * @memberOf View
2466
+ * @instance
2505
2467
  *
2506
2468
  * @example
2507
2469
  * View:
@@ -2515,10 +2477,6 @@ class WebContents extends base_1$k.EmitterBase {
2515
2477
  * const win = await fin.Window.getCurrent();
2516
2478
  * const processInfo = await win.getProcessInfo();
2517
2479
  * ```
2518
- * @remarks
2519
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2520
- * We do not expose an explicit superclass for this functionality, but it does have its own
2521
- * {@link OpenFin.WebContentsEvents event namespace}.
2522
2480
  */
2523
2481
  async getProcessInfo() {
2524
2482
  const { payload: { data } } = await this.wire.sendAction('get-process-info', this.identity);
@@ -2526,6 +2484,9 @@ class WebContents extends base_1$k.EmitterBase {
2526
2484
  }
2527
2485
  /**
2528
2486
  * Retrieves information on all Shared Workers.
2487
+ * @function getSharedWorkers
2488
+ * @memberOf View
2489
+ * @instance
2529
2490
  *
2530
2491
  * @example
2531
2492
  * View:
@@ -2554,16 +2515,15 @@ class WebContents extends base_1$k.EmitterBase {
2554
2515
  * const win = await fin.Window.create(winOption);
2555
2516
  * const sharedWorkers = await win.getSharedWorkers();
2556
2517
  * ```
2557
- * @remarks
2558
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2559
- * We do not expose an explicit superclass for this functionality, but it does have its own
2560
- * {@link OpenFin.WebContentsEvents event namespace}.
2561
2518
  */
2562
2519
  async getSharedWorkers() {
2563
2520
  return this.wire.sendAction('get-shared-workers', this.identity).then(({ payload }) => payload.data);
2564
2521
  }
2565
2522
  /**
2566
2523
  * Opens the developer tools for the shared worker context.
2524
+ * @function inspectSharedWorker
2525
+ * @memberOf View
2526
+ * @instance
2567
2527
  *
2568
2528
  * @example
2569
2529
  * View:
@@ -2592,10 +2552,6 @@ class WebContents extends base_1$k.EmitterBase {
2592
2552
  * const win = await fin.Window.create(winOption);
2593
2553
  * await win.inspectSharedWorker();
2594
2554
  * ```
2595
- * @remarks
2596
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2597
- * We do not expose an explicit superclass for this functionality, but it does have its own
2598
- * {@link OpenFin.WebContentsEvents event namespace}.
2599
2555
  */
2600
2556
  async inspectSharedWorker() {
2601
2557
  await this.wire.sendAction('inspect-shared-worker', { ...this.identity });
@@ -2603,6 +2559,9 @@ class WebContents extends base_1$k.EmitterBase {
2603
2559
  /**
2604
2560
  * Inspects the shared worker based on its ID.
2605
2561
  * @param workerId - The id of the shared worker.
2562
+ * @function inspectSharedWorkerById
2563
+ * @memberOf View
2564
+ * @instance
2606
2565
  *
2607
2566
  * @example
2608
2567
  * View:
@@ -2633,16 +2592,15 @@ class WebContents extends base_1$k.EmitterBase {
2633
2592
  * const sharedWorkers = await win.getSharedWorkers();
2634
2593
  * await win.inspectSharedWorkerById(sharedWorkers[0].id);
2635
2594
  * ```
2636
- * @remarks
2637
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2638
- * We do not expose an explicit superclass for this functionality, but it does have its own
2639
- * {@link OpenFin.WebContentsEvents event namespace}.
2640
2595
  */
2641
2596
  async inspectSharedWorkerById(workerId) {
2642
2597
  await this.wire.sendAction('inspect-shared-worker-by-id', { ...this.identity, workerId });
2643
2598
  }
2644
2599
  /**
2645
2600
  * Opens the developer tools for the service worker context.
2601
+ * @function inspectServiceWorker
2602
+ * @memberOf View
2603
+ * @instance
2646
2604
  *
2647
2605
  * @example
2648
2606
  * View:
@@ -2671,10 +2629,6 @@ class WebContents extends base_1$k.EmitterBase {
2671
2629
  * const win = await fin.Window.create(winOption);
2672
2630
  * await win.inspectServiceWorker();
2673
2631
  * ```
2674
- * @remarks
2675
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2676
- * We do not expose an explicit superclass for this functionality, but it does have its own
2677
- * {@link OpenFin.WebContentsEvents event namespace}.
2678
2632
  */
2679
2633
  async inspectServiceWorker() {
2680
2634
  await this.wire.sendAction('inspect-service-worker', { ...this.identity });
@@ -2682,7 +2636,7 @@ class WebContents extends base_1$k.EmitterBase {
2682
2636
  /**
2683
2637
  * Shows a popup window.
2684
2638
  *
2685
- * Note: If this WebContents is a view and its attached window has a popup open, this will close it.
2639
+ * @remarks If this WebContents is a view and its attached window has a popup open, this will close it.
2686
2640
  *
2687
2641
  * Shows a popup window. Including a `name` in `options` will attempt to show an existing window as a popup, if
2688
2642
  * that window doesn't exist or no `name` is included a window will be created. If the caller view or the caller
@@ -2690,7 +2644,7 @@ class WebContents extends base_1$k.EmitterBase {
2690
2644
  * open popup window before showing the new popup window. Also, if the caller view is destroyed or detached, the popup
2691
2645
  * will be dismissed.
2692
2646
  *
2693
- * 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.
2647
+ * 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.
2694
2648
  *
2695
2649
  * @example
2696
2650
  *
@@ -2885,10 +2839,11 @@ class WebContents extends base_1$k.EmitterBase {
2885
2839
  * onPopupReady: popupWindowCallback;
2886
2840
  * });
2887
2841
  * ```
2888
- * @remarks
2889
- * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
2890
- * We do not expose an explicit superclass for this functionality, but it does have its own
2891
- * {@link OpenFin.WebContentsEvents event namespace}.
2842
+ * @function showPopupWindow
2843
+ * @memberOf View
2844
+ * @instance
2845
+ * @param options
2846
+ *
2892
2847
  */
2893
2848
  async showPopupWindow(options) {
2894
2849
  this.wire.sendAction(`${this.entityType}-show-popup-window`, this.identity).catch(() => {
@@ -3173,6 +3128,7 @@ function requireInstance$2 () {
3173
3128
  * Attaches the current view to the given window identity.
3174
3129
  * Identity must be the identity of a window in the same application.
3175
3130
  * This detaches the view from its current window, and sets the view to be destroyed when its new window closes.
3131
+ * @param target {Identity}
3176
3132
  *
3177
3133
  * @example
3178
3134
  * ```js
@@ -3301,6 +3257,7 @@ function requireInstance$2 () {
3301
3257
  };
3302
3258
  /**
3303
3259
  * Sets the bounds (top, left, width, height) of the view relative to its window.
3260
+ * @param bounds {ViewBounds}
3304
3261
  *
3305
3262
  * @remarks View position is relative to the bounds of the window.
3306
3263
  * ({top: 0, left: 0} represents the top left corner of the window)
@@ -3465,6 +3422,7 @@ function requireInstance$2 () {
3465
3422
  };
3466
3423
  /**
3467
3424
  * Updates the view's options.
3425
+ * @param options
3468
3426
  *
3469
3427
  * @example
3470
3428
  * ```js
@@ -3505,6 +3463,7 @@ function requireInstance$2 () {
3505
3463
  /**
3506
3464
  * Retrieves the window the view is currently attached to.
3507
3465
  *
3466
+ * @experimental
3508
3467
  * @example
3509
3468
  * ```js
3510
3469
  * const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
@@ -3512,7 +3471,6 @@ function requireInstance$2 () {
3512
3471
  * .then(win => console.log('current window', win))
3513
3472
  * .catch(err => console.log(err));)
3514
3473
  * ```
3515
- * @experimental
3516
3474
  */
3517
3475
  this.getCurrentWindow = async () => {
3518
3476
  const { payload: { data } } = await this.wire.sendAction('get-view-window', { ...this.identity });
@@ -3618,6 +3576,10 @@ function requireInstance$2 () {
3618
3576
  /**
3619
3577
  * Focuses the view
3620
3578
  *
3579
+ * @function focus
3580
+ * @memberof View
3581
+ * @emits focused
3582
+ * @instance
3621
3583
  * @example
3622
3584
  * ```js
3623
3585
  * const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
@@ -3640,7 +3602,7 @@ function requireInstance$2 () {
3640
3602
  var hasRequiredView;
3641
3603
 
3642
3604
  function requireView () {
3643
- if (hasRequiredView) return view$1;
3605
+ if (hasRequiredView) return view;
3644
3606
  hasRequiredView = 1;
3645
3607
  (function (exports) {
3646
3608
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -3659,20 +3621,19 @@ function requireView () {
3659
3621
  };
3660
3622
  Object.defineProperty(exports, "__esModule", { value: true });
3661
3623
  /**
3662
- * Entry points for the OpenFin `View` API (`fin.View`).
3663
- *
3664
- * * {@link ViewModule} contains static members of the `View` API, accessible through `fin.View`.
3665
- * * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
3624
+ * Entry point for the OpenFin View namespace.
3666
3625
  *
3667
- * 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),
3668
- * both of these were documented on the same page.
3626
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ViewModule" is used for
3627
+ * the module containing static members of the `View` namespace (available under `fin.View`), while `View` documents
3628
+ * instances of the OpenFin `View` class.
3669
3629
  *
3670
3630
  * @packageDocumentation
3671
3631
  */
3672
- __exportStar(requireFactory$3(), exports);
3632
+ const Factory_1 = requireFactory$3();
3633
+ exports.default = Factory_1.default;
3673
3634
  __exportStar(requireInstance$2(), exports);
3674
- } (view$1));
3675
- return view$1;
3635
+ } (view));
3636
+ return view;
3676
3637
  }
3677
3638
 
3678
3639
  var hasRequiredInstance$1;
@@ -3683,7 +3644,7 @@ function requireInstance$1 () {
3683
3644
  Object.defineProperty(Instance$6, "__esModule", { value: true });
3684
3645
  Instance$6.Application = void 0;
3685
3646
  /* eslint-disable import/prefer-default-export */
3686
- const base_1 = base$1;
3647
+ const base_1 = base;
3687
3648
  const window_1 = requireWindow();
3688
3649
  const view_1 = requireView();
3689
3650
  /**
@@ -4158,7 +4119,6 @@ function requireInstance$1 () {
4158
4119
  /**
4159
4120
  * Sets or removes a custom JumpList for the application. Only applicable in Windows OS.
4160
4121
  * If categories is null the previously set custom JumpList (if any) will be replaced by the standard JumpList for the app (managed by Windows).
4161
- *
4162
4122
  * Note: If the "name" property is omitted it defaults to "tasks".
4163
4123
  * @param jumpListCategories An array of JumpList Categories to populate. If null, remove any existing JumpList configuration and set to Windows default.
4164
4124
  *
@@ -4459,7 +4419,6 @@ function requireInstance$1 () {
4459
4419
  }
4460
4420
  /**
4461
4421
  * Sets file auto download location. It's only allowed in the same application.
4462
- *
4463
4422
  * Note: This method is restricted by default and must be enabled via
4464
4423
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
4465
4424
  * @param downloadLocation file auto download location
@@ -4485,7 +4444,6 @@ function requireInstance$1 () {
4485
4444
  }
4486
4445
  /**
4487
4446
  * 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.
4488
- *
4489
4447
  * Note: This method is restricted by default and must be enabled via
4490
4448
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
4491
4449
  *
@@ -4512,16 +4470,13 @@ function requireFactory$2 () {
4512
4470
  if (hasRequiredFactory$2) return Factory$7;
4513
4471
  hasRequiredFactory$2 = 1;
4514
4472
  Object.defineProperty(Factory$7, "__esModule", { value: true });
4515
- Factory$7.ApplicationModule = void 0;
4516
- const base_1 = base$1;
4473
+ const base_1 = base;
4517
4474
  const validate_1 = validate;
4518
4475
  const Instance_1 = requireInstance$1();
4519
- /**
4520
- * Static namespace for OpenFin API methods that interact with the {@link Application} class, available under `fin.Application`.
4521
- */
4522
4476
  class ApplicationModule extends base_1.Base {
4523
4477
  /**
4524
4478
  * Asynchronously returns an Application object that represents an existing application.
4479
+ * @param identity
4525
4480
  *
4526
4481
  * @example
4527
4482
  *
@@ -4532,6 +4487,7 @@ function requireFactory$2 () {
4532
4487
  * .catch(err => console.log(err));
4533
4488
  * ```
4534
4489
  *
4490
+ * @static
4535
4491
  */
4536
4492
  async wrap(identity) {
4537
4493
  this.wire.sendAction('wrap-application').catch((e) => {
@@ -4545,6 +4501,7 @@ function requireFactory$2 () {
4545
4501
  }
4546
4502
  /**
4547
4503
  * Synchronously returns an Application object that represents an existing application.
4504
+ * @param identity
4548
4505
  *
4549
4506
  * @example
4550
4507
  *
@@ -4553,6 +4510,7 @@ function requireFactory$2 () {
4553
4510
  * await app.close();
4554
4511
  * ```
4555
4512
  *
4513
+ * @static
4556
4514
  */
4557
4515
  wrapSync(identity) {
4558
4516
  this.wire.sendAction('wrap-application-sync').catch((e) => {
@@ -4577,6 +4535,8 @@ function requireFactory$2 () {
4577
4535
  }
4578
4536
  /**
4579
4537
  * DEPRECATED method to create a new Application. Use {@link Application.ApplicationModule.start Application.start} instead.
4538
+ * @param appOptions
4539
+ *
4580
4540
  *
4581
4541
  * @example
4582
4542
  *
@@ -4605,6 +4565,7 @@ function requireFactory$2 () {
4605
4565
  }
4606
4566
  /**
4607
4567
  * Creates and starts a new Application.
4568
+ * @param appOptions
4608
4569
  *
4609
4570
  * @example
4610
4571
  *
@@ -4620,6 +4581,8 @@ function requireFactory$2 () {
4620
4581
  * start().then(() => console.log('Application is running')).catch(err => console.log(err));
4621
4582
  * ```
4622
4583
  *
4584
+ *
4585
+ * @static
4623
4586
  */
4624
4587
  async start(appOptions) {
4625
4588
  this.wire.sendAction('start-application').catch((e) => {
@@ -4632,8 +4595,10 @@ function requireFactory$2 () {
4632
4595
  /**
4633
4596
  * Asynchronously starts a batch of applications given an array of application identifiers and manifestUrls.
4634
4597
  * Returns once the RVM is finished attempting to launch the applications.
4598
+ * @param applications
4635
4599
  * @param opts - Parameters that the RVM will use.
4636
4600
  *
4601
+ * @static
4637
4602
  * @example
4638
4603
  *
4639
4604
  * ```js
@@ -4685,6 +4650,8 @@ function requireFactory$2 () {
4685
4650
  * });
4686
4651
  *
4687
4652
  * ```
4653
+ *
4654
+ * @static
4688
4655
  */
4689
4656
  getCurrent() {
4690
4657
  this.wire.sendAction('get-current-application').catch((e) => {
@@ -4710,6 +4677,8 @@ function requireFactory$2 () {
4710
4677
  * });
4711
4678
  *
4712
4679
  * ```
4680
+ *
4681
+ * @static
4713
4682
  */
4714
4683
  getCurrentSync() {
4715
4684
  this.wire.sendAction('get-current-application-sync').catch((e) => {
@@ -4730,6 +4699,8 @@ function requireFactory$2 () {
4730
4699
  * // For a local manifest file:
4731
4700
  * fin.Application.startFromManifest('file:///C:/somefolder/app.json').then(app => console.log('App is running')).catch(err => console.log(err));
4732
4701
  * ```
4702
+ *
4703
+ * @static
4733
4704
  */
4734
4705
  async startFromManifest(manifestUrl, opts) {
4735
4706
  this.wire.sendAction('application-start-from-manifest').catch((e) => {
@@ -4774,14 +4745,14 @@ function requireFactory$2 () {
4774
4745
  });
4775
4746
  }
4776
4747
  }
4777
- Factory$7.ApplicationModule = ApplicationModule;
4748
+ Factory$7.default = ApplicationModule;
4778
4749
  return Factory$7;
4779
4750
  }
4780
4751
 
4781
4752
  var hasRequiredApplication;
4782
4753
 
4783
4754
  function requireApplication () {
4784
- if (hasRequiredApplication) return application$1;
4755
+ if (hasRequiredApplication) return application;
4785
4756
  hasRequiredApplication = 1;
4786
4757
  (function (exports) {
4787
4758
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -4800,20 +4771,19 @@ function requireApplication () {
4800
4771
  };
4801
4772
  Object.defineProperty(exports, "__esModule", { value: true });
4802
4773
  /**
4803
- * Entry points for the OpenFin `Application` API (`fin.Application`).
4804
- *
4805
- * * {@link ApplicationModule} contains static members of the `Application` API, accessible through `fin.Application`.
4806
- * * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
4774
+ * Entry point for the OpenFin Application namespace.
4807
4775
  *
4808
- * 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),
4809
- * both of these were documented on the same page.
4776
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ApplicationModule" is used for
4777
+ * the module containing static members of the `Application` namespace (available under `fin.Application`), while `Application` documents
4778
+ * instances of the OpenFin `Application` class.
4810
4779
  *
4811
4780
  * @packageDocumentation
4812
4781
  */
4813
- __exportStar(requireFactory$2(), exports);
4782
+ const Factory_1 = requireFactory$2();
4814
4783
  __exportStar(requireInstance$1(), exports);
4815
- } (application$1));
4816
- return application$1;
4784
+ exports.default = Factory_1.default;
4785
+ } (application));
4786
+ return application;
4817
4787
  }
4818
4788
 
4819
4789
  var hasRequiredInstance;
@@ -4830,7 +4800,6 @@ function requireInstance () {
4830
4800
  const application_1 = requireApplication();
4831
4801
  const main_1 = main;
4832
4802
  const view_1 = requireView();
4833
- const warnings_1 = warnings;
4834
4803
  /**
4835
4804
  * @PORTED
4836
4805
  * @typedef { object } Margins
@@ -5315,6 +5284,7 @@ function requireInstance () {
5315
5284
  */
5316
5285
  constructor(wire, identity) {
5317
5286
  super(wire, identity, 'window');
5287
+ this.identity = identity;
5318
5288
  }
5319
5289
  /**
5320
5290
  * Adds a listener to the end of the listeners array for the specified event.
@@ -5440,7 +5410,6 @@ function requireInstance () {
5440
5410
  if (options.autoShow === undefined) {
5441
5411
  options.autoShow = true;
5442
5412
  }
5443
- (0, warnings_1.handleDeprecatedWarnings)(options);
5444
5413
  const windowCreation = this.wire.environment.createChildContent({ entityType: 'window', options });
5445
5414
  Promise.all([pageResponse, windowCreation])
5446
5415
  .then((resolvedArr) => {
@@ -6146,12 +6115,11 @@ function requireInstance () {
6146
6115
  * moveBy(580, 300).then(() => console.log('Moved')).catch(err => console.log(err));
6147
6116
  * ```
6148
6117
  */
6149
- moveBy(deltaLeft, deltaTop, positioningOptions) {
6118
+ moveBy(deltaLeft, deltaTop) {
6150
6119
  return this.wire
6151
6120
  .sendAction('move-window-by', {
6152
6121
  deltaLeft,
6153
6122
  deltaTop,
6154
- positioningOptions,
6155
6123
  ...this.identity
6156
6124
  })
6157
6125
  .then(() => undefined);
@@ -6181,12 +6149,11 @@ function requireInstance () {
6181
6149
  * moveTo(580, 300).then(() => console.log('Moved')).catch(err => console.log(err))
6182
6150
  * ```
6183
6151
  */
6184
- moveTo(left, top, positioningOptions) {
6152
+ moveTo(left, top) {
6185
6153
  return this.wire
6186
6154
  .sendAction('move-window', {
6187
6155
  left,
6188
6156
  top,
6189
- positioningOptions,
6190
6157
  ...this.identity
6191
6158
  })
6192
6159
  .then(() => undefined);
@@ -6219,13 +6186,12 @@ function requireInstance () {
6219
6186
  * resizeBy(580, 300, 'top-right').then(() => console.log('Resized')).catch(err => console.log(err));
6220
6187
  * ```
6221
6188
  */
6222
- resizeBy(deltaWidth, deltaHeight, anchor, positioningOptions) {
6189
+ resizeBy(deltaWidth, deltaHeight, anchor) {
6223
6190
  return this.wire
6224
6191
  .sendAction('resize-window-by', {
6225
6192
  deltaWidth: Math.floor(deltaWidth),
6226
6193
  deltaHeight: Math.floor(deltaHeight),
6227
6194
  anchor,
6228
- positioningOptions,
6229
6195
  ...this.identity
6230
6196
  })
6231
6197
  .then(() => undefined);
@@ -6258,13 +6224,12 @@ function requireInstance () {
6258
6224
  * resizeTo(580, 300, 'top-left').then(() => console.log('Resized')).catch(err => console.log(err));
6259
6225
  * ```
6260
6226
  */
6261
- resizeTo(width, height, anchor, positioningOptions) {
6227
+ resizeTo(width, height, anchor) {
6262
6228
  return this.wire
6263
6229
  .sendAction('resize-window', {
6264
6230
  width: Math.floor(width),
6265
6231
  height: Math.floor(height),
6266
6232
  anchor,
6267
- positioningOptions,
6268
6233
  ...this.identity
6269
6234
  })
6270
6235
  .then(() => undefined);
@@ -6323,6 +6288,7 @@ function requireInstance () {
6323
6288
  }
6324
6289
  /**
6325
6290
  * Sets the window's size and position.
6291
+ * @property { Bounds } bounds This is a * @type {string} name - name of the window.object that holds the propertys of
6326
6292
  *
6327
6293
  * @example
6328
6294
  * ```js
@@ -6349,10 +6315,8 @@ function requireInstance () {
6349
6315
  * }).then(() => console.log('Bounds set to window')).catch(err => console.log(err));
6350
6316
  * ```
6351
6317
  */
6352
- setBounds(bounds, positioningOptions) {
6353
- return this.wire
6354
- .sendAction('set-window-bounds', { ...bounds, ...this.identity, positioningOptions })
6355
- .then(() => undefined);
6318
+ setBounds(bounds) {
6319
+ return this.wire.sendAction('set-window-bounds', { ...bounds, ...this.identity }).then(() => undefined);
6356
6320
  }
6357
6321
  /**
6358
6322
  * Shows the window if it is hidden.
@@ -6494,10 +6458,7 @@ function requireInstance () {
6494
6458
  * Calling this method will close previously opened menus.
6495
6459
  * @experimental
6496
6460
  * @param options
6497
- * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
6498
- * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
6499
- * of all possible data shapes for the entire menu, and the click handler should process
6500
- * these with a "reducer" pattern.
6461
+ *
6501
6462
  * @example
6502
6463
  * This could be used to show a drop down menu over views in a platform window:
6503
6464
  * ```js
@@ -6587,7 +6548,6 @@ function requireInstance () {
6587
6548
  return this.wire.sendAction('close-popup-menu', { ...this.identity }).then(() => undefined);
6588
6549
  }
6589
6550
  /**
6590
- * @PORTED
6591
6551
  * @typedef {object} PopupOptions
6592
6552
  * @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.
6593
6553
  * @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
@@ -6605,7 +6565,6 @@ function requireInstance () {
6605
6565
  * @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.
6606
6566
  */
6607
6567
  /**
6608
- * @PORTED
6609
6568
  * @typedef {object} PopupResult
6610
6569
  * @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
6611
6570
  * @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
@@ -6695,16 +6654,13 @@ function requireFactory$1 () {
6695
6654
  if (hasRequiredFactory$1) return Factory$8;
6696
6655
  hasRequiredFactory$1 = 1;
6697
6656
  Object.defineProperty(Factory$8, "__esModule", { value: true });
6698
- Factory$8._WindowModule = void 0;
6699
- const base_1 = base$1;
6657
+ const base_1 = base;
6700
6658
  const validate_1 = validate;
6701
6659
  const Instance_1 = requireInstance();
6702
- /**
6703
- * Static namespace for OpenFin API methods that interact with the {@link _Window} class, available under `fin.Window`.
6704
- */
6705
6660
  class _WindowModule extends base_1.Base {
6706
6661
  /**
6707
6662
  * Asynchronously returns a Window object that represents an existing window.
6663
+ * @param identity
6708
6664
  *
6709
6665
  * @example
6710
6666
  * ```js
@@ -6721,6 +6677,7 @@ function requireFactory$1 () {
6721
6677
  * .then(win => console.log('wrapped window'))
6722
6678
  * .catch(err => console.log(err));
6723
6679
  * ```
6680
+ * @static
6724
6681
  */
6725
6682
  async wrap(identity) {
6726
6683
  this.wire.sendAction('window-wrap').catch((e) => {
@@ -6734,6 +6691,7 @@ function requireFactory$1 () {
6734
6691
  }
6735
6692
  /**
6736
6693
  * Synchronously returns a Window object that represents an existing window.
6694
+ * @param identity
6737
6695
  *
6738
6696
  * @example
6739
6697
  * ```js
@@ -6749,6 +6707,7 @@ function requireFactory$1 () {
6749
6707
  * await createWin();
6750
6708
  * let win = fin.Window.wrapSync({ uuid: 'app-1', name: 'myApp' });
6751
6709
  * ```
6710
+ * @static
6752
6711
  */
6753
6712
  wrapSync(identity) {
6754
6713
  this.wire.sendAction('window-wrap-sync').catch((e) => {
@@ -6780,6 +6739,7 @@ function requireFactory$1 () {
6780
6739
  *
6781
6740
  * createWindow().then(() => console.log('Window is created')).catch(err => console.log(err));
6782
6741
  * ```
6742
+ * @static
6783
6743
  */
6784
6744
  create(options) {
6785
6745
  this.wire.sendAction('create-window').catch((e) => {
@@ -6798,6 +6758,7 @@ function requireFactory$1 () {
6798
6758
  * .catch(err => console.log(err));
6799
6759
  *
6800
6760
  * ```
6761
+ * @static
6801
6762
  */
6802
6763
  getCurrent() {
6803
6764
  this.wire.sendAction('get-current-window').catch((e) => {
@@ -6819,6 +6780,7 @@ function requireFactory$1 () {
6819
6780
  * console.log(info);
6820
6781
  *
6821
6782
  * ```
6783
+ * @static
6822
6784
  */
6823
6785
  getCurrentSync() {
6824
6786
  this.wire.sendAction('get-current-window-sync').catch((e) => {
@@ -6831,14 +6793,14 @@ function requireFactory$1 () {
6831
6793
  return this.wrapSync({ uuid, name });
6832
6794
  }
6833
6795
  }
6834
- Factory$8._WindowModule = _WindowModule;
6796
+ Factory$8.default = _WindowModule;
6835
6797
  return Factory$8;
6836
6798
  }
6837
6799
 
6838
6800
  var hasRequiredWindow;
6839
6801
 
6840
6802
  function requireWindow () {
6841
- if (hasRequiredWindow) return window$2;
6803
+ if (hasRequiredWindow) return window$1;
6842
6804
  hasRequiredWindow = 1;
6843
6805
  (function (exports) {
6844
6806
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -6857,34 +6819,25 @@ function requireWindow () {
6857
6819
  };
6858
6820
  Object.defineProperty(exports, "__esModule", { value: true });
6859
6821
  /**
6860
- * Entry points for the OpenFin `Window` API (`fin.Window`).
6861
- *
6862
- * * {@link _WindowModule} contains static members of the `Window` API, accessible through `fin.Window`.
6863
- * * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
6822
+ * Entry point for the OpenFin Window namespace.
6864
6823
  *
6865
- * 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),
6866
- * both of these were documented on the same page.
6824
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "WindowModule" is used for
6825
+ * the module containing static members of the `Window` namespace (available under `fin.Window`), while `Window` documents
6826
+ * instances of the OpenFin `Window` class.
6867
6827
  *
6868
- * Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
6828
+ * Because the `Window` name aliases a DOM entity, the documentation pipeline prefixes the name with an underscore.
6869
6829
  *
6870
6830
  * @packageDocumentation
6871
6831
  */
6872
- __exportStar(requireFactory$1(), exports);
6832
+ const Factory_1 = requireFactory$1();
6833
+ exports.default = Factory_1.default;
6873
6834
  __exportStar(requireInstance(), exports);
6874
- } (window$2));
6875
- return window$2;
6835
+ } (window$1));
6836
+ return window$1;
6876
6837
  }
6877
6838
 
6878
- /**
6879
- * Entry point for the OpenFin `System` API (`fin.System`).
6880
- *
6881
- * * {@link System} contains static members of the `System` API (available under `fin.System`)
6882
- *
6883
- * @packageDocumentation
6884
- */
6885
- Object.defineProperty(system$1, "__esModule", { value: true });
6886
- system$1.System = void 0;
6887
- const base_1$j = base$1;
6839
+ Object.defineProperty(system, "__esModule", { value: true });
6840
+ const base_1$j = base;
6888
6841
  const transport_errors_1$2 = transportErrors;
6889
6842
  const window_1 = requireWindow();
6890
6843
  const events_1$6 = eventsExports;
@@ -7199,6 +7152,7 @@ class System extends base_1$j.EmitterBase {
7199
7152
  * ```js
7200
7153
  * fin.System.getUniqueUserId().then(id => console.log(id)).catch(err => console.log(err));
7201
7154
  * ```
7155
+ * @static
7202
7156
  */
7203
7157
  getUniqueUserId() {
7204
7158
  return this.wire.sendAction('get-unique-user-id').then(({ payload }) => payload.data);
@@ -7889,8 +7843,7 @@ class System extends base_1$j.EmitterBase {
7889
7843
  }
7890
7844
  /**
7891
7845
  * Attempt to close an external process. The process will be terminated if it
7892
- * has not closed after the elapsed timeout in milliseconds.
7893
- *
7846
+ * has not closed after the elapsed timeout in milliseconds.<br>
7894
7847
  * Note: This method is restricted by default and must be enabled via
7895
7848
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
7896
7849
  * @param options A object defined in the TerminateExternalRequestType interface
@@ -7926,8 +7879,7 @@ class System extends base_1$j.EmitterBase {
7926
7879
  return this.wire.sendAction('update-proxy', options).then(() => undefined);
7927
7880
  }
7928
7881
  /**
7929
- * Downloads the given application asset.
7930
- *
7882
+ * Downloads the given application asset<br>
7931
7883
  * Note: This method is restricted by default and must be enabled via
7932
7884
  * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
7933
7885
  * @param appAsset App asset object
@@ -8471,6 +8423,7 @@ class System extends base_1$j.EmitterBase {
8471
8423
  * }
8472
8424
  * });
8473
8425
  * ```
8426
+ * @static
8474
8427
  */
8475
8428
  async launchManifest(manifestUrl, opts = {}) {
8476
8429
  const { subscribe, ..._sendOpts } = opts;
@@ -8730,7 +8683,7 @@ class System extends base_1$j.EmitterBase {
8730
8683
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
8731
8684
  }
8732
8685
  }
8733
- system$1.System = System;
8686
+ system.default = System;
8734
8687
 
8735
8688
  var interappbus = {};
8736
8689
 
@@ -9141,7 +9094,6 @@ var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateF
9141
9094
  };
9142
9095
  var _ChannelClient_protectedObj, _ChannelClient_strategy, _ChannelClient_close;
9143
9096
  Object.defineProperty(client, "__esModule", { value: true });
9144
- client.ChannelClient = void 0;
9145
9097
  const channel_1$1 = channel;
9146
9098
  const channelClientsByEndpointId = new Map();
9147
9099
  /**
@@ -9150,17 +9102,17 @@ const channelClientsByEndpointId = new Map();
9150
9102
  * provider via {@link ChannelClient#dispatch dispatch} and to listen for communication
9151
9103
  * from the provider by registering an action via {@link ChannelClient#register register}.
9152
9104
  *
9153
- * ### Synchronous Methods:
9105
+ * Synchronous Methods:
9154
9106
  * * {@link ChannelClient#onDisconnection onDisconnection(listener)}
9155
9107
  * * {@link ChannelClient#register register(action, listener)}
9156
9108
  * * {@link ChannelClient#remove remove(action)}
9157
9109
  *
9158
- * ### Asynchronous Methods:
9110
+ * Asynchronous Methods:
9159
9111
  * * {@link ChannelClient#disconnect disconnect()}
9160
9112
  * * {@link ChannelClient#dispatch dispatch(action, payload)}
9161
9113
  *
9162
- * ### Middleware:
9163
- * Middleware functions receive the following arguments: (action, payload, senderId).
9114
+ * Middleware:
9115
+ * <br>Middleware functions receive the following arguments: (action, payload, senderId).
9164
9116
  * The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
9165
9117
  * unless it is undefined, in which case the original payload is used. Middleware can be used for side effects.
9166
9118
  * * {@link ChannelClient#setDefaultAction setDefaultAction(middleware)}
@@ -9307,7 +9259,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
9307
9259
  });
9308
9260
  }
9309
9261
  }
9310
- client.ChannelClient = ChannelClient;
9262
+ client.default = ChannelClient;
9311
9263
  _ChannelClient_protectedObj = new WeakMap(), _ChannelClient_strategy = new WeakMap(), _ChannelClient_close = new WeakMap();
9312
9264
 
9313
9265
  var connectionManager = {};
@@ -9672,7 +9624,7 @@ var iceManager = {};
9672
9624
 
9673
9625
  Object.defineProperty(iceManager, "__esModule", { value: true });
9674
9626
  iceManager.RTCICEManager = void 0;
9675
- const base_1$i = base$1;
9627
+ const base_1$i = base;
9676
9628
  /*
9677
9629
  Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
9678
9630
  */
@@ -9850,20 +9802,20 @@ const runtimeVersioning_1 = runtimeVersioning;
9850
9802
  * a single client via {@link ChannelProvider#dispatch dispatch} or all clients via {@link ChannelProvider#publish publish}
9851
9803
  * and to listen for communication from clients by registering an action via {@link ChannelProvider#register register}.
9852
9804
  *
9853
- * ### Synchronous Methods:
9805
+ * Synchronous Methods:
9854
9806
  * * {@link ChannelProvider#onConnection onConnection(listener)}
9855
9807
  * * {@link ChannelProvider#onDisconnection onDisconnection(listener)}
9856
9808
  * * {@link ChannelProvider#publish publish(action, payload)}
9857
9809
  * * {@link ChannelProvider#register register(action, listener)}
9858
9810
  * * {@link ChannelProvider#remove remove(action)}
9859
9811
  *
9860
- * ### Asynchronous Methods:
9812
+ * Asynchronous Methods:
9861
9813
  * * {@link ChannelProvider#destroy destroy()}
9862
9814
  * * {@link ChannelProvider#dispatch dispatch(to, action, payload)}
9863
9815
  * * {@link ChannelProvider#getAllClientInfo getAllClientInfo()}
9864
9816
  *
9865
- * ### Middleware:
9866
- * Middleware functions receive the following arguments: (action, payload, senderId).
9817
+ * Middleware:
9818
+ * <br>Middleware functions receive the following arguments: (action, payload, senderId).
9867
9819
  * The return value of the middleware function will be passed on as the payload from beforeAction, to the action listener, to afterAction
9868
9820
  * unless it is undefined, in which case the most recently defined payload is used. Middleware can be used for side effects.
9869
9821
  * * {@link ChannelProvider#setDefaultAction setDefaultAction(middleware)}
@@ -10172,7 +10124,7 @@ var messageReceiver = {};
10172
10124
  Object.defineProperty(messageReceiver, "__esModule", { value: true });
10173
10125
  messageReceiver.MessageReceiver = void 0;
10174
10126
  const client_1$1 = client;
10175
- const base_1$h = base$1;
10127
+ const base_1$h = base;
10176
10128
  /*
10177
10129
  This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
10178
10130
  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.
@@ -10232,7 +10184,7 @@ class MessageReceiver extends base_1$h.Base {
10232
10184
  const endpointIdFromPreviousConnection = this.latestEndpointIdByChannelId.get(channelId);
10233
10185
  if (endpointIdFromPreviousConnection) {
10234
10186
  // Not convinced by this way of doing things, but pushing up for now.
10235
- client_1$1.ChannelClient.closeChannelByEndpointId(endpointIdFromPreviousConnection);
10187
+ client_1$1.default.closeChannelByEndpointId(endpointIdFromPreviousConnection);
10236
10188
  // eslint-disable-next-line no-console
10237
10189
  console.warn('You have created a second connection to an older provider. First connection has been removed from the clientMap');
10238
10190
  // eslint-disable-next-line no-console
@@ -10362,7 +10314,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
10362
10314
  Object.defineProperty(connectionManager, "__esModule", { value: true });
10363
10315
  connectionManager.ConnectionManager = void 0;
10364
10316
  const exhaustive_1 = exhaustive;
10365
- const base_1$g = base$1;
10317
+ const base_1$g = base;
10366
10318
  const strategy_1 = strategy$2;
10367
10319
  const strategy_2 = strategy$1;
10368
10320
  const ice_manager_1 = iceManager;
@@ -10593,15 +10545,6 @@ class ConnectionManager extends base_1$g.Base {
10593
10545
  connectionManager.ConnectionManager = ConnectionManager;
10594
10546
  _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnectionManager = new WeakMap();
10595
10547
 
10596
- /**
10597
- * Entry points for the `Channel` subset of the `InterApplicationBus` API (`fin.InterApplicationBus.Channel`).
10598
- *
10599
- * * {@link Channel} contains static members of the `Channel` API, accessible through `fin.InterApplicationBus.Channel`.
10600
- * * {@link OpenFin.ChannelClient} describes a client of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.connect`.
10601
- * * {@link OpenFin.ChannelProvider} describes a provider of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.create`.
10602
- *
10603
- * @packageDocumentation
10604
- */
10605
10548
  var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10606
10549
  if (kind === "m") throw new TypeError("Private method is not writable");
10607
10550
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -10619,7 +10562,7 @@ channel$1.Channel = void 0;
10619
10562
  /* eslint-disable no-console */
10620
10563
  const events_1$5 = eventsExports;
10621
10564
  const lazy_1$1 = lazy;
10622
- const base_1$f = base$1;
10565
+ const base_1$f = base;
10623
10566
  const client_1 = client;
10624
10567
  const connection_manager_1 = connectionManager;
10625
10568
  const provider_1 = provider;
@@ -10662,7 +10605,7 @@ class Channel extends base_1$f.EmitterBase {
10662
10605
  _Channel_readyToConnect.set(this, new lazy_1$1.AsyncRetryableLazy(async () => {
10663
10606
  await Promise.all([
10664
10607
  this.on('disconnected', (eventPayload) => {
10665
- client_1.ChannelClient.handleProviderDisconnect(eventPayload);
10608
+ client_1.default.handleProviderDisconnect(eventPayload);
10666
10609
  }),
10667
10610
  this.on('connected', (...args) => {
10668
10611
  __classPrivateFieldGet$7(this, _Channel_internalEmitter, "f").emit('connected', ...args);
@@ -10853,7 +10796,7 @@ class Channel extends base_1$f.EmitterBase {
10853
10796
  };
10854
10797
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
10855
10798
  const strategy = await __classPrivateFieldGet$7(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
10856
- const channel = new client_1.ChannelClient(routingInfo, this.wire, strategy);
10799
+ const channel = new client_1.default(routingInfo, this.wire, strategy);
10857
10800
  // It is the client's responsibility to handle endpoint disconnection to the provider.
10858
10801
  // If the endpoint dies, the client will force a disconnection through the core.
10859
10802
  // The provider does not care about endpoint disconnection.
@@ -10865,7 +10808,7 @@ class Channel extends base_1$f.EmitterBase {
10865
10808
  console.warn(`Something went wrong during disconnect for client with uuid: ${routingInfo.uuid} / name: ${routingInfo.name} / endpointId: ${routingInfo.endpointId}.`);
10866
10809
  }
10867
10810
  finally {
10868
- client_1.ChannelClient.handleProviderDisconnect(routingInfo);
10811
+ client_1.default.handleProviderDisconnect(routingInfo);
10869
10812
  }
10870
10813
  });
10871
10814
  return channel;
@@ -10936,16 +10879,9 @@ channel$1.Channel = Channel;
10936
10879
  _Channel_connectionManager = new WeakMap(), _Channel_internalEmitter = new WeakMap(), _Channel_readyToConnect = new WeakMap();
10937
10880
 
10938
10881
  Object.defineProperty(interappbus, "__esModule", { value: true });
10939
- interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
10940
- /**
10941
- * Entry point for the OpenFin `InterApplicationBus` API (`fin.InterApplicationBus`).
10942
- *
10943
- * * {@link InterApplicationBus} contains static members of the `InterApplicationBus` API, accessible through `fin.InterApplicationBus`.
10944
- *
10945
- * @packageDocumentation
10946
- */
10882
+ interappbus.InterAppPayload = void 0;
10947
10883
  const events_1$4 = eventsExports;
10948
- const base_1$e = base$1;
10884
+ const base_1$e = base;
10949
10885
  const ref_counter_1 = refCounter;
10950
10886
  const index_1$2 = channel$1;
10951
10887
  const validate_1$3 = validate;
@@ -11135,7 +11071,7 @@ class InterApplicationBus extends base_1$e.Base {
11135
11071
  return true;
11136
11072
  }
11137
11073
  }
11138
- interappbus.InterApplicationBus = InterApplicationBus;
11074
+ interappbus.default = InterApplicationBus;
11139
11075
  /**
11140
11076
  * @internal
11141
11077
  */
@@ -11152,16 +11088,8 @@ function createKey(...toHash) {
11152
11088
 
11153
11089
  var clipboard = {};
11154
11090
 
11155
- /**
11156
- * Entry point for the OpenFin `Clipboard` API (`fin.Clipboard`).
11157
- *
11158
- * * {@link Clipboard} contains static members of the `Clipboard` API, accessible through `fin.Clipboard`.
11159
- *
11160
- * @packageDocumentation
11161
- */
11162
11091
  Object.defineProperty(clipboard, "__esModule", { value: true });
11163
- clipboard.Clipboard = void 0;
11164
- const base_1$d = base$1;
11092
+ const base_1$d = base;
11165
11093
  /**
11166
11094
  * @PORTED
11167
11095
  * WriteRequestType interface
@@ -11358,9 +11286,9 @@ class Clipboard extends base_1$d.Base {
11358
11286
  return payload.data;
11359
11287
  }
11360
11288
  }
11361
- clipboard.Clipboard = Clipboard;
11289
+ clipboard.default = Clipboard;
11362
11290
 
11363
- var externalApplication$1 = {};
11291
+ var externalApplication = {};
11364
11292
 
11365
11293
  var Factory$5 = {};
11366
11294
 
@@ -11369,11 +11297,11 @@ var Instance$4 = {};
11369
11297
  Object.defineProperty(Instance$4, "__esModule", { value: true });
11370
11298
  Instance$4.ExternalApplication = void 0;
11371
11299
  /* eslint-disable import/prefer-default-export */
11372
- const base_1$c = base$1;
11300
+ const base_1$c = base;
11373
11301
  /**
11374
11302
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
11375
11303
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
11376
- * Discovery of connections is provided by {@link System.System.getAllExternalApplications getAllExternalApplications}.</a>
11304
+ * Discovery of connections is provided by <a href="tutorial-System.getAllExternalApplications.html">getAllExternalApplications.</a>
11377
11305
  *
11378
11306
  * Processes that can be wrapped as `ExternalApplication`s include the following:
11379
11307
  * - Processes which have connected to an OpenFin runtime via an adapter
@@ -11484,12 +11412,8 @@ class ExternalApplication extends base_1$c.EmitterBase {
11484
11412
  Instance$4.ExternalApplication = ExternalApplication;
11485
11413
 
11486
11414
  Object.defineProperty(Factory$5, "__esModule", { value: true });
11487
- Factory$5.ExternalApplicationModule = void 0;
11488
- const base_1$b = base$1;
11415
+ const base_1$b = base;
11489
11416
  const Instance_1$4 = Instance$4;
11490
- /**
11491
- * Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
11492
- */
11493
11417
  class ExternalApplicationModule extends base_1$b.Base {
11494
11418
  /**
11495
11419
  * Asynchronously returns an External Application object that represents an external application.
@@ -11503,6 +11427,7 @@ class ExternalApplicationModule extends base_1$b.Base {
11503
11427
  * .then(extApp => console.log('wrapped external application'))
11504
11428
  * .catch(err => console.log(err));
11505
11429
  * ```
11430
+ * @static
11506
11431
  */
11507
11432
  wrap(uuid) {
11508
11433
  this.wire.sendAction('external-application-wrap').catch((e) => {
@@ -11522,6 +11447,7 @@ class ExternalApplicationModule extends base_1$b.Base {
11522
11447
  * const info = await extApp.getInfo();
11523
11448
  * console.log(info);
11524
11449
  * ```
11450
+ * @static
11525
11451
  */
11526
11452
  wrapSync(uuid) {
11527
11453
  this.wire.sendAction('external-application-wrap-sync').catch((e) => {
@@ -11530,9 +11456,18 @@ class ExternalApplicationModule extends base_1$b.Base {
11530
11456
  return new Instance_1$4.ExternalApplication(this.wire, { uuid });
11531
11457
  }
11532
11458
  }
11533
- Factory$5.ExternalApplicationModule = ExternalApplicationModule;
11459
+ Factory$5.default = ExternalApplicationModule;
11534
11460
 
11535
11461
  (function (exports) {
11462
+ /**
11463
+ * Entry point for the OpenFin ExternalApplication namespace.
11464
+ *
11465
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "ExternalApplicationModule" is used for
11466
+ * the module containing static members of the `ExternalApplication` namespace (available under `fin.ExternalApplication`), while `ExternalApplication`
11467
+ * documents instances of the OpenFin `ExternalApplication` class.
11468
+ *
11469
+ * @packageDocumentation
11470
+ */
11536
11471
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11537
11472
  if (k2 === undefined) k2 = k;
11538
11473
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -11548,22 +11483,12 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
11548
11483
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11549
11484
  };
11550
11485
  Object.defineProperty(exports, "__esModule", { value: true });
11551
- /**
11552
- * Entry points for the OpenFin `ExternalApplication` API (`fin.ExternalApplication`).
11553
- *
11554
- * * {@link ExternalApplicationModule} contains static members of the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
11555
- * * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
11556
- *
11557
- * 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),
11558
- * both of these were documented on the same page.
11559
- *
11560
- * @packageDocumentation
11561
- */
11562
- __exportStar(Factory$5, exports);
11486
+ const Factory_1 = Factory$5;
11487
+ exports.default = Factory_1.default;
11563
11488
  __exportStar(Instance$4, exports);
11564
- } (externalApplication$1));
11489
+ } (externalApplication));
11565
11490
 
11566
- var frame$1 = {};
11491
+ var frame = {};
11567
11492
 
11568
11493
  var Factory$4 = {};
11569
11494
 
@@ -11572,7 +11497,7 @@ var Instance$3 = {};
11572
11497
  Object.defineProperty(Instance$3, "__esModule", { value: true });
11573
11498
  Instance$3._Frame = void 0;
11574
11499
  /* eslint-disable import/prefer-default-export */
11575
- const base_1$a = base$1;
11500
+ const base_1$a = base;
11576
11501
  /**
11577
11502
  * An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
11578
11503
  * has its own DOM and global JS context (which may or may not be linked to that of the parent depending
@@ -11713,13 +11638,9 @@ class _Frame extends base_1$a.EmitterBase {
11713
11638
  Instance$3._Frame = _Frame;
11714
11639
 
11715
11640
  Object.defineProperty(Factory$4, "__esModule", { value: true });
11716
- Factory$4._FrameModule = void 0;
11717
- const base_1$9 = base$1;
11641
+ const base_1$9 = base;
11718
11642
  const validate_1$2 = validate;
11719
11643
  const Instance_1$3 = Instance$3;
11720
- /**
11721
- * Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
11722
- */
11723
11644
  class _FrameModule extends base_1$9.Base {
11724
11645
  /**
11725
11646
  * Asynchronously returns a reference to the specified frame. The frame does not have to exist
@@ -11731,6 +11652,7 @@ class _FrameModule extends base_1$9.Base {
11731
11652
  * .then(frm => console.log('wrapped frame'))
11732
11653
  * .catch(err => console.log(err));
11733
11654
  * ```
11655
+ * @static
11734
11656
  */
11735
11657
  async wrap(identity) {
11736
11658
  this.wire.sendAction('frame-wrap').catch((e) => {
@@ -11752,6 +11674,7 @@ class _FrameModule extends base_1$9.Base {
11752
11674
  * const info = await frm.getInfo();
11753
11675
  * console.log(info);
11754
11676
  * ```
11677
+ * @static
11755
11678
  */
11756
11679
  wrapSync(identity) {
11757
11680
  this.wire.sendAction('frame-wrap-sync').catch((e) => {
@@ -11772,6 +11695,7 @@ class _FrameModule extends base_1$9.Base {
11772
11695
  * .then(frm => console.log('current frame'))
11773
11696
  * .catch(err => console.log(err));
11774
11697
  * ```
11698
+ * @static
11775
11699
  */
11776
11700
  getCurrent() {
11777
11701
  this.wire.sendAction('frame-get-current').catch((e) => {
@@ -11788,6 +11712,7 @@ class _FrameModule extends base_1$9.Base {
11788
11712
  * const info = await frm.getInfo();
11789
11713
  * console.log(info);
11790
11714
  * ```
11715
+ * @static
11791
11716
  */
11792
11717
  getCurrentSync() {
11793
11718
  this.wire.sendAction('frame-get-current-sync').catch((e) => {
@@ -11796,19 +11721,17 @@ class _FrameModule extends base_1$9.Base {
11796
11721
  return new Instance_1$3._Frame(this.wire, this.wire.environment.getCurrentEntityIdentity());
11797
11722
  }
11798
11723
  }
11799
- Factory$4._FrameModule = _FrameModule;
11724
+ Factory$4.default = _FrameModule;
11800
11725
 
11801
11726
  (function (exports) {
11802
11727
  /**
11803
- * Entry points for the OpenFin `Frame` API (`fin.Frame`).
11804
- *
11805
- * * {@link _FrameModule} contains static members of the `Frame` API, accessible through `fin.Frame`.
11806
- * * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
11728
+ * Entry point for the OpenFin Frame namespace.
11807
11729
  *
11808
- * 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),
11809
- * both of these were documented on the same page.
11730
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "FrameModule" is used for
11731
+ * the module containing static members of the `Frame` namespace (available under `fin.Frame`), while `Frame` documents
11732
+ * instances of the OpenFin `Frame` class.
11810
11733
  *
11811
- * Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
11734
+ * Because the `Frame` name aliases a DOM entity, the documentation pipeline prefixes the name with an underscore.
11812
11735
  *
11813
11736
  * @packageDocumentation
11814
11737
  */
@@ -11827,15 +11750,15 @@ Factory$4._FrameModule = _FrameModule;
11827
11750
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11828
11751
  };
11829
11752
  Object.defineProperty(exports, "__esModule", { value: true });
11830
- __exportStar(Factory$4, exports);
11753
+ const Factory_1 = Factory$4;
11754
+ exports.default = Factory_1.default;
11831
11755
  __exportStar(Instance$3, exports);
11832
- } (frame$1));
11756
+ } (frame));
11833
11757
 
11834
- var globalHotkey$1 = {};
11758
+ var globalHotkey = {};
11835
11759
 
11836
- Object.defineProperty(globalHotkey$1, "__esModule", { value: true });
11837
- globalHotkey$1.GlobalHotkey = void 0;
11838
- const base_1$8 = base$1;
11760
+ Object.defineProperty(globalHotkey, "__esModule", { value: true });
11761
+ const base_1$8 = base;
11839
11762
  /**
11840
11763
  * The GlobalHotkey module can register/unregister a global hotkeys.
11841
11764
  *
@@ -11964,9 +11887,9 @@ class GlobalHotkey extends base_1$8.EmitterBase {
11964
11887
  return data;
11965
11888
  }
11966
11889
  }
11967
- globalHotkey$1.GlobalHotkey = GlobalHotkey;
11890
+ globalHotkey.default = GlobalHotkey;
11968
11891
 
11969
- var platform$1 = {};
11892
+ var platform = {};
11970
11893
 
11971
11894
  var Factory$3 = {};
11972
11895
 
@@ -11981,14 +11904,16 @@ var _Platform_connectToProvider;
11981
11904
  Object.defineProperty(Instance$2, "__esModule", { value: true });
11982
11905
  Instance$2.Platform = void 0;
11983
11906
  /* eslint-disable import/prefer-default-export, no-undef */
11984
- const base_1$7 = base$1;
11907
+ const base_1$7 = base;
11985
11908
  const validate_1$1 = validate;
11986
11909
  // Reuse clients to avoid overwriting already-registered client in provider
11987
11910
  const clientMap = new Map();
11988
11911
  /** Manages the life cycle of windows and views in the application.
11989
11912
  *
11990
- * Enables taking snapshots of itself and applying them to restore a previous configuration
11913
+ * Enables taking snapshots of itself and applyi
11914
+ * ng them to restore a previous configuration
11991
11915
  * as well as listen to {@link OpenFin.PlatformEvents platform events}.
11916
+ *
11992
11917
  */
11993
11918
  class Platform extends base_1$7.EmitterBase {
11994
11919
  /**
@@ -12347,11 +12272,12 @@ class Platform extends base_1$7.EmitterBase {
12347
12272
  });
12348
12273
  }
12349
12274
  /**
12350
- * ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
12275
+ * ***DEPRECATED - please use Platform.createView.***
12351
12276
  * Reparents a specified view in a new target window.
12352
12277
  * @param viewIdentity View identity
12353
12278
  * @param target new owner window identity
12354
12279
  *
12280
+ * @tutorial Platform.createView
12355
12281
  */
12356
12282
  async reparentView(viewIdentity, target) {
12357
12283
  var _a;
@@ -12841,142 +12767,10 @@ Object.defineProperty(Instance$1, "__esModule", { value: true });
12841
12767
  Instance$1.Layout = void 0;
12842
12768
  const lazy_1 = lazy;
12843
12769
  const validate_1 = validate;
12844
- const base_1$6 = base$1;
12770
+ const base_1$6 = base;
12845
12771
  const common_utils_1 = commonUtils;
12846
12772
  const layout_entities_1 = layoutEntities;
12847
12773
  const layout_constants_1 = layout_constants;
12848
- /**
12849
- *
12850
- * Layouts give app providers the ability to embed multiple views in a single window. The Layout namespace
12851
- * enables the initialization and manipulation of a window's Layout. A Layout will
12852
- * emit events locally on the DOM element representing the layout-container.
12853
- *
12854
- *
12855
- * ### Layout.DOMEvents
12856
- *
12857
- * When a Layout is created, it emits events onto the DOM element representing the Layout container.
12858
- * This Layout container is the DOM element referenced by containerId in {@link Layout.LayoutModule#init Layout.init}.
12859
- * 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).
12860
- * The events are emitted synchronously and only in the process where the Layout exists.
12861
- * Any values returned by the called listeners are ignored and will be discarded.
12862
- * If the target DOM element is destroyed, any events that have been set up on that element will be destroyed.
12863
- *
12864
- * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
12865
- *
12866
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
12867
- * Adds a listener to the end of the listeners array for the specified event.
12868
- * @example
12869
- * ```js
12870
- * const myLayoutContainer = document.getElementById('layout-container');
12871
- *
12872
- * myLayoutContainer.addEventListener('tab-created', function(event) {
12873
- * const { tabSelector } = event.detail;
12874
- * const tabElement = document.getElementById(tabSelector);
12875
- * const existingColor = tabElement.style.backgroundColor;
12876
- * tabElement.style.backgroundColor = "red";
12877
- * setTimeout(() => {
12878
- * tabElement.style.backgroundColor = existingColor;
12879
- * }, 2000);
12880
- * });
12881
- * ```
12882
- *
12883
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
12884
- * Adds a listener to the end of the listeners array for the specified event.
12885
- * @example
12886
- * ```js
12887
- * const myLayoutContainer = document.getElementById('layout-container');
12888
- *
12889
- * const listener = function(event) {
12890
- * console.log(event.detail);
12891
- * console.log('container-created event fired once, removing listener');
12892
- * myLayoutContainer.removeEventListener('container-created', listener);
12893
- * };
12894
- *
12895
- * myLayoutContainer.addEventListener('container-created', listener);
12896
- * ```
12897
- *
12898
- * ### Supported event types are:
12899
- *
12900
- * * tab-created
12901
- * * container-created
12902
- * * layout-state-changed
12903
- * * tab-closed
12904
- * * tab-dropped
12905
- *
12906
- * ### Layout DOM Node Events
12907
- *
12908
- * #### tab-created
12909
- * 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.
12910
- * ```js
12911
- * // The response has the following shape in event.detail:
12912
- * {
12913
- * containerSelector: "container-component_A",
12914
- * name: "component_A",
12915
- * tabSelector: "tab-component_A",
12916
- * topic: "openfin-DOM-event",
12917
- * type: "tab-created",
12918
- * uuid: "OpenFin POC"
12919
- * }
12920
- * ```
12921
- *
12922
- * #### container-created
12923
- * 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.
12924
- * ```js
12925
- * // The response has the following shape in event.detail:
12926
- * {
12927
- * containerSelector: "container-component_A",
12928
- * name: "component_A",
12929
- * tabSelector: "tab-component_A",
12930
- * topic: "openfin-DOM-event",
12931
- * type: "container-created",
12932
- * uuid: "OpenFin POC"
12933
- * }
12934
- * ```
12935
- *
12936
- * ### layout-state-changed
12937
- * 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.
12938
- * ```js
12939
- * // The response has the following shape in event.detail
12940
- * {
12941
- * containerSelector: "container-component_A",
12942
- * name: "component_A",
12943
- * tabSelector: "tab-component_A",
12944
- * topic: "openfin-DOM-event",
12945
- * type: "layout-state-changed",
12946
- * uuid: "OpenFin POC"
12947
- * }
12948
- * ```
12949
- *
12950
- * #### tab-closed
12951
- * Generated when a tab is closed.
12952
- * ```js
12953
- * // The response has the following shape in event.detail:
12954
- * {
12955
- * containerSelector: "container-component_A",
12956
- * name: "component_A",
12957
- * tabSelector: "tab-component_A",
12958
- * topic: "openfin-DOM-event",
12959
- * type: "tab-closed",
12960
- * uuid: "OpenFin POC",
12961
- * url: "http://openfin.co" // The url of the view that was closed.
12962
- * }
12963
- * ```
12964
- *
12965
- * #### tab-dropped
12966
- * Generated when a tab is dropped.
12967
- * ```js
12968
- * // The response has the following shape in event.detail:
12969
- * {
12970
- * containerSelector: "container-component_A",
12971
- * name: "component_A",
12972
- * tabSelector: "tab-component_A",
12973
- * topic: "openfin-DOM-event",
12974
- * type: "tab-dropped",
12975
- * uuid: "OpenFin POC",
12976
- * url: "http://openfin.co" // The url of the view linked to the dropped tab.
12977
- * }
12978
- * ```
12979
- */
12980
12774
  class Layout extends base_1$6.Base {
12981
12775
  /**
12982
12776
  * @internal
@@ -13202,52 +12996,22 @@ var _LayoutModule_layoutInitializationAttempted;
13202
12996
  Object.defineProperty(Factory$2, "__esModule", { value: true });
13203
12997
  Factory$2.LayoutModule = void 0;
13204
12998
  /* eslint-disable no-undef, import/prefer-default-export */
13205
- const base_1$5 = base$1;
12999
+ const base_1$5 = base;
13206
13000
  const Instance_1$2 = Instance$1;
13207
- /**
13208
- * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
13209
- */
13210
13001
  class LayoutModule extends base_1$5.Base {
13211
13002
  constructor() {
13212
13003
  super(...arguments);
13213
13004
  _LayoutModule_layoutInitializationAttempted.set(this, false);
13214
13005
  /**
13215
- * Initialize the window's Layout.
13216
- *
13217
- * @remarks Must be called from a custom window that has a 'layout' option set upon creation of that window.
13006
+ * Initialize the window's Layout. Must be called from a custom window that has a 'layout' option set upon creation of that window.
13218
13007
  * If a containerId is not provided, this method attempts to find an element with the id `layout-container`.
13219
- * A Layout will emit events locally on the DOM element representing the layout-container.
13008
+ * A Layout will <a href="tutorial-Layout.DOMEvents.html">emit events locally</a> on the DOM element representing the layout-container.
13220
13009
  * In order to capture the relevant events during Layout initiation, set up the listeners on the DOM element prior to calling `init`.
13221
13010
  * @param options - Layout init options.
13222
13011
  *
13012
+ * @static
13223
13013
  * @experimental
13224
- *
13225
- * @example
13226
- * ```js
13227
- * // If no options are included, the layout in the window options is initialized in an element with the id `layout-container`
13228
- * const layout = await fin.Platform.Layout.init();
13229
- * ```
13230
- * <br>
13231
- *
13232
- * ```js
13233
- * const containerId = 'my-custom-container-id';
13234
- *
13235
- * const myLayoutContainer = document.getElementById(containerId);
13236
- *
13237
- * myLayoutContainer.addEventListener('tab-created', function(event) {
13238
- * const { tabSelector } = event.detail;
13239
- * const tabElement = document.getElementById(tabSelector);
13240
- * const existingColor = tabElement.style.backgroundColor;
13241
- * tabElement.style.backgroundColor = "red";
13242
- * setTimeout(() => {
13243
- * tabElement.style.backgroundColor = existingColor;
13244
- * }, 2000);
13245
- * });
13246
- *
13247
- * // initialize the layout into an existing HTML element with the div `my-custom-container-id`
13248
- * // the window must have been created with a layout in its window options
13249
- * const layout = await fin.Platform.Layout.init({ containerId });
13250
- * ```
13014
+ * @tutorial Layout.init
13251
13015
  */
13252
13016
  this.init = async (options = {}) => {
13253
13017
  this.wire.sendAction('layout-init').catch((e) => {
@@ -13265,6 +13029,7 @@ class LayoutModule extends base_1$5.Base {
13265
13029
  }
13266
13030
  /**
13267
13031
  * Asynchronously returns a Layout object that represents a Window's layout.
13032
+ * @param identity
13268
13033
  *
13269
13034
  * @example
13270
13035
  * ```js
@@ -13281,7 +13046,9 @@ class LayoutModule extends base_1$5.Base {
13281
13046
  * // Use wrapped instance to control layout, e.g.:
13282
13047
  * const layoutConfig = await layout.getConfig();
13283
13048
  * ```
13049
+ * @static
13284
13050
  */
13051
+ // eslint-disable-next-line class-methods-use-this
13285
13052
  async wrap(identity) {
13286
13053
  this.wire.sendAction('layout-wrap').catch((e) => {
13287
13054
  // don't expose
@@ -13290,6 +13057,7 @@ class LayoutModule extends base_1$5.Base {
13290
13057
  }
13291
13058
  /**
13292
13059
  * Synchronously returns a Layout object that represents a Window's layout.
13060
+ * @param identity
13293
13061
  *
13294
13062
  * @example
13295
13063
  * ```js
@@ -13306,7 +13074,9 @@ class LayoutModule extends base_1$5.Base {
13306
13074
  * // Use wrapped instance to control layout, e.g.:
13307
13075
  * const layoutConfig = await layout.getConfig();
13308
13076
  * ```
13077
+ * @static
13309
13078
  */
13079
+ // eslint-disable-next-line class-methods-use-this
13310
13080
  wrapSync(identity) {
13311
13081
  this.wire.sendAction('layout-wrap-sync').catch((e) => {
13312
13082
  // don't expose
@@ -13322,6 +13092,7 @@ class LayoutModule extends base_1$5.Base {
13322
13092
  * // Use wrapped instance to control layout, e.g.:
13323
13093
  * const layoutConfig = await layout.getConfig();
13324
13094
  * ```
13095
+ * @static
13325
13096
  */
13326
13097
  async getCurrent() {
13327
13098
  this.wire.sendAction('layout-get-current').catch((e) => {
@@ -13345,6 +13116,7 @@ class LayoutModule extends base_1$5.Base {
13345
13116
  * // Use wrapped instance to control layout, e.g.:
13346
13117
  * const layoutConfig = await layout.getConfig();
13347
13118
  * ```
13119
+ * @static
13348
13120
  */
13349
13121
  getCurrentSync() {
13350
13122
  this.wire.sendAction('layout-get-current-sync').catch((e) => {
@@ -13362,16 +13134,13 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
13362
13134
 
13363
13135
  (function (exports) {
13364
13136
  /**
13365
- * Entry point for the OpenFin `Layout` subset of the `Platform` API (`fin.Platform.Layout`).
13366
- *
13367
- * * {@link LayoutModule} contains static members of the `Layout` API, accessible through `fin.Platform.Layout`.
13368
- * * {@link Layout} describes an instance of an OpenFin Layout, e.g. as returned by `fin.Platform.Layout.getCurrent`.
13137
+ * Entry point for the OpenFin Layout namespace.
13369
13138
  *
13370
- * 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),
13371
- * both of these were documented on the same page.
13139
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "LayoutModule" is used for
13140
+ * the module containing static members of the `Layout` namespace (available under `fin.Platform.Layout`), while `Layout` documents
13141
+ * instances of the OpenFin `Layout` class.
13372
13142
  *
13373
13143
  * @packageDocumentation
13374
- *
13375
13144
  */
13376
13145
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13377
13146
  if (k2 === undefined) k2 = k;
@@ -13393,13 +13162,9 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
13393
13162
  } (layout));
13394
13163
 
13395
13164
  Object.defineProperty(Factory$3, "__esModule", { value: true });
13396
- Factory$3.PlatformModule = void 0;
13397
- const base_1$4 = base$1;
13165
+ const base_1$4 = base;
13398
13166
  const Instance_1$1 = Instance$2;
13399
13167
  const index_1$1 = layout;
13400
- /**
13401
- * Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
13402
- */
13403
13168
  class PlatformModule extends base_1$4.Base {
13404
13169
  /**
13405
13170
  * @internal
@@ -13465,12 +13230,14 @@ class PlatformModule extends base_1$4.Base {
13465
13230
  * fin.Platform.init({overrideCallback});
13466
13231
  * ```
13467
13232
  * @experimental
13233
+ * @static
13468
13234
  */
13469
13235
  async init(options) {
13470
13236
  return this.wire.environment.initPlatform(this.fin, options);
13471
13237
  }
13472
13238
  /**
13473
13239
  * Asynchronously returns a Platform object that represents an existing platform.
13240
+ * @param identity
13474
13241
  *
13475
13242
  * @example
13476
13243
  * ```js
@@ -13479,6 +13246,7 @@ class PlatformModule extends base_1$4.Base {
13479
13246
  * // Use wrapped instance to control layout, e.g.:
13480
13247
  * const snapshot = await platform.getSnapshot();
13481
13248
  * ```
13249
+ * @static
13482
13250
  */
13483
13251
  async wrap(identity) {
13484
13252
  this.wire.sendAction('platform-wrap').catch((e) => {
@@ -13488,6 +13256,7 @@ class PlatformModule extends base_1$4.Base {
13488
13256
  }
13489
13257
  /**
13490
13258
  * Synchronously returns a Platform object that represents an existing platform.
13259
+ * @param identity
13491
13260
  *
13492
13261
  * @example
13493
13262
  * ```js
@@ -13496,6 +13265,7 @@ class PlatformModule extends base_1$4.Base {
13496
13265
  * // Use wrapped instance to control layout, e.g.:
13497
13266
  * const snapshot = await platform.getSnapshot();
13498
13267
  * ```
13268
+ * @static
13499
13269
  */
13500
13270
  wrapSync(identity) {
13501
13271
  this.wire.sendAction('platform-wrap-sync').catch((e) => {
@@ -13512,6 +13282,7 @@ class PlatformModule extends base_1$4.Base {
13512
13282
  * // Use wrapped instance to control layout, e.g.:
13513
13283
  * const snapshot = await platform.getSnapshot();
13514
13284
  * ```
13285
+ * @static
13515
13286
  */
13516
13287
  async getCurrent() {
13517
13288
  this.wire.sendAction('platform-get-current').catch((e) => {
@@ -13528,6 +13299,7 @@ class PlatformModule extends base_1$4.Base {
13528
13299
  * // Use wrapped instance to control layout, e.g.:
13529
13300
  * const snapshot = await platform.getSnapshot();
13530
13301
  * ```
13302
+ * @static
13531
13303
  */
13532
13304
  getCurrentSync() {
13533
13305
  this.wire.sendAction('platform-get-current-sync').catch((e) => {
@@ -13538,6 +13310,7 @@ class PlatformModule extends base_1$4.Base {
13538
13310
  /**
13539
13311
  * Creates and starts a Platform and returns a wrapped and running Platform instance. The wrapped Platform methods can
13540
13312
  * be used to launch content into the platform. Promise will reject if the platform is already running.
13313
+ * @param platformOptions
13541
13314
  *
13542
13315
  * @example
13543
13316
  * ```js
@@ -13558,6 +13331,7 @@ class PlatformModule extends base_1$4.Base {
13558
13331
  * console.error(e);
13559
13332
  * }
13560
13333
  * ```
13334
+ * @static
13561
13335
  */
13562
13336
  start(platformOptions) {
13563
13337
  this.wire.sendAction('platform-start').catch((e) => {
@@ -13602,6 +13376,7 @@ class PlatformModule extends base_1$4.Base {
13602
13376
  * console.error(e);
13603
13377
  * }
13604
13378
  * ```
13379
+ * @static
13605
13380
  */
13606
13381
  startFromManifest(manifestUrl, opts) {
13607
13382
  this.wire.sendAction('platform-start-from-manifest').catch((e) => {
@@ -13624,9 +13399,18 @@ class PlatformModule extends base_1$4.Base {
13624
13399
  });
13625
13400
  }
13626
13401
  }
13627
- Factory$3.PlatformModule = PlatformModule;
13402
+ Factory$3.default = PlatformModule;
13628
13403
 
13629
13404
  (function (exports) {
13405
+ /**
13406
+ * Entry point for the OpenFin Platform namespace.
13407
+ *
13408
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "PlatformModule" is used for
13409
+ * the module containing static members of the `Platform` namespace (available under `fin.Platform`), while `Platform` documents
13410
+ * instances of the OpenFin `Platform` class.
13411
+ *
13412
+ * @packageDocumentation
13413
+ */
13630
13414
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13631
13415
  if (k2 === undefined) k2 = k;
13632
13416
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -13642,20 +13426,10 @@ Factory$3.PlatformModule = PlatformModule;
13642
13426
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
13643
13427
  };
13644
13428
  Object.defineProperty(exports, "__esModule", { value: true });
13645
- /**
13646
- * Entry points for the OpenFin `Platform` API (`fin.Platform`)
13647
- *
13648
- * * {@link PlatformModule} contains static members of the `Platform` API, accessible through `fin.Platform`.
13649
- * * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
13650
- *
13651
- * 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),
13652
- * both of these were documented on the same page.
13653
- *
13654
- * @packageDocumentation
13655
- */
13656
- __exportStar(Factory$3, exports);
13429
+ const Factory_1 = Factory$3;
13430
+ exports.default = Factory_1.default;
13657
13431
  __exportStar(Instance$2, exports);
13658
- } (platform$1));
13432
+ } (platform));
13659
13433
 
13660
13434
  var me = {};
13661
13435
 
@@ -13663,9 +13437,9 @@ var me = {};
13663
13437
  Object.defineProperty(exports, "__esModule", { value: true });
13664
13438
  exports.getMe = exports.getBaseMe = exports.environmentUnsupportedMessage = void 0;
13665
13439
  const view_1 = requireView();
13666
- const frame_1 = frame$1;
13440
+ const frame_1 = frame;
13667
13441
  const window_1 = requireWindow();
13668
- const external_application_1 = externalApplication$1;
13442
+ const external_application_1 = externalApplication;
13669
13443
  exports.environmentUnsupportedMessage = 'You are not running in OpenFin.';
13670
13444
  function getBaseMe(entityType, uuid, name) {
13671
13445
  const entityTypeHelpers = {
@@ -14326,7 +14100,7 @@ function requireInteropBroker () {
14326
14100
  hasRequiredInteropBroker = 1;
14327
14101
  Object.defineProperty(InteropBroker, "__esModule", { value: true });
14328
14102
  InteropBroker.InteropBroker = void 0;
14329
- const base_1 = base$1;
14103
+ const base_1 = base;
14330
14104
  const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
14331
14105
  const utils_1 = utils$1;
14332
14106
  const lodash_1 = require$$3;
@@ -14901,8 +14675,7 @@ function requireInteropBroker () {
14901
14675
  * ```
14902
14676
  */
14903
14677
  // eslint-disable-next-line class-methods-use-this
14904
- async handleFiredIntent(intent, clientIdentity // TODO(CORE-811): remove inline intersected type
14905
- ) {
14678
+ async handleFiredIntent(intent, clientIdentity) {
14906
14679
  const warning = (0, utils_1.generateOverrideWarning)('fdc3.raiseIntent', 'InteropBroker.handleFiredIntent', clientIdentity, 'interopClient.fireIntent');
14907
14680
  console.warn(warning);
14908
14681
  throw new Error(utils_1.BROKER_ERRORS.fireIntent);
@@ -14969,7 +14742,7 @@ function requireInteropBroker () {
14969
14742
  * More information on the AppIntent type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/AppIntent).
14970
14743
  *
14971
14744
  * @param options
14972
- * @param clientIdentity Identity of the Client making the request.
14745
+ * @param clientIdentity Identity of the Client making the request.
14973
14746
  *
14974
14747
  * @example
14975
14748
  * ```js
@@ -14986,8 +14759,7 @@ function requireInteropBroker () {
14986
14759
  * ```
14987
14760
  */
14988
14761
  // eslint-disable-next-line class-methods-use-this
14989
- async handleInfoForIntent(options, clientIdentity // TODO(CORE-811): remove inline intersected type
14990
- ) {
14762
+ async handleInfoForIntent(options, clientIdentity) {
14991
14763
  const warning = (0, utils_1.generateOverrideWarning)('fdc3.findIntent', 'InteropBroker.handleInfoForIntent', clientIdentity, 'interopClient.getInfoForIntent');
14992
14764
  console.warn(warning);
14993
14765
  throw new Error(utils_1.BROKER_ERRORS.getInfoForIntent);
@@ -15033,8 +14805,7 @@ function requireInteropBroker () {
15033
14805
  * ```
15034
14806
  */
15035
14807
  // eslint-disable-next-line class-methods-use-this
15036
- async handleInfoForIntentsByContext(context, clientIdentity // TODO(CORE-811): remove inline intersected type
15037
- ) {
14808
+ async handleInfoForIntentsByContext(context, clientIdentity) {
15038
14809
  const warning = (0, utils_1.generateOverrideWarning)('fdc3.findIntentsByContext', 'InteropBroker.handleInfoForIntentsByContext', clientIdentity, 'interopClient.getInfoForIntentsByContext');
15039
14810
  console.warn(warning);
15040
14811
  throw new Error(utils_1.BROKER_ERRORS.getInfoForIntentsByContext);
@@ -15060,7 +14831,7 @@ function requireInteropBroker () {
15060
14831
  * More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/IntentResolution).
15061
14832
  *
15062
14833
  * @param contextForIntent Data passed between entities and applications.
15063
- * @param clientIdentity Identity of the Client making the request.
14834
+ * @param clientIdentity Identity of the Client making the request.
15064
14835
  *
15065
14836
  * @example
15066
14837
  * ```js
@@ -15121,7 +14892,7 @@ function requireInteropBroker () {
15121
14892
  /**
15122
14893
  * Responsible for resolving the fdc3.findInstances call.
15123
14894
  * Must be overridden
15124
- * @param app AppIdentifier that was passed to fdc3.findInstances
14895
+ * @param app AppIdentifier that was passed to fdc3.findInstances
15125
14896
  * @param clientIdentity Identity of the Client making the request.
15126
14897
  */
15127
14898
  // eslint-disable-next-line class-methods-use-this
@@ -15156,7 +14927,7 @@ function requireInteropBroker () {
15156
14927
  * fin.Platform.init({
15157
14928
  * interopOverride: async (InteropBroker) => {
15158
14929
  * class Override extends InteropBroker {
15159
- * async invokeContextHandler(clientIdentity, handlerId, context) {
14930
+ * async invokeContextHandler(options, clientIdentity) {
15160
14931
  * return super.invokeContextHandler(clientIdentity, handlerId, {
15161
14932
  * ...context,
15162
14933
  * contextMetadata: {
@@ -15196,7 +14967,7 @@ function requireInteropBroker () {
15196
14967
  * fin.Platform.init({
15197
14968
  * interopOverride: async (InteropBroker) => {
15198
14969
  * class Override extends InteropBroker {
15199
- * async invokeIntentHandler(clientIdentity, handlerId, context) {
14970
+ * async invokeIntentHandler(options, clientIdentity) {
15200
14971
  * const { context } = intent;
15201
14972
  * return super.invokeIntentHandler(clientIdentity, handlerId, {
15202
14973
  * ...intent,
@@ -15535,8 +15306,7 @@ function requireInteropBroker () {
15535
15306
  }
15536
15307
  // Setup Channel Connection Logic
15537
15308
  wireChannel(channel) {
15538
- channel.onConnection(async (clientIdentity, // TODO(CORE-811): remove inline intersected type
15539
- payload) => {
15309
+ channel.onConnection(async (clientIdentity, payload) => {
15540
15310
  if (!(await this.isConnectionAuthorized(clientIdentity, payload))) {
15541
15311
  throw new Error(`Connection not authorized for ${clientIdentity.uuid}, ${clientIdentity.name}`);
15542
15312
  }
@@ -15660,7 +15430,7 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15660
15430
  };
15661
15431
  var _SessionContextGroupClient_clientPromise;
15662
15432
  Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
15663
- const base_1$3 = base$1;
15433
+ const base_1$3 = base;
15664
15434
  const utils_1$3 = utils$1;
15665
15435
  class SessionContextGroupClient extends base_1$3.Base {
15666
15436
  constructor(wire, client, id) {
@@ -15747,7 +15517,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
15747
15517
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
15748
15518
  Object.defineProperty(InteropClient$1, "__esModule", { value: true });
15749
15519
  InteropClient$1.InteropClient = void 0;
15750
- const base_1$2 = base$1;
15520
+ const base_1$2 = base;
15751
15521
  const SessionContextGroupClient_1 = SessionContextGroupClient$1;
15752
15522
  const utils_1$2 = utils$1;
15753
15523
  /**
@@ -16416,46 +16186,39 @@ class InteropClient extends base_1$2.Base {
16416
16186
  InteropClient$1.InteropClient = InteropClient;
16417
16187
  _InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
16418
16188
 
16419
- var overrideCheck = {};
16420
-
16421
- var hasRequiredOverrideCheck;
16189
+ var overrideCheck$1 = {};
16422
16190
 
16423
- function requireOverrideCheck () {
16424
- if (hasRequiredOverrideCheck) return overrideCheck;
16425
- hasRequiredOverrideCheck = 1;
16426
- Object.defineProperty(overrideCheck, "__esModule", { value: true });
16427
- overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
16428
- const InteropBroker_1 = requireInteropBroker();
16429
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16430
- var _a, _b, _c, _d;
16431
- 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;
16432
- return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16433
- }
16434
- overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16435
- // TODO: Unit test this
16436
- function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
16437
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16438
- const mustOverrideAPIs = [
16439
- 'fdc3HandleFindInstances',
16440
- 'handleInfoForIntent',
16441
- 'handleInfoForIntentsByContext',
16442
- 'fdc3HandleGetAppMetadata',
16443
- 'fdc3HandleGetInfo',
16444
- 'fdc3HandleOpen',
16445
- 'handleFiredIntent',
16446
- 'handleFiredIntentForContext'
16447
- ];
16448
- const notOverridden = mustOverrideAPIs.filter((api) => {
16449
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16450
- });
16451
- if (notOverridden.length > 0) {
16452
- console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
16453
- }
16454
- }
16455
- }
16456
- overrideCheck.overrideCheck = overrideCheck$1;
16457
- return overrideCheck;
16191
+ Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
16192
+ overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
16193
+ const InteropBroker_1 = requireInteropBroker();
16194
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
16195
+ var _a, _b, _c, _d;
16196
+ 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;
16197
+ return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
16458
16198
  }
16199
+ overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
16200
+ // TODO: Unit test this
16201
+ function overrideCheck(overriddenBroker, fdc3InteropApi) {
16202
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
16203
+ const mustOverrideAPIs = [
16204
+ 'fdc3HandleFindInstances',
16205
+ 'handleInfoForIntent',
16206
+ 'handleInfoForIntentsByContext',
16207
+ 'fdc3HandleGetAppMetadata',
16208
+ 'fdc3HandleGetInfo',
16209
+ 'fdc3HandleOpen',
16210
+ 'handleFiredIntent',
16211
+ 'handleFiredIntentForContext'
16212
+ ];
16213
+ const notOverridden = mustOverrideAPIs.filter((api) => {
16214
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
16215
+ });
16216
+ if (notOverridden.length > 0) {
16217
+ console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
16218
+ }
16219
+ }
16220
+ }
16221
+ overrideCheck$1.overrideCheck = overrideCheck;
16459
16222
 
16460
16223
  var hasRequiredFactory;
16461
16224
 
@@ -16463,13 +16226,12 @@ function requireFactory () {
16463
16226
  if (hasRequiredFactory) return Factory$1;
16464
16227
  hasRequiredFactory = 1;
16465
16228
  Object.defineProperty(Factory$1, "__esModule", { value: true });
16466
- Factory$1.InteropModule = void 0;
16467
16229
  const lodash_1 = require$$3;
16468
16230
  const inaccessibleObject_1 = inaccessibleObject;
16469
- const base_1 = base$1;
16231
+ const base_1 = base;
16470
16232
  const InteropBroker_1 = requireInteropBroker();
16471
16233
  const InteropClient_1 = InteropClient$1;
16472
- const overrideCheck_1 = requireOverrideCheck();
16234
+ const overrideCheck_1 = overrideCheck$1;
16473
16235
  const common_utils_1 = commonUtils;
16474
16236
  const defaultOverride = (Class) => new Class();
16475
16237
  const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
@@ -16500,6 +16262,7 @@ function requireFactory () {
16500
16262
  * const contextGroups = await interopBroker.getContextGroups();
16501
16263
  * console.log(contextGroups);
16502
16264
  * ```
16265
+ * @static
16503
16266
  */
16504
16267
  async init(name, override = defaultOverride) {
16505
16268
  var _a;
@@ -16557,6 +16320,7 @@ function requireFactory () {
16557
16320
  * const contextGroupInfo = await client.getInfoForContextGroup();
16558
16321
  * console.log(contextGroupInfo);
16559
16322
  * ```
16323
+ * @static
16560
16324
  */
16561
16325
  connectSync(name, interopConfig) {
16562
16326
  this.wire.sendAction('interop-connect-sync').catch(() => {
@@ -16565,7 +16329,7 @@ function requireFactory () {
16565
16329
  return new InteropClient_1.InteropClient(this.wire, name, interopConfig);
16566
16330
  }
16567
16331
  }
16568
- Factory$1.InteropModule = InteropModule;
16332
+ Factory$1.default = InteropModule;
16569
16333
  return Factory$1;
16570
16334
  }
16571
16335
 
@@ -16576,10 +16340,10 @@ function requireInterop () {
16576
16340
  hasRequiredInterop = 1;
16577
16341
  (function (exports) {
16578
16342
  /**
16579
- * Entry point for the OpenFin `Interop` API (`fin.Interop`).
16343
+ * Entry point for the OpenFin Interop namespace.
16580
16344
  *
16581
- * * {@link InteropModule} contains static members of the `Interop` API (available under `fin.Interop`)
16582
- * * {@link InteropClient} and {@link InteropBroker} document instances of their respective classes.
16345
+ * "InteropModule" contains static members of the `Interop` namespace (available under `fin.Interop`), while `InteropClient` and
16346
+ * `InteropBroker` document instances of their respective classes.
16583
16347
  *
16584
16348
  * @packageDocumentation
16585
16349
  */
@@ -16598,7 +16362,8 @@ function requireInterop () {
16598
16362
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16599
16363
  };
16600
16364
  Object.defineProperty(exports, "__esModule", { value: true });
16601
- __exportStar(requireFactory(), exports);
16365
+ const Factory_1 = requireFactory();
16366
+ exports.default = Factory_1.default;
16602
16367
  __exportStar(InteropClient$1, exports);
16603
16368
  __exportStar(requireInteropBroker(), exports);
16604
16369
  } (interop));
@@ -16634,14 +16399,12 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
16634
16399
  Object.defineProperty(Instance, "__esModule", { value: true });
16635
16400
  Instance.SnapshotSource = void 0;
16636
16401
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
16637
- const base_1$1 = base$1;
16402
+ const base_1$1 = base;
16638
16403
  const utils_1$1 = utils;
16639
16404
  const connectionMap = new Map();
16640
16405
  /**
16641
16406
  * Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
16642
16407
  *
16643
- * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
16644
- * custom snapshot implementations for legacy applications to define their own snapshot format.
16645
16408
  */
16646
16409
  class SnapshotSource extends base_1$1.Base {
16647
16410
  /**
@@ -16776,19 +16539,13 @@ Instance.SnapshotSource = SnapshotSource;
16776
16539
  _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new WeakMap(), _SnapshotSource_getClient = new WeakMap(), _SnapshotSource_startConnection = new WeakMap(), _SnapshotSource_setUpConnectionListener = new WeakMap();
16777
16540
 
16778
16541
  Object.defineProperty(Factory, "__esModule", { value: true });
16779
- Factory.SnapshotSourceModule = void 0;
16780
- const base_1 = base$1;
16542
+ const base_1 = base;
16781
16543
  const Instance_1 = Instance;
16782
16544
  const utils_1 = utils;
16783
- /**
16784
- * Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
16785
- */
16786
16545
  class SnapshotSourceModule extends base_1.Base {
16787
16546
  /**
16788
16547
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
16789
- *
16790
- * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
16791
- * custom snapshot implementations for legacy applications to define their own snapshot format.
16548
+ * @param provider
16792
16549
  *
16793
16550
  * @example
16794
16551
  * ```js
@@ -16805,7 +16562,7 @@ class SnapshotSourceModule extends base_1.Base {
16805
16562
  *
16806
16563
  * await fin.SnapshotSource.init(snapshotProvider);
16807
16564
  * ```
16808
- *
16565
+ * @static
16809
16566
  */
16810
16567
  async init(provider) {
16811
16568
  this.wire.sendAction('snapshot-source-init').catch((e) => {
@@ -16825,6 +16582,7 @@ class SnapshotSourceModule extends base_1.Base {
16825
16582
  }
16826
16583
  /**
16827
16584
  * Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
16585
+ * @param identity
16828
16586
  *
16829
16587
  * @example
16830
16588
  * ```js
@@ -16832,6 +16590,7 @@ class SnapshotSourceModule extends base_1.Base {
16832
16590
  * // Use wrapped instance's getSnapshot method, e.g.:
16833
16591
  * const snapshot = await snapshotSource.getSnapshot();
16834
16592
  * ```
16593
+ * @static
16835
16594
  */
16836
16595
  wrapSync(identity) {
16837
16596
  this.wire.sendAction('snapshot-source-wrap-sync').catch((e) => {
@@ -16841,6 +16600,7 @@ class SnapshotSourceModule extends base_1.Base {
16841
16600
  }
16842
16601
  /**
16843
16602
  * Asynchronously returns a SnapshotSource object that represents the current SnapshotSource.
16603
+ * @param identity
16844
16604
  *
16845
16605
  * @example
16846
16606
  * ```js
@@ -16848,6 +16608,7 @@ class SnapshotSourceModule extends base_1.Base {
16848
16608
  * // Use wrapped instance's getSnapshot method, e.g.:
16849
16609
  * const snapshot = await snapshotSource.getSnapshot();
16850
16610
  * ```
16611
+ * @static
16851
16612
  */
16852
16613
  async wrap(identity) {
16853
16614
  this.wire.sendAction('snapshot-source-wrap').catch((e) => {
@@ -16856,17 +16617,15 @@ class SnapshotSourceModule extends base_1.Base {
16856
16617
  return this.wrapSync(identity);
16857
16618
  }
16858
16619
  }
16859
- Factory.SnapshotSourceModule = SnapshotSourceModule;
16620
+ Factory.default = SnapshotSourceModule;
16860
16621
 
16861
16622
  (function (exports) {
16862
16623
  /**
16863
- * Entry points for the OpenFin `SnapshotSource` API (`fin.SnapshotSource`).
16624
+ * Entry point for the OpenFin SnapshotSource namespace.
16864
16625
  *
16865
- * * {@link SnapshotSourceModule} contains static members of the `SnapshotSource` API, accessible through `fin.SnapshotSource`.
16866
- * * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.wrap`.
16867
- *
16868
- * 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),
16869
- * both of these were documented on the same page.
16626
+ * Because TypeDoc does not currently support multiple modules with the same name, the module alias "SnapshotSourceModule" is used for
16627
+ * the module containing static members of the `SnapshotSource` namespace (available under `fin.SnapshotSource`), while `SnapshotSource` documents
16628
+ * instances of the OpenFin `SnapshotSource` class.
16870
16629
  *
16871
16630
  * @packageDocumentation
16872
16631
  */
@@ -16885,30 +16644,27 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
16885
16644
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16886
16645
  };
16887
16646
  Object.defineProperty(exports, "__esModule", { value: true });
16888
- __exportStar(Factory, exports);
16647
+ const Factory_1 = Factory;
16648
+ exports.default = Factory_1.default;
16889
16649
  __exportStar(Instance, exports);
16890
16650
  } (snapshotSource));
16891
16651
 
16892
16652
  Object.defineProperty(fin, "__esModule", { value: true });
16893
- fin.Fin = void 0;
16894
16653
  const events_1$3 = eventsExports;
16895
16654
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
16896
- const index_1 = system$1;
16655
+ const index_1 = system;
16897
16656
  const index_2 = requireWindow();
16898
16657
  const index_3 = requireApplication();
16899
16658
  const index_4 = interappbus;
16900
16659
  const index_5 = clipboard;
16901
- const index_6 = externalApplication$1;
16902
- const index_7 = frame$1;
16903
- const index_8 = globalHotkey$1;
16660
+ const index_6 = externalApplication;
16661
+ const index_7 = frame;
16662
+ const index_8 = globalHotkey;
16904
16663
  const index_9 = requireView();
16905
- const index_10 = platform$1;
16664
+ const index_10 = platform;
16906
16665
  const me_1$1 = me;
16907
16666
  const interop_1 = requireInterop();
16908
16667
  const snapshot_source_1 = snapshotSource;
16909
- /**
16910
- * @internal
16911
- */
16912
16668
  class Fin extends events_1$3.EventEmitter {
16913
16669
  /**
16914
16670
  * @internal
@@ -16916,18 +16672,18 @@ class Fin extends events_1$3.EventEmitter {
16916
16672
  constructor(wire) {
16917
16673
  super();
16918
16674
  this.wire = wire;
16919
- this.System = new index_1.System(wire);
16920
- this.Window = new index_2._WindowModule(wire);
16921
- this.Application = new index_3.ApplicationModule(wire);
16922
- this.InterApplicationBus = new index_4.InterApplicationBus(wire);
16923
- this.Clipboard = new index_5.Clipboard(wire);
16924
- this.ExternalApplication = new index_6.ExternalApplicationModule(wire);
16925
- this.Frame = new index_7._FrameModule(wire);
16926
- this.GlobalHotkey = new index_8.GlobalHotkey(wire);
16927
- this.Platform = new index_10.PlatformModule(wire, this.InterApplicationBus.Channel);
16928
- this.View = new index_9.ViewModule(wire);
16929
- this.Interop = new interop_1.InteropModule(wire);
16930
- this.SnapshotSource = new snapshot_source_1.SnapshotSourceModule(wire);
16675
+ this.System = new index_1.default(wire);
16676
+ this.Window = new index_2.default(wire);
16677
+ this.Application = new index_3.default(wire);
16678
+ this.InterApplicationBus = new index_4.default(wire);
16679
+ this.Clipboard = new index_5.default(wire);
16680
+ this.ExternalApplication = new index_6.default(wire);
16681
+ this.Frame = new index_7.default(wire);
16682
+ this.GlobalHotkey = new index_8.default(wire);
16683
+ this.Platform = new index_10.default(wire, this.InterApplicationBus.Channel);
16684
+ this.View = new index_9.default(wire);
16685
+ this.Interop = new interop_1.default(wire);
16686
+ this.SnapshotSource = new snapshot_source_1.default(wire);
16931
16687
  wire.registerFin(this);
16932
16688
  this.me = (0, me_1$1.getMe)(wire);
16933
16689
  // Handle disconnect events
@@ -16936,7 +16692,7 @@ class Fin extends events_1$3.EventEmitter {
16936
16692
  });
16937
16693
  }
16938
16694
  }
16939
- fin.Fin = Fin;
16695
+ fin.default = Fin;
16940
16696
 
16941
16697
  var wire = {};
16942
16698
 
@@ -18238,7 +17994,7 @@ function requireMain () {
18238
17994
  Object.defineProperty(exports, "__esModule", { value: true });
18239
17995
  exports.ChannelProvider = exports.ChannelClient = exports.Frame = exports.View = exports.System = exports.Window = exports.Application = exports.Fin = exports.launch = exports.connect = void 0;
18240
17996
  const fin_1 = fin;
18241
- Object.defineProperty(exports, "Fin", { enumerable: true, get: function () { return fin_1.Fin; } });
17997
+ exports.Fin = fin_1.default;
18242
17998
  const index_1 = requireApplication();
18243
17999
  Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return index_1.Application; } });
18244
18000
  const window_1 = requireWindow();
@@ -18246,13 +18002,13 @@ function requireMain () {
18246
18002
  const view_1 = requireView();
18247
18003
  Object.defineProperty(exports, "View", { enumerable: true, get: function () { return view_1.View; } });
18248
18004
  const client_1 = client;
18249
- Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return client_1.ChannelClient; } });
18005
+ exports.ChannelClient = client_1.default;
18250
18006
  const provider_1 = provider;
18251
18007
  Object.defineProperty(exports, "ChannelProvider", { enumerable: true, get: function () { return provider_1.ChannelProvider; } });
18252
- const frame_1 = frame$1;
18008
+ const frame_1 = frame;
18253
18009
  Object.defineProperty(exports, "Frame", { enumerable: true, get: function () { return frame_1._Frame; } });
18254
- const system_1 = system$1;
18255
- Object.defineProperty(exports, "System", { enumerable: true, get: function () { return system_1.System; } });
18010
+ const system_1 = system;
18011
+ exports.System = system_1.default;
18256
18012
  const wire_1 = wire;
18257
18013
  const node_env_1 = requireNodeEnv();
18258
18014
  const transport_1 = transport;
@@ -18269,7 +18025,7 @@ function requireMain () {
18269
18025
  name: (_a = normalized.name) !== null && _a !== void 0 ? _a : normalized.uuid
18270
18026
  });
18271
18027
  await wire.connect(normalized);
18272
- return new fin_1.Fin(wire);
18028
+ return new fin_1.default(wire);
18273
18029
  }
18274
18030
  exports.connect = connect;
18275
18031
  async function launch(config) {
@@ -18287,261 +18043,15 @@ function requireMain () {
18287
18043
 
18288
18044
  var mainExports = requireMain();
18289
18045
 
18290
- var OpenFin$2 = {};
18291
-
18292
- var events = {};
18293
-
18294
- var application = {};
18295
-
18296
- /**
18297
- * Namespace for events that can be emitted by an {@link OpenFin.Application}. Includes events
18298
- * re-propagated from the {@link OpenFin.Window} (and, transitively, {@link OpenFin.View}) level, prefixed with `window-` (and also, if applicable, `view-`).
18299
- * For example, a view's "attached" event will fire as 'window-view-attached' at the application level.
18300
- *
18301
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18302
- *
18303
- * This namespace contains only payload shapes for events that are unique to `Application`. Events that propagate to `Application` from
18304
- * child {@link OpenFin.Window windows} and {@link OpenFin.View views} are defined in the {@link OpenFin.WindowEvents} and
18305
- * {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all* application events, see {@link Application.on Application.on}.
18306
- *
18307
- * {@link NativeApplicationEvent Native application events} (i.e. those that have not propagated from {@link OpenFin.ViewEvents Views}
18308
- * or {@link OpenFin.WindowEvents Windows} re-propagate to {@link OpenFin.SystemEvents System} with their type string prefixed with `application-`.
18309
- * {@link OpenFin.ApplicationEvents.ApplicationWindowEvent Application events that are tied to Windows but do not propagate from them}
18310
- * are propagated to `System` without any type string prefixing.
18311
- *
18312
- * "Requested" events (e.g. {@link RunRequestedEvent}) do not propagate.
18313
- *
18314
- * @packageDocumentation
18315
- */
18316
- Object.defineProperty(application, "__esModule", { value: true });
18317
-
18318
- var base = {};
18319
-
18320
- /**
18321
- * Namespace for shared event payloads and utility types common to all event emitters.
18322
- *
18323
- * @packageDocumentation
18324
- */
18325
- Object.defineProperty(base, "__esModule", { value: true });
18326
-
18327
- var externalApplication = {};
18328
-
18329
- /**
18330
- * Namespace for events that can be transmitted by an {@link OpenFin.ExternalApplication}.
18331
- *
18332
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18333
- *
18334
- * For a list of valid string keys for external application events, see {@link ExternalApplication.on ExternalApplication.on}.
18335
- *
18336
- * @packageDocumentation
18337
- */
18338
- Object.defineProperty(externalApplication, "__esModule", { value: true });
18339
-
18340
- var frame = {};
18341
-
18342
- Object.defineProperty(frame, "__esModule", { value: true });
18343
-
18344
- var globalHotkey = {};
18345
-
18346
- Object.defineProperty(globalHotkey, "__esModule", { value: true });
18347
-
18348
- var platform = {};
18349
-
18350
- /**
18351
- *
18352
- * Namespace for events that can emitted by a {@link OpenFin.Platform}.
18353
- *
18354
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18355
- *
18356
- * The Platform `EventEmitter` is a superset of the {@link OpenFin.Application} `EventEmitter`,
18357
- * meaning it can listen to all {@link OpenFin.ApplicationEvents Application events} in addition to the
18358
- * Platform-specific events listed here. For a list of valid string keys for *all* platform events, see
18359
- * {@link Platform.on Platform.on}.
18360
- *
18361
- * @packageDocumentation
18362
- */
18363
- Object.defineProperty(platform, "__esModule", { value: true });
18364
-
18365
- var system = {};
18366
-
18367
- /**
18368
- * Namespace for runtime-wide OpenFin events emitted by {@link System.System}. Includes events
18369
- * re-propagated from {@link OpenFin.Application}, {@link OpenFin.Window}, and {@link OpenFin.View} (prefixed with `application-`, `window-`, and `view-`). All
18370
- * event propagations are visible at the System level. Propagated events from WebContents (windows, views, frames) to the Application level will *not*
18371
- * transitively re-propagate to the System level, because they are already visible at the system level and contain the identity
18372
- * of the application. For example, an application's "closed" event will fire as 'application-closed' at the system level. A view's 'shown' event
18373
- * will be visible as 'view-shown' at the system level, but *not* as `application-window-view-shown`.
18374
- *
18375
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18376
- *
18377
- * This namespace contains only payload shapes for events that are unique to `System`. Events that propagate to `System` from
18378
- * child {@link OpenFin.Application applications}, {@link OpenFin.Window windows}, and {@link OpenFin.View views} are defined in the
18379
- * {@link OpenFin.ApplicationEvents}, {@link OpenFin.WindowEvents}, and {@link OpenFin.ViewEvents} namespaces. For a list of valid string keys for *all*
18380
- * system events, see {@link System.on System.on}.
18381
- *
18382
- * @packageDocumentation
18383
- */
18384
- Object.defineProperty(system, "__esModule", { value: true });
18385
-
18386
- var view = {};
18387
-
18388
- /**
18389
- * Namespace for events that can be emitted by a {@link OpenFin.View}.
18390
- *
18391
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18392
- *
18393
- * This namespace contains only payload shapes for events that are unique to `View`. Events that are shared between all `WebContents`
18394
- * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. For a list
18395
- * of valid string keys for *all* View events, see {@link View.on View.on}.
18396
- *
18397
- * View events propagate to their parent {@link OpenFin.WindowEvents Window}, {@link OpenFin.ApplicationEvents Application},
18398
- * and {@link OpenFin.SystemEvents System} with an added `viewIdentity` property and their event types prefixed with `'view-'`.
18399
- *
18400
- * @packageDocumentation
18401
- */
18402
- Object.defineProperty(view, "__esModule", { value: true });
18403
-
18404
- var webcontents = {};
18405
-
18406
- /**
18407
- * Namespace for events shared by all OpenFin WebContents elements (i.e. {@link OpenFin.Window},
18408
- * {@link OpenFin.View}).
18409
- *
18410
- * WebContents events are divided into two groups: {@link WillPropagateWebContentsEvent} and {@link NonPropagatedWebContentsEvent}. Propagating events
18411
- * will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
18412
- * parent window, and propagating events in a window will also be emitted on the window's parent {@link OpenFin.Application}.
18413
- *
18414
- * Non-propagating events will not re-emit on parent entities.
18415
- *
18416
- * @packageDocumentation
18417
- */
18418
- Object.defineProperty(webcontents, "__esModule", { value: true });
18419
-
18420
- var window$1 = {};
18421
-
18422
- /**
18423
- * Namespace for events that can be emitted by a {@link OpenFin.Window}.
18424
- *
18425
- * Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18426
- *
18427
- * This namespace contains only payload shapes for events that are unique to `Window`. Events that are shared between all `WebContents`
18428
- * (i.e. {@link OpenFin.Window}, {@link OpenFin.View}) are defined in {@link OpenFin.WebContentsEvents}. Events that
18429
- * propagate from `View` are defined in {@link OpenFin.ViewEvents}. For a list of valid string keys for *all* Window events, see
18430
- * {@link Window.on Window.on}
18431
- *
18432
- * {@link OpenFin.WindowEvents.NativeWindowEvent Native window events} (i.e. those that are not propagated from a
18433
- * {@link OpenFin.ViewEvents View}) propagate to their parent {@link OpenFin.ApplicationEvents Application} and
18434
- * {@link OpenFin.SystemEvents System} with their event types prefixed with `'window-'`).
18435
- *
18436
- * "Requested" events (e.g. {@link AuthRequestedEvent}) do not propagate to `System. The {@link OpenFin.WindowEvents.WindowCloseRequestedEvent}
18437
- * does not propagate at all.
18438
- *
18439
- * @packageDocumentation
18440
- */
18441
- Object.defineProperty(window$1, "__esModule", { value: true });
18442
-
18443
- /**
18444
- * Namespace for OpenFin event types. Each entity that emits OpenFin events has its own sub-namespace. Event payloads
18445
- * themselves are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
18446
- *
18447
- * #### Event emitters
18448
- *
18449
- * The following entities emit OpenFin events, and have corresponding sub-namespaces:
18450
- *
18451
- * * {@link OpenFin.Application}: {@link OpenFin.ApplicationEvents}
18452
- * * {@link OpenFin.ExternalApplication}: {@link OpenFin.ExternalApplicationEvents}
18453
- * * {@link OpenFin.Frame}: {@link OpenFin.FrameEvents}
18454
- * * {@link OpenFin.GlobalHotkey}: {@link OpenFin.GlobalHotkeyEvents}
18455
- * * {@link OpenFin.Platform}: {@link OpenFin.PlatformEvents}
18456
- * * {@link OpenFin.System}: {@link OpenFin.SystemEvents}
18457
- * * {@link OpenFin.View}: {@link OpenFin.ViewEvents}
18458
- * * {@link OpenFin.Window}: {@link OpenFin.WindowEvents}
18459
- *
18460
- * These `EventEmitter` entities share a common set of methods for interacting with the OpenFin event bus, which can be
18461
- * seen on the individual documentation pages for each entity type.
18462
- *
18463
- * Registering event handlers is an asynchronous operation. It is important to ensure that the returned Promises are awaited to reduce the
18464
- * risk of race conditions.
18465
- *
18466
- * When the `EventEmitter` receives an event from the browser process and emits on the renderer, all of the functions attached to that
18467
- * specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded. If the window document
18468
- * is destroyed by page navigation or reload, its registered event listeners will be removed.
18469
- *
18470
- * We recommend using Arrow Functions for event listeners to ensure the this scope is consistent with the original function context.
18471
- *
18472
- * Events re-propagate from smaller/more-local scopes to larger/more-global scopes. For example, an event emitted on a specific
18473
- * view will propagate to the window in which the view is embedded, and then to the application in which the window is running, and
18474
- * finally to the OpenFin runtime itself at the "system" level. For details on propagation semantics, see the namespace for
18475
- * the propagating (or propagated-to) entity.
18476
- *
18477
- * If you need the payload type for a specific type of event (especially propagated events), use the emitting topic's `EventPayload`
18478
- * (e.g. {@link WindowEvents.WindowEventPayload}) generic with the event's `type` string. For example, the payload of
18479
- * a {@link ViewEvents.CreatedEvent} after it has propagated to its parent {@link WindowEvents Window} can be found with
18480
- * `WindowEventPayload<'view-created'>`.
18481
- *
18482
- * @packageDocumentation
18483
- */
18484
- Object.defineProperty(events, "__esModule", { value: true });
18485
- events.WindowEvents = events.WebContentsEvents = events.ViewEvents = events.SystemEvents = events.PlatformEvents = events.GlobalHotkeyEvents = events.FrameEvents = events.ExternalApplicationEvents = events.BaseEvents = events.ApplicationEvents = void 0;
18486
- const ApplicationEvents = application;
18487
- events.ApplicationEvents = ApplicationEvents;
18488
- const BaseEvents = base;
18489
- events.BaseEvents = BaseEvents;
18490
- const ExternalApplicationEvents = externalApplication;
18491
- events.ExternalApplicationEvents = ExternalApplicationEvents;
18492
- const FrameEvents = frame;
18493
- events.FrameEvents = FrameEvents;
18494
- const GlobalHotkeyEvents = globalHotkey;
18495
- events.GlobalHotkeyEvents = GlobalHotkeyEvents;
18496
- const PlatformEvents = platform;
18497
- events.PlatformEvents = PlatformEvents;
18498
- const SystemEvents = system;
18499
- events.SystemEvents = SystemEvents;
18500
- const ViewEvents = view;
18501
- events.ViewEvents = ViewEvents;
18502
- const WebContentsEvents = webcontents;
18503
- events.WebContentsEvents = WebContentsEvents;
18504
- const WindowEvents = window$1;
18505
- events.WindowEvents = WindowEvents;
18506
-
18507
- (function (exports) {
18508
- /**
18509
- * Top-level namespace for types referenced by the OpenFin API. Contains:
18510
- *
18511
- * * The type of the global `fin` entry point ({@link FinApi})
18512
- * * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
18513
- * * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
18514
- * * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
18515
- * * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
18516
- *
18517
- * @packageDocumentation
18518
- */
18519
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18520
- if (k2 === undefined) k2 = k;
18521
- var desc = Object.getOwnPropertyDescriptor(m, k);
18522
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18523
- desc = { enumerable: true, get: function() { return m[k]; } };
18524
- }
18525
- Object.defineProperty(o, k2, desc);
18526
- }) : (function(o, m, k, k2) {
18527
- if (k2 === undefined) k2 = k;
18528
- o[k2] = m[k];
18529
- }));
18530
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
18531
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18532
- };
18533
- Object.defineProperty(exports, "__esModule", { value: true });
18534
- // Deprecated shim to preserve v30 namespace names
18535
- __exportStar(events, exports);
18536
- } (OpenFin$2));
18046
+ var OpenFin$1 = {};
18537
18047
 
18538
- var OpenFin = /*@__PURE__*/getDefaultExportFromCjs(OpenFin$2);
18048
+ Object.defineProperty(OpenFin$1, "__esModule", { value: true });
18539
18049
 
18540
- var OpenFin$1 = /*#__PURE__*/_mergeNamespaces({
18050
+ var OpenFin = /*#__PURE__*/_mergeNamespaces({
18541
18051
  __proto__: null,
18542
- default: OpenFin
18543
- }, [OpenFin$2]);
18052
+ default: OpenFin$1
18053
+ }, [OpenFin$1]);
18544
18054
 
18545
18055
  exports.connect = mainExports.connect;
18546
- exports.default = OpenFin$1;
18056
+ exports.default = OpenFin;
18547
18057
  exports.launch = mainExports.launch;