Source

externalCode/newReplyScreen.js

/**
 * @class
 * New Reply Screen Hooks.
 * Instance name: newReplyScreenHooksApi
 
   You can use this hook to personalize reply screens such as hiding the tags input when users reply in a discussion.
 * @example
 * externalCodeSetup.newReplyScreenHooksApi.METHOD_NAME
 */
export class NewReplyScreenHooksApi {
	/**
	 * hides BB media upload view
	 * @private
	 */
	isMediaHidden = false;
	/**
	 * @ignore
	 * Reason for ignore: Function is not being used in NewReplyScreen.js
	 * Hide media upload buttons
	 * @method
	 * @example
	 * externalCodeSetup.newReplyScreenHooksApi.hideMediaOptions()
	 */
	hideMediaOptions = () => {
		this.isMediaHidden = true;
	};

	/**
	 * hides tags input
	 * @private
	 */
	areTagsHidden = false;
	/**
	 * Use this to hide the tags input component when replying in a discussion
	 * @method
	 * @example
	 * externalCodeSetup.newReplyScreenHooksApi.hideTags()
	 */
	hideTags = () => (this.areTagsHidden = true);

	isNotifyViaEmailHidden = false;

	/**
	 * Hides the component that the users can enable to notify them of follow-up replies via email.
	 * @method
	 * @example
	 * externalCodeSetup.newReplyScreenHooksApi.hideNotifyViaEmail();
	 */
	hideNotifyViaEmail = () => {
		this.isNotifyViaEmailHidden = true;
	};
}