2016-04-28 20:50:03 -04: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-02 01:50:37 -04:00
|
|
|
export var VIEW_ENCAPSULATION_VALUES: typeof t.VIEW_ENCAPSULATION_VALUES =
|
|
|
|
r.VIEW_ENCAPSULATION_VALUES;
|
2016-04-28 20:50:03 -04:00
|
|
|
export type DebugDomRootRenderer = t.DebugDomRootRenderer;
|
|
|
|
export var DebugDomRootRenderer: typeof t.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
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 19:04:08 -04: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 18:00:05 -04:00
|
|
|
export var reflector: typeof t.reflector = r.reflector;
|
2016-05-25 15:46:22 -04: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 21:27:34 -04:00
|
|
|
export var prepareFinalAnimationStyles: typeof t.prepareFinalAnimationStyles =
|
|
|
|
r.prepareFinalAnimationStyles;
|
2016-06-08 19:38:52 -04:00
|
|
|
export var balanceAnimationKeyframes: typeof t.balanceAnimationKeyframes =
|
|
|
|
r.balanceAnimationKeyframes;
|
2016-05-31 12:15:17 -04: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;
|