/*
 * Copyright (C) 2019 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

export const whitelist = [
  'requestFullWindowLaunch',
  'lti.resourceImported',
  'toggleCourseNavigationMenu'
]

// These are handled elsewhere so ignore them
export const ignorelist = ['A2ExternalContentReady', 'LtiDeepLinkingResponse']

/*
 * Copyright (C) 2019 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
import {
  NAVIGATION_MESSAGE as MENTIONS_NAVIGATION_MESSAGE,
  INPUT_CHANGE_MESSAGE as MENTIONS_INPUT_CHANGE_MESSAGE,
  SELECTION_MESSAGE as MENTIONS_SELECTION_MESSAGE
} from '../../../rce/plugins/canvas_mentions/constants'

export const whitelist = [
  'requestFullWindowLaunch',
  'lti.resourceImported',
  'toggleCourseNavigationMenu'
]

// These are handled elsewhere so ignore them
export const ignorelist = [
  'A2ExternalContentReady',
  'LtiDeepLinkingResponse',
  MENTIONS_NAVIGATION_MESSAGE,
  MENTIONS_INPUT_CHANGE_MESSAGE,
  MENTIONS_SELECTION_MESSAGE
]

Add Mentions Post MessageTypes to whitelist
Add Mentions Post MessageTypes to whitelist

fixes VICe-1925

Test Plan
1. With an LTI enabled on discussions, pull down the change
2. Validate that Discussions has Redesign and Mentions FF enabled
3. Trigger a discussion with @ and navigate with up and down arrows
4. No error messages involving messageType should be in dev console

Change-Id: Ib2f6c5eee6e186a891e6cd15c4e5a1431b25037d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/271615
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Reviewed-by: Drake Harper <798ef92bc86a79e8ff768a68dc0a5fcec1d51660@instructure.com>
QA-Review: Drake Harper <798ef92bc86a79e8ff768a68dc0a5fcec1d51660@instructure.com>
Product-Review: Drake Harper <798ef92bc86a79e8ff768a68dc0a5fcec1d51660@instructure.com>
