@atlaskit/adf-schema 56.7.2 → 57.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 (64) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/compass.yml +3 -3
  3. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +29 -4
  5. package/dist/cjs/next-schema/nodes/layoutColumn.js +3 -1
  6. package/dist/cjs/next-schema/nodes/panel.js +9 -4
  7. package/dist/cjs/schema/marks/background-color.js +0 -2
  8. package/dist/cjs/schema/marks/strong.js +0 -2
  9. package/dist/cjs/schema/marks/text-color.js +0 -2
  10. package/dist/cjs/schema/nodes/code-block.js +0 -3
  11. package/dist/cjs/schema/nodes/media.js +3 -7
  12. package/dist/cjs/schema/nodes/panel.js +2 -2
  13. package/dist/cjs/schema/nodes/status.js +0 -1
  14. package/dist/cjs/schema/nodes/tableNodes.js +0 -4
  15. package/dist/cjs/schema/sanitizeNodes.js +0 -3
  16. package/dist/cjs/steps/batch-attrs-step.js +1 -1
  17. package/dist/cjs/utils/colors.js +0 -6
  18. package/dist/cjs/utils/lch-color-inversion.js +0 -2
  19. package/dist/cjs/utils/uuid.js +4 -7
  20. package/dist/cjs/validator-schema/generated/validatorSpec.js +29 -4
  21. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  22. package/dist/es2019/next-schema/generated/nodeTypes.js +28 -3
  23. package/dist/es2019/next-schema/index.js +1 -1
  24. package/dist/es2019/next-schema/nodes/layoutColumn.js +3 -1
  25. package/dist/es2019/next-schema/nodes/panel.js +9 -4
  26. package/dist/es2019/schema/marks/background-color.js +0 -2
  27. package/dist/es2019/schema/marks/strong.js +0 -2
  28. package/dist/es2019/schema/marks/text-color.js +0 -2
  29. package/dist/es2019/schema/nodes/code-block.js +0 -3
  30. package/dist/es2019/schema/nodes/media.js +1 -4
  31. package/dist/es2019/schema/nodes/panel.js +1 -1
  32. package/dist/es2019/schema/nodes/status.js +0 -1
  33. package/dist/es2019/schema/nodes/tableNodes.js +0 -4
  34. package/dist/es2019/schema/sanitizeNodes.js +0 -3
  35. package/dist/es2019/steps/batch-attrs-step.js +1 -0
  36. package/dist/es2019/utils/colors.js +0 -6
  37. package/dist/es2019/utils/lch-color-inversion.js +0 -2
  38. package/dist/es2019/utils/uuid.js +1 -3
  39. package/dist/es2019/validator-schema/generated/validatorSpec.js +28 -3
  40. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  41. package/dist/esm/next-schema/generated/nodeTypes.js +28 -3
  42. package/dist/esm/next-schema/index.js +1 -1
  43. package/dist/esm/next-schema/nodes/layoutColumn.js +3 -1
  44. package/dist/esm/next-schema/nodes/panel.js +9 -4
  45. package/dist/esm/schema/marks/background-color.js +0 -2
  46. package/dist/esm/schema/marks/strong.js +0 -2
  47. package/dist/esm/schema/marks/text-color.js +0 -2
  48. package/dist/esm/schema/nodes/code-block.js +0 -3
  49. package/dist/esm/schema/nodes/media.js +3 -7
  50. package/dist/esm/schema/nodes/panel.js +1 -1
  51. package/dist/esm/schema/nodes/status.js +0 -1
  52. package/dist/esm/schema/nodes/tableNodes.js +0 -4
  53. package/dist/esm/schema/sanitizeNodes.js +0 -3
  54. package/dist/esm/steps/batch-attrs-step.js +1 -0
  55. package/dist/esm/utils/colors.js +0 -6
  56. package/dist/esm/utils/lch-color-inversion.js +0 -2
  57. package/dist/esm/utils/uuid.js +4 -7
  58. package/dist/esm/validator-schema/generated/validatorSpec.js +28 -3
  59. package/dist/json-schema/v1/stage-0.json +215 -1
  60. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  61. package/dist/types/next-schema/generated/nodeTypes.d.ts +21 -6
  62. package/dist/types/validator-schema/generated/validatorSpec.d.ts +26 -1
  63. package/json-schema/v1/stage-0.json +215 -1
  64. package/package.json +3 -3
@@ -547,6 +547,9 @@
547
547
  {
548
548
  "$ref": "#/definitions/panel_node"
549
549
  },
550
+ {
551
+ "$ref": "#/definitions/panel_c1_node"
552
+ },
550
553
  {
551
554
  "$ref": "#/definitions/rule_node"
552
555
  },
@@ -995,6 +998,9 @@
995
998
  {
996
999
  "$ref": "#/definitions/panel_node"
997
1000
  },
1001
+ {
1002
+ "$ref": "#/definitions/panel_c1_node"
1003
+ },
998
1004
  {
999
1005
  "$ref": "#/definitions/table_node"
1000
1006
  },
@@ -1010,6 +1016,9 @@
1010
1016
  {
1011
1017
  "$ref": "#/definitions/panel_root_only_node"
1012
1018
  },
1019
+ {
1020
+ "$ref": "#/definitions/panel_c1_root_only_node"
1021
+ },
1013
1022
  {
1014
1023
  "$ref": "#/definitions/rule_root_only_node"
1015
1024
  },
@@ -1798,7 +1807,14 @@
1798
1807
  "content": {
1799
1808
  "type": "array",
1800
1809
  "items": {
1801
- "$ref": "#/definitions/block_content"
1810
+ "anyOf": [
1811
+ {
1812
+ "$ref": "#/definitions/block_content"
1813
+ },
1814
+ {
1815
+ "$ref": "#/definitions/panel_c1_node"
1816
+ }
1817
+ ]
1802
1818
  },
1803
1819
  "minItems": 1
1804
1820
  }
@@ -2600,6 +2616,204 @@
2600
2616
  "additionalProperties": false,
2601
2617
  "required": ["type", "content"]
2602
2618
  },
2619
+ "panel_c1_node": {
2620
+ "type": "object",
2621
+ "properties": {
2622
+ "type": {
2623
+ "enum": ["panel"]
2624
+ },
2625
+ "attrs": {
2626
+ "type": "object",
2627
+ "properties": {
2628
+ "panelType": {
2629
+ "enum": [
2630
+ "info",
2631
+ "note",
2632
+ "tip",
2633
+ "warning",
2634
+ "error",
2635
+ "success",
2636
+ "custom"
2637
+ ]
2638
+ },
2639
+ "panelIcon": {
2640
+ "type": "string"
2641
+ },
2642
+ "panelIconId": {
2643
+ "type": "string"
2644
+ },
2645
+ "panelIconText": {
2646
+ "type": "string"
2647
+ },
2648
+ "panelColor": {
2649
+ "type": "string"
2650
+ },
2651
+ "localId": {
2652
+ "type": "string"
2653
+ }
2654
+ },
2655
+ "required": ["panelType"],
2656
+ "additionalProperties": false
2657
+ },
2658
+ "content": {
2659
+ "type": "array",
2660
+ "items": {
2661
+ "anyOf": [
2662
+ {
2663
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2664
+ },
2665
+ {
2666
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2667
+ },
2668
+ {
2669
+ "$ref": "#/definitions/heading_with_no_marks_node"
2670
+ },
2671
+ {
2672
+ "$ref": "#/definitions/bulletList_node"
2673
+ },
2674
+ {
2675
+ "$ref": "#/definitions/orderedList_node"
2676
+ },
2677
+ {
2678
+ "$ref": "#/definitions/blockCard_node"
2679
+ },
2680
+ {
2681
+ "$ref": "#/definitions/mediaGroup_node"
2682
+ },
2683
+ {
2684
+ "$ref": "#/definitions/mediaSingle_caption_node"
2685
+ },
2686
+ {
2687
+ "$ref": "#/definitions/mediaSingle_full_node"
2688
+ },
2689
+ {
2690
+ "$ref": "#/definitions/codeBlock_node"
2691
+ },
2692
+ {
2693
+ "$ref": "#/definitions/taskList_node"
2694
+ },
2695
+ {
2696
+ "$ref": "#/definitions/rule_node"
2697
+ },
2698
+ {
2699
+ "$ref": "#/definitions/decisionList_node"
2700
+ },
2701
+ {
2702
+ "$ref": "#/definitions/extension_with_marks_node"
2703
+ },
2704
+ {
2705
+ "$ref": "#/definitions/table_node"
2706
+ }
2707
+ ]
2708
+ },
2709
+ "minItems": 1
2710
+ }
2711
+ },
2712
+ "additionalProperties": false,
2713
+ "required": ["type", "attrs", "content"]
2714
+ },
2715
+ "panel_c1_root_only_node": {
2716
+ "type": "object",
2717
+ "properties": {
2718
+ "type": {
2719
+ "enum": ["panel"]
2720
+ },
2721
+ "marks": {
2722
+ "type": "array",
2723
+ "items": {
2724
+ "$ref": "#/definitions/breakout_mark"
2725
+ }
2726
+ },
2727
+ "attrs": {
2728
+ "type": "object",
2729
+ "properties": {
2730
+ "panelType": {
2731
+ "enum": [
2732
+ "info",
2733
+ "note",
2734
+ "tip",
2735
+ "warning",
2736
+ "error",
2737
+ "success",
2738
+ "custom"
2739
+ ]
2740
+ },
2741
+ "panelIcon": {
2742
+ "type": "string"
2743
+ },
2744
+ "panelIconId": {
2745
+ "type": "string"
2746
+ },
2747
+ "panelIconText": {
2748
+ "type": "string"
2749
+ },
2750
+ "panelColor": {
2751
+ "type": "string"
2752
+ },
2753
+ "localId": {
2754
+ "type": "string"
2755
+ }
2756
+ },
2757
+ "required": ["panelType"],
2758
+ "additionalProperties": false
2759
+ },
2760
+ "content": {
2761
+ "type": "array",
2762
+ "items": {
2763
+ "anyOf": [
2764
+ {
2765
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2766
+ },
2767
+ {
2768
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2769
+ },
2770
+ {
2771
+ "$ref": "#/definitions/heading_with_no_marks_node"
2772
+ },
2773
+ {
2774
+ "$ref": "#/definitions/bulletList_node"
2775
+ },
2776
+ {
2777
+ "$ref": "#/definitions/orderedList_node"
2778
+ },
2779
+ {
2780
+ "$ref": "#/definitions/blockCard_node"
2781
+ },
2782
+ {
2783
+ "$ref": "#/definitions/mediaGroup_node"
2784
+ },
2785
+ {
2786
+ "$ref": "#/definitions/mediaSingle_caption_node"
2787
+ },
2788
+ {
2789
+ "$ref": "#/definitions/mediaSingle_full_node"
2790
+ },
2791
+ {
2792
+ "$ref": "#/definitions/codeBlock_node"
2793
+ },
2794
+ {
2795
+ "$ref": "#/definitions/taskList_node"
2796
+ },
2797
+ {
2798
+ "$ref": "#/definitions/rule_node"
2799
+ },
2800
+ {
2801
+ "$ref": "#/definitions/decisionList_node"
2802
+ },
2803
+ {
2804
+ "$ref": "#/definitions/extension_with_marks_node"
2805
+ },
2806
+ {
2807
+ "$ref": "#/definitions/table_node"
2808
+ }
2809
+ ]
2810
+ },
2811
+ "minItems": 1
2812
+ }
2813
+ },
2814
+ "additionalProperties": false,
2815
+ "required": ["type", "attrs", "content"]
2816
+ },
2603
2817
  "panel_node": {
2604
2818
  "type": "object",
2605
2819
  "properties": {
@@ -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, 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>;
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, PanelC1Stage0Definition, 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 | PanelC1Stage0Definition | 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
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>;
@@ -106,7 +106,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
106
106
  export declare const bodiedExtensionWithMarks: PMNodeSpecFactoryInstance<BodiedExtensionWithMarksNode>;
107
107
  export interface BodiedSyncBlockDefinition {
108
108
  type: 'bodiedSyncBlock';
109
- content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelC1Definition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
109
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelC1Stage0Definition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
110
110
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
111
111
  attrs: {
112
112
  resourceId: string;
@@ -233,7 +233,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
233
233
  export declare const decisionList: PMNodeSpecFactoryInstance<DecisionListNode>;
234
234
  export interface DocDefinition {
235
235
  type: 'doc';
236
- content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | SyncBlockDefinition>;
236
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelC1RootOnlyStage0Definition | PanelC1Stage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | SyncBlockDefinition>;
237
237
  }
238
238
  export type DocNode = PMNode & DocDefinition;
239
239
  export declare const doc: PMNodeSpecFactoryInstance<DocNode>;
@@ -465,7 +465,7 @@ export type InlineExtensionWithMarksNode = PMNode & InlineExtensionWithMarksDefi
465
465
  export declare const inlineExtensionWithMarks: PMNodeSpecFactoryInstance<InlineExtensionWithMarksNode>;
466
466
  export interface LayoutColumnDefinition {
467
467
  type: 'layoutColumn';
468
- content: Array<BlockDefinition | UnsupportedBlockDefinition>;
468
+ content: Array<BlockDefinition | PanelC1Stage0Definition | UnsupportedBlockDefinition>;
469
469
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
470
470
  attrs: {
471
471
  width: number;
@@ -761,7 +761,22 @@ export interface PanelDefinition {
761
761
  }
762
762
  export type PanelNode = PMNode & PanelDefinition;
763
763
  export declare const panel: PMNodeSpecFactoryInstance<PanelNode>;
764
- export interface PanelC1Definition {
764
+ export interface PanelC1RootOnlyStage0Definition {
765
+ type: 'panel';
766
+ content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
767
+ marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
768
+ attrs: {
769
+ panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
770
+ panelIcon?: string;
771
+ panelIconId?: string;
772
+ panelIconText?: string;
773
+ panelColor?: string;
774
+ localId?: string;
775
+ };
776
+ }
777
+ export type PanelC1RootOnlyStage0Node = PMNode & PanelC1RootOnlyStage0Definition;
778
+ export declare const panelC1RootOnlyStage0: PMNodeSpecFactoryInstance<PanelC1RootOnlyStage0Node>;
779
+ export interface PanelC1Stage0Definition {
765
780
  type: 'panel';
766
781
  content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
767
782
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
@@ -774,8 +789,8 @@ export interface PanelC1Definition {
774
789
  localId?: string;
775
790
  };
776
791
  }
777
- export type PanelC1Node = PMNode & PanelC1Definition;
778
- export declare const panelC1: PMNodeSpecFactoryInstance<PanelC1Node>;
792
+ export type PanelC1Stage0Node = PMNode & PanelC1Stage0Definition;
793
+ export declare const panelC1Stage0: PMNodeSpecFactoryInstance<PanelC1Stage0Node>;
779
794
  export interface PanelRootOnlyStage0Definition {
780
795
  type: 'panel';
781
796
  content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
@@ -981,7 +981,7 @@ export declare const layoutColumn: {
981
981
  };
982
982
  content: {
983
983
  allowUnsupportedBlock: boolean;
984
- items: string[];
984
+ items: string[][];
985
985
  minItems: number;
986
986
  type: string;
987
987
  };
@@ -1566,6 +1566,31 @@ export declare const panel: {
1566
1566
  };
1567
1567
  };
1568
1568
  };
1569
+ export declare const panel_c1: (string | {
1570
+ props: {
1571
+ content: {
1572
+ allowUnsupportedBlock: boolean;
1573
+ items: string[][];
1574
+ minItems: number;
1575
+ type: string;
1576
+ };
1577
+ };
1578
+ })[];
1579
+ export declare const panel_c1_root_only: (string | {
1580
+ props: {
1581
+ content: {
1582
+ allowUnsupportedBlock: boolean;
1583
+ items: string[][];
1584
+ minItems: number;
1585
+ type: string;
1586
+ };
1587
+ marks: {
1588
+ items: string[];
1589
+ optional: boolean;
1590
+ type: string;
1591
+ };
1592
+ };
1593
+ })[];
1569
1594
  export declare const panel_root_only: (string | {
1570
1595
  props: {
1571
1596
  marks: {
@@ -547,6 +547,9 @@
547
547
  {
548
548
  "$ref": "#/definitions/panel_node"
549
549
  },
550
+ {
551
+ "$ref": "#/definitions/panel_c1_node"
552
+ },
550
553
  {
551
554
  "$ref": "#/definitions/rule_node"
552
555
  },
@@ -995,6 +998,9 @@
995
998
  {
996
999
  "$ref": "#/definitions/panel_node"
997
1000
  },
1001
+ {
1002
+ "$ref": "#/definitions/panel_c1_node"
1003
+ },
998
1004
  {
999
1005
  "$ref": "#/definitions/table_node"
1000
1006
  },
@@ -1010,6 +1016,9 @@
1010
1016
  {
1011
1017
  "$ref": "#/definitions/panel_root_only_node"
1012
1018
  },
1019
+ {
1020
+ "$ref": "#/definitions/panel_c1_root_only_node"
1021
+ },
1013
1022
  {
1014
1023
  "$ref": "#/definitions/rule_root_only_node"
1015
1024
  },
@@ -1798,7 +1807,14 @@
1798
1807
  "content": {
1799
1808
  "type": "array",
1800
1809
  "items": {
1801
- "$ref": "#/definitions/block_content"
1810
+ "anyOf": [
1811
+ {
1812
+ "$ref": "#/definitions/block_content"
1813
+ },
1814
+ {
1815
+ "$ref": "#/definitions/panel_c1_node"
1816
+ }
1817
+ ]
1802
1818
  },
1803
1819
  "minItems": 1
1804
1820
  }
@@ -2600,6 +2616,204 @@
2600
2616
  "additionalProperties": false,
2601
2617
  "required": ["type", "content"]
2602
2618
  },
2619
+ "panel_c1_node": {
2620
+ "type": "object",
2621
+ "properties": {
2622
+ "type": {
2623
+ "enum": ["panel"]
2624
+ },
2625
+ "attrs": {
2626
+ "type": "object",
2627
+ "properties": {
2628
+ "panelType": {
2629
+ "enum": [
2630
+ "info",
2631
+ "note",
2632
+ "tip",
2633
+ "warning",
2634
+ "error",
2635
+ "success",
2636
+ "custom"
2637
+ ]
2638
+ },
2639
+ "panelIcon": {
2640
+ "type": "string"
2641
+ },
2642
+ "panelIconId": {
2643
+ "type": "string"
2644
+ },
2645
+ "panelIconText": {
2646
+ "type": "string"
2647
+ },
2648
+ "panelColor": {
2649
+ "type": "string"
2650
+ },
2651
+ "localId": {
2652
+ "type": "string"
2653
+ }
2654
+ },
2655
+ "required": ["panelType"],
2656
+ "additionalProperties": false
2657
+ },
2658
+ "content": {
2659
+ "type": "array",
2660
+ "items": {
2661
+ "anyOf": [
2662
+ {
2663
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2664
+ },
2665
+ {
2666
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2667
+ },
2668
+ {
2669
+ "$ref": "#/definitions/heading_with_no_marks_node"
2670
+ },
2671
+ {
2672
+ "$ref": "#/definitions/bulletList_node"
2673
+ },
2674
+ {
2675
+ "$ref": "#/definitions/orderedList_node"
2676
+ },
2677
+ {
2678
+ "$ref": "#/definitions/blockCard_node"
2679
+ },
2680
+ {
2681
+ "$ref": "#/definitions/mediaGroup_node"
2682
+ },
2683
+ {
2684
+ "$ref": "#/definitions/mediaSingle_caption_node"
2685
+ },
2686
+ {
2687
+ "$ref": "#/definitions/mediaSingle_full_node"
2688
+ },
2689
+ {
2690
+ "$ref": "#/definitions/codeBlock_node"
2691
+ },
2692
+ {
2693
+ "$ref": "#/definitions/taskList_node"
2694
+ },
2695
+ {
2696
+ "$ref": "#/definitions/rule_node"
2697
+ },
2698
+ {
2699
+ "$ref": "#/definitions/decisionList_node"
2700
+ },
2701
+ {
2702
+ "$ref": "#/definitions/extension_with_marks_node"
2703
+ },
2704
+ {
2705
+ "$ref": "#/definitions/table_node"
2706
+ }
2707
+ ]
2708
+ },
2709
+ "minItems": 1
2710
+ }
2711
+ },
2712
+ "additionalProperties": false,
2713
+ "required": ["type", "attrs", "content"]
2714
+ },
2715
+ "panel_c1_root_only_node": {
2716
+ "type": "object",
2717
+ "properties": {
2718
+ "type": {
2719
+ "enum": ["panel"]
2720
+ },
2721
+ "marks": {
2722
+ "type": "array",
2723
+ "items": {
2724
+ "$ref": "#/definitions/breakout_mark"
2725
+ }
2726
+ },
2727
+ "attrs": {
2728
+ "type": "object",
2729
+ "properties": {
2730
+ "panelType": {
2731
+ "enum": [
2732
+ "info",
2733
+ "note",
2734
+ "tip",
2735
+ "warning",
2736
+ "error",
2737
+ "success",
2738
+ "custom"
2739
+ ]
2740
+ },
2741
+ "panelIcon": {
2742
+ "type": "string"
2743
+ },
2744
+ "panelIconId": {
2745
+ "type": "string"
2746
+ },
2747
+ "panelIconText": {
2748
+ "type": "string"
2749
+ },
2750
+ "panelColor": {
2751
+ "type": "string"
2752
+ },
2753
+ "localId": {
2754
+ "type": "string"
2755
+ }
2756
+ },
2757
+ "required": ["panelType"],
2758
+ "additionalProperties": false
2759
+ },
2760
+ "content": {
2761
+ "type": "array",
2762
+ "items": {
2763
+ "anyOf": [
2764
+ {
2765
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2766
+ },
2767
+ {
2768
+ "$ref": "#/definitions/paragraph_with_font_size_node"
2769
+ },
2770
+ {
2771
+ "$ref": "#/definitions/heading_with_no_marks_node"
2772
+ },
2773
+ {
2774
+ "$ref": "#/definitions/bulletList_node"
2775
+ },
2776
+ {
2777
+ "$ref": "#/definitions/orderedList_node"
2778
+ },
2779
+ {
2780
+ "$ref": "#/definitions/blockCard_node"
2781
+ },
2782
+ {
2783
+ "$ref": "#/definitions/mediaGroup_node"
2784
+ },
2785
+ {
2786
+ "$ref": "#/definitions/mediaSingle_caption_node"
2787
+ },
2788
+ {
2789
+ "$ref": "#/definitions/mediaSingle_full_node"
2790
+ },
2791
+ {
2792
+ "$ref": "#/definitions/codeBlock_node"
2793
+ },
2794
+ {
2795
+ "$ref": "#/definitions/taskList_node"
2796
+ },
2797
+ {
2798
+ "$ref": "#/definitions/rule_node"
2799
+ },
2800
+ {
2801
+ "$ref": "#/definitions/decisionList_node"
2802
+ },
2803
+ {
2804
+ "$ref": "#/definitions/extension_with_marks_node"
2805
+ },
2806
+ {
2807
+ "$ref": "#/definitions/table_node"
2808
+ }
2809
+ ]
2810
+ },
2811
+ "minItems": 1
2812
+ }
2813
+ },
2814
+ "additionalProperties": false,
2815
+ "required": ["type", "attrs", "content"]
2816
+ },
2603
2817
  "panel_node": {
2604
2818
  "type": "object",
2605
2819
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "56.7.2",
3
+ "version": "57.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/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/adf-schema-generator": "^4.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^8.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^146.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^147.1.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^5.0.2",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@atlaskit/codemod-utils": "^5.0.0",
56
- "@atlassian/adf-schema-json": "^1.34.0",
56
+ "@atlassian/adf-schema-json": "^1.35.0",
57
57
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
58
58
  "@babel/cli": "^7.20.0",
59
59
  "@babel/core": "7.24.9",