angular-html-parser
Advanced tools
Comparing version
@@ -40,2 +40,6 @@ import { TagContentType } from "../../compiler/src/ml_parser/tags.js"; | ||
tokenizeAngularLetDeclaration?: boolean; | ||
/** | ||
* enable angular selectorless syntax | ||
*/ | ||
enableAngularSelectorlessSyntax?: boolean; | ||
} | ||
@@ -42,0 +46,0 @@ export declare function parse(input: string, options?: ParseOptions): ParseTreeResult; |
@@ -11,3 +11,3 @@ import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.js"; | ||
export function parse(input, options = {}) { | ||
const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, tokenizeAngularBlocks = false, tokenizeAngularLetDeclaration = false, } = options; | ||
const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, tokenizeAngularBlocks = false, tokenizeAngularLetDeclaration = false, enableAngularSelectorlessSyntax = false, } = options; | ||
return getParser().parse(input, "angular-html-parser", { | ||
@@ -20,2 +20,3 @@ tokenizeExpansionForms: tokenizeAngularBlocks, | ||
tokenizeLet: tokenizeAngularLetDeclaration, | ||
selectorlessEnabled: enableAngularSelectorlessSyntax, | ||
}, isTagNameCaseSensitive, getTagContentType); | ||
@@ -22,0 +23,0 @@ } |
@@ -13,3 +13,3 @@ /** | ||
// be compiled with the compiler. | ||
import { CssSelector } from "./selector.js"; | ||
import { CssSelector } from "./directive_matching.js"; | ||
// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not | ||
@@ -16,0 +16,0 @@ // explicitly set. |
{ | ||
"name": "angular-html-parser", | ||
"version": "9.0.2", | ||
"version": "9.1.0", | ||
"description": "A HTML parser extracted from Angular with some modifications", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/prettier/angular-html-parser/blob/HEAD/packages/angular-html-parser", |
@@ -0,0 +0,0 @@ This project incorporates third party material from the projects listed below. |
Sorry, the diff of this file is not supported yet
317578
0.17%8161
0.22%