@atlaskit/adf-schema 28.1.2 → 28.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/babel.config.js +156 -0
- package/build/tsconfig.json +2 -1
- package/dist/json-schema/package.json +2 -9
- package/json-schema/package.json +2 -9
- package/package.json +41 -29
- package/report.api.md +18 -10
- package/schema/package.json +1 -8
- package/schema-bitbucket/package.json +2 -9
- package/schema-confluence/package.json +2 -9
- package/schema-default/package.json +2 -9
- package/schema-jira/package.json +2 -9
- package/steps/package.json +2 -9
- package/tsconfig.json +2 -5
- package/url/package.json +2 -9
- package/dist/types-ts4.5/index.d.ts +0 -6
- package/dist/types-ts4.5/json-schema/index.d.ts +0 -2
- package/dist/types-ts4.5/schema/bitbucket-schema.d.ts +0 -5
- package/dist/types-ts4.5/schema/confluence-schema.d.ts +0 -9
- package/dist/types-ts4.5/schema/create-schema.d.ts +0 -32
- package/dist/types-ts4.5/schema/default-schema.d.ts +0 -7
- package/dist/types-ts4.5/schema/groups.d.ts +0 -6
- package/dist/types-ts4.5/schema/index.d.ts +0 -9
- package/dist/types-ts4.5/schema/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.5/schema/jira-schema.d.ts +0 -65
- package/dist/types-ts4.5/schema/marks/alignment.d.ts +0 -16
- package/dist/types-ts4.5/schema/marks/annotation.d.ts +0 -32
- package/dist/types-ts4.5/schema/marks/border.d.ts +0 -23
- package/dist/types-ts4.5/schema/marks/breakout.d.ts +0 -12
- package/dist/types-ts4.5/schema/marks/code.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/confluence-inline-comment.d.ts +0 -12
- package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +0 -46
- package/dist/types-ts4.5/schema/marks/em.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/fragment.d.ts +0 -29
- package/dist/types-ts4.5/schema/marks/indentation.d.ts +0 -16
- package/dist/types-ts4.5/schema/marks/index.d.ts +0 -34
- package/dist/types-ts4.5/schema/marks/link.d.ts +0 -35
- package/dist/types-ts4.5/schema/marks/strike.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/strong.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/subsup.d.ts +0 -15
- package/dist/types-ts4.5/schema/marks/text-color.d.ts +0 -22
- package/dist/types-ts4.5/schema/marks/type-ahead-query.d.ts +0 -2
- package/dist/types-ts4.5/schema/marks/underline.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/unsupported-mark.d.ts +0 -2
- package/dist/types-ts4.5/schema/marks/unsupported-node-attributes.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/block-card.d.ts +0 -44
- package/dist/types-ts4.5/schema/nodes/blockquote.d.ts +0 -14
- package/dist/types-ts4.5/schema/nodes/bodied-extension.d.ts +0 -24
- package/dist/types-ts4.5/schema/nodes/bullet-list.d.ts +0 -3
- package/dist/types-ts4.5/schema/nodes/caption.d.ts +0 -21
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +0 -31
- package/dist/types-ts4.5/schema/nodes/confluence-jira-issue.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-block.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/date.d.ts +0 -14
- package/dist/types-ts4.5/schema/nodes/decision-item.d.ts +0 -17
- package/dist/types-ts4.5/schema/nodes/decision-list.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/doc.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/embed-card.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/emoji.d.ts +0 -14
- package/dist/types-ts4.5/schema/nodes/expand.d.ts +0 -31
- package/dist/types-ts4.5/schema/nodes/extension.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/hard-break.d.ts +0 -11
- package/dist/types-ts4.5/schema/nodes/heading.d.ts +0 -36
- package/dist/types-ts4.5/schema/nodes/image.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/index.d.ts +0 -93
- package/dist/types-ts4.5/schema/nodes/inline-card.d.ts +0 -10
- package/dist/types-ts4.5/schema/nodes/inline-extension.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +0 -21
- package/dist/types-ts4.5/schema/nodes/layout-section.d.ts +0 -44
- package/dist/types-ts4.5/schema/nodes/list-item.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/media-group.d.ts +0 -14
- package/dist/types-ts4.5/schema/nodes/media-inline.d.ts +0 -16
- package/dist/types-ts4.5/schema/nodes/media-single.d.ts +0 -67
- package/dist/types-ts4.5/schema/nodes/media.d.ts +0 -62
- package/dist/types-ts4.5/schema/nodes/mention.d.ts +0 -24
- package/dist/types-ts4.5/schema/nodes/nested-expand.d.ts +0 -27
- package/dist/types-ts4.5/schema/nodes/ordered-list.d.ts +0 -4
- package/dist/types-ts4.5/schema/nodes/panel.d.ts +0 -38
- package/dist/types-ts4.5/schema/nodes/paragraph.d.ts +0 -37
- package/dist/types-ts4.5/schema/nodes/placeholder.d.ts +0 -11
- package/dist/types-ts4.5/schema/nodes/rule.d.ts +0 -8
- package/dist/types-ts4.5/schema/nodes/status.d.ts +0 -20
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +0 -117
- package/dist/types-ts4.5/schema/nodes/task-item.d.ts +0 -17
- package/dist/types-ts4.5/schema/nodes/task-list.d.ts +0 -21
- package/dist/types-ts4.5/schema/nodes/text.d.ts +0 -15
- package/dist/types-ts4.5/schema/nodes/types/block-content.d.ts +0 -22
- package/dist/types-ts4.5/schema/nodes/types/extensions.d.ts +0 -34
- package/dist/types-ts4.5/schema/nodes/types/inline-content.d.ts +0 -32
- package/dist/types-ts4.5/schema/nodes/types/list.d.ts +0 -43
- package/dist/types-ts4.5/schema/nodes/types/mark.d.ts +0 -15
- package/dist/types-ts4.5/schema/nodes/types/non-nestable-block-content.d.ts +0 -20
- package/dist/types-ts4.5/schema/nodes/types/rich-media-common.d.ts +0 -38
- package/dist/types-ts4.5/schema/nodes/unknown-block.d.ts +0 -3
- package/dist/types-ts4.5/schema/nodes/unsupported-block.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.5/schema/unsupported.d.ts +0 -1
- package/dist/types-ts4.5/steps/analytics.d.ts +0 -59
- package/dist/types-ts4.5/steps/link-meta-step.d.ts +0 -51
- package/dist/types-ts4.5/steps/override-document-step.d.ts +0 -27
- package/dist/types-ts4.5/steps/set-attrs.d.ts +0 -23
- package/dist/types-ts4.5/steps/table/add-column.d.ts +0 -88
- package/dist/types-ts4.5/steps/table/constants.d.ts +0 -4
- package/dist/types-ts4.5/steps/table/sort-column.d.ts +0 -18
- package/dist/types-ts4.5/steps/table/types.d.ts +0 -39
- package/dist/types-ts4.5/steps/table/utils/cell-step.d.ts +0 -51
- package/dist/types-ts4.5/steps/table/utils/cells-at-column.d.ts +0 -20
- package/dist/types-ts4.5/steps/table/utils/find-column.d.ts +0 -8
- package/dist/types-ts4.5/steps/table/utils/get-table-rect-from-doc.d.ts +0 -8
- package/dist/types-ts4.5/steps/table/utils/side-effects/rows.d.ts +0 -25
- package/dist/types-ts4.5/steps/table/utils/side-effects/side-effects.d.ts +0 -15
- package/dist/types-ts4.5/steps/table/utils/side-effects/table.d.ts +0 -16
- package/dist/types-ts4.5/steps/table/utils/side-effects/types.d.ts +0 -33
- package/dist/types-ts4.5/steps/table/utils/table-map.d.ts +0 -6
- package/dist/types-ts4.5/steps/type-ahead.d.ts +0 -35
- package/dist/types-ts4.5/steps.d.ts +0 -12
- package/dist/types-ts4.5/utils/colors.d.ts +0 -74
- package/dist/types-ts4.5/utils/confluence/emoji.d.ts +0 -50
- package/dist/types-ts4.5/utils/extensions.d.ts +0 -3
- package/dist/types-ts4.5/utils/index.d.ts +0 -6
- package/dist/types-ts4.5/utils/parseDOM.d.ts +0 -1
- package/dist/types-ts4.5/utils/url.d.ts +0 -40
- package/dist/types-ts4.5/utils/uuid.d.ts +0 -5
- package/tmp/api-report-tmp.d.ts +0 -1705
@@ -1,20 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @name status_node
|
4
|
-
*/
|
5
|
-
export interface StatusDefinition {
|
6
|
-
type: 'status';
|
7
|
-
attrs: {
|
8
|
-
/**
|
9
|
-
* @minLength 1
|
10
|
-
*/
|
11
|
-
text: string;
|
12
|
-
color: 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
|
13
|
-
localId?: string;
|
14
|
-
/**
|
15
|
-
* Supported values are bold and subtle
|
16
|
-
*/
|
17
|
-
style?: string;
|
18
|
-
};
|
19
|
-
}
|
20
|
-
export declare const status: NodeSpec;
|
@@ -1,117 +0,0 @@
|
|
1
|
-
import { Node as PmNode, NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { CellAttributes } from '@atlaskit/editor-tables/types';
|
3
|
-
import { PanelDefinition as Panel } from './panel';
|
4
|
-
import { ParagraphDefinition as Paragraph, ParagraphWithAlignmentDefinition as ParagraphWithMarks } from './paragraph';
|
5
|
-
import { BlockQuoteDefinition as Blockquote } from './blockquote';
|
6
|
-
import { OrderedListDefinition as OrderedList } from './types/list';
|
7
|
-
import { BulletListDefinition as BulletList } from './types/list';
|
8
|
-
import { RuleDefinition as Rule } from './rule';
|
9
|
-
import { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
|
10
|
-
import { CodeBlockDefinition as CodeBlock } from './code-block';
|
11
|
-
import { MediaGroupDefinition as MediaGroup } from './media-group';
|
12
|
-
import { MediaSingleDefinition as MediaSingle } from './media-single';
|
13
|
-
import { DecisionListDefinition as DecisionList } from './decision-list';
|
14
|
-
import { TaskListDefinition as TaskList } from './task-list';
|
15
|
-
import { ExtensionDefinition as Extension } from './extension';
|
16
|
-
import { BlockCardDefinition as BlockCard } from './block-card';
|
17
|
-
import { EmbedCardDefinition as EmbedCard } from './embed-card';
|
18
|
-
import { NestedExpandDefinition as NestedExpand } from './nested-expand';
|
19
|
-
import { FragmentDefinition } from '../marks/fragment';
|
20
|
-
export type { CellAttributes };
|
21
|
-
export declare const tablePrefixSelector = "pm-table";
|
22
|
-
export declare const tableCellSelector: string;
|
23
|
-
export declare const tableHeaderSelector: string;
|
24
|
-
export declare const tableCellContentWrapperSelector: string;
|
25
|
-
export declare const tableCellContentDomSelector: string;
|
26
|
-
export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttributes) => {
|
27
|
-
colspan: number;
|
28
|
-
rowspan: number;
|
29
|
-
colwidth: number[] | null;
|
30
|
-
background: string | null;
|
31
|
-
};
|
32
|
-
export type CellDomAttrs = {
|
33
|
-
colspan?: string;
|
34
|
-
rowspan?: string;
|
35
|
-
style?: string;
|
36
|
-
colorname?: string;
|
37
|
-
'data-colwidth'?: string;
|
38
|
-
'data-cell-background'?: string;
|
39
|
-
class?: string;
|
40
|
-
};
|
41
|
-
/**
|
42
|
-
* gets cell dom attributes based on node attributes
|
43
|
-
* @returns CellDomAttrs
|
44
|
-
*/
|
45
|
-
export declare const getCellDomAttrs: (node: PmNode) => CellDomAttrs;
|
46
|
-
export declare const tableBackgroundColorPalette: Map<string, string>;
|
47
|
-
export declare const tableBackgroundBorderColor: string;
|
48
|
-
export declare const tableBackgroundColorNames: Map<string, string>;
|
49
|
-
export type Layout = 'default' | 'full-width' | 'wide';
|
50
|
-
export interface TableAttributes {
|
51
|
-
isNumberColumnEnabled?: boolean;
|
52
|
-
layout?: Layout;
|
53
|
-
__autoSize?: boolean;
|
54
|
-
/**
|
55
|
-
* @minLength 1
|
56
|
-
*/
|
57
|
-
localId?: string;
|
58
|
-
/**
|
59
|
-
* @stage 0
|
60
|
-
*/
|
61
|
-
width?: number;
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* @name table_node
|
65
|
-
*/
|
66
|
-
export interface TableDefinition {
|
67
|
-
type: 'table';
|
68
|
-
attrs?: TableAttributes;
|
69
|
-
/**
|
70
|
-
* @minItems 1
|
71
|
-
*/
|
72
|
-
content: Array<TableRow>;
|
73
|
-
marks?: Array<FragmentDefinition>;
|
74
|
-
}
|
75
|
-
/**
|
76
|
-
* @name table_row_node
|
77
|
-
*/
|
78
|
-
export interface TableRow {
|
79
|
-
type: 'tableRow';
|
80
|
-
content: Array<TableHeader | TableCell>;
|
81
|
-
}
|
82
|
-
/**
|
83
|
-
* @name table_cell_content
|
84
|
-
* @minItems 1
|
85
|
-
* @allowUnsupportedBlock true
|
86
|
-
*/
|
87
|
-
export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Extension | BlockCard | NestedExpand | EmbedCard>;
|
88
|
-
/**
|
89
|
-
* @name table_cell_node
|
90
|
-
*/
|
91
|
-
export interface TableCell {
|
92
|
-
type: 'tableCell';
|
93
|
-
attrs?: CellAttributes;
|
94
|
-
content: TableCellContent;
|
95
|
-
}
|
96
|
-
/**
|
97
|
-
* @name table_header_node
|
98
|
-
*/
|
99
|
-
export interface TableHeader {
|
100
|
-
type: 'tableHeader';
|
101
|
-
attrs?: CellAttributes;
|
102
|
-
content: TableCellContent;
|
103
|
-
}
|
104
|
-
export declare const table: NodeSpec;
|
105
|
-
export declare const tableWithCustomWidth: NodeSpec;
|
106
|
-
export declare const tableToJSON: (node: PmNode) => {
|
107
|
-
attrs: import("prosemirror-model").Attrs;
|
108
|
-
};
|
109
|
-
export declare const tableRow: NodeSpec;
|
110
|
-
export declare const tableCell: NodeSpec;
|
111
|
-
export declare const toJSONTableCell: (node: PmNode) => {
|
112
|
-
attrs: Record<string, any>;
|
113
|
-
};
|
114
|
-
export declare const tableHeader: NodeSpec;
|
115
|
-
export declare const toJSONTableHeader: (node: PmNode) => {
|
116
|
-
attrs: Record<string, any>;
|
117
|
-
};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { Inline } from './types/inline-content';
|
3
|
-
/**
|
4
|
-
* @name taskItem_node
|
5
|
-
*/
|
6
|
-
export interface TaskItemDefinition {
|
7
|
-
type: 'taskItem';
|
8
|
-
/**
|
9
|
-
* @allowUnsupportedInline true
|
10
|
-
*/
|
11
|
-
content?: Array<Inline>;
|
12
|
-
attrs: {
|
13
|
-
localId: string;
|
14
|
-
state: 'TODO' | 'DONE';
|
15
|
-
};
|
16
|
-
}
|
17
|
-
export declare const taskItem: NodeSpec;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { TaskItemDefinition as TaskItemNode } from './task-item';
|
3
|
-
export interface TaskListContent extends Array<TaskItemNode | TaskListDefinition> {
|
4
|
-
0: TaskItemNode;
|
5
|
-
}
|
6
|
-
/**
|
7
|
-
* @name taskList_node
|
8
|
-
*/
|
9
|
-
export interface TaskListDefinition {
|
10
|
-
type: 'taskList';
|
11
|
-
/**
|
12
|
-
* @minItems 1
|
13
|
-
* @allowUnsupportedBlock true
|
14
|
-
*/
|
15
|
-
content: TaskListContent;
|
16
|
-
attrs: {
|
17
|
-
localId: string;
|
18
|
-
};
|
19
|
-
}
|
20
|
-
export declare const taskListSelector: string;
|
21
|
-
export declare const taskList: NodeSpec;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @name text_node
|
4
|
-
*/
|
5
|
-
export interface TextDefinition {
|
6
|
-
type: 'text';
|
7
|
-
/**
|
8
|
-
* @minLength 1
|
9
|
-
*/
|
10
|
-
text: string;
|
11
|
-
marks?: Array<any>;
|
12
|
-
}
|
13
|
-
export declare const text: NodeSpec & {
|
14
|
-
toDebugString?: () => string;
|
15
|
-
};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ExpandDefinition as Expand } from '../expand';
|
2
|
-
import { BodiedExtensionDefinition as BodiedExtension } from '../bodied-extension';
|
3
|
-
import { PanelDefinition as Panel } from '../panel';
|
4
|
-
import { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from '../paragraph';
|
5
|
-
import { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
6
|
-
import { OrderedListDefinition as OrderedList } from '../types/list';
|
7
|
-
import { BulletListDefinition as BulletList } from '../types/list';
|
8
|
-
import { RuleDefinition as Rule } from '../rule';
|
9
|
-
import { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from '../heading';
|
10
|
-
import { CodeBlockDefinition as CodeBlock } from '../code-block';
|
11
|
-
import { MediaGroupDefinition as MediaGroup } from '../media-group';
|
12
|
-
import { MediaSingleDefinition as MediaSingle } from '../media-single';
|
13
|
-
import { DecisionListDefinition as DecisionList } from '../decision-list';
|
14
|
-
import { TaskListDefinition as TaskList } from '../task-list';
|
15
|
-
import { TableDefinition as Table } from '../tableNodes';
|
16
|
-
import { ExtensionDefinition as Extension } from '../extension';
|
17
|
-
import { BlockCardDefinition as BlockCard } from '../block-card';
|
18
|
-
import { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
19
|
-
/**
|
20
|
-
* @name block_content
|
21
|
-
*/
|
22
|
-
export type BlockContent = Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Expand | Extension | BodiedExtension | BlockCard | EmbedCard;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export type Layout = 'default' | 'wide' | 'full-width';
|
2
|
-
export interface ExtensionAttributes {
|
3
|
-
/**
|
4
|
-
* @minLength 1
|
5
|
-
*/
|
6
|
-
extensionKey: string;
|
7
|
-
/**
|
8
|
-
* @minLength 1
|
9
|
-
*/
|
10
|
-
extensionType: string;
|
11
|
-
parameters?: object;
|
12
|
-
text?: string;
|
13
|
-
layout?: Layout;
|
14
|
-
/**
|
15
|
-
* @minLength 1
|
16
|
-
*/
|
17
|
-
localId?: string;
|
18
|
-
}
|
19
|
-
export interface InlineExtensionAttributes {
|
20
|
-
/**
|
21
|
-
* @minLength 1
|
22
|
-
*/
|
23
|
-
extensionKey: string;
|
24
|
-
/**
|
25
|
-
* @minLength 1
|
26
|
-
*/
|
27
|
-
extensionType: string;
|
28
|
-
parameters?: object;
|
29
|
-
text?: string;
|
30
|
-
/**
|
31
|
-
* @minLength 1
|
32
|
-
*/
|
33
|
-
localId?: string;
|
34
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { HardBreakDefinition as HardBreak } from '../hard-break';
|
2
|
-
import { MentionDefinition as Mention } from '../mention';
|
3
|
-
import { EmojiDefinition as Emoji } from '../emoji';
|
4
|
-
import { InlineExtensionDefinition } from '../inline-extension';
|
5
|
-
import { DateDefinition as Date } from '../date';
|
6
|
-
import { PlaceholderDefinition as Placeholder } from '../placeholder';
|
7
|
-
import { InlineCardDefinition as InlineCard } from '../inline-card';
|
8
|
-
import { StatusDefinition as Status } from '../status';
|
9
|
-
import { TextDefinition as Text } from '../text';
|
10
|
-
import { MarksObject } from './mark';
|
11
|
-
import { AnnotationMarkDefinition as Annotation, CodeDefinition as Code, EmDefinition as Em, LinkDefinition as Link, StrikeDefinition as Strike, StrongDefinition as Strong, SubSupDefinition as SubSup, TextColorDefinition as TextColor, UnderlineDefinition as Underline } from '../../marks';
|
12
|
-
import { MediaInlineDefinition } from '../media-inline';
|
13
|
-
/**
|
14
|
-
* @name formatted_text_inline_node
|
15
|
-
*/
|
16
|
-
export type InlineFormattedText = Text & MarksObject<Link | Em | Strong | Strike | SubSup | Underline | TextColor | Annotation>;
|
17
|
-
/**
|
18
|
-
* @name link_text_inline_node
|
19
|
-
*/
|
20
|
-
export type InlineLinkText = Text & MarksObject<Link>;
|
21
|
-
/**
|
22
|
-
* @name code_inline_node
|
23
|
-
*/
|
24
|
-
export type InlineCode = Text & MarksObject<Code | Link | Annotation>;
|
25
|
-
/**
|
26
|
-
* @name atomic_inline_node
|
27
|
-
*/
|
28
|
-
export type InlineAtomic = HardBreak | Mention | Emoji | InlineExtensionDefinition | Date | Placeholder | InlineCard | Status | MediaInlineDefinition;
|
29
|
-
/**
|
30
|
-
* @name inline_node
|
31
|
-
*/
|
32
|
-
export type Inline = InlineFormattedText | InlineCode | InlineAtomic;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { ParagraphDefinition as Paragraph } from '../paragraph';
|
2
|
-
import { MediaSingleDefinition as MediaSingle } from '../media-single';
|
3
|
-
import { CodeBlockDefinition as CodeBlock } from '../code-block';
|
4
|
-
export interface ListItemArray extends Array<Paragraph | OrderedListDefinition | BulletListDefinition | MediaSingle | CodeBlock> {
|
5
|
-
0: Paragraph | MediaSingle | CodeBlock;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* @name listItem_node
|
9
|
-
*/
|
10
|
-
export interface ListItemDefinition {
|
11
|
-
type: 'listItem';
|
12
|
-
/**
|
13
|
-
* @minItems 1
|
14
|
-
* @allowUnsupportedBlock true
|
15
|
-
*/
|
16
|
-
content: ListItemArray;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* @name bulletList_node
|
20
|
-
*/
|
21
|
-
export interface BulletListDefinition {
|
22
|
-
type: 'bulletList';
|
23
|
-
/**
|
24
|
-
* @minItems 1
|
25
|
-
*/
|
26
|
-
content: Array<ListItemDefinition>;
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* @name orderedList_node
|
30
|
-
*/
|
31
|
-
export interface OrderedListDefinition {
|
32
|
-
type: 'orderedList';
|
33
|
-
/**
|
34
|
-
* @minItems 1
|
35
|
-
*/
|
36
|
-
content: Array<ListItemDefinition>;
|
37
|
-
attrs?: {
|
38
|
-
/**
|
39
|
-
* @minimum 0
|
40
|
-
*/
|
41
|
-
order?: number;
|
42
|
-
};
|
43
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { PanelDefinition as Panel } from '../panel';
|
2
|
-
import { ParagraphDefinition as Paragraph } from '../paragraph';
|
3
|
-
import { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
4
|
-
import { OrderedListDefinition as OrderedList } from '../types/list';
|
5
|
-
import { BulletListDefinition as BulletList } from '../types/list';
|
6
|
-
import { RuleDefinition as Rule } from '../rule';
|
7
|
-
import { HeadingDefinition as Heading } from '../heading';
|
8
|
-
import { CodeBlockDefinition as CodeBlock } from '../code-block';
|
9
|
-
import { MediaGroupDefinition as MediaGroup } from '../media-group';
|
10
|
-
import { MediaSingleDefinition as MediaSingle } from '../media-single';
|
11
|
-
import { DecisionListDefinition as DecisionList } from '../decision-list';
|
12
|
-
import { TaskListDefinition as TaskList } from '../task-list';
|
13
|
-
import { TableDefinition as Table } from '../tableNodes';
|
14
|
-
import { ExtensionDefinition as Extension } from '../extension';
|
15
|
-
import { BlockCardDefinition as BlockCard } from '../block-card';
|
16
|
-
import { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
17
|
-
/**
|
18
|
-
* @name non_nestable_block_content
|
19
|
-
*/
|
20
|
-
export type NonNestableBlockContent = Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
export type Layout = 'wrap-right' | 'center' | 'wrap-left' | 'wide' | 'full-width' | 'align-end' | 'align-start';
|
2
|
-
export interface RichMediaAttributes {
|
3
|
-
/**
|
4
|
-
* @minimum 0
|
5
|
-
* @maximum 100
|
6
|
-
*/
|
7
|
-
width?: number;
|
8
|
-
layout: Layout;
|
9
|
-
}
|
10
|
-
export interface OptionalRichMediaAttributes {
|
11
|
-
width?: number;
|
12
|
-
layout?: Layout;
|
13
|
-
}
|
14
|
-
interface DefaultMediaAttributes extends RichMediaAttributes {
|
15
|
-
/**
|
16
|
-
* @stage 0
|
17
|
-
* @description optional widthType attribute for media with percentage layout
|
18
|
-
*/
|
19
|
-
widthType?: 'percentage';
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* @stage 0
|
23
|
-
* @description The widthType attribute is used to support fixed with media single
|
24
|
-
*/
|
25
|
-
interface FixedLayoutMediaAttributes {
|
26
|
-
/**
|
27
|
-
* @minimum 0
|
28
|
-
*/
|
29
|
-
width: number;
|
30
|
-
widthType: 'pixel';
|
31
|
-
layout: Layout;
|
32
|
-
}
|
33
|
-
export declare enum WidthType {
|
34
|
-
PIXEL = "pixel",
|
35
|
-
PERCENTAGE = "percentage"
|
36
|
-
}
|
37
|
-
export type ExtendedMediaAttributes = DefaultMediaAttributes | FixedLayoutMediaAttributes;
|
38
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const unsupportedNodeTypesForMediaCards: Set<string>;
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { Step, StepResult, StepMap, ReplaceStep, Mappable } from '@atlaskit/editor-prosemirror/transform';
|
3
|
-
export declare const analyticsStepType = "atlaskit-analytics";
|
4
|
-
export declare const analyticsInvertStepType = "atlaskit-analytics-invert";
|
5
|
-
export interface AnalyticsPayload {
|
6
|
-
action: string;
|
7
|
-
actionSubject: string;
|
8
|
-
actionSubjectId?: string | null;
|
9
|
-
attributes?: Record<string, any>;
|
10
|
-
eventType: string;
|
11
|
-
}
|
12
|
-
export interface AnalyticsWithChannel<P extends AnalyticsPayload> {
|
13
|
-
payload: P;
|
14
|
-
channel: string;
|
15
|
-
}
|
16
|
-
declare enum HISTORY_ACTIONS {
|
17
|
-
UNDID = "undid",
|
18
|
-
REDID = "redid"
|
19
|
-
}
|
20
|
-
interface UndoAnalyticsEventPayload {
|
21
|
-
action: HISTORY_ACTIONS.UNDID;
|
22
|
-
actionSubject: string;
|
23
|
-
actionSubjectId?: string;
|
24
|
-
attributes?: Record<string, any>;
|
25
|
-
eventType: string;
|
26
|
-
}
|
27
|
-
interface RedoAnalyticsEventPayload {
|
28
|
-
action: HISTORY_ACTIONS.REDID;
|
29
|
-
actionSubject: string;
|
30
|
-
actionSubjectId?: string;
|
31
|
-
attributes?: Record<string, any>;
|
32
|
-
eventType: string;
|
33
|
-
}
|
34
|
-
type AnalyticsInvertPayload = UndoAnalyticsEventPayload | RedoAnalyticsEventPayload;
|
35
|
-
export type AnalyticsInvertStep = AnalyticsStep<AnalyticsInvertPayload>;
|
36
|
-
/**
|
37
|
-
* Custom Prosemirror Step to fire our GAS V3 analytics events
|
38
|
-
* Using a Step means that it will work with prosemirror-history and we get
|
39
|
-
* undo/redo events for free
|
40
|
-
*/
|
41
|
-
export declare class AnalyticsStep<P extends AnalyticsPayload> extends Step {
|
42
|
-
analyticsEvents: AnalyticsWithChannel<P>[];
|
43
|
-
pos?: number;
|
44
|
-
private actionsToIgnore;
|
45
|
-
constructor(analyticsEvents: AnalyticsWithChannel<P>[], actionsToIgnore?: string[], pos?: number);
|
46
|
-
/**
|
47
|
-
* Generate new undo/redo analytics event when step is inverted
|
48
|
-
*/
|
49
|
-
invert(): AnalyticsStep<AnalyticsInvertPayload>;
|
50
|
-
apply(doc: PMNode): StepResult;
|
51
|
-
map(mapping: Mappable): AnalyticsStep<P>;
|
52
|
-
getMap(): StepMap;
|
53
|
-
merge(other: Step): AnalyticsStep<P> | null;
|
54
|
-
toJSON(): {
|
55
|
-
stepType: string;
|
56
|
-
};
|
57
|
-
static fromJSON(): ReplaceStep;
|
58
|
-
}
|
59
|
-
export {};
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { ReplaceStep, Step, StepMap, StepResult, Mappable } from '@atlaskit/editor-prosemirror/transform';
|
3
|
-
export declare const stepType = "editor-linking-meta";
|
4
|
-
export declare const invertStepType = "editor-linking-meta-invert";
|
5
|
-
export type LinkStepMetadata = {
|
6
|
-
/**
|
7
|
-
* Editor action performed
|
8
|
-
*/
|
9
|
-
action?: string;
|
10
|
-
/**
|
11
|
-
* Editor input method that triggered the transaction
|
12
|
-
*/
|
13
|
-
inputMethod?: string;
|
14
|
-
/**
|
15
|
-
* The applicable card action for this step
|
16
|
-
* if is RESOLVE then the undo/redo steps should be considered "updates" of a link
|
17
|
-
*/
|
18
|
-
cardAction?: 'RESOLVE';
|
19
|
-
/**
|
20
|
-
* Source UI that tiggered this step, if available/applicable
|
21
|
-
*/
|
22
|
-
sourceEvent?: unknown;
|
23
|
-
};
|
24
|
-
/**
|
25
|
-
* Custom Prosemirror Step to attach metadata about user interactions with links
|
26
|
-
* Using a Step means that it will work with prosemirror-history and we get utilise when
|
27
|
-
* firing events on history change
|
28
|
-
*/
|
29
|
-
export declare class LinkMetaStep extends Step {
|
30
|
-
private pos;
|
31
|
-
private metadata;
|
32
|
-
private isInverted;
|
33
|
-
constructor(pos: number | null, metadata: LinkStepMetadata, isInverted?: boolean);
|
34
|
-
getMetadata(): LinkStepMetadata;
|
35
|
-
/**
|
36
|
-
* Generate new undo/redo analytics event when step is inverted
|
37
|
-
*/
|
38
|
-
invert(): LinkMetaStep;
|
39
|
-
apply(doc: PMNode): StepResult;
|
40
|
-
map(mapping: Mappable): LinkMetaStep;
|
41
|
-
getMap(): StepMap;
|
42
|
-
merge(): null;
|
43
|
-
toJSON(): {
|
44
|
-
stepType: string;
|
45
|
-
from: number;
|
46
|
-
to: number;
|
47
|
-
};
|
48
|
-
static fromJSON<S extends Schema = any>(_: S, __: {
|
49
|
-
[key: string]: any;
|
50
|
-
}): ReplaceStep;
|
51
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Step, StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
2
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
3
|
-
type Options = {
|
4
|
-
nextDocument: PMNode;
|
5
|
-
inverted?: boolean;
|
6
|
-
};
|
7
|
-
export declare const overrideDocumentStepType = "override-document";
|
8
|
-
export declare class OverrideDocumentStep extends Step {
|
9
|
-
inverted: boolean;
|
10
|
-
private nextDocument;
|
11
|
-
private oldDocumentSize;
|
12
|
-
constructor(opts: Options);
|
13
|
-
apply(doc: PMNode): StepResult;
|
14
|
-
map(): OverrideDocumentStep;
|
15
|
-
getMap(): StepMap;
|
16
|
-
invert(doc: PMNode): OverrideDocumentStep;
|
17
|
-
toJSON(): OverrideDocumentStepJSON;
|
18
|
-
static fromJSON(schema: Schema, json: OverrideDocumentStepJSON): OverrideDocumentStep;
|
19
|
-
}
|
20
|
-
export type OverrideDocumentStepJSON = {
|
21
|
-
stepType: 'override-document';
|
22
|
-
inverted: boolean;
|
23
|
-
nextDocument: {
|
24
|
-
[key: string]: any;
|
25
|
-
};
|
26
|
-
};
|
27
|
-
export {};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { Mappable, Step, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
2
|
-
import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
3
|
-
/**
|
4
|
-
* For more context on what this is about:
|
5
|
-
* @see https://discuss.prosemirror.net/t/preventing-image-placeholder-replacement-from-being-undone/1394
|
6
|
-
*/
|
7
|
-
export declare class SetAttrsStep extends Step {
|
8
|
-
pos: number;
|
9
|
-
attrs: object;
|
10
|
-
constructor(pos: number, attrs: object);
|
11
|
-
apply(doc: ProseMirrorNode): StepResult;
|
12
|
-
invert(doc: ProseMirrorNode): SetAttrsStep;
|
13
|
-
map(mapping: Mappable): SetAttrsStep | null;
|
14
|
-
toJSON(): {
|
15
|
-
stepType: string;
|
16
|
-
pos: number;
|
17
|
-
attrs: object;
|
18
|
-
};
|
19
|
-
static fromJSON(_schema: Schema, json: {
|
20
|
-
pos?: number;
|
21
|
-
attrs: object;
|
22
|
-
}): SetAttrsStep;
|
23
|
-
}
|