@atlaskit/adf-schema 20.1.0 → 20.1.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 20.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41265fc80a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41265fc80a4) - MEX-1245 Ensure nodes with block marks can be parsed during
8
+ parseDOM/toDOM (e.g. linked media)
9
+
3
10
  ## 20.1.0
4
11
 
5
12
  ### Minor Changes
@@ -62,6 +62,8 @@ var link = {
62
62
  getAttrs: getLinkAttrs('href')
63
63
  }],
64
64
  toDOM: function toDOM(node, isInline) {
65
+ var _objectSpread2;
66
+
65
67
  var attrs = Object.keys(node.attrs).reduce(function (attrs, key) {
66
68
  if (key === '__confluenceMetadata') {
67
69
  if (node.attrs[key] !== null) {
@@ -80,9 +82,7 @@ var link = {
80
82
  return ['a', attrs];
81
83
  }
82
84
 
83
- return ['a', _objectSpread(_objectSpread({}, attrs), {}, {
84
- class: 'blockLink'
85
- }), 0];
85
+ return ['a', _objectSpread(_objectSpread({}, attrs), {}, (_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, 'data-block-link', 'true'), (0, _defineProperty2.default)(_objectSpread2, "class", 'blockLink'), _objectSpread2)), 0];
86
86
  }
87
87
  };
88
88
  exports.link = link;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.0",
3
+ "version": "20.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -64,6 +64,7 @@ export const link = {
64
64
  }
65
65
 
66
66
  return ['a', { ...attrs,
67
+ ['data-block-link']: 'true',
67
68
  class: 'blockLink'
68
69
  }, 0];
69
70
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.0",
3
+ "version": "20.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -52,6 +52,8 @@ export var link = {
52
52
  getAttrs: getLinkAttrs('href')
53
53
  }],
54
54
  toDOM: function toDOM(node, isInline) {
55
+ var _objectSpread2;
56
+
55
57
  var attrs = Object.keys(node.attrs).reduce(function (attrs, key) {
56
58
  if (key === '__confluenceMetadata') {
57
59
  if (node.attrs[key] !== null) {
@@ -70,9 +72,7 @@ export var link = {
70
72
  return ['a', attrs];
71
73
  }
72
74
 
73
- return ['a', _objectSpread(_objectSpread({}, attrs), {}, {
74
- class: 'blockLink'
75
- }), 0];
75
+ return ['a', _objectSpread(_objectSpread({}, attrs), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, 'data-block-link', 'true'), _defineProperty(_objectSpread2, "class", 'blockLink'), _objectSpread2)), 0];
76
76
  }
77
77
  };
78
78
  var OPTIONAL_ATTRS = ['title', 'id', 'collection', 'occurrenceKey', '__confluenceMetadata'];
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.0",
3
+ "version": "20.1.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.0",
3
+ "version": "20.1.1",
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/"