@atlaskit/adf-schema 57.5.3 → 57.6.0
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 +25 -0
- package/codemods/23.0.0-move-bitbucket-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-confluence-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-default-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-jira-schema-to-own-entry-points.ts +1 -0
- package/dist/cjs/next-schema/full-schema.adf.js +8 -8
- package/dist/cjs/next-schema/generated/nodeTypes.js +66 -17
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/cjs/next-schema/groups/inlineGroup.js +6 -6
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +2 -2
- package/dist/cjs/next-schema/nodes/blockquote.js +5 -5
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/cjs/next-schema/nodes/expand.js +3 -2
- package/dist/cjs/next-schema/nodes/extension.js +8 -0
- package/dist/cjs/next-schema/nodes/list.js +1 -1
- package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
- package/dist/cjs/next-schema/nodes/panel.js +5 -5
- package/dist/cjs/next-schema/nodes/tableNodes.js +3 -3
- package/dist/cjs/next-schema/nodes/task.js +1 -1
- package/dist/cjs/next-schema/nodes/text.js +4 -4
- package/dist/cjs/schema/default-schema.js +3 -1
- package/dist/cjs/schema/nodes/decision-item.js +1 -1
- package/dist/cjs/schema/nodes/decision-list.js +1 -1
- package/dist/cjs/schema/nodes/extension.js +15 -1
- package/dist/cjs/schema/nodes/status.js +1 -1
- package/dist/cjs/schema/nodes/task-item.js +1 -1
- package/dist/cjs/steps/analytics.js +1 -1
- package/dist/cjs/steps/batch-attrs-step.js +1 -1
- package/dist/cjs/steps/link-meta-step.js +1 -1
- package/dist/cjs/steps/override-document-step.js +1 -1
- package/dist/cjs/steps/set-attrs.js +2 -2
- package/dist/cjs/steps/type-ahead.js +1 -1
- package/dist/cjs/utils/colors.js +1 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +39 -15
- package/dist/es2019/next-schema/full-schema.adf.js +8 -8
- package/dist/es2019/next-schema/generated/nodeTypes.js +65 -16
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/es2019/next-schema/groups/inlineGroup.js +6 -6
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +2 -2
- package/dist/es2019/next-schema/nodes/blockquote.js +5 -5
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/es2019/next-schema/nodes/expand.js +3 -2
- package/dist/es2019/next-schema/nodes/extension.js +8 -0
- package/dist/es2019/next-schema/nodes/list.js +1 -1
- package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
- package/dist/es2019/next-schema/nodes/panel.js +5 -5
- package/dist/es2019/next-schema/nodes/tableNodes.js +3 -3
- package/dist/es2019/next-schema/nodes/task.js +1 -1
- package/dist/es2019/next-schema/nodes/text.js +4 -4
- package/dist/es2019/schema/default-schema.js +3 -1
- package/dist/es2019/schema/jira-schema.js +1 -0
- package/dist/es2019/schema/nodes/decision-item.js +1 -1
- package/dist/es2019/schema/nodes/decision-list.js +1 -1
- package/dist/es2019/schema/nodes/extension.js +16 -0
- package/dist/es2019/schema/nodes/status.js +1 -1
- package/dist/es2019/schema/nodes/task-item.js +1 -1
- package/dist/es2019/steps/analytics.js +1 -1
- package/dist/es2019/steps/batch-attrs-step.js +1 -1
- package/dist/es2019/steps/link-meta-step.js +1 -1
- package/dist/es2019/steps/override-document-step.js +1 -1
- package/dist/es2019/steps/set-attrs.js +2 -2
- package/dist/es2019/steps/type-ahead.js +1 -1
- package/dist/es2019/utils/colors.js +1 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +37 -13
- package/dist/esm/next-schema/full-schema.adf.js +8 -8
- package/dist/esm/next-schema/generated/nodeTypes.js +65 -16
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/esm/next-schema/groups/inlineGroup.js +6 -6
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +2 -2
- package/dist/esm/next-schema/nodes/blockquote.js +5 -5
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/esm/next-schema/nodes/expand.js +3 -2
- package/dist/esm/next-schema/nodes/extension.js +8 -0
- package/dist/esm/next-schema/nodes/list.js +1 -1
- package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
- package/dist/esm/next-schema/nodes/panel.js +5 -5
- package/dist/esm/next-schema/nodes/tableNodes.js +3 -3
- package/dist/esm/next-schema/nodes/task.js +1 -1
- package/dist/esm/next-schema/nodes/text.js +4 -4
- package/dist/esm/schema/default-schema.js +3 -1
- package/dist/esm/schema/jira-schema.js +1 -0
- package/dist/esm/schema/nodes/decision-item.js +1 -1
- package/dist/esm/schema/nodes/decision-list.js +1 -1
- package/dist/esm/schema/nodes/extension.js +14 -0
- package/dist/esm/schema/nodes/status.js +1 -1
- package/dist/esm/schema/nodes/task-item.js +1 -1
- package/dist/esm/steps/analytics.js +1 -1
- package/dist/esm/steps/batch-attrs-step.js +1 -1
- package/dist/esm/steps/link-meta-step.js +1 -1
- package/dist/esm/steps/override-document-step.js +1 -1
- package/dist/esm/steps/set-attrs.js +2 -2
- package/dist/esm/steps/type-ahead.js +1 -1
- package/dist/esm/utils/colors.js +1 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +37 -13
- package/dist/json-schema/v1/stage-0.json +106 -0
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +43 -15
- package/dist/types/next-schema/nodes/extension.d.ts +3 -1
- package/dist/types/schema/nodes/block-card.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.d.ts +3 -3
- package/dist/types/schema/nodes/bodied-rule.d.ts +1 -1
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +8 -8
- package/dist/types/schema/nodes/caption.d.ts +1 -1
- package/dist/types/schema/nodes/date.d.ts +1 -1
- package/dist/types/schema/nodes/decision-item.d.ts +1 -1
- package/dist/types/schema/nodes/decision-list.d.ts +1 -1
- package/dist/types/schema/nodes/doc.d.ts +8 -8
- package/dist/types/schema/nodes/embed-card.d.ts +1 -1
- package/dist/types/schema/nodes/expand.d.ts +1 -1
- package/dist/types/schema/nodes/extension.d.ts +11 -0
- package/dist/types/schema/nodes/heading.d.ts +2 -2
- package/dist/types/schema/nodes/inline-card.d.ts +2 -2
- package/dist/types/schema/nodes/layout-column.d.ts +1 -1
- package/dist/types/schema/nodes/layout-section.d.ts +2 -2
- package/dist/types/schema/nodes/media-group.d.ts +1 -1
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +1 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +11 -11
- package/dist/types/schema/nodes/panel.d.ts +1 -1
- package/dist/types/schema/nodes/paragraph.d.ts +2 -2
- package/dist/types/schema/nodes/status.d.ts +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +1 -1
- package/dist/types/schema/nodes/task-item.d.ts +3 -3
- package/dist/types/schema/nodes/types/block-content.d.ts +12 -12
- package/dist/types/schema/nodes/types/inline-content.d.ts +1 -1
- package/dist/types/schema/nodes/types/list.d.ts +2 -2
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +10 -10
- package/dist/types/steps/analytics.d.ts +1 -1
- package/dist/types/steps/batch-attrs-step.d.ts +1 -1
- package/dist/types/steps/link-meta-step.d.ts +1 -1
- package/dist/types/steps/override-document-step.d.ts +2 -2
- package/dist/types/steps/set-attrs.d.ts +2 -2
- package/dist/types/steps/type-ahead.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +24 -0
- package/json-schema/v1/stage-0.json +106 -0
- package/package.json +6 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +2 -0
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +2 -0
- package/schema-generators/helpers/writeToFile.ts +1 -0
- package/schema-generators/json-full-schema.ts +2 -0
- package/schema-generators/pm-full-schema.ts +2 -0
- package/schema-generators/validator-full-schema.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockContent } from './types/block-content';
|
|
2
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { BlockContent } from './types/block-content';
|
|
3
3
|
import type { Valign } from './types/valign';
|
|
4
4
|
/**
|
|
5
5
|
* @name layoutColumn_node
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LayoutColumnDefinition } from './layout-column';
|
|
2
|
-
import type { BreakoutMarkDefinition } from '../marks';
|
|
3
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { BreakoutMarkDefinition } from '../marks';
|
|
3
|
+
import type { LayoutColumnDefinition } from './layout-column';
|
|
4
4
|
/**
|
|
5
5
|
* @name layoutSection_node
|
|
6
6
|
*/
|
|
@@ -4,6 +4,7 @@ import type { BreakoutMarkDefinition } from '../marks/breakout';
|
|
|
4
4
|
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
5
5
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
6
6
|
import type { BodiedExtensionDefinition as BodiedExtension } from './bodied-extension';
|
|
7
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
7
8
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
8
9
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
9
10
|
import type { EmbedCardDefinition as EmbedCard } from './embed-card';
|
|
@@ -17,7 +18,6 @@ import type { RuleDefinition as Rule } from './rule';
|
|
|
17
18
|
import type { TableDefinition as Table } from './tableNodes';
|
|
18
19
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
19
20
|
import type { ExtensionAttributes } from './types/extensions';
|
|
20
|
-
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
21
21
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
22
22
|
import type { MarksObject } from './types/mark';
|
|
23
23
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
5
|
-
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { BlockQuoteDefinition as BlockQuote } from './blockquote';
|
|
3
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
6
4
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
7
|
-
import type { BulletListDefinition as BulletList, OrderedListDefinition as OrderedList } from './types/list';
|
|
8
|
-
import type { TaskListDefinition as TaskList } from './task-list';
|
|
9
5
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
6
|
+
import type { HeadingDefinition as Heading } from './heading';
|
|
7
|
+
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
8
|
+
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
12
9
|
import type { PanelDefinition as Panel } from './panel';
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
10
|
+
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
11
|
+
import type { RuleDefinition as Rule } from './rule';
|
|
12
|
+
import type { TaskListDefinition as TaskList } from './task-list';
|
|
13
|
+
import type { BulletListDefinition as BulletList, OrderedListDefinition as OrderedList } from './types/list';
|
|
14
|
+
import type { NoMark } from './types/mark';
|
|
15
15
|
/**
|
|
16
16
|
* @name nestedExpand_content
|
|
17
17
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BreakoutMarkDefinition } from '../marks';
|
|
2
2
|
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
3
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
3
4
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
4
5
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
5
6
|
import type { HeadingDefinition as Heading } from './heading';
|
|
@@ -7,7 +8,6 @@ import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
|
7
8
|
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
8
9
|
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
9
10
|
import type { RuleDefinition as Rule } from './rule';
|
|
10
|
-
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
11
11
|
import type { TableDefinition as Table } from './tableNodes';
|
|
12
12
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
13
13
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
import type { AlignmentMarkDefinition, IndentationMarkDefinition } from '../marks';
|
|
2
|
-
import type { MarksObject, NoMark } from './types/mark';
|
|
3
3
|
import type { Inline } from './types/inline-content';
|
|
4
|
-
import type {
|
|
4
|
+
import type { MarksObject, NoMark } from './types/mark';
|
|
5
5
|
export interface ParagraphAttributes {
|
|
6
6
|
/**
|
|
7
7
|
* An optional UUID for unique identification of the node
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NodeSpec, Node as PmNode, Attrs } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { FragmentDefinition } from '../marks/fragment';
|
|
3
|
-
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
4
3
|
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
5
4
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
5
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
6
6
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
7
7
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
8
8
|
import type { EmbedCardDefinition as EmbedCard } from './embed-card';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Inline } from './types/inline-content';
|
|
2
|
-
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
3
|
-
import type { ExtensionDefinition as Extension } from './extension';
|
|
4
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { ExtensionDefinition as Extension } from './extension';
|
|
3
|
+
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
4
|
+
import type { Inline } from './types/inline-content';
|
|
5
5
|
/**
|
|
6
6
|
* @name taskItem_node
|
|
7
7
|
*/
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { BodiedExtensionDefinition as BodiedExtension } from '../bodied-extension';
|
|
3
|
-
import type { PanelDefinition as Panel } from '../panel';
|
|
4
|
-
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from '../paragraph';
|
|
1
|
+
import type { BlockCardDefinition as BlockCard } from '../block-card';
|
|
5
2
|
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
6
|
-
import type {
|
|
7
|
-
import type { RuleDefinition as Rule } from '../rule';
|
|
3
|
+
import type { BodiedExtensionDefinition as BodiedExtension } from '../bodied-extension';
|
|
8
4
|
import type { BodiedRuleDefinition as BodiedRule } from '../bodied-rule';
|
|
9
|
-
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from '../heading';
|
|
10
5
|
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
6
|
+
import type { DecisionListDefinition as DecisionList } from '../decision-list';
|
|
7
|
+
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
8
|
+
import type { ExpandDefinition as Expand } from '../expand';
|
|
9
|
+
import type { ExtensionDefinition as Extension } from '../extension';
|
|
10
|
+
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from '../heading';
|
|
11
11
|
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
12
12
|
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
13
|
+
import type { PanelDefinition as Panel } from '../panel';
|
|
14
|
+
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from '../paragraph';
|
|
15
|
+
import type { RuleDefinition as Rule } from '../rule';
|
|
15
16
|
import type { TableDefinition as Table } from '../tableNodes';
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
17
|
+
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
18
|
+
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
19
19
|
/**
|
|
20
20
|
* @name block_content
|
|
21
21
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { 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, BackgroundColorDefinition as BackgroundColor } from '../../marks';
|
|
1
2
|
import type { DateDefinition as Date } from '../date';
|
|
2
3
|
import type { EmojiDefinition as Emoji } from '../emoji';
|
|
3
4
|
import type { HardBreakDefinition as HardBreak } from '../hard-break';
|
|
@@ -9,7 +10,6 @@ import type { PlaceholderDefinition as Placeholder } from '../placeholder';
|
|
|
9
10
|
import type { StatusDefinition as Status } from '../status';
|
|
10
11
|
import type { TextDefinition as Text } from '../text';
|
|
11
12
|
import type { MarksObject } from './mark';
|
|
12
|
-
import type { 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, BackgroundColorDefinition as BackgroundColor } from '../../marks';
|
|
13
13
|
/**
|
|
14
14
|
* @name formatted_text_inline_node
|
|
15
15
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
2
|
-
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
3
1
|
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
2
|
+
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
3
|
+
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
4
4
|
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
5
5
|
export interface ListItemArray extends Array<Paragraph | OrderedListDefinition | BulletListDefinition | TaskList | MediaSingle | CodeBlock> {
|
|
6
6
|
0: Paragraph | MediaSingle | CodeBlock;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
1
|
+
import type { BlockCardDefinition as BlockCard } from '../block-card';
|
|
3
2
|
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
4
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
5
|
-
import type { RuleDefinition as Rule } from '../rule';
|
|
6
3
|
import type { BodiedRuleDefinition as BodiedRule } from '../bodied-rule';
|
|
7
|
-
import type { HeadingDefinition as Heading } from '../heading';
|
|
8
4
|
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
5
|
+
import type { DecisionListDefinition as DecisionList } from '../decision-list';
|
|
6
|
+
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
7
|
+
import type { ExtensionDefinition as Extension } from '../extension';
|
|
8
|
+
import type { HeadingDefinition as Heading } from '../heading';
|
|
9
9
|
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
10
10
|
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
11
|
+
import type { PanelDefinition as Panel } from '../panel';
|
|
12
|
+
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
13
|
+
import type { RuleDefinition as Rule } from '../rule';
|
|
13
14
|
import type { TableDefinition as Table } from '../tableNodes';
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
15
|
+
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
16
|
+
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
17
17
|
/**
|
|
18
18
|
* @name non_nestable_block_content
|
|
19
19
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
3
|
import { StepResult, StepMap, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
export declare const analyticsStepType = "atlaskit-analytics";
|
|
6
6
|
export declare const analyticsInvertStepType = "atlaskit-analytics-invert";
|
|
7
7
|
export interface AnalyticsPayload {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
3
|
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
5
4
|
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
6
6
|
export type BatchAttrsStepData = {
|
|
7
7
|
attrs: Record<string, unknown>;
|
|
8
8
|
nodeType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
3
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
export declare const stepType = "editor-linking-meta";
|
|
6
6
|
export declare const invertStepType = "editor-linking-meta-invert";
|
|
7
7
|
export type LinkStepMetadata = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
2
|
-
import { StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
3
1
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
import type { ADFEntity } from './types';
|
|
5
5
|
type Options = {
|
|
6
6
|
inverted?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
-
import
|
|
4
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
/**
|
|
6
6
|
* For more context on what this is about:
|
|
7
7
|
* @see https://discuss.prosemirror.net/t/preventing-image-placeholder-replacement-from-being-undone/1394
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
2
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
export declare const insertTypeAheadStepType = "atlaskit-insert-type-ahead";
|
|
5
5
|
export declare enum InsertTypeAheadStages {
|
|
6
6
|
DELETING_RAW_QUERY = "DELETING_RAW_QUERY",
|
|
@@ -787,6 +787,30 @@ export declare const extension_root_only: (string | {
|
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
789
|
})[];
|
|
790
|
+
export declare const extension_root_only_with_annotation: (string | {
|
|
791
|
+
meta: {
|
|
792
|
+
stage0: boolean;
|
|
793
|
+
};
|
|
794
|
+
props: {
|
|
795
|
+
marks: {
|
|
796
|
+
items: string[][];
|
|
797
|
+
optional: boolean;
|
|
798
|
+
type: string;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
})[];
|
|
802
|
+
export declare const extension_with_annotation: (string | {
|
|
803
|
+
meta: {
|
|
804
|
+
stage0: boolean;
|
|
805
|
+
};
|
|
806
|
+
props: {
|
|
807
|
+
marks: {
|
|
808
|
+
items: string[][];
|
|
809
|
+
optional: boolean;
|
|
810
|
+
type: string;
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
})[];
|
|
790
814
|
export declare const extension_with_marks: (string | {
|
|
791
815
|
props: {
|
|
792
816
|
marks: {
|
|
@@ -132,6 +132,9 @@
|
|
|
132
132
|
{
|
|
133
133
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
134
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
137
|
+
},
|
|
135
138
|
{
|
|
136
139
|
"$ref": "#/definitions/embedCard_node"
|
|
137
140
|
},
|
|
@@ -279,6 +282,9 @@
|
|
|
279
282
|
},
|
|
280
283
|
{
|
|
281
284
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
282
288
|
}
|
|
283
289
|
]
|
|
284
290
|
},
|
|
@@ -320,6 +326,9 @@
|
|
|
320
326
|
},
|
|
321
327
|
{
|
|
322
328
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
323
332
|
}
|
|
324
333
|
]
|
|
325
334
|
},
|
|
@@ -333,6 +342,9 @@
|
|
|
333
342
|
},
|
|
334
343
|
{
|
|
335
344
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
336
348
|
}
|
|
337
349
|
]
|
|
338
350
|
}
|
|
@@ -1100,6 +1112,9 @@
|
|
|
1100
1112
|
{
|
|
1101
1113
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
1102
1114
|
},
|
|
1115
|
+
{
|
|
1116
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
1117
|
+
},
|
|
1103
1118
|
{
|
|
1104
1119
|
"$ref": "#/definitions/heading_with_indentation_node"
|
|
1105
1120
|
},
|
|
@@ -1157,6 +1172,9 @@
|
|
|
1157
1172
|
{
|
|
1158
1173
|
"$ref": "#/definitions/extension_root_only_node"
|
|
1159
1174
|
},
|
|
1175
|
+
{
|
|
1176
|
+
"$ref": "#/definitions/extension_root_only_with_annotation_node"
|
|
1177
|
+
},
|
|
1160
1178
|
{
|
|
1161
1179
|
"$ref": "#/definitions/bodiedExtension_root_only_node"
|
|
1162
1180
|
},
|
|
@@ -1310,6 +1328,9 @@
|
|
|
1310
1328
|
{
|
|
1311
1329
|
"$ref": "#/definitions/non_nestable_block_content"
|
|
1312
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
1333
|
+
},
|
|
1313
1334
|
{
|
|
1314
1335
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
1315
1336
|
}
|
|
@@ -1352,6 +1373,9 @@
|
|
|
1352
1373
|
{
|
|
1353
1374
|
"$ref": "#/definitions/non_nestable_block_content"
|
|
1354
1375
|
},
|
|
1376
|
+
{
|
|
1377
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
1378
|
+
},
|
|
1355
1379
|
{
|
|
1356
1380
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
1357
1381
|
}
|
|
@@ -1431,6 +1455,67 @@
|
|
|
1431
1455
|
}
|
|
1432
1456
|
]
|
|
1433
1457
|
},
|
|
1458
|
+
"extension_root_only_with_annotation_node": {
|
|
1459
|
+
"allOf": [
|
|
1460
|
+
{
|
|
1461
|
+
"$ref": "#/definitions/extension_node"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"type": "object",
|
|
1465
|
+
"properties": {
|
|
1466
|
+
"marks": {
|
|
1467
|
+
"type": "array",
|
|
1468
|
+
"items": {
|
|
1469
|
+
"anyOf": [
|
|
1470
|
+
{
|
|
1471
|
+
"$ref": "#/definitions/annotation_mark"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"$ref": "#/definitions/breakout_mark"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"$ref": "#/definitions/fragment_mark"
|
|
1481
|
+
}
|
|
1482
|
+
]
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"additionalProperties": true
|
|
1487
|
+
}
|
|
1488
|
+
]
|
|
1489
|
+
},
|
|
1490
|
+
"extension_with_annotation_node": {
|
|
1491
|
+
"allOf": [
|
|
1492
|
+
{
|
|
1493
|
+
"$ref": "#/definitions/extension_node"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"type": "object",
|
|
1497
|
+
"properties": {
|
|
1498
|
+
"marks": {
|
|
1499
|
+
"type": "array",
|
|
1500
|
+
"items": {
|
|
1501
|
+
"anyOf": [
|
|
1502
|
+
{
|
|
1503
|
+
"$ref": "#/definitions/annotation_mark"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"$ref": "#/definitions/fragment_mark"
|
|
1510
|
+
}
|
|
1511
|
+
]
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
"additionalProperties": true
|
|
1516
|
+
}
|
|
1517
|
+
]
|
|
1518
|
+
},
|
|
1434
1519
|
"extension_with_marks_node": {
|
|
1435
1520
|
"allOf": [
|
|
1436
1521
|
{
|
|
@@ -2132,6 +2217,9 @@
|
|
|
2132
2217
|
},
|
|
2133
2218
|
{
|
|
2134
2219
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
2135
2223
|
}
|
|
2136
2224
|
]
|
|
2137
2225
|
},
|
|
@@ -2625,6 +2713,9 @@
|
|
|
2625
2713
|
},
|
|
2626
2714
|
{
|
|
2627
2715
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
2628
2719
|
}
|
|
2629
2720
|
]
|
|
2630
2721
|
},
|
|
@@ -2857,6 +2948,9 @@
|
|
|
2857
2948
|
{
|
|
2858
2949
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
2859
2950
|
},
|
|
2951
|
+
{
|
|
2952
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
2953
|
+
},
|
|
2860
2954
|
{
|
|
2861
2955
|
"$ref": "#/definitions/table_node"
|
|
2862
2956
|
}
|
|
@@ -2965,6 +3059,9 @@
|
|
|
2965
3059
|
{
|
|
2966
3060
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
2967
3061
|
},
|
|
3062
|
+
{
|
|
3063
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
3064
|
+
},
|
|
2968
3065
|
{
|
|
2969
3066
|
"$ref": "#/definitions/table_node"
|
|
2970
3067
|
}
|
|
@@ -3066,6 +3163,9 @@
|
|
|
3066
3163
|
},
|
|
3067
3164
|
{
|
|
3068
3165
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
3166
|
+
},
|
|
3167
|
+
{
|
|
3168
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
3069
3169
|
}
|
|
3070
3170
|
]
|
|
3071
3171
|
},
|
|
@@ -3140,6 +3240,9 @@
|
|
|
3140
3240
|
},
|
|
3141
3241
|
{
|
|
3142
3242
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
3143
3246
|
}
|
|
3144
3247
|
]
|
|
3145
3248
|
},
|
|
@@ -3569,6 +3672,9 @@
|
|
|
3569
3672
|
{
|
|
3570
3673
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
3571
3674
|
},
|
|
3675
|
+
{
|
|
3676
|
+
"$ref": "#/definitions/extension_with_annotation_node"
|
|
3677
|
+
},
|
|
3572
3678
|
{
|
|
3573
3679
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
|
3574
3680
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "57.
|
|
3
|
+
"version": "57.6.0",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,13 +40,17 @@
|
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^4.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"css-color-names": "0.0.4",
|
|
46
46
|
"linkify-it": "^5.0.2",
|
|
47
47
|
"memoize-one": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"platform-feature-flags": {
|
|
50
|
+
"cc_maui_annotations_on_extensions": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"referenceOnly": true
|
|
53
|
+
},
|
|
50
54
|
"platform_bugfix_invalid_urls_parsing_in_editor": {
|
|
51
55
|
"type": "boolean"
|
|
52
56
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { adfToValidatorSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
|
|
2
3
|
import adfNode from '../../../src/next-schema/full-schema.adf';
|
|
3
4
|
|
|
4
5
|
test('should be able to handle heading', () => {
|
|
@@ -81,6 +82,7 @@ const panel = {
|
|
|
81
82
|
'bodiedRule',
|
|
82
83
|
'decisionList',
|
|
83
84
|
'extension_with_marks',
|
|
85
|
+
'extension_with_annotation',
|
|
84
86
|
],
|
|
85
87
|
],
|
|
86
88
|
minItems: 1,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { validateSchemaCompatibility } from 'json-schema-diff-validator';
|
|
2
|
+
|
|
2
3
|
import { adfToJSON } from '@atlaskit/adf-schema-generator';
|
|
4
|
+
|
|
3
5
|
import adfNode from '../../../src/next-schema/full-schema.adf';
|
|
4
6
|
|
|
5
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|