@interopio/groups-ui-react 2.2.2 → 2.2.4

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/index.js CHANGED
@@ -329,6 +329,20 @@
329
329
  WebGroupsManagerDecorator.prototype.selectTab = function (windowId) {
330
330
  window.webGroupsManager.externalLibraryFactory.selectTab(windowId);
331
331
  };
332
+ WebGroupsManagerDecorator.prototype.addTabContainerClass = function (windowId, className) {
333
+ if (typeof window.webGroupsManager.externalLibraryFactory.addTabContainerClass !== "function") {
334
+ console.warn("The method addTabContainerClass is not supported by the current version of the library");
335
+ return;
336
+ }
337
+ window.webGroupsManager.externalLibraryFactory.addTabContainerClass(windowId, className);
338
+ };
339
+ WebGroupsManagerDecorator.prototype.removeTabContainerClass = function (windowId, className) {
340
+ if (typeof window.webGroupsManager.externalLibraryFactory.removeTabContainerClass !== "function") {
341
+ console.warn("The method removeTabContainerClass is not supported by the current version of the library");
342
+ return;
343
+ }
344
+ window.webGroupsManager.externalLibraryFactory.removeTabContainerClass(windowId, className);
345
+ };
332
346
  return WebGroupsManagerDecorator;
333
347
  }());
334
348
  var webGroupsManager = new WebGroupsManagerDecorator();
@@ -3118,8 +3132,14 @@
3118
3132
  webGroupsManager.onCaptionEditorVisibleChanged(TargetType.Tab, options.targetId, visible);
3119
3133
  } });
3120
3134
  var notifyCaptionBoundsChanged = function (bounds) { return webGroupsManager.onCaptionTextBoundsChanged(TargetType.Tab, options.targetId, bounds); };
3135
+ var addContainerClass = function (className) {
3136
+ webGroupsManager.addTabContainerClass(options.targetId, className);
3137
+ };
3138
+ var removeContainerClass = function (className) {
3139
+ webGroupsManager.removeTabContainerClass(options.targetId, className);
3140
+ };
3121
3141
  return React__default["default"].createElement(Portal, { key: options.targetId, parentElement: parentElement },
3122
- React__default["default"].createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged })));
3142
+ React__default["default"].createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged, addContainerClass: addContainerClass, removeContainerClass: removeContainerClass })));
3123
3143
  });
3124
3144
  };
3125
3145
  var renderAfterTabsZones = function () {
@@ -3205,7 +3225,7 @@
3205
3225
  webGroupsManager.selectTab(windowId);
3206
3226
  };
3207
3227
  var close = function (windowId) {
3208
- webGroupsManager.onCloseButtonClick(TargetType.Tab, windowId);
3228
+ webGroupsManager.closeTab(windowId);
3209
3229
  };
3210
3230
  return React__default["default"].createElement(Portal, { key: options.targetId, parentElement: parentElement },
3211
3231
  React__default["default"].createElement(TabOverflowCustomElement, __assign({}, options, { select: select, close: close, frameId: options.targetId })));