@atlaskit/adf-schema 36.10.9 → 36.10.11
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/next-schema/full-schema.adf.js +1 -0
- package/dist/cjs/next-schema/marks/alignmentAndIndentation.js +5 -6
- package/dist/cjs/next-schema/marks/annotation.js +5 -2
- package/dist/cjs/next-schema/marks/breakout.js +1 -1
- package/dist/cjs/next-schema/marks/code.js +2 -2
- package/dist/cjs/next-schema/marks/color.js +29 -0
- package/dist/cjs/next-schema/marks/dataConsumer.js +2 -1
- package/dist/cjs/next-schema/nodes/text.js +2 -3
- package/dist/es2019/next-schema/full-schema.adf.js +1 -0
- package/dist/es2019/next-schema/marks/alignmentAndIndentation.js +5 -6
- package/dist/es2019/next-schema/marks/annotation.js +5 -2
- package/dist/es2019/next-schema/marks/breakout.js +1 -1
- package/dist/es2019/next-schema/marks/code.js +1 -1
- package/dist/es2019/next-schema/marks/color.js +24 -0
- package/dist/es2019/next-schema/marks/dataConsumer.js +2 -1
- package/dist/es2019/next-schema/nodes/text.js +1 -2
- package/dist/esm/next-schema/full-schema.adf.js +1 -0
- package/dist/esm/next-schema/marks/alignmentAndIndentation.js +5 -6
- package/dist/esm/next-schema/marks/annotation.js +5 -2
- package/dist/esm/next-schema/marks/breakout.js +1 -1
- package/dist/esm/next-schema/marks/code.js +1 -1
- package/dist/esm/next-schema/marks/color.js +24 -0
- package/dist/esm/next-schema/marks/dataConsumer.js +2 -1
- package/dist/esm/next-schema/nodes/text.js +1 -2
- package/dist/types/next-schema/full-schema.adf.d.ts +1 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
- package/dist/types/next-schema/marks/annotation.d.ts +1 -0
- package/dist/types/next-schema/marks/color.d.ts +3 -0
- package/dist/types/next-schema/nodes/blockCard.d.ts +1 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +1 -0
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +1 -0
- package/dist/types/next-schema/nodes/caption.d.ts +1 -0
- package/dist/types/next-schema/nodes/codeBlock.d.ts +2 -0
- package/dist/types/next-schema/nodes/date.d.ts +1 -0
- package/dist/types/next-schema/nodes/decisionItem.d.ts +1 -0
- package/dist/types/next-schema/nodes/decisionList.d.ts +1 -0
- package/dist/types/next-schema/nodes/embedCard.d.ts +1 -0
- package/dist/types/next-schema/nodes/emoji.d.ts +1 -0
- package/dist/types/next-schema/nodes/expand.d.ts +1 -0
- package/dist/types/next-schema/nodes/extension.d.ts +1 -0
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +1 -0
- package/dist/types/next-schema/nodes/hardBreak.d.ts +1 -0
- package/dist/types/next-schema/nodes/heading.d.ts +2 -0
- package/dist/types/next-schema/nodes/inlineCard.d.ts +1 -0
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +1 -0
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +1 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +1 -0
- package/dist/types/next-schema/nodes/list.d.ts +2 -0
- package/dist/types/next-schema/nodes/media.d.ts +1 -0
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +1 -0
- package/dist/types/next-schema/nodes/mediaInline.d.ts +1 -0
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +1 -0
- package/dist/types/next-schema/nodes/mention.d.ts +1 -0
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +1 -0
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -0
- package/dist/types/next-schema/nodes/panel.d.ts +1 -0
- package/dist/types/next-schema/nodes/paragraph.d.ts +1 -0
- package/dist/types/next-schema/nodes/placeholder.d.ts +1 -0
- package/dist/types/next-schema/nodes/rule.d.ts +1 -0
- package/dist/types/next-schema/nodes/status.d.ts +1 -0
- package/dist/types/next-schema/nodes/table.d.ts +1 -0
- package/dist/types/next-schema/nodes/tableCell.d.ts +1 -0
- package/dist/types/next-schema/nodes/tableHeader.d.ts +1 -0
- package/dist/types/next-schema/nodes/tableRow.d.ts +1 -0
- package/dist/types/next-schema/nodes/task.d.ts +2 -0
- package/dist/types/next-schema/nodes/text.d.ts +1 -0
- package/package.json +3 -3
- package/schema-generators/__tests__/unit/jqueries.md +13 -0
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +3 -0
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +110 -0
- package/dist/cjs/next-schema/groups/annotationGroup.js +0 -8
- package/dist/cjs/next-schema/groups/colorGroup.js +0 -9
- package/dist/cjs/next-schema/marks/backgroundColor.js +0 -15
- package/dist/cjs/next-schema/marks/textColor.js +0 -16
- package/dist/es2019/next-schema/groups/annotationGroup.js +0 -2
- package/dist/es2019/next-schema/groups/colorGroup.js +0 -3
- package/dist/es2019/next-schema/marks/backgroundColor.js +0 -9
- package/dist/es2019/next-schema/marks/textColor.js +0 -10
- package/dist/esm/next-schema/groups/annotationGroup.js +0 -2
- package/dist/esm/next-schema/groups/colorGroup.js +0 -3
- package/dist/esm/next-schema/marks/backgroundColor.js +0 -9
- package/dist/esm/next-schema/marks/textColor.js +0 -10
- package/dist/types/next-schema/groups/annotationGroup.d.ts +0 -1
- package/dist/types/next-schema/groups/colorGroup.d.ts +0 -1
- package/dist/types/next-schema/marks/backgroundColor.d.ts +0 -1
- package/dist/types/next-schema/marks/textColor.d.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 36.10.11
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 0705b07: Add version field to ADF DSL and JSON transformer
|
8
|
+
|
9
|
+
## 36.10.10
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- b29eee7: update ADF DSL to match old PM spec, add validation unit test to verify nodeSpec and markSpec generated from ADF DSL
|
14
|
+
|
3
15
|
## 36.10.9
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -10,6 +10,7 @@ var _layoutSection = require("./nodes/layoutSection");
|
|
10
10
|
var _blockRootOnlyGroup = require("./groups/blockRootOnlyGroup");
|
11
11
|
var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
|
12
12
|
root: true,
|
13
|
+
version: 1,
|
13
14
|
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup))]
|
14
15
|
});
|
15
16
|
var _default = exports.default = doc;
|
@@ -8,20 +8,19 @@ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
8
8
|
// These marks defined together because they form a cycle within the excludes.
|
9
9
|
var alignment = exports.alignment = (0, _adfSchemaGenerator.adfMark)('alignment');
|
10
10
|
var indentation = exports.indentation = (0, _adfSchemaGenerator.adfMark)('indentation');
|
11
|
-
var alignementMarkExclusionGroup = (0, _adfSchemaGenerator.adfMarkGroup)('
|
12
|
-
var indentationMarkExclusionGroup = (0, _adfSchemaGenerator.adfMarkGroup)('
|
11
|
+
var alignementMarkExclusionGroup = (0, _adfSchemaGenerator.adfMarkGroup)('alignment', [alignment]);
|
12
|
+
var indentationMarkExclusionGroup = (0, _adfSchemaGenerator.adfMarkGroup)('indentation', [indentation]);
|
13
13
|
alignment.define({
|
14
|
-
excludes: [indentationMarkExclusionGroup],
|
14
|
+
excludes: [alignementMarkExclusionGroup, indentationMarkExclusionGroup],
|
15
15
|
attrs: {
|
16
16
|
align: {
|
17
17
|
type: 'enum',
|
18
|
-
values: ['center', 'end']
|
19
|
-
default: 'center'
|
18
|
+
values: ['center', 'end']
|
20
19
|
}
|
21
20
|
}
|
22
21
|
});
|
23
22
|
indentation.define({
|
24
|
-
excludes: [alignementMarkExclusionGroup],
|
23
|
+
excludes: [indentationMarkExclusionGroup, alignementMarkExclusionGroup],
|
25
24
|
attrs: {
|
26
25
|
level: {
|
27
26
|
type: 'number',
|
@@ -3,10 +3,13 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.annotation = void 0;
|
6
|
+
exports.annotationGroup = exports.annotation = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var annotation = exports.annotation = (0, _adfSchemaGenerator.adfMark)('annotation')
|
8
|
+
var annotation = exports.annotation = (0, _adfSchemaGenerator.adfMark)('annotation');
|
9
|
+
var annotationGroup = exports.annotationGroup = (0, _adfSchemaGenerator.adfMarkGroup)('annotation', [annotation]);
|
10
|
+
annotation.define({
|
9
11
|
inclusive: true,
|
12
|
+
group: annotationGroup,
|
10
13
|
attrs: {
|
11
14
|
id: {
|
12
15
|
type: 'string',
|
@@ -7,7 +7,7 @@ exports.breakout = void 0;
|
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
8
|
var breakout = exports.breakout = (0, _adfSchemaGenerator.adfMark)('breakout').define({
|
9
9
|
spanning: false,
|
10
|
-
inclusive:
|
10
|
+
inclusive: false,
|
11
11
|
attrs: {
|
12
12
|
mode: {
|
13
13
|
type: 'enum',
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.code = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _colorGroup = require("../groups/colorGroup");
|
9
8
|
var _fontStyleGroup = require("../groups/fontStyleGroup");
|
10
9
|
var _linkMarkGroup = require("../groups/linkMarkGroup");
|
11
10
|
var _searchQueryMarkGroup = require("../groups/searchQueryMarkGroup");
|
11
|
+
var _color = require("./color");
|
12
12
|
var code = exports.code = (0, _adfSchemaGenerator.adfMark)('code').define({
|
13
|
-
excludes: [_fontStyleGroup.fontStyleGroup, _linkMarkGroup.linkMarkGroup, _searchQueryMarkGroup.searchQueryMarkGroup,
|
13
|
+
excludes: [_fontStyleGroup.fontStyleGroup, _linkMarkGroup.linkMarkGroup, _searchQueryMarkGroup.searchQueryMarkGroup, _color.colorGroup],
|
14
14
|
inclusive: true
|
15
15
|
});
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.textColor = exports.colorGroup = exports.backgroundColor = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var backgroundColor = exports.backgroundColor = (0, _adfSchemaGenerator.adfMark)('backgroundColor');
|
9
|
+
var textColor = exports.textColor = (0, _adfSchemaGenerator.adfMark)('textColor');
|
10
|
+
var colorGroup = exports.colorGroup = (0, _adfSchemaGenerator.adfMarkGroup)('color', [textColor, backgroundColor]);
|
11
|
+
backgroundColor.define({
|
12
|
+
inclusive: true,
|
13
|
+
excludes: [colorGroup],
|
14
|
+
attrs: {
|
15
|
+
color: {
|
16
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
17
|
+
type: 'string'
|
18
|
+
}
|
19
|
+
}
|
20
|
+
});
|
21
|
+
textColor.define({
|
22
|
+
inclusive: true,
|
23
|
+
attrs: {
|
24
|
+
color: {
|
25
|
+
type: 'string',
|
26
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
27
|
+
}
|
28
|
+
}
|
29
|
+
});
|
@@ -12,11 +12,10 @@ var _link = require("../marks/link");
|
|
12
12
|
var _strike = require("../marks/strike");
|
13
13
|
var _strong = require("../marks/strong");
|
14
14
|
var _subsup = require("../marks/subsup");
|
15
|
-
var _textColor = require("../marks/textColor");
|
16
15
|
var _underline = require("../marks/underline");
|
17
|
-
var
|
16
|
+
var _color = require("../marks/color");
|
18
17
|
var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({}).variant('formatted', {
|
19
|
-
marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline,
|
18
|
+
marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _color.textColor, _annotation.annotation, _color.backgroundColor]
|
20
19
|
}).variant('code_inline', {
|
21
20
|
marks: [_code.code, _link.link, _annotation.annotation]
|
22
21
|
});
|
@@ -4,6 +4,7 @@ import { layoutSection } from './nodes/layoutSection';
|
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
5
5
|
const doc = adfNode('doc').define({
|
6
6
|
root: true,
|
7
|
+
version: 1,
|
7
8
|
content: [$zeroPlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
|
8
9
|
});
|
9
10
|
export default doc;
|
@@ -4,20 +4,19 @@ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
|
4
4
|
// These marks defined together because they form a cycle within the excludes.
|
5
5
|
export const alignment = adfMark('alignment');
|
6
6
|
export const indentation = adfMark('indentation');
|
7
|
-
const alignementMarkExclusionGroup = adfMarkGroup('
|
8
|
-
const indentationMarkExclusionGroup = adfMarkGroup('
|
7
|
+
const alignementMarkExclusionGroup = adfMarkGroup('alignment', [alignment]);
|
8
|
+
const indentationMarkExclusionGroup = adfMarkGroup('indentation', [indentation]);
|
9
9
|
alignment.define({
|
10
|
-
excludes: [indentationMarkExclusionGroup],
|
10
|
+
excludes: [alignementMarkExclusionGroup, indentationMarkExclusionGroup],
|
11
11
|
attrs: {
|
12
12
|
align: {
|
13
13
|
type: 'enum',
|
14
|
-
values: ['center', 'end']
|
15
|
-
default: 'center'
|
14
|
+
values: ['center', 'end']
|
16
15
|
}
|
17
16
|
}
|
18
17
|
});
|
19
18
|
indentation.define({
|
20
|
-
excludes: [alignementMarkExclusionGroup],
|
19
|
+
excludes: [indentationMarkExclusionGroup, alignementMarkExclusionGroup],
|
21
20
|
attrs: {
|
22
21
|
level: {
|
23
22
|
type: 'number',
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
-
export const annotation = adfMark('annotation')
|
1
|
+
import { adfMark, adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
export const annotation = adfMark('annotation');
|
3
|
+
export const annotationGroup = adfMarkGroup('annotation', [annotation]);
|
4
|
+
annotation.define({
|
3
5
|
inclusive: true,
|
6
|
+
group: annotationGroup,
|
4
7
|
attrs: {
|
5
8
|
id: {
|
6
9
|
type: 'string',
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { colorGroup } from '../groups/colorGroup';
|
3
2
|
import { fontStyleGroup } from '../groups/fontStyleGroup';
|
4
3
|
import { linkMarkGroup } from '../groups/linkMarkGroup';
|
5
4
|
import { searchQueryMarkGroup } from '../groups/searchQueryMarkGroup';
|
5
|
+
import { colorGroup } from './color';
|
6
6
|
export const code = adfMark('code').define({
|
7
7
|
excludes: [fontStyleGroup, linkMarkGroup, searchQueryMarkGroup, colorGroup],
|
8
8
|
inclusive: true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
3
|
+
export const backgroundColor = adfMark('backgroundColor');
|
4
|
+
export const textColor = adfMark('textColor');
|
5
|
+
export const colorGroup = adfMarkGroup('color', [textColor, backgroundColor]);
|
6
|
+
backgroundColor.define({
|
7
|
+
inclusive: true,
|
8
|
+
excludes: [colorGroup],
|
9
|
+
attrs: {
|
10
|
+
color: {
|
11
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
12
|
+
type: 'string'
|
13
|
+
}
|
14
|
+
}
|
15
|
+
});
|
16
|
+
textColor.define({
|
17
|
+
inclusive: true,
|
18
|
+
attrs: {
|
19
|
+
color: {
|
20
|
+
type: 'string',
|
21
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
});
|
@@ -6,9 +6,8 @@ import { link } from '../marks/link';
|
|
6
6
|
import { strike } from '../marks/strike';
|
7
7
|
import { strong } from '../marks/strong';
|
8
8
|
import { subsup } from '../marks/subsup';
|
9
|
-
import { textColor } from '../marks/textColor';
|
10
9
|
import { underline } from '../marks/underline';
|
11
|
-
import { backgroundColor } from '../marks/
|
10
|
+
import { backgroundColor, textColor } from '../marks/color';
|
12
11
|
export const text = adfNode('text').define({}).variant('formatted', {
|
13
12
|
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor]
|
14
13
|
}).variant('code_inline', {
|
@@ -4,6 +4,7 @@ import { layoutSection } from './nodes/layoutSection';
|
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
5
5
|
var doc = adfNode('doc').define({
|
6
6
|
root: true,
|
7
|
+
version: 1,
|
7
8
|
content: [$zeroPlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
|
8
9
|
});
|
9
10
|
export default doc;
|
@@ -4,20 +4,19 @@ import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
|
4
4
|
// These marks defined together because they form a cycle within the excludes.
|
5
5
|
export var alignment = adfMark('alignment');
|
6
6
|
export var indentation = adfMark('indentation');
|
7
|
-
var alignementMarkExclusionGroup = adfMarkGroup('
|
8
|
-
var indentationMarkExclusionGroup = adfMarkGroup('
|
7
|
+
var alignementMarkExclusionGroup = adfMarkGroup('alignment', [alignment]);
|
8
|
+
var indentationMarkExclusionGroup = adfMarkGroup('indentation', [indentation]);
|
9
9
|
alignment.define({
|
10
|
-
excludes: [indentationMarkExclusionGroup],
|
10
|
+
excludes: [alignementMarkExclusionGroup, indentationMarkExclusionGroup],
|
11
11
|
attrs: {
|
12
12
|
align: {
|
13
13
|
type: 'enum',
|
14
|
-
values: ['center', 'end']
|
15
|
-
default: 'center'
|
14
|
+
values: ['center', 'end']
|
16
15
|
}
|
17
16
|
}
|
18
17
|
});
|
19
18
|
indentation.define({
|
20
|
-
excludes: [alignementMarkExclusionGroup],
|
19
|
+
excludes: [indentationMarkExclusionGroup, alignementMarkExclusionGroup],
|
21
20
|
attrs: {
|
22
21
|
level: {
|
23
22
|
type: 'number',
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
-
export var annotation = adfMark('annotation')
|
1
|
+
import { adfMark, adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var annotation = adfMark('annotation');
|
3
|
+
export var annotationGroup = adfMarkGroup('annotation', [annotation]);
|
4
|
+
annotation.define({
|
3
5
|
inclusive: true,
|
6
|
+
group: annotationGroup,
|
4
7
|
attrs: {
|
5
8
|
id: {
|
6
9
|
type: 'string',
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { colorGroup } from '../groups/colorGroup';
|
3
2
|
import { fontStyleGroup } from '../groups/fontStyleGroup';
|
4
3
|
import { linkMarkGroup } from '../groups/linkMarkGroup';
|
5
4
|
import { searchQueryMarkGroup } from '../groups/searchQueryMarkGroup';
|
5
|
+
import { colorGroup } from './color';
|
6
6
|
export var code = adfMark('code').define({
|
7
7
|
excludes: [fontStyleGroup, linkMarkGroup, searchQueryMarkGroup, colorGroup],
|
8
8
|
inclusive: true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { adfMark } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { adfMarkGroup } from '@atlaskit/adf-schema-generator';
|
3
|
+
export var backgroundColor = adfMark('backgroundColor');
|
4
|
+
export var textColor = adfMark('textColor');
|
5
|
+
export var colorGroup = adfMarkGroup('color', [textColor, backgroundColor]);
|
6
|
+
backgroundColor.define({
|
7
|
+
inclusive: true,
|
8
|
+
excludes: [colorGroup],
|
9
|
+
attrs: {
|
10
|
+
color: {
|
11
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
12
|
+
type: 'string'
|
13
|
+
}
|
14
|
+
}
|
15
|
+
});
|
16
|
+
textColor.define({
|
17
|
+
inclusive: true,
|
18
|
+
attrs: {
|
19
|
+
color: {
|
20
|
+
type: 'string',
|
21
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
});
|
@@ -6,9 +6,8 @@ import { link } from '../marks/link';
|
|
6
6
|
import { strike } from '../marks/strike';
|
7
7
|
import { strong } from '../marks/strong';
|
8
8
|
import { subsup } from '../marks/subsup';
|
9
|
-
import { textColor } from '../marks/textColor';
|
10
9
|
import { underline } from '../marks/underline';
|
11
|
-
import { backgroundColor } from '../marks/
|
10
|
+
import { backgroundColor, textColor } from '../marks/color';
|
12
11
|
export var text = adfNode('text').define({}).variant('formatted', {
|
13
12
|
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor]
|
14
13
|
}).variant('code_inline', {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -17,6 +18,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
17
18
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks", "with_no_marks"], {
|
18
19
|
root?: boolean;
|
19
20
|
atom?: boolean;
|
21
|
+
version?: 1;
|
20
22
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
21
23
|
inline?: true;
|
22
24
|
code?: boolean;
|
@@ -35,6 +37,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
35
37
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "caption", "full"], {
|
36
38
|
root?: boolean;
|
37
39
|
atom?: boolean;
|
40
|
+
version?: 1;
|
38
41
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
39
42
|
inline?: true;
|
40
43
|
code?: boolean;
|
@@ -54,6 +57,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
54
57
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_marks", "with_no_marks"], {
|
55
58
|
root?: boolean;
|
56
59
|
atom?: boolean;
|
60
|
+
version?: 1;
|
57
61
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
58
62
|
inline?: true;
|
59
63
|
code?: boolean;
|
@@ -76,6 +80,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
76
80
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_list"], {
|
77
81
|
root?: boolean;
|
78
82
|
atom?: boolean;
|
83
|
+
version?: 1;
|
79
84
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
80
85
|
inline?: true;
|
81
86
|
code?: boolean;
|
@@ -94,6 +99,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
94
99
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks"], {
|
95
100
|
root?: boolean;
|
96
101
|
atom?: boolean;
|
102
|
+
version?: 1;
|
97
103
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
98
104
|
inline?: true;
|
99
105
|
code?: boolean;
|
@@ -112,6 +118,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
112
118
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_no_marks"], {
|
113
119
|
root?: boolean;
|
114
120
|
atom?: boolean;
|
121
|
+
version?: 1;
|
115
122
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
116
123
|
inline?: true;
|
117
124
|
code?: boolean;
|
@@ -1 +1,2 @@
|
|
1
1
|
export declare const annotation: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
2
|
+
export declare const annotationGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export declare const backgroundColor: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
2
|
+
export declare const textColor: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>;
|
3
|
+
export declare const colorGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkGroup").ADFMarkGroup;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const blockCard: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_list"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const bodiedExtension: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const caption: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const codeBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks", "with_no_marks"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -20,6 +21,7 @@ export declare const codeBlock: import("@atlaskit/adf-schema-generator/dist/type
|
|
20
21
|
export declare const codeBlockWithMarks: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks", "with_no_marks"], {
|
21
22
|
root?: boolean;
|
22
23
|
atom?: boolean;
|
24
|
+
version?: 1;
|
23
25
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
24
26
|
inline?: true;
|
25
27
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const date: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const decisionItem: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const decisionList: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const embedCard: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const emoji: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const expand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_breakout_mark", "with_no_mark"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const extension: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_marks"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const extensionFrame: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const hardBreak: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const heading: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_no_marks"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|
@@ -22,6 +23,7 @@ export declare const heading: import("@atlaskit/adf-schema-generator/dist/types/
|
|
22
23
|
export declare const headingWithMarks: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_alignment", "with_indentation", "with_no_marks"], {
|
23
24
|
root?: boolean;
|
24
25
|
atom?: boolean;
|
26
|
+
version?: 1;
|
25
27
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
26
28
|
inline?: true;
|
27
29
|
code?: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const inlineCard: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_annotation"], {
|
2
2
|
root?: boolean;
|
3
3
|
atom?: boolean;
|
4
|
+
version?: 1;
|
4
5
|
attrs?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFAttribute").ADFAttributes;
|
5
6
|
inline?: true;
|
6
7
|
code?: boolean;
|