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