| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {__core_private__ as r, __core_private_types__ as t} from '@angular/core'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type RenderDebugInfo = t.RenderDebugInfo; | 
					
						
							|  |  |  | export var RenderDebugInfo: typeof t.RenderDebugInfo = r.RenderDebugInfo; | 
					
						
							|  |  |  | export var wtfInit: typeof t.wtfInit = r.wtfInit; | 
					
						
							|  |  |  | export var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities; | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var VIEW_ENCAPSULATION_VALUES: typeof t.VIEW_ENCAPSULATION_VALUES = | 
					
						
							|  |  |  |     r.VIEW_ENCAPSULATION_VALUES; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export type DebugDomRootRenderer = t.DebugDomRootRenderer; | 
					
						
							|  |  |  | export var DebugDomRootRenderer: typeof t.DebugDomRootRenderer = r.DebugDomRootRenderer; | 
					
						
							| 
									
										
										
										
											2016-06-27 12:27:23 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @experimental bogus marker to pass the ts-api-guardian's check - this api should be public so | 
					
						
							|  |  |  |  * this line will go away when that happens | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
											  
											
												feat: security implementation in Angular 2.
Summary:
This adds basic security hooks to Angular 2.
* `SecurityContext` is a private API between core, compiler, and
  platform-browser. `SecurityContext` communicates what context a value is used
  in across template parser, compiler, and sanitization at runtime.
* `SanitizationService` is the bare bones interface to sanitize values for a
  particular context.
* `SchemaElementRegistry.securityContext(tagName, attributeOrPropertyName)`
  determines the security context for an attribute or property (it turns out
  attributes and properties match for the purposes of sanitization).
Based on these hooks:
* `DomSchemaElementRegistry` decides what sanitization applies in a particular
  context.
* `DomSanitizationService` implements `SanitizationService` and adds *Safe
  Value*s, i.e. the ability to mark a value as safe and not requiring further
  sanitization.
* `url_sanitizer` and `style_sanitizer` sanitize URLs and Styles, respectively
  (surprise!).
`DomSanitizationService` is the default implementation bound for browser
applications, in the three contexts (browser rendering, web worker rendering,
server side rendering).
BREAKING CHANGES:
*** SECURITY WARNING ***
Angular 2 Release Candidates do not implement proper contextual escaping yet.
Make sure to correctly escape all values that go into the DOM.
*** SECURITY WARNING ***
Reviewers: IgorMinar
Differential Revision: https://reviews.angular.io/D103
											
										 
											2016-04-29 16:04:08 -07:00
										 |  |  | export var SecurityContext: typeof t.SecurityContext = r.SecurityContext; | 
					
						
							|  |  |  | export type SecurityContext = t.SecurityContext; | 
					
						
							|  |  |  | export var SanitizationService: typeof t.SanitizationService = r.SanitizationService; | 
					
						
							|  |  |  | export type SanitizationService = t.SanitizationService; | 
					
						
							| 
									
										
										
										
											2016-05-25 15:00:05 -07:00
										 |  |  | export var reflector: typeof t.reflector = r.reflector; | 
					
						
							| 
									
										
										
										
											2016-05-25 12:46:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | export type NoOpAnimationPlayer = t.NoOpAnimationPlayer; | 
					
						
							|  |  |  | export var NoOpAnimationPlayer: typeof t.NoOpAnimationPlayer = r.NoOpAnimationPlayer; | 
					
						
							|  |  |  | export type AnimationPlayer = t.AnimationPlayer; | 
					
						
							|  |  |  | export var AnimationPlayer: typeof t.AnimationPlayer = r.AnimationPlayer; | 
					
						
							|  |  |  | export type NoOpAnimationDriver = t.NoOpAnimationDriver; | 
					
						
							|  |  |  | export var NoOpAnimationDriver: typeof t.NoOpAnimationDriver = r.NoOpAnimationDriver; | 
					
						
							|  |  |  | export type AnimationDriver = t.AnimationDriver; | 
					
						
							|  |  |  | export var AnimationDriver: typeof t.AnimationDriver = r.AnimationDriver; | 
					
						
							|  |  |  | export type AnimationSequencePlayer = t.AnimationSequencePlayer; | 
					
						
							|  |  |  | export var AnimationSequencePlayer: typeof t.AnimationSequencePlayer = r.AnimationSequencePlayer; | 
					
						
							|  |  |  | export type AnimationGroupPlayer = t.AnimationGroupPlayer; | 
					
						
							|  |  |  | export var AnimationGroupPlayer: typeof t.AnimationGroupPlayer = r.AnimationGroupPlayer; | 
					
						
							|  |  |  | export type AnimationKeyframe = t.AnimationKeyframe; | 
					
						
							|  |  |  | export var AnimationKeyframe: typeof t.AnimationKeyframe = r.AnimationKeyframe; | 
					
						
							|  |  |  | export type AnimationStyles = t.AnimationStyles; | 
					
						
							|  |  |  | export var AnimationStyles: typeof t.AnimationStyles = r.AnimationStyles; | 
					
						
							| 
									
										
										
										
											2016-06-03 18:27:34 -07:00
										 |  |  | export var prepareFinalAnimationStyles: typeof t.prepareFinalAnimationStyles = | 
					
						
							|  |  |  |     r.prepareFinalAnimationStyles; | 
					
						
							| 
									
										
										
										
											2016-06-08 16:38:52 -07:00
										 |  |  | export var balanceAnimationKeyframes: typeof t.balanceAnimationKeyframes = | 
					
						
							|  |  |  |     r.balanceAnimationKeyframes; | 
					
						
							| 
									
										
										
										
											2016-05-31 09:15:17 -07:00
										 |  |  | export var flattenStyles: typeof t.flattenStyles = r.flattenStyles; | 
					
						
							|  |  |  | export var clearStyles: typeof t.clearStyles = r.clearStyles; | 
					
						
							|  |  |  | export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles; |