@atlaskit/adf-schema 52.16.6 → 53.0.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/entry-points/code-block.js +0 -6
  3. package/dist/cjs/entry-points/schema-code-block.js +0 -6
  4. package/dist/cjs/entry-points/schema-next-nodeTypes.js +0 -12
  5. package/dist/cjs/index.js +0 -6
  6. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  7. package/dist/cjs/next-schema/generated/nodeTypes.js +2 -37
  8. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  9. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  10. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  11. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  12. package/dist/cjs/next-schema/nodes/codeBlock.js +5 -60
  13. package/dist/cjs/schema/default-schema.js +1 -2
  14. package/dist/cjs/schema/index.js +0 -6
  15. package/dist/cjs/schema/nodes/code-block.js +23 -109
  16. package/dist/cjs/schema/nodes/index.js +0 -6
  17. package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -70
  18. package/dist/es2019/entry-points/code-block.js +1 -1
  19. package/dist/es2019/entry-points/schema-code-block.js +1 -1
  20. package/dist/es2019/entry-points/schema-next-nodeTypes.js +1 -1
  21. package/dist/es2019/index.js +1 -1
  22. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  23. package/dist/es2019/next-schema/generated/nodeTypes.js +1 -36
  24. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  25. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  26. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  27. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  28. package/dist/es2019/next-schema/nodes/codeBlock.js +5 -60
  29. package/dist/es2019/schema/default-schema.js +2 -3
  30. package/dist/es2019/schema/index.js +1 -1
  31. package/dist/es2019/schema/nodes/code-block.js +34 -116
  32. package/dist/es2019/schema/nodes/index.js +1 -1
  33. package/dist/es2019/validator-schema/generated/validatorSpec.js +14 -69
  34. package/dist/esm/entry-points/code-block.js +1 -1
  35. package/dist/esm/entry-points/schema-code-block.js +1 -1
  36. package/dist/esm/entry-points/schema-next-nodeTypes.js +1 -1
  37. package/dist/esm/index.js +1 -1
  38. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  39. package/dist/esm/next-schema/generated/nodeTypes.js +1 -36
  40. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  41. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  42. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  43. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  44. package/dist/esm/next-schema/nodes/codeBlock.js +5 -60
  45. package/dist/esm/schema/default-schema.js +2 -3
  46. package/dist/esm/schema/index.js +1 -1
  47. package/dist/esm/schema/nodes/code-block.js +23 -108
  48. package/dist/esm/schema/nodes/index.js +1 -1
  49. package/dist/esm/validator-schema/generated/validatorSpec.js +14 -69
  50. package/dist/json-schema/v1/full.json +12 -0
  51. package/dist/json-schema/v1/stage-0.json +4 -91
  52. package/dist/types/entry-points/code-block.d.ts +1 -1
  53. package/dist/types/entry-points/schema-code-block.d.ts +1 -1
  54. package/dist/types/entry-points/schema-next-nodeTypes.d.ts +2 -2
  55. package/dist/types/index.d.ts +1 -1
  56. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  57. package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -39
  58. package/dist/types/next-schema/nodes/codeBlock.d.ts +1 -3
  59. package/dist/types/schema/index.d.ts +1 -1
  60. package/dist/types/schema/nodes/code-block.d.ts +0 -8
  61. package/dist/types/schema/nodes/index.d.ts +1 -1
  62. package/dist/types/validator-schema/generated/validatorSpec.d.ts +8 -63
  63. package/dist/types-ts4.5/entry-points/code-block.d.ts +1 -1
  64. package/dist/types-ts4.5/entry-points/schema-code-block.d.ts +1 -1
  65. package/dist/types-ts4.5/entry-points/schema-next-nodeTypes.d.ts +2 -2
  66. package/dist/types-ts4.5/index.d.ts +1 -1
  67. package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  68. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +16 -39
  69. package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +1 -3
  70. package/dist/types-ts4.5/schema/index.d.ts +1 -1
  71. package/dist/types-ts4.5/schema/nodes/code-block.d.ts +0 -8
  72. package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
  73. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +8 -63
  74. package/json-schema/v1/full.json +12 -0
  75. package/json-schema/v1/stage-0.json +4 -91
  76. package/package.json +1 -1
@@ -3,8 +3,8 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
4
4
  * and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
5
5
  */
6
- import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithExtendedAttributesStage0Definition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
7
- export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelC1Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
6
+ import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
7
+ export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelC1Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
8
8
  export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
9
9
  export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
10
- export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
10
+ export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
@@ -62,7 +62,7 @@ export type BlockTaskItemNode = PMNode & BlockTaskItemDefinition;
62
62
  export declare const blockTaskItem: PMNodeSpecFactoryInstance<BlockTaskItemNode>;
63
63
  export interface BodiedExtensionDefinition {
64
64
  type: 'bodiedExtension';
65
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
65
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
66
66
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
67
67
  attrs: {
68
68
  extensionKey: string;
@@ -127,23 +127,13 @@ export interface CodeBlockDefinition {
127
127
  language?: string;
128
128
  uniqueId?: string;
129
129
  localId?: string;
130
+ wrap?: boolean;
131
+ hideLineNumbers?: boolean;
130
132
  };
131
133
  }
132
134
  export type CodeBlockNode = PMNode & CodeBlockDefinition;
133
135
  export declare const codeBlock: PMNodeSpecFactoryInstance<CodeBlockNode>;
134
136
  export interface CodeBlockRootOnlyDefinition {
135
- type: 'codeBlock';
136
- content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
137
- marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
138
- attrs: {
139
- language?: string;
140
- uniqueId?: string;
141
- localId?: string;
142
- };
143
- }
144
- export type CodeBlockRootOnlyNode = PMNode & CodeBlockRootOnlyDefinition;
145
- export declare const codeBlockRootOnly: PMNodeSpecFactoryInstance<CodeBlockRootOnlyNode>;
146
- export interface CodeBlockRootOnlyWithExtendedAttributesStage0Definition {
147
137
  type: 'codeBlock';
148
138
  content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
149
139
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
@@ -155,21 +145,8 @@ export interface CodeBlockRootOnlyWithExtendedAttributesStage0Definition {
155
145
  hideLineNumbers?: boolean;
156
146
  };
157
147
  }
158
- export type CodeBlockRootOnlyWithExtendedAttributesStage0Node = PMNode & CodeBlockRootOnlyWithExtendedAttributesStage0Definition;
159
- export declare const codeBlockRootOnlyWithExtendedAttributesStage0: PMNodeSpecFactoryInstance<CodeBlockRootOnlyWithExtendedAttributesStage0Node>;
160
- export interface CodeBlockWithExtendedAttributesStage0Definition {
161
- type: 'codeBlock';
162
- content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
163
- attrs: {
164
- language?: string;
165
- uniqueId?: string;
166
- localId?: string;
167
- wrap?: boolean;
168
- hideLineNumbers?: boolean;
169
- };
170
- }
171
- export type CodeBlockWithExtendedAttributesStage0Node = PMNode & CodeBlockWithExtendedAttributesStage0Definition;
172
- export declare const codeBlockWithExtendedAttributesStage0: PMNodeSpecFactoryInstance<CodeBlockWithExtendedAttributesStage0Node>;
148
+ export type CodeBlockRootOnlyNode = PMNode & CodeBlockRootOnlyDefinition;
149
+ export declare const codeBlockRootOnly: PMNodeSpecFactoryInstance<CodeBlockRootOnlyNode>;
173
150
  export interface ConfluenceJiraIssueDefinition {
174
151
  type: 'confluenceJiraIssue';
175
152
  attrs: {
@@ -241,7 +218,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
241
218
  export declare const decisionList: PMNodeSpecFactoryInstance<DecisionListNode>;
242
219
  export interface DocDefinition {
243
220
  type: 'doc';
244
- content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | CodeBlockRootOnlyWithExtendedAttributesStage0Definition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockDefinition>;
221
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockDefinition>;
245
222
  }
246
223
  export type DocNode = PMNode & DocDefinition;
247
224
  export declare const doc: PMNodeSpecFactoryInstance<DocNode>;
@@ -285,7 +262,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
285
262
  export declare const emojiStage0: PMNodeSpecFactoryInstance<EmojiStage0Node>;
286
263
  export interface ExpandDefinition {
287
264
  type: 'expand';
288
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
265
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
289
266
  attrs: {
290
267
  title?: string;
291
268
  __expanded?: boolean;
@@ -296,7 +273,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
296
273
  export declare const expand: PMNodeSpecFactoryInstance<ExpandNode>;
297
274
  export interface ExpandRootOnlyDefinition {
298
275
  type: 'expand';
299
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
276
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
300
277
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
301
278
  attrs: {
302
279
  title?: string;
@@ -895,7 +872,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
895
872
  export declare const tableWithNestedTable: PMNodeSpecFactoryInstance<TableWithNestedTableNode>;
896
873
  export interface TableCellDefinition {
897
874
  type: 'tableCell';
898
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
875
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
899
876
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
900
877
  attrs: {
901
878
  colspan?: number;
@@ -909,7 +886,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
909
886
  export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
910
887
  export interface TableCellStage0Definition {
911
888
  type: 'tableCell';
912
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
889
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
913
890
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
914
891
  attrs: {
915
892
  colspan?: number;
@@ -924,7 +901,7 @@ export type TableCellStage0Node = PMNode & TableCellStage0Definition;
924
901
  export declare const tableCellStage0: PMNodeSpecFactoryInstance<TableCellStage0Node>;
925
902
  export interface TableCellWithNestedTableDefinition {
926
903
  type: 'tableCell';
927
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
904
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
928
905
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
929
906
  attrs: {
930
907
  colspan?: number;
@@ -938,7 +915,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
938
915
  export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
939
916
  export interface TableCellWithNestedTableStage0Definition {
940
917
  type: 'tableCell';
941
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
918
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
942
919
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
943
920
  attrs: {
944
921
  colspan?: number;
@@ -953,7 +930,7 @@ export type TableCellWithNestedTableStage0Node = PMNode & TableCellWithNestedTab
953
930
  export declare const tableCellWithNestedTableStage0: PMNodeSpecFactoryInstance<TableCellWithNestedTableStage0Node>;
954
931
  export interface TableHeaderDefinition {
955
932
  type: 'tableHeader';
956
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
933
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
957
934
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
958
935
  attrs: {
959
936
  colspan?: number;
@@ -967,7 +944,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
967
944
  export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
968
945
  export interface TableHeaderStage0Definition {
969
946
  type: 'tableHeader';
970
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
947
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
971
948
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
972
949
  attrs: {
973
950
  colspan?: number;
@@ -982,7 +959,7 @@ export type TableHeaderStage0Node = PMNode & TableHeaderStage0Definition;
982
959
  export declare const tableHeaderStage0: PMNodeSpecFactoryInstance<TableHeaderStage0Node>;
983
960
  export interface TableHeaderWithNestedTableDefinition {
984
961
  type: 'tableHeader';
985
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
962
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
986
963
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
987
964
  attrs: {
988
965
  colspan?: number;
@@ -996,7 +973,7 @@ export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTable
996
973
  export declare const tableHeaderWithNestedTable: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableNode>;
997
974
  export interface TableHeaderWithNestedTableStage0Definition {
998
975
  type: 'tableHeader';
999
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
976
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
1000
977
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
1001
978
  attrs: {
1002
979
  colspan?: number;
@@ -1,9 +1,7 @@
1
1
  import type { ADFCommonNodeSpec, ADFNode } from '@atlaskit/adf-schema-generator';
2
2
  export declare const codeBlock: ADFNode<[
3
3
  string,
4
- 'root_only',
5
- 'with_extended_attributes',
6
- 'root_only_with_extended_attributes'
4
+ 'root_only'
7
5
  ], ADFCommonNodeSpec & {
8
6
  marks: any[];
9
7
  noExtend: true;
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
1
+ export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
2
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, 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, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } from './nodes';
3
3
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
@@ -31,12 +31,4 @@ export declare const codeBlock: NodeSpec;
31
31
  export declare const toJSON: (node: PMNode) => {
32
32
  attrs: Record<string, any>;
33
33
  };
34
- /**
35
- * @name codeBlock_with_extended_attributes
36
- * @description stage-0 codeBlock variant with wrap and hideLineNumbers attributes (ADF Change 101)
37
- *
38
- * Stage-0 variant: adds wrap and hideLineNumbers attributes (ADF Change 101).
39
- * The DSL variant includes all attrs (base + new), so the generated factory provides the full set.
40
- */
41
- export declare const codeBlockWithExtendedAttributes: NodeSpec;
42
34
  export declare const codeBlockWithLocalId: NodeSpec;
@@ -9,7 +9,7 @@ export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from '.
9
9
  export type { BlockQuoteDefinition } from './blockquote';
10
10
  export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
11
11
  export type { BulletListDefinition } from './types/list';
12
- export { codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, toJSON as codeBlockToJSON, } from './code-block';
12
+ export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON, } from './code-block';
13
13
  export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
14
14
  export { hardBreak } from './hard-break';
15
15
  export type { HardBreakDefinition } from './hard-break';
@@ -372,6 +372,10 @@ export declare const codeBlock: {
372
372
  attrs: {
373
373
  optional: boolean;
374
374
  props: {
375
+ hideLineNumbers: {
376
+ optional: boolean;
377
+ type: string;
378
+ };
375
379
  language: {
376
380
  optional: boolean;
377
381
  type: string;
@@ -384,6 +388,10 @@ export declare const codeBlock: {
384
388
  optional: boolean;
385
389
  type: string;
386
390
  };
391
+ wrap: {
392
+ optional: boolean;
393
+ type: string;
394
+ };
387
395
  };
388
396
  };
389
397
  content: {
@@ -407,69 +415,6 @@ export declare const codeBlock_root_only: (string | {
407
415
  };
408
416
  };
409
417
  })[];
410
- export declare const codeBlock_root_only_with_extended_attributes: (string | {
411
- props: {
412
- attrs: {
413
- optional: boolean;
414
- props: {
415
- hideLineNumbers: {
416
- optional: boolean;
417
- type: string;
418
- };
419
- language: {
420
- optional: boolean;
421
- type: string;
422
- };
423
- localId: {
424
- optional: boolean;
425
- type: string;
426
- };
427
- uniqueId: {
428
- optional: boolean;
429
- type: string;
430
- };
431
- wrap: {
432
- optional: boolean;
433
- type: string;
434
- };
435
- };
436
- };
437
- marks: {
438
- items: string[];
439
- optional: boolean;
440
- type: string;
441
- };
442
- };
443
- })[];
444
- export declare const codeBlock_with_extended_attributes: (string | {
445
- props: {
446
- attrs: {
447
- optional: boolean;
448
- props: {
449
- hideLineNumbers: {
450
- optional: boolean;
451
- type: string;
452
- };
453
- language: {
454
- optional: boolean;
455
- type: string;
456
- };
457
- localId: {
458
- optional: boolean;
459
- type: string;
460
- };
461
- uniqueId: {
462
- optional: boolean;
463
- type: string;
464
- };
465
- wrap: {
466
- optional: boolean;
467
- type: string;
468
- };
469
- };
470
- };
471
- };
472
- })[];
473
418
  export declare const confluenceInlineComment: {
474
419
  props: {
475
420
  attrs: {
@@ -712,6 +712,12 @@
712
712
  },
713
713
  "localId": {
714
714
  "type": "string"
715
+ },
716
+ "wrap": {
717
+ "type": "boolean"
718
+ },
719
+ "hideLineNumbers": {
720
+ "type": "boolean"
715
721
  }
716
722
  },
717
723
  "additionalProperties": false
@@ -749,6 +755,12 @@
749
755
  },
750
756
  "localId": {
751
757
  "type": "string"
758
+ },
759
+ "wrap": {
760
+ "type": "boolean"
761
+ },
762
+ "hideLineNumbers": {
763
+ "type": "boolean"
752
764
  }
753
765
  },
754
766
  "additionalProperties": false
@@ -90,9 +90,6 @@
90
90
  {
91
91
  "$ref": "#/definitions/codeBlock_node"
92
92
  },
93
- {
94
- "$ref": "#/definitions/codeBlock_with_extended_attributes_node"
95
- },
96
93
  {
97
94
  "$ref": "#/definitions/taskList_node"
98
95
  },
@@ -707,80 +704,6 @@
707
704
  "type": "array",
708
705
  "maxItems": 0
709
706
  },
710
- "attrs": {
711
- "type": "object",
712
- "properties": {
713
- "language": {
714
- "type": "string"
715
- },
716
- "uniqueId": {
717
- "type": "string"
718
- },
719
- "localId": {
720
- "type": "string"
721
- }
722
- },
723
- "additionalProperties": false
724
- },
725
- "content": {
726
- "type": "array",
727
- "items": {
728
- "$ref": "#/definitions/text_with_no_marks_node"
729
- }
730
- }
731
- },
732
- "additionalProperties": false,
733
- "required": ["type"]
734
- },
735
- "codeBlock_root_only_node": {
736
- "type": "object",
737
- "properties": {
738
- "type": {
739
- "enum": ["codeBlock"]
740
- },
741
- "marks": {
742
- "type": "array",
743
- "items": {
744
- "$ref": "#/definitions/breakout_mark"
745
- }
746
- },
747
- "attrs": {
748
- "type": "object",
749
- "properties": {
750
- "language": {
751
- "type": "string"
752
- },
753
- "uniqueId": {
754
- "type": "string"
755
- },
756
- "localId": {
757
- "type": "string"
758
- }
759
- },
760
- "additionalProperties": false
761
- },
762
- "content": {
763
- "type": "array",
764
- "items": {
765
- "$ref": "#/definitions/text_with_no_marks_node"
766
- }
767
- }
768
- },
769
- "additionalProperties": false,
770
- "required": ["type"]
771
- },
772
- "codeBlock_root_only_with_extended_attributes_node": {
773
- "type": "object",
774
- "properties": {
775
- "type": {
776
- "enum": ["codeBlock"]
777
- },
778
- "marks": {
779
- "type": "array",
780
- "items": {
781
- "$ref": "#/definitions/breakout_mark"
782
- }
783
- },
784
707
  "attrs": {
785
708
  "type": "object",
786
709
  "properties": {
@@ -812,7 +735,7 @@
812
735
  "additionalProperties": false,
813
736
  "required": ["type"]
814
737
  },
815
- "codeBlock_with_extended_attributes_node": {
738
+ "codeBlock_root_only_node": {
816
739
  "type": "object",
817
740
  "properties": {
818
741
  "type": {
@@ -820,7 +743,9 @@
820
743
  },
821
744
  "marks": {
822
745
  "type": "array",
823
- "maxItems": 0
746
+ "items": {
747
+ "$ref": "#/definitions/breakout_mark"
748
+ }
824
749
  },
825
750
  "attrs": {
826
751
  "type": "object",
@@ -979,9 +904,6 @@
979
904
  {
980
905
  "$ref": "#/definitions/codeBlock_node"
981
906
  },
982
- {
983
- "$ref": "#/definitions/codeBlock_with_extended_attributes_node"
984
- },
985
907
  {
986
908
  "$ref": "#/definitions/mediaSingle_caption_node"
987
909
  },
@@ -1048,9 +970,6 @@
1048
970
  {
1049
971
  "$ref": "#/definitions/codeBlock_root_only_node"
1050
972
  },
1051
- {
1052
- "$ref": "#/definitions/codeBlock_root_only_with_extended_attributes_node"
1053
- },
1054
973
  {
1055
974
  "$ref": "#/definitions/layoutSection_with_single_column_node"
1056
975
  },
@@ -2492,9 +2411,6 @@
2492
2411
  {
2493
2412
  "$ref": "#/definitions/codeBlock_node"
2494
2413
  },
2495
- {
2496
- "$ref": "#/definitions/codeBlock_with_extended_attributes_node"
2497
- },
2498
2414
  {
2499
2415
  "$ref": "#/definitions/mediaGroup_node"
2500
2416
  },
@@ -2947,9 +2863,6 @@
2947
2863
  {
2948
2864
  "$ref": "#/definitions/codeBlock_node"
2949
2865
  },
2950
- {
2951
- "$ref": "#/definitions/codeBlock_with_extended_attributes_node"
2952
- },
2953
2866
  {
2954
2867
  "$ref": "#/definitions/mediaSingle_caption_node"
2955
2868
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.16.6",
3
+ "version": "53.0.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/"