Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
{ | ||
"name": "lit", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"publishConfig": { | ||
@@ -78,6 +78,3 @@ "access": "public" | ||
"/decorators/", | ||
"/directives/", | ||
"/src/", | ||
"!/src/demo/", | ||
"!/src/test/" | ||
"/directives/" | ||
], | ||
@@ -87,3 +84,3 @@ "dependencies": { | ||
"lit-element": "^3.0.0-rc.2", | ||
"lit-html": "^2.0.0-rc.3" | ||
"lit-html": "^2.0.0-rc.4" | ||
}, | ||
@@ -96,3 +93,3 @@ "devDependencies": { | ||
"@webcomponents/template": "^1.4.4", | ||
"@webcomponents/webcomponentsjs": "^2.5.0", | ||
"@webcomponents/webcomponentsjs": "^2.6.0", | ||
"chokidar-cli": "^2.1.0", | ||
@@ -99,0 +96,0 @@ "downlevel-dts": "^0.6.0", |
@@ -7,3 +7,3 @@ !function(i){"function"==typeof define&&define.amd?define(i):i()}((function(){"use strict";var i;i=function(){var i,n,o;i=function(){ | ||
*/ | ||
var i,n,o="__scoped";null!==(i=(n=globalThis).reactiveElementPlatformSupport)&&void 0!==i||(n.reactiveElementPlatformSupport=function(i){var n=i.ReactiveElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var t=n.prototype;window.ShadyDOM&&window.ShadyDOM.inUse&&!0===window.ShadyDOM.noPatch&&window.ShadyDOM.patchElementProto(t);var d=t.createRenderRoot;t.createRenderRoot=function(){var i,n,t,e=this.localName;if(window.ShadyCSS.nativeShadow)return d.call(this);if(!this.constructor.hasOwnProperty(o)){this.constructor[o]=!0;var v=this.constructor.elementStyles.map((function(i){return i instanceof CSSStyleSheet?Array.from(i.cssRules).reduce((function(i,n){return i+n.cssText}),""):i.cssText}));null===(n=null===(i=window.ShadyCSS)||void 0===i?void 0:i.ScopingShim)||void 0===n||n.prepareAdoptedCssText(v,e),void 0===this.constructor.J&&window.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}return null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions)};var e=t.connectedCallback;t.connectedCallback=function(){e.call(this),this.hasUpdated&&window.ShadyCSS.styleElement(this)};var v=t.E;t.E=function(i){var n=!this.hasUpdated;v.call(this,i),n&&window.ShadyCSS.styleElement(this)}}})},"function"==typeof define&&define.amd?define(i):i(),function(i){"function"==typeof define&&define.amd?define(i):i()}((function(){ | ||
var i,n,o="__scoped";null!==(i=(n=globalThis).reactiveElementPlatformSupport)&&void 0!==i||(n.reactiveElementPlatformSupport=function(i){var n=i.ReactiveElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var t=n.prototype;window.ShadyDOM&&window.ShadyDOM.inUse&&!0===window.ShadyDOM.noPatch&&window.ShadyDOM.patchElementProto(t);var d=t.createRenderRoot;t.createRenderRoot=function(){var i,n,t,e=this.localName;if(window.ShadyCSS.nativeShadow)return d.call(this);if(!this.constructor.hasOwnProperty(o)){this.constructor[o]=!0;var u=this.constructor.elementStyles.map((function(i){return i instanceof CSSStyleSheet?Array.from(i.cssRules).reduce((function(i,n){return i+n.cssText}),""):i.cssText}));null===(n=null===(i=window.ShadyCSS)||void 0===i?void 0:i.ScopingShim)||void 0===n||n.prepareAdoptedCssText(u,e),void 0===this.constructor._$AJ&&window.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}return null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions)};var e=t.connectedCallback;t.connectedCallback=function(){e.call(this),this.hasUpdated&&window.ShadyCSS.styleElement(this)};var u=t._$AE;t._$AE=function(i){this.hasUpdated||window.ShadyCSS.styleElement(this),u.call(this,i)}}})},"function"==typeof define&&define.amd?define(i):i(),function(i){"function"==typeof define&&define.amd?define(i):i()}((function(){ | ||
/** | ||
@@ -14,3 +14,3 @@ * @license | ||
*/ | ||
var i,n,o=new Set,t=new Map;null!==(i=(n=globalThis).litHtmlPlatformSupport)&&void 0!==i||(n.litHtmlPlatformSupport=function(i,n){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=function(i){var n=t.get(i);return void 0===n&&t.set(i,n=[]),n},e=new Map,v=i.createElement;i.createElement=function(n,o){var t=v.call(i,n,o),e=null==o?void 0:o.scope;if(void 0!==e){window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(t,e);var u=d(e),f=t.content.querySelectorAll("style");u.push.apply(u,Array.from(f).map((function(i){var n;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),i.textContent})))}return t};var u=document.createDocumentFragment(),f=document.createComment(""),r=n.prototype,w=r.I;r.I=function(i,n){var e,v,r;void 0===n&&(n=this);var s,a=this.A.parentNode,l=null===(e=this.options)||void 0===e?void 0:e.scope;if(a instanceof ShadowRoot&&void 0!==(s=l)&&!o.has(s)){var h=this.A,c=this.B;u.appendChild(f),this.A=f,this.B=null,w.call(this,i,n);var y=(null===(v=i)||void 0===v?void 0:v._$litType$)?this.H.D.el:document.createElement("template");if(function(i,n){var e=d(i),v=0!==e.length;if(v){var u=document.createElement("style");u.textContent=e.join("\n"),n.content.appendChild(u)}o.add(i),t.delete(i),window.ShadyCSS.prepareTemplateStyles(n,i),v&&window.ShadyCSS.nativeShadow&&n.content.appendChild(n.content.querySelector("style"))}(l,y),u.removeChild(f),null===(r=window.ShadyCSS)||void 0===r?void 0:r.nativeShadow){var p=y.content.querySelector("style");null!==p&&u.appendChild(p.cloneNode(!0))}a.insertBefore(u,c),this.A=h,this.B=c}else w.call(this,i,n)},r.C=function(n){var o,t=null===(o=this.options)||void 0===o?void 0:o.scope,d=e.get(t);void 0===d&&e.set(t,d=new Map);var v=d.get(n.strings);return void 0===v&&d.set(n.strings,v=new i(n,this.options)),v}}})})),null!==(n=(o=globalThis).litElementPlatformSupport)&&void 0!==n||(o.litElementPlatformSupport=function(i){var n=i.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){n.J=!0;var o=n.prototype,t=o.createRenderRoot;o.createRenderRoot=function(){return this.renderOptions.scope=this.localName,t.call(this)}}})},"function"==typeof define&&define.amd?define(i):i()})); | ||
var i,n,o=new Set,t=new Map;null!==(i=(n=globalThis).litHtmlPlatformSupport)&&void 0!==i||(n.litHtmlPlatformSupport=function(i,n){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=function(i){return void 0!==i&&!o.has(i)},e=function(i){var n=t.get(i);return void 0===n&&t.set(i,n=[]),n},u=new Map,v=i.createElement;i.createElement=function(n,o){var t=v.call(i,n,o),u=null==o?void 0:o.scope;if(void 0!==u&&(window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(t,u),d(u))){var f=e(u),r=t.content.querySelectorAll("style");f.push.apply(f,Array.from(r).map((function(i){var n;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),i.textContent})))}return t};var f=document.createDocumentFragment(),r=document.createComment(""),w=n.prototype,s=w._$AI;w._$AI=function(i,n){var u,v,w;void 0===n&&(n=this);var l=this._$AA.parentNode,a=null===(u=this.options)||void 0===u?void 0:u.scope;if(l instanceof ShadowRoot&&d(a)){var h=this._$AA,c=this._$AB;f.appendChild(r),this._$AA=r,this._$AB=null,s.call(this,i,n);var y=(null===(v=i)||void 0===v?void 0:v._$litType$)?this._$AH._$AD.el:document.createElement("template");if(function(i,n){var d,u=e(i),v=0!==u.length;v&&((d=document.createElement("style")).textContent=u.join("\n"),n.content.appendChild(d)),o.add(i),t.delete(i),window.ShadyCSS.prepareTemplateStyles(n,i),v&&window.ShadyCSS.nativeShadow&&null!==(d=n.content.querySelector("style"))&&n.content.appendChild(d)}(a,y),f.removeChild(r),null===(w=window.ShadyCSS)||void 0===w?void 0:w.nativeShadow){var p=y.content.querySelector("style");null!==p&&f.appendChild(p.cloneNode(!0))}l.insertBefore(f,c),this._$AA=h,this._$AB=c}else s.call(this,i,n)},w._$AC=function(n){var o,t=null===(o=this.options)||void 0===o?void 0:o.scope,d=u.get(t);void 0===d&&u.set(t,d=new Map);var e=d.get(n.strings);return void 0===e&&d.set(n.strings,e=new i(n,this.options)),e}}})})),null!==(n=(o=globalThis).litElementPlatformSupport)&&void 0!==n||(o.litElementPlatformSupport=function(i){var n=i.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){n._$AJ=!0;var o=n.prototype,t=o.createRenderRoot;o.createRenderRoot=function(){return this.renderOptions.scope=this.localName,t.call(this)}}})},"function"==typeof define&&define.amd?define(i):i()})); | ||
//# sourceMappingURL=polyfill-support.js.map |
@@ -40,3 +40,2 @@ <img src="./logo.svg" alt="Lit" width="300" height="141"> | ||
export class MyElement extends LitElement { | ||
// Styles are applied to the shadow root and scoped to this element | ||
@@ -43,0 +42,0 @@ static styles = css` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52993
131
296
67
Updatedlit-html@^2.0.0-rc.4