@atlaskit/adf-schema 52.11.2 → 52.11.4
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 +13 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +2 -2
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
- package/dist/cjs/schema/nodes/code-block.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +2 -2
- package/dist/es2019/next-schema/nodes/codeBlock.js +2 -2
- package/dist/es2019/schema/nodes/code-block.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +2 -2
- package/dist/esm/next-schema/nodes/codeBlock.js +2 -2
- package/dist/esm/schema/nodes/code-block.js +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +5 -5
- package/dist/types-ts4.5/schema/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/index.d.ts +5 -5
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 52.11.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 52.11.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d93fb5f6f6ced`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d93fb5f6f6ced) -
|
|
14
|
+
[EDITOR-7014] Preserve explicit code block wrap values during paste and ADF serialization
|
|
15
|
+
|
|
3
16
|
## 52.11.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -214,7 +214,7 @@ var codeBlockRootOnlyWithExtendedAttributesStage0 = exports.codeBlockRootOnlyWit
|
|
|
214
214
|
default: null
|
|
215
215
|
},
|
|
216
216
|
wrap: {
|
|
217
|
-
default:
|
|
217
|
+
default: null
|
|
218
218
|
},
|
|
219
219
|
hideLineNumbers: {
|
|
220
220
|
default: false
|
|
@@ -238,7 +238,7 @@ var codeBlockWithExtendedAttributesStage0 = exports.codeBlockWithExtendedAttribu
|
|
|
238
238
|
default: null
|
|
239
239
|
},
|
|
240
240
|
wrap: {
|
|
241
|
-
default:
|
|
241
|
+
default: null
|
|
242
242
|
},
|
|
243
243
|
hideLineNumbers: {
|
|
244
244
|
default: false
|
|
@@ -59,7 +59,7 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
|
|
|
59
59
|
},
|
|
60
60
|
wrap: {
|
|
61
61
|
type: 'boolean',
|
|
62
|
-
default:
|
|
62
|
+
default: null,
|
|
63
63
|
optional: true
|
|
64
64
|
},
|
|
65
65
|
hideLineNumbers: {
|
|
@@ -93,7 +93,7 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
|
|
|
93
93
|
},
|
|
94
94
|
wrap: {
|
|
95
95
|
type: 'boolean',
|
|
96
|
-
default:
|
|
96
|
+
default: null,
|
|
97
97
|
optional: true
|
|
98
98
|
},
|
|
99
99
|
hideLineNumbers: {
|
|
@@ -165,7 +165,7 @@ var toJSON = exports.toJSON = function toJSON(node) {
|
|
|
165
165
|
if (key === 'language' && node.attrs.language === null) {
|
|
166
166
|
return memo;
|
|
167
167
|
}
|
|
168
|
-
if (key === 'wrap' &&
|
|
168
|
+
if (key === 'wrap' && node.attrs.wrap === null) {
|
|
169
169
|
return memo;
|
|
170
170
|
}
|
|
171
171
|
if (key === 'hideLineNumbers' && !node.attrs.hideLineNumbers) {
|
|
@@ -208,7 +208,7 @@ export const codeBlockRootOnlyWithExtendedAttributesStage0 = createPMNodeSpecFac
|
|
|
208
208
|
default: null
|
|
209
209
|
},
|
|
210
210
|
wrap: {
|
|
211
|
-
default:
|
|
211
|
+
default: null
|
|
212
212
|
},
|
|
213
213
|
hideLineNumbers: {
|
|
214
214
|
default: false
|
|
@@ -232,7 +232,7 @@ export const codeBlockWithExtendedAttributesStage0 = createPMNodeSpecFactory({
|
|
|
232
232
|
default: null
|
|
233
233
|
},
|
|
234
234
|
wrap: {
|
|
235
|
-
default:
|
|
235
|
+
default: null
|
|
236
236
|
},
|
|
237
237
|
hideLineNumbers: {
|
|
238
238
|
default: false
|
|
@@ -53,7 +53,7 @@ export const codeBlock = adfNode('codeBlock').define({
|
|
|
53
53
|
},
|
|
54
54
|
wrap: {
|
|
55
55
|
type: 'boolean',
|
|
56
|
-
default:
|
|
56
|
+
default: null,
|
|
57
57
|
optional: true
|
|
58
58
|
},
|
|
59
59
|
hideLineNumbers: {
|
|
@@ -87,7 +87,7 @@ export const codeBlock = adfNode('codeBlock').define({
|
|
|
87
87
|
},
|
|
88
88
|
wrap: {
|
|
89
89
|
type: 'boolean',
|
|
90
|
-
default:
|
|
90
|
+
default: null,
|
|
91
91
|
optional: true
|
|
92
92
|
},
|
|
93
93
|
hideLineNumbers: {
|
|
@@ -153,7 +153,7 @@ export const toJSON = node => ({
|
|
|
153
153
|
if (key === 'language' && node.attrs.language === null) {
|
|
154
154
|
return memo;
|
|
155
155
|
}
|
|
156
|
-
if (key === 'wrap' &&
|
|
156
|
+
if (key === 'wrap' && node.attrs.wrap === null) {
|
|
157
157
|
return memo;
|
|
158
158
|
}
|
|
159
159
|
if (key === 'hideLineNumbers' && !node.attrs.hideLineNumbers) {
|
|
@@ -208,7 +208,7 @@ export var codeBlockRootOnlyWithExtendedAttributesStage0 = createPMNodeSpecFacto
|
|
|
208
208
|
default: null
|
|
209
209
|
},
|
|
210
210
|
wrap: {
|
|
211
|
-
default:
|
|
211
|
+
default: null
|
|
212
212
|
},
|
|
213
213
|
hideLineNumbers: {
|
|
214
214
|
default: false
|
|
@@ -232,7 +232,7 @@ export var codeBlockWithExtendedAttributesStage0 = createPMNodeSpecFactory({
|
|
|
232
232
|
default: null
|
|
233
233
|
},
|
|
234
234
|
wrap: {
|
|
235
|
-
default:
|
|
235
|
+
default: null
|
|
236
236
|
},
|
|
237
237
|
hideLineNumbers: {
|
|
238
238
|
default: false
|
|
@@ -53,7 +53,7 @@ export var codeBlock = adfNode('codeBlock').define({
|
|
|
53
53
|
},
|
|
54
54
|
wrap: {
|
|
55
55
|
type: 'boolean',
|
|
56
|
-
default:
|
|
56
|
+
default: null,
|
|
57
57
|
optional: true
|
|
58
58
|
},
|
|
59
59
|
hideLineNumbers: {
|
|
@@ -87,7 +87,7 @@ export var codeBlock = adfNode('codeBlock').define({
|
|
|
87
87
|
},
|
|
88
88
|
wrap: {
|
|
89
89
|
type: 'boolean',
|
|
90
|
-
default:
|
|
90
|
+
default: null,
|
|
91
91
|
optional: true
|
|
92
92
|
},
|
|
93
93
|
hideLineNumbers: {
|
|
@@ -159,7 +159,7 @@ export var toJSON = function toJSON(node) {
|
|
|
159
159
|
if (key === 'language' && node.attrs.language === null) {
|
|
160
160
|
return memo;
|
|
161
161
|
}
|
|
162
|
-
if (key === 'wrap' &&
|
|
162
|
+
if (key === 'wrap' && node.attrs.wrap === null) {
|
|
163
163
|
return memo;
|
|
164
164
|
}
|
|
165
165
|
if (key === 'hideLineNumbers' && !node.attrs.hideLineNumbers) {
|
|
@@ -9,4 +9,4 @@ export { inlineNodes } from './inline-nodes';
|
|
|
9
9
|
export { createSchema } from './create-schema';
|
|
10
10
|
export { sanitizeNodes } from './sanitizeNodes';
|
|
11
11
|
export type { NodeSpecOptions, MarkSpecOptions } from './createPMSpecFactory';
|
|
12
|
-
export { createPMNodeSpecFactory, createPMMarkSpecFactory
|
|
12
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
|
|
@@ -5,9 +5,9 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
|
|
5
5
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
|
6
6
|
export { doc } from './doc';
|
|
7
7
|
export type { DocNode } from './doc';
|
|
8
|
-
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId
|
|
8
|
+
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from './blockquote';
|
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
|
10
|
-
export { bulletList, bulletListSelector, bulletListWithLocalId
|
|
10
|
+
export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
|
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
|
12
12
|
export { codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, toJSON as codeBlockToJSON, } from './code-block';
|
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
|
@@ -25,7 +25,7 @@ export { emoji, emojiWithLocalId } from './emoji';
|
|
|
25
25
|
export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
26
26
|
export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
|
-
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition
|
|
28
|
+
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
|
|
29
29
|
export { listItem, listItemWithLocalId } from './list-item';
|
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
|
31
31
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
@@ -39,7 +39,7 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
|
39
39
|
export type { MediaType, MediaBaseAttributes, MediaAttributes, ExternalMediaAttributes, DisplayType as MediaDisplayType, MediaDefinition, MediaADFAttrs, } from './media';
|
|
40
40
|
export { mediaGroup } from './media-group';
|
|
41
41
|
export { mediaInline } from './media-inline';
|
|
42
|
-
export type { MediaInlineAttributes, MediaInlineDefinition
|
|
42
|
+
export type { MediaInlineAttributes, MediaInlineDefinition } from './media-inline';
|
|
43
43
|
export type { MediaGroupDefinition } from './media-group';
|
|
44
44
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
|
|
45
45
|
export type { MediaSingleDefinition } from './media-single';
|
|
@@ -59,7 +59,7 @@ export { placeholder, placeholderWithLocalId } from './placeholder';
|
|
|
59
59
|
export type { PlaceholderDefinition } from './placeholder';
|
|
60
60
|
export { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, } from './layout-section';
|
|
61
61
|
export type { LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, } from './layout-section';
|
|
62
|
-
export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId
|
|
62
|
+
export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId } from './layout-column';
|
|
63
63
|
export type { LayoutColumnDefinition } from './layout-column';
|
|
64
64
|
export { inlineCard, inlineCardWithLocalId } from './inline-card';
|
|
65
65
|
export type { InlineCardDefinition } from './inline-card';
|
|
@@ -9,4 +9,4 @@ export { inlineNodes } from './inline-nodes';
|
|
|
9
9
|
export { createSchema } from './create-schema';
|
|
10
10
|
export { sanitizeNodes } from './sanitizeNodes';
|
|
11
11
|
export type { NodeSpecOptions, MarkSpecOptions } from './createPMSpecFactory';
|
|
12
|
-
export { createPMNodeSpecFactory, createPMMarkSpecFactory
|
|
12
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
|
|
@@ -5,9 +5,9 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
|
|
5
5
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
|
6
6
|
export { doc } from './doc';
|
|
7
7
|
export type { DocNode } from './doc';
|
|
8
|
-
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId
|
|
8
|
+
export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from './blockquote';
|
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
|
10
|
-
export { bulletList, bulletListSelector, bulletListWithLocalId
|
|
10
|
+
export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
|
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
|
12
12
|
export { codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, toJSON as codeBlockToJSON, } from './code-block';
|
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
|
@@ -25,7 +25,7 @@ export { emoji, emojiWithLocalId } from './emoji';
|
|
|
25
25
|
export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
26
26
|
export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
|
-
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition
|
|
28
|
+
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
|
|
29
29
|
export { listItem, listItemWithLocalId } from './list-item';
|
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
|
31
31
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
@@ -39,7 +39,7 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
|
39
39
|
export type { MediaType, MediaBaseAttributes, MediaAttributes, ExternalMediaAttributes, DisplayType as MediaDisplayType, MediaDefinition, MediaADFAttrs, } from './media';
|
|
40
40
|
export { mediaGroup } from './media-group';
|
|
41
41
|
export { mediaInline } from './media-inline';
|
|
42
|
-
export type { MediaInlineAttributes, MediaInlineDefinition
|
|
42
|
+
export type { MediaInlineAttributes, MediaInlineDefinition } from './media-inline';
|
|
43
43
|
export type { MediaGroupDefinition } from './media-group';
|
|
44
44
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
|
|
45
45
|
export type { MediaSingleDefinition } from './media-single';
|
|
@@ -59,7 +59,7 @@ export { placeholder, placeholderWithLocalId } from './placeholder';
|
|
|
59
59
|
export type { PlaceholderDefinition } from './placeholder';
|
|
60
60
|
export { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, } from './layout-section';
|
|
61
61
|
export type { LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, } from './layout-section';
|
|
62
|
-
export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId
|
|
62
|
+
export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId } from './layout-column';
|
|
63
63
|
export type { LayoutColumnDefinition } from './layout-column';
|
|
64
64
|
export { inlineCard, inlineCardWithLocalId } from './inline-card';
|
|
65
65
|
export type { InlineCardDefinition } from './inline-card';
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "52.11.
|
|
3
|
+
"version": "52.11.4",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository":
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git+https://bitbucket.org/atlassian/adf-schema.git"
|
|
11
|
-
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
12
9
|
"atlassian": {
|
|
13
10
|
"team": "Editor: Lego"
|
|
14
11
|
},
|
|
@@ -43,7 +40,7 @@
|
|
|
43
40
|
"@atlaskit/adf-schema-generator": "^2.2.0",
|
|
44
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
42
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^81.0.0",
|
|
47
44
|
"@babel/runtime": "^7.0.0",
|
|
48
45
|
"css-color-names": "0.0.4",
|
|
49
46
|
"linkify-it": "^3.0.3",
|