ngx-showdown
Advanced tools
Comparing version 3.0.0 to 3.1.0
/** | ||
* Angular X Showdown Module (https://github.com/yisraelx/ngx-showdown) | ||
* @version 3.0.0 | ||
* @version 3.1.0 | ||
* @license MIT (https://github.com/yisraelx/ngx-showdown/blob/master/LICENSE) | ||
@@ -116,3 +116,3 @@ * @copyright Yisrael Eliav <yisraelx@gmail.com> (https://github.com/yisraelx) | ||
var utils_1 = __webpack_require__(3); | ||
var ConverterOptions = (function () { | ||
var ConverterOptions = /** @class */ (function () { | ||
function ConverterOptions(options) { | ||
@@ -150,3 +150,3 @@ this.merge(options); | ||
*/ | ||
var BaseConverterOptions = (function (_super) { | ||
var BaseConverterOptions = /** @class */ (function (_super) { | ||
__extends(BaseConverterOptions, _super); | ||
@@ -156,2 +156,3 @@ function BaseConverterOptions() { | ||
customizedHeaderId: false, | ||
backslashEscapesHTMLTags: false, | ||
disableForced4SpacesIndentedSublists: false, | ||
@@ -173,2 +174,4 @@ encodeEmails: true, | ||
prefixHeaderId: false, | ||
rawHeaderId: false, | ||
rawPrefixHeaderId: false, | ||
requireSpaceBeforeHeadingText: false, | ||
@@ -214,3 +217,3 @@ simpleLineBreaks: false, | ||
var utils_1 = __webpack_require__(3); | ||
var BaseConverter = (function (_super) { | ||
var BaseConverter = /** @class */ (function (_super) { | ||
__extends(BaseConverter, _super); | ||
@@ -253,3 +256,3 @@ function BaseConverter(options) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Utils = (function () { | ||
var Utils = /** @class */ (function () { | ||
function Utils() { | ||
@@ -327,3 +330,3 @@ } | ||
var optionsProperties = [ | ||
'customizedHeaderId', 'disableForced4SpacesIndentedSublists', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine' | ||
'customizedHeaderId', 'backslashEscapesHTMLTags', 'disableForced4SpacesIndentedSublists', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'rawHeaderId', 'rawPrefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine' | ||
]; | ||
@@ -386,3 +389,3 @@ var SHOWDOWN_DIRECTIVE_TYPES; | ||
*/ | ||
var ShowdownDirective = (function (_super) { | ||
var ShowdownDirective = /** @class */ (function (_super) { | ||
__extends(ShowdownDirective, _super); | ||
@@ -577,3 +580,3 @@ function ShowdownDirective(_elementRef, options) { | ||
*/ | ||
var ShowdownConverter = (function (_super) { | ||
var ShowdownConverter = /** @class */ (function (_super) { | ||
__extends(ShowdownConverter, _super); | ||
@@ -632,3 +635,3 @@ function ShowdownConverter(options) { | ||
*/ | ||
var SrcDirective = (function () { | ||
var SrcDirective = /** @class */ (function () { | ||
function SrcDirective(_showdownDirective, _http) { | ||
@@ -730,3 +733,3 @@ this._showdownDirective = _showdownDirective; | ||
*/ | ||
var ShowdownPipe = (function (_super) { | ||
var ShowdownPipe = /** @class */ (function (_super) { | ||
__extends(ShowdownPipe, _super); | ||
@@ -833,3 +836,3 @@ function ShowdownPipe(options) { | ||
*/ | ||
var ShowdownModule = (function () { | ||
var ShowdownModule = /** @class */ (function () { | ||
function ShowdownModule() { | ||
@@ -836,0 +839,0 @@ } |
/** | ||
* Angular X Showdown Module (https://github.com/yisraelx/ngx-showdown) | ||
* @version 3.0.0 | ||
* @version 3.1.0 | ||
* @license MIT (https://github.com/yisraelx/ngx-showdown/blob/master/LICENSE) | ||
* @copyright Yisrael Eliav <yisraelx@gmail.com> (https://github.com/yisraelx) | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("showdown"),require("@angular/http")):"function"==typeof define&&define.amd?define(["@angular/core","showdown","@angular/http"],t):"object"==typeof exports?exports.showdown=t(require("@angular/core"),require("showdown"),require("@angular/http")):(e.ng=e.ng||{},e.ng.showdown=t(e.ng.core,e.showdown,e.ng.http))}(this,function(e,t,n){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),c=n(3),a=function(){function e(e){this.merge(e)}return e.prototype.merge=function(e){var t=this;c.default.isObject(e)&&c.default.forIn(e,function(e,n){t[n]=e})},e}();t.ConverterOptions=a;var u=function(e){function t(){return e.call(this,{customizedHeaderId:!1,disableForced4SpacesIndentedSublists:!1,encodeEmails:!0,excludeTrailingPunctuationFromURLs:!1,extensions:[],ghCodeBlocks:!0,ghCompatibleHeaderId:!1,ghMentions:!1,ghMentionsLink:"https://github.com/{u}",headerLevelStart:1,literalMidWordAsterisks:!1,literalMidWordUnderscores:!1,noHeaderId:!1,omitExtraWLInCodeBlocks:!1,openLinksInNewWindow:!1,parseImgDimensions:!1,prefixHeaderId:!1,requireSpaceBeforeHeadingText:!1,simpleLineBreaks:!1,simplifiedAutoLink:!1,smartIndentationFix:!1,smoothLivePreview:!1,strikethrough:!1,tables:!1,tablesHeaderId:!1,tasklists:!1,trimEachLine:!1})||this}return o(t,e),t=r([s.Injectable(),i("design:paramtypes",[])],t)}(a);t.BaseConverterOptions=u},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(3),s=function(e){function t(t){var n=e.call(this,t)||this,o=n.makeHtml;return n.makeHtml=function(e){return e=n._preMakeHtml(e),o.call(n,e)},n}return o(t,e),t.prototype.setOptions=function(e){var t=this;i.default.isObject(e)&&i.default.forIn(e,function(e,n){t.setOption(n,e)})},t.prototype._preMakeHtml=function(e){var t=this.getOptions().trimEachLine;return e=i.default.trimEachLine(e,t)},t}(r.Converter);t.BaseConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.isEmpty=function(e){return void 0===e||null===e||""===(""+e).trim()},e.isObject=function(e){return"object"==typeof e},e.isFunction=function(e){return"function"==typeof e},e.forIn=function(e,t){void 0===e&&(e={}),void 0===t&&(t=function(){}),Object.keys(e).forEach(function(n){t(e[n],n,e)})},e.trimEachLine=function(e,t){if(this.isEmpty(e))return e;switch(t){case"space":return e.replace(/^(?=\n)$|^[ ]+|[ ]+$/gm,"");case"tab":return e.replace(/^(?=\n)$|^\t+|\t+$/gm,"");case!0:return e.replace(/^(?=\n)$|^\s+|\s+$/gm,"");default:return e}},e}();t.default=o},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c,a=n(0),u=n(3),f=n(1),p=n(2),l=["customizedHeaderId","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"];!function(e){e[e.NONE=0]="NONE",e[e.SRC=1]="SRC",e[e.BINDING=2]="BINDING",e[e.CONTENT=3]="CONTENT"}(c=t.SHOWDOWN_DIRECTIVE_TYPES||(t.SHOWDOWN_DIRECTIVE_TYPES={}));var d;!function(e){e[e.CREATED=0]="CREATED",e[e.INIT=1]="INIT",e[e.PROCESSING=2]="PROCESSING",e[e.READY=3]="READY"}(d=t.SHOWDOWN_DIRECTIVE_STATUSES||(t.SHOWDOWN_DIRECTIVE_STATUSES={}));var h=function(e){function t(t,o){var r=e.call(this,o)||this;return r._elementRef=t,r._type=n.TYPES.NONE,r._status=n.STATUSES.CREATED,r._onChange=function(){r.compile()},r.setOption=function(e,t){r.getOptions()[e]=t,r._onChange()},r}return o(t,e),n=t,Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return n.TYPES[this._type].toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return n.STATUSES[this._status].toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showdown",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.getOptions()},set:function(e){this.setOptions(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){if(this._type===n.TYPES.NONE&&!u.default.isEmpty(this._elementRef.nativeElement.innerText)){var e=this._elementRef.nativeElement.innerHTML;this.setValue(e,n.TYPES.CONTENT)}this._status===n.STATUSES.CREATED&&(this._status=n.STATUSES.INIT)},t.prototype.setValue=function(e,t){void 0===t&&(t=n.TYPES.BINDING),this._value=e,this._type=t,this._onChange()},t.prototype.setOptions=function(t){e.prototype.setOptions.call(this,t),this._onChange()},t.prototype.compile=function(){this._type!==n.TYPES.NONE&&(this._status=n.STATUSES.PROCESSING,this._elementRef.nativeElement.innerHTML=this.toHTML(),this._status=n.STATUSES.READY)},t.prototype.registerOnChange=function(e){if(!u.default.isFunction(e))throw new Error("Arg fn is missing or invalid.");this._onChange=e},t.prototype.toHTML=function(){var e=this._value;return this.makeHtml(e)},t.TYPES=c,t.STATUSES=d,r([a.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"value",null),r([a.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"showdown",null),r([a.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"options",null),t=n=r([a.Directive({selector:"showdown,[showdown]",inputs:[].concat(l)}),s(1,a.Optional()),i("design:paramtypes",[a.ElementRef,f.ConverterOptions])],t);var n}(p.BaseConverter);t.ShowdownDirective=h,l.forEach(function(e){Object.defineProperty(h.prototype,e,{set:function(t){this.setOption(e,!!u.default.isEmpty(t)||t)},get:function(){return this.getOption(e)},enumerable:!0,configurable:!0})})},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),a=n(1),u=n(2),f=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t=r([c.Injectable(),s(0,c.Optional()),i("design:paramtypes",[a.ConverterOptions])],t)}(u.BaseConverter);t.ShowdownConverter=f},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(10),c=n(4),a=function(){function e(e,t){this._showdownDirective=e,this._http=t}return Object.defineProperty(e.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,this.load()},enumerable:!0,configurable:!0}),e.prototype.load=function(){var e=this,t=this.src;this._http.get(t).subscribe(function(t){var n=t.text();e._showdownDirective.setValue(n,c.ShowdownDirective.TYPES.SRC)})},o([i.Input(),r("design:type",String),r("design:paramtypes",[String])],e.prototype,"src",null),e=o([i.Directive({selector:"showdown[src],[showdown][src]"}),r("design:paramtypes",[c.ShowdownDirective,s.Http])],e)}();t.SrcDirective=a},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),a=n(1),u=n(2),f=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.transform=function(e,t){return void 0===e&&(e=""),this.setOptions(t),this.makeHtml(e)},t=r([c.Pipe({name:"showdown",pure:!1}),s(0,c.Optional()),i("design:paramtypes",[a.ConverterOptions])],t)}(u.BaseConverter);t.ShowdownPipe=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);t.BaseConverter=o.BaseConverter;var r=n(1);t.ConverterOptions=r.ConverterOptions,t.BaseConverterOptions=r.BaseConverterOptions;var i=n(5);t.ShowdownConverter=i.ShowdownConverter;var s=n(4);t.ShowdownDirective=s.ShowdownDirective;var c=n(6);t.SrcDirective=c.SrcDirective;var a=n(7);t.ShowdownPipe=a.ShowdownPipe;var u=n(11);t.ShowdownModule=u.ShowdownModule},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(4),s=n(6),c=n(7),a=n(5),u=n(1),f=[i.ShowdownDirective,c.ShowdownPipe,s.SrcDirective],p=function(){function e(){}return t=e,e.forRoot=function(e){return{ngModule:t,providers:[{provide:u.ConverterOptions,useValue:e}]}},e=t=o([r.NgModule({declarations:f,providers:[a.ShowdownConverter,{provide:u.ConverterOptions,useClass:u.BaseConverterOptions}],exports:f})],e);var t}();t.ShowdownModule=p}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("showdown"),require("@angular/http")):"function"==typeof define&&define.amd?define(["@angular/core","showdown","@angular/http"],t):"object"==typeof exports?exports.showdown=t(require("@angular/core"),require("showdown"),require("@angular/http")):(e.ng=e.ng||{},e.ng.showdown=t(e.ng.core,e.showdown,e.ng.http))}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),c=n(3),a=function(){function e(e){this.merge(e)}return e.prototype.merge=function(e){var t=this;c.default.isObject(e)&&c.default.forIn(e,function(e,n){t[n]=e})},e}();t.ConverterOptions=a;var u=function(e){function t(){return e.call(this,{customizedHeaderId:!1,backslashEscapesHTMLTags:!1,disableForced4SpacesIndentedSublists:!1,encodeEmails:!0,excludeTrailingPunctuationFromURLs:!1,extensions:[],ghCodeBlocks:!0,ghCompatibleHeaderId:!1,ghMentions:!1,ghMentionsLink:"https://github.com/{u}",headerLevelStart:1,literalMidWordAsterisks:!1,literalMidWordUnderscores:!1,noHeaderId:!1,omitExtraWLInCodeBlocks:!1,openLinksInNewWindow:!1,parseImgDimensions:!1,prefixHeaderId:!1,rawHeaderId:!1,rawPrefixHeaderId:!1,requireSpaceBeforeHeadingText:!1,simpleLineBreaks:!1,simplifiedAutoLink:!1,smartIndentationFix:!1,smoothLivePreview:!1,strikethrough:!1,tables:!1,tablesHeaderId:!1,tasklists:!1,trimEachLine:!1})||this}return r(t,e),t=o([s.Injectable(),i("design:paramtypes",[])],t)}(a);t.BaseConverterOptions=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=n(3),s=function(e){function t(t){var n=e.call(this,t)||this,r=n.makeHtml;return n.makeHtml=function(e){return e=n._preMakeHtml(e),r.call(n,e)},n}return r(t,e),t.prototype.setOptions=function(e){var t=this;i.default.isObject(e)&&i.default.forIn(e,function(e,n){t.setOption(n,e)})},t.prototype._preMakeHtml=function(e){var t=this.getOptions().trimEachLine;return e=i.default.trimEachLine(e,t)},t}(o.Converter);t.BaseConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.isEmpty=function(e){return void 0===e||null===e||""===(""+e).trim()},e.isObject=function(e){return"object"==typeof e},e.isFunction=function(e){return"function"==typeof e},e.forIn=function(e,t){void 0===e&&(e={}),void 0===t&&(t=function(){}),Object.keys(e).forEach(function(n){t(e[n],n,e)})},e.trimEachLine=function(e,t){if(this.isEmpty(e))return e;switch(t){case"space":return e.replace(/^(?=\n)$|^[ ]+|[ ]+$/gm,"");case"tab":return e.replace(/^(?=\n)$|^\t+|\t+$/gm,"");case!0:return e.replace(/^(?=\n)$|^\s+|\s+$/gm,"");default:return e}},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c,a=n(0),u=n(3),f=n(1),p=n(2),l=["customizedHeaderId","backslashEscapesHTMLTags","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"];!function(e){e[e.NONE=0]="NONE",e[e.SRC=1]="SRC",e[e.BINDING=2]="BINDING",e[e.CONTENT=3]="CONTENT"}(c=t.SHOWDOWN_DIRECTIVE_TYPES||(t.SHOWDOWN_DIRECTIVE_TYPES={}));var d;!function(e){e[e.CREATED=0]="CREATED",e[e.INIT=1]="INIT",e[e.PROCESSING=2]="PROCESSING",e[e.READY=3]="READY"}(d=t.SHOWDOWN_DIRECTIVE_STATUSES||(t.SHOWDOWN_DIRECTIVE_STATUSES={}));var h=function(e){function t(t,r){var o=e.call(this,r)||this;return o._elementRef=t,o._type=n.TYPES.NONE,o._status=n.STATUSES.CREATED,o._onChange=function(){o.compile()},o.setOption=function(e,t){o.getOptions()[e]=t,o._onChange()},o}return r(t,e),n=t,Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return n.TYPES[this._type].toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return n.STATUSES[this._status].toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showdown",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.getOptions()},set:function(e){this.setOptions(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){if(this._type===n.TYPES.NONE&&!u.default.isEmpty(this._elementRef.nativeElement.innerText)){var e=this._elementRef.nativeElement.innerHTML;this.setValue(e,n.TYPES.CONTENT)}this._status===n.STATUSES.CREATED&&(this._status=n.STATUSES.INIT)},t.prototype.setValue=function(e,t){void 0===t&&(t=n.TYPES.BINDING),this._value=e,this._type=t,this._onChange()},t.prototype.setOptions=function(t){e.prototype.setOptions.call(this,t),this._onChange()},t.prototype.compile=function(){this._type!==n.TYPES.NONE&&(this._status=n.STATUSES.PROCESSING,this._elementRef.nativeElement.innerHTML=this.toHTML(),this._status=n.STATUSES.READY)},t.prototype.registerOnChange=function(e){if(!u.default.isFunction(e))throw new Error("Arg fn is missing or invalid.");this._onChange=e},t.prototype.toHTML=function(){var e=this._value;return this.makeHtml(e)},t.TYPES=c,t.STATUSES=d,o([a.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"value",null),o([a.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"showdown",null),o([a.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"options",null),t=n=o([a.Directive({selector:"showdown,[showdown]",inputs:[].concat(l)}),s(1,a.Optional()),i("design:paramtypes",[a.ElementRef,f.ConverterOptions])],t);var n}(p.BaseConverter);t.ShowdownDirective=h,l.forEach(function(e){Object.defineProperty(h.prototype,e,{set:function(t){this.setOption(e,!!u.default.isEmpty(t)||t)},get:function(){return this.getOption(e)},enumerable:!0,configurable:!0})})},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),a=n(1),u=n(2),f=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t=o([c.Injectable(),s(0,c.Optional()),i("design:paramtypes",[a.ConverterOptions])],t)}(u.BaseConverter);t.ShowdownConverter=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(10),c=n(4),a=function(){function e(e,t){this._showdownDirective=e,this._http=t}return Object.defineProperty(e.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,this.load()},enumerable:!0,configurable:!0}),e.prototype.load=function(){var e=this,t=this.src;this._http.get(t).subscribe(function(t){var n=t.text();e._showdownDirective.setValue(n,c.ShowdownDirective.TYPES.SRC)})},r([i.Input(),o("design:type",String),o("design:paramtypes",[String])],e.prototype,"src",null),e=r([i.Directive({selector:"showdown[src],[showdown][src]"}),o("design:paramtypes",[c.ShowdownDirective,s.Http])],e)}();t.SrcDirective=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),a=n(1),u=n(2),f=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.transform=function(e,t){return void 0===e&&(e=""),this.setOptions(t),this.makeHtml(e)},t=o([c.Pipe({name:"showdown",pure:!1}),s(0,c.Optional()),i("design:paramtypes",[a.ConverterOptions])],t)}(u.BaseConverter);t.ShowdownPipe=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.BaseConverter=r.BaseConverter;var o=n(1);t.ConverterOptions=o.ConverterOptions,t.BaseConverterOptions=o.BaseConverterOptions;var i=n(5);t.ShowdownConverter=i.ShowdownConverter;var s=n(4);t.ShowdownDirective=s.ShowdownDirective;var c=n(6);t.SrcDirective=c.SrcDirective;var a=n(7);t.ShowdownPipe=a.ShowdownPipe;var u=n(11);t.ShowdownModule=u.ShowdownModule},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),s=n(6),c=n(7),a=n(5),u=n(1),f=[i.ShowdownDirective,c.ShowdownPipe,s.SrcDirective],p=function(){function e(){}return t=e,e.forRoot=function(e){return{ngModule:t,providers:[{provide:u.ConverterOptions,useValue:e}]}},e=t=r([o.NgModule({declarations:f,providers:[a.ShowdownConverter,{provide:u.ConverterOptions,useClass:u.BaseConverterOptions}],exports:f})],e);var t}();t.ShowdownModule=p}])}); |
import { IConverterOptions } from './base-converter.class'; | ||
export declare class ConverterOptions { | ||
customizedHeaderId: boolean; | ||
backslashEscapesHTMLTags: boolean; | ||
disableForced4SpacesIndentedSublists: boolean; | ||
@@ -19,2 +20,4 @@ encodeEmails: boolean; | ||
prefixHeaderId: string | boolean; | ||
rawHeaderId: boolean; | ||
rawPrefixHeaderId: boolean; | ||
requireSpaceBeforeHeadingText: boolean; | ||
@@ -21,0 +24,0 @@ simpleLineBreaks: boolean; |
@@ -15,3 +15,3 @@ "use strict"; | ||
var utils_1 = require("./utils"); | ||
var ConverterOptions = (function () { | ||
var ConverterOptions = /** @class */ (function () { | ||
function ConverterOptions(options) { | ||
@@ -49,3 +49,3 @@ this.merge(options); | ||
*/ | ||
var BaseConverterOptions = (function (_super) { | ||
var BaseConverterOptions = /** @class */ (function (_super) { | ||
__extends(BaseConverterOptions, _super); | ||
@@ -55,2 +55,3 @@ function BaseConverterOptions() { | ||
customizedHeaderId: false, | ||
backslashEscapesHTMLTags: false, | ||
disableForced4SpacesIndentedSublists: false, | ||
@@ -72,2 +73,4 @@ encodeEmails: true, | ||
prefixHeaderId: false, | ||
rawHeaderId: false, | ||
rawPrefixHeaderId: false, | ||
requireSpaceBeforeHeadingText: false, | ||
@@ -74,0 +77,0 @@ simpleLineBreaks: false, |
@@ -6,2 +6,3 @@ /// <reference types="showdown" /> | ||
customizedHeaderId?: boolean; | ||
backslashEscapesHTMLTags?: boolean; | ||
disableForced4SpacesIndentedSublists?: boolean; | ||
@@ -22,2 +23,4 @@ encodeEmails?: boolean; | ||
prefixHeaderId?: string | boolean; | ||
rawHeaderId?: boolean; | ||
rawPrefixHeaderId?: boolean; | ||
requireSpaceBeforeHeadingText?: boolean; | ||
@@ -24,0 +27,0 @@ simpleLineBreaks?: boolean; |
@@ -15,3 +15,3 @@ "use strict"; | ||
var utils_1 = require("./utils"); | ||
var BaseConverter = (function (_super) { | ||
var BaseConverter = /** @class */ (function (_super) { | ||
__extends(BaseConverter, _super); | ||
@@ -18,0 +18,0 @@ function BaseConverter(options) { |
@@ -27,3 +27,3 @@ "use strict"; | ||
*/ | ||
var ShowdownConverter = (function (_super) { | ||
var ShowdownConverter = /** @class */ (function (_super) { | ||
__extends(ShowdownConverter, _super); | ||
@@ -30,0 +30,0 @@ function ShowdownConverter(options) { |
@@ -63,2 +63,3 @@ import { ElementRef, OnInit } from '@angular/core'; | ||
customizedHeaderId?: boolean; | ||
backslashEscapesHTMLTags?: boolean; | ||
disableForced4SpacesIndentedSublists?: boolean; | ||
@@ -79,2 +80,4 @@ encodeEmails?: boolean; | ||
prefixHeaderId?: string | boolean; | ||
rawHeaderId?: boolean; | ||
rawPrefixHeaderId?: boolean; | ||
requireSpaceBeforeHeadingText?: boolean; | ||
@@ -81,0 +84,0 @@ simpleLineBreaks?: boolean; |
@@ -18,3 +18,3 @@ "use strict"; | ||
var optionsProperties = [ | ||
'customizedHeaderId', 'disableForced4SpacesIndentedSublists', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine' | ||
'customizedHeaderId', 'backslashEscapesHTMLTags', 'disableForced4SpacesIndentedSublists', 'encodeEmails', 'excludeTrailingPunctuationFromURLs', 'ghCodeBlocks', 'ghCompatibleHeaderId', 'ghMentions', 'ghMentionsLink', 'headerLevelStart', 'literalMidWordAsterisks', 'literalMidWordUnderscores', 'noHeaderId', 'omitExtraWLInCodeBlocks', 'openLinksInNewWindow', 'parseImgDimensions', 'prefixHeaderId', 'rawHeaderId', 'rawPrefixHeaderId', 'requireSpaceBeforeHeadingText', 'simpleLineBreaks', 'simplifiedAutoLink', 'smartIndentationFix', 'smoothLivePreview', 'strikethrough', 'tables', 'tablesHeaderId', 'tasklists', 'trimEachLine' | ||
]; | ||
@@ -77,3 +77,3 @@ var SHOWDOWN_DIRECTIVE_TYPES; | ||
*/ | ||
var ShowdownDirective = (function (_super) { | ||
var ShowdownDirective = /** @class */ (function (_super) { | ||
__extends(ShowdownDirective, _super); | ||
@@ -80,0 +80,0 @@ function ShowdownDirective(_elementRef, options) { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}},{"__symbolic":"module","version":1,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","backslashEscapesHTMLTags","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}},{"__symbolic":"module","version":1,"metadata":{"SHOWDOWN_DIRECTIVE_TYPES":{"NONE":0,"SRC":1,"BINDING":2,"CONTENT":3},"SHOWDOWN_DIRECTIVE_STATUSES":{"CREATED":0,"INIT":1,"PROCESSING":2,"READY":3},"ShowdownDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./base-converter.class","name":"BaseConverter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"showdown,[showdown]","inputs":{"__symbolic":"call","arguments":[["customizedHeaderId","backslashEscapesHTMLTags","disableForced4SpacesIndentedSublists","encodeEmails","excludeTrailingPunctuationFromURLs","ghCodeBlocks","ghCompatibleHeaderId","ghMentions","ghMentionsLink","headerLevelStart","literalMidWordAsterisks","literalMidWordUnderscores","noHeaderId","omitExtraWLInCodeBlocks","openLinksInNewWindow","parseImgDimensions","prefixHeaderId","rawHeaderId","rawPrefixHeaderId","requireSpaceBeforeHeadingText","simpleLineBreaks","simplifiedAutoLink","smartIndentationFix","smoothLivePreview","strikethrough","tables","tablesHeaderId","tasklists","trimEachLine"]]}}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showdown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./base-converter-options.provider","name":"ConverterOptions"}]}],"ngOnInit":[{"__symbolic":"method"}],"setValue":[{"__symbolic":"method"}],"setOptions":[{"__symbolic":"method"}],"compile":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"toHTML":[{"__symbolic":"method"}]},"statics":{"TYPES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_TYPES"},"STATUSES":{"__symbolic":"reference","name":"SHOWDOWN_DIRECTIVE_STATUSES"}}}}}] |
@@ -33,3 +33,3 @@ "use strict"; | ||
*/ | ||
var ShowdownModule = (function () { | ||
var ShowdownModule = /** @class */ (function () { | ||
function ShowdownModule() { | ||
@@ -36,0 +36,0 @@ } |
@@ -40,3 +40,3 @@ "use strict"; | ||
*/ | ||
var ShowdownPipe = (function (_super) { | ||
var ShowdownPipe = /** @class */ (function (_super) { | ||
__extends(ShowdownPipe, _super); | ||
@@ -43,0 +43,0 @@ function ShowdownPipe(options) { |
@@ -26,3 +26,3 @@ "use strict"; | ||
*/ | ||
var SrcDirective = (function () { | ||
var SrcDirective = /** @class */ (function () { | ||
function SrcDirective(_showdownDirective, _http) { | ||
@@ -29,0 +29,0 @@ this._showdownDirective = _showdownDirective; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Utils = (function () { | ||
var Utils = /** @class */ (function () { | ||
function Utils() { | ||
@@ -5,0 +5,0 @@ } |
{ | ||
"name": "ngx-showdown", | ||
"description": "Angular X Showdown Module.", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"license": "MIT", | ||
@@ -77,33 +77,33 @@ "author": { | ||
"dependencies": { | ||
"@types/showdown": "^1.4.32" | ||
"@types/showdown": "^1.7.1" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "^4.3.2", | ||
"@angular/http": "^4.3.2", | ||
"showdown": "^1.7.1" | ||
"@angular/core": "^4.3.6", | ||
"@angular/http": "^4.3.6", | ||
"showdown": "^1.7.3" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "^4.3.2", | ||
"@angular/cdk": "^2.0.0-beta.8", | ||
"@angular/common": "^4.3.2", | ||
"@angular/compiler": "^4.3.2", | ||
"@angular/compiler-cli": "^4.3.2", | ||
"@angular/core": "^4.3.2", | ||
"@angular/forms": "^4.3.2", | ||
"@angular/http": "^4.3.2", | ||
"@angular/material": "^2.0.0-beta.8", | ||
"@angular/platform-browser": "^4.3.2", | ||
"@angular/platform-browser-dynamic": "^4.3.2", | ||
"@angular/router": "^4.3.2", | ||
"@types/core-js": "^0.9.42", | ||
"@types/jasmine": "^2.5.53", | ||
"@types/node": "^8.0.17", | ||
"@types/webpack": "^3.0.5", | ||
"@angular/animations": "^4.3.6", | ||
"@angular/cdk": "^2.0.0-beta.10", | ||
"@angular/common": "^4.3.6", | ||
"@angular/compiler": "^4.3.6", | ||
"@angular/compiler-cli": "^4.3.6", | ||
"@angular/core": "^4.3.6", | ||
"@angular/forms": "^4.3.6", | ||
"@angular/http": "^4.3.6", | ||
"@angular/material": "^2.0.0-beta.10", | ||
"@angular/platform-browser": "^4.3.6", | ||
"@angular/platform-browser-dynamic": "^4.3.6", | ||
"@angular/router": "^4.3.6", | ||
"@types/core-js": "^0.9.43", | ||
"@types/jasmine": "^2.5.54", | ||
"@types/node": "^8.0.26", | ||
"@types/webpack": "^3.0.10", | ||
"angular2-template-loader": "^0.6.2", | ||
"clean-webpack-plugin": "^0.1.16", | ||
"codecov": "^2.2.0", | ||
"codecov": "^2.3.0", | ||
"codelyzer": "^3.1.2", | ||
"commitizen": "^2.9.6", | ||
"core-js": "^2.4.1", | ||
"css-loader": "^0.28.4", | ||
"core-js": "^2.5.1", | ||
"css-loader": "^0.28.7", | ||
"cz-conventional-changelog": "^2.0.0", | ||
@@ -114,9 +114,9 @@ "extract-text-webpack-plugin": "^3.0.0", | ||
"hammerjs": "^2.0.8", | ||
"html-loader": "^0.5.0", | ||
"html-webpack-plugin": "^2.29.0", | ||
"html-loader": "^0.5.1", | ||
"html-webpack-plugin": "^2.30.1", | ||
"husky": "^0.14.3", | ||
"istanbul": "^0.4.5", | ||
"istanbul-instrumenter-loader": "^3.0.0", | ||
"jasmine-core": "^2.6.4", | ||
"karma": "^1.7.0", | ||
"jasmine-core": "^2.8.0", | ||
"karma": "^1.7.1", | ||
"karma-coverage": "^1.1.1", | ||
@@ -128,19 +128,19 @@ "karma-jasmine": "^1.1.0", | ||
"karma-webpack": "^2.0.4", | ||
"npm-run-all": "^4.0.2", | ||
"npm-run-all": "^4.1.1", | ||
"null-loader": "^0.1.1", | ||
"raw-loader": "^0.5.1", | ||
"rimraf": "^2.6.1", | ||
"rxjs": "^5.4.2", | ||
"semantic-release": "^6.3.6", | ||
"showdown": "^1.7.1", | ||
"rxjs": "^5.4.3", | ||
"semantic-release": "^7.0.2", | ||
"showdown": "^1.7.3", | ||
"style-loader": "^0.18.2", | ||
"ts-loader": "^2.3.2", | ||
"ts-loader": "^2.3.4", | ||
"ts-node": "^3.3.0", | ||
"tslint": "^5.5.0", | ||
"typescript": "^2.4.2", | ||
"validate-commit-msg": "^2.13.1", | ||
"webpack": "^3.4.1", | ||
"webpack-dev-server": "^2.6.1", | ||
"zone.js": "^0.8.16" | ||
"tslint": "^5.7.0", | ||
"typescript": "^2.5.2", | ||
"validate-commit-msg": "^2.14.0", | ||
"webpack": "^3.5.5", | ||
"webpack-dev-server": "^2.7.1", | ||
"zone.js": "^0.8.17" | ||
} | ||
} |
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
125969
1794
Updated@types/showdown@^1.7.1