@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
50 lines (47 loc) • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.listItemWithoutNonBodiedMacros = exports.listItemWithTask = exports.listItemWithDecisionStage0 = exports.listItem = void 0;
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
/**
* @name list_item
* @description this node allows task-list to be nested inside list-item
*/
var listItem = exports.listItem = (0, _nodeTypes.listItem)({
parseDOM: [{
tag: 'li'
}],
toDOM: function toDOM() {
return ['li', 0];
}
});
/**
* @name list_item_with_task
* @description this node allows task-list to be nested inside list-item
*/
var listItemWithTask = exports.listItemWithTask = listItem;
/**
* @name list_item_with_decision_stage0
* @description this node allows decisions to be nested inside list-item
*/
var listItemWithDecisionStage0 = exports.listItemWithDecisionStage0 = (0, _nodeTypes.listItemWithNestedDecisionStage0)({
parseDOM: [{
tag: 'li'
}],
toDOM: function toDOM() {
return ['li', 0];
}
});
/**
* @name list_item_without_non_bodied_macros
* @description this node does not allow extension inside list-item
*/
var listItemWithoutNonBodiedMacros = exports.listItemWithoutNonBodiedMacros = (0, _nodeTypes.listItemWithoutNonBodiedMacros)({
parseDOM: [{
tag: 'li'
}],
toDOM: function toDOM() {
return ['li', 0];
}
});