@atlaskit/adf-schema 24.0.1 → 24.0.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 +14 -0
- package/dist/cjs/schema/marks/text-color.js +16 -2
- package/dist/cjs/schema/nodes/block-card.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/marks/text-color.js +15 -2
- package/dist/es2019/schema/nodes/block-card.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/marks/text-color.js +15 -2
- package/dist/esm/schema/nodes/block-card.js +3 -1
- package/dist/esm/version.json +1 -1
- package/package.json +8 -11
- package/report.api.md +1035 -1044
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/json-schema/index.d.ts +0 -2
- package/dist/types-ts4.0/schema/bitbucket-schema.d.ts +0 -2
- package/dist/types-ts4.0/schema/confluence-schema.d.ts +0 -3
- package/dist/types-ts4.0/schema/create-schema.d.ts +0 -32
- package/dist/types-ts4.0/schema/default-schema.d.ts +0 -7
- package/dist/types-ts4.0/schema/groups.d.ts +0 -6
- package/dist/types-ts4.0/schema/index.d.ts +0 -7
- package/dist/types-ts4.0/schema/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.0/schema/jira-schema.d.ts +0 -26
- package/dist/types-ts4.0/schema/marks/alignment.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/annotation.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/breakout.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/code.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/confluence-inline-comment.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/data-consumer.d.ts +0 -48
- package/dist/types-ts4.0/schema/marks/em.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/fragment.d.ts +0 -29
- package/dist/types-ts4.0/schema/marks/indentation.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/index.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/link.d.ts +0 -35
- package/dist/types-ts4.0/schema/marks/strike.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/strong.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/subsup.d.ts +0 -15
- package/dist/types-ts4.0/schema/marks/text-color.d.ts +0 -21
- package/dist/types-ts4.0/schema/marks/type-ahead-query.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/underline.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/unsupported-mark.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/unsupported-node-attributes.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/block-card.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/blockquote.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/bodied-extension.d.ts +0 -24
- package/dist/types-ts4.0/schema/nodes/bullet-list.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/caption.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/code-block.d.ts +0 -31
- package/dist/types-ts4.0/schema/nodes/confluence-jira-issue.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/date.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/decision-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/decision-list.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/doc.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/embed-card.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/emoji.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/expand.d.ts +0 -33
- package/dist/types-ts4.0/schema/nodes/extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/hard-break.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/heading.d.ts +0 -36
- package/dist/types-ts4.0/schema/nodes/image.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/index.d.ts +0 -93
- package/dist/types-ts4.0/schema/nodes/inline-card.d.ts +0 -10
- package/dist/types-ts4.0/schema/nodes/inline-extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/layout-column.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/layout-section.d.ts +0 -44
- package/dist/types-ts4.0/schema/nodes/list-item.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/media-group.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/media-inline.d.ts +0 -16
- package/dist/types-ts4.0/schema/nodes/media-single.d.ts +0 -61
- package/dist/types-ts4.0/schema/nodes/media.d.ts +0 -60
- package/dist/types-ts4.0/schema/nodes/mention.d.ts +0 -26
- package/dist/types-ts4.0/schema/nodes/nested-expand.d.ts +0 -27
- package/dist/types-ts4.0/schema/nodes/ordered-list.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/panel.d.ts +0 -38
- package/dist/types-ts4.0/schema/nodes/paragraph.d.ts +0 -37
- package/dist/types-ts4.0/schema/nodes/placeholder.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/rule.d.ts +0 -8
- package/dist/types-ts4.0/schema/nodes/status.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/tableNodes.d.ts +0 -113
- package/dist/types-ts4.0/schema/nodes/task-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/task-list.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/text.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/block-content.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/types/extensions.d.ts +0 -34
- package/dist/types-ts4.0/schema/nodes/types/inline-content.d.ts +0 -32
- package/dist/types-ts4.0/schema/nodes/types/mark.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/non-nestable-block-content.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/types/rich-media-common.d.ts +0 -9
- package/dist/types-ts4.0/schema/nodes/unknown-block.d.ts +0 -3
- package/dist/types-ts4.0/schema/nodes/unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/unsupported.d.ts +0 -1
- package/dist/types-ts4.0/steps/analytics.d.ts +0 -59
- package/dist/types-ts4.0/steps/set-attrs.d.ts +0 -23
- package/dist/types-ts4.0/steps/table/add-column.d.ts +0 -88
- package/dist/types-ts4.0/steps/table/constants.d.ts +0 -4
- package/dist/types-ts4.0/steps/table/sort-column.d.ts +0 -18
- package/dist/types-ts4.0/steps/table/types.d.ts +0 -39
- package/dist/types-ts4.0/steps/table/utils/cell-step.d.ts +0 -51
- package/dist/types-ts4.0/steps/table/utils/cells-at-column.d.ts +0 -20
- package/dist/types-ts4.0/steps/table/utils/find-column.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/get-table-rect-from-doc.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/side-effects/rows.d.ts +0 -25
- package/dist/types-ts4.0/steps/table/utils/side-effects/side-effects.d.ts +0 -15
- package/dist/types-ts4.0/steps/table/utils/side-effects/table.d.ts +0 -16
- package/dist/types-ts4.0/steps/table/utils/side-effects/types.d.ts +0 -33
- package/dist/types-ts4.0/steps/table/utils/table-map.d.ts +0 -6
- package/dist/types-ts4.0/steps/type-ahead.d.ts +0 -35
- package/dist/types-ts4.0/steps.d.ts +0 -8
- package/dist/types-ts4.0/utils/colors.d.ts +0 -71
- package/dist/types-ts4.0/utils/confluence/emoji.d.ts +0 -50
- package/dist/types-ts4.0/utils/extensions.d.ts +0 -3
- package/dist/types-ts4.0/utils/index.d.ts +0 -6
- package/dist/types-ts4.0/utils/parseDOM.d.ts +0 -1
- package/dist/types-ts4.0/utils/url.d.ts +0 -23
- package/dist/types-ts4.0/utils/uuid.d.ts +0 -5
@@ -1,4 +0,0 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './schema';
|
2
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, 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, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
|
3
|
-
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
|
4
|
-
export type { Match, NameToEmoji } from './utils';
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { NodeSpec, MarkSpec, Schema } from 'prosemirror-model';
|
2
|
-
/**
|
3
|
-
* Creates a schema preserving order of marks and nodes.
|
4
|
-
*/
|
5
|
-
export declare function createSchema<N extends string = string, M extends string = string>(config: SchemaConfig<N, M>): Schema<N, M>;
|
6
|
-
export declare function sanitizeNodes(nodes: {
|
7
|
-
[key: string]: NodeSpec;
|
8
|
-
}, supportedMarks: {
|
9
|
-
[key: string]: MarkSpec;
|
10
|
-
}): {
|
11
|
-
[key: string]: NodeSpec;
|
12
|
-
};
|
13
|
-
export declare function sanitizeNodeSpecContent(nodes: {
|
14
|
-
[key: string]: NodeSpec;
|
15
|
-
}, rawContent: string): string;
|
16
|
-
export interface SchemaConfig<N = string, M = string> {
|
17
|
-
nodes: N[];
|
18
|
-
customNodeSpecs?: SchemaCustomNodeSpecs;
|
19
|
-
marks?: M[];
|
20
|
-
customMarkSpecs?: SchemaCustomMarkSpecs;
|
21
|
-
}
|
22
|
-
export interface SchemaBuiltInItem {
|
23
|
-
name: string;
|
24
|
-
spec: NodeSpec | MarkSpec;
|
25
|
-
}
|
26
|
-
export interface SchemaCustomNodeSpecs {
|
27
|
-
[name: string]: NodeSpec;
|
28
|
-
}
|
29
|
-
export interface SchemaCustomMarkSpecs {
|
30
|
-
[name: string]: MarkSpec;
|
31
|
-
}
|
32
|
-
export declare const allowCustomPanel: boolean;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { SchemaConfig } from './create-schema';
|
2
|
-
declare type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'unsupportedBlock' | 'unsupportedInline';
|
3
|
-
declare type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer';
|
4
|
-
export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
|
5
|
-
export declare const getSchemaBasedOnStage: (stage?: string) => import("prosemirror-model").Schema<DefaultSchemaNodes, DefaultSchemaMarks>;
|
6
|
-
export declare const defaultSchema: import("prosemirror-model").Schema<DefaultSchemaNodes, DefaultSchemaMarks>;
|
7
|
-
export {};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export declare const FONT_STYLE = "fontStyle";
|
2
|
-
export declare const SEARCH_QUERY = "searchQuery";
|
3
|
-
export declare const LINK = "link";
|
4
|
-
export declare const COLOR = "color";
|
5
|
-
export declare const ALIGNMENT = "alignment";
|
6
|
-
export declare const INDENTATION = "indentation";
|
@@ -1,7 +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, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, 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, 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, RichMediaLayout, CellDomAttrs, } from './nodes';
|
3
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
|
4
|
-
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, } from './marks';
|
5
|
-
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
6
|
-
export { inlineNodes } from './inline-nodes';
|
7
|
-
export { sanitizeNodes, createSchema } from './create-schema';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const inlineNodes: Set<string>;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
2
|
-
export interface JIRASchemaConfig {
|
3
|
-
allowLists?: boolean;
|
4
|
-
allowMentions?: boolean;
|
5
|
-
allowEmojis?: boolean;
|
6
|
-
allowLinks?: boolean;
|
7
|
-
allowAdvancedTextFormatting?: boolean;
|
8
|
-
allowCodeBlock?: boolean;
|
9
|
-
allowBlockQuote?: boolean;
|
10
|
-
allowSubSup?: boolean;
|
11
|
-
allowMedia?: boolean;
|
12
|
-
allowTextColor?: boolean;
|
13
|
-
allowTables?: boolean;
|
14
|
-
}
|
15
|
-
export default function makeSchema(config: JIRASchemaConfig): Schema<string, string>;
|
16
|
-
export declare function isSchemaWithLists(schema: Schema): boolean;
|
17
|
-
export declare function isSchemaWithMentions(schema: Schema): boolean;
|
18
|
-
export declare function isSchemaWithEmojis(schema: Schema): boolean;
|
19
|
-
export declare function isSchemaWithLinks(schema: Schema): boolean;
|
20
|
-
export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema): boolean;
|
21
|
-
export declare function isSchemaWithSubSupMark(schema: Schema): boolean;
|
22
|
-
export declare function isSchemaWithCodeBlock(schema: Schema): boolean;
|
23
|
-
export declare function isSchemaWithBlockQuotes(schema: Schema): boolean;
|
24
|
-
export declare function isSchemaWithMedia(schema: Schema): boolean;
|
25
|
-
export declare function isSchemaWithTextColor(schema: Schema): boolean;
|
26
|
-
export declare function isSchemaWithTables(schema: Schema): boolean;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MarkSpec } from '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 '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 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 {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { MarkSpec } from 'prosemirror-model';
|
2
|
-
export declare 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 '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,48 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from '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
|
-
declare 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: {
|
45
|
-
[key: string]: any;
|
46
|
-
};
|
47
|
-
};
|
48
|
-
export {};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from 'prosemirror-model';
|
2
|
-
export declare 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 '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,32 +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';
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { MarkSpec, Mark } from '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 '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,21 +0,0 @@
|
|
1
|
-
import { Mark, MarkSpec } from '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 declare 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
|
-
export declare const colorPaletteExtended: Map<string, TextColorKey>;
|
21
|
-
export declare const textColor: MarkSpec;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { NodeSpec } from 'prosemirror-model';
|
2
|
-
export interface UrlType {
|
3
|
-
/**
|
4
|
-
* @validatorFn safeUrl
|
5
|
-
*/
|
6
|
-
url: string;
|
7
|
-
}
|
8
|
-
export interface DataType {
|
9
|
-
/**
|
10
|
-
* @additionalProperties true
|
11
|
-
*/
|
12
|
-
data: object;
|
13
|
-
}
|
14
|
-
export declare type CardAttributes = UrlType | DataType;
|
15
|
-
/**
|
16
|
-
* @name blockCard_node
|
17
|
-
*/
|
18
|
-
export interface BlockCardDefinition {
|
19
|
-
type: 'blockCard';
|
20
|
-
attrs: CardAttributes;
|
21
|
-
}
|
22
|
-
export declare const blockCard: NodeSpec;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '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 '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 declare type BodiedExtensionDefinition = BodiedExtensionBaseDefinition & MarksObject<DataConsumerDefinition | FragmentDefinition>;
|
24
|
-
export declare const bodiedExtension: NodeSpec;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { NodeSpec } from 'prosemirror-model';
|
2
|
-
import { ListItemDefinition as ListItemNode } from './list-item';
|
3
|
-
/**
|
4
|
-
* @name bulletList_node
|
5
|
-
*/
|
6
|
-
export interface BulletListDefinition {
|
7
|
-
type: 'bulletList';
|
8
|
-
/**
|
9
|
-
* @minItems 1
|
10
|
-
*/
|
11
|
-
content: Array<ListItemNode>;
|
12
|
-
}
|
13
|
-
export declare const bulletListSelector = ".ak-ul";
|
14
|
-
export declare const bulletList: NodeSpec;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { NodeSpec } from '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
|
-
*/
|
18
|
-
content: Array<InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | Date | Placeholder | InlineCard | Status>;
|
19
|
-
}
|
20
|
-
export declare const caption: NodeSpec;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { NodeSpec, Node as PMNode } from '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 declare 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 declare type CodeBlockAttrs = {
|
18
|
-
language?: string;
|
19
|
-
};
|
20
|
-
/**
|
21
|
-
* @name codeBlock_with_no_marks_node
|
22
|
-
*/
|
23
|
-
export declare type CodeBlockDefinition = CodeBlockBaseDefinition & NoMark;
|
24
|
-
/**
|
25
|
-
* @name codeBlock_with_marks_node
|
26
|
-
*/
|
27
|
-
export declare type CodeBlockWithMarksDefinition = CodeBlockBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28
|
-
export declare const codeBlock: NodeSpec;
|
29
|
-
export declare const toJSON: (node: PMNode) => {
|
30
|
-
attrs: Record<string, any>;
|
31
|
-
};
|