* feat: new image menu * switch to resizable side handles * use pixels * refactor excalidraw and drawio menu * support image resize undo * video resize * callout menu refresh * refresh table menus * fix color scheme * fix: patch @tiptap/core ResizableNodeView to prevent resize sticking after mouseup * feat: columns * notes callout * focus on first column * capture tab key in column * fix print * hide columns menu when some nodes are focused * fix print * fix columns * selective placeholder * fix blockquote * quote * fix callout in columns
22 lines
352 B
TypeScript
22 lines
352 B
TypeScript
export type CalloutType =
|
|
| 'default'
|
|
| 'info'
|
|
| 'note'
|
|
| 'success'
|
|
| 'warning'
|
|
| 'danger';
|
|
const validCalloutTypes = [
|
|
'default',
|
|
'info',
|
|
'note',
|
|
'success',
|
|
'warning',
|
|
'danger',
|
|
];
|
|
|
|
export function getValidCalloutType(value: string): string {
|
|
if (value) {
|
|
return validCalloutTypes.includes(value) ? value : 'info';
|
|
}
|
|
}
|