@atlaskit/adf-schema 24.0.1 → 24.0.2
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 +7 -0
- package/dist/cjs/schema/nodes/block-card.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/nodes/block-card.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/nodes/block-card.js +3 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
- package/report.api.md +5 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 24.0.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [`b86981a0cf0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b86981a0cf0) - [ux] ED-15426 fix broken copy paste of block card. Add content to schema toDOM.
|
8
|
+
- Updated dependencies
|
9
|
+
|
3
10
|
## 24.0.1
|
4
11
|
|
5
12
|
### Patch Changes
|
@@ -45,12 +45,14 @@ var blockCard = {
|
|
45
45
|
}
|
46
46
|
}],
|
47
47
|
toDOM: function toDOM(node) {
|
48
|
+
var _node$attrs;
|
49
|
+
|
48
50
|
var attrs = {
|
49
51
|
'data-block-card': '',
|
50
52
|
href: node.attrs.url || '',
|
51
53
|
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : ''
|
52
54
|
};
|
53
|
-
return ['a', attrs];
|
55
|
+
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url) || ' '];
|
54
56
|
}
|
55
57
|
};
|
56
58
|
exports.blockCard = blockCard;
|
package/dist/cjs/version.json
CHANGED
@@ -39,12 +39,14 @@ export const blockCard = {
|
|
39
39
|
}],
|
40
40
|
|
41
41
|
toDOM(node) {
|
42
|
+
var _node$attrs;
|
43
|
+
|
42
44
|
const attrs = {
|
43
45
|
'data-block-card': '',
|
44
46
|
href: node.attrs.url || '',
|
45
47
|
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : ''
|
46
48
|
};
|
47
|
-
return ['a', attrs];
|
49
|
+
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url) || ' '];
|
48
50
|
}
|
49
51
|
|
50
52
|
};
|
package/dist/es2019/version.json
CHANGED
@@ -38,11 +38,13 @@ export var blockCard = {
|
|
38
38
|
}
|
39
39
|
}],
|
40
40
|
toDOM: function toDOM(node) {
|
41
|
+
var _node$attrs;
|
42
|
+
|
41
43
|
var attrs = {
|
42
44
|
'data-block-card': '',
|
43
45
|
href: node.attrs.url || '',
|
44
46
|
'data-card-data': node.attrs.data ? JSON.stringify(node.attrs.data) : ''
|
45
47
|
};
|
46
|
-
return ['a', attrs];
|
48
|
+
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url) || ' '];
|
47
49
|
}
|
48
50
|
};
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "24.0.
|
3
|
+
"version": "24.0.2",
|
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/"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@atlaskit/codemod-utils": "^4.1.0",
|
49
|
-
"@atlaskit/editor-tables": "^2.
|
49
|
+
"@atlaskit/editor-tables": "^2.2.0",
|
50
50
|
"@babel/runtime": "^7.0.0",
|
51
51
|
"@types/linkify-it": "^2.0.4",
|
52
52
|
"@types/prosemirror-model": "^1.11.0",
|
package/report.api.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
## API Report File for "@atlaskit/adf-schema"
|
1
|
+
## API Report File for "@atlaskit/adf-schema".
|
2
2
|
|
3
|
-
> Do not edit this file.
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
4
|
+
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
4
6
|
|
5
7
|
```ts
|
6
8
|
import { CellAttributes } from '@atlaskit/editor-tables/types';
|
@@ -139,7 +141,7 @@ export declare interface BlockCardDefinition {
|
|
139
141
|
export declare type BlockContent =
|
140
142
|
| PanelDefinition
|
141
143
|
| ParagraphDefinition
|
142
|
-
|
|
144
|
+
| ParagraphWithMarksDefinition
|
143
145
|
| BlockQuoteDefinition
|
144
146
|
| OrderedListDefinition
|
145
147
|
| BulletListDefinition
|