@markuplint/ml-spec
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -6,79 +6,57 @@ /** | ||
*/ | ||
export declare type PermittedContent = | ||
| PermittedContentRequire | ||
| PermittedContentOptional | ||
| PermittedContentOneOrMore | ||
| PermittedContentZeroOrMore | ||
| PermittedContentChoice | ||
| PermittedContentInterleave; | ||
export declare type PermittedContent = PermittedContentRequire | PermittedContentOptional | PermittedContentOneOrMore | PermittedContentZeroOrMore | PermittedContentChoice | PermittedContentInterleave; | ||
export declare type Target = Node | Node[]; | ||
export declare type Node = string | '#text' | ContentModel; | ||
export declare type ContentModel = | ||
| '#phrasing' | ||
| '#flow' | ||
| '#interactive' | ||
| '#heading' | ||
| '#sectioning' | ||
| '#metadata' | ||
| '#transparent' | ||
| '#embedded' | ||
| '#palpable' | ||
| '#script-supporting'; | ||
export declare type ContentModel = '#phrasing' | '#flow' | '#interactive' | '#heading' | '#sectioning' | '#metadata' | '#transparent' | '#embedded' | '#palpable' | '#script-supporting'; | ||
export declare type PermittedContentSpec = PermittedContent[]; | ||
export interface PermittedStructuresSchema { | ||
summary?: string; | ||
tag: string; | ||
conditional?: { | ||
condition: | ||
| { | ||
hasAttr: string; | ||
} | ||
| { | ||
parent: string; | ||
}; | ||
contents: PermittedContentSpec | boolean; | ||
}[]; | ||
contents: PermittedContentSpec | boolean; | ||
ancestor?: Node; | ||
summary?: string; | ||
tag: string; | ||
conditional?: { | ||
condition: { | ||
hasAttr: string; | ||
} | { | ||
parent: string; | ||
}; | ||
contents: PermittedContentSpec | boolean; | ||
}[]; | ||
contents: PermittedContentSpec | boolean; | ||
ancestor?: Node; | ||
} | ||
export interface PermittedContentRequire { | ||
require: Target; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
min?: number; | ||
require: Target; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
min?: number; | ||
} | ||
export interface PermittedContentOptional { | ||
optional: Target; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
optional: Target; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
} | ||
export interface PermittedContentOneOrMore { | ||
oneOrMore: Target | PermittedContentSpec; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
oneOrMore: Target | PermittedContentSpec; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
} | ||
export interface PermittedContentZeroOrMore { | ||
zeroOrMore: Target | PermittedContentSpec; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
zeroOrMore: Target | PermittedContentSpec; | ||
ignore?: Target; | ||
notAllowedDescendants?: Node[]; | ||
max?: number; | ||
} | ||
export interface PermittedContentChoice { | ||
choice: | ||
| [PermittedContentSpec, PermittedContentSpec] | ||
| [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec] | ||
| [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec, PermittedContentSpec] | ||
| [ | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
]; | ||
choice: [PermittedContentSpec, PermittedContentSpec] | [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec] | [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec, PermittedContentSpec] | [ | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec, | ||
PermittedContentSpec | ||
]; | ||
} | ||
export interface PermittedContentInterleave { | ||
interleave: [PermittedContentSpec, PermittedContentSpec, ...PermittedContentSpec[]]; | ||
interleave: [PermittedContentSpec, PermittedContentSpec, ...PermittedContentSpec[]]; | ||
} |
@@ -135,3 +135,3 @@ import { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
}; | ||
export declare type AttributeType = 'String' | 'Boolean' | 'Function' | 'Date' | 'Int' | 'Uint' | 'Float' | 'NonZeroUint' | 'AcceptList' | 'AutoComplete' | 'BCP47' | 'Color' | 'ColSpan' | 'Coords' | 'DateTime' | 'Destination' | 'DOMID' | 'DOMIDList' | 'ItemType' | 'LinkSizes' | 'LinkType' | 'LinkTypeList' | 'MediaQuery' | 'MediaQueryList' | 'MIMEType' | 'ReferrerPolicy' | 'RowSpan' | 'SourceSizeList' | 'SrcSet' | 'TabIndex' | 'Target' | 'URL' | 'URLHash' | 'URLList'; | ||
export declare type AttributeType = 'String' | 'NonEmptyString' | 'Boolean' | 'Function' | 'Date' | 'Int' | 'Uint' | 'Float' | 'NonZeroUint' | 'AcceptList' | 'AutoComplete' | 'BCP47' | 'Color' | 'ColSpan' | 'Coords' | 'DateTime' | 'Destination' | 'DOMID' | 'DOMIDList' | 'ItemType' | 'LinkSizes' | 'LinkType' | 'LinkTypeList' | 'MediaQuery' | 'MediaQueryList' | 'MIMEType' | 'ReferrerPolicy' | 'RowSpan' | 'SourceSizeList' | 'SrcSet' | 'TabIndex' | 'Target' | 'URL' | 'URLHash' | 'URLList'; | ||
export declare type ARIRRoleAttribute = { | ||
@@ -138,0 +138,0 @@ name: string; |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -24,3 +24,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "b0b90e206a61e48edfcad573f19f1a9df8460eb4" | ||
"gitHead": "46a4a218a03ff25750386d3d6d7e184bbef8b046" | ||
} |
@@ -42,2 +42,3 @@ { | ||
"String", | ||
"NonEmptyString", | ||
"Boolean", | ||
@@ -44,0 +45,0 @@ "Function", // JavaScript function body |
@@ -164,2 +164,3 @@ import { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
| 'String' | ||
| 'NonEmptyString' | ||
| 'Boolean' | ||
@@ -166,0 +167,0 @@ | 'Function' // JavaScript function body |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193077
1672