@atlaskit/adf-utils 19.23.1 → 19.25.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,19 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 19.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
8
+ [EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
9
+
10
+ ## 19.24.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
15
+ EDITOR-1566 bump adf-schema + update validator
16
+
3
17
  ## 19.23.1
4
18
 
5
19
  ### Patch Changes
@@ -936,7 +950,6 @@
936
950
  **The new (and only) @atlaskit/adf-utils entry points supported now are listed below:**
937
951
 
938
952
  @atlaskit/adf-utils/builders for:
939
-
940
953
  - breakout, code, em, link, link, strike, strong, strong, subsup, text-color, underline,
941
954
  underline, alignment, indentation, data-consumer fragment, blockquote, bodied-extension,
942
955
  block-card, bullet-list, bullet-list, code-block, date, decision-item, decision-list, doc,
@@ -947,32 +960,25 @@
947
960
  task-item, task-list, text, embed-card,
948
961
 
949
962
  @atlaskit/adf-utils/empty-adf for:
950
-
951
963
  - getEmptyADF
952
964
 
953
965
  @atlaskit/adf-utils/scrub for:
954
-
955
966
  - scrubAdf
956
967
 
957
968
  @atlaskit/adf-utils/transforms for:
958
-
959
969
  - transformMediaLinkMarks, transformTextLinkCodeMarks, transformDedupeMarks,
960
970
  transformNodesMissingContent, transformIndentationMarks
961
971
 
962
972
  @atlaskit/adf-utils/traverse for:
963
-
964
973
  - traverse, map, reduce, filter
965
974
 
966
975
  @atlaskit/adf-utils/validator for:
967
-
968
976
  - validateAttrs, validator
969
977
 
970
978
  @atlaskit/adf-utils/types for:
971
-
972
979
  - ADFEntityMark, ADFEntity, Visitor, VisitorCollection, EntityParent
973
980
 
974
981
  @atlaskit/adf-utils/validatorTypes for:
975
-
976
982
  - MarkValidationResult, Output, NodeValidationResult, ValidatorContent, AttributesSpec,
977
983
  ValidatorSpec, ValidationErrorMap, RequiredContentLength, Content, ValidationErrorType,
978
984
  ValidationError, ErrorCallback, ValidationMode, ValidationOptions, SpecValidatorResult, Err,
@@ -1381,7 +1387,6 @@
1381
1387
  - [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516)
1382
1388
  [`a41378f853`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a41378f853) - Refactor &
1383
1389
  fix few cases of unsupported node attributes:
1384
-
1385
1390
  - Preseve attributes on nodes which do not support any attributes
1386
1391
  - Add unsupportedNodeAttribute to bulletList, layoutSection etc.
1387
1392
 
@@ -1606,7 +1611,6 @@
1606
1611
 
1607
1612
  Fix expand not allowing marks issue- Updated dependencies
1608
1613
  [b3cf2b8a05](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3cf2b8a05):
1609
-
1610
1614
  - @atlaskit/adf-schema@7.0.1
1611
1615
 
1612
1616
  ## 8.0.0
@@ -1689,7 +1693,6 @@
1689
1693
 
1690
1694
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1691
1695
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1692
-
1693
1696
  - @atlaskit/docs@8.3.2
1694
1697
  - @atlaskit/adf-schema@6.1.1
1695
1698
  - @atlaskit/json-schema-generator@2.2.1
@@ -1889,7 +1892,6 @@ Bumped dependencies.
1889
1892
  - [minor][65ada7f318](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65ada7f318):
1890
1893
 
1891
1894
  **FABDODGEM-12 Editor Cashmere Release**
1892
-
1893
1895
  - [Internal post](http://go.atlassian.com/cashmere-release)
1894
1896
 
1895
1897
  **Affected editor components:**
@@ -1897,19 +1899,16 @@ Bumped dependencies.
1897
1899
  tables, media, mobile, text color, emoji, copy/paste, analytics
1898
1900
 
1899
1901
  **Performance**
1900
-
1901
1902
  - Async import for code blocks and task items on renderer
1902
1903
  - https://product-fabric.atlassian.net/browse/ED-7155
1903
1904
 
1904
1905
  **Table**
1905
-
1906
1906
  - Add support to sort tables that contains smart links
1907
1907
  - https://product-fabric.atlassian.net/browse/ED-7449
1908
1908
  - Scale table when changing to full width mode
1909
1909
  - https://product-fabric.atlassian.net/browse/ED-7724
1910
1910
 
1911
1911
  **Text color**
1912
-
1913
1912
  - Update text color toolbar with right color when text is inside a list, panel, etc.
1914
1913
  - https://product-fabric.atlassian.net/browse/FM-1752
1915
1914
 
@@ -2024,7 +2023,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2024
2023
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
2025
2024
 
2026
2025
  In this PR, we are:
2027
-
2028
2026
  - Re-introducing dist build folders
2029
2027
  - Adding back cjs
2030
2028
  - Replacing es5 by cjs and es2015 by esm
@@ -2037,7 +2035,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2037
2035
  ## 6.1.0
2038
2036
 
2039
2037
  - [minor][79f0ef0601](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/79f0ef0601):
2040
-
2041
2038
  - Use strict tsconfig to compile editor packages
2042
2039
 
2043
2040
  ## 6.0.5
@@ -2050,41 +2047,34 @@ https://product-fabric.atlassian.net/browse/FM-2393
2050
2047
  ## 6.0.4
2051
2048
 
2052
2049
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
2053
-
2054
2050
  - Bump tslib
2055
2051
 
2056
2052
  - [patch][0ac39bd2dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ac39bd2dd):
2057
-
2058
2053
  - Bump tslib to 1.9
2059
2054
 
2060
2055
  ## 6.0.3
2061
2056
 
2062
2057
  - [patch][97e555c168](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97e555c168):
2063
-
2064
2058
  - Revert "[ED-5259 - ED-6200] adds defaultMarks on tableNode (pull request #5259)"
2065
2059
 
2066
2060
  ## 6.0.2
2067
2061
 
2068
2062
  - [patch][b425ea772b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b425ea772b):
2069
-
2070
2063
  - Revert "ED-5505 add strong as default mark to table header (pull request #5291)"
2071
2064
 
2072
2065
  ## 6.0.1
2073
2066
 
2074
2067
  - [patch][499f9783d8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/499f9783d8):
2075
-
2076
2068
  - [ED-5505] Fix forceContentValidation replacing valid entities to empty array
2077
2069
 
2078
2070
  ## 6.0.0
2079
2071
 
2080
2072
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
2081
-
2082
2073
  - Dropped ES5 distributables from the typescript packages
2083
2074
 
2084
2075
  ## 5.8.0
2085
2076
 
2086
2077
  - [minor][a7af8a8865](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a7af8a8865):
2087
-
2088
2078
  - [ED-6325] Add forceContentValidation to array specs
2089
2079
 
2090
2080
  ## 5.7.2
@@ -2096,61 +2086,51 @@ https://product-fabric.atlassian.net/browse/FM-2393
2096
2086
  ## 5.7.1
2097
2087
 
2098
2088
  - [patch][60ea09b0cc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/60ea09b0cc):
2099
-
2100
2089
  - ED-6246 Improves types and adds more metadata to errors
2101
2090
 
2102
2091
  ## 5.7.0
2103
2092
 
2104
2093
  - [minor][4d8d759bf9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4d8d759bf9):
2105
-
2106
2094
  - [ED-6255] Migrate ADFNode type to ADFEntity
2107
2095
 
2108
2096
  ## 5.6.3
2109
2097
 
2110
2098
  - [patch][e83a441140](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e83a441140):
2111
-
2112
2099
  - Revert type change to width/height attributes for media node
2113
2100
 
2114
2101
  ## 5.6.2
2115
2102
 
2116
2103
  - [patch][09696170ec](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/09696170ec):
2117
-
2118
2104
  - Bumps prosemirror-utils to 0.7.6
2119
2105
 
2120
2106
  ## 5.6.1
2121
2107
 
2122
2108
  - [patch][14fe1381ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/14fe1381ba):
2123
-
2124
2109
  - ED-6118: ensure media dimensions are always integers, preventing invalid ADF
2125
2110
 
2126
2111
  ## 5.6.0
2127
2112
 
2128
2113
  - [minor][be706e55f6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/be706e55f6):
2129
-
2130
2114
  - ED-6154 Adds `array` validation support
2131
2115
 
2132
2116
  ## 5.5.0
2133
2117
 
2134
2118
  - [minor][a5b5a5098e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a5b5a5098e):
2135
-
2136
2119
  - Adds index to visitor
2137
2120
 
2138
2121
  ## 5.4.2
2139
2122
 
2140
2123
  - [patch][76ed7f0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76ed7f0):
2141
-
2142
2124
  - Update Specs
2143
2125
 
2144
2126
  ## 5.4.1
2145
2127
 
2146
2128
  - [patch][57cffcb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/57cffcb):
2147
-
2148
2129
  - Need tslib
2149
2130
 
2150
2131
  ## 5.4.0
2151
2132
 
2152
2133
  - [minor][1205725](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1205725):
2153
-
2154
2134
  - Move schema to its own package
2155
2135
 
2156
2136
  ## 5.3.4
@@ -2161,7 +2141,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2161
2141
  ## 5.3.3
2162
2142
 
2163
2143
  - [patch][34df084](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/34df084):
2164
-
2165
2144
  - Fix layout schema and enable breakout layouts in renderer
2166
2145
 
2167
2146
  ## 5.3.2
@@ -2172,19 +2151,16 @@ https://product-fabric.atlassian.net/browse/FM-2393
2172
2151
  ## 5.3.1
2173
2152
 
2174
2153
  - [patch][0a297ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a297ba):
2175
-
2176
2154
  - Packages should not be shown in the navigation, search and overview
2177
2155
 
2178
2156
  ## 5.3.0
2179
2157
 
2180
2158
  - [minor][a1b03d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1b03d0):
2181
-
2182
2159
  - ED-3890 Adds Indentation support on paragraphs and headings
2183
2160
 
2184
2161
  ## 5.2.0
2185
2162
 
2186
2163
  - [minor][94094fe](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/94094fe):
2187
-
2188
2164
  - Adds support for links around images
2189
2165
 
2190
2166
  ## 5.1.9
@@ -2195,55 +2171,46 @@ https://product-fabric.atlassian.net/browse/FM-2393
2195
2171
  ## 5.1.8
2196
2172
 
2197
2173
  - [patch][416fbb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/416fbb3):
2198
-
2199
2174
  - ED-3298: codeBlocks inside lists
2200
2175
 
2201
2176
  ## 5.1.7
2202
2177
 
2203
2178
  - [patch][409e610](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/409e610):
2204
-
2205
2179
  - Fix schema block marks name inconsistency
2206
2180
 
2207
2181
  ## 5.1.6
2208
2182
 
2209
2183
  - [patch][df33a8b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df33a8b):
2210
-
2211
2184
  - Fix block marks validation
2212
2185
 
2213
2186
  ## 5.1.5
2214
2187
 
2215
2188
  - [patch][d3bb11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3bb11f):
2216
-
2217
2189
  - Fixing validator for alignment marks
2218
2190
 
2219
2191
  ## 5.1.4
2220
2192
 
2221
2193
  - [patch][4e2a3b1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4e2a3b1):
2222
-
2223
2194
  - Fixes validating marks with multiple possible branch
2224
2195
 
2225
2196
  ## 5.1.3
2226
2197
 
2227
2198
  - [patch][a1fb551](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1fb551):
2228
-
2229
2199
  - Fixed style attribute ADF error for Fabric Status
2230
2200
 
2231
2201
  ## 5.1.2
2232
2202
 
2233
2203
  - [patch][11d4b85](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/11d4b85):
2234
-
2235
2204
  - ED-5606 Adds union attrs support to validator
2236
2205
 
2237
2206
  ## 5.1.1
2238
2207
 
2239
2208
  - [patch][b19b7bb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b19b7bb):
2240
-
2241
2209
  - ED-5721 Validator now supports optional content
2242
2210
 
2243
2211
  ## 5.1.0
2244
2212
 
2245
2213
  - [minor][b440439](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b440439):
2246
-
2247
2214
  - Add breakout mark to editor, renderer and adf-utils
2248
2215
 
2249
2216
  ## 5.0.1
@@ -2254,7 +2221,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2254
2221
  ## 5.0.0
2255
2222
 
2256
2223
  - [major][e1db106](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1db106):
2257
-
2258
2224
  - New validator API
2259
2225
 
2260
2226
  ### Breaking Change
@@ -2294,29 +2260,24 @@ https://product-fabric.atlassian.net/browse/FM-2393
2294
2260
  ## 4.1.0
2295
2261
 
2296
2262
  - [minor][4f5830f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4f5830f):
2297
-
2298
2263
  - ED-4200: add page layout support to generator and ADF schema
2299
2264
 
2300
2265
  ## 4.0.4
2301
2266
 
2302
2267
  - [patch][e8052e1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e8052e1):
2303
-
2304
2268
  - Add main field to adf-utils package.json
2305
2269
 
2306
2270
  ## 4.0.3
2307
2271
 
2308
2272
  - [patch][653b6a9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/653b6a9):
2309
-
2310
2273
  - removed optional attributes from adf-builder module for status node
2311
2274
 
2312
2275
  - [patch][cd5471b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cd5471b):
2313
-
2314
2276
  - added style attribute for Status node in ADF schema
2315
2277
 
2316
2278
  ## 4.0.2
2317
2279
 
2318
2280
  - [patch][6201223](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6201223" d):
2319
-
2320
2281
  - Add examples.
2321
2282
 
2322
2283
  ## 4.0.1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.bodiedSyncBlock = void 0;
7
+ var bodiedSyncBlock = exports.bodiedSyncBlock = function bodiedSyncBlock(attrs) {
8
+ return function () {
9
+ for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
+ content[_key] = arguments[_key];
11
+ }
12
+ return {
13
+ type: 'bodiedSyncBlock',
14
+ attrs: attrs,
15
+ content: content
16
+ };
17
+ };
18
+ };
@@ -51,6 +51,12 @@ Object.defineProperty(exports, "bodiedExtension", {
51
51
  return _bodiedExtension.bodiedExtension;
52
52
  }
53
53
  });
54
+ Object.defineProperty(exports, "bodiedSyncBlock", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _bodiedSyncBlock.bodiedSyncBlock;
58
+ }
59
+ });
54
60
  Object.defineProperty(exports, "border", {
55
61
  enumerable: true,
56
62
  get: function get() {
@@ -459,4 +465,5 @@ var _taskList = require("./builders/nodes/task-list");
459
465
  var _text = require("./builders/nodes/text");
460
466
  var _embedCard = require("./builders/nodes/embed-card");
461
467
  var _blockTaskItem = require("./builders/nodes/block-task-item");
462
- var _syncBlock = require("./builders/nodes/sync-block");
468
+ var _syncBlock = require("./builders/nodes/sync-block");
469
+ var _bodiedSyncBlock = require("./builders/nodes/bodied-sync-block");
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "bodiedExtension_with_marks", {
63
63
  return _schemaValidator.bodiedExtension_with_marks;
64
64
  }
65
65
  });
66
+ Object.defineProperty(exports, "bodiedSyncBlock", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _schemaValidator.bodiedSyncBlock;
70
+ }
71
+ });
66
72
  Object.defineProperty(exports, "border", {
67
73
  enumerable: true,
68
74
  get: function get() {
@@ -0,0 +1,5 @@
1
+ export const bodiedSyncBlock = attrs => (...content) => ({
2
+ type: 'bodiedSyncBlock',
3
+ attrs,
4
+ content
5
+ });
@@ -71,4 +71,5 @@ export { taskList } from './builders/nodes/task-list';
71
71
  export { text } from './builders/nodes/text';
72
72
  export { embedCard } from './builders/nodes/embed-card';
73
73
  export { blockTaskItem } from './builders/nodes/block-task-item';
74
- export { syncBlock } from './builders/nodes/sync-block';
74
+ export { syncBlock } from './builders/nodes/sync-block';
75
+ export { bodiedSyncBlock } from './builders/nodes/bodied-sync-block';
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock } from '@atlaskit/adf-schema/schema-validator';
2
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, bodiedSyncBlock } from '@atlaskit/adf-schema/schema-validator';
@@ -0,0 +1,12 @@
1
+ export var bodiedSyncBlock = function bodiedSyncBlock(attrs) {
2
+ return function () {
3
+ for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
4
+ content[_key] = arguments[_key];
5
+ }
6
+ return {
7
+ type: 'bodiedSyncBlock',
8
+ attrs: attrs,
9
+ content: content
10
+ };
11
+ };
12
+ };
@@ -71,4 +71,5 @@ export { taskList } from './builders/nodes/task-list';
71
71
  export { text } from './builders/nodes/text';
72
72
  export { embedCard } from './builders/nodes/embed-card';
73
73
  export { blockTaskItem } from './builders/nodes/block-task-item';
74
- export { syncBlock } from './builders/nodes/sync-block';
74
+ export { syncBlock } from './builders/nodes/sync-block';
75
+ export { bodiedSyncBlock } from './builders/nodes/bodied-sync-block';
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock } from '@atlaskit/adf-schema/schema-validator';
2
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, bodiedSyncBlock } from '@atlaskit/adf-schema/schema-validator';
@@ -0,0 +1,4 @@
1
+ import { type BlockCardDefinition as BlockCard, type BlockQuoteDefinition as Blockquote, type BulletListDefinition as BulletList, type CodeBlockDefinition as CodeBlock, type DecisionListDefinition as DecisionList, type EmbedCardDefinition as EmbedCard, type ExpandDefinition as Expand, type HeadingDefinition as Heading, type HeadingWithMarksDefinition as HeadingWithMarks, type LayoutSectionDefinition as LayoutSection, type MediaGroupDefinition as MediaGroup, type MediaSingleDefinition as MediaSingle, type OrderedListDefinition as OrderedList, type PanelDefinition as Panel, type ParagraphDefinition as Paragraph, type ParagraphWithMarksDefinition as ParagraphWithMarks, type RuleDefinition as Rule, type TableDefinition as Table, type TaskListDefinition as TaskList, type BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
+ type BodiedSyncBlockContent = BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Paragraph | ParagraphWithMarks | Rule | Table | TaskList;
3
+ export declare const bodiedSyncBlock: (attrs: BodiedSyncBlockDefinition["attrs"]) => (...content: Array<BodiedSyncBlockContent>) => BodiedSyncBlockDefinition;
4
+ export {};
@@ -1,2 +1,2 @@
1
- import type { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition } from '@atlaskit/adf-schema';
2
- export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition>) => DocNode;
1
+ import type { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
+ export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition | BodiedSyncBlockDefinition>) => DocNode;
@@ -65,3 +65,4 @@ export { text } from './builders/nodes/text';
65
65
  export { embedCard } from './builders/nodes/embed-card';
66
66
  export { blockTaskItem } from './builders/nodes/block-task-item';
67
67
  export { syncBlock } from './builders/nodes/sync-block';
68
+ export { bodiedSyncBlock } from './builders/nodes/bodied-sync-block';
@@ -1 +1 @@
1
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, bodiedSyncBlock, } from '@atlaskit/adf-schema/schema-validator';
@@ -0,0 +1,4 @@
1
+ import { type BlockCardDefinition as BlockCard, type BlockQuoteDefinition as Blockquote, type BulletListDefinition as BulletList, type CodeBlockDefinition as CodeBlock, type DecisionListDefinition as DecisionList, type EmbedCardDefinition as EmbedCard, type ExpandDefinition as Expand, type HeadingDefinition as Heading, type HeadingWithMarksDefinition as HeadingWithMarks, type LayoutSectionDefinition as LayoutSection, type MediaGroupDefinition as MediaGroup, type MediaSingleDefinition as MediaSingle, type OrderedListDefinition as OrderedList, type PanelDefinition as Panel, type ParagraphDefinition as Paragraph, type ParagraphWithMarksDefinition as ParagraphWithMarks, type RuleDefinition as Rule, type TableDefinition as Table, type TaskListDefinition as TaskList, type BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
+ type BodiedSyncBlockContent = BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Paragraph | ParagraphWithMarks | Rule | Table | TaskList;
3
+ export declare const bodiedSyncBlock: (attrs: BodiedSyncBlockDefinition["attrs"]) => (...content: Array<BodiedSyncBlockContent>) => BodiedSyncBlockDefinition;
4
+ export {};
@@ -1,2 +1,2 @@
1
- import type { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition } from '@atlaskit/adf-schema';
2
- export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition>) => DocNode;
1
+ import type { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
+ export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition | BodiedSyncBlockDefinition>) => DocNode;
@@ -65,3 +65,4 @@ export { text } from './builders/nodes/text';
65
65
  export { embedCard } from './builders/nodes/embed-card';
66
66
  export { blockTaskItem } from './builders/nodes/block-task-item';
67
67
  export { syncBlock } from './builders/nodes/sync-block';
68
+ export { bodiedSyncBlock } from './builders/nodes/bodied-sync-block';
@@ -1 +1 @@
1
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, } from '@atlaskit/adf-schema/schema-validator';
1
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, blockTaskItem, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, 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, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, syncBlock, bodiedSyncBlock, } 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.23.1",
3
+ "version": "19.25.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  "team": "Editor: Collaboration"
27
27
  },
28
28
  "dependencies": {
29
- "@atlaskit/adf-schema": "^51.1.2",
29
+ "@atlaskit/adf-schema": "^51.3.0",
30
30
  "@babel/runtime": "^7.0.0"
31
31
  },
32
32
  "devDependencies": {