'use strict';

const RTE_DEFAULT_TEXT_COLOR = {
  key: 'black',
  light: '#111128',
  dark: '#E3E3E8',
};
const RTE_TEXT_COLORS = [
  RTE_DEFAULT_TEXT_COLOR,
  {
    key: 'gray',
    light: '#5E5E6D',
    dark: '#B9B9C1',
  },
  {
    key: 'green',
    light: '#01801F',
    dark: '#59D977',
  },
  {
    key: 'red',
    light: '#BD2947',
    dark: '#FFB2B5',
  },
  {
    key: 'purple',
    light: '#563D82',
    dark: '#BEB2FF',
  },
  {
    key: 'teal',
    light: '#17758F',
    dark: '#4CD8FF',
  },
];
const ZERO_WIDTH_SPACE = '\u200b';
const VegaRTEPresetToolbarItems = [
  ['textStyles'],
  ['bold', 'italic', 'underline', 'strikethrough', 'code'],
  ['textColor'],
  ['horizontalAlignment', 'bulletsNumbers'],
  ['moreIndent', 'lessIndent'],
  ['link'],
  ['image'],
  ['clearStyle'],
];
/**
 * Void/self-closing HTML elements that have no closing tag and cannot contain children.
 * Source: https://html.spec.whatwg.org/multipage/syntax.html#void-elements
 */
const HTML_VOID_TAGS = new Set([
  'area',
  'base',
  'br',
  'col',
  'embed',
  'hr',
  'img',
  'input',
  'link',
  'meta',
  'param',
  'source',
  'track',
  'wbr',
]);

exports.HTML_VOID_TAGS = HTML_VOID_TAGS;
exports.RTE_DEFAULT_TEXT_COLOR = RTE_DEFAULT_TEXT_COLOR;
exports.RTE_TEXT_COLORS = RTE_TEXT_COLORS;
exports.VegaRTEPresetToolbarItems = VegaRTEPresetToolbarItems;
exports.ZERO_WIDTH_SPACE = ZERO_WIDTH_SPACE;
