Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/adf-schema

Package Overview
Dependencies
Maintainers
1
Versions
407
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/adf-schema - npm Package Compare versions

Comparing version 2.7.1 to 2.8.0

8

CHANGELOG.md
# @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 @@

11

dist/es2015/schema/nodes/block-card.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc