@interopio/groups-ui-react 2.3.0 → 2.3.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.
@@ -96,6 +96,7 @@ export interface TabElementProps {
96
96
  caption: string;
97
97
  selected: boolean;
98
98
  flashing: boolean;
99
+ pinned: boolean;
99
100
  close: () => void;
100
101
  channels: ChannelProps;
101
102
  notifyCaptionBoundsChanged: (bounds: Bounds) => void;
@@ -107,6 +107,7 @@ export interface CreateTabRequestOptions extends CreateElementRequestOptions {
107
107
  caption: string;
108
108
  selected: boolean;
109
109
  flashing: boolean;
110
+ pinned: boolean;
110
111
  channelSelectorVisible: boolean;
111
112
  selectedChannel: string;
112
113
  selectedChannelColor: string;
package/dist/esm/index.js CHANGED
@@ -1842,13 +1842,13 @@ var TabCloseButton = function (_a) {
1842
1842
  };
1843
1843
 
1844
1844
  var Tab = function (_a) {
1845
- var caption = _a.caption, selected = _a.selected, close = _a.close, channels = _a.channels, captionEditor = _a.captionEditor, notifyCaptionBoundsChanged = _a.notifyCaptionBoundsChanged, windowId = _a.windowId;
1845
+ var caption = _a.caption, selected = _a.selected, close = _a.close, channels = _a.channels, captionEditor = _a.captionEditor, notifyCaptionBoundsChanged = _a.notifyCaptionBoundsChanged, windowId = _a.windowId, pinned = _a.pinned;
1846
1846
  return React.createElement("div", { className: "t42-react-tab" },
1847
1847
  channels.visible && React.createElement(TabChannelSelector, __assign({}, channels)),
1848
1848
  captionEditor.show ?
1849
1849
  React.createElement(TabCaptionEditor, __assign({}, captionEditor, { caption: captionEditor.text, selected: selected, windowId: windowId })) :
1850
1850
  React.createElement(TabCaption, { notifyBoundsChanged: notifyCaptionBoundsChanged, caption: caption, selected: selected }),
1851
- React.createElement(TabCloseButton, { selected: selected, close: close }));
1851
+ pinned ? React.createElement(React.Fragment, null) : React.createElement(TabCloseButton, { selected: selected, close: close }));
1852
1852
  };
1853
1853
 
1854
1854
  var OverflowButton = function (_a) {