@interopio/groups-ui-react 2.2.3 → 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.
@@ -100,6 +100,8 @@ export interface TabElementProps {
100
100
  channels: ChannelProps;
101
101
  notifyCaptionBoundsChanged: (bounds: Bounds) => void;
102
102
  captionEditor: CaptionEditorProps;
103
+ addContainerClass: (className: string) => void;
104
+ removeContainerClass: (className: string) => void;
103
105
  }
104
106
  export interface AfterTabsProps {
105
107
  frameId: string;
@@ -285,6 +285,8 @@ export interface ExternalLibraryFactory {
285
285
  onCaptionEditorBoundsChanged(targetType: TargetType, targetId: string, bounds: Bounds): void;
286
286
  commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
287
287
  selectTab(windowId: string): void;
288
+ addTabContainerClass(windowId: string, className: string): void;
289
+ removeTabContainerClass(windowId: string, className: string): void;
288
290
  }
289
291
  export interface WebGroupsManager {
290
292
  init: (factory?: any) => void;
@@ -36,6 +36,8 @@ declare class WebGroupsManagerDecorator {
36
36
  onCommitCaptionEditingRequested(targetType: TargetType, targetId: string, callback: () => void): () => void;
37
37
  requestCommitCaptionEditing(targetType: TargetType, targetId: string): void;
38
38
  selectTab(windowId: string): void;
39
+ addTabContainerClass(windowId: string, className: string): void;
40
+ removeTabContainerClass(windowId: string, className: string): void;
39
41
  }
40
42
  declare const _default: WebGroupsManagerDecorator;
41
43
  export default _default;
package/dist/esm/index.js CHANGED
@@ -322,6 +322,20 @@ var WebGroupsManagerDecorator = /** @class */ (function () {
322
322
  WebGroupsManagerDecorator.prototype.selectTab = function (windowId) {
323
323
  window.webGroupsManager.externalLibraryFactory.selectTab(windowId);
324
324
  };
325
+ WebGroupsManagerDecorator.prototype.addTabContainerClass = function (windowId, className) {
326
+ if (typeof window.webGroupsManager.externalLibraryFactory.addTabContainerClass !== "function") {
327
+ console.warn("The method addTabContainerClass is not supported by the current version of the library");
328
+ return;
329
+ }
330
+ window.webGroupsManager.externalLibraryFactory.addTabContainerClass(windowId, className);
331
+ };
332
+ WebGroupsManagerDecorator.prototype.removeTabContainerClass = function (windowId, className) {
333
+ if (typeof window.webGroupsManager.externalLibraryFactory.removeTabContainerClass !== "function") {
334
+ console.warn("The method removeTabContainerClass is not supported by the current version of the library");
335
+ return;
336
+ }
337
+ window.webGroupsManager.externalLibraryFactory.removeTabContainerClass(windowId, className);
338
+ };
325
339
  return WebGroupsManagerDecorator;
326
340
  }());
327
341
  var webGroupsManager = new WebGroupsManagerDecorator();
@@ -3111,8 +3125,14 @@ var GroupElementCreationWrapper = function (_a) {
3111
3125
  webGroupsManager.onCaptionEditorVisibleChanged(TargetType.Tab, options.targetId, visible);
3112
3126
  } });
3113
3127
  var notifyCaptionBoundsChanged = function (bounds) { return webGroupsManager.onCaptionTextBoundsChanged(TargetType.Tab, options.targetId, bounds); };
3128
+ var addContainerClass = function (className) {
3129
+ webGroupsManager.addTabContainerClass(options.targetId, className);
3130
+ };
3131
+ var removeContainerClass = function (className) {
3132
+ webGroupsManager.removeTabContainerClass(options.targetId, className);
3133
+ };
3114
3134
  return React.createElement(Portal, { key: options.targetId, parentElement: parentElement },
3115
- React.createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged })));
3135
+ React.createElement(TabCustomElement, __assign({}, options, { close: onCloseClick, channels: channels, windowId: options.targetId, captionEditor: captionEditor, notifyCaptionBoundsChanged: notifyCaptionBoundsChanged, addContainerClass: addContainerClass, removeContainerClass: removeContainerClass })));
3116
3136
  });
3117
3137
  };
3118
3138
  var renderAfterTabsZones = function () {