@atlaskit/adf-schema 36.12.2 → 36.13.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 (152) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +2 -1
  3. package/dist/cjs/next-schema/groups/blockGroup.js +3 -1
  4. package/dist/cjs/next-schema/groups/inlineGroup.js +3 -1
  5. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  6. package/dist/cjs/next-schema/marks/unsupportedMark.js +16 -0
  7. package/dist/cjs/next-schema/marks/unsupportedNodeAttribute.js +20 -0
  8. package/dist/cjs/next-schema/nodes/blockCard.js +5 -0
  9. package/dist/cjs/next-schema/nodes/blockquote.js +6 -2
  10. package/dist/cjs/next-schema/nodes/bodiedExtension.js +4 -1
  11. package/dist/cjs/next-schema/nodes/caption.js +5 -2
  12. package/dist/cjs/next-schema/nodes/codeBlock.js +6 -2
  13. package/dist/cjs/next-schema/nodes/confluenceUnsupportedBlock.js +16 -0
  14. package/dist/cjs/next-schema/nodes/confluenceUnsupportedInline.js +18 -0
  15. package/dist/cjs/next-schema/nodes/date.js +3 -0
  16. package/dist/cjs/next-schema/nodes/decisionItem.js +5 -1
  17. package/dist/cjs/next-schema/nodes/decisionList.js +5 -1
  18. package/dist/cjs/next-schema/nodes/embedCard.js +3 -0
  19. package/dist/cjs/next-schema/nodes/emoji.js +3 -0
  20. package/dist/cjs/next-schema/nodes/expand.js +4 -1
  21. package/dist/cjs/next-schema/nodes/extension.js +4 -1
  22. package/dist/cjs/next-schema/nodes/extensionFrame.js +3 -1
  23. package/dist/cjs/next-schema/nodes/hardBreak.js +3 -0
  24. package/dist/cjs/next-schema/nodes/heading.js +9 -6
  25. package/dist/cjs/next-schema/nodes/inlineCard.js +4 -1
  26. package/dist/cjs/next-schema/nodes/inlineExtension.js +3 -0
  27. package/dist/cjs/next-schema/nodes/layoutColumn.js +3 -0
  28. package/dist/cjs/next-schema/nodes/layoutSection.js +5 -2
  29. package/dist/cjs/next-schema/nodes/list.js +7 -1
  30. package/dist/cjs/next-schema/nodes/media.js +3 -1
  31. package/dist/cjs/next-schema/nodes/mediaGroup.js +5 -1
  32. package/dist/cjs/next-schema/nodes/mediaInline.js +3 -1
  33. package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -2
  34. package/dist/cjs/next-schema/nodes/mention.js +3 -0
  35. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +3 -0
  36. package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
  37. package/dist/cjs/next-schema/nodes/panel.js +5 -1
  38. package/dist/cjs/next-schema/nodes/paragraph.js +8 -4
  39. package/dist/cjs/next-schema/nodes/placeholder.js +3 -0
  40. package/dist/cjs/next-schema/nodes/status.js +3 -0
  41. package/dist/cjs/next-schema/nodes/table.js +3 -1
  42. package/dist/cjs/next-schema/nodes/tableCell.js +5 -1
  43. package/dist/cjs/next-schema/nodes/tableHeader.js +3 -0
  44. package/dist/cjs/next-schema/nodes/tableRow.js +3 -0
  45. package/dist/cjs/next-schema/nodes/task.js +8 -2
  46. package/dist/cjs/next-schema/nodes/text.js +4 -2
  47. package/dist/cjs/next-schema/nodes/unsupportedBlock.js +18 -0
  48. package/dist/cjs/next-schema/nodes/unsupportedInline.js +18 -0
  49. package/dist/es2019/next-schema/full-schema.adf.js +2 -1
  50. package/dist/es2019/next-schema/groups/blockGroup.js +3 -1
  51. package/dist/es2019/next-schema/groups/inlineGroup.js +3 -1
  52. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  53. package/dist/es2019/next-schema/marks/unsupportedMark.js +10 -0
  54. package/dist/es2019/next-schema/marks/unsupportedNodeAttribute.js +14 -0
  55. package/dist/es2019/next-schema/nodes/blockCard.js +5 -0
  56. package/dist/es2019/next-schema/nodes/blockquote.js +6 -2
  57. package/dist/es2019/next-schema/nodes/bodiedExtension.js +4 -1
  58. package/dist/es2019/next-schema/nodes/caption.js +5 -3
  59. package/dist/es2019/next-schema/nodes/codeBlock.js +6 -2
  60. package/dist/es2019/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
  61. package/dist/es2019/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
  62. package/dist/es2019/next-schema/nodes/date.js +3 -0
  63. package/dist/es2019/next-schema/nodes/decisionItem.js +5 -1
  64. package/dist/es2019/next-schema/nodes/decisionList.js +5 -1
  65. package/dist/es2019/next-schema/nodes/embedCard.js +3 -0
  66. package/dist/es2019/next-schema/nodes/emoji.js +3 -0
  67. package/dist/es2019/next-schema/nodes/expand.js +4 -1
  68. package/dist/es2019/next-schema/nodes/extension.js +4 -1
  69. package/dist/es2019/next-schema/nodes/extensionFrame.js +3 -1
  70. package/dist/es2019/next-schema/nodes/hardBreak.js +3 -0
  71. package/dist/es2019/next-schema/nodes/heading.js +8 -5
  72. package/dist/es2019/next-schema/nodes/inlineCard.js +4 -1
  73. package/dist/es2019/next-schema/nodes/inlineExtension.js +3 -0
  74. package/dist/es2019/next-schema/nodes/layoutColumn.js +3 -0
  75. package/dist/es2019/next-schema/nodes/layoutSection.js +5 -2
  76. package/dist/es2019/next-schema/nodes/list.js +7 -1
  77. package/dist/es2019/next-schema/nodes/media.js +3 -1
  78. package/dist/es2019/next-schema/nodes/mediaGroup.js +5 -1
  79. package/dist/es2019/next-schema/nodes/mediaInline.js +3 -1
  80. package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -2
  81. package/dist/es2019/next-schema/nodes/mention.js +3 -0
  82. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +3 -0
  83. package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
  84. package/dist/es2019/next-schema/nodes/panel.js +5 -1
  85. package/dist/es2019/next-schema/nodes/paragraph.js +8 -4
  86. package/dist/es2019/next-schema/nodes/placeholder.js +3 -0
  87. package/dist/es2019/next-schema/nodes/status.js +3 -0
  88. package/dist/es2019/next-schema/nodes/table.js +3 -1
  89. package/dist/es2019/next-schema/nodes/tableCell.js +5 -1
  90. package/dist/es2019/next-schema/nodes/tableHeader.js +3 -0
  91. package/dist/es2019/next-schema/nodes/tableRow.js +4 -1
  92. package/dist/es2019/next-schema/nodes/task.js +8 -2
  93. package/dist/es2019/next-schema/nodes/text.js +4 -2
  94. package/dist/es2019/next-schema/nodes/unsupportedBlock.js +12 -0
  95. package/dist/es2019/next-schema/nodes/unsupportedInline.js +12 -0
  96. package/dist/esm/next-schema/full-schema.adf.js +2 -1
  97. package/dist/esm/next-schema/groups/blockGroup.js +3 -1
  98. package/dist/esm/next-schema/groups/inlineGroup.js +3 -1
  99. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
  100. package/dist/esm/next-schema/marks/unsupportedMark.js +10 -0
  101. package/dist/esm/next-schema/marks/unsupportedNodeAttribute.js +14 -0
  102. package/dist/esm/next-schema/nodes/blockCard.js +5 -0
  103. package/dist/esm/next-schema/nodes/blockquote.js +6 -2
  104. package/dist/esm/next-schema/nodes/bodiedExtension.js +4 -1
  105. package/dist/esm/next-schema/nodes/caption.js +5 -3
  106. package/dist/esm/next-schema/nodes/codeBlock.js +6 -2
  107. package/dist/esm/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
  108. package/dist/esm/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
  109. package/dist/esm/next-schema/nodes/date.js +3 -0
  110. package/dist/esm/next-schema/nodes/decisionItem.js +5 -1
  111. package/dist/esm/next-schema/nodes/decisionList.js +5 -1
  112. package/dist/esm/next-schema/nodes/embedCard.js +3 -0
  113. package/dist/esm/next-schema/nodes/emoji.js +3 -0
  114. package/dist/esm/next-schema/nodes/expand.js +4 -1
  115. package/dist/esm/next-schema/nodes/extension.js +4 -1
  116. package/dist/esm/next-schema/nodes/extensionFrame.js +3 -1
  117. package/dist/esm/next-schema/nodes/hardBreak.js +3 -0
  118. package/dist/esm/next-schema/nodes/heading.js +8 -5
  119. package/dist/esm/next-schema/nodes/inlineCard.js +4 -1
  120. package/dist/esm/next-schema/nodes/inlineExtension.js +3 -0
  121. package/dist/esm/next-schema/nodes/layoutColumn.js +3 -0
  122. package/dist/esm/next-schema/nodes/layoutSection.js +5 -2
  123. package/dist/esm/next-schema/nodes/list.js +7 -1
  124. package/dist/esm/next-schema/nodes/media.js +3 -1
  125. package/dist/esm/next-schema/nodes/mediaGroup.js +5 -1
  126. package/dist/esm/next-schema/nodes/mediaInline.js +3 -1
  127. package/dist/esm/next-schema/nodes/mediaSingle.js +5 -2
  128. package/dist/esm/next-schema/nodes/mention.js +3 -0
  129. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +3 -0
  130. package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
  131. package/dist/esm/next-schema/nodes/panel.js +5 -1
  132. package/dist/esm/next-schema/nodes/paragraph.js +8 -4
  133. package/dist/esm/next-schema/nodes/placeholder.js +3 -0
  134. package/dist/esm/next-schema/nodes/status.js +3 -0
  135. package/dist/esm/next-schema/nodes/table.js +3 -1
  136. package/dist/esm/next-schema/nodes/tableCell.js +5 -1
  137. package/dist/esm/next-schema/nodes/tableHeader.js +3 -0
  138. package/dist/esm/next-schema/nodes/tableRow.js +4 -1
  139. package/dist/esm/next-schema/nodes/task.js +8 -2
  140. package/dist/esm/next-schema/nodes/text.js +4 -2
  141. package/dist/esm/next-schema/nodes/unsupportedBlock.js +12 -0
  142. package/dist/esm/next-schema/nodes/unsupportedInline.js +12 -0
  143. package/dist/types/next-schema/marks/unsupportedMark.d.ts +1 -0
  144. package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -0
  145. package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +19 -0
  146. package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +19 -0
  147. package/dist/types/next-schema/nodes/heading.d.ts +0 -23
  148. package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +19 -0
  149. package/dist/types/next-schema/nodes/unsupportedInline.d.ts +19 -0
  150. package/package.json +2 -2
  151. package/schema-generators/__tests__/unit/jqueries.md +13 -0
  152. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +103 -0
@@ -1,4 +1,6 @@
1
1
  import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  import { blockCard } from './blockCard';
3
5
  import { blockquote } from './blockquote';
4
6
  import { codeBlock } from './codeBlock';
@@ -18,6 +20,7 @@ export var tableHeader = adfNode('tableHeader').define({
18
20
  isolating: true,
19
21
  selectable: false,
20
22
  tableRole: 'header_cell',
23
+ marks: [unsupportedNodeAttribute, unsupportedMark],
21
24
  attrs: {
22
25
  colspan: {
23
26
  type: 'number',
@@ -1,7 +1,10 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
1
+ import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { unsupportedMark } from '../marks/unsupportedMark';
3
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
2
4
  import { tableCell } from './tableCell';
3
5
  import { tableHeader } from './tableHeader';
4
6
  export var tableRow = adfNode('tableRow').define({
5
7
  selectable: false,
8
+ marks: [unsupportedNodeAttribute, unsupportedMark],
6
9
  content: [$onePlus($or(tableCell, tableHeader))]
7
10
  });
@@ -1,10 +1,15 @@
1
1
  import { $onePlus, $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { inlineGroup } from '../groups/inlineGroup';
3
+ import { unsupportedMark } from '../marks/unsupportedMark';
4
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
+ import { unsupportedInline } from './unsupportedInline';
6
+ import { unsupportedBlock } from './unsupportedBlock';
3
7
  export var taskItem = adfNode('taskItem');
4
8
  export var taskList = adfNode('taskList');
5
9
  taskItem.define({
6
10
  defining: true,
7
11
  selectable: false,
12
+ marks: [unsupportedNodeAttribute, unsupportedMark],
8
13
  attrs: {
9
14
  localId: {
10
15
  type: 'string',
@@ -16,16 +21,17 @@ taskItem.define({
16
21
  default: 'TODO'
17
22
  }
18
23
  },
19
- content: [$zeroPlus($or(inlineGroup))]
24
+ content: [$zeroPlus($or(inlineGroup, unsupportedInline))]
20
25
  });
21
26
  taskList.define({
22
27
  defining: true,
23
28
  selectable: false,
29
+ marks: [unsupportedNodeAttribute, unsupportedMark],
24
30
  attrs: {
25
31
  localId: {
26
32
  type: 'string',
27
33
  default: ''
28
34
  }
29
35
  },
30
- content: [$onePlus($or(taskItem)), $zeroPlus($or(taskItem, taskList))]
36
+ content: [$onePlus($or(taskItem, unsupportedBlock)), $zeroPlus($or(taskItem, taskList, unsupportedBlock))]
31
37
  });
@@ -8,8 +8,10 @@ import { strong } from '../marks/strong';
8
8
  import { subsup } from '../marks/subsup';
9
9
  import { underline } from '../marks/underline';
10
10
  import { backgroundColor, textColor } from '../marks/color';
11
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
12
+ import { unsupportedMark } from '../marks/unsupportedMark';
11
13
  export var text = adfNode('text').define({}).variant('formatted', {
12
- marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor]
14
+ marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor, unsupportedNodeAttribute, unsupportedMark]
13
15
  }).variant('code_inline', {
14
- marks: [code, link, annotation]
16
+ marks: [code, link, annotation, unsupportedNodeAttribute, unsupportedMark]
15
17
  });
@@ -0,0 +1,12 @@
1
+ import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export var unsupportedBlock = adfNode('unsupportedBlock').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ atom: true,
5
+ selectable: true,
6
+ attrs: {
7
+ originalValue: {
8
+ type: 'object',
9
+ default: {}
10
+ }
11
+ }
12
+ });
@@ -0,0 +1,12 @@
1
+ import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
2
+ export var unsupportedInline = adfNode('unsupportedInline').define({
3
+ ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
4
+ inline: true,
5
+ selectable: true,
6
+ attrs: {
7
+ originalValue: {
8
+ type: 'object',
9
+ default: {}
10
+ }
11
+ }
12
+ });
@@ -0,0 +1 @@
1
+ export declare const unsupportedMark: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
@@ -0,0 +1 @@
1
+ export declare const unsupportedNodeAttribute: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
@@ -0,0 +1,19 @@
1
+ export declare const confluenceUnsupportedBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
2
+ ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
3
+ root?: boolean;
4
+ atom?: boolean;
5
+ version?: 1;
6
+ attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
7
+ inline?: true;
8
+ code?: boolean;
9
+ content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
10
+ defining?: boolean;
11
+ definingAsContext?: boolean;
12
+ definingForContent?: boolean;
13
+ draggable?: boolean;
14
+ group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
+ isolating?: boolean;
16
+ marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ selectable?: boolean;
18
+ whitespace?: "pre" | "normal";
19
+ }>;
@@ -0,0 +1,19 @@
1
+ export declare const confluenceUnsupportedInline: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
2
+ ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
3
+ root?: boolean;
4
+ atom?: boolean;
5
+ version?: 1;
6
+ attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
7
+ inline?: true;
8
+ code?: boolean;
9
+ content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
10
+ defining?: boolean;
11
+ definingAsContext?: boolean;
12
+ definingForContent?: boolean;
13
+ draggable?: boolean;
14
+ group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
+ isolating?: boolean;
16
+ marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ selectable?: boolean;
18
+ whitespace?: "pre" | "normal";
19
+ }>;
@@ -21,26 +21,3 @@ export declare const heading: import("@atlaskit/adf-schema-generator/dist/types/
21
21
  } & {
22
22
  marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
23
23
  }>;
24
- export declare const headingWithMarks: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_no_marks"], {
25
- ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
26
- root?: boolean;
27
- atom?: boolean;
28
- version?: 1;
29
- attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
30
- inline?: true;
31
- code?: boolean;
32
- content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
33
- defining?: boolean;
34
- definingAsContext?: boolean;
35
- definingForContent?: boolean;
36
- draggable?: boolean;
37
- group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
38
- isolating?: boolean;
39
- marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
40
- selectable?: boolean;
41
- whitespace?: "pre" | "normal";
42
- } & {
43
- marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
44
- } & {
45
- marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
46
- }>;
@@ -0,0 +1,19 @@
1
+ export declare const unsupportedBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
2
+ ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
3
+ root?: boolean;
4
+ atom?: boolean;
5
+ version?: 1;
6
+ attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
7
+ inline?: true;
8
+ code?: boolean;
9
+ content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
10
+ defining?: boolean;
11
+ definingAsContext?: boolean;
12
+ definingForContent?: boolean;
13
+ draggable?: boolean;
14
+ group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
+ isolating?: boolean;
16
+ marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ selectable?: boolean;
18
+ whitespace?: "pre" | "normal";
19
+ }>;
@@ -0,0 +1,19 @@
1
+ export declare const unsupportedInline: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
2
+ ignore?: import("@atlaskit/adf-schema-generator/dist/types/transforms/transformerNames").TransformerNames[];
3
+ root?: boolean;
4
+ atom?: boolean;
5
+ version?: 1;
6
+ attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
7
+ inline?: true;
8
+ code?: boolean;
9
+ content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
10
+ defining?: boolean;
11
+ definingAsContext?: boolean;
12
+ definingForContent?: boolean;
13
+ draggable?: boolean;
14
+ group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
15
+ isolating?: boolean;
16
+ marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
17
+ selectable?: boolean;
18
+ whitespace?: "pre" | "normal";
19
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "36.12.2",
3
+ "version": "36.13.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/"
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@atlassian/adf-schema-json": "^1.15.0",
47
- "@atlaskit/adf-schema-generator": "^1.11.1",
47
+ "@atlaskit/adf-schema-generator": "^1.12.0",
48
48
  "@atlaskit/codemod-utils": "^4.2.4",
49
49
  "@atlaskit/json-schema-generator": "^3.3.9",
50
50
  "@babel/cli": "^7.22.9",
@@ -179,3 +179,16 @@ A number of nodes have `marks` defined, yet the array is empty. Assuming this is
179
179
  .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
180
180
  .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
181
181
  ```
182
+
183
+ Base level content objects (not nodes) are deleted. `inline` is also deleted, as it is a content object for paragraph.
184
+
185
+ `additionalProperties` and `allOf` are deleted as well.
186
+
187
+ A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
188
+
189
+ ```sh
190
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
191
+ .allOf,
192
+ .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
193
+ .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
194
+ ```