@atlaskit/adf-schema 33.1.2 → 33.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.
@@ -2764,6 +2764,141 @@
2764
2764
  }
2765
2765
  ]
2766
2766
  },
2767
+ "extensionFrame_node": {
2768
+ "type": "object",
2769
+ "properties": {
2770
+ "type": {
2771
+ "enum": [
2772
+ "extensionFrame"
2773
+ ]
2774
+ },
2775
+ "content": {
2776
+ "type": "array",
2777
+ "items": {
2778
+ "anyOf": [
2779
+ {
2780
+ "$ref": "#/definitions/codeBlock_with_no_marks_node"
2781
+ },
2782
+ {
2783
+ "$ref": "#/definitions/blockCard_node"
2784
+ },
2785
+ {
2786
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2787
+ },
2788
+ {
2789
+ "$ref": "#/definitions/mediaSingle_caption_node"
2790
+ },
2791
+ {
2792
+ "$ref": "#/definitions/mediaSingle_full_node"
2793
+ },
2794
+ {
2795
+ "$ref": "#/definitions/bulletList_node"
2796
+ },
2797
+ {
2798
+ "$ref": "#/definitions/orderedList_node"
2799
+ },
2800
+ {
2801
+ "$ref": "#/definitions/heading_with_no_marks_node"
2802
+ },
2803
+ {
2804
+ "$ref": "#/definitions/panel_node"
2805
+ },
2806
+ {
2807
+ "$ref": "#/definitions/blockquote_node"
2808
+ },
2809
+ {
2810
+ "$ref": "#/definitions/rule_node"
2811
+ },
2812
+ {
2813
+ "$ref": "#/definitions/mediaGroup_node"
2814
+ },
2815
+ {
2816
+ "$ref": "#/definitions/decisionList_node"
2817
+ },
2818
+ {
2819
+ "$ref": "#/definitions/taskList_node"
2820
+ },
2821
+ {
2822
+ "$ref": "#/definitions/extension_with_marks_node"
2823
+ },
2824
+ {
2825
+ "$ref": "#/definitions/embedCard_node"
2826
+ },
2827
+ {
2828
+ "$ref": "#/definitions/table_node"
2829
+ },
2830
+ {
2831
+ "$ref": "#/definitions/bodiedExtension_with_marks_node"
2832
+ }
2833
+ ]
2834
+ },
2835
+ "minItems": 1
2836
+ }
2837
+ },
2838
+ "required": [
2839
+ "type",
2840
+ "content"
2841
+ ],
2842
+ "additionalProperties": false
2843
+ },
2844
+ "multiBodiedExtension_node": {
2845
+ "type": "object",
2846
+ "properties": {
2847
+ "type": {
2848
+ "enum": [
2849
+ "multiBodiedExtension"
2850
+ ]
2851
+ },
2852
+ "attrs": {
2853
+ "type": "object",
2854
+ "properties": {
2855
+ "extensionKey": {
2856
+ "type": "string",
2857
+ "minLength": 1
2858
+ },
2859
+ "extensionType": {
2860
+ "type": "string",
2861
+ "minLength": 1
2862
+ },
2863
+ "parameters": {},
2864
+ "text": {
2865
+ "type": "string"
2866
+ },
2867
+ "layout": {
2868
+ "enum": [
2869
+ "wide",
2870
+ "full-width",
2871
+ "default"
2872
+ ]
2873
+ },
2874
+ "localId": {
2875
+ "type": "string",
2876
+ "minLength": 1
2877
+ }
2878
+ },
2879
+ "required": [
2880
+ "extensionKey",
2881
+ "extensionType"
2882
+ ],
2883
+ "additionalProperties": false
2884
+ },
2885
+ "marks": {
2886
+ "type": "array"
2887
+ },
2888
+ "content": {
2889
+ "type": "array",
2890
+ "items": {
2891
+ "$ref": "#/definitions/extensionFrame_node"
2892
+ }
2893
+ }
2894
+ },
2895
+ "required": [
2896
+ "type",
2897
+ "attrs",
2898
+ "content"
2899
+ ],
2900
+ "additionalProperties": false
2901
+ },
2767
2902
  "doc_node": {
2768
2903
  "type": "object",
2769
2904
  "properties": {
@@ -2861,6 +2996,9 @@
2861
2996
  },
2862
2997
  {
2863
2998
  "$ref": "#/definitions/layoutSection_with_single_column_node"
2999
+ },
3000
+ {
3001
+ "$ref": "#/definitions/multiBodiedExtension_node"
2864
3002
  }
2865
3003
  ]
2866
3004
  }
@@ -1,6 +1,6 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
2
2
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, } from './schema';
3
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, } from './schema';
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, } from './schema';
5
5
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
6
6
  export type { Match, NameToEmoji } from './utils';
@@ -1,5 +1,5 @@
1
- export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
2
- export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
1
+ export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } from './nodes';
2
+ export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
3
3
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, 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, } from './marks';
@@ -4,6 +4,7 @@ import { ExpandWithBreakoutDefinition as ExpandWithBreakout } from './expand';
4
4
  import { LayoutSectionDefinition as LayoutSection } from './layout-section';
5
5
  import { ParagraphWithIndentationDefinition } from './paragraph';
6
6
  import { BlockContent } from './types/block-content';
7
+ import { MultiBodiedExtensionDefinition as MultiBodiedExtension } from './multi-bodied-extension';
7
8
  /**
8
9
  * @name doc_node
9
10
  */
@@ -13,6 +14,6 @@ export interface DocNode {
13
14
  /**
14
15
  * @allowUnsupportedBlock true
15
16
  */
16
- content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandWithBreakout | ParagraphWithIndentationDefinition>;
17
+ content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandWithBreakout | ParagraphWithIndentationDefinition | MultiBodiedExtension>;
17
18
  }
18
19
  export declare const doc: NodeSpec;
@@ -53,12 +53,6 @@ export { taskList, taskListSelector } from './task-list';
53
53
  export type { TaskListDefinition, TaskListContent } from './task-list';
54
54
  export { taskItem } from './task-item';
55
55
  export type { TaskItemDefinition } from './task-item';
56
- export { extension } from './extension';
57
- export type { ExtensionDefinition } from './extension';
58
- export { inlineExtension } from './inline-extension';
59
- export type { InlineExtensionDefinition } from './inline-extension';
60
- export { bodiedExtension } from './bodied-extension';
61
- export type { BodiedExtensionDefinition } from './bodied-extension';
62
56
  export { date } from './date';
63
57
  export type { DateDefinition } from './date';
64
58
  export { placeholder } from './placeholder';
@@ -91,3 +85,11 @@ export type { Layout as ExtensionLayout } from './types/extensions';
91
85
  export { embedCard } from './embed-card';
92
86
  export type { EmbedCardDefinition, EmbedCardAttributes } from './embed-card';
93
87
  export type { RichMediaAttributes, ExtendedMediaAttributes, Layout as RichMediaLayout, } from './types/rich-media-common';
88
+ export { extension } from './extension';
89
+ export type { ExtensionDefinition } from './extension';
90
+ export { inlineExtension } from './inline-extension';
91
+ export type { InlineExtensionDefinition } from './inline-extension';
92
+ export { bodiedExtension } from './bodied-extension';
93
+ export type { BodiedExtensionDefinition } from './bodied-extension';
94
+ export type { ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './multi-bodied-extension';
95
+ export { extensionFrame, multiBodiedExtension } from './multi-bodied-extension';
@@ -0,0 +1,50 @@
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
+ import { ExtensionAttributes } from './types/extensions';
3
+ import { BodiedExtensionDefinition as BodiedExtension } from './bodied-extension';
4
+ import { PanelDefinition as Panel } from './panel';
5
+ import { ParagraphDefinition as Paragraph } from './paragraph';
6
+ import { BlockQuoteDefinition as Blockquote } from './blockquote';
7
+ import { OrderedListDefinition as OrderedList } from './types/list';
8
+ import { BulletListDefinition as BulletList } from './types/list';
9
+ import { RuleDefinition as Rule } from './rule';
10
+ import { HeadingDefinition as Heading } from './heading';
11
+ import { CodeBlockDefinition as CodeBlock } from './code-block';
12
+ import { MediaGroupDefinition as MediaGroup } from './media-group';
13
+ import { MediaSingleDefinition as MediaSingle } from './media-single';
14
+ import { DecisionListDefinition as DecisionList } from './decision-list';
15
+ import { TaskListDefinition as TaskList } from './task-list';
16
+ import { TableDefinition as Table } from './tableNodes';
17
+ import { ExtensionDefinition as Extension } from './extension';
18
+ import { BlockCardDefinition as BlockCard } from './block-card';
19
+ import { EmbedCardDefinition as EmbedCard } from './embed-card';
20
+ /**
21
+ * @stage 0
22
+ * @name extensionFrame_node
23
+ * @description Wraps the block content
24
+ */
25
+ export interface ExtensionFrameDefinition {
26
+ type: 'extensionFrame';
27
+ /**
28
+ * @minItems 1
29
+ */
30
+ content: Array<BodiedExtension | Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard>;
31
+ }
32
+ /**
33
+ * @returns NodeSpec for ExtensionFrameDefinition
34
+ */
35
+ export declare const extensionFrame: NodeSpec;
36
+ /**
37
+ * @stage 0
38
+ * @name multiBodiedExtension_node
39
+ * @description Wraps multiple extensionFrame objects.
40
+ */
41
+ export interface MultiBodiedExtensionDefinition {
42
+ type: 'multiBodiedExtension';
43
+ attrs: ExtensionAttributes;
44
+ marks?: Array<any>;
45
+ /**
46
+ * @minLength 1
47
+ */
48
+ content: Array<ExtensionFrameDefinition>;
49
+ }
50
+ export declare const multiBodiedExtension: NodeSpec;
@@ -2764,6 +2764,141 @@
2764
2764
  }
2765
2765
  ]
2766
2766
  },
2767
+ "extensionFrame_node": {
2768
+ "type": "object",
2769
+ "properties": {
2770
+ "type": {
2771
+ "enum": [
2772
+ "extensionFrame"
2773
+ ]
2774
+ },
2775
+ "content": {
2776
+ "type": "array",
2777
+ "items": {
2778
+ "anyOf": [
2779
+ {
2780
+ "$ref": "#/definitions/codeBlock_with_no_marks_node"
2781
+ },
2782
+ {
2783
+ "$ref": "#/definitions/blockCard_node"
2784
+ },
2785
+ {
2786
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2787
+ },
2788
+ {
2789
+ "$ref": "#/definitions/mediaSingle_caption_node"
2790
+ },
2791
+ {
2792
+ "$ref": "#/definitions/mediaSingle_full_node"
2793
+ },
2794
+ {
2795
+ "$ref": "#/definitions/bulletList_node"
2796
+ },
2797
+ {
2798
+ "$ref": "#/definitions/orderedList_node"
2799
+ },
2800
+ {
2801
+ "$ref": "#/definitions/heading_with_no_marks_node"
2802
+ },
2803
+ {
2804
+ "$ref": "#/definitions/panel_node"
2805
+ },
2806
+ {
2807
+ "$ref": "#/definitions/blockquote_node"
2808
+ },
2809
+ {
2810
+ "$ref": "#/definitions/rule_node"
2811
+ },
2812
+ {
2813
+ "$ref": "#/definitions/mediaGroup_node"
2814
+ },
2815
+ {
2816
+ "$ref": "#/definitions/decisionList_node"
2817
+ },
2818
+ {
2819
+ "$ref": "#/definitions/taskList_node"
2820
+ },
2821
+ {
2822
+ "$ref": "#/definitions/extension_with_marks_node"
2823
+ },
2824
+ {
2825
+ "$ref": "#/definitions/embedCard_node"
2826
+ },
2827
+ {
2828
+ "$ref": "#/definitions/table_node"
2829
+ },
2830
+ {
2831
+ "$ref": "#/definitions/bodiedExtension_with_marks_node"
2832
+ }
2833
+ ]
2834
+ },
2835
+ "minItems": 1
2836
+ }
2837
+ },
2838
+ "required": [
2839
+ "type",
2840
+ "content"
2841
+ ],
2842
+ "additionalProperties": false
2843
+ },
2844
+ "multiBodiedExtension_node": {
2845
+ "type": "object",
2846
+ "properties": {
2847
+ "type": {
2848
+ "enum": [
2849
+ "multiBodiedExtension"
2850
+ ]
2851
+ },
2852
+ "attrs": {
2853
+ "type": "object",
2854
+ "properties": {
2855
+ "extensionKey": {
2856
+ "type": "string",
2857
+ "minLength": 1
2858
+ },
2859
+ "extensionType": {
2860
+ "type": "string",
2861
+ "minLength": 1
2862
+ },
2863
+ "parameters": {},
2864
+ "text": {
2865
+ "type": "string"
2866
+ },
2867
+ "layout": {
2868
+ "enum": [
2869
+ "wide",
2870
+ "full-width",
2871
+ "default"
2872
+ ]
2873
+ },
2874
+ "localId": {
2875
+ "type": "string",
2876
+ "minLength": 1
2877
+ }
2878
+ },
2879
+ "required": [
2880
+ "extensionKey",
2881
+ "extensionType"
2882
+ ],
2883
+ "additionalProperties": false
2884
+ },
2885
+ "marks": {
2886
+ "type": "array"
2887
+ },
2888
+ "content": {
2889
+ "type": "array",
2890
+ "items": {
2891
+ "$ref": "#/definitions/extensionFrame_node"
2892
+ }
2893
+ }
2894
+ },
2895
+ "required": [
2896
+ "type",
2897
+ "attrs",
2898
+ "content"
2899
+ ],
2900
+ "additionalProperties": false
2901
+ },
2767
2902
  "doc_node": {
2768
2903
  "type": "object",
2769
2904
  "properties": {
@@ -2861,6 +2996,9 @@
2861
2996
  },
2862
2997
  {
2863
2998
  "$ref": "#/definitions/layoutSection_with_single_column_node"
2999
+ },
3000
+ {
3001
+ "$ref": "#/definitions/multiBodiedExtension_node"
2864
3002
  }
2865
3003
  ]
2866
3004
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "33.1.2",
3
+ "version": "33.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/"
@@ -34,7 +34,6 @@
34
34
  "@atlaskit/codemod-utils": "^4.2.0",
35
35
  "@atlaskit/editor-prosemirror": "*",
36
36
  "@atlaskit/json-schema-generator": "^3.3.6",
37
- "@atlaskit/platform-feature-flags": "^0.2.4",
38
37
  "@babel/runtime": "^7.0.0",
39
38
  "css-color-names": "0.0.4",
40
39
  "linkify-it": "^2.0.3",
@@ -42,8 +41,6 @@
42
41
  },
43
42
  "devDependencies": {
44
43
  "@atlassian/adf-schema-json": "^1.2.0",
45
- "@atlaskit/platform-feature-flags": "^0.2.4",
46
- "@atlassian/feature-flags-test-utils": "^0.1.2",
47
44
  "@babel/cli": "^7.22.9",
48
45
  "@babel/core": "^7.22.9",
49
46
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -71,13 +68,5 @@
71
68
  "styled-components": "^3.2.6",
72
69
  "ts-jest": "^29.1.1",
73
70
  "typescript": "~4.9.5"
74
- },
75
- "platform-feature-flags": {
76
- "platform.editor.dm-invert-tablecell-bgcolor_9fz6s": {
77
- "type": "boolean"
78
- },
79
- "platform.editor.dm-invert-text-color_cvho2": {
80
- "type": "boolean"
81
- }
82
71
  }
83
72
  }