|
|
|
@ -14,13 +14,18 @@ import { |
|
|
|
|
*/ |
|
|
|
|
export const ENDPOINT_REACTION_NAME = 'endpoint-reaction'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The prefix for all reaction sound IDs. Also the ID used in config to disable reaction sounds. |
|
|
|
|
*/ |
|
|
|
|
export const REACTION_SOUND = 'REACTION_SOUND'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
|
* triggered when a new laugh reaction is received. |
|
|
|
|
* |
|
|
|
|
* @type { string } |
|
|
|
|
*/ |
|
|
|
|
export const LAUGH_SOUND_ID = 'LAUGH_SOUND_'; |
|
|
|
|
export const LAUGH_SOUND_ID = `${REACTION_SOUND}_LAUGH_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
@ -28,7 +33,7 @@ export const LAUGH_SOUND_ID = 'LAUGH_SOUND_'; |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const CLAP_SOUND_ID = 'CLAP_SOUND_'; |
|
|
|
|
export const CLAP_SOUND_ID = `${REACTION_SOUND}_CLAP_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
@ -36,7 +41,7 @@ export const CLAP_SOUND_ID = 'CLAP_SOUND_'; |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const LIKE_SOUND_ID = 'LIKE_SOUND_'; |
|
|
|
|
export const LIKE_SOUND_ID = `${REACTION_SOUND}_LIKE_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
@ -44,7 +49,7 @@ export const LIKE_SOUND_ID = 'LIKE_SOUND_'; |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const BOO_SOUND_ID = 'BOO_SOUND_'; |
|
|
|
|
export const BOO_SOUND_ID = `${REACTION_SOUND}_BOO_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
@ -52,7 +57,7 @@ export const BOO_SOUND_ID = 'BOO_SOUND_'; |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const SURPRISE_SOUND_ID = 'SURPRISE_SOUND_'; |
|
|
|
|
export const SURPRISE_SOUND_ID = `${REACTION_SOUND}_SURPRISE_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID prefix of the audio element for which the {@link playAudio} action is |
|
|
|
@ -60,7 +65,7 @@ export const SURPRISE_SOUND_ID = 'SURPRISE_SOUND_'; |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const SILENCE_SOUND_ID = 'SILENCE_SOUND_'; |
|
|
|
|
export const SILENCE_SOUND_ID = `${REACTION_SOUND}_SILENCE_`; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The audio ID of the audio element for which the {@link playAudio} action is |
|
|
|
|