@atlaskit/adf-schema
Advanced tools
Comparing version 2.7.1 to 2.8.0
# @atlaskit/adf-schema | ||
## 2.8.0 | ||
### Minor Changes | ||
- [minor][86bf524679](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/86bf524679): | ||
ED-7117, ED-7087: Fix copy pasting smart links out of editor. Fallback to HTML anchor tag if errors occur during rendering (e.g. no provider found). | ||
## 2.7.1 | ||
@@ -4,0 +12,0 @@ |
@@ -10,7 +10,8 @@ export var blockCard = { | ||
{ | ||
tag: 'div[data-block-card]', | ||
tag: 'a[data-block-card]', | ||
getAttrs: function (dom) { | ||
var data = dom.getAttribute('data-card-data'); | ||
var anchor = dom; | ||
var data = anchor.getAttribute('data-card-data'); | ||
return { | ||
url: dom.getAttribute('data-card-url'), | ||
url: anchor.getAttribute('href'), | ||
data: data ? JSON.parse(data) : null, | ||
@@ -24,8 +25,8 @@ }; | ||
'data-block-card': '', | ||
'data-card-url': node.attrs.url, | ||
href: node.attrs.url, | ||
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : '', | ||
}; | ||
return ['div', attrs]; | ||
return ['a', attrs]; | ||
}, | ||
}; | ||
//# sourceMappingURL=block-card.js.map |
@@ -11,7 +11,8 @@ export var inlineCard = { | ||
{ | ||
tag: 'span[data-inline-card]', | ||
tag: 'a[data-inline-card]', | ||
getAttrs: function (dom) { | ||
var data = dom.getAttribute('data-card-data'); | ||
var anchor = dom; | ||
var data = anchor.getAttribute('data-card-data'); | ||
return { | ||
url: dom.getAttribute('data-card-url'), | ||
url: anchor.getAttribute('href'), | ||
data: data ? JSON.parse(data) : null, | ||
@@ -25,8 +26,8 @@ }; | ||
'data-inline-card': '', | ||
'data-card-url': node.attrs.url, | ||
href: node.attrs.url, | ||
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : '', | ||
}; | ||
return ['span', attrs]; | ||
return ['a', attrs, node.attrs.url]; | ||
}, | ||
}; | ||
//# sourceMappingURL=inline-card.js.map |
@@ -12,7 +12,8 @@ "use strict"; | ||
{ | ||
tag: 'div[data-block-card]', | ||
tag: 'a[data-block-card]', | ||
getAttrs: function (dom) { | ||
var data = dom.getAttribute('data-card-data'); | ||
var anchor = dom; | ||
var data = anchor.getAttribute('data-card-data'); | ||
return { | ||
url: dom.getAttribute('data-card-url'), | ||
url: anchor.getAttribute('href'), | ||
data: data ? JSON.parse(data) : null, | ||
@@ -26,8 +27,8 @@ }; | ||
'data-block-card': '', | ||
'data-card-url': node.attrs.url, | ||
href: node.attrs.url, | ||
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : '', | ||
}; | ||
return ['div', attrs]; | ||
return ['a', attrs]; | ||
}, | ||
}; | ||
//# sourceMappingURL=block-card.js.map |
@@ -13,7 +13,8 @@ "use strict"; | ||
{ | ||
tag: 'span[data-inline-card]', | ||
tag: 'a[data-inline-card]', | ||
getAttrs: function (dom) { | ||
var data = dom.getAttribute('data-card-data'); | ||
var anchor = dom; | ||
var data = anchor.getAttribute('data-card-data'); | ||
return { | ||
url: dom.getAttribute('data-card-url'), | ||
url: anchor.getAttribute('href'), | ||
data: data ? JSON.parse(data) : null, | ||
@@ -27,8 +28,8 @@ }; | ||
'data-inline-card': '', | ||
'data-card-url': node.attrs.url, | ||
href: node.attrs.url, | ||
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : '', | ||
}; | ||
return ['span', attrs]; | ||
return ['a', attrs, node.attrs.url]; | ||
}, | ||
}; | ||
//# sourceMappingURL=inline-card.js.map |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
718647
18847