@atlaskit/adf-schema 52.1.0 → 52.2.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 (89) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/next-schema/generated/markTypes.js +8 -1
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +41 -15
  5. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  6. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  7. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  8. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  9. package/dist/cjs/next-schema/marks/fontSize.js +32 -0
  10. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
  11. package/dist/cjs/next-schema/nodes/extensionFrame.js +1 -1
  12. package/dist/cjs/next-schema/nodes/list.js +2 -2
  13. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  14. package/dist/cjs/next-schema/nodes/panel.js +1 -1
  15. package/dist/cjs/next-schema/nodes/paragraph.js +16 -0
  16. package/dist/cjs/next-schema/nodes/task.js +1 -1
  17. package/dist/cjs/schema/create-schema.js +3 -0
  18. package/dist/cjs/schema/index.js +6 -0
  19. package/dist/cjs/schema/marks/font-size.js +31 -0
  20. package/dist/cjs/schema/marks/index.js +7 -0
  21. package/dist/cjs/validator-schema/generated/validatorSpec.js +57 -14
  22. package/dist/es2019/index.js +1 -1
  23. package/dist/es2019/next-schema/generated/markTypes.js +7 -0
  24. package/dist/es2019/next-schema/generated/nodeTypes.js +40 -14
  25. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  26. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  27. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  28. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  29. package/dist/es2019/next-schema/marks/fontSize.js +27 -0
  30. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
  31. package/dist/es2019/next-schema/nodes/extensionFrame.js +1 -1
  32. package/dist/es2019/next-schema/nodes/list.js +2 -2
  33. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  34. package/dist/es2019/next-schema/nodes/panel.js +1 -1
  35. package/dist/es2019/next-schema/nodes/paragraph.js +16 -0
  36. package/dist/es2019/next-schema/nodes/task.js +1 -1
  37. package/dist/es2019/schema/create-schema.js +4 -1
  38. package/dist/es2019/schema/index.js +1 -1
  39. package/dist/es2019/schema/marks/font-size.js +25 -0
  40. package/dist/es2019/schema/marks/index.js +1 -0
  41. package/dist/es2019/validator-schema/generated/validatorSpec.js +56 -13
  42. package/dist/esm/index.js +1 -1
  43. package/dist/esm/next-schema/generated/markTypes.js +7 -0
  44. package/dist/esm/next-schema/generated/nodeTypes.js +40 -14
  45. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  46. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  47. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  48. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  49. package/dist/esm/next-schema/marks/fontSize.js +27 -0
  50. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
  51. package/dist/esm/next-schema/nodes/extensionFrame.js +1 -1
  52. package/dist/esm/next-schema/nodes/list.js +2 -2
  53. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  54. package/dist/esm/next-schema/nodes/panel.js +1 -1
  55. package/dist/esm/next-schema/nodes/paragraph.js +16 -0
  56. package/dist/esm/next-schema/nodes/task.js +1 -1
  57. package/dist/esm/schema/create-schema.js +4 -1
  58. package/dist/esm/schema/index.js +1 -1
  59. package/dist/esm/schema/marks/font-size.js +25 -0
  60. package/dist/esm/schema/marks/index.js +1 -0
  61. package/dist/esm/validator-schema/generated/validatorSpec.js +56 -13
  62. package/dist/json-schema/v1/stage-0.json +139 -0
  63. package/dist/types/index.d.ts +2 -2
  64. package/dist/types/next-schema/generated/markTypes.d.ts +11 -0
  65. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  66. package/dist/types/next-schema/generated/nodeTypes.d.ts +42 -15
  67. package/dist/types/next-schema/marks/fontSize.d.ts +16 -0
  68. package/dist/types/next-schema/nodes/paragraph.d.ts +19 -1
  69. package/dist/types/next-schema/nodes/task.d.ts +6 -3
  70. package/dist/types/schema/index.d.ts +2 -2
  71. package/dist/types/schema/marks/font-size.d.ts +12 -0
  72. package/dist/types/schema/marks/index.d.ts +2 -0
  73. package/dist/types/schema/nodes/index.d.ts +1 -1
  74. package/dist/types/validator-schema/generated/validatorSpec.d.ts +43 -0
  75. package/dist/types-ts4.5/index.d.ts +2 -2
  76. package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +11 -0
  77. package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  78. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +42 -15
  79. package/dist/types-ts4.5/next-schema/marks/fontSize.d.ts +16 -0
  80. package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +19 -1
  81. package/dist/types-ts4.5/next-schema/nodes/task.d.ts +3 -3
  82. package/dist/types-ts4.5/schema/index.d.ts +2 -2
  83. package/dist/types-ts4.5/schema/marks/font-size.d.ts +12 -0
  84. package/dist/types-ts4.5/schema/marks/index.d.ts +2 -0
  85. package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
  86. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +43 -0
  87. package/json-schema/v1/stage-0.json +139 -0
  88. package/package.json +2 -2
  89. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
7
  import type { InlineDefinition, BlockDefinition, BlockRootOnlyDefinition } from './nodeGroupTypes';
8
- import type { AlignmentMark, AnnotationMark, BackgroundColorMark, BorderMark, BreakoutMark, CodeMark, ConfluenceInlineCommentMark, DataConsumerMark, EmMark, FragmentMark, IndentationMark, LinkMark, StrikeMark, StrongMark, SubsupMark, TextColorMark, TypeAheadQueryMark, UnderlineMark, UnsupportedMarkMark, UnsupportedNodeAttributeMark } from './markTypes';
8
+ import type { AlignmentMark, AnnotationMark, BackgroundColorMark, BorderMark, BreakoutMark, CodeMark, ConfluenceInlineCommentMark, DataConsumerMark, EmMark, FontSizeMark, FragmentMark, IndentationMark, LinkMark, StrikeMark, StrongMark, SubsupMark, TextColorMark, TypeAheadQueryMark, UnderlineMark, UnsupportedMarkMark, UnsupportedNodeAttributeMark } from './markTypes';
9
9
  export interface BlockCardNodeAttributes0 {
10
10
  localId?: string;
11
11
  url?: string;
@@ -50,7 +50,7 @@ export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
50
50
  export declare const blockquoteLegacy: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteLegacyNode>) => import("prosemirror-model").NodeSpec;
51
51
  export interface BlockTaskItemDefinition {
52
52
  type: 'blockTaskItem';
53
- content: Array<ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
53
+ content: Array<ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
54
54
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
55
55
  attrs: {
56
56
  localId: string;
@@ -61,7 +61,7 @@ export type BlockTaskItemNode = PMNode & BlockTaskItemDefinition;
61
61
  export declare const blockTaskItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockTaskItemNode>) => import("prosemirror-model").NodeSpec;
62
62
  export interface BodiedExtensionDefinition {
63
63
  type: 'bodiedExtension';
64
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
64
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
65
65
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
66
66
  attrs: {
67
67
  extensionKey: string;
@@ -90,7 +90,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
90
90
  export declare const bodiedExtensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
91
91
  export interface BodiedSyncBlockDefinition {
92
92
  type: 'bodiedSyncBlock';
93
- content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
93
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithFontSizeAndAlignmentStage0Definition | ParagraphWithFontSizeAndIndentationStage0Definition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
94
94
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
95
95
  attrs: {
96
96
  resourceId: string;
@@ -257,7 +257,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
257
257
  export declare const emojiStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<EmojiStage0Node>) => import("prosemirror-model").NodeSpec;
258
258
  export interface ExpandDefinition {
259
259
  type: 'expand';
260
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
260
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
261
261
  attrs: {
262
262
  title?: string;
263
263
  __expanded?: boolean;
@@ -268,7 +268,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
268
268
  export declare const expand: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandNode>) => import("prosemirror-model").NodeSpec;
269
269
  export interface ExpandRootOnlyDefinition {
270
270
  type: 'expand';
271
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
271
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
272
272
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
273
273
  attrs: {
274
274
  title?: string;
@@ -308,7 +308,7 @@ export type ExtensionWithMarksNode = PMNode & ExtensionWithMarksDefinition;
308
308
  export declare const extensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
309
309
  export interface ExtensionFrameStage0Definition {
310
310
  type: 'extensionFrame';
311
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedExtensionWithMarksDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
311
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedExtensionWithMarksDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
312
312
  marks: Array<DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
313
313
  }
314
314
  export type ExtensionFrameStage0Node = PMNode & ExtensionFrameStage0Definition;
@@ -473,7 +473,7 @@ export type LayoutSectionWithSingleColumnStage0Node = PMNode & LayoutSectionWith
473
473
  export declare const layoutSectionWithSingleColumnStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<LayoutSectionWithSingleColumnStage0Node>) => import("prosemirror-model").NodeSpec;
474
474
  export interface ListItemDefinition {
475
475
  type: 'listItem';
476
- content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
476
+ content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
477
477
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
478
478
  attrs: {
479
479
  localId?: string;
@@ -483,7 +483,7 @@ export type ListItemNode = PMNode & ListItemDefinition;
483
483
  export declare const listItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemNode>) => import("prosemirror-model").NodeSpec;
484
484
  export interface ListItemWithFlexibleFirstChildStage0Definition {
485
485
  type: 'listItem';
486
- content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | TaskListWithFlexibleFirstChildStage0Definition | UnsupportedBlockDefinition>;
486
+ content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | TaskListDefinition | TaskListWithFlexibleFirstChildStage0Definition | UnsupportedBlockDefinition>;
487
487
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
488
488
  attrs: {
489
489
  localId?: string;
@@ -675,7 +675,7 @@ export type MultiBodiedExtensionStage0Node = PMNode & MultiBodiedExtensionStage0
675
675
  export declare const multiBodiedExtensionStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MultiBodiedExtensionStage0Node>) => import("prosemirror-model").NodeSpec;
676
676
  export interface NestedExpandDefinition {
677
677
  type: 'nestedExpand';
678
- content: Array<BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
678
+ content: Array<BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
679
679
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
680
680
  attrs: {
681
681
  title?: string;
@@ -708,7 +708,7 @@ export type OrderedListNode = PMNode & OrderedListDefinition;
708
708
  export declare const orderedList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<OrderedListNode>) => import("prosemirror-model").NodeSpec;
709
709
  export interface PanelDefinition {
710
710
  type: 'panel';
711
- content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
711
+ content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
712
712
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
713
713
  attrs: {
714
714
  panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
@@ -740,6 +740,33 @@ export interface ParagraphWithAlignmentDefinition {
740
740
  }
741
741
  export type ParagraphWithAlignmentNode = PMNode & ParagraphWithAlignmentDefinition;
742
742
  export declare const paragraphWithAlignment: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ParagraphWithAlignmentNode>) => import("prosemirror-model").NodeSpec;
743
+ export interface ParagraphWithFontSizeAndAlignmentStage0Definition {
744
+ type: 'paragraph';
745
+ marks: Array<AlignmentMark | FontSizeMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
746
+ attrs: {
747
+ localId?: string;
748
+ };
749
+ }
750
+ export type ParagraphWithFontSizeAndAlignmentStage0Node = PMNode & ParagraphWithFontSizeAndAlignmentStage0Definition;
751
+ export declare const paragraphWithFontSizeAndAlignmentStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ParagraphWithFontSizeAndAlignmentStage0Node>) => import("prosemirror-model").NodeSpec;
752
+ export interface ParagraphWithFontSizeAndIndentationStage0Definition {
753
+ type: 'paragraph';
754
+ marks: Array<FontSizeMark | IndentationMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
755
+ attrs: {
756
+ localId?: string;
757
+ };
758
+ }
759
+ export type ParagraphWithFontSizeAndIndentationStage0Node = PMNode & ParagraphWithFontSizeAndIndentationStage0Definition;
760
+ export declare const paragraphWithFontSizeAndIndentationStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ParagraphWithFontSizeAndIndentationStage0Node>) => import("prosemirror-model").NodeSpec;
761
+ export interface ParagraphWithFontSizeStage0Definition {
762
+ type: 'paragraph';
763
+ marks: Array<FontSizeMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
764
+ attrs: {
765
+ localId?: string;
766
+ };
767
+ }
768
+ export type ParagraphWithFontSizeStage0Node = PMNode & ParagraphWithFontSizeStage0Definition;
769
+ export declare const paragraphWithFontSizeStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ParagraphWithFontSizeStage0Node>) => import("prosemirror-model").NodeSpec;
743
770
  export interface ParagraphWithIndentationDefinition {
744
771
  type: 'paragraph';
745
772
  marks: Array<IndentationMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
@@ -841,7 +868,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
841
868
  export declare const tableWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
842
869
  export interface TableCellDefinition {
843
870
  type: 'tableCell';
844
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
871
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithFontSizeAndAlignmentStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
845
872
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
846
873
  attrs: {
847
874
  colspan?: number;
@@ -855,7 +882,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
855
882
  export declare const tableCell: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellNode>) => import("prosemirror-model").NodeSpec;
856
883
  export interface TableCellWithNestedTableDefinition {
857
884
  type: 'tableCell';
858
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
885
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithFontSizeAndAlignmentStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
859
886
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
860
887
  attrs: {
861
888
  colspan?: number;
@@ -869,7 +896,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
869
896
  export declare const tableCellWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
870
897
  export interface TableHeaderDefinition {
871
898
  type: 'tableHeader';
872
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
899
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithFontSizeAndAlignmentStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
873
900
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
874
901
  attrs: {
875
902
  colspan?: number;
@@ -883,7 +910,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
883
910
  export declare const tableHeader: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableHeaderNode>) => import("prosemirror-model").NodeSpec;
884
911
  export interface TableHeaderWithNestedTableDefinition {
885
912
  type: 'tableHeader';
886
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
913
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithFontSizeAndAlignmentStage0Definition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
887
914
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
888
915
  attrs: {
889
916
  colspan?: number;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * fontSize mark - applies size styling to block-level content
3
+ *
4
+ * This mark is used to apply size styling to entire paragraph nodes,
5
+ * enabling features like "small text" in the full-page editor.
6
+ *
7
+ * @example
8
+ * ```json
9
+ * {
10
+ * "type": "paragraph",
11
+ * "marks": [{ "type": "fontSize", "attrs": { "fontSize": "small" }}],
12
+ * "content": [...]
13
+ * }
14
+ * ```
15
+ */
16
+ export declare const fontSize: import("@atlaskit/adf-schema-generator").ADFMark<import("@atlaskit/adf-schema-generator").ADFMarkSpec>;
@@ -4,7 +4,10 @@ export declare const paragraph: ADFNode<[
4
4
  'with_alignment',
5
5
  'with_indentation',
6
6
  'with_marks',
7
- 'with_no_marks'
7
+ 'with_no_marks',
8
+ 'with_font_size',
9
+ 'with_font_size_and_alignment',
10
+ 'with_font_size_and_indentation'
8
11
  ], ADFCommonNodeSpec & {
9
12
  content: never[];
10
13
  ignore: never[];
@@ -22,4 +25,19 @@ export declare const paragraph: ADFNode<[
22
25
  ignore: never[];
23
26
  marks: never[];
24
27
  noMarks: true;
28
+ } & {
29
+ content: never[];
30
+ ignore: never[];
31
+ marks: any[];
32
+ stage0: true;
33
+ } & {
34
+ content: never[];
35
+ ignore: never[];
36
+ marks: any[];
37
+ stage0: true;
38
+ } & {
39
+ content: never[];
40
+ ignore: never[];
41
+ marks: any[];
42
+ stage0: true;
25
43
  }>;
@@ -1,4 +1,4 @@
1
- import type { ADFCommonNodeSpec, ADFNode } from '@atlaskit/adf-schema-generator';
1
+ import type { ADFCommonNodeSpec, ADFNode, ADFNodeContentOneOrMoreSpec } from '@atlaskit/adf-schema-generator';
2
2
  export declare const taskItem: ADFNode<[
3
3
  string
4
4
  ], ADFCommonNodeSpec>;
@@ -10,9 +10,9 @@ export declare const blockTaskItem: ADFNode<[
10
10
  ], ADFCommonNodeSpec>;
11
11
  export declare const taskListWithFlexibleFirstChild: ADFNode<[
12
12
  string,
13
- "with_flexible_first_child"
13
+ 'with_flexible_first_child'
14
14
  ], ADFCommonNodeSpec & {
15
15
  contentMinItems: number;
16
- content: import("@atlaskit/adf-schema-generator").ADFNodeContentOneOrMoreSpec[];
16
+ content: ADFNodeContentOneOrMoreSpec[];
17
17
  stage0: true;
18
18
  }>;
@@ -1,9 +1,9 @@
1
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, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, 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, taskListWithFlexibleFirstChildStage0, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, 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
- export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
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. */
5
5
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette, } from './marks';
6
- export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, BorderMarkAttributes, BorderMarkDefinition, BackgroundColorDefinition, } from './marks';
6
+ export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FontSizeMarkAttrs, FontSizeMarkDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, BorderMarkAttributes, BorderMarkDefinition, BackgroundColorDefinition, } from './marks';
7
7
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
8
8
  export { inlineNodes } from './inline-nodes';
9
9
  export { createSchema } from './create-schema';
@@ -0,0 +1,12 @@
1
+ import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
2
+ export type FontSizeMarkAttrs = {
3
+ fontSize: 'small';
4
+ };
5
+ /**
6
+ * @name fontSize_mark
7
+ */
8
+ export interface FontSizeMarkDefinition {
9
+ attrs: FontSizeMarkAttrs;
10
+ type: 'fontSize';
11
+ }
12
+ export declare const fontSize: MarkSpec;
@@ -18,6 +18,8 @@ export type { TextColorDefinition, TextColorAttributes } from './text-color';
18
18
  export { confluenceInlineComment } from './confluence-inline-comment';
19
19
  export { breakout } from './breakout';
20
20
  export type { BreakoutMarkAttrs, BreakoutMarkDefinition } from './breakout';
21
+ export { fontSize } from './font-size';
22
+ export type { FontSizeMarkAttrs, FontSizeMarkDefinition } from './font-size';
21
23
  export { alignment, alignmentPositionMap } from './alignment';
22
24
  export type { AlignmentAttributes, AlignmentMarkDefinition } from './alignment';
23
25
  export { indentation } from './indentation';
@@ -49,7 +49,7 @@ export { decisionList, decisionListSelector } from './decision-list';
49
49
  export type { DecisionListDefinition } from './decision-list';
50
50
  export { decisionItem } from './decision-item';
51
51
  export type { DecisionItemDefinition } from './decision-item';
52
- export { taskList, taskListSelector, taskListWithFlexibleFirstChildStage0, } from './task-list';
52
+ export { taskList, taskListSelector, taskListWithFlexibleFirstChildStage0 } from './task-list';
53
53
  export type { TaskListDefinition, TaskListContent } from './task-list';
54
54
  export { taskItem, blockTaskItem } from './task-item';
55
55
  export type { TaskItemDefinition, BlockTaskItemDefinition } from './task-item';
@@ -712,6 +712,22 @@ export declare const extensionFrame: {
712
712
  };
713
713
  };
714
714
  };
715
+ export declare const fontSize: {
716
+ props: {
717
+ type: {
718
+ type: string;
719
+ values: string[];
720
+ };
721
+ attrs: {
722
+ props: {
723
+ fontSize: {
724
+ type: string;
725
+ values: string[];
726
+ };
727
+ };
728
+ };
729
+ };
730
+ };
715
731
  export declare const fragment: {
716
732
  props: {
717
733
  type: {
@@ -1558,6 +1574,33 @@ export declare const paragraph_with_alignment: (string | {
1558
1574
  };
1559
1575
  };
1560
1576
  })[];
1577
+ export declare const paragraph_with_font_size: (string | {
1578
+ props: {
1579
+ marks: {
1580
+ type: string;
1581
+ optional: boolean;
1582
+ items: string[];
1583
+ };
1584
+ };
1585
+ })[];
1586
+ export declare const paragraph_with_font_size_and_alignment: (string | {
1587
+ props: {
1588
+ marks: {
1589
+ type: string;
1590
+ optional: boolean;
1591
+ items: string[][];
1592
+ };
1593
+ };
1594
+ })[];
1595
+ export declare const paragraph_with_font_size_and_indentation: (string | {
1596
+ props: {
1597
+ marks: {
1598
+ type: string;
1599
+ optional: boolean;
1600
+ items: string[][];
1601
+ };
1602
+ };
1603
+ })[];
1561
1604
  export declare const paragraph_with_indentation: (string | {
1562
1605
  props: {
1563
1606
  marks: {
@@ -81,6 +81,12 @@
81
81
  {
82
82
  "$ref": "#/definitions/paragraph_with_indentation_node"
83
83
  },
84
+ {
85
+ "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
86
+ },
87
+ {
88
+ "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
89
+ },
84
90
  {
85
91
  "$ref": "#/definitions/mediaSingle_caption_node"
86
92
  },
@@ -309,6 +315,9 @@
309
315
  {
310
316
  "$ref": "#/definitions/paragraph_with_no_marks_node"
311
317
  },
318
+ {
319
+ "$ref": "#/definitions/paragraph_with_font_size_node"
320
+ },
312
321
  {
313
322
  "$ref": "#/definitions/extension_with_marks_node"
314
323
  }
@@ -319,6 +328,9 @@
319
328
  {
320
329
  "$ref": "#/definitions/paragraph_with_no_marks_node"
321
330
  },
331
+ {
332
+ "$ref": "#/definitions/paragraph_with_font_size_node"
333
+ },
322
334
  {
323
335
  "$ref": "#/definitions/extension_with_marks_node"
324
336
  }
@@ -441,6 +453,12 @@
441
453
  {
442
454
  "$ref": "#/definitions/paragraph_with_indentation_node"
443
455
  },
456
+ {
457
+ "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
461
+ },
444
462
  {
445
463
  "$ref": "#/definitions/paragraph_with_no_marks_node"
446
464
  },
@@ -905,6 +923,12 @@
905
923
  {
906
924
  "$ref": "#/definitions/paragraph_with_indentation_node"
907
925
  },
926
+ {
927
+ "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
928
+ },
929
+ {
930
+ "$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
931
+ },
908
932
  {
909
933
  "$ref": "#/definitions/paragraph_with_no_marks_node"
910
934
  },
@@ -1250,6 +1274,9 @@
1250
1274
  {
1251
1275
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1252
1276
  },
1277
+ {
1278
+ "$ref": "#/definitions/paragraph_with_font_size_node"
1279
+ },
1253
1280
  {
1254
1281
  "$ref": "#/definitions/panel_node"
1255
1282
  },
@@ -1309,6 +1336,26 @@
1309
1336
  "additionalProperties": false,
1310
1337
  "required": ["type", "content"]
1311
1338
  },
1339
+ "fontSize_mark": {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "type": {
1343
+ "enum": ["fontSize"]
1344
+ },
1345
+ "attrs": {
1346
+ "type": "object",
1347
+ "properties": {
1348
+ "fontSize": {
1349
+ "enum": ["small"]
1350
+ }
1351
+ },
1352
+ "required": ["fontSize"],
1353
+ "additionalProperties": false
1354
+ }
1355
+ },
1356
+ "required": ["type", "attrs"],
1357
+ "additionalProperties": false
1358
+ },
1312
1359
  "formatted_text_inline_node": {
1313
1360
  "allOf": [
1314
1361
  {
@@ -1835,6 +1882,9 @@
1835
1882
  "items": [
1836
1883
  {
1837
1884
  "anyOf": [
1885
+ {
1886
+ "$ref": "#/definitions/paragraph_with_font_size_node"
1887
+ },
1838
1888
  {
1839
1889
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1840
1890
  },
@@ -1854,6 +1904,9 @@
1854
1904
  },
1855
1905
  {
1856
1906
  "anyOf": [
1907
+ {
1908
+ "$ref": "#/definitions/paragraph_with_font_size_node"
1909
+ },
1857
1910
  {
1858
1911
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1859
1912
  },
@@ -1906,6 +1959,9 @@
1906
1959
  "type": "array",
1907
1960
  "items": {
1908
1961
  "anyOf": [
1962
+ {
1963
+ "$ref": "#/definitions/paragraph_with_font_size_node"
1964
+ },
1909
1965
  {
1910
1966
  "$ref": "#/definitions/paragraph_with_no_marks_node"
1911
1967
  },
@@ -2323,6 +2379,9 @@
2323
2379
  {
2324
2380
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2325
2381
  },
2382
+ {
2383
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2384
+ },
2326
2385
  {
2327
2386
  "$ref": "#/definitions/heading_with_no_marks_node"
2328
2387
  },
@@ -2413,6 +2472,9 @@
2413
2472
  {
2414
2473
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2415
2474
  },
2475
+ {
2476
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2477
+ },
2416
2478
  {
2417
2479
  "$ref": "#/definitions/panel_node"
2418
2480
  },
@@ -2546,6 +2608,9 @@
2546
2608
  {
2547
2609
  "$ref": "#/definitions/paragraph_with_no_marks_node"
2548
2610
  },
2611
+ {
2612
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2613
+ },
2549
2614
  {
2550
2615
  "$ref": "#/definitions/heading_with_no_marks_node"
2551
2616
  },
@@ -2637,6 +2702,77 @@
2637
2702
  }
2638
2703
  ]
2639
2704
  },
2705
+ "paragraph_with_font_size_and_alignment_node": {
2706
+ "allOf": [
2707
+ {
2708
+ "$ref": "#/definitions/paragraph_node"
2709
+ },
2710
+ {
2711
+ "type": "object",
2712
+ "properties": {
2713
+ "marks": {
2714
+ "type": "array",
2715
+ "items": {
2716
+ "anyOf": [
2717
+ {
2718
+ "$ref": "#/definitions/fontSize_mark"
2719
+ },
2720
+ {
2721
+ "$ref": "#/definitions/alignment_mark"
2722
+ }
2723
+ ]
2724
+ }
2725
+ }
2726
+ },
2727
+ "additionalProperties": true
2728
+ }
2729
+ ]
2730
+ },
2731
+ "paragraph_with_font_size_and_indentation_node": {
2732
+ "allOf": [
2733
+ {
2734
+ "$ref": "#/definitions/paragraph_node"
2735
+ },
2736
+ {
2737
+ "type": "object",
2738
+ "properties": {
2739
+ "marks": {
2740
+ "type": "array",
2741
+ "items": {
2742
+ "anyOf": [
2743
+ {
2744
+ "$ref": "#/definitions/fontSize_mark"
2745
+ },
2746
+ {
2747
+ "$ref": "#/definitions/indentation_mark"
2748
+ }
2749
+ ]
2750
+ }
2751
+ }
2752
+ },
2753
+ "additionalProperties": true
2754
+ }
2755
+ ]
2756
+ },
2757
+ "paragraph_with_font_size_node": {
2758
+ "allOf": [
2759
+ {
2760
+ "$ref": "#/definitions/paragraph_node"
2761
+ },
2762
+ {
2763
+ "type": "object",
2764
+ "properties": {
2765
+ "marks": {
2766
+ "type": "array",
2767
+ "items": {
2768
+ "$ref": "#/definitions/fontSize_mark"
2769
+ }
2770
+ }
2771
+ },
2772
+ "additionalProperties": true
2773
+ }
2774
+ ]
2775
+ },
2640
2776
  "paragraph_with_indentation_node": {
2641
2777
  "allOf": [
2642
2778
  {
@@ -2830,6 +2966,9 @@
2830
2966
  {
2831
2967
  "$ref": "#/definitions/paragraph_with_alignment_node"
2832
2968
  },
2969
+ {
2970
+ "$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
2971
+ },
2833
2972
  {
2834
2973
  "$ref": "#/definitions/panel_node"
2835
2974
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.1.0",
3
+ "version": "52.2.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/"
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@atlaskit/adf-schema-generator": "^2.1.0",
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
- "@atlaskit/tmp-editor-statsig": "^32.3.0",
45
+ "@atlaskit/tmp-editor-statsig": "^33.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "css-color-names": "0.0.4",
48
48
  "linkify-it": "^3.0.3",
@@ -66,6 +66,7 @@ const panel = {
66
66
  items: [
67
67
  [
68
68
  'paragraph_with_no_marks',
69
+ 'paragraph_with_font_size',
69
70
  'heading_with_no_marks',
70
71
  'bulletList',
71
72
  'orderedList',