@interopio/groups-ui-react 4.5.0 → 4.5.1-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 +3 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1869,6 +1869,17 @@
|
|
|
1869
1869
|
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
1870
1870
|
}
|
|
1871
1871
|
var shimExports = shim.exports;
|
|
1872
|
+
class WebGroupsFeatureDetector {
|
|
1873
|
+
isFeatureSupported(feature) {
|
|
1874
|
+
switch (feature) {
|
|
1875
|
+
case "internal-universal-popups":
|
|
1876
|
+
return true;
|
|
1877
|
+
default:
|
|
1878
|
+
return false;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
const featureDetector = new WebGroupsFeatureDetector();
|
|
1872
1883
|
class GroupWrapper extends o.Component {
|
|
1873
1884
|
componentDidMount() {
|
|
1874
1885
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
@@ -1919,7 +1930,8 @@
|
|
|
1919
1930
|
commitCaptionEditing: this.props.onCommitCaptionEditingRequested,
|
|
1920
1931
|
hideCaptionEditor: this.props.onHideCaptionEditorRequested,
|
|
1921
1932
|
showLoadingAnimation: this.props.onShowLoadingAnimationRequested,
|
|
1922
|
-
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested
|
|
1933
|
+
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested,
|
|
1934
|
+
isFeatureSupported: featureDetector.isFeatureSupported.bind(featureDetector)
|
|
1923
1935
|
};
|
|
1924
1936
|
webGroupsManager.init(void 0, componentFactory);
|
|
1925
1937
|
webGroupsManager.updateTabHeaderStyles(((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) ?? {});
|