@openfin/core 40.104.7 → 40.105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/mock-alpha.d.ts +22 -1
- package/out/mock-beta.d.ts +22 -1
- package/out/mock-public.d.ts +22 -1
- package/out/stub.d.ts +22 -1
- package/out/stub.js +42 -35
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -1928,7 +1928,22 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1928
1928
|
reason: 'self' | 'animation';
|
1929
1929
|
};
|
1930
1930
|
|
1931
|
-
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.
|
1931
|
+
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.WindowBounds;
|
1932
|
+
|
1933
|
+
declare type BoundsType =
|
1934
|
+
/**
|
1935
|
+
* Bounds specify the size and location of the entire window, including OS border styling.
|
1936
|
+
*/
|
1937
|
+
'window'
|
1938
|
+
/**
|
1939
|
+
* Bounds specify the size and location of the window's DOM content, excluding OS border styling.
|
1940
|
+
*/
|
1941
|
+
| 'content'
|
1942
|
+
/**
|
1943
|
+
* Origin parameters (top, left) specify the location of the window origin, including OS border styling.
|
1944
|
+
* Size parameters bounds (width, height) specify the size of the window's DOM content, excluding OS border styling.
|
1945
|
+
*/
|
1946
|
+
| 'window-origin-content-size';
|
1932
1947
|
|
1933
1948
|
/**
|
1934
1949
|
* Opens matched URLs in the browser.
|
@@ -9755,6 +9770,7 @@ declare namespace OpenFin_2 {
|
|
9755
9770
|
Me,
|
9756
9771
|
CapturePageOptions,
|
9757
9772
|
ProcessLoggingOptions,
|
9773
|
+
BoundsType,
|
9758
9774
|
PositioningOptions,
|
9759
9775
|
ChannelClientConnectionListener,
|
9760
9776
|
ChannelClientDisconnectionListener,
|
@@ -11652,6 +11668,7 @@ declare type PositioningOptions = {
|
|
11652
11668
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
11653
11669
|
*/
|
11654
11670
|
skipRestore?: boolean;
|
11671
|
+
boundsType?: BoundsType;
|
11655
11672
|
};
|
11656
11673
|
|
11657
11674
|
/**
|
@@ -18687,6 +18704,10 @@ declare type WindowAlertRequestedEvent = BaseEvent_3 & {
|
|
18687
18704
|
declare type WindowBounds = Bounds & {
|
18688
18705
|
bottom: number;
|
18689
18706
|
right: number;
|
18707
|
+
/**
|
18708
|
+
* The bounds for the window's web content, excluding any OS border
|
18709
|
+
*/
|
18710
|
+
content: Bounds;
|
18690
18711
|
};
|
18691
18712
|
|
18692
18713
|
/**
|
package/out/mock-beta.d.ts
CHANGED
@@ -1928,7 +1928,22 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1928
1928
|
reason: 'self' | 'animation';
|
1929
1929
|
};
|
1930
1930
|
|
1931
|
-
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.
|
1931
|
+
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.WindowBounds;
|
1932
|
+
|
1933
|
+
declare type BoundsType =
|
1934
|
+
/**
|
1935
|
+
* Bounds specify the size and location of the entire window, including OS border styling.
|
1936
|
+
*/
|
1937
|
+
'window'
|
1938
|
+
/**
|
1939
|
+
* Bounds specify the size and location of the window's DOM content, excluding OS border styling.
|
1940
|
+
*/
|
1941
|
+
| 'content'
|
1942
|
+
/**
|
1943
|
+
* Origin parameters (top, left) specify the location of the window origin, including OS border styling.
|
1944
|
+
* Size parameters bounds (width, height) specify the size of the window's DOM content, excluding OS border styling.
|
1945
|
+
*/
|
1946
|
+
| 'window-origin-content-size';
|
1932
1947
|
|
1933
1948
|
/**
|
1934
1949
|
* Opens matched URLs in the browser.
|
@@ -9755,6 +9770,7 @@ declare namespace OpenFin_2 {
|
|
9755
9770
|
Me,
|
9756
9771
|
CapturePageOptions,
|
9757
9772
|
ProcessLoggingOptions,
|
9773
|
+
BoundsType,
|
9758
9774
|
PositioningOptions,
|
9759
9775
|
ChannelClientConnectionListener,
|
9760
9776
|
ChannelClientDisconnectionListener,
|
@@ -11652,6 +11668,7 @@ declare type PositioningOptions = {
|
|
11652
11668
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
11653
11669
|
*/
|
11654
11670
|
skipRestore?: boolean;
|
11671
|
+
boundsType?: BoundsType;
|
11655
11672
|
};
|
11656
11673
|
|
11657
11674
|
/**
|
@@ -18687,6 +18704,10 @@ declare type WindowAlertRequestedEvent = BaseEvent_3 & {
|
|
18687
18704
|
declare type WindowBounds = Bounds & {
|
18688
18705
|
bottom: number;
|
18689
18706
|
right: number;
|
18707
|
+
/**
|
18708
|
+
* The bounds for the window's web content, excluding any OS border
|
18709
|
+
*/
|
18710
|
+
content: Bounds;
|
18690
18711
|
};
|
18691
18712
|
|
18692
18713
|
/**
|
package/out/mock-public.d.ts
CHANGED
@@ -1928,7 +1928,22 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1928
1928
|
reason: 'self' | 'animation';
|
1929
1929
|
};
|
1930
1930
|
|
1931
|
-
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.
|
1931
|
+
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.WindowBounds;
|
1932
|
+
|
1933
|
+
declare type BoundsType =
|
1934
|
+
/**
|
1935
|
+
* Bounds specify the size and location of the entire window, including OS border styling.
|
1936
|
+
*/
|
1937
|
+
'window'
|
1938
|
+
/**
|
1939
|
+
* Bounds specify the size and location of the window's DOM content, excluding OS border styling.
|
1940
|
+
*/
|
1941
|
+
| 'content'
|
1942
|
+
/**
|
1943
|
+
* Origin parameters (top, left) specify the location of the window origin, including OS border styling.
|
1944
|
+
* Size parameters bounds (width, height) specify the size of the window's DOM content, excluding OS border styling.
|
1945
|
+
*/
|
1946
|
+
| 'window-origin-content-size';
|
1932
1947
|
|
1933
1948
|
/**
|
1934
1949
|
* Opens matched URLs in the browser.
|
@@ -9755,6 +9770,7 @@ declare namespace OpenFin_2 {
|
|
9755
9770
|
Me,
|
9756
9771
|
CapturePageOptions,
|
9757
9772
|
ProcessLoggingOptions,
|
9773
|
+
BoundsType,
|
9758
9774
|
PositioningOptions,
|
9759
9775
|
ChannelClientConnectionListener,
|
9760
9776
|
ChannelClientDisconnectionListener,
|
@@ -11652,6 +11668,7 @@ declare type PositioningOptions = {
|
|
11652
11668
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
11653
11669
|
*/
|
11654
11670
|
skipRestore?: boolean;
|
11671
|
+
boundsType?: BoundsType;
|
11655
11672
|
};
|
11656
11673
|
|
11657
11674
|
/**
|
@@ -18687,6 +18704,10 @@ declare type WindowAlertRequestedEvent = BaseEvent_3 & {
|
|
18687
18704
|
declare type WindowBounds = Bounds & {
|
18688
18705
|
bottom: number;
|
18689
18706
|
right: number;
|
18707
|
+
/**
|
18708
|
+
* The bounds for the window's web content, excluding any OS border
|
18709
|
+
*/
|
18710
|
+
content: Bounds;
|
18690
18711
|
};
|
18691
18712
|
|
18692
18713
|
/**
|
package/out/stub.d.ts
CHANGED
@@ -1960,7 +1960,22 @@ declare type BoundsDidChangeEvent = BoundsChangeEvent & {
|
|
1960
1960
|
reason: 'self' | 'animation';
|
1961
1961
|
};
|
1962
1962
|
|
1963
|
-
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.
|
1963
|
+
declare type BoundsEvent = BaseEvent_5 & OpenFin_2.WindowBounds;
|
1964
|
+
|
1965
|
+
declare type BoundsType =
|
1966
|
+
/**
|
1967
|
+
* Bounds specify the size and location of the entire window, including OS border styling.
|
1968
|
+
*/
|
1969
|
+
'window'
|
1970
|
+
/**
|
1971
|
+
* Bounds specify the size and location of the window's DOM content, excluding OS border styling.
|
1972
|
+
*/
|
1973
|
+
| 'content'
|
1974
|
+
/**
|
1975
|
+
* Origin parameters (top, left) specify the location of the window origin, including OS border styling.
|
1976
|
+
* Size parameters bounds (width, height) specify the size of the window's DOM content, excluding OS border styling.
|
1977
|
+
*/
|
1978
|
+
| 'window-origin-content-size';
|
1964
1979
|
|
1965
1980
|
/**
|
1966
1981
|
* Opens matched URLs in the browser.
|
@@ -10073,6 +10088,7 @@ declare namespace OpenFin_2 {
|
|
10073
10088
|
Me,
|
10074
10089
|
CapturePageOptions,
|
10075
10090
|
ProcessLoggingOptions,
|
10091
|
+
BoundsType,
|
10076
10092
|
PositioningOptions,
|
10077
10093
|
ChannelClientConnectionListener,
|
10078
10094
|
ChannelClientDisconnectionListener,
|
@@ -12053,6 +12069,7 @@ declare type PositioningOptions = {
|
|
12053
12069
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
12054
12070
|
*/
|
12055
12071
|
skipRestore?: boolean;
|
12072
|
+
boundsType?: BoundsType;
|
12056
12073
|
};
|
12057
12074
|
|
12058
12075
|
/**
|
@@ -19141,6 +19158,10 @@ declare type WindowAlertRequestedEvent = BaseEvent_3 & {
|
|
19141
19158
|
declare type WindowBounds = Bounds & {
|
19142
19159
|
bottom: number;
|
19143
19160
|
right: number;
|
19161
|
+
/**
|
19162
|
+
* The bounds for the window's web content, excluding any OS border
|
19163
|
+
*/
|
19164
|
+
content: Bounds;
|
19144
19165
|
};
|
19145
19166
|
|
19146
19167
|
/**
|
package/out/stub.js
CHANGED
@@ -16853,42 +16853,49 @@ function requireInteropClient () {
|
|
16853
16853
|
return InteropClient;
|
16854
16854
|
}
|
16855
16855
|
|
16856
|
-
var overrideCheck
|
16856
|
+
var overrideCheck = {};
|
16857
16857
|
|
16858
|
-
|
16859
|
-
|
16860
|
-
|
16861
|
-
|
16862
|
-
|
16863
|
-
|
16864
|
-
|
16865
|
-
|
16866
|
-
function
|
16867
|
-
|
16868
|
-
|
16869
|
-
|
16870
|
-
|
16871
|
-
|
16872
|
-
|
16873
|
-
|
16874
|
-
|
16875
|
-
|
16876
|
-
|
16877
|
-
|
16878
|
-
|
16879
|
-
|
16880
|
-
|
16881
|
-
|
16882
|
-
|
16883
|
-
|
16884
|
-
|
16885
|
-
|
16886
|
-
|
16887
|
-
|
16888
|
-
|
16889
|
-
|
16858
|
+
var hasRequiredOverrideCheck;
|
16859
|
+
|
16860
|
+
function requireOverrideCheck () {
|
16861
|
+
if (hasRequiredOverrideCheck) return overrideCheck;
|
16862
|
+
hasRequiredOverrideCheck = 1;
|
16863
|
+
Object.defineProperty(overrideCheck, "__esModule", { value: true });
|
16864
|
+
overrideCheck.overrideCheck = overrideCheck.checkFDC32Overrides = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
16865
|
+
const InteropBroker_1 = requireInteropBroker();
|
16866
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
16867
|
+
const setVersion = manifest?.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
|
16868
|
+
return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
|
16869
|
+
}
|
16870
|
+
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
16871
|
+
function checkFDC32Overrides(overriddenBroker) {
|
16872
|
+
// These are the APIs that must be overridden for FDC3 2.0 compliance
|
16873
|
+
const mustOverrideAPIs = [
|
16874
|
+
'fdc3HandleFindInstances',
|
16875
|
+
'handleInfoForIntent',
|
16876
|
+
'handleInfoForIntentsByContext',
|
16877
|
+
'fdc3HandleGetAppMetadata',
|
16878
|
+
'fdc3HandleGetInfo',
|
16879
|
+
'fdc3HandleOpen',
|
16880
|
+
'handleFiredIntent',
|
16881
|
+
'handleFiredIntentForContext'
|
16882
|
+
];
|
16883
|
+
return mustOverrideAPIs.filter((api) => {
|
16884
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
16885
|
+
});
|
16886
|
+
}
|
16887
|
+
overrideCheck.checkFDC32Overrides = checkFDC32Overrides;
|
16888
|
+
function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
|
16889
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
16890
|
+
const notOverridden = checkFDC32Overrides(overriddenBroker);
|
16891
|
+
if (notOverridden.length > 0) {
|
16892
|
+
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')}`);
|
16893
|
+
}
|
16894
|
+
}
|
16895
|
+
}
|
16896
|
+
overrideCheck.overrideCheck = overrideCheck$1;
|
16897
|
+
return overrideCheck;
|
16890
16898
|
}
|
16891
|
-
overrideCheck$1.overrideCheck = overrideCheck;
|
16892
16899
|
|
16893
16900
|
var hasRequiredFactory;
|
16894
16901
|
|
@@ -16905,7 +16912,7 @@ function requireFactory () {
|
|
16905
16912
|
const base_1 = base;
|
16906
16913
|
const InteropBroker_1 = requireInteropBroker();
|
16907
16914
|
const InteropClient_1 = requireInteropClient();
|
16908
|
-
const overrideCheck_1 =
|
16915
|
+
const overrideCheck_1 = requireOverrideCheck();
|
16909
16916
|
const common_utils_1 = commonUtils;
|
16910
16917
|
const defaultOverride = (Class) => new Class();
|
16911
16918
|
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.';
|