@atlaskit/adf-schema 20.1.1 → 20.1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 20.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bfc3a31f7d0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bfc3a31f7d0) - ED-14130 fix copy paste block cards
8
+
3
9
  ## 20.1.1
4
10
 
5
11
  ### Patch Changes
@@ -81,7 +81,10 @@ var panel = function panel(allowCustomPanel) {
81
81
  }],
82
82
  toDOM: function toDOM(node) {
83
83
  var attrs = getDomAttrs(node.attrs);
84
- return ['div', attrs, ['div', {}, 0]];
84
+ var contentAttrs = {
85
+ 'data-panel-content': 'true'
86
+ };
87
+ return ['div', attrs, ['div', contentAttrs, 0]];
85
88
  }
86
89
  };
87
90
  return panelNodeSpec;
@@ -107,7 +107,7 @@ var isBlockLevelNode = function isBlockLevelNode(node) {
107
107
 
108
108
  var NOT_INTERNAL_LINKS = [':not([data-inline-card])', ':not([data-block-card])', ':not([data-block-link])', ':not([data-skip-paste])'].join('');
109
109
  var ANCHOR_LINK = "a[href]".concat(NOT_INTERNAL_LINKS);
110
- var NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])'].join('');
110
+ var NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])', ':not([data-layout-content])', ':not([data-panel-content])'].join('');
111
111
  var pDOM = ['p', 0];
112
112
  var paragraph = {
113
113
  selectable: false,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.1",
3
+ "version": "20.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -64,7 +64,10 @@ export const panel = allowCustomPanel => {
64
64
 
65
65
  toDOM(node) {
66
66
  const attrs = getDomAttrs(node.attrs);
67
- return ['div', attrs, ['div', {}, 0]];
67
+ const contentAttrs = {
68
+ 'data-panel-content': 'true'
69
+ };
70
+ return ['div', attrs, ['div', contentAttrs, 0]];
68
71
  }
69
72
 
70
73
  };
@@ -97,7 +97,7 @@ const isBlockLevelNode = node => {
97
97
 
98
98
  const NOT_INTERNAL_LINKS = [':not([data-inline-card])', ':not([data-block-card])', ':not([data-block-link])', ':not([data-skip-paste])'].join('');
99
99
  const ANCHOR_LINK = `a[href]${NOT_INTERNAL_LINKS}`;
100
- const NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])'].join('');
100
+ const NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])', ':not([data-layout-content])', ':not([data-panel-content])'].join('');
101
101
  const pDOM = ['p', 0];
102
102
  export const paragraph = {
103
103
  selectable: false,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.1",
3
+ "version": "20.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -71,7 +71,10 @@ export var panel = function panel(allowCustomPanel) {
71
71
  }],
72
72
  toDOM: function toDOM(node) {
73
73
  var attrs = getDomAttrs(node.attrs);
74
- return ['div', attrs, ['div', {}, 0]];
74
+ var contentAttrs = {
75
+ 'data-panel-content': 'true'
76
+ };
77
+ return ['div', attrs, ['div', contentAttrs, 0]];
75
78
  }
76
79
  };
77
80
  return panelNodeSpec;
@@ -99,7 +99,7 @@ var isBlockLevelNode = function isBlockLevelNode(node) {
99
99
 
100
100
  var NOT_INTERNAL_LINKS = [':not([data-inline-card])', ':not([data-block-card])', ':not([data-block-link])', ':not([data-skip-paste])'].join('');
101
101
  var ANCHOR_LINK = "a[href]".concat(NOT_INTERNAL_LINKS);
102
- var NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])'].join('');
102
+ var NOT_INTERNAL_ELEMENTS = [':not(.code-block)', ':not([data-node-type])', ':not([data-embed-card])', ':not([data-layout-section])', ':not([data-task-local-id])', ':not([data-task-state])', ':not([data-pm-slice])', ':not([data-mark-type])', ':not([data-layout-content])', ':not([data-panel-content])'].join('');
103
103
  var pDOM = ['p', 0];
104
104
  export var paragraph = {
105
105
  selectable: false,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "20.1.1",
3
+ "version": "20.1.2",
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.1",
3
+ "version": "20.1.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/"