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.3.1 to 2.3.2

5

CHANGELOG.md
# @atlaskit/adf-schema
## 2.3.2
- [patch] [b425ea772b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b425ea772b):
- Revert "ED-5505 add strong as default mark to table header (pull request #5291)"
## 2.3.1

@@ -4,0 +9,0 @@ - [patch] [d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):

2

dist/es2015/schema/nodes/index.d.ts

@@ -23,3 +23,3 @@ export { confluenceJiraIssue } from './confluence-jira-issue';

export { mediaSingle, Layout as MediaSingleLayout, MediaSingleDefinition, MediaSingleAttributes, toJSON as mediaSingleToJSON, } from './media-single';
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 { 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 { tableHeaderDefaultMarks, table, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColors, tableBackgroundColorNames, calcTableColumnWidths, setCellAttrs, } from './tableNodes';
export { 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,5 +135,2 @@ import { Node as PmNode } from 'prosemirror-model';

};
export declare const tableHeaderDefaultMarks: {
type: string;
}[];
export declare const toJSONTableCell: (node: PmNode<any>) => {

@@ -145,7 +142,2 @@ attrs: Record<string, any>;

attrs: {
defaultMarks: {
default: {
type: string;
}[];
};
colspan: {

@@ -163,2 +155,5 @@ default: number;

};
defaultMarks: {
default: null;
};
};

@@ -165,0 +160,0 @@ tableRole: string;

@@ -191,3 +191,2 @@ import * as tslib_1 from "tslib";

};
export var tableHeaderDefaultMarks = [{ type: 'strong' }];
export var toJSONTableCell = function (node) { return ({

@@ -198,7 +197,2 @@ attrs: Object.keys(node.attrs).reduce(function (obj, key) {

}
if (key === 'defaultMarks' &&
node.type.name === 'tableHeader' &&
obj[key] === tableHeaderDefaultMarks) {
delete obj[key];
}
return obj;

@@ -209,3 +203,3 @@ }, {}),

content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | applicationCard | decisionList | taskList | blockCard | extension)+',
attrs: tslib_1.__assign({}, cellAttrs, { defaultMarks: { default: tableHeaderDefaultMarks } }),
attrs: cellAttrs,
tableRole: 'header_cell',

@@ -212,0 +206,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 { 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 { 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,3 +53,2 @@ "use strict";

var tableNodes_1 = require("./tableNodes");
exports.tableHeaderDefaultMarks = tableNodes_1.tableHeaderDefaultMarks;
exports.table = tableNodes_1.table;

@@ -56,0 +55,0 @@ exports.tableToJSON = tableNodes_1.tableToJSON;

@@ -135,5 +135,2 @@ import { Node as PmNode } from 'prosemirror-model';

};
export declare const tableHeaderDefaultMarks: {
type: string;
}[];
export declare const toJSONTableCell: (node: PmNode<any>) => {

@@ -145,7 +142,2 @@ attrs: Record<string, any>;

attrs: {
defaultMarks: {
default: {
type: string;
}[];
};
colspan: {

@@ -163,2 +155,5 @@ default: number;

};
defaultMarks: {
default: null;
};
};

@@ -165,0 +160,0 @@ tableRole: string;

@@ -194,3 +194,2 @@ "use strict";

};
exports.tableHeaderDefaultMarks = [{ type: 'strong' }];
exports.toJSONTableCell = function (node) { return ({

@@ -201,7 +200,2 @@ 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;

@@ -212,3 +206,3 @@ }, {}),

content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | applicationCard | decisionList | taskList | blockCard | extension)+',
attrs: tslib_1.__assign({}, cellAttrs, { defaultMarks: { default: exports.tableHeaderDefaultMarks } }),
attrs: cellAttrs,
tableRole: 'header_cell',

@@ -215,0 +209,0 @@ isolating: true,

{
"name": "@atlaskit/adf-schema",
"version": "2.3.0",
"version": "2.3.1",
"sideEffects": false
}
{
"name": "@atlaskit/adf-schema",
"version": "2.3.1",
"version": "2.3.2",
"sideEffects": false
}
{
"name": "@atlaskit/adf-schema",
"version": "2.3.1",
"version": "2.3.2",
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",

@@ -38,3 +38,3 @@ "license": "Apache-2.0",

"@atlaskit/editor-json-transformer": "^5.0.0",
"@atlaskit/editor-test-helpers": "^8.0.1",
"@atlaskit/editor-test-helpers": "^8.0.4",
"@atlaskit/json-schema-generator": "^2.1.1",

@@ -41,0 +41,0 @@ "ajv": "^4.11.3",

{
"extends": "../../../tsconfig.core.json",
"compilerOptions": {
"baseUrl": "./",
},
"include": [

@@ -15,2 +18,2 @@ "src/**/*.ts",

]
}
}
{
"name": "@atlaskit/adf-schema",
"version": "2.3.1",
"version": "2.3.2",
"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