@atlaskit/adf-utils 19.24.0 → 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,12 @@
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
+
3
10
  ## 19.24.0
4
11
 
5
12
  ### Minor Changes
@@ -943,7 +950,6 @@
943
950
  **The new (and only) @atlaskit/adf-utils entry points supported now are listed below:**
944
951
 
945
952
  @atlaskit/adf-utils/builders for:
946
-
947
953
  - breakout, code, em, link, link, strike, strong, strong, subsup, text-color, underline,
948
954
  underline, alignment, indentation, data-consumer fragment, blockquote, bodied-extension,
949
955
  block-card, bullet-list, bullet-list, code-block, date, decision-item, decision-list, doc,
@@ -954,32 +960,25 @@
954
960
  task-item, task-list, text, embed-card,
955
961
 
956
962
  @atlaskit/adf-utils/empty-adf for:
957
-
958
963
  - getEmptyADF
959
964
 
960
965
  @atlaskit/adf-utils/scrub for:
961
-
962
966
  - scrubAdf
963
967
 
964
968
  @atlaskit/adf-utils/transforms for:
965
-
966
969
  - transformMediaLinkMarks, transformTextLinkCodeMarks, transformDedupeMarks,
967
970
  transformNodesMissingContent, transformIndentationMarks
968
971
 
969
972
  @atlaskit/adf-utils/traverse for:
970
-
971
973
  - traverse, map, reduce, filter
972
974
 
973
975
  @atlaskit/adf-utils/validator for:
974
-
975
976
  - validateAttrs, validator
976
977
 
977
978
  @atlaskit/adf-utils/types for:
978
-
979
979
  - ADFEntityMark, ADFEntity, Visitor, VisitorCollection, EntityParent
980
980
 
981
981
  @atlaskit/adf-utils/validatorTypes for:
982
-
983
982
  - MarkValidationResult, Output, NodeValidationResult, ValidatorContent, AttributesSpec,
984
983
  ValidatorSpec, ValidationErrorMap, RequiredContentLength, Content, ValidationErrorType,
985
984
  ValidationError, ErrorCallback, ValidationMode, ValidationOptions, SpecValidatorResult, Err,
@@ -1388,7 +1387,6 @@
1388
1387
  - [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516)
1389
1388
  [`a41378f853`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a41378f853) - Refactor &
1390
1389
  fix few cases of unsupported node attributes:
1391
-
1392
1390
  - Preseve attributes on nodes which do not support any attributes
1393
1391
  - Add unsupportedNodeAttribute to bulletList, layoutSection etc.
1394
1392
 
@@ -1613,7 +1611,6 @@
1613
1611
 
1614
1612
  Fix expand not allowing marks issue- Updated dependencies
1615
1613
  [b3cf2b8a05](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3cf2b8a05):
1616
-
1617
1614
  - @atlaskit/adf-schema@7.0.1
1618
1615
 
1619
1616
  ## 8.0.0
@@ -1696,7 +1693,6 @@
1696
1693
 
1697
1694
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1698
1695
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1699
-
1700
1696
  - @atlaskit/docs@8.3.2
1701
1697
  - @atlaskit/adf-schema@6.1.1
1702
1698
  - @atlaskit/json-schema-generator@2.2.1
@@ -1896,7 +1892,6 @@ Bumped dependencies.
1896
1892
  - [minor][65ada7f318](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65ada7f318):
1897
1893
 
1898
1894
  **FABDODGEM-12 Editor Cashmere Release**
1899
-
1900
1895
  - [Internal post](http://go.atlassian.com/cashmere-release)
1901
1896
 
1902
1897
  **Affected editor components:**
@@ -1904,19 +1899,16 @@ Bumped dependencies.
1904
1899
  tables, media, mobile, text color, emoji, copy/paste, analytics
1905
1900
 
1906
1901
  **Performance**
1907
-
1908
1902
  - Async import for code blocks and task items on renderer
1909
1903
  - https://product-fabric.atlassian.net/browse/ED-7155
1910
1904
 
1911
1905
  **Table**
1912
-
1913
1906
  - Add support to sort tables that contains smart links
1914
1907
  - https://product-fabric.atlassian.net/browse/ED-7449
1915
1908
  - Scale table when changing to full width mode
1916
1909
  - https://product-fabric.atlassian.net/browse/ED-7724
1917
1910
 
1918
1911
  **Text color**
1919
-
1920
1912
  - Update text color toolbar with right color when text is inside a list, panel, etc.
1921
1913
  - https://product-fabric.atlassian.net/browse/FM-1752
1922
1914
 
@@ -2031,7 +2023,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2031
2023
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
2032
2024
 
2033
2025
  In this PR, we are:
2034
-
2035
2026
  - Re-introducing dist build folders
2036
2027
  - Adding back cjs
2037
2028
  - Replacing es5 by cjs and es2015 by esm
@@ -2044,7 +2035,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2044
2035
  ## 6.1.0
2045
2036
 
2046
2037
  - [minor][79f0ef0601](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/79f0ef0601):
2047
-
2048
2038
  - Use strict tsconfig to compile editor packages
2049
2039
 
2050
2040
  ## 6.0.5
@@ -2057,41 +2047,34 @@ https://product-fabric.atlassian.net/browse/FM-2393
2057
2047
  ## 6.0.4
2058
2048
 
2059
2049
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
2060
-
2061
2050
  - Bump tslib
2062
2051
 
2063
2052
  - [patch][0ac39bd2dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ac39bd2dd):
2064
-
2065
2053
  - Bump tslib to 1.9
2066
2054
 
2067
2055
  ## 6.0.3
2068
2056
 
2069
2057
  - [patch][97e555c168](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97e555c168):
2070
-
2071
2058
  - Revert "[ED-5259 - ED-6200] adds defaultMarks on tableNode (pull request #5259)"
2072
2059
 
2073
2060
  ## 6.0.2
2074
2061
 
2075
2062
  - [patch][b425ea772b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b425ea772b):
2076
-
2077
2063
  - Revert "ED-5505 add strong as default mark to table header (pull request #5291)"
2078
2064
 
2079
2065
  ## 6.0.1
2080
2066
 
2081
2067
  - [patch][499f9783d8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/499f9783d8):
2082
-
2083
2068
  - [ED-5505] Fix forceContentValidation replacing valid entities to empty array
2084
2069
 
2085
2070
  ## 6.0.0
2086
2071
 
2087
2072
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
2088
-
2089
2073
  - Dropped ES5 distributables from the typescript packages
2090
2074
 
2091
2075
  ## 5.8.0
2092
2076
 
2093
2077
  - [minor][a7af8a8865](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a7af8a8865):
2094
-
2095
2078
  - [ED-6325] Add forceContentValidation to array specs
2096
2079
 
2097
2080
  ## 5.7.2
@@ -2103,61 +2086,51 @@ https://product-fabric.atlassian.net/browse/FM-2393
2103
2086
  ## 5.7.1
2104
2087
 
2105
2088
  - [patch][60ea09b0cc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/60ea09b0cc):
2106
-
2107
2089
  - ED-6246 Improves types and adds more metadata to errors
2108
2090
 
2109
2091
  ## 5.7.0
2110
2092
 
2111
2093
  - [minor][4d8d759bf9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4d8d759bf9):
2112
-
2113
2094
  - [ED-6255] Migrate ADFNode type to ADFEntity
2114
2095
 
2115
2096
  ## 5.6.3
2116
2097
 
2117
2098
  - [patch][e83a441140](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e83a441140):
2118
-
2119
2099
  - Revert type change to width/height attributes for media node
2120
2100
 
2121
2101
  ## 5.6.2
2122
2102
 
2123
2103
  - [patch][09696170ec](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/09696170ec):
2124
-
2125
2104
  - Bumps prosemirror-utils to 0.7.6
2126
2105
 
2127
2106
  ## 5.6.1
2128
2107
 
2129
2108
  - [patch][14fe1381ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/14fe1381ba):
2130
-
2131
2109
  - ED-6118: ensure media dimensions are always integers, preventing invalid ADF
2132
2110
 
2133
2111
  ## 5.6.0
2134
2112
 
2135
2113
  - [minor][be706e55f6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/be706e55f6):
2136
-
2137
2114
  - ED-6154 Adds `array` validation support
2138
2115
 
2139
2116
  ## 5.5.0
2140
2117
 
2141
2118
  - [minor][a5b5a5098e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a5b5a5098e):
2142
-
2143
2119
  - Adds index to visitor
2144
2120
 
2145
2121
  ## 5.4.2
2146
2122
 
2147
2123
  - [patch][76ed7f0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76ed7f0):
2148
-
2149
2124
  - Update Specs
2150
2125
 
2151
2126
  ## 5.4.1
2152
2127
 
2153
2128
  - [patch][57cffcb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/57cffcb):
2154
-
2155
2129
  - Need tslib
2156
2130
 
2157
2131
  ## 5.4.0
2158
2132
 
2159
2133
  - [minor][1205725](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1205725):
2160
-
2161
2134
  - Move schema to its own package
2162
2135
 
2163
2136
  ## 5.3.4
@@ -2168,7 +2141,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2168
2141
  ## 5.3.3
2169
2142
 
2170
2143
  - [patch][34df084](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/34df084):
2171
-
2172
2144
  - Fix layout schema and enable breakout layouts in renderer
2173
2145
 
2174
2146
  ## 5.3.2
@@ -2179,19 +2151,16 @@ https://product-fabric.atlassian.net/browse/FM-2393
2179
2151
  ## 5.3.1
2180
2152
 
2181
2153
  - [patch][0a297ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a297ba):
2182
-
2183
2154
  - Packages should not be shown in the navigation, search and overview
2184
2155
 
2185
2156
  ## 5.3.0
2186
2157
 
2187
2158
  - [minor][a1b03d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1b03d0):
2188
-
2189
2159
  - ED-3890 Adds Indentation support on paragraphs and headings
2190
2160
 
2191
2161
  ## 5.2.0
2192
2162
 
2193
2163
  - [minor][94094fe](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/94094fe):
2194
-
2195
2164
  - Adds support for links around images
2196
2165
 
2197
2166
  ## 5.1.9
@@ -2202,55 +2171,46 @@ https://product-fabric.atlassian.net/browse/FM-2393
2202
2171
  ## 5.1.8
2203
2172
 
2204
2173
  - [patch][416fbb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/416fbb3):
2205
-
2206
2174
  - ED-3298: codeBlocks inside lists
2207
2175
 
2208
2176
  ## 5.1.7
2209
2177
 
2210
2178
  - [patch][409e610](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/409e610):
2211
-
2212
2179
  - Fix schema block marks name inconsistency
2213
2180
 
2214
2181
  ## 5.1.6
2215
2182
 
2216
2183
  - [patch][df33a8b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df33a8b):
2217
-
2218
2184
  - Fix block marks validation
2219
2185
 
2220
2186
  ## 5.1.5
2221
2187
 
2222
2188
  - [patch][d3bb11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3bb11f):
2223
-
2224
2189
  - Fixing validator for alignment marks
2225
2190
 
2226
2191
  ## 5.1.4
2227
2192
 
2228
2193
  - [patch][4e2a3b1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4e2a3b1):
2229
-
2230
2194
  - Fixes validating marks with multiple possible branch
2231
2195
 
2232
2196
  ## 5.1.3
2233
2197
 
2234
2198
  - [patch][a1fb551](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1fb551):
2235
-
2236
2199
  - Fixed style attribute ADF error for Fabric Status
2237
2200
 
2238
2201
  ## 5.1.2
2239
2202
 
2240
2203
  - [patch][11d4b85](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/11d4b85):
2241
-
2242
2204
  - ED-5606 Adds union attrs support to validator
2243
2205
 
2244
2206
  ## 5.1.1
2245
2207
 
2246
2208
  - [patch][b19b7bb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b19b7bb):
2247
-
2248
2209
  - ED-5721 Validator now supports optional content
2249
2210
 
2250
2211
  ## 5.1.0
2251
2212
 
2252
2213
  - [minor][b440439](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b440439):
2253
-
2254
2214
  - Add breakout mark to editor, renderer and adf-utils
2255
2215
 
2256
2216
  ## 5.0.1
@@ -2261,7 +2221,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
2261
2221
  ## 5.0.0
2262
2222
 
2263
2223
  - [major][e1db106](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1db106):
2264
-
2265
2224
  - New validator API
2266
2225
 
2267
2226
  ### Breaking Change
@@ -2301,29 +2260,24 @@ https://product-fabric.atlassian.net/browse/FM-2393
2301
2260
  ## 4.1.0
2302
2261
 
2303
2262
  - [minor][4f5830f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4f5830f):
2304
-
2305
2263
  - ED-4200: add page layout support to generator and ADF schema
2306
2264
 
2307
2265
  ## 4.0.4
2308
2266
 
2309
2267
  - [patch][e8052e1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e8052e1):
2310
-
2311
2268
  - Add main field to adf-utils package.json
2312
2269
 
2313
2270
  ## 4.0.3
2314
2271
 
2315
2272
  - [patch][653b6a9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/653b6a9):
2316
-
2317
2273
  - removed optional attributes from adf-builder module for status node
2318
2274
 
2319
2275
  - [patch][cd5471b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cd5471b):
2320
-
2321
2276
  - added style attribute for Status node in ADF schema
2322
2277
 
2323
2278
  ## 4.0.2
2324
2279
 
2325
2280
  - [patch][6201223](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6201223" d):
2326
-
2327
2281
  - Add examples.
2328
2282
 
2329
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.24.0",
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.2.0",
29
+ "@atlaskit/adf-schema": "^51.3.0",
30
30
  "@babel/runtime": "^7.0.0"
31
31
  },
32
32
  "devDependencies": {