/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ import { RenderOptions } from './render-options.js'; import { TemplateResult } from './template-result.js'; import { Template } from './template.js'; export { html, svg, TemplateResult } from '../lit-html.js'; /** * Template factory which scopes template DOM using ShadyCSS. * @param scopeName {string} */ export declare const shadyTemplateFactory: (scopeName: string) => (result: TemplateResult) => Template; export interface ShadyRenderOptions extends Partial { scopeName: string; } /** * Extension to the standard `render` method which supports rendering * to ShadowRoots when the ShadyDOM (https://github.com/webcomponents/shadydom) * and ShadyCSS (https://github.com/webcomponents/shadycss) polyfills are used * or when the webcomponentsjs * (https://github.com/webcomponents/webcomponentsjs) polyfill is used. * * Adds a `scopeName` option which is used to scope element DOM and stylesheets * when native ShadowDOM is unavailable. The `scopeName` will be added to * the class attribute of all rendered DOM. In addition, any style elements will * be automatically re-written with this `scopeName` selector and moved out * of the rendered DOM and into the document ``. * * It is common to use this render method in conjunction with a custom element * which renders a shadowRoot. When this is done, typically the element's * `localName` should be used as the `scopeName`. * * In addition to DOM scoping, ShadyCSS also supports a basic shim for css * custom properties (needed only on older browsers like IE11) and a shim for * a deprecated feature called `@apply` that supports applying a set of css * custom properties to a given location. * * Usage considerations: * * * Part values in `