@atlaskit/adf-schema 36.18.3 → 37.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 +12 -0
- package/dist/cjs/index.js +0 -24
- package/dist/cjs/next-schema/generated/markTypes.js +77 -77
- package/dist/cjs/next-schema/generated/nodeTypes.js +577 -545
- package/dist/cjs/next-schema/nodes/heading.js +5 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +7 -0
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/default-schema.js +1 -3
- package/dist/cjs/schema/index.js +0 -24
- package/dist/cjs/schema/nodes/heading.js +2 -51
- package/dist/cjs/schema/nodes/index.js +0 -24
- package/dist/cjs/schema/nodes/paragraph.js +2 -18
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/markTypes.js +77 -77
- package/dist/es2019/next-schema/generated/nodeTypes.js +577 -545
- package/dist/es2019/next-schema/nodes/heading.js +5 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +7 -0
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/default-schema.js +2 -4
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/heading.js +2 -48
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/paragraph.js +2 -15
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/markTypes.js +77 -77
- package/dist/esm/next-schema/generated/nodeTypes.js +577 -545
- package/dist/esm/next-schema/nodes/heading.js +5 -0
- package/dist/esm/next-schema/nodes/paragraph.js +7 -0
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/default-schema.js +2 -4
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/heading.js +1 -50
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/paragraph.js +1 -17
- package/dist/json-schema/v1/full.json +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +122 -122
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +474 -458
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/heading.d.ts +1 -3
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/paragraph.d.ts +1 -6
- package/json-schema/v1/full.json +12 -0
- package/package.json +3 -3
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -1
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +12 -0
@@ -4,6 +4,13 @@ import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
|
4
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
6
|
export const paragraph = adfNode('paragraph').define({
|
7
|
+
attrs: {
|
8
|
+
localId: {
|
9
|
+
type: 'string',
|
10
|
+
optional: true,
|
11
|
+
default: null
|
12
|
+
}
|
13
|
+
},
|
7
14
|
selectable: false,
|
8
15
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
16
|
content: [$zeroPlus($or(inlineGroup))]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
3
3
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
4
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc,
|
4
|
+
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithList, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expand, nestedExpand, embedCard, caption } from './nodes';
|
5
5
|
function addItems(builtInItems, config, customSpecs = {}) {
|
6
6
|
if (!config) {
|
7
7
|
return {};
|
@@ -54,7 +54,7 @@ const nodesInOrder = [{
|
|
54
54
|
spec: doc
|
55
55
|
}, {
|
56
56
|
name: 'paragraph',
|
57
|
-
spec:
|
57
|
+
spec: paragraph
|
58
58
|
}, {
|
59
59
|
name: 'text',
|
60
60
|
spec: text
|
@@ -69,7 +69,7 @@ const nodesInOrder = [{
|
|
69
69
|
spec: listItemWithTask
|
70
70
|
}, {
|
71
71
|
name: 'heading',
|
72
|
-
spec:
|
72
|
+
spec: heading
|
73
73
|
}, {
|
74
74
|
name: 'blockquote',
|
75
75
|
spec: blockquoteWithList
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
const getDefaultSchemaConfig = () => {
|
5
5
|
const defaultSchemaConfig = {
|
@@ -17,9 +17,7 @@ export const getSchemaBasedOnStage = memoizeOne((stage = 'final') => {
|
|
17
17
|
defaultSchemaConfig.customNodeSpecs = {
|
18
18
|
layoutSection: layoutSectionWithSingleColumn,
|
19
19
|
multiBodiedExtension: multiBodiedExtension,
|
20
|
-
extensionFrame: extensionFrame
|
21
|
-
heading: headingNodeSpec('stage0'),
|
22
|
-
paragraph: paragraphNodeSpec('stage0')
|
20
|
+
extensionFrame: extensionFrame
|
23
21
|
};
|
24
22
|
}
|
25
23
|
return createSchema(defaultSchemaConfig);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -22,7 +22,7 @@ const getAttrs = level => domNode => {
|
|
22
22
|
localId: domNode.getAttribute('data-local-id') || ((_heading$attrs = heading.attrs) === null || _heading$attrs === void 0 ? void 0 : (_heading$attrs$localI = _heading$attrs.localId) === null || _heading$attrs$localI === void 0 ? void 0 : _heading$attrs$localI.default)
|
23
23
|
};
|
24
24
|
};
|
25
|
-
export const
|
25
|
+
export const heading = {
|
26
26
|
attrs: {
|
27
27
|
level: {
|
28
28
|
default: 1
|
@@ -65,50 +65,4 @@ export const headingStage0 = {
|
|
65
65
|
}] : [];
|
66
66
|
return [name, ...attrs, 0];
|
67
67
|
}
|
68
|
-
};
|
69
|
-
export const heading = {
|
70
|
-
attrs: {
|
71
|
-
level: {
|
72
|
-
default: 1
|
73
|
-
}
|
74
|
-
},
|
75
|
-
content: `inline*`,
|
76
|
-
group: 'block',
|
77
|
-
defining: true,
|
78
|
-
selectable: false,
|
79
|
-
parseDOM: [{
|
80
|
-
tag: 'h1',
|
81
|
-
attrs: {
|
82
|
-
level: 1
|
83
|
-
}
|
84
|
-
}, {
|
85
|
-
tag: 'h2',
|
86
|
-
attrs: {
|
87
|
-
level: 2
|
88
|
-
}
|
89
|
-
}, {
|
90
|
-
tag: 'h3',
|
91
|
-
attrs: {
|
92
|
-
level: 3
|
93
|
-
}
|
94
|
-
}, {
|
95
|
-
tag: 'h4',
|
96
|
-
attrs: {
|
97
|
-
level: 4
|
98
|
-
}
|
99
|
-
}, {
|
100
|
-
tag: 'h5',
|
101
|
-
attrs: {
|
102
|
-
level: 5
|
103
|
-
}
|
104
|
-
}, {
|
105
|
-
tag: 'h6',
|
106
|
-
attrs: {
|
107
|
-
level: 6
|
108
|
-
}
|
109
|
-
}],
|
110
|
-
toDOM(node) {
|
111
|
-
return ['h' + node.attrs['level'], 0];
|
112
|
-
}
|
113
|
-
};
|
114
|
-
export const headingNodeSpec = (adfStage = 'full') => adfStage === 'stage0' ? headingStage0 : heading;
|
68
|
+
};
|
@@ -8,10 +8,10 @@ export { blockquoteWithList } from './blockquote';
|
|
8
8
|
export { bulletList, bulletListSelector } from './bullet-list';
|
9
9
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
10
10
|
export { hardBreak } from './hard-break';
|
11
|
-
export {
|
11
|
+
export { heading } from './heading';
|
12
12
|
export { rule } from './rule';
|
13
13
|
export { orderedList, orderedListSelector, orderedListWithOrder } from './ordered-list';
|
14
|
-
export { paragraph
|
14
|
+
export { paragraph } from './paragraph';
|
15
15
|
export { emoji } from './emoji';
|
16
16
|
export { image } from './image';
|
17
17
|
export { mention, toJSON as mentionToJSON } from './mention';
|
@@ -23,7 +23,7 @@
|
|
23
23
|
* @name paragraph_with_indentation_node
|
24
24
|
*/
|
25
25
|
|
26
|
-
export const
|
26
|
+
export const paragraph = {
|
27
27
|
selectable: false,
|
28
28
|
content: 'inline*',
|
29
29
|
group: 'block',
|
@@ -54,17 +54,4 @@ export const paragraphStage0 = {
|
|
54
54
|
}] : [];
|
55
55
|
return [name, ...attrs, 0];
|
56
56
|
}
|
57
|
-
};
|
58
|
-
export const paragraph = {
|
59
|
-
selectable: false,
|
60
|
-
content: 'inline*',
|
61
|
-
group: 'block',
|
62
|
-
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
63
|
-
parseDOM: [{
|
64
|
-
tag: 'p'
|
65
|
-
}],
|
66
|
-
toDOM() {
|
67
|
-
return ['p', 0];
|
68
|
-
}
|
69
|
-
};
|
70
|
-
export const paragraphNodeSpec = (adfStage = 'full') => adfStage === 'stage0' ? paragraphStage0 : paragraph;
|
57
|
+
};
|
package/dist/esm/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading,
|
2
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
@@ -5,60 +5,12 @@
|
|
5
5
|
*/
|
6
6
|
|
7
7
|
import { createPMMarkSpecFactory } from '@atlaskit/adf-schema-generator';
|
8
|
-
export var
|
9
|
-
attrs: {
|
10
|
-
unsupported: {},
|
11
|
-
type: {}
|
12
|
-
}
|
13
|
-
});
|
14
|
-
export var unsupportedMark = createPMMarkSpecFactory({
|
15
|
-
attrs: {
|
16
|
-
originalValue: {}
|
17
|
-
},
|
18
|
-
excludes: ''
|
19
|
-
});
|
20
|
-
export var link = createPMMarkSpecFactory({
|
21
|
-
attrs: {
|
22
|
-
href: {},
|
23
|
-
__confluenceMetadata: {
|
24
|
-
default: null
|
25
|
-
}
|
26
|
-
},
|
27
|
-
inclusive: false,
|
28
|
-
excludes: 'link',
|
29
|
-
group: 'link'
|
30
|
-
});
|
31
|
-
export var em = createPMMarkSpecFactory({
|
32
|
-
inclusive: true,
|
33
|
-
group: 'fontStyle'
|
34
|
-
});
|
35
|
-
export var strong = createPMMarkSpecFactory({
|
36
|
-
inclusive: true,
|
37
|
-
group: 'fontStyle'
|
38
|
-
});
|
39
|
-
export var strike = createPMMarkSpecFactory({
|
40
|
-
inclusive: true,
|
41
|
-
group: 'fontStyle'
|
42
|
-
});
|
43
|
-
export var subsup = createPMMarkSpecFactory({
|
44
|
-
attrs: {
|
45
|
-
type: {
|
46
|
-
default: 'sub'
|
47
|
-
}
|
48
|
-
},
|
49
|
-
inclusive: true,
|
50
|
-
group: 'fontStyle'
|
51
|
-
});
|
52
|
-
export var underline = createPMMarkSpecFactory({
|
53
|
-
inclusive: true,
|
54
|
-
group: 'fontStyle'
|
55
|
-
});
|
56
|
-
export var textColor = createPMMarkSpecFactory({
|
8
|
+
export var alignment = createPMMarkSpecFactory({
|
57
9
|
attrs: {
|
58
|
-
|
10
|
+
align: {}
|
59
11
|
},
|
60
|
-
|
61
|
-
group: '
|
12
|
+
excludes: 'alignment indentation',
|
13
|
+
group: 'alignment'
|
62
14
|
});
|
63
15
|
export var annotation = createPMMarkSpecFactory({
|
64
16
|
attrs: {
|
@@ -81,14 +33,25 @@ export var backgroundColor = createPMMarkSpecFactory({
|
|
81
33
|
excludes: 'color',
|
82
34
|
group: 'color'
|
83
35
|
});
|
84
|
-
export var
|
36
|
+
export var border = createPMMarkSpecFactory({
|
85
37
|
attrs: {
|
86
|
-
|
87
|
-
|
38
|
+
size: {},
|
39
|
+
color: {}
|
40
|
+
},
|
41
|
+
inclusive: false
|
42
|
+
});
|
43
|
+
export var breakout = createPMMarkSpecFactory({
|
44
|
+
attrs: {
|
45
|
+
mode: {
|
46
|
+
default: 'wide'
|
88
47
|
}
|
89
48
|
},
|
49
|
+
inclusive: false,
|
50
|
+
spanning: false
|
51
|
+
});
|
52
|
+
export var code = createPMMarkSpecFactory({
|
90
53
|
inclusive: true,
|
91
|
-
|
54
|
+
excludes: 'fontStyle link searchQuery color'
|
92
55
|
});
|
93
56
|
export var confluenceInlineComment = createPMMarkSpecFactory({
|
94
57
|
attrs: {
|
@@ -99,10 +62,6 @@ export var confluenceInlineComment = createPMMarkSpecFactory({
|
|
99
62
|
inclusive: false,
|
100
63
|
excludes: ''
|
101
64
|
});
|
102
|
-
export var code = createPMMarkSpecFactory({
|
103
|
-
inclusive: true,
|
104
|
-
excludes: 'fontStyle link searchQuery color'
|
105
|
-
});
|
106
65
|
export var dataConsumer = createPMMarkSpecFactory({
|
107
66
|
attrs: {
|
108
67
|
sources: {
|
@@ -110,6 +69,10 @@ export var dataConsumer = createPMMarkSpecFactory({
|
|
110
69
|
}
|
111
70
|
}
|
112
71
|
});
|
72
|
+
export var em = createPMMarkSpecFactory({
|
73
|
+
inclusive: true,
|
74
|
+
group: 'fontStyle'
|
75
|
+
});
|
113
76
|
export var fragment = createPMMarkSpecFactory({
|
114
77
|
attrs: {
|
115
78
|
localId: {
|
@@ -122,33 +85,70 @@ export var fragment = createPMMarkSpecFactory({
|
|
122
85
|
inclusive: false,
|
123
86
|
excludes: ''
|
124
87
|
});
|
125
|
-
export var
|
88
|
+
export var indentation = createPMMarkSpecFactory({
|
126
89
|
attrs: {
|
127
|
-
|
128
|
-
color: {}
|
90
|
+
level: {}
|
129
91
|
},
|
130
|
-
|
92
|
+
excludes: 'indentation alignment',
|
93
|
+
group: 'indentation'
|
131
94
|
});
|
132
|
-
export var
|
95
|
+
export var link = createPMMarkSpecFactory({
|
133
96
|
attrs: {
|
134
|
-
|
97
|
+
href: {},
|
98
|
+
__confluenceMetadata: {
|
99
|
+
default: null
|
100
|
+
}
|
135
101
|
},
|
136
|
-
|
137
|
-
|
102
|
+
inclusive: false,
|
103
|
+
excludes: 'link',
|
104
|
+
group: 'link'
|
138
105
|
});
|
139
|
-
export var
|
106
|
+
export var strike = createPMMarkSpecFactory({
|
107
|
+
inclusive: true,
|
108
|
+
group: 'fontStyle'
|
109
|
+
});
|
110
|
+
export var strong = createPMMarkSpecFactory({
|
111
|
+
inclusive: true,
|
112
|
+
group: 'fontStyle'
|
113
|
+
});
|
114
|
+
export var subsup = createPMMarkSpecFactory({
|
140
115
|
attrs: {
|
141
|
-
|
116
|
+
type: {
|
117
|
+
default: 'sub'
|
118
|
+
}
|
142
119
|
},
|
143
|
-
|
144
|
-
group: '
|
120
|
+
inclusive: true,
|
121
|
+
group: 'fontStyle'
|
145
122
|
});
|
146
|
-
export var
|
123
|
+
export var textColor = createPMMarkSpecFactory({
|
147
124
|
attrs: {
|
148
|
-
|
149
|
-
|
125
|
+
color: {}
|
126
|
+
},
|
127
|
+
inclusive: true,
|
128
|
+
group: 'color'
|
129
|
+
});
|
130
|
+
export var typeAheadQuery = createPMMarkSpecFactory({
|
131
|
+
attrs: {
|
132
|
+
trigger: {
|
133
|
+
default: ''
|
150
134
|
}
|
151
135
|
},
|
152
|
-
inclusive:
|
153
|
-
|
136
|
+
inclusive: true,
|
137
|
+
group: 'searchQuery'
|
138
|
+
});
|
139
|
+
export var underline = createPMMarkSpecFactory({
|
140
|
+
inclusive: true,
|
141
|
+
group: 'fontStyle'
|
142
|
+
});
|
143
|
+
export var unsupportedMark = createPMMarkSpecFactory({
|
144
|
+
attrs: {
|
145
|
+
originalValue: {}
|
146
|
+
},
|
147
|
+
excludes: ''
|
148
|
+
});
|
149
|
+
export var unsupportedNodeAttribute = createPMMarkSpecFactory({
|
150
|
+
attrs: {
|
151
|
+
unsupported: {},
|
152
|
+
type: {}
|
153
|
+
}
|
154
154
|
});
|