13a - rule's color, style and weight and layoutSection's columnRuleStyle join the tables
This commit was merged in pull request #91.
This commit is contained in:
@@ -18,7 +18,7 @@ type Spelled = [string, Map<string, AttributeKind>]
|
||||
|
||||
const carried = ['alignment', 'annotation', 'backgroundColor', 'blockCard', 'bodiedRule', 'breakout', 'dataConsumer', 'embedCard', 'fontSize', 'fragment', 'indentation', 'inlineExtension', 'placeholder']
|
||||
const definitionReference = '#/definitions/'
|
||||
const gaps = ['layoutSection.columnRuleStyle', 'link.collection', 'link.id', 'link.occurrenceKey', 'rule.color', 'rule.style', 'rule.weight']
|
||||
const gaps = ['link.collection', 'link.id', 'link.occurrenceKey']
|
||||
const grammarOwn = ['doc', 'text']
|
||||
const readKeywords = ['$ref', 'additionalProperties', 'allOf', 'anyOf', 'enum', 'items', 'maxItems', 'maximum', 'minItems', 'minLength', 'minimum', 'pattern', 'properties', 'required', 'type']
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '..', 'spec', 'adf-schema')
|
||||
|
||||
@@ -59,7 +59,7 @@ export const blockDirectives = {
|
||||
extensionFrame: { attributes: {}, contentModel: 'block' },
|
||||
heading: { attributes: { level: 'number', localId: 'string' }, contentModel: 'inline' },
|
||||
layoutColumn: { attributes: { localId: 'string', valign: 'string', width: 'number' }, contentModel: 'block' },
|
||||
layoutSection: { attributes: localIdAttributes, contentModel: 'block' },
|
||||
layoutSection: { attributes: { columnRuleStyle: 'string', localId: 'string' }, contentModel: 'block' },
|
||||
listItem: { attributes: localIdAttributes, contentModel: 'block' },
|
||||
media: { attributes: mediaAttributes, contentModel: 'none' },
|
||||
mediaGroup: { attributes: {}, contentModel: 'block' },
|
||||
@@ -72,7 +72,7 @@ export const blockDirectives = {
|
||||
contentModel: 'block',
|
||||
},
|
||||
paragraph: { attributes: localIdAttributes, contentModel: 'inline' },
|
||||
rule: { attributes: localIdAttributes, contentModel: 'none' },
|
||||
rule: { attributes: { color: 'string', localId: 'string', style: 'string', weight: 'number' }, contentModel: 'none' },
|
||||
syncBlock: { attributes: syncBlockAttributes, contentModel: 'none' },
|
||||
table: { attributes: { displayMode: 'string', isNumberColumnEnabled: 'boolean', layout: 'string', localId: 'string', width: 'number' }, contentModel: 'block' },
|
||||
tableCell: { attributes: cellAttributes, contentModel: 'block' },
|
||||
|
||||
Reference in New Issue
Block a user