@atlaskit/adf-schema
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -6,4 +6,4 @@ [ | ||
"stats": { | ||
"size": 55880, | ||
"gzipSize": 13604 | ||
"size": 56835, | ||
"gzipSize": 13863 | ||
} | ||
@@ -23,6 +23,6 @@ }, | ||
"stats": { | ||
"size": 115934, | ||
"gzipSize": 31802 | ||
"size": 116889, | ||
"gzipSize": 32050 | ||
} | ||
} | ||
] |
# @atlaskit/adf-schema | ||
## 2.3.0 | ||
- [minor] [02dd1f7287](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/02dd1f7287): | ||
- [ED-5505] Persists formatting to table cells and headers when toggling header row, column or applying any text formatting to empty cells. | ||
## 2.2.1 | ||
@@ -4,0 +9,0 @@ - [patch] [3f8a08fc88](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f8a08fc88): |
@@ -23,3 +23,3 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { mediaSingle, Layout as MediaSingleLayout, MediaSingleDefinition, MediaSingleAttributes, toJSON as mediaSingleToJSON, } from './media-single'; | ||
export { table, TableAttributes, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, CellAttributes, Layout as TableLayout, calcTableColumnWidths, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, setCellAttrs, } from './tableNodes'; | ||
export { tableHeaderDefaultMarks, table, TableAttributes, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, CellAttributes, Layout as TableLayout, calcTableColumnWidths, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, setCellAttrs, } from './tableNodes'; | ||
export { applicationCard, ApplicationCardAttributes, AppCardAction, ApplicationCardDefinition, } from './applicationCard'; | ||
@@ -26,0 +26,0 @@ export { decisionList, DecisionListDefinition, decisionListSelector, } from './decision-list'; |
@@ -23,3 +23,3 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { mediaSingle, toJSON as mediaSingleToJSON, } from './media-single'; | ||
export { table, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, calcTableColumnWidths, setCellAttrs, } from './tableNodes'; | ||
export { tableHeaderDefaultMarks, table, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, calcTableColumnWidths, setCellAttrs, } from './tableNodes'; | ||
export { applicationCard, } from './applicationCard'; | ||
@@ -26,0 +26,0 @@ export { decisionList, decisionListSelector, } from './decision-list'; |
@@ -135,2 +135,5 @@ import { Node as PmNode } from 'prosemirror-model'; | ||
}; | ||
export declare const tableHeaderDefaultMarks: { | ||
type: string; | ||
}[]; | ||
export declare const toJSONTableCell: (node: PmNode<any>) => { | ||
@@ -142,2 +145,7 @@ attrs: Record<string, any>; | ||
attrs: { | ||
defaultMarks: { | ||
default: { | ||
type: string; | ||
}[]; | ||
}; | ||
colspan: { | ||
@@ -155,5 +163,2 @@ default: number; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -160,0 +165,0 @@ tableRole: string; |
@@ -191,2 +191,3 @@ import * as tslib_1 from "tslib"; | ||
}; | ||
export var tableHeaderDefaultMarks = [{ type: 'strong' }]; | ||
export var toJSONTableCell = function (node) { return ({ | ||
@@ -197,2 +198,7 @@ attrs: Object.keys(node.attrs).reduce(function (obj, key) { | ||
} | ||
if (key === 'defaultMarks' && | ||
node.type.name === 'tableHeader' && | ||
obj[key] === tableHeaderDefaultMarks) { | ||
delete obj[key]; | ||
} | ||
return obj; | ||
@@ -203,3 +209,3 @@ }, {}), | ||
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | applicationCard | decisionList | taskList | blockCard | extension)+', | ||
attrs: cellAttrs, | ||
attrs: tslib_1.__assign({}, cellAttrs, { defaultMarks: { default: tableHeaderDefaultMarks } }), | ||
tableRole: 'header_cell', | ||
@@ -206,0 +212,0 @@ isolating: true, |
@@ -23,3 +23,3 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { mediaSingle, Layout as MediaSingleLayout, MediaSingleDefinition, MediaSingleAttributes, toJSON as mediaSingleToJSON, } from './media-single'; | ||
export { table, TableAttributes, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, CellAttributes, Layout as TableLayout, calcTableColumnWidths, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, setCellAttrs, } from './tableNodes'; | ||
export { tableHeaderDefaultMarks, table, TableAttributes, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, CellAttributes, Layout as TableLayout, calcTableColumnWidths, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, setCellAttrs, } from './tableNodes'; | ||
export { applicationCard, ApplicationCardAttributes, AppCardAction, ApplicationCardDefinition, } from './applicationCard'; | ||
@@ -26,0 +26,0 @@ export { decisionList, DecisionListDefinition, decisionListSelector, } from './decision-list'; |
@@ -53,2 +53,3 @@ "use strict"; | ||
var tableNodes_1 = require("./tableNodes"); | ||
exports.tableHeaderDefaultMarks = tableNodes_1.tableHeaderDefaultMarks; | ||
exports.table = tableNodes_1.table; | ||
@@ -55,0 +56,0 @@ exports.tableToJSON = tableNodes_1.tableToJSON; |
@@ -135,2 +135,5 @@ import { Node as PmNode } from 'prosemirror-model'; | ||
}; | ||
export declare const tableHeaderDefaultMarks: { | ||
type: string; | ||
}[]; | ||
export declare const toJSONTableCell: (node: PmNode<any>) => { | ||
@@ -142,2 +145,7 @@ attrs: Record<string, any>; | ||
attrs: { | ||
defaultMarks: { | ||
default: { | ||
type: string; | ||
}[]; | ||
}; | ||
colspan: { | ||
@@ -155,5 +163,2 @@ default: number; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -160,0 +165,0 @@ tableRole: string; |
@@ -194,2 +194,3 @@ "use strict"; | ||
}; | ||
exports.tableHeaderDefaultMarks = [{ type: 'strong' }]; | ||
exports.toJSONTableCell = function (node) { return ({ | ||
@@ -200,2 +201,7 @@ attrs: Object.keys(node.attrs).reduce(function (obj, key) { | ||
} | ||
if (key === 'defaultMarks' && | ||
node.type.name === 'tableHeader' && | ||
obj[key] === exports.tableHeaderDefaultMarks) { | ||
delete obj[key]; | ||
} | ||
return obj; | ||
@@ -206,3 +212,3 @@ }, {}), | ||
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | applicationCard | decisionList | taskList | blockCard | extension)+', | ||
attrs: cellAttrs, | ||
attrs: tslib_1.__assign({}, cellAttrs, { defaultMarks: { default: exports.tableHeaderDefaultMarks } }), | ||
tableRole: 'header_cell', | ||
@@ -209,0 +215,0 @@ isolating: true, |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.1", | ||
"version": "2.3.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.2.1", | ||
"version": "2.3.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
706735
18570