Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/engine-core

Package Overview
Dependencies
Maintainers
13
Versions
376
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/engine-core - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

8

package.json
{
"name": "@lwc/engine-core",
"version": "1.11.0",
"version": "1.11.1",
"description": "Core LWC engine APIs.",

@@ -28,4 +28,4 @@ "homepage": "https://lwc.dev/",

"devDependencies": {
"@lwc/features": "1.11.0",
"@lwc/shared": "1.11.0",
"@lwc/features": "1.11.1",
"@lwc/shared": "1.11.1",
"observable-membrane": "1.0.1"

@@ -36,3 +36,3 @@ },

},
"gitHead": "4d951cd81f0548575ffdb42ee289f4dc3f511ea4"
"gitHead": "8714b2a1ea5b6c601c3f537e3e9a2aa748c37ce7"
}
import { SlotSet } from './vm';
import { ComponentConstructor } from './component';
import { VNode, VNodeData, VNodes, VElement, VText, Key, VCustomElement } from '../3rdparty/snabbdom/types';
import { LightningElementConstructor } from './base-lightning-element';
export interface ElementCompilerData extends VNodeData {

@@ -13,3 +13,3 @@ key: Key;

h(tagName: string, data: ElementCompilerData, children: VNodes): VNode;
c(tagName: string, Ctor: ComponentConstructor, data: CustomElementCompilerData, children?: VNodes): VNode;
c(tagName: string, Ctor: LightningElementConstructor, data: CustomElementCompilerData, children?: VNodes): VNode;
i(items: any[], factory: () => VNode | VNode): VNodes;

@@ -25,3 +25,3 @@ f(items: any[]): any[];

export declare function s(slotName: string, data: ElementCompilerData, children: VNodes, slotset: SlotSet | undefined): VElement;
export declare function c(sel: string, Ctor: ComponentConstructor, data: CustomElementCompilerData, children?: VNodes): VCustomElement;
export declare function c(sel: string, Ctor: LightningElementConstructor, data: CustomElementCompilerData, children?: VNodes): VCustomElement;
export declare function i(iterable: Iterable<any>, factory: (value: any, index: number, first: boolean, last: boolean) => VNodes | VNode): VNodes;

@@ -41,3 +41,3 @@ /**

*/
export declare function dc(sel: string, Ctor: ComponentConstructor | null | undefined, data: CustomElementCompilerData, children?: VNodes): VCustomElement | null;
export declare function dc(sel: string, Ctor: LightningElementConstructor | null | undefined, data: CustomElementCompilerData, children?: VNodes): VCustomElement | null;
/**

@@ -44,0 +44,0 @@ * slow children collection marking mechanism. this API allows the compiler to signal

@@ -16,2 +16,3 @@ /**

readonly CustomElementConstructor: HTMLElementConstructor;
delegatesFocus?: boolean;
}

@@ -18,0 +19,0 @@ export declare let LightningElement: LightningElementConstructor;

@@ -6,15 +6,2 @@ import { VM } from './vm';

import { Template } from './template';
export declare type ErrorCallback = (error: any, stack: string) => void;
export interface ComponentInterface {
setAttribute(attrName: string, value: any): void;
}
export interface ComponentConstructor extends LightningElementConstructor {
readonly name: string;
readonly labels?: string[];
readonly delegatesFocus?: boolean;
}
export interface ComponentMeta {
readonly name: string;
readonly template?: Template;
}
/**

@@ -24,7 +11,7 @@ * INTERNAL: This function can only be invoked by compiled code. The compiler

*/
export declare function registerComponent(Ctor: ComponentConstructor, { tmpl }: {
export declare function registerComponent(Ctor: LightningElementConstructor, { tmpl }: {
tmpl: Template;
}): ComponentConstructor;
export declare function getComponentRegisteredTemplate(Ctor: ComponentConstructor): Template | undefined;
export declare function createComponent(vm: VM, Ctor: ComponentConstructor): void;
}): LightningElementConstructor;
export declare function getComponentRegisteredTemplate(Ctor: LightningElementConstructor): Template | undefined;
export declare function createComponent(vm: VM, Ctor: LightningElementConstructor): void;
export declare function getTemplateReactiveObserver(vm: VM): ReactiveObserver;

@@ -31,0 +18,0 @@ export declare function renderComponent(vm: VM): VNodes;

@@ -1,2 +0,2 @@

import { ComponentConstructor } from '../component';
import { LightningElementConstructor } from '../base-lightning-element';
import { WireAdapterConstructor, ConfigCallback } from '../wiring';

@@ -34,3 +34,3 @@ declare type WireCompilerMeta = Record<string, WireCompilerDef>;

*/
export declare function registerDecorators(Ctor: ComponentConstructor, meta: RegisterDecoratorMeta): ComponentConstructor;
export declare function registerDecorators(Ctor: LightningElementConstructor, meta: RegisterDecoratorMeta): LightningElementConstructor;
interface DecoratorMeta {

@@ -44,3 +44,3 @@ readonly apiMethods: PropertyDescriptorMap;

}
export declare function getDecoratorsMeta(Ctor: ComponentConstructor): DecoratorMeta;
export declare function getDecoratorsMeta(Ctor: LightningElementConstructor): DecoratorMeta;
export {};

@@ -9,4 +9,4 @@ /**

*/
import { ComponentConstructor, ErrorCallback } from './component';
import { Template } from './template';
import { LightningElement, LightningElementConstructor } from './base-lightning-element';
import { PropType } from './decorators/register';

@@ -21,9 +21,9 @@ import { HTMLElementConstructor } from './base-bridge-element';

template: Template;
ctor: ComponentConstructor;
ctor: LightningElementConstructor;
bridge: HTMLElementConstructor;
connectedCallback?: () => void;
disconnectedCallback?: () => void;
renderedCallback?: () => void;
errorCallback?: ErrorCallback;
render: () => Template;
connectedCallback?: LightningElement['connectedCallback'];
disconnectedCallback?: LightningElement['disconnectedCallback'];
renderedCallback?: LightningElement['renderedCallback'];
errorCallback?: LightningElement['errorCallback'];
render: LightningElement['render'];
}

@@ -34,3 +34,3 @@ /**

*/
export declare function isComponentConstructor(ctor: unknown): ctor is ComponentConstructor;
export declare function isComponentConstructor(ctor: unknown): ctor is LightningElementConstructor;
export declare function getComponentInternalDef(Ctor: unknown): ComponentDef;

@@ -50,3 +50,3 @@ declare enum PropDefType {

methods: Record<string, PublicMethod>;
ctor: ComponentConstructor;
ctor: LightningElementConstructor;
}

@@ -53,0 +53,0 @@ /**

import { VM } from './vm';
import { ComponentConstructor } from './component';
import { LightningElementConstructor } from './base-lightning-element';
import { Template } from './template';
import { StylesheetFactory } from './stylesheet';
export declare function getTemplateOrSwappedTemplate(tpl: Template): Template;
export declare function getComponentOrSwappedComponent(Ctor: ComponentConstructor): ComponentConstructor;
export declare function getComponentOrSwappedComponent(Ctor: LightningElementConstructor): LightningElementConstructor;
export declare function getStyleOrSwappedStyle(style: StylesheetFactory): StylesheetFactory;

@@ -11,3 +11,3 @@ export declare function setActiveVM(vm: VM): void;

export declare function swapTemplate(oldTpl: Template, newTpl: Template): boolean;
export declare function swapComponent(oldComponent: ComponentConstructor, newComponent: ComponentConstructor): boolean;
export declare function swapComponent(oldComponent: LightningElementConstructor, newComponent: LightningElementConstructor): boolean;
export declare function swapStyle(oldStyle: StylesheetFactory, newStyle: StylesheetFactory): boolean;
import { VM } from './vm';
import { ComponentConstructor, ComponentInterface } from './component';
import { LightningElement, LightningElementConstructor } from './base-lightning-element';
import { VNodes } from '../3rdparty/snabbdom/types';

@@ -9,5 +9,5 @@ export declare let isInvokingRender: boolean;

export declare function invokeComponentCallback(vm: VM, fn: (...args: any[]) => any, args?: any[]): any;
export declare function invokeComponentConstructor(vm: VM, Ctor: ComponentConstructor): void;
export declare function invokeComponentConstructor(vm: VM, Ctor: LightningElementConstructor): void;
export declare function invokeComponentRenderMethod(vm: VM): VNodes;
export declare function invokeComponentRenderedCallback(vm: VM): void;
export declare function invokeEventListener(vm: VM, fn: EventListener, thisValue: undefined | ComponentInterface, event: Event): void;
export declare function invokeEventListener(vm: VM, fn: EventListener, thisValue: LightningElement | undefined, event: Event): void;
import { LightningElement } from './base-lightning-element';
import { ComponentInterface } from './component';
export declare function unlockDomMutation(): void;

@@ -10,3 +9,3 @@ export declare function lockDomMutation(): void;

export declare function patchCustomElementWithRestrictions(elm: HTMLElement): void;
export declare function patchComponentWithRestrictions(cmp: ComponentInterface): void;
export declare function patchComponentWithRestrictions(cmp: LightningElement): void;
export declare function patchLightningElementPrototypeWithRestrictions(proto: typeof LightningElement.prototype): void;
import { Template } from './template';
import { ComponentDef } from './def';
import { ComponentInterface } from './component';
import { LightningElement } from './base-lightning-element';
import { ReactiveObserver } from './mutation-tracker';
import { LightningElement } from './base-lightning-element';
import { AccessorReactiveObserver } from './decorators/api';

@@ -81,3 +80,3 @@ import { Renderer, HostNode, HostElement } from './renderer';

/** The component instance. */
component: ComponentInterface;
component: LightningElement;
/** The custom element shadow root. */

@@ -94,11 +93,11 @@ cmpRoot: ShadowRoot;

* Locker only. */
setHook: (cmp: ComponentInterface, prop: PropertyKey, newValue: any) => void;
setHook: (cmp: LightningElement, prop: PropertyKey, newValue: any) => void;
/** Hook invoked whenever a property is set on the host element. This hook is used by Locker
* only. */
getHook: (cmp: ComponentInterface, prop: PropertyKey) => any;
getHook: (cmp: LightningElement, prop: PropertyKey) => any;
/** Hook invoked whenever a method is called on the component (life-cycle hooks, public
* properties and event handlers). This hook is used by Locker. */
callHook: (cmp: ComponentInterface | undefined, fn: (...args: any[]) => any, args?: any[]) => any;
callHook: (cmp: LightningElement | undefined, fn: (...args: any[]) => any, args?: any[]) => any;
}
declare type VMAssociable = HostNode | LightningElement | ComponentInterface;
declare type VMAssociable = HostNode | LightningElement;
export declare function rerenderVM(vm: VM): void;

@@ -105,0 +104,0 @@ export declare function connectRootElement(elm: any): void;

@@ -1,2 +0,2 @@

import { ComponentInterface } from './component';
import { LightningElement } from './base-lightning-element';
import { VM } from './vm';

@@ -23,3 +23,3 @@ interface WireContextInternalEventPayload {

export declare type ContextValue = Record<string, any>;
export declare type ConfigCallback = (component: ComponentInterface) => ConfigValue;
export declare type ConfigCallback = (component: LightningElement) => ConfigValue;
export interface WireAdapterConstructor {

@@ -26,0 +26,0 @@ new (callback: DataCallback): WireAdapter;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc