1 | import { MarkSpec } from 'prosemirror-model';
|
2 |
|
3 |
|
4 |
|
5 | export interface AnnotationMarkDefinition {
|
6 | type: 'annotation';
|
7 | attrs: AnnotationMarkAttributes;
|
8 | }
|
9 | export interface AnnotationMarkAttributes {
|
10 | id: AnnotationId;
|
11 | annotationType: AnnotationTypes;
|
12 | }
|
13 | export declare type AnnotationId = string;
|
14 | export declare enum AnnotationTypes {
|
15 | INLINE_COMMENT = "inlineComment"
|
16 | }
|
17 | export declare enum AnnotationMarkStates {
|
18 | RESOLVED = "resolved",
|
19 | ACTIVE = "active"
|
20 | }
|
21 | export declare type AnnotationDataAttributes = {
|
22 | 'data-mark-type': string;
|
23 | 'data-mark-annotation-type': AnnotationTypes;
|
24 | 'data-id': AnnotationId;
|
25 | 'data-mark-annotation-state'?: AnnotationMarkStates;
|
26 | };
|
27 | declare type BuildDataAttributesProps = AnnotationMarkAttributes & {
|
28 | state?: AnnotationMarkStates | undefined | null;
|
29 | };
|
30 | export declare function buildDataAttributes({ id, annotationType, state, }: BuildDataAttributesProps): AnnotationDataAttributes;
|
31 | export declare const annotation: MarkSpec;
|
32 | export {};
|