mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 13:44:53 +08:00
Summary: Adds Mail Merge Plugin - Adds new table components to component kit - Adds new extension points to allow dragging and dropping into composer contenteditable and participant fields and customizing participant fields - Adds new decorators and other misc updates - #1608 Test Plan: TODO Reviewers: bengotow, evan Reviewed By: bengotow, evan Differential Revision: https://phab.nylas.com/D2895
31 lines
663 B
JavaScript
31 lines
663 B
JavaScript
import plugin from '../package.json'
|
|
|
|
export const PLUGIN_ID = plugin.appId[NylasEnv.config.get("env")];
|
|
export const PLUGIN_NAME = "Mail Merge"
|
|
export const DEBUG = true
|
|
|
|
export const ParticipantFields = ['to', 'cc', 'bcc']
|
|
|
|
export const DataTransferTypes = {
|
|
ColIdx: 'mail-merge:col-idx',
|
|
DraftId: 'mail-merge:draft-client-id',
|
|
}
|
|
|
|
export const TableActionNames = [
|
|
'addColumn',
|
|
'removeColumn',
|
|
'addRow',
|
|
'removeRow',
|
|
'updateCell',
|
|
'shiftSelection',
|
|
'setSelection',
|
|
]
|
|
|
|
export const WorkspaceActionNames = [
|
|
'toggleWorkspace',
|
|
'linkToDraft',
|
|
'unlinkFromDraft',
|
|
]
|
|
|
|
export const ActionNames = [...TableActionNames, ...WorkspaceActionNames]
|
|
|