lit-element
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -74,2 +74,4 @@ /** | ||
}; | ||
console.warn('Import from `lit-element/experimental-hydrate-support.js` is deprecated.' + | ||
'Import `@lit-labs/ssr-client/lit-element-hydrate-support.js` instead.'); | ||
//# sourceMappingURL=experimental-hydrate-support.js.map |
@@ -253,3 +253,3 @@ /** | ||
// This line will be used in regexes to search for LitElement usage. | ||
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.3.0'); | ||
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.3.1'); | ||
if (DEV_MODE && globalThis.litElementVersions.length > 1) { | ||
@@ -256,0 +256,0 @@ issueWarning('multiple-versions', `Multiple versions of Lit loaded. Loading multiple versions ` + |
@@ -1,2 +0,2 @@ | ||
import{render as t}from"lit-html";import{hydrate as i}from"lit-html/experimental-hydrate.js";import{HYDRATE_INTERNALS_ATTR_PREFIX as s}from"@lit-labs/ssr-dom-shim"; | ||
import{render as t}from"lit-html";import{hydrate as s}from"lit-html/experimental-hydrate.js";import{HYDRATE_INTERNALS_ATTR_PREFIX as i}from"@lit-labs/ssr-dom-shim"; | ||
/** | ||
@@ -7,3 +7,3 @@ * @license | ||
*/ | ||
globalThis.litElementHydrateSupport=({LitElement:h})=>{const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"observedAttributes").get;Object.defineProperty(h,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});const o=h.prototype.attributeChangedCallback;h.prototype.attributeChangedCallback=function(t,i,s){"defer-hydration"===t&&null===s&&n.call(this),o.call(this,t,i,s)};const n=h.prototype.connectedCallback;h.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||n.call(this)};const r=h.prototype.createRenderRoot;h.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):r.call(this)};const c=Object.getPrototypeOf(h.prototype).update;h.prototype.update=function(h){const e=this.render();if(c.call(this,h),this._$AG){this._$AG=!1;for(let t=0;t<this.attributes.length;t++){const i=this.attributes[t];if(i.name.startsWith(s)){const t=i.name.slice(s.length);this.removeAttribute(t),this.removeAttribute(i.name)}}i(e,this.renderRoot,this.renderOptions)}else t(e,this.renderRoot,this.renderOptions)}}; | ||
globalThis.litElementHydrateSupport=({LitElement:e})=>{const r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"observedAttributes").get;Object.defineProperty(e,"observedAttributes",{get(){return[...r.call(this),"defer-hydration"]}});const o=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(t,s,i){"defer-hydration"===t&&null===i&&h.call(this),o.call(this,t,s,i)};const h=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||h.call(this)};const n=e.prototype.createRenderRoot;e.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):n.call(this)};const l=Object.getPrototypeOf(e.prototype).update;e.prototype.update=function(e){const r=this.render();if(l.call(this,e),this._$AG){this._$AG=!1;for(let t=0;t<this.attributes.length;t++){const s=this.attributes[t];if(s.name.startsWith(i)){const t=s.name.slice(i.length);this.removeAttribute(t),this.removeAttribute(s.name)}}s(r,this.renderRoot,this.renderOptions)}else t(r,this.renderRoot,this.renderOptions)}},console.warn("Import from `lit-element/experimental-hydrate-support.js` is deprecated.Import `@lit-labs/ssr-client/lit-element-hydrate-support.js` instead."); | ||
//# sourceMappingURL=experimental-hydrate-support.js.map |
@@ -6,3 +6,3 @@ import{ReactiveElement as t}from"@lit/reactive-element";export*from"@lit/reactive-element";import{render as e,noChange as i}from"lit-html";export*from"lit-html"; | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.3.0");export{s as LitElement,r as UpdatingElement,h as _$LE}; | ||
*/var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.3.1");export{s as LitElement,r as UpdatingElement,h as _$LE}; | ||
//# sourceMappingURL=lit-element.js.map |
{ | ||
"name": "lit-element", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
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
149798
1207