@atlaskit/editor-plugin-tasks-and-decisions
Version:
Tasks and decisions plugin for @atlaskit/editor-core
51 lines (50 loc) • 1.27 kB
TypeScript
import type { IntlShape } from 'react-intl';
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [string, {
class: string;
'data-decision-local-id': any;
'data-decision-state': any;
'data-prosemirror-node-name': string;
}, (string | [string, {
contentEditable: boolean;
'data-component': string;
}, (string | {
'aria-label': string;
role: string;
} | (string | {
'data-icon-source': string;
height: string;
role: string;
viewBox: string;
width: string;
} | (string | {
d: string;
fill: string;
'fill-rule': string;
})[])[] | (string | {
'data-icon-source': string;
fill: string;
height: string;
role: string;
viewBox: string;
width: string;
} | (string | {
d: string;
fill: string;
'fill-rule': string;
})[])[])[]] | {
'data-decision-wrapper': boolean;
'data-testid': string;
} | (string | {
contentEditable: boolean;
'data-component': string;
'data-testid': string;
})[] | (string | {
'data-component': string;
} | (string | number | {
class: string;
'data-empty'?: undefined;
} | {
class: string;
'data-empty': string;
})[])[])[]];