function addMessage(text, timeout, type = "info") {
    const id = guid();
    state.list.push({ id: id, type: type, text, timeout });
    return id;
}
Creates new notification message and adds it to current
notification state.

@since 3.8.0

@param {string} text message to display
@param {number} timeout milliseconds timeout until message automatically removed
@param {string} type notification message type
@returns {string} uuid of new message element