@atlaskit/adf-schema 44.1.0 → 44.2.1
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/index.js +24 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +77 -1
- package/dist/cjs/next-schema/groups/blockContentGroup.js +4 -2
- package/dist/cjs/next-schema/groups/blockGroup.js +4 -2
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +2 -2
- package/dist/cjs/next-schema/nodes/extensionFrame.js +4 -2
- package/dist/cjs/next-schema/nodes/tableNodes.js +166 -0
- package/dist/cjs/schema/default-schema.js +5 -1
- package/dist/cjs/schema/index.js +24 -0
- package/dist/cjs/schema/nodes/index.js +24 -0
- package/dist/cjs/schema/nodes/tableNodes.js +52 -40
- package/dist/cjs/utils/editor-palette.js +4 -4
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +76 -0
- package/dist/es2019/next-schema/groups/blockContentGroup.js +4 -2
- package/dist/es2019/next-schema/groups/blockGroup.js +4 -2
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +4 -2
- package/dist/es2019/next-schema/nodes/tableNodes.js +160 -0
- package/dist/es2019/schema/default-schema.js +6 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +23 -14
- package/dist/es2019/utils/editor-palette.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +76 -0
- package/dist/esm/next-schema/groups/blockContentGroup.js +4 -2
- package/dist/esm/next-schema/groups/blockGroup.js +4 -2
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +4 -2
- package/dist/esm/next-schema/nodes/tableNodes.js +161 -0
- package/dist/esm/schema/default-schema.js +6 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +52 -43
- package/dist/esm/utils/editor-palette.js +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types/next-schema/generated/nodeTypes.d.ts +52 -4
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +1 -55
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +71 -0
- package/dist/types/next-schema/nodes/tableNodes.d.ts +2 -0
- package/dist/types/schema/index.d.ts +2 -2
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/tableNodes.d.ts +27 -0
- package/package.json +2 -2
- package/dist/cjs/next-schema/nodes/table.js +0 -53
- package/dist/cjs/next-schema/nodes/tableCell.js +0 -50
- package/dist/cjs/next-schema/nodes/tableHeader.js +0 -50
- package/dist/cjs/next-schema/nodes/tableRow.js +0 -26
- package/dist/es2019/next-schema/nodes/table.js +0 -47
- package/dist/es2019/next-schema/nodes/tableCell.js +0 -44
- package/dist/es2019/next-schema/nodes/tableHeader.js +0 -44
- package/dist/es2019/next-schema/nodes/tableRow.js +0 -20
- package/dist/esm/next-schema/nodes/table.js +0 -47
- package/dist/esm/next-schema/nodes/tableCell.js +0 -44
- package/dist/esm/next-schema/nodes/tableHeader.js +0 -44
- package/dist/esm/next-schema/nodes/tableRow.js +0 -20
- package/dist/types/next-schema/nodes/table.d.ts +0 -1
- package/dist/types/next-schema/nodes/tableCell.d.ts +0 -1
- package/dist/types/next-schema/nodes/tableHeader.d.ts +0 -1
- package/dist/types/next-schema/nodes/tableRow.d.ts +0 -1
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.table = void 0;
|
7
|
-
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _fragment = require("../marks/fragment");
|
9
|
-
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
|
-
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
11
|
-
var _tableRow = require("./tableRow");
|
12
|
-
var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table').define({
|
13
|
-
isolating: true,
|
14
|
-
selectable: true,
|
15
|
-
tableRole: 'table',
|
16
|
-
marks: [_fragment.fragment, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
17
|
-
attrs: {
|
18
|
-
displayMode: {
|
19
|
-
type: 'enum',
|
20
|
-
values: ['default', 'fixed'],
|
21
|
-
default: null,
|
22
|
-
optional: true
|
23
|
-
},
|
24
|
-
isNumberColumnEnabled: {
|
25
|
-
type: 'boolean',
|
26
|
-
default: false,
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
layout: {
|
30
|
-
type: 'enum',
|
31
|
-
values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
|
32
|
-
default: 'default',
|
33
|
-
optional: true
|
34
|
-
},
|
35
|
-
localId: {
|
36
|
-
type: 'string',
|
37
|
-
minLength: 1,
|
38
|
-
default: '',
|
39
|
-
optional: true
|
40
|
-
},
|
41
|
-
width: {
|
42
|
-
type: 'number',
|
43
|
-
default: null,
|
44
|
-
optional: true
|
45
|
-
},
|
46
|
-
__autoSize: {
|
47
|
-
type: 'boolean',
|
48
|
-
default: false,
|
49
|
-
optional: true
|
50
|
-
}
|
51
|
-
},
|
52
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableRow.tableRow))]
|
53
|
-
});
|
@@ -1,50 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.tableCell = void 0;
|
7
|
-
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
-
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
10
|
-
var _tableCellContentPseudoGroup = require("../groups/tableCellContentPseudoGroup");
|
11
|
-
var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
|
12
|
-
isolating: true,
|
13
|
-
selectable: false,
|
14
|
-
tableRole: 'cell',
|
15
|
-
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
16
|
-
attrs: {
|
17
|
-
colspan: {
|
18
|
-
type: 'number',
|
19
|
-
default: 1,
|
20
|
-
optional: true
|
21
|
-
},
|
22
|
-
rowspan: {
|
23
|
-
type: 'number',
|
24
|
-
default: 1,
|
25
|
-
optional: true
|
26
|
-
},
|
27
|
-
colwidth: {
|
28
|
-
type: 'array',
|
29
|
-
items: {
|
30
|
-
type: 'number'
|
31
|
-
},
|
32
|
-
default: null,
|
33
|
-
optional: true
|
34
|
-
},
|
35
|
-
background: {
|
36
|
-
type: 'string',
|
37
|
-
default: null,
|
38
|
-
optional: true
|
39
|
-
}
|
40
|
-
},
|
41
|
-
content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup],
|
42
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
43
|
-
'validator-spec': {
|
44
|
-
required: {
|
45
|
-
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
46
|
-
value: ['content']
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
});
|
@@ -1,50 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.tableHeader = void 0;
|
7
|
-
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _tableCellContentPseudoGroup = require("../groups/tableCellContentPseudoGroup");
|
9
|
-
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
|
-
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
11
|
-
var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
|
12
|
-
isolating: true,
|
13
|
-
selectable: false,
|
14
|
-
tableRole: 'header_cell',
|
15
|
-
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
16
|
-
attrs: {
|
17
|
-
colspan: {
|
18
|
-
type: 'number',
|
19
|
-
default: 1,
|
20
|
-
optional: true
|
21
|
-
},
|
22
|
-
rowspan: {
|
23
|
-
type: 'number',
|
24
|
-
default: 1,
|
25
|
-
optional: true
|
26
|
-
},
|
27
|
-
colwidth: {
|
28
|
-
type: 'array',
|
29
|
-
items: {
|
30
|
-
type: 'number'
|
31
|
-
},
|
32
|
-
default: null,
|
33
|
-
optional: true
|
34
|
-
},
|
35
|
-
background: {
|
36
|
-
type: 'string',
|
37
|
-
default: null,
|
38
|
-
optional: true
|
39
|
-
}
|
40
|
-
},
|
41
|
-
content: [_tableCellContentPseudoGroup.tableHeaderContentPseudoGroup],
|
42
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
43
|
-
'validator-spec': {
|
44
|
-
required: {
|
45
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
46
|
-
value: ['content']
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
});
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.tableRow = void 0;
|
7
|
-
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
-
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
10
|
-
var _tableCell = require("./tableCell");
|
11
|
-
var _tableHeader = require("./tableHeader");
|
12
|
-
var _tableCellContent = require("./tableCellContent");
|
13
|
-
var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
|
14
|
-
selectable: false,
|
15
|
-
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
16
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader, _tableCellContent.tableCellContent))],
|
17
|
-
tableRole: 'row',
|
18
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
19
|
-
'validator-spec': {
|
20
|
-
'props.content.minItems': {
|
21
|
-
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
22
|
-
remove: true
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { fragment } from '../marks/fragment';
|
3
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
import { tableRow } from './tableRow';
|
6
|
-
export const table = adfNode('table').define({
|
7
|
-
isolating: true,
|
8
|
-
selectable: true,
|
9
|
-
tableRole: 'table',
|
10
|
-
marks: [fragment, unsupportedMark, unsupportedNodeAttribute],
|
11
|
-
attrs: {
|
12
|
-
displayMode: {
|
13
|
-
type: 'enum',
|
14
|
-
values: ['default', 'fixed'],
|
15
|
-
default: null,
|
16
|
-
optional: true
|
17
|
-
},
|
18
|
-
isNumberColumnEnabled: {
|
19
|
-
type: 'boolean',
|
20
|
-
default: false,
|
21
|
-
optional: true
|
22
|
-
},
|
23
|
-
layout: {
|
24
|
-
type: 'enum',
|
25
|
-
values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
|
26
|
-
default: 'default',
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
localId: {
|
30
|
-
type: 'string',
|
31
|
-
minLength: 1,
|
32
|
-
default: '',
|
33
|
-
optional: true
|
34
|
-
},
|
35
|
-
width: {
|
36
|
-
type: 'number',
|
37
|
-
default: null,
|
38
|
-
optional: true
|
39
|
-
},
|
40
|
-
__autoSize: {
|
41
|
-
type: 'boolean',
|
42
|
-
default: false,
|
43
|
-
optional: true
|
44
|
-
}
|
45
|
-
},
|
46
|
-
content: [$onePlus($or(tableRow))]
|
47
|
-
});
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
|
-
import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
5
|
-
export const tableCell = adfNode('tableCell').define({
|
6
|
-
isolating: true,
|
7
|
-
selectable: false,
|
8
|
-
tableRole: 'cell',
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
attrs: {
|
11
|
-
colspan: {
|
12
|
-
type: 'number',
|
13
|
-
default: 1,
|
14
|
-
optional: true
|
15
|
-
},
|
16
|
-
rowspan: {
|
17
|
-
type: 'number',
|
18
|
-
default: 1,
|
19
|
-
optional: true
|
20
|
-
},
|
21
|
-
colwidth: {
|
22
|
-
type: 'array',
|
23
|
-
items: {
|
24
|
-
type: 'number'
|
25
|
-
},
|
26
|
-
default: null,
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
background: {
|
30
|
-
type: 'string',
|
31
|
-
default: null,
|
32
|
-
optional: true
|
33
|
-
}
|
34
|
-
},
|
35
|
-
content: [tableCellContentPseudoGroup],
|
36
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
-
'validator-spec': {
|
38
|
-
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
40
|
-
value: ['content']
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
3
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
export const tableHeader = adfNode('tableHeader').define({
|
6
|
-
isolating: true,
|
7
|
-
selectable: false,
|
8
|
-
tableRole: 'header_cell',
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
attrs: {
|
11
|
-
colspan: {
|
12
|
-
type: 'number',
|
13
|
-
default: 1,
|
14
|
-
optional: true
|
15
|
-
},
|
16
|
-
rowspan: {
|
17
|
-
type: 'number',
|
18
|
-
default: 1,
|
19
|
-
optional: true
|
20
|
-
},
|
21
|
-
colwidth: {
|
22
|
-
type: 'array',
|
23
|
-
items: {
|
24
|
-
type: 'number'
|
25
|
-
},
|
26
|
-
default: null,
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
background: {
|
30
|
-
type: 'string',
|
31
|
-
default: null,
|
32
|
-
optional: true
|
33
|
-
}
|
34
|
-
},
|
35
|
-
content: [tableHeaderContentPseudoGroup],
|
36
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
-
'validator-spec': {
|
38
|
-
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
-
value: ['content']
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
|
-
import { tableCell } from './tableCell';
|
5
|
-
import { tableHeader } from './tableHeader';
|
6
|
-
import { tableCellContent } from './tableCellContent';
|
7
|
-
export const tableRow = adfNode('tableRow').define({
|
8
|
-
selectable: false,
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
|
11
|
-
tableRole: 'row',
|
12
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
13
|
-
'validator-spec': {
|
14
|
-
'props.content.minItems': {
|
15
|
-
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
16
|
-
remove: true
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
});
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { fragment } from '../marks/fragment';
|
3
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
import { tableRow } from './tableRow';
|
6
|
-
export var table = adfNode('table').define({
|
7
|
-
isolating: true,
|
8
|
-
selectable: true,
|
9
|
-
tableRole: 'table',
|
10
|
-
marks: [fragment, unsupportedMark, unsupportedNodeAttribute],
|
11
|
-
attrs: {
|
12
|
-
displayMode: {
|
13
|
-
type: 'enum',
|
14
|
-
values: ['default', 'fixed'],
|
15
|
-
default: null,
|
16
|
-
optional: true
|
17
|
-
},
|
18
|
-
isNumberColumnEnabled: {
|
19
|
-
type: 'boolean',
|
20
|
-
default: false,
|
21
|
-
optional: true
|
22
|
-
},
|
23
|
-
layout: {
|
24
|
-
type: 'enum',
|
25
|
-
values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
|
26
|
-
default: 'default',
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
localId: {
|
30
|
-
type: 'string',
|
31
|
-
minLength: 1,
|
32
|
-
default: '',
|
33
|
-
optional: true
|
34
|
-
},
|
35
|
-
width: {
|
36
|
-
type: 'number',
|
37
|
-
default: null,
|
38
|
-
optional: true
|
39
|
-
},
|
40
|
-
__autoSize: {
|
41
|
-
type: 'boolean',
|
42
|
-
default: false,
|
43
|
-
optional: true
|
44
|
-
}
|
45
|
-
},
|
46
|
-
content: [$onePlus($or(tableRow))]
|
47
|
-
});
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
|
-
import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
5
|
-
export var tableCell = adfNode('tableCell').define({
|
6
|
-
isolating: true,
|
7
|
-
selectable: false,
|
8
|
-
tableRole: 'cell',
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
attrs: {
|
11
|
-
colspan: {
|
12
|
-
type: 'number',
|
13
|
-
default: 1,
|
14
|
-
optional: true
|
15
|
-
},
|
16
|
-
rowspan: {
|
17
|
-
type: 'number',
|
18
|
-
default: 1,
|
19
|
-
optional: true
|
20
|
-
},
|
21
|
-
colwidth: {
|
22
|
-
type: 'array',
|
23
|
-
items: {
|
24
|
-
type: 'number'
|
25
|
-
},
|
26
|
-
default: null,
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
background: {
|
30
|
-
type: 'string',
|
31
|
-
default: null,
|
32
|
-
optional: true
|
33
|
-
}
|
34
|
-
},
|
35
|
-
content: [tableCellContentPseudoGroup],
|
36
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
-
'validator-spec': {
|
38
|
-
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
40
|
-
value: ['content']
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
3
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
export var tableHeader = adfNode('tableHeader').define({
|
6
|
-
isolating: true,
|
7
|
-
selectable: false,
|
8
|
-
tableRole: 'header_cell',
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
attrs: {
|
11
|
-
colspan: {
|
12
|
-
type: 'number',
|
13
|
-
default: 1,
|
14
|
-
optional: true
|
15
|
-
},
|
16
|
-
rowspan: {
|
17
|
-
type: 'number',
|
18
|
-
default: 1,
|
19
|
-
optional: true
|
20
|
-
},
|
21
|
-
colwidth: {
|
22
|
-
type: 'array',
|
23
|
-
items: {
|
24
|
-
type: 'number'
|
25
|
-
},
|
26
|
-
default: null,
|
27
|
-
optional: true
|
28
|
-
},
|
29
|
-
background: {
|
30
|
-
type: 'string',
|
31
|
-
default: null,
|
32
|
-
optional: true
|
33
|
-
}
|
34
|
-
},
|
35
|
-
content: [tableHeaderContentPseudoGroup],
|
36
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
-
'validator-spec': {
|
38
|
-
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
-
value: ['content']
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
|
-
import { tableCell } from './tableCell';
|
5
|
-
import { tableHeader } from './tableHeader';
|
6
|
-
import { tableCellContent } from './tableCellContent';
|
7
|
-
export var tableRow = adfNode('tableRow').define({
|
8
|
-
selectable: false,
|
9
|
-
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
|
-
content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
|
11
|
-
tableRole: 'row',
|
12
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
13
|
-
'validator-spec': {
|
14
|
-
'props.content.minItems': {
|
15
|
-
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
16
|
-
remove: true
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const table: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const tableCell: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const tableHeader: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const tableRow: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
|