@carbon/ai-chat 1.4.0-rc.0 → 1.4.0-rc.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.
@@ -1265,7 +1265,7 @@ function agentUpdateIsTyping(isTyping) {
1265
1265
  };
1266
1266
  }
1267
1267
 
1268
- const VERSION = "1.3.0";
1268
+ const VERSION = "1.4.0";
1269
1269
 
1270
1270
  const TIME_TO_ENTRANCE_ANIMATION_START = 15e3;
1271
1271
 
@@ -12316,10 +12316,10 @@ class OverlayPanel extends PureComponent {
12316
12316
  });
12317
12317
  }
12318
12318
  render() {
12319
- const {children, className, shouldOpen, animationOnClose, animationOnOpen, overlayPanelName, hasBackButton} = this.props;
12319
+ const {children, className, shouldOpen, shouldHide, animationOnClose, animationOnOpen, overlayPanelName, hasBackButton} = this.props;
12320
12320
  const {isClosing, isOpening} = this.state;
12321
12321
  return React.createElement(HideComponent, {
12322
- hidden: !isClosing && !shouldOpen,
12322
+ hidden: !isClosing && !shouldOpen || shouldHide,
12323
12323
  className: cx("cds-aichat--overlay-panel-container", className, {
12324
12324
  "cds-aichat--overlay-panel-container--animating": isOpening || isClosing
12325
12325
  })
@@ -13029,8 +13029,8 @@ function HomeScreenComponent({homescreen, homeScreenMessageInputRef, onStarterCl
13029
13029
  }, React.createElement(InputExport, {
13030
13030
  ref: homeScreenMessageInputRef,
13031
13031
  onSendInput,
13032
- disableInput: false,
13033
- isInputVisible: true,
13032
+ disableInput: inputConfig?.isDisabled,
13033
+ isInputVisible: inputConfig?.isVisible !== false,
13034
13034
  disableSend: false,
13035
13035
  languagePack,
13036
13036
  serviceManager,
@@ -13500,10 +13500,10 @@ class MainWindow extends Component {
13500
13500
  this.botChatRef.current?.doScrollToMessage(messageID, animate);
13501
13501
  }
13502
13502
  renderChat() {
13503
- const {isHydrated} = this.props;
13503
+ const {isHydrated, assistantMessageState} = this.props;
13504
13504
  return React.createElement("div", {
13505
13505
  className: "cds-aichat--widget--content"
13506
- }, this.renderCustomPanel(), this.renderHydrationPanel(), isHydrated && React.createElement(React.Fragment, null, this.renderDisclaimerPanel(), this.renderResponsePanel(), this.renderHomeScreenPanel(), this.renderIFramePanel(), this.renderViewSourcePanel(), this.renderAssistantChat()));
13506
+ }, this.renderHydrationPanel(), this.renderCustomPanel(), isHydrated && !assistantMessageState.isHydratingCounter && React.createElement(React.Fragment, null, this.renderDisclaimerPanel(), this.renderResponsePanel(), this.renderHomeScreenPanel(), this.renderIFramePanel(), this.renderViewSourcePanel(), this.renderAssistantChat()));
13507
13507
  }
13508
13508
  renderAssistantChat() {
13509
13509
  const {config: {derived: {themeWithDefaults: theme, languagePack}, public: {assistantName}}, config, serviceManager, assistantMessageState, humanAgentState, allMessageItemsByID, isHydrated} = this.props;
@@ -13564,8 +13564,7 @@ class MainWindow extends Component {
13564
13564
  },
13565
13565
  animationOnOpen: AnimationInType.NONE,
13566
13566
  animationOnClose: AnimationOutType.NONE,
13567
- shouldOpen: assistantMessageState.isHydratingCounter > 0 && !catastrophicErrorType && viewState.mainWindow,
13568
- shouldHide: false,
13567
+ shouldOpen: assistantMessageState.isHydratingCounter && !catastrophicErrorType && viewState.mainWindow,
13569
13568
  serviceManager,
13570
13569
  overlayPanelName: PageObjectId.HYDRATING_PANEL
13571
13570
  }, React.createElement(HydrationPanel, {