@atlaskit/adf-schema 28.1.1 → 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 +12 -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/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
- 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,9 +0,0 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
|
2
|
-
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
|
3
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
|
-
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
5
|
-
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, } from './marks';
|
6
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, BorderMarkAttributes, BorderMarkDefinition, } from './marks';
|
7
|
-
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
8
|
-
export { inlineNodes } from './inline-nodes';
|
9
|
-
export { sanitizeNodes, createSchema } from './create-schema';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const inlineNodes: Set<string>;
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
4
|
-
**/
|
5
|
-
export interface JIRASchemaConfig {
|
6
|
-
allowLists?: boolean;
|
7
|
-
allowMentions?: boolean;
|
8
|
-
allowEmojis?: boolean;
|
9
|
-
allowLinks?: boolean;
|
10
|
-
allowAdvancedTextFormatting?: boolean;
|
11
|
-
allowCodeBlock?: boolean;
|
12
|
-
allowBlockQuote?: boolean;
|
13
|
-
allowSubSup?: boolean;
|
14
|
-
allowMedia?: boolean;
|
15
|
-
allowTextColor?: boolean;
|
16
|
-
allowTables?: boolean;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
20
|
-
**/
|
21
|
-
export default function makeSchema(config: JIRASchemaConfig): Schema<string, string>;
|
22
|
-
/**
|
23
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
24
|
-
**/
|
25
|
-
export declare function isSchemaWithLists(schema: Schema): boolean;
|
26
|
-
/**
|
27
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
28
|
-
**/
|
29
|
-
export declare function isSchemaWithMentions(schema: Schema): boolean;
|
30
|
-
/**
|
31
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
32
|
-
**/
|
33
|
-
export declare function isSchemaWithEmojis(schema: Schema): boolean;
|
34
|
-
/**
|
35
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
36
|
-
**/
|
37
|
-
export declare function isSchemaWithLinks(schema: Schema): boolean;
|
38
|
-
/**
|
39
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
40
|
-
**/
|
41
|
-
export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema): boolean;
|
42
|
-
/**
|
43
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
44
|
-
**/
|
45
|
-
export declare function isSchemaWithSubSupMark(schema: Schema): boolean;
|
46
|
-
/**
|
47
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
48
|
-
**/
|
49
|
-
export declare function isSchemaWithCodeBlock(schema: Schema): boolean;
|
50
|
-
/**
|
51
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
52
|
-
**/
|
53
|
-
export declare function isSchemaWithBlockQuotes(schema: Schema): boolean;
|
54
|
-
/**
|
55
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
56
|
-
**/
|
57
|
-
export declare function isSchemaWithMedia(schema: Schema): boolean;
|
58
|
-
/**
|
59
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
60
|
-
**/
|
61
|
-
export declare function isSchemaWithTextColor(schema: Schema): boolean;
|
62
|
-
/**
|
63
|
-
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
64
|
-
**/
|
65
|
-
export declare function isSchemaWithTables(schema: Schema): boolean;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/** TODO: Flip these positions for RTL */
|
3
|
-
export declare const alignmentPositionMap: {
|
4
|
-
[key: string]: string;
|
5
|
-
};
|
6
|
-
export interface AlignmentAttributes {
|
7
|
-
align: 'center' | 'end';
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @name alignment_mark
|
11
|
-
*/
|
12
|
-
export interface AlignmentMarkDefinition {
|
13
|
-
type: 'alignment';
|
14
|
-
attrs: AlignmentAttributes;
|
15
|
-
}
|
16
|
-
export declare const alignment: MarkSpec;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @name annotation_mark
|
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 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 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
|
-
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 {};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export type BorderMarkAttributes = {
|
3
|
-
/**
|
4
|
-
* @minimum 1
|
5
|
-
* @maximum 3
|
6
|
-
*/
|
7
|
-
size: number;
|
8
|
-
/**
|
9
|
-
* @pattern "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$"
|
10
|
-
*/
|
11
|
-
color: string;
|
12
|
-
};
|
13
|
-
/**
|
14
|
-
* @name border_mark
|
15
|
-
* @description This mark adds decoration to an element, and any element decorated with it will also have a border style.
|
16
|
-
*/
|
17
|
-
export interface BorderMarkDefinition {
|
18
|
-
type: 'border';
|
19
|
-
attrs: BorderMarkAttributes;
|
20
|
-
}
|
21
|
-
export type BorderColorKey = 'Subtle gray' | 'Gray' | 'Bold gray';
|
22
|
-
export declare const borderColorPalette: Map<string, BorderColorKey>;
|
23
|
-
export declare const border: MarkSpec;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export type BreakoutMarkAttrs = {
|
3
|
-
mode: 'wide' | 'full-width';
|
4
|
-
};
|
5
|
-
/**
|
6
|
-
* @name breakout_mark
|
7
|
-
*/
|
8
|
-
export interface BreakoutMarkDefinition {
|
9
|
-
type: 'breakout';
|
10
|
-
attrs: BreakoutMarkAttrs;
|
11
|
-
}
|
12
|
-
export declare const breakout: MarkSpec;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @name inline_comment_marker
|
4
|
-
* @description This temporary mark represents a Confluence-backed inline comment that wraps a piece of text. It will be replaced with a cross-product inline comment solution at later date.
|
5
|
-
*/
|
6
|
-
export interface ConfluenceInlineCommentDefinition {
|
7
|
-
type: 'confluenceInlineComment';
|
8
|
-
attrs: {
|
9
|
-
reference: string;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
export declare const confluenceInlineComment: MarkSpec;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* This annotation is purely for reference, & does _nothing_ given annotating
|
4
|
-
* `minLength` on an array of strings is not supported with our schema+spec
|
5
|
-
* generator.
|
6
|
-
*
|
7
|
-
* We're keeping it to signal that data consumer `sources` shouldn't be empty
|
8
|
-
* strings
|
9
|
-
*
|
10
|
-
* // @minLength 1
|
11
|
-
*/
|
12
|
-
type DataConsumerSource = string;
|
13
|
-
export interface DataConsumerAttributes {
|
14
|
-
/**
|
15
|
-
* @minItems 1
|
16
|
-
*/
|
17
|
-
sources: Array<DataConsumerSource>;
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* @name dataConsumer_mark
|
21
|
-
* @description This mark is used for metadata surrounding a node consuming data
|
22
|
-
* from a given source node
|
23
|
-
*/
|
24
|
-
export interface DataConsumerDefinition {
|
25
|
-
type: 'dataConsumer';
|
26
|
-
attrs: DataConsumerAttributes;
|
27
|
-
}
|
28
|
-
export interface DataConsumerMark extends Mark {
|
29
|
-
attrs: DataConsumerAttributes;
|
30
|
-
}
|
31
|
-
export declare const dataConsumer: MarkSpec;
|
32
|
-
/**
|
33
|
-
* We want to ensure any "invalid ADF" doesn't get serialised, but the entire
|
34
|
-
* mark itself is not valid without a non-empty `sources`.
|
35
|
-
*
|
36
|
-
* We _almost could_ simply return `null` if sources length is < 0 & would fit
|
37
|
-
* the type signature of prosemirror-model's `fragment` but not `mark`'s toJSON.
|
38
|
-
*
|
39
|
-
* So we'll leave any extra transformation checks in
|
40
|
-
* `editor-json-transformer`(?)
|
41
|
-
*/
|
42
|
-
export declare const toJSON: (mark: Mark) => {
|
43
|
-
type: string;
|
44
|
-
attrs: import("prosemirror-model").Attrs;
|
45
|
-
};
|
46
|
-
export {};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export type LocalId = string;
|
3
|
-
export interface FragmentAttributes {
|
4
|
-
/**
|
5
|
-
* @minLength 1
|
6
|
-
*/
|
7
|
-
localId: LocalId;
|
8
|
-
name?: string;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* @name fragment_mark
|
12
|
-
* @description Indicates that the elements decorated with this mark belong to a "fragment" entity, which represents a collection of ADF nodes.
|
13
|
-
* This entity can be referred to later by its `localId` attribute.
|
14
|
-
*/
|
15
|
-
export interface FragmentDefinition {
|
16
|
-
type: 'fragment';
|
17
|
-
attrs: FragmentAttributes;
|
18
|
-
}
|
19
|
-
export interface FragmentMark extends Mark {
|
20
|
-
attrs: FragmentAttributes;
|
21
|
-
}
|
22
|
-
export declare const fragment: MarkSpec;
|
23
|
-
export declare const toJSON: (mark: Mark) => {
|
24
|
-
type: string;
|
25
|
-
attrs: {
|
26
|
-
name?: any;
|
27
|
-
localId: any;
|
28
|
-
};
|
29
|
-
};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export interface IndentationMarkAttributes {
|
3
|
-
/**
|
4
|
-
* @minimum 1
|
5
|
-
* @maximum 6
|
6
|
-
*/
|
7
|
-
level: number;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @name indentation_mark
|
11
|
-
*/
|
12
|
-
export interface IndentationMarkDefinition {
|
13
|
-
type: 'indentation';
|
14
|
-
attrs: IndentationMarkAttributes;
|
15
|
-
}
|
16
|
-
export declare const indentation: MarkSpec;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export { em } from './em';
|
2
|
-
export type { EmDefinition } from './em';
|
3
|
-
export { code } from './code';
|
4
|
-
export type { CodeDefinition } from './code';
|
5
|
-
export { strike } from './strike';
|
6
|
-
export type { StrikeDefinition } from './strike';
|
7
|
-
export { strong } from './strong';
|
8
|
-
export type { StrongDefinition } from './strong';
|
9
|
-
export { underline } from './underline';
|
10
|
-
export type { UnderlineDefinition } from './underline';
|
11
|
-
export { link, toJSON as linkToJSON } from './link';
|
12
|
-
export type { LinkAttributes, LinkDefinition } from './link';
|
13
|
-
export { typeAheadQuery } from './type-ahead-query';
|
14
|
-
export { subsup } from './subsup';
|
15
|
-
export type { SubSupDefinition, SubSupAttributes } from './subsup';
|
16
|
-
export { textColor, colorPalette, colorPaletteExtended } from './text-color';
|
17
|
-
export type { TextColorDefinition, TextColorAttributes } from './text-color';
|
18
|
-
export { confluenceInlineComment } from './confluence-inline-comment';
|
19
|
-
export { breakout } from './breakout';
|
20
|
-
export type { BreakoutMarkAttrs, BreakoutMarkDefinition } from './breakout';
|
21
|
-
export { alignment, alignmentPositionMap } from './alignment';
|
22
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition } from './alignment';
|
23
|
-
export { indentation } from './indentation';
|
24
|
-
export type { IndentationMarkAttributes, IndentationMarkDefinition, } from './indentation';
|
25
|
-
export { annotation, AnnotationMarkStates, buildDataAttributes as buildAnnotationMarkDataAttributes, AnnotationTypes, } from './annotation';
|
26
|
-
export type { AnnotationMarkDefinition, AnnotationMarkAttributes, AnnotationId, AnnotationDataAttributes, } from './annotation';
|
27
|
-
export { unsupportedMark } from './unsupported-mark';
|
28
|
-
export { unsupportedNodeAttribute } from './unsupported-node-attributes';
|
29
|
-
export type { DataConsumerAttributes, DataConsumerDefinition, } from './data-consumer';
|
30
|
-
export { dataConsumer, toJSON as dataConsumerToJSON } from './data-consumer';
|
31
|
-
export type { FragmentAttributes, FragmentDefinition, LocalId, } from './fragment';
|
32
|
-
export { fragment, toJSON as fragmentToJSON } from './fragment';
|
33
|
-
export { border, borderColorPalette } from './border';
|
34
|
-
export type { BorderMarkAttributes, BorderMarkDefinition } from './border';
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export interface ConfluenceLinkMetadata {
|
3
|
-
linkType: string;
|
4
|
-
versionAtSave?: string | null;
|
5
|
-
fileName?: string | null;
|
6
|
-
spaceKey?: string | null;
|
7
|
-
contentTitle?: string | null;
|
8
|
-
isRenamedTitle?: boolean;
|
9
|
-
anchorName?: string | null;
|
10
|
-
contentId?: string | null;
|
11
|
-
container?: ConfluenceLinkMetadata;
|
12
|
-
}
|
13
|
-
export interface LinkAttributes {
|
14
|
-
/**
|
15
|
-
* @validatorFn safeUrl
|
16
|
-
*/
|
17
|
-
href: string;
|
18
|
-
title?: string;
|
19
|
-
id?: string;
|
20
|
-
collection?: string;
|
21
|
-
occurrenceKey?: string;
|
22
|
-
__confluenceMetadata?: ConfluenceLinkMetadata;
|
23
|
-
}
|
24
|
-
/**
|
25
|
-
* @name link_mark
|
26
|
-
*/
|
27
|
-
export interface LinkDefinition {
|
28
|
-
type: 'link';
|
29
|
-
attrs: LinkAttributes;
|
30
|
-
}
|
31
|
-
export declare const link: MarkSpec;
|
32
|
-
export declare const toJSON: (mark: Mark) => {
|
33
|
-
type: string;
|
34
|
-
attrs: Record<string, string>;
|
35
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export interface SubSupAttributes {
|
3
|
-
type: 'sub' | 'sup';
|
4
|
-
}
|
5
|
-
/**
|
6
|
-
* @name subsup_mark
|
7
|
-
*/
|
8
|
-
export interface SubSupDefinition {
|
9
|
-
type: 'subsup';
|
10
|
-
attrs: SubSupAttributes;
|
11
|
-
}
|
12
|
-
export interface SubSupMark extends Mark {
|
13
|
-
attrs: SubSupAttributes;
|
14
|
-
}
|
15
|
-
export declare const subsup: MarkSpec;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
export interface TextColorAttributes {
|
3
|
-
/**
|
4
|
-
* @pattern "^#[0-9a-fA-F]{6}$"
|
5
|
-
*/
|
6
|
-
color: string;
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* @name textColor_mark
|
10
|
-
*/
|
11
|
-
export interface TextColorDefinition {
|
12
|
-
type: 'textColor';
|
13
|
-
attrs: TextColorAttributes;
|
14
|
-
}
|
15
|
-
export interface TextColorMark extends Mark {
|
16
|
-
attrs: TextColorAttributes;
|
17
|
-
}
|
18
|
-
export type TextColorKey = 'Light gray' | 'Purple' | 'Teal' | 'Green' | 'Red' | 'Orange' | 'Dark gray' | 'Blue' | 'Yellow' | 'Dark blue' | 'Dark teal' | 'Dark green' | 'Dark red' | 'Dark purple' | 'White' | 'Light blue' | 'Light teal' | 'Light green' | 'Light yellow' | 'Light red' | 'Light purple';
|
19
|
-
export declare const colorPalette: Map<string, TextColorKey>;
|
20
|
-
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
21
|
-
export declare const colorPaletteExtended: Map<string, TextColorKey>;
|
22
|
-
export declare const textColor: MarkSpec;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { OptionalRichMediaAttributes } from './types/rich-media-common';
|
3
|
-
export interface UrlType {
|
4
|
-
/**
|
5
|
-
* @validatorFn safeUrl
|
6
|
-
*/
|
7
|
-
url: string;
|
8
|
-
}
|
9
|
-
export interface DataType {
|
10
|
-
/**
|
11
|
-
* @additionalProperties true
|
12
|
-
*/
|
13
|
-
data: object;
|
14
|
-
}
|
15
|
-
export interface DatasourceAttributeProperties {
|
16
|
-
id: string;
|
17
|
-
parameters: object;
|
18
|
-
/**
|
19
|
-
* @minItems 1
|
20
|
-
*/
|
21
|
-
views: {
|
22
|
-
type: string;
|
23
|
-
properties?: object;
|
24
|
-
}[];
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* @stage 0
|
28
|
-
*/
|
29
|
-
export interface DatasourceAttributes extends OptionalRichMediaAttributes {
|
30
|
-
/**
|
31
|
-
* @validatorFn safeUrl
|
32
|
-
*/
|
33
|
-
url?: string;
|
34
|
-
datasource: DatasourceAttributeProperties;
|
35
|
-
}
|
36
|
-
export type CardAttributes = UrlType | DataType;
|
37
|
-
/**
|
38
|
-
* @name blockCard_node
|
39
|
-
*/
|
40
|
-
export interface BlockCardDefinition {
|
41
|
-
type: 'blockCard';
|
42
|
-
attrs: DatasourceAttributes | CardAttributes;
|
43
|
-
}
|
44
|
-
export declare const blockCard: NodeSpec;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { ParagraphDefinition as Paragraph } from './paragraph';
|
3
|
-
/**
|
4
|
-
* @name blockquote_node
|
5
|
-
*/
|
6
|
-
export interface BlockQuoteDefinition {
|
7
|
-
type: 'blockquote';
|
8
|
-
/**
|
9
|
-
* @minItems 1
|
10
|
-
* @allowUnsupportedBlock true
|
11
|
-
*/
|
12
|
-
content: Array<Paragraph>;
|
13
|
-
}
|
14
|
-
export declare const blockquote: NodeSpec;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { ExtensionAttributes } from './types/extensions';
|
3
|
-
import { MarksObject } from './types/mark';
|
4
|
-
import { NonNestableBlockContent } from './types/non-nestable-block-content';
|
5
|
-
import { DataConsumerDefinition } from '../marks/data-consumer';
|
6
|
-
import { FragmentDefinition } from '../marks/fragment';
|
7
|
-
/**
|
8
|
-
* @name bodiedExtension_node
|
9
|
-
*/
|
10
|
-
export interface BodiedExtensionBaseDefinition {
|
11
|
-
type: 'bodiedExtension';
|
12
|
-
attrs: ExtensionAttributes;
|
13
|
-
marks?: Array<any>;
|
14
|
-
/**
|
15
|
-
* @minItems 1
|
16
|
-
* @allowUnsupportedBlock true
|
17
|
-
*/
|
18
|
-
content: Array<NonNestableBlockContent>;
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* @name bodiedExtension_with_marks_node
|
22
|
-
*/
|
23
|
-
export type BodiedExtensionDefinition = BodiedExtensionBaseDefinition & MarksObject<DataConsumerDefinition | FragmentDefinition>;
|
24
|
-
export declare const bodiedExtension: NodeSpec;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { InlineFormattedText, InlineCode } from './types/inline-content';
|
3
|
-
import { HardBreakDefinition as HardBreak } from './hard-break';
|
4
|
-
import { MentionDefinition as Mention } from './mention';
|
5
|
-
import { EmojiDefinition as Emoji } from './emoji';
|
6
|
-
import { DateDefinition as Date } from './date';
|
7
|
-
import { PlaceholderDefinition as Placeholder } from './placeholder';
|
8
|
-
import { InlineCardDefinition as InlineCard } from './inline-card';
|
9
|
-
import { StatusDefinition as Status } from './status';
|
10
|
-
/**
|
11
|
-
* @name caption_node
|
12
|
-
*/
|
13
|
-
export interface CaptionDefinition {
|
14
|
-
type: 'caption';
|
15
|
-
/**
|
16
|
-
* @minItems 0
|
17
|
-
* @allowUnsupportedInline true
|
18
|
-
*/
|
19
|
-
content: Array<InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | Date | Placeholder | InlineCard | Status>;
|
20
|
-
}
|
21
|
-
export declare const caption: NodeSpec;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { TextDefinition as Text } from './text';
|
3
|
-
import { BreakoutMarkDefinition } from '../marks/breakout';
|
4
|
-
import { MarksObject, NoMark } from './types/mark';
|
5
|
-
/**
|
6
|
-
* @name codeBlock_node
|
7
|
-
*/
|
8
|
-
export type CodeBlockBaseDefinition = {
|
9
|
-
type: 'codeBlock';
|
10
|
-
/**
|
11
|
-
* @allowUnsupportedInline true
|
12
|
-
*/
|
13
|
-
content?: Array<Text & NoMark>;
|
14
|
-
marks?: Array<any>;
|
15
|
-
attrs?: CodeBlockAttrs;
|
16
|
-
};
|
17
|
-
export type CodeBlockAttrs = {
|
18
|
-
language?: string;
|
19
|
-
};
|
20
|
-
/**
|
21
|
-
* @name codeBlock_with_no_marks_node
|
22
|
-
*/
|
23
|
-
export type CodeBlockDefinition = CodeBlockBaseDefinition & NoMark;
|
24
|
-
/**
|
25
|
-
* @name codeBlock_with_marks_node
|
26
|
-
*/
|
27
|
-
export type CodeBlockWithMarksDefinition = CodeBlockBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28
|
-
export declare const codeBlock: NodeSpec;
|
29
|
-
export declare const toJSON: (node: PMNode) => {
|
30
|
-
attrs: Record<string, any>;
|
31
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
/**
|
3
|
-
* @name date_node
|
4
|
-
*/
|
5
|
-
export interface DateDefinition {
|
6
|
-
type: 'date';
|
7
|
-
attrs: {
|
8
|
-
/**
|
9
|
-
* @minLength 1
|
10
|
-
*/
|
11
|
-
timestamp: string;
|
12
|
-
};
|
13
|
-
}
|
14
|
-
export declare const date: NodeSpec;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
|
-
import { Inline } from './types/inline-content';
|
3
|
-
/**
|
4
|
-
* @name decisionItem_node
|
5
|
-
*/
|
6
|
-
export interface DecisionItemDefinition {
|
7
|
-
type: 'decisionItem';
|
8
|
-
/**
|
9
|
-
* @allowUnsupportedInline true
|
10
|
-
*/
|
11
|
-
content?: Array<Inline>;
|
12
|
-
attrs: {
|
13
|
-
localId: string;
|
14
|
-
state: string;
|
15
|
-
};
|
16
|
-
}
|
17
|
-
export declare const decisionItem: NodeSpec;
|