lit-element
Advanced tools
Comparing version 3.1.2 to 3.2.0
@@ -52,2 +52,24 @@ /** | ||
export * from 'lit-html'; | ||
import { LitUnstable } from 'lit-html'; | ||
import { ReactiveUnstable } from '@lit/reactive-element'; | ||
/** | ||
* Contains types that are part of the unstable debug API. | ||
* | ||
* Everything in this API is not stable and may change or be removed in the future, | ||
* even on patch releases. | ||
*/ | ||
export declare namespace Unstable { | ||
/** | ||
* When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true, | ||
* we will emit 'lit-debug' events to window, with live details about the update and render | ||
* lifecycle. These can be useful for writing debug tooling and visualizations. | ||
* | ||
* Please be aware that running with window.emitLitDebugLogEvents has performance overhead, | ||
* making certain operations that are normally very cheap (like a no-op render) much slower, | ||
* because we must copy data and dispatch events. | ||
*/ | ||
namespace DebugLog { | ||
type Entry = LitUnstable.DebugLog.Entry | ReactiveUnstable.DebugLog.Entry; | ||
} | ||
} | ||
export declare const UpdatingElement: typeof ReactiveElement; | ||
@@ -54,0 +76,0 @@ /** |
@@ -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.1.2'); | ||
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.2.0'); | ||
if (DEV_MODE && globalThis.litElementVersions.length > 1) { | ||
@@ -256,0 +256,0 @@ issueWarning('multiple-versions', `Multiple versions of Lit loaded. Loading multiple versions ` + |
@@ -52,2 +52,24 @@ /** | ||
export * from 'lit-html'; | ||
import { LitUnstable } from 'lit-html'; | ||
import { ReactiveUnstable } from '@lit/reactive-element'; | ||
/** | ||
* Contains types that are part of the unstable debug API. | ||
* | ||
* Everything in this API is not stable and may change or be removed in the future, | ||
* even on patch releases. | ||
*/ | ||
export declare namespace Unstable { | ||
/** | ||
* When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true, | ||
* we will emit 'lit-debug' events to window, with live details about the update and render | ||
* lifecycle. These can be useful for writing debug tooling and visualizations. | ||
* | ||
* Please be aware that running with window.emitLitDebugLogEvents has performance overhead, | ||
* making certain operations that are normally very cheap (like a no-op render) much slower, | ||
* because we must copy data and dispatch events. | ||
*/ | ||
namespace DebugLog { | ||
type Entry = LitUnstable.DebugLog.Entry | ReactiveUnstable.DebugLog.Entry; | ||
} | ||
} | ||
export declare const UpdatingElement: typeof ReactiveElement; | ||
@@ -54,0 +76,0 @@ /** |
@@ -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._$Dt=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._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||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.1.2");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._$Dt=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._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||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.2.0");export{s as LitElement,r as UpdatingElement,h as _$LE}; | ||
//# sourceMappingURL=lit-element.js.map |
{ | ||
"name": "lit-element", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"publishConfig": { | ||
@@ -114,4 +114,4 @@ "access": "public" | ||
"dependencies": { | ||
"@lit/reactive-element": "^1.1.0", | ||
"lit-html": "^2.1.0" | ||
"@lit/reactive-element": "^1.3.0", | ||
"lit-html": "^2.2.0" | ||
}, | ||
@@ -118,0 +118,0 @@ "devDependencies": { |
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
1201
142399
123
Updated@lit/reactive-element@^1.3.0
Updatedlit-html@^2.2.0