@atlaskit/adf-schema 53.0.4 → 54.0.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 +17 -0
- package/dist/cjs/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -15
- package/dist/cjs/next-schema/nodes/layoutColumn.js +7 -15
- package/dist/cjs/schema/default-schema.js +0 -1
- package/dist/cjs/schema/nodes/layout-column.js +6 -28
- package/dist/es2019/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +0 -14
- package/dist/es2019/next-schema/nodes/layoutColumn.js +7 -12
- package/dist/es2019/schema/default-schema.js +1 -2
- package/dist/es2019/schema/nodes/layout-column.js +7 -27
- package/dist/esm/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +0 -14
- package/dist/esm/next-schema/nodes/layoutColumn.js +7 -14
- package/dist/esm/schema/default-schema.js +1 -2
- package/dist/esm/schema/nodes/layout-column.js +7 -29
- package/dist/json-schema/v1/full.json +3 -0
- package/dist/types/entry-points/schema-next-nodeTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +4 -15
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/layout-column.d.ts +1 -5
- package/dist/types-ts4.5/entry-points/schema-next-nodeTypes.d.ts +2 -2
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +4 -15
- package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +1 -5
- package/json-schema/v1/full.json +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 54.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 54.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`f95240aab2e55`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f95240aab2e55) -
|
|
14
|
+
Promote layout column vertical alignment in ADF schema
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 53.0.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -234,7 +234,7 @@ Object.defineProperty(exports, "layoutColumn", {
|
|
|
234
234
|
Object.defineProperty(exports, "layoutColumnStage0", {
|
|
235
235
|
enumerable: true,
|
|
236
236
|
get: function get() {
|
|
237
|
-
return _nodeTypes.
|
|
237
|
+
return _nodeTypes.layoutColumn;
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "layoutSection", {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderStage0 = exports.tableHeader = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellStage0 = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.
|
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderStage0 = exports.tableHeader = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellStage0 = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
|
|
7
7
|
var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
|
8
8
|
/**
|
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
|
@@ -626,20 +626,6 @@ var inlineExtensionWithMarks = exports.inlineExtensionWithMarks = (0, _createPMS
|
|
|
626
626
|
selectable: true
|
|
627
627
|
});
|
|
628
628
|
var layoutColumn = exports.layoutColumn = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
629
|
-
content: '(block | unsupportedBlock)+',
|
|
630
|
-
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
631
|
-
attrs: {
|
|
632
|
-
width: {
|
|
633
|
-
default: undefined
|
|
634
|
-
},
|
|
635
|
-
localId: {
|
|
636
|
-
default: null
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
selectable: false,
|
|
640
|
-
isolating: true
|
|
641
|
-
});
|
|
642
|
-
var layoutColumnStage0 = exports.layoutColumnStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
643
629
|
content: '(block | unsupportedBlock)+',
|
|
644
630
|
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
645
631
|
attrs: {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.layoutColumn = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
10
8
|
var _blockContentGroup = require("../groups/blockContentGroup");
|
|
11
9
|
var _blockGroup = require("../groups/blockGroup");
|
|
12
10
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
|
13
11
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
|
14
12
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
13
|
var layoutColumnAttributes = {
|
|
18
14
|
width: {
|
|
19
15
|
type: 'number',
|
|
@@ -25,6 +21,12 @@ var layoutColumnAttributes = {
|
|
|
25
21
|
type: 'string',
|
|
26
22
|
default: null,
|
|
27
23
|
optional: true
|
|
24
|
+
},
|
|
25
|
+
valign: {
|
|
26
|
+
type: 'enum',
|
|
27
|
+
values: ['top', 'middle', 'bottom'],
|
|
28
|
+
default: null,
|
|
29
|
+
optional: true
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
var layoutColumn = exports.layoutColumn = (0, _adfSchemaGenerator.adfNode)('layoutColumn').define({
|
|
@@ -32,15 +34,5 @@ var layoutColumn = exports.layoutColumn = (0, _adfSchemaGenerator.adfNode)('layo
|
|
|
32
34
|
selectable: false,
|
|
33
35
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
34
36
|
attrs: layoutColumnAttributes,
|
|
35
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _unsupportedBlock.unsupportedBlock))]
|
|
36
|
-
stage0: {
|
|
37
|
-
attrs: _objectSpread(_objectSpread({}, layoutColumnAttributes), {}, {
|
|
38
|
-
valign: {
|
|
39
|
-
type: 'enum',
|
|
40
|
-
values: ['top', 'middle', 'bottom'],
|
|
41
|
-
default: null,
|
|
42
|
-
optional: true
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
}
|
|
37
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _unsupportedBlock.unsupportedBlock))]
|
|
46
38
|
});
|
|
@@ -28,7 +28,6 @@ function () {
|
|
|
28
28
|
if (stage === 'stage0') {
|
|
29
29
|
defaultSchemaConfig.customNodeSpecs = {
|
|
30
30
|
layoutSection: _nodes.layoutSectionWithSingleColumn,
|
|
31
|
-
layoutColumn: _nodes.layoutColumnStage0,
|
|
32
31
|
multiBodiedExtension: _nodes.multiBodiedExtension,
|
|
33
32
|
extensionFrame: _nodes.extensionFrame,
|
|
34
33
|
expand: _nodes.expandWithNestedExpand,
|
|
@@ -15,9 +15,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
var setColumnAttributes = function setColumnAttributes(node) {
|
|
16
16
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
17
17
|
_ref$withLocalId = _ref.withLocalId,
|
|
18
|
-
withLocalId = _ref$withLocalId === void 0 ? false : _ref$withLocalId
|
|
19
|
-
_ref$withValign = _ref.withValign,
|
|
20
|
-
withValign = _ref$withValign === void 0 ? false : _ref$withValign;
|
|
18
|
+
withLocalId = _ref$withLocalId === void 0 ? false : _ref$withLocalId;
|
|
21
19
|
var attrs = {
|
|
22
20
|
'data-layout-column': 'true'
|
|
23
21
|
};
|
|
@@ -31,7 +29,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
|
|
|
31
29
|
attrs['style'] = baseStyle + columnWidthVar;
|
|
32
30
|
attrs['data-column-width'] = "".concat(width);
|
|
33
31
|
}
|
|
34
|
-
if (
|
|
32
|
+
if (valign) {
|
|
35
33
|
attrs['data-valign'] = valign;
|
|
36
34
|
}
|
|
37
35
|
if (withLocalId && localId) {
|
|
@@ -42,9 +40,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
|
|
|
42
40
|
var getColumnAttrs = function getColumnAttrs() {
|
|
43
41
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
44
42
|
_ref2$withLocalId = _ref2.withLocalId,
|
|
45
|
-
withLocalId = _ref2$withLocalId === void 0 ? false : _ref2$withLocalId
|
|
46
|
-
_ref2$withValign = _ref2.withValign,
|
|
47
|
-
withValign = _ref2$withValign === void 0 ? false : _ref2$withValign;
|
|
43
|
+
withLocalId = _ref2$withLocalId === void 0 ? false : _ref2$withLocalId;
|
|
48
44
|
return function (domNode) {
|
|
49
45
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
50
46
|
var dom = domNode;
|
|
@@ -54,7 +50,7 @@ var getColumnAttrs = function getColumnAttrs() {
|
|
|
54
50
|
localId: _uuid.uuid.generate()
|
|
55
51
|
});
|
|
56
52
|
var valign = (0, _valign.parseValign)(dom.getAttribute('data-valign'));
|
|
57
|
-
return
|
|
53
|
+
return valign ? _objectSpread(_objectSpread({}, base), {}, {
|
|
58
54
|
valign: valign
|
|
59
55
|
}) : base;
|
|
60
56
|
};
|
|
@@ -83,25 +79,6 @@ var layoutColumn = exports.layoutColumn = (0, _nodeTypes.layoutColumn)({
|
|
|
83
79
|
return ['div', setColumnAttributes(node), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
84
80
|
}
|
|
85
81
|
});
|
|
86
|
-
var layoutColumnStage0 = exports.layoutColumnStage0 = (0, _nodeTypes.layoutColumnStage0)({
|
|
87
|
-
parseDOM: [{
|
|
88
|
-
context: 'layoutColumn//',
|
|
89
|
-
tag: 'div[data-layout-column]',
|
|
90
|
-
skip: true
|
|
91
|
-
}, {
|
|
92
|
-
tag: 'div[data-layout-column]',
|
|
93
|
-
getAttrs: getColumnAttrs({
|
|
94
|
-
withLocalId: true,
|
|
95
|
-
withValign: true
|
|
96
|
-
})
|
|
97
|
-
}],
|
|
98
|
-
toDOM: function toDOM(node) {
|
|
99
|
-
return ['div', setColumnAttributes(node, {
|
|
100
|
-
withLocalId: true,
|
|
101
|
-
withValign: true
|
|
102
|
-
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
82
|
var layoutColumnWithLocalId = exports.layoutColumnWithLocalId = (0, _nodeTypes.layoutColumn)({
|
|
106
83
|
parseDOM: [{
|
|
107
84
|
context: 'layoutColumn//',
|
|
@@ -118,4 +95,5 @@ var layoutColumnWithLocalId = exports.layoutColumnWithLocalId = (0, _nodeTypes.l
|
|
|
118
95
|
withLocalId: true
|
|
119
96
|
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
120
97
|
}
|
|
121
|
-
});
|
|
98
|
+
});
|
|
99
|
+
var layoutColumnStage0 = exports.layoutColumnStage0 = layoutColumnWithLocalId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
|
|
2
|
+
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
|
|
@@ -620,20 +620,6 @@ export const inlineExtensionWithMarks = createPMNodeSpecFactory({
|
|
|
620
620
|
selectable: true
|
|
621
621
|
});
|
|
622
622
|
export const layoutColumn = createPMNodeSpecFactory({
|
|
623
|
-
content: '(block | unsupportedBlock)+',
|
|
624
|
-
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
625
|
-
attrs: {
|
|
626
|
-
width: {
|
|
627
|
-
default: undefined
|
|
628
|
-
},
|
|
629
|
-
localId: {
|
|
630
|
-
default: null
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
selectable: false,
|
|
634
|
-
isolating: true
|
|
635
|
-
});
|
|
636
|
-
export const layoutColumnStage0 = createPMNodeSpecFactory({
|
|
637
623
|
content: '(block | unsupportedBlock)+',
|
|
638
624
|
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
639
625
|
attrs: {
|
|
@@ -15,6 +15,12 @@ const layoutColumnAttributes = {
|
|
|
15
15
|
type: 'string',
|
|
16
16
|
default: null,
|
|
17
17
|
optional: true
|
|
18
|
+
},
|
|
19
|
+
valign: {
|
|
20
|
+
type: 'enum',
|
|
21
|
+
values: ['top', 'middle', 'bottom'],
|
|
22
|
+
default: null,
|
|
23
|
+
optional: true
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
export const layoutColumn = adfNode('layoutColumn').define({
|
|
@@ -22,16 +28,5 @@ export const layoutColumn = adfNode('layoutColumn').define({
|
|
|
22
28
|
selectable: false,
|
|
23
29
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
|
24
30
|
attrs: layoutColumnAttributes,
|
|
25
|
-
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
|
26
|
-
stage0: {
|
|
27
|
-
attrs: {
|
|
28
|
-
...layoutColumnAttributes,
|
|
29
|
-
valign: {
|
|
30
|
-
type: 'enum',
|
|
31
|
-
values: ['top', 'middle', 'bottom'],
|
|
32
|
-
default: null,
|
|
33
|
-
optional: true
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
31
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
|
37
32
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0
|
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0 } from './nodes';
|
|
3
3
|
import { createSchema } from './create-schema';
|
|
4
4
|
const getDefaultSchemaConfig = () => {
|
|
5
5
|
const defaultSchemaConfig = {
|
|
@@ -20,7 +20,6 @@ export const getSchemaBasedOnStage = memoizeOne(
|
|
|
20
20
|
if (stage === 'stage0') {
|
|
21
21
|
defaultSchemaConfig.customNodeSpecs = {
|
|
22
22
|
layoutSection: layoutSectionWithSingleColumn,
|
|
23
|
-
layoutColumn: layoutColumnStage0,
|
|
24
23
|
multiBodiedExtension: multiBodiedExtension,
|
|
25
24
|
extensionFrame: extensionFrame,
|
|
26
25
|
expand: expandWithNestedExpand,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { layoutColumn as layoutColumnFactory
|
|
1
|
+
import { layoutColumn as layoutColumnFactory } from '../../next-schema/generated/nodeTypes';
|
|
2
2
|
import { uuid } from '../../utils/uuid';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
4
|
import { parseValign } from './types/valign';
|
|
5
5
|
const setColumnAttributes = (node, {
|
|
6
|
-
withLocalId = false
|
|
7
|
-
withValign = false
|
|
6
|
+
withLocalId = false
|
|
8
7
|
} = {}) => {
|
|
9
8
|
const attrs = {
|
|
10
9
|
'data-layout-column': 'true'
|
|
@@ -20,7 +19,7 @@ const setColumnAttributes = (node, {
|
|
|
20
19
|
attrs['style'] = baseStyle + columnWidthVar;
|
|
21
20
|
attrs['data-column-width'] = `${width}`;
|
|
22
21
|
}
|
|
23
|
-
if (
|
|
22
|
+
if (valign) {
|
|
24
23
|
attrs['data-valign'] = valign;
|
|
25
24
|
}
|
|
26
25
|
if (withLocalId && localId) {
|
|
@@ -29,8 +28,7 @@ const setColumnAttributes = (node, {
|
|
|
29
28
|
return attrs;
|
|
30
29
|
};
|
|
31
30
|
const getColumnAttrs = ({
|
|
32
|
-
withLocalId = false
|
|
33
|
-
withValign = false
|
|
31
|
+
withLocalId = false
|
|
34
32
|
} = {}) => domNode => {
|
|
35
33
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
36
34
|
const dom = domNode;
|
|
@@ -41,7 +39,7 @@ const getColumnAttrs = ({
|
|
|
41
39
|
})
|
|
42
40
|
};
|
|
43
41
|
const valign = parseValign(dom.getAttribute('data-valign'));
|
|
44
|
-
return
|
|
42
|
+
return valign ? {
|
|
45
43
|
...base,
|
|
46
44
|
valign
|
|
47
45
|
} : base;
|
|
@@ -70,25 +68,6 @@ export const layoutColumn = layoutColumnFactory({
|
|
|
70
68
|
return ['div', setColumnAttributes(node), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
|
-
export const layoutColumnStage0 = layoutColumnStage0Factory({
|
|
74
|
-
parseDOM: [{
|
|
75
|
-
context: 'layoutColumn//',
|
|
76
|
-
tag: 'div[data-layout-column]',
|
|
77
|
-
skip: true
|
|
78
|
-
}, {
|
|
79
|
-
tag: 'div[data-layout-column]',
|
|
80
|
-
getAttrs: getColumnAttrs({
|
|
81
|
-
withLocalId: true,
|
|
82
|
-
withValign: true
|
|
83
|
-
})
|
|
84
|
-
}],
|
|
85
|
-
toDOM(node) {
|
|
86
|
-
return ['div', setColumnAttributes(node, {
|
|
87
|
-
withLocalId: true,
|
|
88
|
-
withValign: true
|
|
89
|
-
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
71
|
export const layoutColumnWithLocalId = layoutColumnFactory({
|
|
93
72
|
parseDOM: [{
|
|
94
73
|
context: 'layoutColumn//',
|
|
@@ -105,4 +84,5 @@ export const layoutColumnWithLocalId = layoutColumnFactory({
|
|
|
105
84
|
withLocalId: true
|
|
106
85
|
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
107
86
|
}
|
|
108
|
-
});
|
|
87
|
+
});
|
|
88
|
+
export const layoutColumnStage0 = layoutColumnWithLocalId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
|
|
2
|
+
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
|
|
@@ -620,20 +620,6 @@ export var inlineExtensionWithMarks = createPMNodeSpecFactory({
|
|
|
620
620
|
selectable: true
|
|
621
621
|
});
|
|
622
622
|
export var layoutColumn = createPMNodeSpecFactory({
|
|
623
|
-
content: '(block | unsupportedBlock)+',
|
|
624
|
-
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
625
|
-
attrs: {
|
|
626
|
-
width: {
|
|
627
|
-
default: undefined
|
|
628
|
-
},
|
|
629
|
-
localId: {
|
|
630
|
-
default: null
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
selectable: false,
|
|
634
|
-
isolating: true
|
|
635
|
-
});
|
|
636
|
-
export var layoutColumnStage0 = createPMNodeSpecFactory({
|
|
637
623
|
content: '(block | unsupportedBlock)+',
|
|
638
624
|
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment',
|
|
639
625
|
attrs: {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
5
2
|
import { blockContentGroup } from '../groups/blockContentGroup';
|
|
6
3
|
import { blockGroup } from '../groups/blockGroup';
|
|
@@ -18,6 +15,12 @@ var layoutColumnAttributes = {
|
|
|
18
15
|
type: 'string',
|
|
19
16
|
default: null,
|
|
20
17
|
optional: true
|
|
18
|
+
},
|
|
19
|
+
valign: {
|
|
20
|
+
type: 'enum',
|
|
21
|
+
values: ['top', 'middle', 'bottom'],
|
|
22
|
+
default: null,
|
|
23
|
+
optional: true
|
|
21
24
|
}
|
|
22
25
|
};
|
|
23
26
|
export var layoutColumn = adfNode('layoutColumn').define({
|
|
@@ -25,15 +28,5 @@ export var layoutColumn = adfNode('layoutColumn').define({
|
|
|
25
28
|
selectable: false,
|
|
26
29
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
|
27
30
|
attrs: layoutColumnAttributes,
|
|
28
|
-
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
|
29
|
-
stage0: {
|
|
30
|
-
attrs: _objectSpread(_objectSpread({}, layoutColumnAttributes), {}, {
|
|
31
|
-
valign: {
|
|
32
|
-
type: 'enum',
|
|
33
|
-
values: ['top', 'middle', 'bottom'],
|
|
34
|
-
default: null,
|
|
35
|
-
optional: true
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
}
|
|
31
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
|
39
32
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0
|
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0 } from './nodes';
|
|
3
3
|
import { createSchema } from './create-schema';
|
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
|
5
5
|
var defaultSchemaConfig = {
|
|
@@ -21,7 +21,6 @@ function () {
|
|
|
21
21
|
if (stage === 'stage0') {
|
|
22
22
|
defaultSchemaConfig.customNodeSpecs = {
|
|
23
23
|
layoutSection: layoutSectionWithSingleColumn,
|
|
24
|
-
layoutColumn: layoutColumnStage0,
|
|
25
24
|
multiBodiedExtension: multiBodiedExtension,
|
|
26
25
|
extensionFrame: extensionFrame,
|
|
27
26
|
expand: expandWithNestedExpand,
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { layoutColumn as layoutColumnFactory
|
|
4
|
+
import { layoutColumn as layoutColumnFactory } from '../../next-schema/generated/nodeTypes';
|
|
5
5
|
import { uuid } from '../../utils/uuid';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { parseValign } from './types/valign';
|
|
8
8
|
var setColumnAttributes = function setColumnAttributes(node) {
|
|
9
9
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
10
10
|
_ref$withLocalId = _ref.withLocalId,
|
|
11
|
-
withLocalId = _ref$withLocalId === void 0 ? false : _ref$withLocalId
|
|
12
|
-
_ref$withValign = _ref.withValign,
|
|
13
|
-
withValign = _ref$withValign === void 0 ? false : _ref$withValign;
|
|
11
|
+
withLocalId = _ref$withLocalId === void 0 ? false : _ref$withLocalId;
|
|
14
12
|
var attrs = {
|
|
15
13
|
'data-layout-column': 'true'
|
|
16
14
|
};
|
|
@@ -24,7 +22,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
|
|
|
24
22
|
attrs['style'] = baseStyle + columnWidthVar;
|
|
25
23
|
attrs['data-column-width'] = "".concat(width);
|
|
26
24
|
}
|
|
27
|
-
if (
|
|
25
|
+
if (valign) {
|
|
28
26
|
attrs['data-valign'] = valign;
|
|
29
27
|
}
|
|
30
28
|
if (withLocalId && localId) {
|
|
@@ -35,9 +33,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
|
|
|
35
33
|
var getColumnAttrs = function getColumnAttrs() {
|
|
36
34
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
37
35
|
_ref2$withLocalId = _ref2.withLocalId,
|
|
38
|
-
withLocalId = _ref2$withLocalId === void 0 ? false : _ref2$withLocalId
|
|
39
|
-
_ref2$withValign = _ref2.withValign,
|
|
40
|
-
withValign = _ref2$withValign === void 0 ? false : _ref2$withValign;
|
|
36
|
+
withLocalId = _ref2$withLocalId === void 0 ? false : _ref2$withLocalId;
|
|
41
37
|
return function (domNode) {
|
|
42
38
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
43
39
|
var dom = domNode;
|
|
@@ -47,7 +43,7 @@ var getColumnAttrs = function getColumnAttrs() {
|
|
|
47
43
|
localId: uuid.generate()
|
|
48
44
|
});
|
|
49
45
|
var valign = parseValign(dom.getAttribute('data-valign'));
|
|
50
|
-
return
|
|
46
|
+
return valign ? _objectSpread(_objectSpread({}, base), {}, {
|
|
51
47
|
valign: valign
|
|
52
48
|
}) : base;
|
|
53
49
|
};
|
|
@@ -76,25 +72,6 @@ export var layoutColumn = layoutColumnFactory({
|
|
|
76
72
|
return ['div', setColumnAttributes(node), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
77
73
|
}
|
|
78
74
|
});
|
|
79
|
-
export var layoutColumnStage0 = layoutColumnStage0Factory({
|
|
80
|
-
parseDOM: [{
|
|
81
|
-
context: 'layoutColumn//',
|
|
82
|
-
tag: 'div[data-layout-column]',
|
|
83
|
-
skip: true
|
|
84
|
-
}, {
|
|
85
|
-
tag: 'div[data-layout-column]',
|
|
86
|
-
getAttrs: getColumnAttrs({
|
|
87
|
-
withLocalId: true,
|
|
88
|
-
withValign: true
|
|
89
|
-
})
|
|
90
|
-
}],
|
|
91
|
-
toDOM: function toDOM(node) {
|
|
92
|
-
return ['div', setColumnAttributes(node, {
|
|
93
|
-
withLocalId: true,
|
|
94
|
-
withValign: true
|
|
95
|
-
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
75
|
export var layoutColumnWithLocalId = layoutColumnFactory({
|
|
99
76
|
parseDOM: [{
|
|
100
77
|
context: 'layoutColumn//',
|
|
@@ -111,4 +88,5 @@ export var layoutColumnWithLocalId = layoutColumnFactory({
|
|
|
111
88
|
withLocalId: true
|
|
112
89
|
}), ['div', LAYOUT_CONTENT_ATTRS, 0]];
|
|
113
90
|
}
|
|
114
|
-
});
|
|
91
|
+
});
|
|
92
|
+
export var layoutColumnStage0 = layoutColumnWithLocalId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
|
|
2
|
-
export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition,
|
|
1
|
+
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
|
|
2
|
+
export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition, LayoutColumnDefinition as LayoutColumnStage0Definition, LayoutColumnNode, LayoutColumnNode as LayoutColumnStage0Node, LayoutSectionDefinition, LayoutSectionNode, LayoutSectionFullDefinition, LayoutSectionFullNode, LayoutSectionWithSingleColumnStage0Definition, LayoutSectionWithSingleColumnStage0Node, ListItemDefinition, ListItemNode, MediaNodeAttributes0, MediaNodeAttributes1, MediaDefinition, MediaNode, MediaGroupDefinition, MediaGroupNode, MediaInlineDefinition, MediaInlineNode, MediaSingleNodeAttributes0, MediaSingleNodeAttributes1, MediaSingleDefinition, MediaSingleNode, MediaSingleCaptionNodeAttributes0, MediaSingleCaptionNodeAttributes1, MediaSingleCaptionDefinition, MediaSingleCaptionNode, MediaSingleFullNodeAttributes0, MediaSingleFullNodeAttributes1, MediaSingleFullDefinition, MediaSingleFullNode, MediaSingleWidthTypeNodeAttributes0, MediaSingleWidthTypeNodeAttributes1, MediaSingleWidthTypeDefinition, MediaSingleWidthTypeNode, MentionDefinition, MentionNode, MentionStage0Definition, MentionStage0Node, MultiBodiedExtensionStage0Definition, MultiBodiedExtensionStage0Node, NestedExpandDefinition, NestedExpandNode, NestedExpandWithNoMarksDefinition, NestedExpandWithNoMarksNode, OrderedListDefinition, OrderedListNode, PanelDefinition, PanelNode, ParagraphDefinition, ParagraphNode, ParagraphWithAlignmentDefinition, ParagraphWithAlignmentNode, ParagraphWithFontSizeDefinition, ParagraphWithFontSizeNode, ParagraphWithIndentationDefinition, ParagraphWithIndentationNode, ParagraphWithNoMarksDefinition, ParagraphWithNoMarksNode, PlaceholderDefinition, PlaceholderNode, RuleDefinition, RuleNode, StatusDefinition, StatusNode, StatusStage0Definition, StatusStage0Node, SyncBlockDefinition, SyncBlockNode, TableDefinition, TableNode, TableWithNestedTableDefinition, TableWithNestedTableNode, TableCellDefinition, TableCellNode, TableCellStage0Definition, TableCellStage0Node, TableCellWithNestedTableDefinition, TableCellWithNestedTableNode, TableCellWithNestedTableStage0Definition, TableCellWithNestedTableStage0Node, TableHeaderDefinition, TableHeaderNode, TableHeaderStage0Definition, TableHeaderStage0Node, TableHeaderWithNestedTableDefinition, TableHeaderWithNestedTableNode, TableHeaderWithNestedTableStage0Definition, TableHeaderWithNestedTableStage0Node, TableRowDefinition, TableRowNode, TableRowWithNestedTableDefinition, TableRowWithNestedTableNode, TaskItemDefinition, TaskItemNode, TaskListDefinition, TaskListNode, TextDefinition, TextNode, TextCodeInlineDefinition, TextCodeInlineNode, TextFormattedDefinition, TextFormattedNode, TextWithNoMarksDefinition, TextWithNoMarksNode, UnsupportedBlockDefinition, UnsupportedBlockNode, UnsupportedInlineDefinition, UnsupportedInlineNode, } from '../next-schema/generated/nodeTypes';
|
|
@@ -441,25 +441,14 @@ export interface LayoutColumnDefinition {
|
|
|
441
441
|
attrs: {
|
|
442
442
|
width: number;
|
|
443
443
|
localId?: string;
|
|
444
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
447
|
export type LayoutColumnNode = PMNode & LayoutColumnDefinition;
|
|
447
448
|
export declare const layoutColumn: PMNodeSpecFactoryInstance<LayoutColumnNode>;
|
|
448
|
-
export interface LayoutColumnStage0Definition {
|
|
449
|
-
type: 'layoutColumn';
|
|
450
|
-
content: Array<BlockDefinition | UnsupportedBlockDefinition>;
|
|
451
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
452
|
-
attrs: {
|
|
453
|
-
width: number;
|
|
454
|
-
localId?: string;
|
|
455
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
export type LayoutColumnStage0Node = PMNode & LayoutColumnStage0Definition;
|
|
459
|
-
export declare const layoutColumnStage0: PMNodeSpecFactoryInstance<LayoutColumnStage0Node>;
|
|
460
449
|
export interface LayoutSectionDefinition {
|
|
461
450
|
type: 'layoutSection';
|
|
462
|
-
content: Array<LayoutColumnDefinition |
|
|
451
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
463
452
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
464
453
|
attrs: {
|
|
465
454
|
localId?: string;
|
|
@@ -469,7 +458,7 @@ export type LayoutSectionNode = PMNode & LayoutSectionDefinition;
|
|
|
469
458
|
export declare const layoutSection: PMNodeSpecFactoryInstance<LayoutSectionNode>;
|
|
470
459
|
export interface LayoutSectionFullDefinition {
|
|
471
460
|
type: 'layoutSection';
|
|
472
|
-
content: Array<LayoutColumnDefinition |
|
|
461
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
|
|
473
462
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
474
463
|
attrs: {
|
|
475
464
|
localId?: string;
|
|
@@ -479,7 +468,7 @@ export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
|
|
|
479
468
|
export declare const layoutSectionFull: PMNodeSpecFactoryInstance<LayoutSectionFullNode>;
|
|
480
469
|
export interface LayoutSectionWithSingleColumnStage0Definition {
|
|
481
470
|
type: 'layoutSection';
|
|
482
|
-
content: Array<LayoutColumnDefinition |
|
|
471
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
483
472
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
484
473
|
attrs: {
|
|
485
474
|
columnRuleStyle?: 'solid';
|
|
@@ -9,7 +9,7 @@ export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from '.
|
|
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
|
10
10
|
export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
|
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
|
12
|
-
export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON
|
|
12
|
+
export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON } from './code-block';
|
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
|
14
14
|
export { hardBreak } from './hard-break';
|
|
15
15
|
export type { HardBreakDefinition } from './hard-break';
|
|
@@ -7,10 +7,6 @@ import type { Valign } from './types/valign';
|
|
|
7
7
|
export interface LayoutColumnDefinition {
|
|
8
8
|
attrs: {
|
|
9
9
|
localId?: string;
|
|
10
|
-
/**
|
|
11
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
12
|
-
* @stage 0
|
|
13
|
-
*/
|
|
14
10
|
valign?: Valign;
|
|
15
11
|
/**
|
|
16
12
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
@@ -30,5 +26,5 @@ export interface LayoutColumnDefinition {
|
|
|
30
26
|
type: 'layoutColumn';
|
|
31
27
|
}
|
|
32
28
|
export declare const layoutColumn: NodeSpec;
|
|
33
|
-
export declare const layoutColumnStage0: NodeSpec;
|
|
34
29
|
export declare const layoutColumnWithLocalId: NodeSpec;
|
|
30
|
+
export declare const layoutColumnStage0: NodeSpec;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
|
|
2
|
-
export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition,
|
|
1
|
+
export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
|
|
2
|
+
export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition, LayoutColumnDefinition as LayoutColumnStage0Definition, LayoutColumnNode, LayoutColumnNode as LayoutColumnStage0Node, LayoutSectionDefinition, LayoutSectionNode, LayoutSectionFullDefinition, LayoutSectionFullNode, LayoutSectionWithSingleColumnStage0Definition, LayoutSectionWithSingleColumnStage0Node, ListItemDefinition, ListItemNode, MediaNodeAttributes0, MediaNodeAttributes1, MediaDefinition, MediaNode, MediaGroupDefinition, MediaGroupNode, MediaInlineDefinition, MediaInlineNode, MediaSingleNodeAttributes0, MediaSingleNodeAttributes1, MediaSingleDefinition, MediaSingleNode, MediaSingleCaptionNodeAttributes0, MediaSingleCaptionNodeAttributes1, MediaSingleCaptionDefinition, MediaSingleCaptionNode, MediaSingleFullNodeAttributes0, MediaSingleFullNodeAttributes1, MediaSingleFullDefinition, MediaSingleFullNode, MediaSingleWidthTypeNodeAttributes0, MediaSingleWidthTypeNodeAttributes1, MediaSingleWidthTypeDefinition, MediaSingleWidthTypeNode, MentionDefinition, MentionNode, MentionStage0Definition, MentionStage0Node, MultiBodiedExtensionStage0Definition, MultiBodiedExtensionStage0Node, NestedExpandDefinition, NestedExpandNode, NestedExpandWithNoMarksDefinition, NestedExpandWithNoMarksNode, OrderedListDefinition, OrderedListNode, PanelDefinition, PanelNode, ParagraphDefinition, ParagraphNode, ParagraphWithAlignmentDefinition, ParagraphWithAlignmentNode, ParagraphWithFontSizeDefinition, ParagraphWithFontSizeNode, ParagraphWithIndentationDefinition, ParagraphWithIndentationNode, ParagraphWithNoMarksDefinition, ParagraphWithNoMarksNode, PlaceholderDefinition, PlaceholderNode, RuleDefinition, RuleNode, StatusDefinition, StatusNode, StatusStage0Definition, StatusStage0Node, SyncBlockDefinition, SyncBlockNode, TableDefinition, TableNode, TableWithNestedTableDefinition, TableWithNestedTableNode, TableCellDefinition, TableCellNode, TableCellStage0Definition, TableCellStage0Node, TableCellWithNestedTableDefinition, TableCellWithNestedTableNode, TableCellWithNestedTableStage0Definition, TableCellWithNestedTableStage0Node, TableHeaderDefinition, TableHeaderNode, TableHeaderStage0Definition, TableHeaderStage0Node, TableHeaderWithNestedTableDefinition, TableHeaderWithNestedTableNode, TableHeaderWithNestedTableStage0Definition, TableHeaderWithNestedTableStage0Node, TableRowDefinition, TableRowNode, TableRowWithNestedTableDefinition, TableRowWithNestedTableNode, TaskItemDefinition, TaskItemNode, TaskListDefinition, TaskListNode, TextDefinition, TextNode, TextCodeInlineDefinition, TextCodeInlineNode, TextFormattedDefinition, TextFormattedNode, TextWithNoMarksDefinition, TextWithNoMarksNode, UnsupportedBlockDefinition, UnsupportedBlockNode, UnsupportedInlineDefinition, UnsupportedInlineNode, } from '../next-schema/generated/nodeTypes';
|
|
@@ -441,25 +441,14 @@ export interface LayoutColumnDefinition {
|
|
|
441
441
|
attrs: {
|
|
442
442
|
width: number;
|
|
443
443
|
localId?: string;
|
|
444
|
+
valign?: 'top' | 'middle' | 'bottom';
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
447
|
export type LayoutColumnNode = PMNode & LayoutColumnDefinition;
|
|
447
448
|
export declare const layoutColumn: PMNodeSpecFactoryInstance<LayoutColumnNode>;
|
|
448
|
-
export interface LayoutColumnStage0Definition {
|
|
449
|
-
type: 'layoutColumn';
|
|
450
|
-
content: Array<BlockDefinition | UnsupportedBlockDefinition>;
|
|
451
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
452
|
-
attrs: {
|
|
453
|
-
width: number;
|
|
454
|
-
localId?: string;
|
|
455
|
-
valign?: 'top' | 'middle' | 'bottom';
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
export type LayoutColumnStage0Node = PMNode & LayoutColumnStage0Definition;
|
|
459
|
-
export declare const layoutColumnStage0: PMNodeSpecFactoryInstance<LayoutColumnStage0Node>;
|
|
460
449
|
export interface LayoutSectionDefinition {
|
|
461
450
|
type: 'layoutSection';
|
|
462
|
-
content: Array<LayoutColumnDefinition |
|
|
451
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
463
452
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
464
453
|
attrs: {
|
|
465
454
|
localId?: string;
|
|
@@ -469,7 +458,7 @@ export type LayoutSectionNode = PMNode & LayoutSectionDefinition;
|
|
|
469
458
|
export declare const layoutSection: PMNodeSpecFactoryInstance<LayoutSectionNode>;
|
|
470
459
|
export interface LayoutSectionFullDefinition {
|
|
471
460
|
type: 'layoutSection';
|
|
472
|
-
content: Array<LayoutColumnDefinition |
|
|
461
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
|
|
473
462
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
474
463
|
attrs: {
|
|
475
464
|
localId?: string;
|
|
@@ -479,7 +468,7 @@ export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
|
|
|
479
468
|
export declare const layoutSectionFull: PMNodeSpecFactoryInstance<LayoutSectionFullNode>;
|
|
480
469
|
export interface LayoutSectionWithSingleColumnStage0Definition {
|
|
481
470
|
type: 'layoutSection';
|
|
482
|
-
content: Array<LayoutColumnDefinition |
|
|
471
|
+
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
483
472
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
484
473
|
attrs: {
|
|
485
474
|
columnRuleStyle?: 'solid';
|
|
@@ -9,7 +9,7 @@ export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from '.
|
|
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
|
10
10
|
export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
|
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
|
12
|
-
export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON
|
|
12
|
+
export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON } from './code-block';
|
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
|
14
14
|
export { hardBreak } from './hard-break';
|
|
15
15
|
export type { HardBreakDefinition } from './hard-break';
|
|
@@ -7,10 +7,6 @@ import type { Valign } from './types/valign';
|
|
|
7
7
|
export interface LayoutColumnDefinition {
|
|
8
8
|
attrs: {
|
|
9
9
|
localId?: string;
|
|
10
|
-
/**
|
|
11
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
12
|
-
* @stage 0
|
|
13
|
-
*/
|
|
14
10
|
valign?: Valign;
|
|
15
11
|
/**
|
|
16
12
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
@@ -30,5 +26,5 @@ export interface LayoutColumnDefinition {
|
|
|
30
26
|
type: 'layoutColumn';
|
|
31
27
|
}
|
|
32
28
|
export declare const layoutColumn: NodeSpec;
|
|
33
|
-
export declare const layoutColumnStage0: NodeSpec;
|
|
34
29
|
export declare const layoutColumnWithLocalId: NodeSpec;
|
|
30
|
+
export declare const layoutColumnStage0: NodeSpec;
|
package/json-schema/v1/full.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "54.0.1",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^2.4.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^100.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"css-color-names": "0.0.4",
|
|
45
45
|
"linkify-it": "^3.0.3",
|