@markuplint/ml-spec
Advanced tools
Comparing version 1.5.0 to 1.6.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./permitted-structres"), exports); | ||
__exportStar(require("./get-spec-by-tag-name"), exports); | ||
__exportStar(require("./get-spec"), exports); | ||
__exportStar(require("./types"), exports); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./permitted-structres"), exports); | ||
tslib_1.__exportStar(require("./get-spec-by-tag-name"), exports); | ||
tslib_1.__exportStar(require("./get-spec"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); |
@@ -166,6 +166,16 @@ import { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
value: ARIAAttributeValue; | ||
conditionalValue?: { | ||
role: string[]; | ||
value: ARIAAttributeValue; | ||
}[]; | ||
enum: string[]; | ||
defaultValue?: string; | ||
equivalentHtmlAttrs?: EquivalentHtmlAttr[]; | ||
valueDescriptions?: Record<string, string>; | ||
}; | ||
export declare type ARIAAttributeValue = 'true/false' | 'tristate' | 'true/false/undefined' | 'ID reference' | 'ID reference list' | 'integer' | 'number' | 'string' | 'token' | 'token list' | 'URI'; | ||
export declare type EquivalentHtmlAttr = { | ||
htmlAttrName: string; | ||
value: string | null; | ||
}; | ||
export interface SpecOM { | ||
@@ -172,0 +182,0 @@ [tagName: string]: MLDOMElementSpec; |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -20,7 +20,9 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"json-schema-to-typescript": "^10.1.3", | ||
"typescript-json-schema": "^0.48.0" | ||
"json-schema-to-typescript": "^10.1.3" | ||
}, | ||
"gitHead": "361f6e18dbeb369e769e3b1ae8c97a006452938d" | ||
"gitHead": "94955520e9fad6a45e8831c47f6b8b342b77efdc" | ||
} |
# @markuplint/ml-spec | ||
[![npm version](https://badge.fury.io/js/%40markuplint%2Fml-spec.svg)](https://www.npmjs.com/package/@markuplint/ml-spec) | ||
[![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=master)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=master)](https://coveralls.io/github/markuplint/markuplint?branch=master) | ||
[![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=main)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=main)](https://coveralls.io/github/markuplint/markuplint?branch=main) | ||
@@ -20,3 +20,3 @@ ## Install | ||
``` | ||
$ git clone git@github.com:markuplint/markuplint.git -b master | ||
$ git clone git@github.com:markuplint/markuplint.git -b main | ||
$ yarn | ||
@@ -23,0 +23,0 @@ $ yarn build |
@@ -230,4 +230,10 @@ import { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
value: ARIAAttributeValue; | ||
conditionalValue?: { | ||
role: string[]; | ||
value: ARIAAttributeValue; | ||
}[]; | ||
enum: string[]; | ||
defaultValue?: string; | ||
equivalentHtmlAttrs?: EquivalentHtmlAttr[]; | ||
valueDescriptions?: Record<string, string>; | ||
}; | ||
@@ -248,2 +254,7 @@ | ||
export type EquivalentHtmlAttr = { | ||
htmlAttrName: string; | ||
value: string | null; | ||
}; | ||
export interface SpecOM { | ||
@@ -250,0 +261,0 @@ [tagName: string]: MLDOMElementSpec; |
Sorry, the diff of this file is not supported yet
1
1941
90976
1
+ Addedtslib@^2.3.0
+ Addedtslib@2.8.1(transitive)