@markuplint/ml-spec
Advanced tools
Comparing version 2.1.0 to 3.0.0-alpha.0
@@ -1,7 +0,18 @@ | ||
export * from './permitted-structres'; | ||
export * from './attributes'; | ||
export * from './get-attr-specs'; | ||
export * from './get-spec-by-tag-name'; | ||
export * from './get-spec'; | ||
export * from './get-ns'; | ||
export * from './dom-traverse/accname-computation'; | ||
export * from './dom-traverse/get-attr-specs'; | ||
export * from './dom-traverse/get-computed-role'; | ||
export * from './dom-traverse/get-implicit-role'; | ||
export * from './dom-traverse/get-permitted-roles'; | ||
export * from './dom-traverse/get-spec'; | ||
export * from './dom-traverse/has-required-owned-elements'; | ||
export * from './dom-traverse/may-be-focusable'; | ||
export * from './specs/aria-specs'; | ||
export * from './specs/content-model-category-to-tag-names'; | ||
export * from './specs/get-role-spec'; | ||
export * from './specs/get-spec-by-tag-name'; | ||
export * from './specs/schema-to-spec'; | ||
export * from './types'; | ||
export * from './types/aria'; | ||
export * from './types/attributes'; | ||
export * from './types/permitted-structres'; | ||
export * from './utils/resolve-namespace'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./permitted-structres"), exports); | ||
tslib_1.__exportStar(require("./attributes"), exports); | ||
tslib_1.__exportStar(require("./get-attr-specs"), exports); | ||
tslib_1.__exportStar(require("./get-spec-by-tag-name"), exports); | ||
tslib_1.__exportStar(require("./get-spec"), exports); | ||
tslib_1.__exportStar(require("./get-ns"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/accname-computation"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/get-attr-specs"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/get-computed-role"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/get-implicit-role"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/get-permitted-roles"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/get-spec"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/has-required-owned-elements"), exports); | ||
tslib_1.__exportStar(require("./dom-traverse/may-be-focusable"), exports); | ||
tslib_1.__exportStar(require("./specs/aria-specs"), exports); | ||
tslib_1.__exportStar(require("./specs/content-model-category-to-tag-names"), exports); | ||
tslib_1.__exportStar(require("./specs/get-role-spec"), exports); | ||
tslib_1.__exportStar(require("./specs/get-spec-by-tag-name"), exports); | ||
tslib_1.__exportStar(require("./specs/schema-to-spec"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./types/aria"), exports); | ||
tslib_1.__exportStar(require("./types/attributes"), exports); | ||
tslib_1.__exportStar(require("./types/permitted-structres"), exports); | ||
tslib_1.__exportStar(require("./utils/resolve-namespace"), exports); |
@@ -1,5 +0,8 @@ | ||
declare type NamedDefinition = string | { | ||
name: string; | ||
}; | ||
declare type NamedDefinition = | ||
| string | ||
| { | ||
name: string; | ||
}; | ||
export declare function getNS(namespaceURI: string | null): 'svg' | 'mml' | 'html'; | ||
export declare function mergeArray<T extends NamedDefinition>(a: T[], b: T[] | null | undefined): T[]; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mergeArray = void 0; | ||
exports.mergeArray = exports.getNS = void 0; | ||
function getNS(namespaceURI) { | ||
switch (namespaceURI) { | ||
case 'http://www.w3.org/2000/svg': { | ||
return 'svg'; | ||
} | ||
case 'http://www.w3.org/1998/Math/MathML': { | ||
return 'mml'; | ||
} | ||
default: { | ||
return 'html'; | ||
} | ||
} | ||
} | ||
exports.getNS = getNS; | ||
function mergeArray(a, b) { | ||
@@ -5,0 +19,0 @@ if (!b) { |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "2.1.0", | ||
"version": "3.0.0-alpha.0", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -19,14 +19,18 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"schema:gen": "ts-node ./gen/gen.ts; prettier --write './schemas/*.json';", | ||
"schema:structures": "json2ts ./schemas/permitted-structures.schema.json > ./src/permitted-structres.ts; prettier --write ./src/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/permitted-structres.ts", | ||
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/attributes.ts; prettier --write ./src/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/attributes.ts", | ||
"schema": "yarn schema:gen; yarn schema:structures; yarn schema:attributes; tsc;" | ||
"schema:content-models": "json2ts ./schemas/content-models.schema.json > ./src/types/permitted-structres.ts; prettier --write ./src/types/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/types/permitted-structres.ts", | ||
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/types/attributes.ts; prettier --write ./src/types/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/types/attributes.ts", | ||
"schema:aria": "json2ts ./schemas/aria.schema.json --cwd ./schemas > ./src/types/aria.ts; prettier --write ./src/types/aria.ts; eslint --fix --config ../../../.eslintrc ./src/types/aria.ts", | ||
"schema": "run-s schema:*" | ||
}, | ||
"dependencies": { | ||
"@markuplint/ml-ast": "3.0.0-alpha.0", | ||
"dom-accessibility-api": "^0.5.14", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@markuplint/types": "2.1.0", | ||
"@markuplint/test-tools": "3.0.0-alpha.0", | ||
"@markuplint/types": "3.0.0-alpha.0", | ||
"json-schema-to-typescript": "^10.1.5" | ||
}, | ||
"gitHead": "0321513e36cc74929c41e06e1f58c43ff7602556" | ||
"gitHead": "d32c522e016888e20bcbb5f09352c006b964f193" | ||
} |
{ | ||
"definitions": { | ||
"AttributeName": { "type": "string", "pattern": "^(?:(xml|xlink):)?[a-z][a-zA-Z0-9-]*$" }, | ||
"AttributeCondition": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["ancestor"], | ||
"properties": { "ancestor": { "$ref": "#/definitions/Selectors" } } | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["self"], | ||
"properties": { "self": { "$ref": "#/definitions/Selectors" } } | ||
} | ||
] | ||
}, | ||
"AttributeCondition": { "$ref": "#/definitions/Selectors" }, | ||
"Selectors": { | ||
@@ -27,7 +12,4 @@ "oneOf": [{ "type": "string" }, { "type": "array", "minItems": 2, "items": { "type": "string" } }] | ||
"additionalProperties": false, | ||
"required": ["ref"], | ||
"minProperties": 2, | ||
"minProperties": 1, | ||
"properties": { | ||
"_TODO_": { "type": "string" }, | ||
"ref": { "type": "string", "format": "uri" }, | ||
"type": { | ||
@@ -217,6 +199,5 @@ "oneOf": [ | ||
"additionalProperties": false, | ||
"required": ["tag", "ref", "attributes"], | ||
"required": ["tag", "attributes"], | ||
"properties": { | ||
"tag": { "type": "string" }, | ||
"ref": { "type": "string", "format": "uri" }, | ||
"global": { "$ref": "#/definitions/GlobalAttributes" }, | ||
@@ -223,0 +204,0 @@ "attributes": { "$ref": "#/definitions/Attributes" } |
@@ -1,7 +0,18 @@ | ||
export * from './permitted-structres'; | ||
export * from './attributes'; | ||
export * from './get-attr-specs'; | ||
export * from './get-spec-by-tag-name'; | ||
export * from './get-spec'; | ||
export * from './get-ns'; | ||
export * from './dom-traverse/accname-computation'; | ||
export * from './dom-traverse/get-attr-specs'; | ||
export * from './dom-traverse/get-computed-role'; | ||
export * from './dom-traverse/get-implicit-role'; | ||
export * from './dom-traverse/get-permitted-roles'; | ||
export * from './dom-traverse/get-spec'; | ||
export * from './dom-traverse/has-required-owned-elements'; | ||
export * from './dom-traverse/may-be-focusable'; | ||
export * from './specs/aria-specs'; | ||
export * from './specs/content-model-category-to-tag-names'; | ||
export * from './specs/get-role-spec'; | ||
export * from './specs/get-spec-by-tag-name'; | ||
export * from './specs/schema-to-spec'; | ||
export * from './types'; | ||
export * from './types/aria'; | ||
export * from './types/attributes'; | ||
export * from './types/permitted-structres'; | ||
export * from './utils/resolve-namespace'; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
330332
127
8075
3
3
2
1
+ Added@markuplint/ml-ast@3.0.0-alpha.0(transitive)
+ Addeddom-accessibility-api@0.5.16(transitive)