ngx-highlight-js
Advanced tools
Comparing version 16.0.0 to 16.1.0
{ | ||
"name": "ngx-highlight-js", | ||
"version": "16.0.0", | ||
"version": "16.1.0", | ||
"description": "Angular for syntax highlighting with highlight.js", | ||
@@ -23,2 +23,6 @@ "keywords": [ | ||
"homepage": "https://cipchk.github.io/ngx-highlight-js/", | ||
"dependencies": { | ||
"highlight.js": "^11.0.0", | ||
"tslib": "^2.3.0" | ||
}, | ||
"module": "fesm2022/ngx-highlight-js.mjs", | ||
@@ -37,6 +41,3 @@ "typings": "index.d.ts", | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
} | ||
"sideEffects": false | ||
} |
@@ -106,3 +106,3 @@ # ngx-highlight-js | ||
| `[mode]` | - `default` Will render each `<pre><code>`<br>- `simple` Render all content according to `lang` language | `default, simple` | `simple` | ✅ | | ||
| `[options]` | Equar [configure(options)](http://highlightjs.readthedocs.io/en/latest/api.html#configure-options) | `any` | - | ✅ | | ||
| `[options]` | Equar [configure(options)](https://highlightjs.readthedocs.io/en/latest/api.html#configure) | `any` | - | ✅ | | ||
| `[lang]` | Uses language detection by default but you can specify the language | `string` | `html` | ✅ | | ||
@@ -109,0 +109,0 @@ | `[code]` | Specify content | `string` | `html` | - | |
import { InjectionToken } from '@angular/core'; | ||
import type { HLJSOptions } from 'highlight.js'; | ||
export interface HighlightJsConfig { | ||
@@ -14,6 +15,6 @@ /** | ||
/** | ||
* Equar [configure(options)](http://highlightjs.readthedocs.io/en/latest/api.html#configure-options) | ||
* Equar [configure(options)](https://highlightjs.readthedocs.io/en/latest/api.html#configure) | ||
*/ | ||
options?: any; | ||
options?: Partial<HLJSOptions>; | ||
} | ||
export declare const HIGHLIGHTJS_CONFIG: InjectionToken<HighlightJsConfig>; |
import { ElementRef, OnDestroy, AfterViewInit, NgZone } from '@angular/core'; | ||
import { NgModel } from '@angular/forms'; | ||
import { HighlightJsConfig } from './highlight-js.config'; | ||
import type { HLJSOptions } from 'highlight.js'; | ||
import * as i0 from "@angular/core"; | ||
@@ -10,10 +11,10 @@ export declare class HighlightJsDirective implements AfterViewInit, OnDestroy { | ||
private ngZone; | ||
options: any; | ||
options?: Partial<HLJSOptions>; | ||
lang: string; | ||
code: string; | ||
code?: string; | ||
mode: 'default' | 'simple'; | ||
protected codeEl?: HTMLElement; | ||
protected parentEl: HTMLElement; | ||
protected parentEl?: HTMLElement; | ||
private modelValue$?; | ||
private observer; | ||
private observer?; | ||
constructor(el: ElementRef<HTMLElement>, ngModel: NgModel, doc: any, cog: HighlightJsConfig, ngZone: NgZone); | ||
@@ -20,0 +21,0 @@ private escapeHTML; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
45851
380
0
2
+ Addedhighlight.js@^11.0.0
+ Addedhighlight.js@11.10.0(transitive)