@atlaskit/adf-utils 19.6.1 → 19.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 19.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#129049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129049)
8
+ [`57be9a9345656`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57be9a9345656) -
9
+ [ED-24281] Node nesting v2 - Update validator
10
+
11
+ ## 19.7.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
16
+ [`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
17
+ [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
18
+ promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
19
+ quotes in panels and decisions in lists in stage0 schema, and a validator spec change
20
+
3
21
  ## 19.6.1
4
22
 
5
23
  ### Patch Changes
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "blockquote", {
45
45
  return _schemaValidator.blockquote;
46
46
  }
47
47
  });
48
+ Object.defineProperty(exports, "blockquote_without_nested_codeblock_or_media", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _schemaValidator.blockquote_without_nested_codeblock_or_media;
52
+ }
53
+ });
48
54
  Object.defineProperty(exports, "bodiedExtension", {
49
55
  enumerable: true,
50
56
  get: function get() {
@@ -177,6 +183,12 @@ Object.defineProperty(exports, "expand_with_no_mark", {
177
183
  return _schemaValidator.expand_with_no_mark;
178
184
  }
179
185
  });
186
+ Object.defineProperty(exports, "expand_without_nested_expand", {
187
+ enumerable: true,
188
+ get: function get() {
189
+ return _schemaValidator.expand_without_nested_expand;
190
+ }
191
+ });
180
192
  Object.defineProperty(exports, "extension", {
181
193
  enumerable: true,
182
194
  get: function get() {
@@ -399,6 +411,12 @@ Object.defineProperty(exports, "panel", {
399
411
  return _schemaValidator.panel;
400
412
  }
401
413
  });
414
+ Object.defineProperty(exports, "panel_with_nested_blockquote", {
415
+ enumerable: true,
416
+ get: function get() {
417
+ return _schemaValidator.panel_with_nested_blockquote;
418
+ }
419
+ });
402
420
  Object.defineProperty(exports, "paragraph", {
403
421
  enumerable: true,
404
422
  get: function get() {
@@ -1 +1,3 @@
1
- export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, blockquote_without_nested_codeblock_or_media, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_without_nested_expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
2
+ // Stage-0
3
+ paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline } from '@atlaskit/adf-schema/schema-validator';
@@ -1 +1,3 @@
1
- export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, blockquote_without_nested_codeblock_or_media, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_without_nested_expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
2
+ // Stage-0
3
+ paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline } from '@atlaskit/adf-schema/schema-validator';
@@ -1,2 +1,2 @@
1
- import { type ParagraphDefinition, type BlockQuoteDefinition } from '@atlaskit/adf-schema';
2
- export declare const blockQuote: (...content: Array<ParagraphDefinition>) => BlockQuoteDefinition;
1
+ import type { ParagraphDefinition, OrderedListDefinition, BulletListDefinition, CodeBlockDefinition, MediaGroupDefinition, BlockQuoteDefinition, MediaSingleDefinition } from '@atlaskit/adf-schema';
2
+ export declare const blockQuote: (...content: Array<ParagraphDefinition | OrderedListDefinition | BulletListDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleDefinition>) => BlockQuoteDefinition;
@@ -1,2 +1,2 @@
1
- import { type ExpandDefinition, type NonNestableBlockContent } from '@atlaskit/adf-schema';
2
- export declare const expand: (attrs: ExpandDefinition['attrs']) => (...content: Array<NonNestableBlockContent>) => ExpandDefinition;
1
+ import type { ExpandDefinition, NestedExpandDefinition, NonNestableBlockContent } from '@atlaskit/adf-schema';
2
+ export declare const expand: (attrs: ExpandDefinition['attrs']) => (...content: Array<NonNestableBlockContent | NestedExpandDefinition>) => ExpandDefinition;
@@ -1,2 +1,2 @@
1
- import { type NestedExpandDefinition, type NestedExpandContent } from '@atlaskit/adf-schema';
1
+ import type { NestedExpandDefinition, NestedExpandContent } from '@atlaskit/adf-schema';
2
2
  export declare const nestedExpand: (attrs: NestedExpandDefinition['attrs']) => (...content: NestedExpandContent) => NestedExpandDefinition;
@@ -1 +1,2 @@
1
- export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline, } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, blockquote_without_nested_codeblock_or_media, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_without_nested_expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
2
+ paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline, } from '@atlaskit/adf-schema/schema-validator';
@@ -1,2 +1,2 @@
1
- import { type ParagraphDefinition, type BlockQuoteDefinition } from '@atlaskit/adf-schema';
2
- export declare const blockQuote: (...content: Array<ParagraphDefinition>) => BlockQuoteDefinition;
1
+ import type { ParagraphDefinition, OrderedListDefinition, BulletListDefinition, CodeBlockDefinition, MediaGroupDefinition, BlockQuoteDefinition, MediaSingleDefinition } from '@atlaskit/adf-schema';
2
+ export declare const blockQuote: (...content: Array<ParagraphDefinition | OrderedListDefinition | BulletListDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleDefinition>) => BlockQuoteDefinition;
@@ -1,2 +1,2 @@
1
- import { type ExpandDefinition, type NonNestableBlockContent } from '@atlaskit/adf-schema';
2
- export declare const expand: (attrs: ExpandDefinition['attrs']) => (...content: Array<NonNestableBlockContent>) => ExpandDefinition;
1
+ import type { ExpandDefinition, NestedExpandDefinition, NonNestableBlockContent } from '@atlaskit/adf-schema';
2
+ export declare const expand: (attrs: ExpandDefinition['attrs']) => (...content: Array<NonNestableBlockContent | NestedExpandDefinition>) => ExpandDefinition;
@@ -1,2 +1,2 @@
1
- import { type NestedExpandDefinition, type NestedExpandContent } from '@atlaskit/adf-schema';
1
+ import type { NestedExpandDefinition, NestedExpandContent } from '@atlaskit/adf-schema';
2
2
  export declare const nestedExpand: (attrs: NestedExpandDefinition['attrs']) => (...content: NestedExpandContent) => NestedExpandDefinition;
@@ -1 +1,2 @@
1
- export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline, } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, atomic_inline, backgroundColor, blockCard, block_content, blockquote, blockquote_without_nested_codeblock_or_media, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, code_inline, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_without_nested_expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, formatted_text_inline, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inline, inlineCard, inlineExtension, inlineExtension_with_marks, inline_comment_marker, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, link_text_inline, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
2
+ paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableCell_content, tableHeader, tableRow, taskItem, taskList, text, textColor, underline, } from '@atlaskit/adf-schema/schema-validator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "19.6.1",
3
+ "version": "19.8.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,12 +38,12 @@
38
38
  "./validatorTypes": "./src/types/validatorTypes.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/adf-schema": "^40.3.0",
41
+ "@atlaskit/adf-schema": "^40.8.1",
42
42
  "@atlaskit/codemod-utils": "^4.2.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@atlassian/adf-schema-json": "^1.18.0",
46
+ "@atlassian/adf-schema-json": "^1.22.0",
47
47
  "jscodeshift": "^0.13.0",
48
48
  "react": "^16.8.0",
49
49
  "typescript": "~5.4.2",