Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudinary/angular-5.x

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudinary/angular-5.x - npm Package Compare versions

Comparing version 1.3.4 to 1.4.0

13

bundles/cloudinary-angular-5.x.umd.js

@@ -312,2 +312,13 @@ (function (global, factory) {

/**
* @param {?} configuration
* @return {?}
*/
Cloudinary.prototype.updateConfig = /**
* @param {?} configuration
* @return {?}
*/
function (configuration) {
this._cloudinaryInstance.config(configuration);
};
/**
* @param {...?} parameters

@@ -617,3 +628,3 @@ * @return {?}

/** @type {?} */
var APP_VERSION = '1.3.4';
var APP_VERSION = '1.4.0';

@@ -620,0 +631,0 @@ /**

2

bundles/cloudinary-angular-5.x.umd.min.js

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@cloudinary/angular-5.x",["exports","@angular/core","@angular/common"],e):e(((t=t||self).cloudinary=t.cloudinary||{},t.cloudinary["angular-5"]=t.cloudinary["angular-5"]||{},t.cloudinary["angular-5"].x={}),t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict";

and limitations under the License.
***************************************************************************** */var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}var s=function(t){return t&&"string"==typeof t&&null!==t.trim().match(/^{[\s\S]*?}$/)},a=function(t){return t&&"string"==typeof t&&null!==t.trim().match(/^\[[\s\S]*?]$/)},c=function(t){return t&&("NamedNodeMap"===t.constructor.name||t instanceof NamedNodeMap)},l=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n].name,r=t[n].value;e[i]=r})),e},u=function(t){var e=t;return s(t)||a(t)?(a(t)&&(t=t.replace(/'/g,'"')),e=JSON.parse(t)):c(t)&&(e=l(t)),Array.isArray(e)?e=e.map((function(t){return u(t)})):"object"==typeof e&&Object.keys(e).forEach((function(t){var n=t.replace(/-/g,"_").toLocaleLowerCase().replace(/^cld(-|_)?/,""),i=u(e[t]);delete e[t],e[n]=i})),e},p=function(){function t(t,e){t.CloudinaryJQuery?this._cloudinaryInstance=new t.CloudinaryJQuery(e):this._cloudinaryInstance=new t.Cloudinary(e)}return Object.defineProperty(t.prototype,"cloudinaryInstance",{get:function(){return this._cloudinaryInstance},enumerable:!0,configurable:!0}),t.prototype.config=function(){return this._cloudinaryInstance.config()},t.prototype.url=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).url.apply(t,o(e))},t.prototype.imageTag=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).imageTag.apply(t,o(e))},t.prototype.videoTag=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).videoTag.apply(t,o(e))},t.prototype.responsive=function(t,e){this._cloudinaryInstance.cloudinary_update(t,e),this._cloudinaryInstance.responsive(e,!1)},t.prototype.toCloudinaryAttributes=function(t,e){var n=this,i=u(t);return e&&e.length>0&&(i.transformation=[],e.forEach((function(t){i.transformation.push(n.toCloudinaryAttributes(t.getAttributes()))}))),""!==i.responsive&&"true"!==i.responsive&&!0!==i.responsive||(i.responsive=!0),i},t}();var d=function(){return"undefined"!=typeof window},h=function(){function t(t){this.el=t}return t.prototype.getAttributes=function(){return this.el.nativeElement.attributes},t.decorators=[{type:e.Directive,args:[{selector:"cl-transformation"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}();var y=function(){function t(t,e,n){this.cloudinary=t,this.renderer=e,this.el=n,this.options={}}return t.prototype.setWidth=function(t){this.itemWidth=t},t.prototype.setHeight=function(t){this.itemHeight=t},t.prototype.setPublicId=function(t){this.publicId=t},t.prototype.ngAfterContentChecked=function(){var t=this.cloudinary.imageTag(this.publicId,this.options);this.setElementAttributes(this.el.nativeElement.children[0],t.attributes()),this.placeholderImg=this.getPlaceholderImage()},t.prototype.getPlaceholderImage=function(){return"predominant-color"===this.type&&this.itemHeight&&this.itemWidth?this.cloudinary.url(this.publicId,i({placeholder:"predominant-color-pixel"},this.options)):this.cloudinary.url(this.publicId,i({placeholder:this.type||!0},this.options))},t.prototype.setElementAttributes=function(t,e){var n=this;Object.keys(e).forEach((function(i){"src"!==i&&"style"!==i&&n.renderer.setAttribute(t,i,e[i])}))},t.decorators=[{type:e.Component,args:[{selector:"cl-placeholder",template:'<img [src]="this.placeholderImg">'}]}],t.ctorParameters=function(){return[{type:p},{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={type:[{type:e.Input,args:["type"]}],itemWidth:[{type:e.HostBinding,args:["style.width"]}],itemHeight:[{type:e.HostBinding,args:["style.height"]}],publicId:[{type:e.HostBinding,args:["attr.public-id"]}]},t}();var f={sdkSemver:"1.3.4",techVersion:e.VERSION.full,sdkCode:"K"},m=function(){function t(t,n,i){this.el=t,this.cloudinary=n,this.renderer=i,this.onLoad=new e.EventEmitter,this.onError=new e.EventEmitter,this.shouldShowPlaceHolder=!0,this.options={}}return t.prototype.ngOnInit=function(){var t=this;if(d()){this.observer=new MutationObserver((function(){t.loadImage()}));this.observer.observe(this.el.nativeElement,{attributes:!0,childList:!0})}},t.prototype.ngOnChanges=function(t){t.publicId&&!t.publicId.isFirstChange()&&this.loadImage()},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect&&this.observer.disconnect()},t.prototype.ngAfterViewInit=function(){this.loadImage()},t.prototype.ngAfterContentChecked=function(){this.width&&this.placeholderComponent&&this.placeholderComponent.setWidth(this.width),this.height&&this.placeholderComponent&&this.placeholderComponent.setHeight(this.height),this.placeholderComponent&&this.placeholderComponent.setPublicId(this.publicId)},t.prototype.setPlaceHolderStyle=function(){this.shouldShowPlaceHolder?(this.renderer.setStyle(this.el.nativeElement.children[0],"opacity","0"),this.renderer.setStyle(this.el.nativeElement.children[0],"position","absolute")):this.renderer.removeAttribute(this.el.nativeElement.children[0],"style")},t.prototype.hasLoaded=function(){this.shouldShowPlaceHolder=!1},t.prototype.loadImage=function(){var t=this;if(d()){if(!this.publicId)throw new Error("You must set the public id of the image to load, e.g. <cl-image public-id={{photo.public_id}}...></cl-image>");var e=this.el.nativeElement,n=e.children[0];n.onload=function(e){t.onLoad.emit(e)},n.onerror=function(e){t.onError.emit(e)},this.options=this.cloudinary.toCloudinaryAttributes(e.attributes,this.transformations),(this.clientHints||void 0===this.clientHints&&this.cloudinary.config().client_hints)&&(delete this.options.class,delete this.options["data-src"],delete this.options.responsive),this.cloudinary.config().urlAnalytics&&(this.options=i({},f,this.options)),this.placeholderComponent&&this.placeholderHandler(this.options,n),this.accessibility&&(this.options.src=this.accessibilityModeHandler());var r=this.cloudinary.imageTag(this.publicId,this.options);this.setElementAttributes(n,r.attributes()),this.options.responsive&&this.cloudinary.responsive(n,this.options)}},t.prototype.setElementAttributes=function(t,e){var n=this;Object.keys(e).forEach((function(i){var r="src"===i&&"lazy"===n.loading?"data-src":i;n.renderer.setAttribute(t,r,e[i])})),this.placeholderComponent&&this.setPlaceHolderStyle()},t.prototype.placeholderHandler=function(t,e){var n=i({},t);n.width&&"auto"===n.width&&(n.width=e.getAttribute("data-width")),this.placeholderComponent.options=n},t.prototype.accessibilityModeHandler=function(){return this.cloudinary.url(this.publicId,i({accessibility:this.accessibility},this.options))},t.decorators=[{type:e.Component,args:[{selector:"cl-image",template:'<img (load)="hasLoaded()">\n <div *ngIf="placeholderComponent && shouldShowPlaceHolder" [style.display]="shouldShowPlaceHolder ? \'inline\' : \'none\'">\n <ng-content></ng-content>\n </div>\n '}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p},{type:e.Renderer2}]},t.propDecorators={publicId:[{type:e.Input,args:["public-id"]}],clientHints:[{type:e.Input,args:["client-hints"]}],loading:[{type:e.Input,args:["loading"]}],width:[{type:e.Input,args:["width"]}],height:[{type:e.Input,args:["height"]}],accessibility:[{type:e.Input,args:["accessibility"]}],transformations:[{type:e.ContentChildren,args:[h]}],placeholderComponent:[{type:e.ContentChild,args:[y]}],onLoad:[{type:e.Output}],onError:[{type:e.Output}]},t}();var g=function(){function t(t,n,i){this.el=t,this.cloudinary=n,this.platformId=i,this.play=new e.EventEmitter,this.loadstart=new e.EventEmitter,this.playing=new e.EventEmitter,this.error=new e.EventEmitter,this.ended=new e.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;if("undefined"!=typeof MutationObserver){this.observer=new MutationObserver((function(){t.loadVideo(t.publicId)}));this.observer.observe(this.el.nativeElement,{attributes:!0,childList:!0})}},t.prototype.ngOnChanges=function(t){t.publicId&&!t.publicId.isFirstChange()&&this.loadVideo(t.publicId.currentValue)},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect&&this.observer.disconnect()},t.prototype.ngAfterViewInit=function(){if(!this.publicId)throw new Error("You must set the public id of the video to load, e.g. <cl-video public-id={{video.public_id}}...></cl-video>");this.loadVideo(this.publicId)},t.prototype.loadVideo=function(t){if(n.isPlatformBrowser(this.platformId)){var e=this.el.nativeElement,i=e.children[0],r=this.cloudinary.toCloudinaryAttributes(e.attributes,this.transformations),o=this.cloudinary.videoTag(t,r);this.appendSourceElements(i,o.content()),this.setElementAttributes(i,o.attributes())}},t.prototype.setElementAttributes=function(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))},t.prototype.appendSourceElements=function(t,e){var n=document.createDocumentFragment();for(t.innerHTML=e;t.childNodes[0];)n.appendChild(t.childNodes[0]);t.appendChild(n)},t.prototype.emitPlayEvent=function(){this.play.emit()},t.prototype.emitLoadstartEvent=function(){this.loadstart.emit()},t.prototype.emitPlayingEvent=function(){this.playing.emit()},t.prototype.emitErrorEvent=function(){this.error.emit()},t.prototype.emitEndedEvent=function(){this.ended.emit()},t.decorators=[{type:e.Component,args:[{selector:"cl-video",template:'<video (play)="emitPlayEvent()" (loadstart)="emitLoadstartEvent()" (playing)="emitPlayingEvent()" (error)="emitErrorEvent" (ended)="emitEndedEvent"></video>'}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.propDecorators={publicId:[{type:e.Input,args:["public-id"]}],play:[{type:e.Output}],loadstart:[{type:e.Output}],playing:[{type:e.Output}],error:[{type:e.Output}],ended:[{type:e.Output}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var v=function(){function t(t,e){this.el=t,this.cloudinary=e}return t.prototype.ngAfterViewInit=function(){if(d()){var t=void 0,e=void 0;this.clHref?(t="href",e=this.clHref):this.clSrc?(t="src",e=this.clSrc):this.clSrcset&&(t="srcset",e=this.clSrcset);var n=!1;if(this.clHref&&toString.call("[object SVGAnimatedString]"===this.el.nativeElement.href)&&(this.el.nativeElement.setAttribute("xlinkHref","xlink:href"),n=!0),!t||!e)throw new Error("Directive value is missing for clHref/clSrc/clSrcset");var i=this.el.nativeElement,r=this.cloudinary.toCloudinaryAttributes(i.attributes,this.transformations),o=this.cloudinary.url(e,r);this.el.nativeElement.setAttribute(t,o),this.el.nativeElement.ownerDocument.documentMode&&!n&&(this.el.nativeElement[t]=o)}},t.decorators=[{type:e.Directive,args:[{selector:"[clHref], [clSrc], [clSrcset]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p}]},t.propDecorators={clHref:[{type:e.Input}],clSrc:[{type:e.Input}],clSrcset:[{type:e.Input}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var b=function(){function t(t,e,n){this.renderer=t,this.el=e,this.cloudinary=n}return t.prototype.isBrowser=function(){return"undefined"!=typeof window},t.prototype.ngAfterViewInit=function(){if(this.isBrowser()){var t=this.el.nativeElement,e=this.cloudinary.toCloudinaryAttributes(t.attributes,this.transformations),n=this.cloudinary.url(this.clBackgroundImage,e);this.renderer.setStyle(t,"background-image","url('"+n+"')"),this.renderer.setStyle(t,"background-repeat","no-repeat"),this.renderer.setStyle(t,"background-position","center")}},t.decorators=[{type:e.Directive,args:[{selector:"[clBackgroundImage]"}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:p}]},t.propDecorators={clBackgroundImage:[{type:e.Input}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var I=function(){function t(t){this.el=t}return t.prototype.ngAfterViewInit=function(){!this.isNativeLazyLoadSupported()&&this.isLazyLoadSupported()?this.lazyLoad():this.loadImage()},t.prototype.loadImage=function(){var t=this.el.nativeElement.children[0];t.setAttribute("src",t.dataset.src)},t.prototype.isLazyLoadSupported=function(){return window&&"IntersectionObserver"in window},t.prototype.isNativeLazyLoadSupported=function(){return"loading"in HTMLImageElement.prototype},t.prototype.lazyLoad=function(){var t=this,e={rootMargin:"0px 0px -50% 0px"},n=new IntersectionObserver((function(i){i.forEach((function(e){e.isIntersecting&&(t.loadImage(),n.unobserve(e.target))}),e)}));n.observe(this.el.nativeElement)},t.decorators=[{type:e.Directive,args:[{selector:"cl-image[loading=lazy]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}();var E=new e.InjectionToken("CLOUDINARY_LIB"),C=new e.InjectionToken("CLOUDINARY_CONFIGURATION");function w(t,e){return new p(t,e)}var O=function(){function t(){}return t.forRoot=function(e,n){return{ngModule:t,providers:[{provide:E,useValue:e},{provide:C,useValue:n},{provide:p,useFactory:w,deps:[E,C]}]}},t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[v,b,m,g,h,I,y],exports:[v,b,m,g,h,I,y]}]}],t}();t.CLOUDINARY_CONFIGURATION=C,t.CLOUDINARY_LIB=E,t.Cloudinary=p,t.CloudinaryBackgroundImageDirective=b,t.CloudinaryImage=m,t.CloudinaryImageSourceDirective=v,t.CloudinaryModule=O,t.CloudinaryPlaceHolder=y,t.CloudinaryTransformationDirective=h,t.CloudinaryVideo=g,t.LazyLoadDirective=I,t.createCloudinary=w,t.isBrowser=d,t.isJsonLikeString=s,t.isNamedNodeMap=c,t.namedNodeMapToObject=l,t.provideCloudinary=function(t,e){return{provide:p,useFactory:function(){return new p(t,e)}}},t.transformKeyNames=u,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}var s=function(t){return t&&"string"==typeof t&&null!==t.trim().match(/^{[\s\S]*?}$/)},a=function(t){return t&&"string"==typeof t&&null!==t.trim().match(/^\[[\s\S]*?]$/)},c=function(t){return t&&("NamedNodeMap"===t.constructor.name||t instanceof NamedNodeMap)},l=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n].name,r=t[n].value;e[i]=r})),e},u=function(t){var e=t;return s(t)||a(t)?(a(t)&&(t=t.replace(/'/g,'"')),e=JSON.parse(t)):c(t)&&(e=l(t)),Array.isArray(e)?e=e.map((function(t){return u(t)})):"object"==typeof e&&Object.keys(e).forEach((function(t){var n=t.replace(/-/g,"_").toLocaleLowerCase().replace(/^cld(-|_)?/,""),i=u(e[t]);delete e[t],e[n]=i})),e},p=function(){function t(t,e){t.CloudinaryJQuery?this._cloudinaryInstance=new t.CloudinaryJQuery(e):this._cloudinaryInstance=new t.Cloudinary(e)}return Object.defineProperty(t.prototype,"cloudinaryInstance",{get:function(){return this._cloudinaryInstance},enumerable:!0,configurable:!0}),t.prototype.config=function(){return this._cloudinaryInstance.config()},t.prototype.updateConfig=function(t){this._cloudinaryInstance.config(t)},t.prototype.url=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).url.apply(t,o(e))},t.prototype.imageTag=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).imageTag.apply(t,o(e))},t.prototype.videoTag=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._cloudinaryInstance).videoTag.apply(t,o(e))},t.prototype.responsive=function(t,e){this._cloudinaryInstance.cloudinary_update(t,e),this._cloudinaryInstance.responsive(e,!1)},t.prototype.toCloudinaryAttributes=function(t,e){var n=this,i=u(t);return e&&e.length>0&&(i.transformation=[],e.forEach((function(t){i.transformation.push(n.toCloudinaryAttributes(t.getAttributes()))}))),""!==i.responsive&&"true"!==i.responsive&&!0!==i.responsive||(i.responsive=!0),i},t}();var d=function(){return"undefined"!=typeof window},h=function(){function t(t){this.el=t}return t.prototype.getAttributes=function(){return this.el.nativeElement.attributes},t.decorators=[{type:e.Directive,args:[{selector:"cl-transformation"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}();var y=function(){function t(t,e,n){this.cloudinary=t,this.renderer=e,this.el=n,this.options={}}return t.prototype.setWidth=function(t){this.itemWidth=t},t.prototype.setHeight=function(t){this.itemHeight=t},t.prototype.setPublicId=function(t){this.publicId=t},t.prototype.ngAfterContentChecked=function(){var t=this.cloudinary.imageTag(this.publicId,this.options);this.setElementAttributes(this.el.nativeElement.children[0],t.attributes()),this.placeholderImg=this.getPlaceholderImage()},t.prototype.getPlaceholderImage=function(){return"predominant-color"===this.type&&this.itemHeight&&this.itemWidth?this.cloudinary.url(this.publicId,i({placeholder:"predominant-color-pixel"},this.options)):this.cloudinary.url(this.publicId,i({placeholder:this.type||!0},this.options))},t.prototype.setElementAttributes=function(t,e){var n=this;Object.keys(e).forEach((function(i){"src"!==i&&"style"!==i&&n.renderer.setAttribute(t,i,e[i])}))},t.decorators=[{type:e.Component,args:[{selector:"cl-placeholder",template:'<img [src]="this.placeholderImg">'}]}],t.ctorParameters=function(){return[{type:p},{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={type:[{type:e.Input,args:["type"]}],itemWidth:[{type:e.HostBinding,args:["style.width"]}],itemHeight:[{type:e.HostBinding,args:["style.height"]}],publicId:[{type:e.HostBinding,args:["attr.public-id"]}]},t}();var f={sdkSemver:"1.4.0",techVersion:e.VERSION.full,sdkCode:"K"},m=function(){function t(t,n,i){this.el=t,this.cloudinary=n,this.renderer=i,this.onLoad=new e.EventEmitter,this.onError=new e.EventEmitter,this.shouldShowPlaceHolder=!0,this.options={}}return t.prototype.ngOnInit=function(){var t=this;if(d()){this.observer=new MutationObserver((function(){t.loadImage()}));this.observer.observe(this.el.nativeElement,{attributes:!0,childList:!0})}},t.prototype.ngOnChanges=function(t){t.publicId&&!t.publicId.isFirstChange()&&this.loadImage()},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect&&this.observer.disconnect()},t.prototype.ngAfterViewInit=function(){this.loadImage()},t.prototype.ngAfterContentChecked=function(){this.width&&this.placeholderComponent&&this.placeholderComponent.setWidth(this.width),this.height&&this.placeholderComponent&&this.placeholderComponent.setHeight(this.height),this.placeholderComponent&&this.placeholderComponent.setPublicId(this.publicId)},t.prototype.setPlaceHolderStyle=function(){this.shouldShowPlaceHolder?(this.renderer.setStyle(this.el.nativeElement.children[0],"opacity","0"),this.renderer.setStyle(this.el.nativeElement.children[0],"position","absolute")):this.renderer.removeAttribute(this.el.nativeElement.children[0],"style")},t.prototype.hasLoaded=function(){this.shouldShowPlaceHolder=!1},t.prototype.loadImage=function(){var t=this;if(d()){if(!this.publicId)throw new Error("You must set the public id of the image to load, e.g. <cl-image public-id={{photo.public_id}}...></cl-image>");var e=this.el.nativeElement,n=e.children[0];n.onload=function(e){t.onLoad.emit(e)},n.onerror=function(e){t.onError.emit(e)},this.options=this.cloudinary.toCloudinaryAttributes(e.attributes,this.transformations),(this.clientHints||void 0===this.clientHints&&this.cloudinary.config().client_hints)&&(delete this.options.class,delete this.options["data-src"],delete this.options.responsive),this.cloudinary.config().urlAnalytics&&(this.options=i({},f,this.options)),this.placeholderComponent&&this.placeholderHandler(this.options,n),this.accessibility&&(this.options.src=this.accessibilityModeHandler());var r=this.cloudinary.imageTag(this.publicId,this.options);this.setElementAttributes(n,r.attributes()),this.options.responsive&&this.cloudinary.responsive(n,this.options)}},t.prototype.setElementAttributes=function(t,e){var n=this;Object.keys(e).forEach((function(i){var r="src"===i&&"lazy"===n.loading?"data-src":i;n.renderer.setAttribute(t,r,e[i])})),this.placeholderComponent&&this.setPlaceHolderStyle()},t.prototype.placeholderHandler=function(t,e){var n=i({},t);n.width&&"auto"===n.width&&(n.width=e.getAttribute("data-width")),this.placeholderComponent.options=n},t.prototype.accessibilityModeHandler=function(){return this.cloudinary.url(this.publicId,i({accessibility:this.accessibility},this.options))},t.decorators=[{type:e.Component,args:[{selector:"cl-image",template:'<img (load)="hasLoaded()">\n <div *ngIf="placeholderComponent && shouldShowPlaceHolder" [style.display]="shouldShowPlaceHolder ? \'inline\' : \'none\'">\n <ng-content></ng-content>\n </div>\n '}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p},{type:e.Renderer2}]},t.propDecorators={publicId:[{type:e.Input,args:["public-id"]}],clientHints:[{type:e.Input,args:["client-hints"]}],loading:[{type:e.Input,args:["loading"]}],width:[{type:e.Input,args:["width"]}],height:[{type:e.Input,args:["height"]}],accessibility:[{type:e.Input,args:["accessibility"]}],transformations:[{type:e.ContentChildren,args:[h]}],placeholderComponent:[{type:e.ContentChild,args:[y]}],onLoad:[{type:e.Output}],onError:[{type:e.Output}]},t}();var g=function(){function t(t,n,i){this.el=t,this.cloudinary=n,this.platformId=i,this.play=new e.EventEmitter,this.loadstart=new e.EventEmitter,this.playing=new e.EventEmitter,this.error=new e.EventEmitter,this.ended=new e.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;if("undefined"!=typeof MutationObserver){this.observer=new MutationObserver((function(){t.loadVideo(t.publicId)}));this.observer.observe(this.el.nativeElement,{attributes:!0,childList:!0})}},t.prototype.ngOnChanges=function(t){t.publicId&&!t.publicId.isFirstChange()&&this.loadVideo(t.publicId.currentValue)},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect&&this.observer.disconnect()},t.prototype.ngAfterViewInit=function(){if(!this.publicId)throw new Error("You must set the public id of the video to load, e.g. <cl-video public-id={{video.public_id}}...></cl-video>");this.loadVideo(this.publicId)},t.prototype.loadVideo=function(t){if(n.isPlatformBrowser(this.platformId)){var e=this.el.nativeElement,i=e.children[0],r=this.cloudinary.toCloudinaryAttributes(e.attributes,this.transformations),o=this.cloudinary.videoTag(t,r);this.appendSourceElements(i,o.content()),this.setElementAttributes(i,o.attributes())}},t.prototype.setElementAttributes=function(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))},t.prototype.appendSourceElements=function(t,e){var n=document.createDocumentFragment();for(t.innerHTML=e;t.childNodes[0];)n.appendChild(t.childNodes[0]);t.appendChild(n)},t.prototype.emitPlayEvent=function(){this.play.emit()},t.prototype.emitLoadstartEvent=function(){this.loadstart.emit()},t.prototype.emitPlayingEvent=function(){this.playing.emit()},t.prototype.emitErrorEvent=function(){this.error.emit()},t.prototype.emitEndedEvent=function(){this.ended.emit()},t.decorators=[{type:e.Component,args:[{selector:"cl-video",template:'<video (play)="emitPlayEvent()" (loadstart)="emitLoadstartEvent()" (playing)="emitPlayingEvent()" (error)="emitErrorEvent" (ended)="emitEndedEvent"></video>'}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.propDecorators={publicId:[{type:e.Input,args:["public-id"]}],play:[{type:e.Output}],loadstart:[{type:e.Output}],playing:[{type:e.Output}],error:[{type:e.Output}],ended:[{type:e.Output}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var v=function(){function t(t,e){this.el=t,this.cloudinary=e}return t.prototype.ngAfterViewInit=function(){if(d()){var t=void 0,e=void 0;this.clHref?(t="href",e=this.clHref):this.clSrc?(t="src",e=this.clSrc):this.clSrcset&&(t="srcset",e=this.clSrcset);var n=!1;if(this.clHref&&toString.call("[object SVGAnimatedString]"===this.el.nativeElement.href)&&(this.el.nativeElement.setAttribute("xlinkHref","xlink:href"),n=!0),!t||!e)throw new Error("Directive value is missing for clHref/clSrc/clSrcset");var i=this.el.nativeElement,r=this.cloudinary.toCloudinaryAttributes(i.attributes,this.transformations),o=this.cloudinary.url(e,r);this.el.nativeElement.setAttribute(t,o),this.el.nativeElement.ownerDocument.documentMode&&!n&&(this.el.nativeElement[t]=o)}},t.decorators=[{type:e.Directive,args:[{selector:"[clHref], [clSrc], [clSrcset]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:p}]},t.propDecorators={clHref:[{type:e.Input}],clSrc:[{type:e.Input}],clSrcset:[{type:e.Input}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var b=function(){function t(t,e,n){this.renderer=t,this.el=e,this.cloudinary=n}return t.prototype.isBrowser=function(){return"undefined"!=typeof window},t.prototype.ngAfterViewInit=function(){if(this.isBrowser()){var t=this.el.nativeElement,e=this.cloudinary.toCloudinaryAttributes(t.attributes,this.transformations),n=this.cloudinary.url(this.clBackgroundImage,e);this.renderer.setStyle(t,"background-image","url('"+n+"')"),this.renderer.setStyle(t,"background-repeat","no-repeat"),this.renderer.setStyle(t,"background-position","center")}},t.decorators=[{type:e.Directive,args:[{selector:"[clBackgroundImage]"}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:p}]},t.propDecorators={clBackgroundImage:[{type:e.Input}],transformations:[{type:e.ContentChildren,args:[h]}]},t}();var I=function(){function t(t){this.el=t}return t.prototype.ngAfterViewInit=function(){!this.isNativeLazyLoadSupported()&&this.isLazyLoadSupported()?this.lazyLoad():this.loadImage()},t.prototype.loadImage=function(){var t=this.el.nativeElement.children[0];t.setAttribute("src",t.dataset.src)},t.prototype.isLazyLoadSupported=function(){return window&&"IntersectionObserver"in window},t.prototype.isNativeLazyLoadSupported=function(){return"loading"in HTMLImageElement.prototype},t.prototype.lazyLoad=function(){var t=this,e={rootMargin:"0px 0px -50% 0px"},n=new IntersectionObserver((function(i){i.forEach((function(e){e.isIntersecting&&(t.loadImage(),n.unobserve(e.target))}),e)}));n.observe(this.el.nativeElement)},t.decorators=[{type:e.Directive,args:[{selector:"cl-image[loading=lazy]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}();var E=new e.InjectionToken("CLOUDINARY_LIB"),C=new e.InjectionToken("CLOUDINARY_CONFIGURATION");function w(t,e){return new p(t,e)}var O=function(){function t(){}return t.forRoot=function(e,n){return{ngModule:t,providers:[{provide:E,useValue:e},{provide:C,useValue:n},{provide:p,useFactory:w,deps:[E,C]}]}},t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[v,b,m,g,h,I,y],exports:[v,b,m,g,h,I,y]}]}],t}();t.CLOUDINARY_CONFIGURATION=C,t.CLOUDINARY_LIB=E,t.Cloudinary=p,t.CloudinaryBackgroundImageDirective=b,t.CloudinaryImage=m,t.CloudinaryImageSourceDirective=v,t.CloudinaryModule=O,t.CloudinaryPlaceHolder=y,t.CloudinaryTransformationDirective=h,t.CloudinaryVideo=g,t.LazyLoadDirective=I,t.createCloudinary=w,t.isBrowser=d,t.isJsonLikeString=s,t.isNamedNodeMap=c,t.namedNodeMapToObject=l,t.provideCloudinary=function(t,e){return{provide:p,useFactory:function(){return new p(t,e)}}},t.transformKeyNames=u,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=cloudinary-angular-5.x.umd.min.js.map
1.4.0 / 2021-02-22
==================
* Add service api to update configuration during runtime (#302)
* Add support to angular 11 (#304)
1.3.4 / 2021-01-17

@@ -3,0 +8,0 @@ ==================

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"isJsonLikeString":{"__symbolic":"error","message":"Lambda not supported","line":12,"character":25,"module":"./lib/cloudinary.service"},"isNamedNodeMap":{"__symbolic":"error","message":"Lambda not supported","line":21,"character":23,"module":"./lib/cloudinary.service"},"namedNodeMapToObject":{"__symbolic":"error","message":"Lambda not supported","line":25,"character":29,"module":"./lib/cloudinary.service"},"transformKeyNames":{"__symbolic":"error","message":"Lambda not supported","line":35,"character":26,"module":"./lib/cloudinary.service"},"Cloudinary":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},null]}],"config":[{"__symbolic":"method"}],"url":[{"__symbolic":"method"}],"imageTag":[{"__symbolic":"method"}],"videoTag":[{"__symbolic":"method"}],"responsive":[{"__symbolic":"method"}],"toCloudinaryAttributes":[{"__symbolic":"method"}]}},"provideCloudinary":{"__symbolic":"function","parameters":["cloudinaryJsLib","configuration"],"value":{"__symbolic":"error","message":"Lambda not supported","line":137,"character":44,"module":"./lib/cloudinary.service"}},"isBrowser":{"__symbolic":"error","message":"Lambda not supported","line":140,"character":18,"module":"./lib/cloudinary.service"},"CLOUDINARY_LIB":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":34},"arguments":["CLOUDINARY_LIB"]},"CLOUDINARY_CONFIGURATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":44},"arguments":["CLOUDINARY_CONFIGURATION"]},"createCloudinary":{"__symbolic":"function","parameters":["cloudinaryJsLib","configuration"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Cloudinary"},"arguments":[{"__symbolic":"reference","name":"cloudinaryJsLib"},{"__symbolic":"reference","name":"configuration"}]}},"CloudinaryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":4}],"declarations":[{"__symbolic":"reference","name":"CloudinaryImageSourceDirective"},{"__symbolic":"reference","name":"CloudinaryBackgroundImageDirective"},{"__symbolic":"reference","name":"CloudinaryImage"},{"__symbolic":"reference","name":"CloudinaryVideo"},{"__symbolic":"reference","name":"CloudinaryTransformationDirective"},{"__symbolic":"reference","name":"LazyLoadDirective"},{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}],"exports":[{"__symbolic":"reference","name":"CloudinaryImageSourceDirective"},{"__symbolic":"reference","name":"CloudinaryBackgroundImageDirective"},{"__symbolic":"reference","name":"CloudinaryImage"},{"__symbolic":"reference","name":"CloudinaryVideo"},{"__symbolic":"reference","name":"CloudinaryTransformationDirective"},{"__symbolic":"reference","name":"LazyLoadDirective"},{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["cloudinaryJsLib","cloudinaryConfiguration"],"value":{"ngModule":{"__symbolic":"reference","name":"CloudinaryModule"},"providers":[{"provide":{"__symbolic":"reference","name":"CLOUDINARY_LIB"},"useValue":{"__symbolic":"reference","name":"cloudinaryJsLib"}},{"provide":{"__symbolic":"reference","name":"CLOUDINARY_CONFIGURATION"},"useValue":{"__symbolic":"reference","name":"cloudinaryConfiguration"}},{"provide":{"__symbolic":"reference","name":"Cloudinary"},"useFactory":{"__symbolic":"reference","name":"createCloudinary"},"deps":[{"__symbolic":"reference","name":"CLOUDINARY_LIB"},{"__symbolic":"reference","name":"CLOUDINARY_CONFIGURATION"}]}]}}}},"CloudinaryImage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"cl-image","template":"<img (load)=\"hasLoaded()\">\n <div *ngIf=\"placeholderComponent && shouldShowPlaceHolder\" [style.display]=\"shouldShowPlaceHolder ? 'inline' : 'none'\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3},"arguments":["public-id"]}]}],"clientHints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3},"arguments":["client-hints"]}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3},"arguments":["loading"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3},"arguments":["width"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3},"arguments":["height"]}]}],"accessibility":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3},"arguments":["accessibility"]}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"placeholderComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":43,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}]}]}],"onLoad":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"onError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":52,"character":26},{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":52,"character":88}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"setPlaceHolderStyle":[{"__symbolic":"method"}],"hasLoaded":[{"__symbolic":"method"}],"loadImage":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}],"placeholderHandler":[{"__symbolic":"method"}],"accessibilityModeHandler":[{"__symbolic":"method"}]}},"CloudinaryVideo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"cl-video","template":"<video (play)=\"emitPlayEvent()\" (loadstart)=\"emitLoadstartEvent()\" (playing)=\"emitPlayingEvent()\" (error)=\"emitErrorEvent\" (ended)=\"emitEndedEvent\"></video>"}]}],"members":{"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3},"arguments":["public-id"]}]}],"play":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":3}}]}],"loadstart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":3}}]}],"playing":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"ended":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":33,"character":3}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":35,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":40,"character":71},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":40,"character":78}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":40,"character":26},{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","name":"Object"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"loadVideo":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}],"appendSourceElements":[{"__symbolic":"method"}],"emitPlayEvent":[{"__symbolic":"method"}],"emitLoadstartEvent":[{"__symbolic":"method"}],"emitPlayingEvent":[{"__symbolic":"method"}],"emitErrorEvent":[{"__symbolic":"method"}],"emitEndedEvent":[{"__symbolic":"method"}]}},"CloudinaryTransformationDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"cl-transformation"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":7,"character":26}]}],"getAttributes":[{"__symbolic":"method"}]}},"CloudinaryImageSourceDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[clHref], [clSrc], [clSrcset]"}]}],"members":{"clHref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}],"clSrc":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5}}]}],"clSrcset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":5}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":14,"character":5},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":17,"character":28},{"__symbolic":"reference","name":"Cloudinary"}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"CloudinaryBackgroundImageDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[clBackgroundImage]"}]}],"members":{"clBackgroundImage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":5}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":11,"character":5},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":14,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":57},{"__symbolic":"reference","name":"Cloudinary"}]}],"isBrowser":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"LazyLoadDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"cl-image[loading=lazy]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"loadImage":[{"__symbolic":"method"}],"isLazyLoadSupported":[{"__symbolic":"method"}],"isNativeLazyLoadSupported":[{"__symbolic":"method"}],"lazyLoad":[{"__symbolic":"method"}]}},"CloudinaryPlaceHolder":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"cl-placeholder","template":"<img [src]=\"this.placeholderImg\">"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3},"arguments":["type"]}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":18,"character":3},"arguments":["style.width"]}]}],"itemHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":19,"character":3},"arguments":["style.height"]}]}],"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":20,"character":3},"arguments":["attr.public-id"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":25,"character":64},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":25,"character":87}]}],"setWidth":[{"__symbolic":"method"}],"setHeight":[{"__symbolic":"method"}],"setPublicId":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"getPlaceholderImage":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}]}}},"origins":{"isJsonLikeString":"./lib/cloudinary.service","isNamedNodeMap":"./lib/cloudinary.service","namedNodeMapToObject":"./lib/cloudinary.service","transformKeyNames":"./lib/cloudinary.service","Cloudinary":"./lib/cloudinary.service","provideCloudinary":"./lib/cloudinary.service","isBrowser":"./lib/cloudinary.service","CloudinaryConfiguration":"./lib/cloudinary.module","CLOUDINARY_LIB":"./lib/cloudinary.module","CLOUDINARY_CONFIGURATION":"./lib/cloudinary.module","createCloudinary":"./lib/cloudinary.module","CloudinaryModule":"./lib/cloudinary.module","CloudinaryImage":"./lib/cloudinary-image.component","CloudinaryVideo":"./lib/cloudinary-video.component","CloudinaryTransformationDirective":"./lib/cloudinary-transformation.directive","CloudinaryImageSourceDirective":"./lib/cloudinary-image-source.directive","CloudinaryBackgroundImageDirective":"./lib/cloudinary-background-image.directive","LazyLoadDirective":"./lib/cloudinary-lazy-load.directive","CloudinaryPlaceHolder":"./lib/cloudinary-placeholder.component"},"importAs":"@cloudinary/angular-5.x"}
{"__symbolic":"module","version":4,"metadata":{"isJsonLikeString":{"__symbolic":"error","message":"Lambda not supported","line":12,"character":25,"module":"./lib/cloudinary.service"},"isNamedNodeMap":{"__symbolic":"error","message":"Lambda not supported","line":21,"character":23,"module":"./lib/cloudinary.service"},"namedNodeMapToObject":{"__symbolic":"error","message":"Lambda not supported","line":25,"character":29,"module":"./lib/cloudinary.service"},"transformKeyNames":{"__symbolic":"error","message":"Lambda not supported","line":35,"character":26,"module":"./lib/cloudinary.service"},"Cloudinary":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},null]}],"config":[{"__symbolic":"method"}],"updateConfig":[{"__symbolic":"method"}],"url":[{"__symbolic":"method"}],"imageTag":[{"__symbolic":"method"}],"videoTag":[{"__symbolic":"method"}],"responsive":[{"__symbolic":"method"}],"toCloudinaryAttributes":[{"__symbolic":"method"}]}},"provideCloudinary":{"__symbolic":"function","parameters":["cloudinaryJsLib","configuration"],"value":{"__symbolic":"error","message":"Lambda not supported","line":141,"character":44,"module":"./lib/cloudinary.service"}},"isBrowser":{"__symbolic":"error","message":"Lambda not supported","line":144,"character":18,"module":"./lib/cloudinary.service"},"CLOUDINARY_LIB":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":34},"arguments":["CLOUDINARY_LIB"]},"CLOUDINARY_CONFIGURATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":44},"arguments":["CLOUDINARY_CONFIGURATION"]},"createCloudinary":{"__symbolic":"function","parameters":["cloudinaryJsLib","configuration"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Cloudinary"},"arguments":[{"__symbolic":"reference","name":"cloudinaryJsLib"},{"__symbolic":"reference","name":"configuration"}]}},"CloudinaryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":4}],"declarations":[{"__symbolic":"reference","name":"CloudinaryImageSourceDirective"},{"__symbolic":"reference","name":"CloudinaryBackgroundImageDirective"},{"__symbolic":"reference","name":"CloudinaryImage"},{"__symbolic":"reference","name":"CloudinaryVideo"},{"__symbolic":"reference","name":"CloudinaryTransformationDirective"},{"__symbolic":"reference","name":"LazyLoadDirective"},{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}],"exports":[{"__symbolic":"reference","name":"CloudinaryImageSourceDirective"},{"__symbolic":"reference","name":"CloudinaryBackgroundImageDirective"},{"__symbolic":"reference","name":"CloudinaryImage"},{"__symbolic":"reference","name":"CloudinaryVideo"},{"__symbolic":"reference","name":"CloudinaryTransformationDirective"},{"__symbolic":"reference","name":"LazyLoadDirective"},{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["cloudinaryJsLib","cloudinaryConfiguration"],"value":{"ngModule":{"__symbolic":"reference","name":"CloudinaryModule"},"providers":[{"provide":{"__symbolic":"reference","name":"CLOUDINARY_LIB"},"useValue":{"__symbolic":"reference","name":"cloudinaryJsLib"}},{"provide":{"__symbolic":"reference","name":"CLOUDINARY_CONFIGURATION"},"useValue":{"__symbolic":"reference","name":"cloudinaryConfiguration"}},{"provide":{"__symbolic":"reference","name":"Cloudinary"},"useFactory":{"__symbolic":"reference","name":"createCloudinary"},"deps":[{"__symbolic":"reference","name":"CLOUDINARY_LIB"},{"__symbolic":"reference","name":"CLOUDINARY_CONFIGURATION"}]}]}}}},"CloudinaryImage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"cl-image","template":"<img (load)=\"hasLoaded()\">\n <div *ngIf=\"placeholderComponent && shouldShowPlaceHolder\" [style.display]=\"shouldShowPlaceHolder ? 'inline' : 'none'\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3},"arguments":["public-id"]}]}],"clientHints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3},"arguments":["client-hints"]}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3},"arguments":["loading"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3},"arguments":["width"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3},"arguments":["height"]}]}],"accessibility":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3},"arguments":["accessibility"]}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"placeholderComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":43,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryPlaceHolder"}]}]}],"onLoad":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"onError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":52,"character":26},{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":52,"character":88}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"setPlaceHolderStyle":[{"__symbolic":"method"}],"hasLoaded":[{"__symbolic":"method"}],"loadImage":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}],"placeholderHandler":[{"__symbolic":"method"}],"accessibilityModeHandler":[{"__symbolic":"method"}]}},"CloudinaryVideo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"cl-video","template":"<video (play)=\"emitPlayEvent()\" (loadstart)=\"emitLoadstartEvent()\" (playing)=\"emitPlayingEvent()\" (error)=\"emitErrorEvent\" (ended)=\"emitEndedEvent\"></video>"}]}],"members":{"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3},"arguments":["public-id"]}]}],"play":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":3}}]}],"loadstart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":3}}]}],"playing":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"ended":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":33,"character":3}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":35,"character":3},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":40,"character":71},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":40,"character":78}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":40,"character":26},{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","name":"Object"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"loadVideo":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}],"appendSourceElements":[{"__symbolic":"method"}],"emitPlayEvent":[{"__symbolic":"method"}],"emitLoadstartEvent":[{"__symbolic":"method"}],"emitPlayingEvent":[{"__symbolic":"method"}],"emitErrorEvent":[{"__symbolic":"method"}],"emitEndedEvent":[{"__symbolic":"method"}]}},"CloudinaryTransformationDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"cl-transformation"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":7,"character":26}]}],"getAttributes":[{"__symbolic":"method"}]}},"CloudinaryImageSourceDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[clHref], [clSrc], [clSrcset]"}]}],"members":{"clHref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}],"clSrc":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5}}]}],"clSrcset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":5}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":14,"character":5},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":17,"character":28},{"__symbolic":"reference","name":"Cloudinary"}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"CloudinaryBackgroundImageDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[clBackgroundImage]"}]}],"members":{"clBackgroundImage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":5}}]}],"transformations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":11,"character":5},"arguments":[{"__symbolic":"reference","name":"CloudinaryTransformationDirective"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":14,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":57},{"__symbolic":"reference","name":"Cloudinary"}]}],"isBrowser":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"LazyLoadDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"cl-image[loading=lazy]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":8,"character":26}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"loadImage":[{"__symbolic":"method"}],"isLazyLoadSupported":[{"__symbolic":"method"}],"isNativeLazyLoadSupported":[{"__symbolic":"method"}],"lazyLoad":[{"__symbolic":"method"}]}},"CloudinaryPlaceHolder":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"cl-placeholder","template":"<img [src]=\"this.placeholderImg\">"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3},"arguments":["type"]}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":18,"character":3},"arguments":["style.width"]}]}],"itemHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":19,"character":3},"arguments":["style.height"]}]}],"publicId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":20,"character":3},"arguments":["attr.public-id"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Cloudinary"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":25,"character":64},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":25,"character":87}]}],"setWidth":[{"__symbolic":"method"}],"setHeight":[{"__symbolic":"method"}],"setPublicId":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"getPlaceholderImage":[{"__symbolic":"method"}],"setElementAttributes":[{"__symbolic":"method"}]}}},"origins":{"isJsonLikeString":"./lib/cloudinary.service","isNamedNodeMap":"./lib/cloudinary.service","namedNodeMapToObject":"./lib/cloudinary.service","transformKeyNames":"./lib/cloudinary.service","Cloudinary":"./lib/cloudinary.service","provideCloudinary":"./lib/cloudinary.service","isBrowser":"./lib/cloudinary.service","CloudinaryConfiguration":"./lib/cloudinary.module","CLOUDINARY_LIB":"./lib/cloudinary.module","CLOUDINARY_CONFIGURATION":"./lib/cloudinary.module","createCloudinary":"./lib/cloudinary.module","CloudinaryModule":"./lib/cloudinary.module","CloudinaryImage":"./lib/cloudinary-image.component","CloudinaryVideo":"./lib/cloudinary-video.component","CloudinaryTransformationDirective":"./lib/cloudinary-transformation.directive","CloudinaryImageSourceDirective":"./lib/cloudinary-image-source.directive","CloudinaryBackgroundImageDirective":"./lib/cloudinary-background-image.directive","LazyLoadDirective":"./lib/cloudinary-lazy-load.directive","CloudinaryPlaceHolder":"./lib/cloudinary-placeholder.component"},"importAs":"@cloudinary/angular-5.x"}

@@ -106,2 +106,9 @@ /**

/**
* @param {?} configuration
* @return {?}
*/
updateConfig(configuration) {
this._cloudinaryInstance.config(configuration);
}
/**
* @param {...?} parameters

@@ -187,2 +194,2 @@ * @return {?}

export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5 };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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let APP_VERSION = '1.3.4';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BjbG91ZGluYXJ5L2FuZ3VsYXItNS54LyIsInNvdXJjZXMiOlsibGliL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxNQUFNLEtBQUssV0FBVyxHQUFHLE9BQU8iLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgbGV0IEFQUF9WRVJTSU9OID0gJzEuMy40JztcbiJdfQ==
export let APP_VERSION = '1.4.0';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BjbG91ZGluYXJ5L2FuZ3VsYXItNS54LyIsInNvdXJjZXMiOlsibGliL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxNQUFNLEtBQUssV0FBVyxHQUFHLE9BQU8iLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgbGV0IEFQUF9WRVJTSU9OID0gJzEuNC4wJztcbiJdfQ==

@@ -110,2 +110,13 @@ /**

/**
* @param {?} configuration
* @return {?}
*/
Cloudinary.prototype.updateConfig = /**
* @param {?} configuration
* @return {?}
*/
function (configuration) {
this._cloudinaryInstance.config(configuration);
};
/**
* @param {...?} parameters

@@ -239,2 +250,2 @@ * @return {?}

export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5 };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWRpbmFyeS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNsb3VkaW5hcnkvYW5ndWxhci01LngvIiwic291cmNlcyI6WyJsaWIvY2xvdWRpbmFyeS5zZXJ2aWNlLnRzIl0s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lDb25maWd1cmF0aW9uKSB7XG4gIHJldHVybiB7IHByb3ZpZGU6IENsb3VkaW5hcnksIHVzZUZhY3Rvcnk6ICgpID0+IG5ldyBDbG91ZGluYXJ5KGNsb3VkaW5hcnlKc0xpYiwgY29uZmlndXJhdGlvbikgfTtcbn07XG5cbmNvbnN0IGlzQnJvd3NlciA9IGZ1bmN0aW9uICgpOiBib29sZWFuIHtcbiAgcmV0dXJuIHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnO1xufVxuXG4vLyBGb3IgdW5pdCB0ZXN0c1xuZXhwb3J0IHsgaXNKc29uTGlrZVN0cmluZywgaXNOYW1lZE5vZGVNYXAsIHRyYW5zZm9ybUtleU5hbWVzLCBuYW1lZE5vZGVNYXBUb09iamVjdCwgaXNCcm93c2VyIH07XG4iXX0=

@@ -6,3 +6,3 @@ /**

/** @type {?} */
export var APP_VERSION = '1.3.4';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BjbG91ZGluYXJ5L2FuZ3VsYXItNS54LyIsInNvdXJjZXMiOlsibGliL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxNQUFNLEtBQUssV0FBVyxHQUFHLE9BQU8iLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgbGV0IEFQUF9WRVJTSU9OID0gJzEuMy40JztcbiJdfQ==
export var APP_VERSION = '1.4.0';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BjbG91ZGluYXJ5L2FuZ3VsYXItNS54LyIsInNvdXJjZXMiOlsibGliL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxNQUFNLEtBQUssV0FBVyxHQUFHLE9BQU8iLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgbGV0IEFQUF9WRVJTSU9OID0gJzEuNC4wJztcbiJdfQ==

@@ -109,2 +109,9 @@ import { Directive, ElementRef, Component, Renderer2, Input, HostBinding, VERSION, EventEmitter, ContentChildren, ContentChild, Output, Inject, PLATFORM_ID, InjectionToken, NgModule } from '@angular/core';

/**
* @param {?} configuration
* @return {?}
*/
updateConfig(configuration) {
this._cloudinaryInstance.config(configuration);
}
/**
* @param {...?} parameters

@@ -346,3 +353,3 @@ * @return {?}

/** @type {?} */
let APP_VERSION = '1.3.4';
let APP_VERSION = '1.4.0';

@@ -349,0 +356,0 @@ /**

@@ -113,2 +113,13 @@ import { __spread, __assign } from 'tslib';

/**
* @param {?} configuration
* @return {?}
*/
Cloudinary.prototype.updateConfig = /**
* @param {?} configuration
* @return {?}
*/
function (configuration) {
this._cloudinaryInstance.config(configuration);
};
/**
* @param {...?} parameters

@@ -418,3 +429,3 @@ * @return {?}

/** @type {?} */
var APP_VERSION = '1.3.4';
var APP_VERSION = '1.4.0';

@@ -421,0 +432,0 @@ /**

@@ -21,2 +21,3 @@ import { QueryList } from '@angular/core';

config(): any;
updateConfig(configuration: CloudinaryConfiguration): void;
url(...parameters: any[]): string;

@@ -23,0 +24,0 @@ imageTag(...parameters: any[]): any;

{
"name": "@cloudinary/angular-5.x",
"version": "1.3.4",
"version": "1.4.0",
"peerDependencies": {
"@angular/common": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
"@angular/common": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},

@@ -8,0 +8,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ Cloudinary

Cloudinary's AngularJS (AKA Angular1) SDK can be found [here](https://github.com/cloudinary/cloudinary_angular/tree/angular-1.x)
We maintain difference branches for different versions. Cloudinary's latest Angular SDK can be found [here](https://github.com/cloudinary/cloudinary_angular/tree/angular-5.x)

@@ -18,12 +18,5 @@ [Cloudinary](https://cloudinary.com) is a cloud service that offers a solution to a web application's entire image management pipeline.

For Angular, Cloudinary provides an SDK for simplifying the integration even further.
The SDK serves as a layer on top of one of Cloudinary's Javascript libraries:
The SDK serves as a layer on top of one of [Cloudinary's Javascript library](https://github.com/cloudinary/cloudinary_js).
| Github Repository | Package name | Description |
|-------------------|--------------|-------------|
| [pkg-cloudinary-core](https://github.com/cloudinary/pkg-cloudinary-core) | cloudinary-core | Core Cloudinary Library. Use this if you do not intend to use jQuery |
| [pkg-cloudinary-jquery](https://github.com/cloudinary/pkg-cloudinary-jquery) | cloudinary-jquery | Core Library + jQuery plugin |
| [pkg-cloudinary-jquery-file-upload](https://github.com/cloudinary/pkg-cloudinary-jquery-file-upload) | cloudinary-jquery-file-upload | Core Library + jQuery plugin + Blueimp File Upload adapter |
<a href="https://cloudinary.com/signup" style="background-color:#ff7829; border:1px solid; color: white; border-color: black; padding: 8px; text-decoration: none; box-shadow: 1px 1px 3px #224488; width: 500px">Signup for free</a>
## Live examples ##################################################################

@@ -41,3 +34,3 @@ Start experimenting right away with one of these live examples:

* For Angular 4, use `4.x`
* For Angular 5-10, use `5.x`
* For Angular 5-11, use `5.x`

@@ -47,10 +40,5 @@ For example:

```shell
npm install @cloudinary/angular-5.x --save
npm install @cloudinary/angular-5.x cloudinary-core --save
```
## Setup ######################################################################
Follow the setup procedure described in the [Cloudinary jQuery plugin](https://github.com/cloudinary/cloudinary_js#setup) setup procedure.
Refer to the sample projects in this repository for usage examples.
## Usage ######################################################################

@@ -71,3 +59,3 @@

### Cloudinary module configuration ##################################
### Cloudinary module configuration and setup ##################################
This SDK is based on the Cloudinary JS module, however the two are decoupled, i.e. this module's `Cloudinary` is a configurable service

@@ -203,3 +191,3 @@ to which you provide your choice of our JS module.

* **pree2e** - Updates WebDriver binary
* **start-sample** - Starts the photo album sample, without automatically opening the browser and navingating to the started app
* **start-sample** - Starts the photo album sample, without automatically opening the browser and navigating to the started app
* **start-sample:jquery** - Same as *start-sample* for the jQuery sample

@@ -206,0 +194,0 @@ * **install-sample-from-source** - Compiles TypeScript, packs this module and installs it into samples/photo_album

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc