@atlaskit/adf-schema
Advanced tools
Comparing version 2.5.0 to 2.5.1
# @atlaskit/adf-schema | ||
## 2.5.1 | ||
- [patch] [c01f9e1cc7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c01f9e1cc7): | ||
- Standardise code-block class between editor/renderer. Fix bg color when code-block is nested within a table heading. | ||
## 2.5.0 | ||
@@ -4,0 +9,0 @@ - [minor] [64dd2ab46f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/64dd2ab46f): |
@@ -25,12 +25,4 @@ import { createSchema } from './create-schema'; | ||
], | ||
marks: [ | ||
'em', | ||
'strong', | ||
'strike', | ||
'link', | ||
'mentionQuery', | ||
'emojiQuery', | ||
'code', | ||
], | ||
marks: ['em', 'strong', 'strike', 'link', 'code'], | ||
}); | ||
//# sourceMappingURL=bitbucket-schema.js.map |
import * as tslib_1 from "tslib"; | ||
import { Schema } from 'prosemirror-model'; | ||
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups'; | ||
import { link, em, strong, textColor, strike, subsup, underline, code, emojiQuery, typeAheadQuery, confluenceInlineComment, action, breakout, alignment, indentation, annotation, } from './marks'; | ||
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, action, breakout, alignment, indentation, annotation, } from './marks'; | ||
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedList, listItem, heading, blockquote, codeBlock, panel, rule, image, mention, media, mediaGroup, mediaSingle, hardBreak, emoji, table, tableCell, tableHeader, tableRow, applicationCard, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, } from './nodes'; | ||
@@ -108,3 +108,2 @@ function addItems(builtInItems, config, customSpecs) { | ||
{ name: 'code', spec: code }, | ||
{ name: 'emojiQuery', spec: emojiQuery }, | ||
{ name: 'typeAheadQuery', spec: typeAheadQuery }, | ||
@@ -111,0 +110,0 @@ { name: 'action', spec: action }, |
@@ -57,4 +57,2 @@ import { createSchema } from './create-schema'; | ||
'code', | ||
'mentionQuery', | ||
'emojiQuery', | ||
'textColor', | ||
@@ -61,0 +59,0 @@ 'confluenceInlineComment', |
@@ -7,3 +7,2 @@ export { em, EmDefinition } from './em'; | ||
export { link, LinkAttributes, LinkDefinition, toJSON as linkToJSON, } from './link'; | ||
export { emojiQuery } from './emoji-query'; | ||
export { typeAheadQuery } from './type-ahead-query'; | ||
@@ -10,0 +9,0 @@ export { subsup, SubSupDefinition, SubSupAttributes } from './subsup'; |
@@ -7,3 +7,2 @@ export { em } from './em'; | ||
export { link, toJSON as linkToJSON, } from './link'; | ||
export { emojiQuery } from './emoji-query'; | ||
export { typeAheadQuery } from './type-ahead-query'; | ||
@@ -10,0 +9,0 @@ export { subsup } from './subsup'; |
import { SEARCH_QUERY } from '../groups'; | ||
import { B400 } from '../../utils/colors'; | ||
export var typeAheadQuery = { | ||
excludes: "" + SEARCH_QUERY, | ||
inclusive: true, | ||
@@ -6,0 +5,0 @@ group: SEARCH_QUERY, |
@@ -94,3 +94,3 @@ import { Fragment } from 'prosemirror-model'; | ||
{ | ||
tag: 'div.CodeBlock', | ||
tag: 'div.code-block', | ||
preserveWhitespace: 'full', | ||
@@ -97,0 +97,0 @@ getAttrs: function (domNode) { |
@@ -5,3 +5,3 @@ var pDOM = ['p', 0]; | ||
group: 'block', | ||
marks: 'strong code em link strike subsup textColor typeAheadQuery underline mentionQuery emojiQuery confluenceInlineComment action annotation', | ||
marks: 'strong code em link strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation', | ||
parseDOM: [{ tag: 'p' }], | ||
@@ -8,0 +8,0 @@ toDOM: function () { |
@@ -27,12 +27,4 @@ "use strict"; | ||
], | ||
marks: [ | ||
'em', | ||
'strong', | ||
'strike', | ||
'link', | ||
'mentionQuery', | ||
'emojiQuery', | ||
'code', | ||
], | ||
marks: ['em', 'strong', 'strike', 'link', 'code'], | ||
}); | ||
//# sourceMappingURL=bitbucket-schema.js.map |
@@ -110,3 +110,2 @@ "use strict"; | ||
{ name: 'code', spec: marks_1.code }, | ||
{ name: 'emojiQuery', spec: marks_1.emojiQuery }, | ||
{ name: 'typeAheadQuery', spec: marks_1.typeAheadQuery }, | ||
@@ -113,0 +112,0 @@ { name: 'action', spec: marks_1.action }, |
@@ -59,4 +59,2 @@ "use strict"; | ||
'code', | ||
'mentionQuery', | ||
'emojiQuery', | ||
'textColor', | ||
@@ -63,0 +61,0 @@ 'confluenceInlineComment', |
@@ -7,3 +7,2 @@ export { em, EmDefinition } from './em'; | ||
export { link, LinkAttributes, LinkDefinition, toJSON as linkToJSON, } from './link'; | ||
export { emojiQuery } from './emoji-query'; | ||
export { typeAheadQuery } from './type-ahead-query'; | ||
@@ -10,0 +9,0 @@ export { subsup, SubSupDefinition, SubSupAttributes } from './subsup'; |
@@ -16,4 +16,2 @@ "use strict"; | ||
exports.linkToJSON = link_1.toJSON; | ||
var emoji_query_1 = require("./emoji-query"); | ||
exports.emojiQuery = emoji_query_1.emojiQuery; | ||
var type_ahead_query_1 = require("./type-ahead-query"); | ||
@@ -20,0 +18,0 @@ exports.typeAheadQuery = type_ahead_query_1.typeAheadQuery; |
@@ -6,3 +6,2 @@ "use strict"; | ||
exports.typeAheadQuery = { | ||
excludes: "" + groups_1.SEARCH_QUERY, | ||
inclusive: true, | ||
@@ -9,0 +8,0 @@ group: groups_1.SEARCH_QUERY, |
@@ -96,3 +96,3 @@ "use strict"; | ||
{ | ||
tag: 'div.CodeBlock', | ||
tag: 'div.code-block', | ||
preserveWhitespace: 'full', | ||
@@ -99,0 +99,0 @@ getAttrs: function (domNode) { |
@@ -7,3 +7,3 @@ "use strict"; | ||
group: 'block', | ||
marks: 'strong code em link strike subsup textColor typeAheadQuery underline mentionQuery emojiQuery confluenceInlineComment action annotation', | ||
marks: 'strong code em link strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation', | ||
parseDOM: [{ tag: 'p' }], | ||
@@ -10,0 +10,0 @@ toDOM: function () { |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -288,3 +288,2 @@ import { | ||
new Slice(Fragment.from(coerce(content, sampleSchema).nodes), 0, 0); | ||
export const emojiQuery = markFactory(sampleSchema.marks.emojiQuery, {}); | ||
export const mediaSingle = (attrs = {}) => | ||
@@ -291,0 +290,0 @@ nodeFactory(sampleSchema.nodes.mediaSingle, attrs); |
@@ -64,5 +64,3 @@ import { | ||
'link', | ||
'mentionQuery', | ||
'subsup', | ||
'emojiQuery', | ||
'textColor', | ||
@@ -69,0 +67,0 @@ 'action', |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"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
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
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
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
697418
457
18321