@interopio/groups-ui-react 4.5.1 → 4.6.0-next.0
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/dist/cjs/featureDetector.d.ts +6 -0
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/internal.d.ts +2 -0
- package/dist/esm/featureDetector.d.ts +6 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/internal.d.ts +2 -0
- package/package.json +1 -1
|
@@ -360,4 +360,6 @@ export interface ShowExternalWindowPopupConfig {
|
|
|
360
360
|
size: Size;
|
|
361
361
|
targetLocation: PopupTargetLocation;
|
|
362
362
|
}
|
|
363
|
+
export declare const INTERNAL_UNIVERSAL_POPUPS = "internal-universal-popups";
|
|
364
|
+
export type WebGroupsFeatures = typeof INTERNAL_UNIVERSAL_POPUPS;
|
|
363
365
|
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1853,6 +1853,17 @@ if (process.env.NODE_ENV === "production") {
|
|
|
1853
1853
|
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
1854
1854
|
}
|
|
1855
1855
|
var shimExports = shim.exports;
|
|
1856
|
+
class WebGroupsFeatureDetector {
|
|
1857
|
+
isFeatureSupported(feature) {
|
|
1858
|
+
switch (feature) {
|
|
1859
|
+
case "internal-universal-popups":
|
|
1860
|
+
return true;
|
|
1861
|
+
default:
|
|
1862
|
+
return false;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
const featureDetector = new WebGroupsFeatureDetector();
|
|
1856
1867
|
class GroupWrapper extends o__default.Component {
|
|
1857
1868
|
componentDidMount() {
|
|
1858
1869
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
@@ -1903,7 +1914,8 @@ class GroupWrapper extends o__default.Component {
|
|
|
1903
1914
|
commitCaptionEditing: this.props.onCommitCaptionEditingRequested,
|
|
1904
1915
|
hideCaptionEditor: this.props.onHideCaptionEditorRequested,
|
|
1905
1916
|
showLoadingAnimation: this.props.onShowLoadingAnimationRequested,
|
|
1906
|
-
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested
|
|
1917
|
+
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested,
|
|
1918
|
+
isFeatureSupported: featureDetector.isFeatureSupported.bind(featureDetector)
|
|
1907
1919
|
};
|
|
1908
1920
|
webGroupsManager.init(void 0, componentFactory);
|
|
1909
1921
|
webGroupsManager.updateTabHeaderStyles(((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) ?? {});
|