@atlaskit/adf-utils 19.7.0 → 19.8.1
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 +16 -0
- package/dist/cjs/validator/specs/index.js +18 -0
- package/dist/es2019/validator/specs/index.js +3 -1
- package/dist/esm/validator/specs/index.js +3 -1
- package/dist/types/builders/nodes/blockquote.d.ts +2 -2
- package/dist/types/builders/nodes/expand.d.ts +2 -2
- package/dist/types/builders/nodes/nested-expand.d.ts +1 -1
- package/dist/types/validator/specs/index.d.ts +2 -1
- package/dist/types-ts4.5/builders/nodes/blockquote.d.ts +2 -2
- package/dist/types-ts4.5/builders/nodes/expand.d.ts +2 -2
- package/dist/types-ts4.5/builders/nodes/nested-expand.d.ts +1 -1
- package/dist/types-ts4.5/validator/specs/index.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/adf-utils
|
|
2
2
|
|
|
3
|
+
## 19.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
|
|
8
|
+
[`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
|
|
9
|
+
[ux] [ED-24636] Bump ADF Schema package
|
|
10
|
+
|
|
11
|
+
## 19.8.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#129049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129049)
|
|
16
|
+
[`57be9a9345656`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57be9a9345656) -
|
|
17
|
+
[ED-24281] Node nesting v2 - Update validator
|
|
18
|
+
|
|
3
19
|
## 19.7.0
|
|
4
20
|
|
|
5
21
|
### Minor 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,
|
|
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,
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,
|
|
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.
|
|
3
|
+
"version": "19.8.1",
|
|
4
4
|
"description": "Set of utilities to traverse, modify and create ADF documents.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./validatorTypes": "./src/types/validatorTypes.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/adf-schema": "^40.
|
|
41
|
+
"@atlaskit/adf-schema": "^40.9.0",
|
|
42
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0"
|
|
44
44
|
},
|