@atlaskit/adf-schema 50.2.2 → 50.2.4
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 +12 -0
- package/dist/cjs/schema/nodes/layout-section.js +1 -1
- package/dist/cjs/schema/nodes/tableNodes.js +3 -1
- package/dist/es2019/schema/nodes/layout-section.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +3 -1
- package/dist/esm/schema/nodes/layout-section.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 50.2.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 79c4757: Added fix for table cell attribute parser which was not correctly identifying background colors when the data-cell-background attribute was not lowercase
|
8
|
+
|
9
|
+
## 50.2.3
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- cdf64a5: NO-ISSUE Fix layoutSectionWithLocalId export to use stage0 schema builder.
|
14
|
+
|
3
15
|
## 50.2.2
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -78,7 +78,7 @@ var layoutSectionWithSingleColumn = exports.layoutSectionWithSingleColumn = (0,
|
|
78
78
|
return ['div', attrs, 0];
|
79
79
|
}
|
80
80
|
});
|
81
|
-
var layoutSectionWithLocalId = exports.layoutSectionWithLocalId = (0, _nodeTypes.
|
81
|
+
var layoutSectionWithLocalId = exports.layoutSectionWithLocalId = (0, _nodeTypes.layoutSection)({
|
82
82
|
parseDOM: [{
|
83
83
|
context: 'layoutSection//|layoutColumn//',
|
84
84
|
tag: 'div[data-layout-section]',
|
@@ -172,7 +172,9 @@ var getCellDomAttrs = exports.getCellDomAttrs = function getCellDomAttrs(node) {
|
|
172
172
|
if (color) {
|
173
173
|
attrs['data-cell-background'] = color;
|
174
174
|
}
|
175
|
-
|
175
|
+
if (typeof color === 'string') {
|
176
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
177
|
+
}
|
176
178
|
}
|
177
179
|
}
|
178
180
|
if (nodeType === 'tableHeader') {
|
@@ -76,7 +76,7 @@ export const layoutSectionWithSingleColumn = layoutSectionWithSingleColumnStage0
|
|
76
76
|
return ['div', attrs, 0];
|
77
77
|
}
|
78
78
|
});
|
79
|
-
export const layoutSectionWithLocalId =
|
79
|
+
export const layoutSectionWithLocalId = layoutSectionFactory({
|
80
80
|
parseDOM: [{
|
81
81
|
context: 'layoutSection//|layoutColumn//',
|
82
82
|
tag: 'div[data-layout-section]',
|
@@ -163,7 +163,9 @@ export const getCellDomAttrs = node => {
|
|
163
163
|
if (color) {
|
164
164
|
attrs['data-cell-background'] = color;
|
165
165
|
}
|
166
|
-
|
166
|
+
if (typeof color === 'string') {
|
167
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
168
|
+
}
|
167
169
|
}
|
168
170
|
}
|
169
171
|
if (nodeType === 'tableHeader') {
|
@@ -74,7 +74,7 @@ export var layoutSectionWithSingleColumn = layoutSectionWithSingleColumnStage0Fa
|
|
74
74
|
return ['div', attrs, 0];
|
75
75
|
}
|
76
76
|
});
|
77
|
-
export var layoutSectionWithLocalId =
|
77
|
+
export var layoutSectionWithLocalId = layoutSectionFactory({
|
78
78
|
parseDOM: [{
|
79
79
|
context: 'layoutSection//|layoutColumn//',
|
80
80
|
tag: 'div[data-layout-section]',
|
@@ -165,7 +165,9 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
165
165
|
if (color) {
|
166
166
|
attrs['data-cell-background'] = color;
|
167
167
|
}
|
168
|
-
|
168
|
+
if (typeof color === 'string') {
|
169
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
170
|
+
}
|
169
171
|
}
|
170
172
|
}
|
171
173
|
if (nodeType === 'tableHeader') {
|
package/package.json
CHANGED