@openfin/core 41.83.3 → 41.100.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -593,6 +593,23 @@ declare class Application extends EmitterBase<OpenFin_2.ApplicationEvent> {
593
593
  * ```
594
594
  */
595
595
  setTrayIcon(icon: string): Promise<void>;
596
+ /**
597
+ * Set hover text for this application's system tray icon.
598
+ * Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
599
+ * @param toolTip
600
+ *
601
+ * @example
602
+ *
603
+ * ```js
604
+ * const app = fin.Application.getCurrentSync();
605
+ * const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
606
+ *
607
+ * await app.setTrayIcon(iconUrl);
608
+ *
609
+ * await app.setTrayIconToolTip('My Application');
610
+ * ```
611
+ */
612
+ setTrayIconToolTip(toolTip: string): Promise<void>;
596
613
  /**
597
614
  * Sets new application's shortcut configuration. Windows only.
598
615
  * @param config New application's shortcut configuration.
@@ -1664,6 +1681,8 @@ declare type BaseConfig = {
1664
1681
  timeout?: number;
1665
1682
  };
1666
1683
 
1684
+ declare type BaseContentBehavior = 'allow' | 'block';
1685
+
1667
1686
  /**
1668
1687
  * Properties shared by all content creation rules, regardless of context.
1669
1688
  *
@@ -1807,6 +1826,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
1807
1826
  isMainFrame: boolean;
1808
1827
  };
1809
1828
 
1829
+ declare type BaseStructuredContentBehavior = {
1830
+ behavior: BaseContentBehavior;
1831
+ };
1832
+
1810
1833
  declare type BaseUrlEvent = NamedEvent & {
1811
1834
  type: 'url-changed';
1812
1835
  url: string;
@@ -1907,6 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
1907
1930
 
1908
1931
  declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
1909
1932
 
1933
+ declare type BrowserContentBehavior = {
1934
+ behavior: 'browser';
1935
+ /**
1936
+ * Additional property that can be specified when setting the behavior to browser.
1937
+ * When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
1938
+ */
1939
+ closeExisting?: boolean;
1940
+ };
1941
+
1910
1942
  /**
1911
1943
  * A rule prescribing content creation in the browser.
1912
1944
  *
@@ -3673,6 +3705,13 @@ declare type ConstWindowOptions = {
3673
3705
  * @deprecated - use `icon` instead.
3674
3706
  */
3675
3707
  taskbarIcon: string;
3708
+ /**
3709
+ * Specify a taskbar group for the window.
3710
+ * _Can be shared across applications._
3711
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
3712
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
3713
+ */
3714
+ taskbarIconGroup: string;
3676
3715
  /**
3677
3716
  * @defaultValue "about:blank"
3678
3717
  *
@@ -3723,6 +3762,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3723
3762
  type: 'container-created';
3724
3763
  };
3725
3764
 
3765
+ /**
3766
+ * Sets the behavior for when a Window or View navigates or redirects to a matching URL
3767
+ *
3768
+ * 'allow': The content url is allowed.
3769
+ * 'block': The content url is blocked.
3770
+ * 'browser': The content url is blocked and it is opened in the system's default web browser.
3771
+ */
3772
+ declare type ContentBehavior = BaseContentBehavior | 'browser';
3773
+
3726
3774
  /**
3727
3775
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3728
3776
  * @interface
@@ -3810,12 +3858,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3810
3858
  declare type ContentNavigation = NavigationRules;
3811
3859
 
3812
3860
  /**
3813
- * Whether a content url is allowed or blocked for navigation or redirection.
3814
- *
3815
- * * 'allow': The content url is allowed.
3816
- * * 'block': The content url is blocked.
3861
+ * Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
3817
3862
  */
3818
- declare type ContentPermission = 'allow' | 'block';
3863
+ declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
3819
3864
 
3820
3865
  /**
3821
3866
  * Restrict redirects to URLs that match an allowed pattern.
@@ -9045,6 +9090,10 @@ declare type MutableWindowOptions = {
9045
9090
  showTaskbarIcon: boolean;
9046
9091
  /**
9047
9092
  * Specify a taskbar group for the window.
9093
+ * _Can be shared across applications._
9094
+ *
9095
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9096
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
9048
9097
  * _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9049
9098
  * @remarks It's only updatable when `enableJumpList` is set to false.
9050
9099
  */
@@ -9084,13 +9133,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
9084
9133
  };
9085
9134
 
9086
9135
  /**
9087
- * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
9136
+ * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
9088
9137
  * @interface
9089
9138
  */
9090
9139
  declare type NavigationRejectedEvent = NamedEvent & {
9091
9140
  type: 'navigation-rejected';
9092
9141
  sourceName?: string;
9093
9142
  url: string;
9143
+ contentRule?: OpenFin_2.ContentPermission | undefined;
9094
9144
  };
9095
9145
 
9096
9146
  /**
@@ -9452,6 +9502,12 @@ declare namespace OpenFin_2 {
9452
9502
  DomainSettings,
9453
9503
  ApiInjection,
9454
9504
  DomainApiSettings,
9505
+ BaseContentBehavior,
9506
+ ContentBehavior,
9507
+ BaseStructuredContentBehavior,
9508
+ BrowserContentBehavior,
9509
+ StructuredContentBehavior,
9510
+ StructuredContentPermissions,
9455
9511
  ContentPermission,
9456
9512
  PerDomainSettings,
9457
9513
  DomainSettingsRule,
@@ -11772,6 +11828,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11772
11828
  'set-tray-icon': ApplicationIdentityCall<{
11773
11829
  enabledIcon: string;
11774
11830
  }, void>;
11831
+ 'set-tray-icon-tooltip': ApplicationIdentityCall<{
11832
+ toolTip: string;
11833
+ }>;
11775
11834
  'set-shortcuts': ApplicationIdentityCall<{
11776
11835
  data: OpenFin_2.ShortCutConfig;
11777
11836
  }, void>;
@@ -13395,6 +13454,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
13395
13454
  type: 'started';
13396
13455
  };
13397
13456
 
13457
+ /**
13458
+ * Allows more control over content behaviors
13459
+ */
13460
+ declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
13461
+
13462
+ /**
13463
+ * Specify rules for specific actions.
13464
+ */
13465
+ declare type StructuredContentPermissions = {
13466
+ /**
13467
+ * Controls the behavior for navigations
13468
+ */
13469
+ navigate?: ContentBehavior | StructuredContentBehavior;
13470
+ /**
13471
+ * Controls the behavior for redirects
13472
+ */
13473
+ redirect?: ContentBehavior | StructuredContentBehavior;
13474
+ /**
13475
+ * Controls the behavior for when iframes try to redirect
13476
+ */
13477
+ iframe?: BaseContentBehavior;
13478
+ };
13479
+
13398
13480
  /**
13399
13481
  * @interface
13400
13482
  */
@@ -16798,7 +16880,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16798
16880
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16799
16881
  * });
16800
16882
  *
16801
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16883
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16802
16884
  *
16803
16885
  * const sharedWorkers = await view.getSharedWorkers();
16804
16886
  * ```
@@ -16809,7 +16891,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16809
16891
  * name:'child',
16810
16892
  * defaultWidth: 300,
16811
16893
  * defaultHeight: 300,
16812
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16894
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16813
16895
  * frame: true,
16814
16896
  * autoShow: true
16815
16897
  * };
@@ -16834,7 +16916,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16834
16916
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16835
16917
  * });
16836
16918
  *
16837
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16919
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16838
16920
  *
16839
16921
  * await view.inspectSharedWorker();
16840
16922
  * ```
@@ -16845,7 +16927,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16845
16927
  * name:'child',
16846
16928
  * defaultWidth: 300,
16847
16929
  * defaultHeight: 300,
16848
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16930
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16849
16931
  * frame: true,
16850
16932
  * autoShow: true
16851
16933
  * };
@@ -16871,7 +16953,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16871
16953
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16872
16954
  * });
16873
16955
  *
16874
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16956
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16875
16957
  *
16876
16958
  * const sharedWorkers = await view.getSharedWorkers();
16877
16959
  * await view.inspectSharedWorkerById(sharedWorkers[0].id);
@@ -16883,7 +16965,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16883
16965
  * name:'child',
16884
16966
  * defaultWidth: 300,
16885
16967
  * defaultHeight: 300,
16886
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16968
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16887
16969
  * frame: true,
16888
16970
  * autoShow: true
16889
16971
  * };
@@ -593,6 +593,23 @@ declare class Application extends EmitterBase<OpenFin_2.ApplicationEvent> {
593
593
  * ```
594
594
  */
595
595
  setTrayIcon(icon: string): Promise<void>;
596
+ /**
597
+ * Set hover text for this application's system tray icon.
598
+ * Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
599
+ * @param toolTip
600
+ *
601
+ * @example
602
+ *
603
+ * ```js
604
+ * const app = fin.Application.getCurrentSync();
605
+ * const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
606
+ *
607
+ * await app.setTrayIcon(iconUrl);
608
+ *
609
+ * await app.setTrayIconToolTip('My Application');
610
+ * ```
611
+ */
612
+ setTrayIconToolTip(toolTip: string): Promise<void>;
596
613
  /**
597
614
  * Sets new application's shortcut configuration. Windows only.
598
615
  * @param config New application's shortcut configuration.
@@ -1664,6 +1681,8 @@ declare type BaseConfig = {
1664
1681
  timeout?: number;
1665
1682
  };
1666
1683
 
1684
+ declare type BaseContentBehavior = 'allow' | 'block';
1685
+
1667
1686
  /**
1668
1687
  * Properties shared by all content creation rules, regardless of context.
1669
1688
  *
@@ -1807,6 +1826,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
1807
1826
  isMainFrame: boolean;
1808
1827
  };
1809
1828
 
1829
+ declare type BaseStructuredContentBehavior = {
1830
+ behavior: BaseContentBehavior;
1831
+ };
1832
+
1810
1833
  declare type BaseUrlEvent = NamedEvent & {
1811
1834
  type: 'url-changed';
1812
1835
  url: string;
@@ -1907,6 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
1907
1930
 
1908
1931
  declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
1909
1932
 
1933
+ declare type BrowserContentBehavior = {
1934
+ behavior: 'browser';
1935
+ /**
1936
+ * Additional property that can be specified when setting the behavior to browser.
1937
+ * When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
1938
+ */
1939
+ closeExisting?: boolean;
1940
+ };
1941
+
1910
1942
  /**
1911
1943
  * A rule prescribing content creation in the browser.
1912
1944
  *
@@ -3673,6 +3705,13 @@ declare type ConstWindowOptions = {
3673
3705
  * @deprecated - use `icon` instead.
3674
3706
  */
3675
3707
  taskbarIcon: string;
3708
+ /**
3709
+ * Specify a taskbar group for the window.
3710
+ * _Can be shared across applications._
3711
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
3712
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
3713
+ */
3714
+ taskbarIconGroup: string;
3676
3715
  /**
3677
3716
  * @defaultValue "about:blank"
3678
3717
  *
@@ -3723,6 +3762,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3723
3762
  type: 'container-created';
3724
3763
  };
3725
3764
 
3765
+ /**
3766
+ * Sets the behavior for when a Window or View navigates or redirects to a matching URL
3767
+ *
3768
+ * 'allow': The content url is allowed.
3769
+ * 'block': The content url is blocked.
3770
+ * 'browser': The content url is blocked and it is opened in the system's default web browser.
3771
+ */
3772
+ declare type ContentBehavior = BaseContentBehavior | 'browser';
3773
+
3726
3774
  /**
3727
3775
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3728
3776
  * @interface
@@ -3810,12 +3858,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3810
3858
  declare type ContentNavigation = NavigationRules;
3811
3859
 
3812
3860
  /**
3813
- * Whether a content url is allowed or blocked for navigation or redirection.
3814
- *
3815
- * * 'allow': The content url is allowed.
3816
- * * 'block': The content url is blocked.
3861
+ * Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
3817
3862
  */
3818
- declare type ContentPermission = 'allow' | 'block';
3863
+ declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
3819
3864
 
3820
3865
  /**
3821
3866
  * Restrict redirects to URLs that match an allowed pattern.
@@ -9045,6 +9090,10 @@ declare type MutableWindowOptions = {
9045
9090
  showTaskbarIcon: boolean;
9046
9091
  /**
9047
9092
  * Specify a taskbar group for the window.
9093
+ * _Can be shared across applications._
9094
+ *
9095
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9096
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
9048
9097
  * _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9049
9098
  * @remarks It's only updatable when `enableJumpList` is set to false.
9050
9099
  */
@@ -9084,13 +9133,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
9084
9133
  };
9085
9134
 
9086
9135
  /**
9087
- * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
9136
+ * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
9088
9137
  * @interface
9089
9138
  */
9090
9139
  declare type NavigationRejectedEvent = NamedEvent & {
9091
9140
  type: 'navigation-rejected';
9092
9141
  sourceName?: string;
9093
9142
  url: string;
9143
+ contentRule?: OpenFin_2.ContentPermission | undefined;
9094
9144
  };
9095
9145
 
9096
9146
  /**
@@ -9452,6 +9502,12 @@ declare namespace OpenFin_2 {
9452
9502
  DomainSettings,
9453
9503
  ApiInjection,
9454
9504
  DomainApiSettings,
9505
+ BaseContentBehavior,
9506
+ ContentBehavior,
9507
+ BaseStructuredContentBehavior,
9508
+ BrowserContentBehavior,
9509
+ StructuredContentBehavior,
9510
+ StructuredContentPermissions,
9455
9511
  ContentPermission,
9456
9512
  PerDomainSettings,
9457
9513
  DomainSettingsRule,
@@ -11772,6 +11828,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11772
11828
  'set-tray-icon': ApplicationIdentityCall<{
11773
11829
  enabledIcon: string;
11774
11830
  }, void>;
11831
+ 'set-tray-icon-tooltip': ApplicationIdentityCall<{
11832
+ toolTip: string;
11833
+ }>;
11775
11834
  'set-shortcuts': ApplicationIdentityCall<{
11776
11835
  data: OpenFin_2.ShortCutConfig;
11777
11836
  }, void>;
@@ -13395,6 +13454,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
13395
13454
  type: 'started';
13396
13455
  };
13397
13456
 
13457
+ /**
13458
+ * Allows more control over content behaviors
13459
+ */
13460
+ declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
13461
+
13462
+ /**
13463
+ * Specify rules for specific actions.
13464
+ */
13465
+ declare type StructuredContentPermissions = {
13466
+ /**
13467
+ * Controls the behavior for navigations
13468
+ */
13469
+ navigate?: ContentBehavior | StructuredContentBehavior;
13470
+ /**
13471
+ * Controls the behavior for redirects
13472
+ */
13473
+ redirect?: ContentBehavior | StructuredContentBehavior;
13474
+ /**
13475
+ * Controls the behavior for when iframes try to redirect
13476
+ */
13477
+ iframe?: BaseContentBehavior;
13478
+ };
13479
+
13398
13480
  /**
13399
13481
  * @interface
13400
13482
  */
@@ -16798,7 +16880,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16798
16880
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16799
16881
  * });
16800
16882
  *
16801
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16883
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16802
16884
  *
16803
16885
  * const sharedWorkers = await view.getSharedWorkers();
16804
16886
  * ```
@@ -16809,7 +16891,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16809
16891
  * name:'child',
16810
16892
  * defaultWidth: 300,
16811
16893
  * defaultHeight: 300,
16812
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16894
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16813
16895
  * frame: true,
16814
16896
  * autoShow: true
16815
16897
  * };
@@ -16834,7 +16916,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16834
16916
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16835
16917
  * });
16836
16918
  *
16837
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16919
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16838
16920
  *
16839
16921
  * await view.inspectSharedWorker();
16840
16922
  * ```
@@ -16845,7 +16927,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16845
16927
  * name:'child',
16846
16928
  * defaultWidth: 300,
16847
16929
  * defaultHeight: 300,
16848
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16930
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16849
16931
  * frame: true,
16850
16932
  * autoShow: true
16851
16933
  * };
@@ -16871,7 +16953,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16871
16953
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16872
16954
  * });
16873
16955
  *
16874
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16956
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16875
16957
  *
16876
16958
  * const sharedWorkers = await view.getSharedWorkers();
16877
16959
  * await view.inspectSharedWorkerById(sharedWorkers[0].id);
@@ -16883,7 +16965,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16883
16965
  * name:'child',
16884
16966
  * defaultWidth: 300,
16885
16967
  * defaultHeight: 300,
16886
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16968
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16887
16969
  * frame: true,
16888
16970
  * autoShow: true
16889
16971
  * };
@@ -593,6 +593,23 @@ declare class Application extends EmitterBase<OpenFin_2.ApplicationEvent> {
593
593
  * ```
594
594
  */
595
595
  setTrayIcon(icon: string): Promise<void>;
596
+ /**
597
+ * Set hover text for this application's system tray icon.
598
+ * Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
599
+ * @param toolTip
600
+ *
601
+ * @example
602
+ *
603
+ * ```js
604
+ * const app = fin.Application.getCurrentSync();
605
+ * const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
606
+ *
607
+ * await app.setTrayIcon(iconUrl);
608
+ *
609
+ * await app.setTrayIconToolTip('My Application');
610
+ * ```
611
+ */
612
+ setTrayIconToolTip(toolTip: string): Promise<void>;
596
613
  /**
597
614
  * Sets new application's shortcut configuration. Windows only.
598
615
  * @param config New application's shortcut configuration.
@@ -1664,6 +1681,8 @@ declare type BaseConfig = {
1664
1681
  timeout?: number;
1665
1682
  };
1666
1683
 
1684
+ declare type BaseContentBehavior = 'allow' | 'block';
1685
+
1667
1686
  /**
1668
1687
  * Properties shared by all content creation rules, regardless of context.
1669
1688
  *
@@ -1807,6 +1826,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
1807
1826
  isMainFrame: boolean;
1808
1827
  };
1809
1828
 
1829
+ declare type BaseStructuredContentBehavior = {
1830
+ behavior: BaseContentBehavior;
1831
+ };
1832
+
1810
1833
  declare type BaseUrlEvent = NamedEvent & {
1811
1834
  type: 'url-changed';
1812
1835
  url: string;
@@ -1907,6 +1930,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
1907
1930
 
1908
1931
  declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
1909
1932
 
1933
+ declare type BrowserContentBehavior = {
1934
+ behavior: 'browser';
1935
+ /**
1936
+ * Additional property that can be specified when setting the behavior to browser.
1937
+ * When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
1938
+ */
1939
+ closeExisting?: boolean;
1940
+ };
1941
+
1910
1942
  /**
1911
1943
  * A rule prescribing content creation in the browser.
1912
1944
  *
@@ -3673,6 +3705,13 @@ declare type ConstWindowOptions = {
3673
3705
  * @deprecated - use `icon` instead.
3674
3706
  */
3675
3707
  taskbarIcon: string;
3708
+ /**
3709
+ * Specify a taskbar group for the window.
3710
+ * _Can be shared across applications._
3711
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
3712
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
3713
+ */
3714
+ taskbarIconGroup: string;
3676
3715
  /**
3677
3716
  * @defaultValue "about:blank"
3678
3717
  *
@@ -3723,6 +3762,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3723
3762
  type: 'container-created';
3724
3763
  };
3725
3764
 
3765
+ /**
3766
+ * Sets the behavior for when a Window or View navigates or redirects to a matching URL
3767
+ *
3768
+ * 'allow': The content url is allowed.
3769
+ * 'block': The content url is blocked.
3770
+ * 'browser': The content url is blocked and it is opened in the system's default web browser.
3771
+ */
3772
+ declare type ContentBehavior = BaseContentBehavior | 'browser';
3773
+
3726
3774
  /**
3727
3775
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3728
3776
  * @interface
@@ -3810,12 +3858,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3810
3858
  declare type ContentNavigation = NavigationRules;
3811
3859
 
3812
3860
  /**
3813
- * Whether a content url is allowed or blocked for navigation or redirection.
3814
- *
3815
- * * 'allow': The content url is allowed.
3816
- * * 'block': The content url is blocked.
3861
+ * Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
3817
3862
  */
3818
- declare type ContentPermission = 'allow' | 'block';
3863
+ declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
3819
3864
 
3820
3865
  /**
3821
3866
  * Restrict redirects to URLs that match an allowed pattern.
@@ -9045,6 +9090,10 @@ declare type MutableWindowOptions = {
9045
9090
  showTaskbarIcon: boolean;
9046
9091
  /**
9047
9092
  * Specify a taskbar group for the window.
9093
+ * _Can be shared across applications._
9094
+ *
9095
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9096
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
9048
9097
  * _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9049
9098
  * @remarks It's only updatable when `enableJumpList` is set to false.
9050
9099
  */
@@ -9084,13 +9133,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
9084
9133
  };
9085
9134
 
9086
9135
  /**
9087
- * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
9136
+ * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
9088
9137
  * @interface
9089
9138
  */
9090
9139
  declare type NavigationRejectedEvent = NamedEvent & {
9091
9140
  type: 'navigation-rejected';
9092
9141
  sourceName?: string;
9093
9142
  url: string;
9143
+ contentRule?: OpenFin_2.ContentPermission | undefined;
9094
9144
  };
9095
9145
 
9096
9146
  /**
@@ -9452,6 +9502,12 @@ declare namespace OpenFin_2 {
9452
9502
  DomainSettings,
9453
9503
  ApiInjection,
9454
9504
  DomainApiSettings,
9505
+ BaseContentBehavior,
9506
+ ContentBehavior,
9507
+ BaseStructuredContentBehavior,
9508
+ BrowserContentBehavior,
9509
+ StructuredContentBehavior,
9510
+ StructuredContentPermissions,
9455
9511
  ContentPermission,
9456
9512
  PerDomainSettings,
9457
9513
  DomainSettingsRule,
@@ -11772,6 +11828,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11772
11828
  'set-tray-icon': ApplicationIdentityCall<{
11773
11829
  enabledIcon: string;
11774
11830
  }, void>;
11831
+ 'set-tray-icon-tooltip': ApplicationIdentityCall<{
11832
+ toolTip: string;
11833
+ }>;
11775
11834
  'set-shortcuts': ApplicationIdentityCall<{
11776
11835
  data: OpenFin_2.ShortCutConfig;
11777
11836
  }, void>;
@@ -13395,6 +13454,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
13395
13454
  type: 'started';
13396
13455
  };
13397
13456
 
13457
+ /**
13458
+ * Allows more control over content behaviors
13459
+ */
13460
+ declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
13461
+
13462
+ /**
13463
+ * Specify rules for specific actions.
13464
+ */
13465
+ declare type StructuredContentPermissions = {
13466
+ /**
13467
+ * Controls the behavior for navigations
13468
+ */
13469
+ navigate?: ContentBehavior | StructuredContentBehavior;
13470
+ /**
13471
+ * Controls the behavior for redirects
13472
+ */
13473
+ redirect?: ContentBehavior | StructuredContentBehavior;
13474
+ /**
13475
+ * Controls the behavior for when iframes try to redirect
13476
+ */
13477
+ iframe?: BaseContentBehavior;
13478
+ };
13479
+
13398
13480
  /**
13399
13481
  * @interface
13400
13482
  */
@@ -16798,7 +16880,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16798
16880
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16799
16881
  * });
16800
16882
  *
16801
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16883
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16802
16884
  *
16803
16885
  * const sharedWorkers = await view.getSharedWorkers();
16804
16886
  * ```
@@ -16809,7 +16891,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16809
16891
  * name:'child',
16810
16892
  * defaultWidth: 300,
16811
16893
  * defaultHeight: 300,
16812
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16894
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16813
16895
  * frame: true,
16814
16896
  * autoShow: true
16815
16897
  * };
@@ -16834,7 +16916,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16834
16916
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16835
16917
  * });
16836
16918
  *
16837
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16919
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16838
16920
  *
16839
16921
  * await view.inspectSharedWorker();
16840
16922
  * ```
@@ -16845,7 +16927,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16845
16927
  * name:'child',
16846
16928
  * defaultWidth: 300,
16847
16929
  * defaultHeight: 300,
16848
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16930
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16849
16931
  * frame: true,
16850
16932
  * autoShow: true
16851
16933
  * };
@@ -16871,7 +16953,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16871
16953
  * bounds: {top: 10, left: 10, width: 200, height: 200}
16872
16954
  * });
16873
16955
  *
16874
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
16956
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
16875
16957
  *
16876
16958
  * const sharedWorkers = await view.getSharedWorkers();
16877
16959
  * await view.inspectSharedWorkerById(sharedWorkers[0].id);
@@ -16883,7 +16965,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
16883
16965
  * name:'child',
16884
16966
  * defaultWidth: 300,
16885
16967
  * defaultHeight: 300,
16886
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
16968
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
16887
16969
  * frame: true,
16888
16970
  * autoShow: true
16889
16971
  * };
package/out/mock.d.ts CHANGED
@@ -599,6 +599,23 @@ declare class Application extends EmitterBase<OpenFin_2.ApplicationEvent> {
599
599
  * ```
600
600
  */
601
601
  setTrayIcon(icon: string): Promise<void>;
602
+ /**
603
+ * Set hover text for this application's system tray icon.
604
+ * Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
605
+ * @param toolTip
606
+ *
607
+ * @example
608
+ *
609
+ * ```js
610
+ * const app = fin.Application.getCurrentSync();
611
+ * const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
612
+ *
613
+ * await app.setTrayIcon(iconUrl);
614
+ *
615
+ * await app.setTrayIconToolTip('My Application');
616
+ * ```
617
+ */
618
+ setTrayIconToolTip(toolTip: string): Promise<void>;
602
619
  /**
603
620
  * Sets new application's shortcut configuration. Windows only.
604
621
  * @param config New application's shortcut configuration.
@@ -1696,6 +1713,8 @@ declare type BaseConfig = {
1696
1713
  timeout?: number;
1697
1714
  };
1698
1715
 
1716
+ declare type BaseContentBehavior = 'allow' | 'block';
1717
+
1699
1718
  /**
1700
1719
  * Properties shared by all content creation rules, regardless of context.
1701
1720
  *
@@ -1839,6 +1858,10 @@ declare type BaseLoadFailedEvent = NamedEvent & {
1839
1858
  isMainFrame: boolean;
1840
1859
  };
1841
1860
 
1861
+ declare type BaseStructuredContentBehavior = {
1862
+ behavior: BaseContentBehavior;
1863
+ };
1864
+
1842
1865
  declare type BaseUrlEvent = NamedEvent & {
1843
1866
  type: 'url-changed';
1844
1867
  url: string;
@@ -1939,6 +1962,15 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
1939
1962
 
1940
1963
  declare type BoundsEvent = BaseEvent_5 & OpenFin_2.Bounds;
1941
1964
 
1965
+ declare type BrowserContentBehavior = {
1966
+ behavior: 'browser';
1967
+ /**
1968
+ * Additional property that can be specified when setting the behavior to browser.
1969
+ * When set to true will close the Window or View that tried to navigate or redirect to the blocked URL.
1970
+ */
1971
+ closeExisting?: boolean;
1972
+ };
1973
+
1942
1974
  /**
1943
1975
  * A rule prescribing content creation in the browser.
1944
1976
  *
@@ -3732,6 +3764,13 @@ declare type ConstWindowOptions = {
3732
3764
  * @deprecated - use `icon` instead.
3733
3765
  */
3734
3766
  taskbarIcon: string;
3767
+ /**
3768
+ * Specify a taskbar group for the window.
3769
+ * _Can be shared across applications._
3770
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
3771
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
3772
+ */
3773
+ taskbarIconGroup: string;
3735
3774
  /**
3736
3775
  * @defaultValue "about:blank"
3737
3776
  *
@@ -3782,6 +3821,15 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3782
3821
  type: 'container-created';
3783
3822
  };
3784
3823
 
3824
+ /**
3825
+ * Sets the behavior for when a Window or View navigates or redirects to a matching URL
3826
+ *
3827
+ * 'allow': The content url is allowed.
3828
+ * 'block': The content url is blocked.
3829
+ * 'browser': The content url is blocked and it is opened in the system's default web browser.
3830
+ */
3831
+ declare type ContentBehavior = BaseContentBehavior | 'browser';
3832
+
3785
3833
  /**
3786
3834
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3787
3835
  * @interface
@@ -3869,12 +3917,9 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3869
3917
  declare type ContentNavigation = NavigationRules;
3870
3918
 
3871
3919
  /**
3872
- * Whether a content url is allowed or blocked for navigation or redirection.
3873
- *
3874
- * * 'allow': The content url is allowed.
3875
- * * 'block': The content url is blocked.
3920
+ * Controls whether a content url is allowed or blocked for navigation in Windows and Views or redirection for Windows, Views and iframes.
3876
3921
  */
3877
- declare type ContentPermission = 'allow' | 'block';
3922
+ declare type ContentPermission = ContentBehavior | StructuredContentBehavior | StructuredContentPermissions;
3878
3923
 
3879
3924
  /**
3880
3925
  * Restrict redirects to URLs that match an allowed pattern.
@@ -9345,6 +9390,10 @@ declare type MutableWindowOptions = {
9345
9390
  showTaskbarIcon: boolean;
9346
9391
  /**
9347
9392
  * Specify a taskbar group for the window.
9393
+ * _Can be shared across applications._
9394
+ *
9395
+ * _If omitted from a main window, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9396
+ * _Use `platform.defaultWindowOptions.taskbarIconGroup` to set a default for platform applications._
9348
9397
  * _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
9349
9398
  * @remarks It's only updatable when `enableJumpList` is set to false.
9350
9399
  */
@@ -9392,13 +9441,14 @@ declare type NativeWindowIntegrationProviderAuthorization = {
9392
9441
  };
9393
9442
 
9394
9443
  /**
9395
- * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
9444
+ * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules or when blocked by a domain-based permission content rule.
9396
9445
  * @interface
9397
9446
  */
9398
9447
  declare type NavigationRejectedEvent = NamedEvent & {
9399
9448
  type: 'navigation-rejected';
9400
9449
  sourceName?: string;
9401
9450
  url: string;
9451
+ contentRule?: OpenFin_2.ContentPermission | undefined;
9402
9452
  };
9403
9453
 
9404
9454
  /**
@@ -9770,6 +9820,12 @@ declare namespace OpenFin_2 {
9770
9820
  DomainSettings,
9771
9821
  ApiInjection,
9772
9822
  DomainApiSettings,
9823
+ BaseContentBehavior,
9824
+ ContentBehavior,
9825
+ BaseStructuredContentBehavior,
9826
+ BrowserContentBehavior,
9827
+ StructuredContentBehavior,
9828
+ StructuredContentPermissions,
9773
9829
  ContentPermission,
9774
9830
  PerDomainSettings,
9775
9831
  DomainSettingsRule,
@@ -12173,6 +12229,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12173
12229
  'set-tray-icon': ApplicationIdentityCall<{
12174
12230
  enabledIcon: string;
12175
12231
  }, void>;
12232
+ 'set-tray-icon-tooltip': ApplicationIdentityCall<{
12233
+ toolTip: string;
12234
+ }>;
12176
12235
  'set-shortcuts': ApplicationIdentityCall<{
12177
12236
  data: OpenFin_2.ShortCutConfig;
12178
12237
  }, void>;
@@ -13799,6 +13858,29 @@ declare type StartedEvent = BaseEvents.IdentityEvent & {
13799
13858
  type: 'started';
13800
13859
  };
13801
13860
 
13861
+ /**
13862
+ * Allows more control over content behaviors
13863
+ */
13864
+ declare type StructuredContentBehavior = BaseStructuredContentBehavior | BrowserContentBehavior;
13865
+
13866
+ /**
13867
+ * Specify rules for specific actions.
13868
+ */
13869
+ declare type StructuredContentPermissions = {
13870
+ /**
13871
+ * Controls the behavior for navigations
13872
+ */
13873
+ navigate?: ContentBehavior | StructuredContentBehavior;
13874
+ /**
13875
+ * Controls the behavior for redirects
13876
+ */
13877
+ redirect?: ContentBehavior | StructuredContentBehavior;
13878
+ /**
13879
+ * Controls the behavior for when iframes try to redirect
13880
+ */
13881
+ iframe?: BaseContentBehavior;
13882
+ };
13883
+
13802
13884
  /**
13803
13885
  * @interface
13804
13886
  */
@@ -17249,7 +17331,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17249
17331
  * bounds: {top: 10, left: 10, width: 200, height: 200}
17250
17332
  * });
17251
17333
  *
17252
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
17334
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
17253
17335
  *
17254
17336
  * const sharedWorkers = await view.getSharedWorkers();
17255
17337
  * ```
@@ -17260,7 +17342,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17260
17342
  * name:'child',
17261
17343
  * defaultWidth: 300,
17262
17344
  * defaultHeight: 300,
17263
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
17345
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
17264
17346
  * frame: true,
17265
17347
  * autoShow: true
17266
17348
  * };
@@ -17285,7 +17367,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17285
17367
  * bounds: {top: 10, left: 10, width: 200, height: 200}
17286
17368
  * });
17287
17369
  *
17288
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
17370
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
17289
17371
  *
17290
17372
  * await view.inspectSharedWorker();
17291
17373
  * ```
@@ -17296,7 +17378,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17296
17378
  * name:'child',
17297
17379
  * defaultWidth: 300,
17298
17380
  * defaultHeight: 300,
17299
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
17381
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
17300
17382
  * frame: true,
17301
17383
  * autoShow: true
17302
17384
  * };
@@ -17322,7 +17404,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17322
17404
  * bounds: {top: 10, left: 10, width: 200, height: 200}
17323
17405
  * });
17324
17406
  *
17325
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
17407
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
17326
17408
  *
17327
17409
  * const sharedWorkers = await view.getSharedWorkers();
17328
17410
  * await view.inspectSharedWorkerById(sharedWorkers[0].id);
@@ -17334,7 +17416,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
17334
17416
  * name:'child',
17335
17417
  * defaultWidth: 300,
17336
17418
  * defaultHeight: 300,
17337
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
17419
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
17338
17420
  * frame: true,
17339
17421
  * autoShow: true
17340
17422
  * };
package/out/mock.js CHANGED
@@ -1698,7 +1698,7 @@ class WebContents extends base_1$j.EmitterBase {
1698
1698
  * bounds: {top: 10, left: 10, width: 200, height: 200}
1699
1699
  * });
1700
1700
  *
1701
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
1701
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
1702
1702
  *
1703
1703
  * const sharedWorkers = await view.getSharedWorkers();
1704
1704
  * ```
@@ -1709,7 +1709,7 @@ class WebContents extends base_1$j.EmitterBase {
1709
1709
  * name:'child',
1710
1710
  * defaultWidth: 300,
1711
1711
  * defaultHeight: 300,
1712
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
1712
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
1713
1713
  * frame: true,
1714
1714
  * autoShow: true
1715
1715
  * };
@@ -1736,7 +1736,7 @@ class WebContents extends base_1$j.EmitterBase {
1736
1736
  * bounds: {top: 10, left: 10, width: 200, height: 200}
1737
1737
  * });
1738
1738
  *
1739
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
1739
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
1740
1740
  *
1741
1741
  * await view.inspectSharedWorker();
1742
1742
  * ```
@@ -1747,7 +1747,7 @@ class WebContents extends base_1$j.EmitterBase {
1747
1747
  * name:'child',
1748
1748
  * defaultWidth: 300,
1749
1749
  * defaultHeight: 300,
1750
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
1750
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
1751
1751
  * frame: true,
1752
1752
  * autoShow: true
1753
1753
  * };
@@ -1775,7 +1775,7 @@ class WebContents extends base_1$j.EmitterBase {
1775
1775
  * bounds: {top: 10, left: 10, width: 200, height: 200}
1776
1776
  * });
1777
1777
  *
1778
- * await view.navigate('http://mdn.github.io/simple-shared-worker/index2.html');
1778
+ * await view.navigate('https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/');
1779
1779
  *
1780
1780
  * const sharedWorkers = await view.getSharedWorkers();
1781
1781
  * await view.inspectSharedWorkerById(sharedWorkers[0].id);
@@ -1787,7 +1787,7 @@ class WebContents extends base_1$j.EmitterBase {
1787
1787
  * name:'child',
1788
1788
  * defaultWidth: 300,
1789
1789
  * defaultHeight: 300,
1790
- * url: 'http://mdn.github.io/simple-shared-worker/index2.html',
1790
+ * url: 'https://mdn.github.io/dom-examples/web-workers/simple-shared-worker/',
1791
1791
  * frame: true,
1792
1792
  * autoShow: true
1793
1793
  * };
@@ -3230,6 +3230,25 @@ function requireInstance$1 () {
3230
3230
  })
3231
3231
  .then(() => undefined);
3232
3232
  }
3233
+ /**
3234
+ * Set hover text for this application's system tray icon.
3235
+ * Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
3236
+ * @param toolTip
3237
+ *
3238
+ * @example
3239
+ *
3240
+ * ```js
3241
+ * const app = fin.Application.getCurrentSync();
3242
+ * const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
3243
+ *
3244
+ * await app.setTrayIcon(iconUrl);
3245
+ *
3246
+ * await app.setTrayIconToolTip('My Application');
3247
+ * ```
3248
+ */
3249
+ async setTrayIconToolTip(toolTip) {
3250
+ await this.wire.sendAction('set-tray-icon-tooltip', { ...this.identity, toolTip });
3251
+ }
3233
3252
  /**
3234
3253
  * Sets new application's shortcut configuration. Windows only.
3235
3254
  * @param config New application's shortcut configuration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "41.83.3",
3
+ "version": "41.100.18",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",
@@ -24,7 +24,8 @@
24
24
  "test": "run-p test:*",
25
25
  "test:sample": "tsc -p test/tsconfig.json",
26
26
  "test:imports": "ts-node scripts/verify-imports",
27
- "test:mocha": "ts-mocha -R dot --exit \"./src/**/__tests__/**.test.ts\""
27
+ "test:mocha": "ts-mocha -R dot --exit \"./src/**/__tests__/**.test.ts\"",
28
+ "version:update": "of-npm version --allow-same-version '$RMAJOR.$RMINOR.$RPATCH'"
28
29
  },
29
30
  "files": [
30
31
  "out/*",