@lwc/engine-core
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.1
{ | ||
"name": "@lwc/engine-core", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"description": "Core LWC engine APIs.", | ||
@@ -28,4 +28,4 @@ "homepage": "https://lwc.dev/", | ||
"devDependencies": { | ||
"@lwc/features": "2.0.0-rc.0", | ||
"@lwc/shared": "2.0.0-rc.0", | ||
"@lwc/features": "2.0.0-rc.1", | ||
"@lwc/shared": "2.0.0-rc.1", | ||
"observable-membrane": "1.0.1" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "598606e35ebed900fb6a06eaf752410fc86301f8" | ||
"gitHead": "970c1f06157a8178bef6aa8b62ea16bec0b69570" | ||
} |
@@ -49,2 +49,8 @@ /** | ||
} | ||
export interface VComment extends VNode { | ||
sel: undefined; | ||
children: undefined; | ||
text: string; | ||
key: undefined; | ||
} | ||
export declare type CustomElementContext = Record<string, Record<string, any>>; | ||
@@ -51,0 +57,0 @@ export interface VNodeData { |
import { SlotSet } from './vm'; | ||
import { VNode, VNodeData, VNodes, VElement, VText, Key, VCustomElement } from '../3rdparty/snabbdom/types'; | ||
import { VNode, VNodeData, VNodes, VElement, VText, Key, VCustomElement, VComment } from '../3rdparty/snabbdom/types'; | ||
import { LightningElementConstructor } from './base-lightning-element'; | ||
@@ -20,2 +20,3 @@ export interface ElementCompilerData extends VNodeData { | ||
k(compilerKey: number, iteratorValue: any): string | void; | ||
co(text: string): VComment; | ||
} | ||
@@ -32,2 +33,3 @@ export declare function h(sel: string, data: ElementCompilerData, children: VNodes): VElement; | ||
export declare function t(text: string): VText; | ||
export declare function co(text: string): VComment; | ||
export declare function d(value: any): VNode | null; | ||
@@ -34,0 +36,0 @@ export declare function b(fn: EventListener): EventListener; |
@@ -17,7 +17,7 @@ /** | ||
delegatesFocus?: boolean; | ||
shadow: boolean; | ||
} | ||
export declare let LightningElement: LightningElementConstructor; | ||
declare type HTMLElementTheGoodParts = Pick<Object, 'toString'> & Pick<HTMLElement, 'accessKey' | 'addEventListener' | 'classList' | 'dir' | 'dispatchEvent' | 'draggable' | 'getAttribute' | 'getAttributeNS' | 'getBoundingClientRect' | 'getElementsByClassName' | 'getElementsByTagName' | 'hasAttribute' | 'hasAttributeNS' | 'hidden' | 'id' | 'isConnected' | 'lang' | 'querySelector' | 'querySelectorAll' | 'removeAttribute' | 'removeAttributeNS' | 'removeEventListener' | 'setAttribute' | 'setAttributeNS' | 'spellcheck' | 'tabIndex' | 'title'>; | ||
export interface LightningElement extends HTMLElementTheGoodParts, AccessibleElementProperties { | ||
template: ShadowRoot; | ||
template: ShadowRoot | null; | ||
render(): Template; | ||
@@ -29,4 +29,8 @@ connectedCallback?(): void; | ||
} | ||
/** | ||
* This class is the base class for any LWC element. | ||
* Some elements directly extends this class, others implement it via inheritance. | ||
**/ | ||
export declare const LightningElement: LightningElementConstructor; | ||
export declare const lightningBasedDescriptors: PropertyDescriptorMap; | ||
export declare const BaseLightningElement: LightningElementConstructor; | ||
export {}; |
export { createContextProvider } from './context-provider'; | ||
export { BaseLightningElement as LightningElement } from './base-lightning-element'; | ||
export { LightningElement } from './base-lightning-element'; | ||
export { register } from './services'; | ||
@@ -4,0 +4,0 @@ export { default as api } from './decorators/api'; |
@@ -10,2 +10,3 @@ export declare type HostNode = any; | ||
createText(content: string): N; | ||
createComment(content: string): N; | ||
nextSibling(node: N): N | null; | ||
@@ -12,0 +13,0 @@ attachShadow(element: E, options: ShadowRootInit): N; |
@@ -82,3 +82,3 @@ import { Template } from './template'; | ||
/** The custom element shadow root. */ | ||
cmpRoot: ShadowRoot; | ||
cmpRoot: ShadowRoot | null; | ||
/** The template reactive observer. */ | ||
@@ -122,2 +122,5 @@ tro: ReactiveObserver; | ||
export declare function forceRehydration(vm: VM): void; | ||
export declare function hasShadow(vm: VM): vm is VM & { | ||
cmpRoot: ShadowRoot; | ||
}; | ||
export {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
453192
12603
1