@ng-web-apis/common
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -122,2 +122,11 @@ (function (global, factory) { | ||
/** @type {?} */ | ||
var SPEECH_SYNTHESIS = new core.InjectionToken('An abstraction over window.speechSynthesis object', { | ||
factory: function () { return core.inject(WINDOW).speechSynthesis; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var USER_AGENT = new core.InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
@@ -146,2 +155,3 @@ factory: function () { return core.inject(NAVIGATOR).userAgent; }, | ||
exports.SESSION_STORAGE = SESSION_STORAGE; | ||
exports.SPEECH_SYNTHESIS = SPEECH_SYNTHESIS; | ||
exports.USER_AGENT = USER_AGENT; | ||
@@ -148,0 +158,0 @@ exports.WINDOW = WINDOW; |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","@angular/common","rxjs","rxjs/operators","@angular/core"],e):e((n["ng-web-apis"]=n["ng-web-apis"]||{},n["ng-web-apis"].common={}),n.ng.common,n.rxjs,n.rxjs.operators,n.ng.core)}(this,function(n,e,o,t,r){"use strict";var i=new r.InjectionToken("An abstraction over global window object",{factory:function(){var n=r.inject(e.DOCUMENT).defaultView;if(!n)throw new Error("Window is not available");return n}}),c=new r.InjectionToken("An abstraction over window.performance object",{factory:function(){return r.inject(i).performance}}),a=new r.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var n=r.inject(c);return o.of(0,o.animationFrameScheduler).pipe(t.repeat(),t.map(function(){return n.now()}),t.share())}}),u=new r.InjectionToken("An abstraction over window.CSS object",{factory:function(){return r.inject(i).CSS||{escape:function(n){return n},supports:function(){return!1}}}}),s=new r.InjectionToken("An abstraction over window.localStorage object",{factory:function(){return r.inject(i).localStorage}}),f=new r.InjectionToken("An abstraction over window.location object",{factory:function(){return r.inject(i).location}}),w=new r.InjectionToken("An abstraction over window.navigator object",{factory:function(){return r.inject(i).navigator}}),j=new r.InjectionToken("An abstraction over window.navigator.connection object",{factory:function(){return r.inject(w).connection||null}}),b=new r.InjectionToken("Shared Observable based on `document visibility changed`",{factory:function(){var n=r.inject(e.DOCUMENT);return o.fromEvent(n,"visibilitychange").pipe(t.startWith(0),t.map(function(){return!n.hidden}),t.distinctUntilChanged(),t.share())}}),d=new r.InjectionToken("An abstraction over window.sessionStorage object",{factory:function(){return r.inject(i).sessionStorage}}),l=new r.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:function(){return r.inject(w).userAgent}});n.ANIMATION_FRAME=a,n.CSS=u,n.LOCAL_STORAGE=s,n.LOCATION=f,n.NAVIGATOR=w,n.NETWORK_INFORMATION=j,n.PAGE_VISIBILITY=b,n.PERFORMANCE=c,n.SESSION_STORAGE=d,n.USER_AGENT=l,n.WINDOW=i,Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","@angular/common","rxjs","rxjs/operators","@angular/core"],e):e((n["ng-web-apis"]=n["ng-web-apis"]||{},n["ng-web-apis"].common={}),n.ng.common,n.rxjs,n.rxjs.operators,n.ng.core)}(this,function(n,e,o,t,r){"use strict";var i=new r.InjectionToken("An abstraction over global window object",{factory:function(){var n=r.inject(e.DOCUMENT).defaultView;if(!n)throw new Error("Window is not available");return n}}),c=new r.InjectionToken("An abstraction over window.performance object",{factory:function(){return r.inject(i).performance}}),a=new r.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var n=r.inject(c);return o.of(0,o.animationFrameScheduler).pipe(t.repeat(),t.map(function(){return n.now()}),t.share())}}),s=new r.InjectionToken("An abstraction over window.CSS object",{factory:function(){return r.inject(i).CSS||{escape:function(n){return n},supports:function(){return!1}}}}),u=new r.InjectionToken("An abstraction over window.localStorage object",{factory:function(){return r.inject(i).localStorage}}),f=new r.InjectionToken("An abstraction over window.location object",{factory:function(){return r.inject(i).location}}),w=new r.InjectionToken("An abstraction over window.navigator object",{factory:function(){return r.inject(i).navigator}}),j=new r.InjectionToken("An abstraction over window.navigator.connection object",{factory:function(){return r.inject(w).connection||null}}),b=new r.InjectionToken("Shared Observable based on `document visibility changed`",{factory:function(){var n=r.inject(e.DOCUMENT);return o.fromEvent(n,"visibilitychange").pipe(t.startWith(0),t.map(function(){return!n.hidden}),t.distinctUntilChanged(),t.share())}}),d=new r.InjectionToken("An abstraction over window.sessionStorage object",{factory:function(){return r.inject(i).sessionStorage}}),p=new r.InjectionToken("An abstraction over window.speechSynthesis object",{factory:function(){return r.inject(i).speechSynthesis}}),l=new r.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:function(){return r.inject(w).userAgent}});n.ANIMATION_FRAME=a,n.CSS=s,n.LOCAL_STORAGE=u,n.LOCATION=f,n.NAVIGATOR=w,n.NETWORK_INFORMATION=j,n.PAGE_VISIBILITY=b,n.PERFORMANCE=c,n.SESSION_STORAGE=d,n.SPEECH_SYNTHESIS=p,n.USER_AGENT=l,n.WINDOW=i,Object.defineProperty(n,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-web-apis-common.umd.min.js.map |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsaUtBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUxBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 |
@@ -17,4 +17,5 @@ /** | ||
export { SESSION_STORAGE } from './tokens/session-storage'; | ||
export { SPEECH_SYNTHESIS } from './tokens/speech-synthesis'; | ||
export { USER_AGENT } from './tokens/user-agent'; | ||
export { WINDOW } from './tokens/window'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cm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YXRpb24nO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9wYWdlLXZpc2liaWxpdHknO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9wZXJmb3JtYW5jZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3Nlc3Npb24tc3RvcmFnZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3NwZWVjaC1zeW50aGVzaXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy91c2VyLWFnZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvd2luZG93JztcclxuIl19 |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsaUtBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsbUxBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 |
@@ -17,4 +17,5 @@ /** | ||
export { SESSION_STORAGE } from './tokens/session-storage'; | ||
export { SPEECH_SYNTHESIS } from './tokens/speech-synthesis'; | ||
export { USER_AGENT } from './tokens/user-agent'; | ||
export { WINDOW } from './tokens/window'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6QyxvQkFBYyxjQUFjLENBQUM7QUFDN0IsOEJBQWMsd0JBQXdCLENBQUM7QUFDdkMseUJBQWMsbUJBQW1CLENBQUM7QUFDbEMsMEJBQWMsb0JBQW9CLENBQUM7QUFDbkMsb0NBQWMsOEJBQThCLENBQUM7QUFDN0MsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsNEJBQWMsc0JBQXNCLENBQUM7QUFDckMsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsMkJBQWMscUJBQXFCLENBQUM7QUFDcEMsdUJBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ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b0NBQWMsOEJBQThCLENBQUM7QUFDN0MsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsNEJBQWMsc0JBQXNCLENBQUM7QUFDckMsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsaUNBQWMsMkJBQTJCLENBQUM7QUFDMUMsMkJBQWMscUJBQXFCLENBQUM7QUFDcEMsdUJBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBuZy13ZWItYXBpcy9jb21tb25cclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2FuaW1hdGlvbi1mcmFtZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2Nzcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2xvY2FsLXN0b3JhZ2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9sb2NhdGlvbic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL25hdmlnYXRvcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL25ldHdvcmstaW5mb3JtYXRpb24nO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9wYWdlLXZpc2liaWxpdHknO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9wZXJmb3JtYW5jZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3Nlc3Npb24tc3RvcmFnZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3NwZWVjaC1zeW50aGVzaXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy91c2VyLWFnZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvd2luZG93JztcclxuIl19 |
@@ -119,2 +119,11 @@ import { DOCUMENT } from '@angular/common'; | ||
/** @type {?} */ | ||
const SPEECH_SYNTHESIS = new InjectionToken('An abstraction over window.speechSynthesis object', { | ||
factory: () => inject(WINDOW).speechSynthesis, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
const USER_AGENT = new InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
@@ -134,4 +143,4 @@ factory: () => inject(NAVIGATOR).userAgent, | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, USER_AGENT, WINDOW }; | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_SYNTHESIS, USER_AGENT, WINDOW }; | ||
//# sourceMappingURL=ng-web-apis-common.js.map |
@@ -121,2 +121,11 @@ import { DOCUMENT } from '@angular/common'; | ||
/** @type {?} */ | ||
var SPEECH_SYNTHESIS = new InjectionToken('An abstraction over window.speechSynthesis object', { | ||
factory: function () { return inject(WINDOW).speechSynthesis; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var USER_AGENT = new InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
@@ -136,4 +145,4 @@ factory: function () { return inject(NAVIGATOR).userAgent; }, | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, USER_AGENT, WINDOW }; | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_SYNTHESIS, USER_AGENT, WINDOW }; | ||
//# sourceMappingURL=ng-web-apis-common.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ANIMATION_FRAME":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":9,"character":17,"module":"./tokens/animation-frame"}]},"CSS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":23},"arguments":["An abstraction over window.CSS object",{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13,"module":"./tokens/css"}]},"LOCAL_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["An abstraction over window.localStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/local-storage"}]},"LOCATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":28},"arguments":["An abstraction over window.location object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/location"}]},"NAVIGATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":29},"arguments":["An abstraction over window.navigator object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/navigator"}]},"NETWORK_INFORMATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":39},"arguments":["An abstraction over window.navigator.connection object",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/network-information"}]},"PAGE_VISIBILITY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["Shared Observable based on `document visibility changed`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/page-visibility"}]},"PERFORMANCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":31},"arguments":["An abstraction over window.performance object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/performance"}]},"SESSION_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["An abstraction over window.sessionStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/session-storage"}]},"USER_AGENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":30},"arguments":["An abstraction over window.navigator.userAgent object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/user-agent"}]},"WINDOW":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over global window object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/window"}]}},"origins":{"ANIMATION_FRAME":"./tokens/animation-frame","CSS":"./tokens/css","LOCAL_STORAGE":"./tokens/local-storage","LOCATION":"./tokens/location","NAVIGATOR":"./tokens/navigator","NETWORK_INFORMATION":"./tokens/network-information","PAGE_VISIBILITY":"./tokens/page-visibility","PERFORMANCE":"./tokens/performance","SESSION_STORAGE":"./tokens/session-storage","USER_AGENT":"./tokens/user-agent","WINDOW":"./tokens/window"},"importAs":"@ng-web-apis/common"} | ||
{"__symbolic":"module","version":4,"metadata":{"ANIMATION_FRAME":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":9,"character":17,"module":"./tokens/animation-frame"}]},"CSS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":23},"arguments":["An abstraction over window.CSS object",{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13,"module":"./tokens/css"}]},"LOCAL_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["An abstraction over window.localStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/local-storage"}]},"LOCATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":28},"arguments":["An abstraction over window.location object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/location"}]},"NAVIGATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":29},"arguments":["An abstraction over window.navigator object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/navigator"}]},"NETWORK_INFORMATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":39},"arguments":["An abstraction over window.navigator.connection object",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/network-information"}]},"PAGE_VISIBILITY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["Shared Observable based on `document visibility changed`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/page-visibility"}]},"PERFORMANCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":31},"arguments":["An abstraction over window.performance object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/performance"}]},"SESSION_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["An abstraction over window.sessionStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/session-storage"}]},"SPEECH_SYNTHESIS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":36},"arguments":["An abstraction over window.speechSynthesis object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/speech-synthesis"}]},"USER_AGENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":30},"arguments":["An abstraction over window.navigator.userAgent object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/user-agent"}]},"WINDOW":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over global window object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/window"}]}},"origins":{"ANIMATION_FRAME":"./tokens/animation-frame","CSS":"./tokens/css","LOCAL_STORAGE":"./tokens/local-storage","LOCATION":"./tokens/location","NAVIGATOR":"./tokens/navigator","NETWORK_INFORMATION":"./tokens/network-information","PAGE_VISIBILITY":"./tokens/page-visibility","PERFORMANCE":"./tokens/performance","SESSION_STORAGE":"./tokens/session-storage","SPEECH_SYNTHESIS":"./tokens/speech-synthesis","USER_AGENT":"./tokens/user-agent","WINDOW":"./tokens/window"},"importAs":"@ng-web-apis/common"} |
{ | ||
"name": "@ng-web-apis/common", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": ">=6.0.0", |
@@ -13,3 +13,4 @@ /** | ||
export * from './tokens/session-storage'; | ||
export * from './tokens/speech-synthesis'; | ||
export * from './tokens/user-agent'; | ||
export * from './tokens/window'; |
@@ -24,2 +24,3 @@ Common utils for Web APIs | ||
- `SESSION_STORAGE` — provides access to `window.sessionStorage` object | ||
- `SPEECH_SYNTHESIS` — provides access to `window.speechSynthesis` object | ||
- `PAGE_VISIBILITY` — wrapper for `document.addEventListener('visibilityChange')` api |
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
114883
55
854
26