@lwc/engine-core 6.1.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/framework/base-lightning-element.d.ts +3 -1
- package/dist/framework/component.d.ts +1 -0
- package/dist/framework/modules/static-parts.d.ts +8 -1
- package/dist/framework/mutation-tracker.d.ts +2 -1
- package/dist/framework/reporting.d.ts +7 -2
- package/dist/index.cjs.js +220 -67
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +221 -68
- package/dist/index.js.map +1 -1
- package/dist/libs/mutation-tracker/index.d.ts +1 -0
- package/dist/libs/signal-tracker/index.d.ts +5 -0
- package/dist/shared/circular-module-dependencies.d.ts +1 -1
- package/package.json +5 -4
|
@@ -21,7 +21,9 @@ export interface LightningElementConstructor {
|
|
|
21
21
|
shadowSupportMode?: ShadowSupportMode;
|
|
22
22
|
stylesheets: TemplateStylesheetFactories;
|
|
23
23
|
}
|
|
24
|
-
type HTMLElementTheGoodParts =
|
|
24
|
+
type HTMLElementTheGoodParts = {
|
|
25
|
+
toString: () => string;
|
|
26
|
+
} & Pick<HTMLElement, 'accessKey' | 'addEventListener' | 'attachInternals' | 'children' | 'childNodes' | 'classList' | 'dir' | 'dispatchEvent' | 'draggable' | 'firstChild' | 'firstElementChild' | 'getAttribute' | 'getAttributeNS' | 'getBoundingClientRect' | 'getElementsByClassName' | 'getElementsByTagName' | 'hasAttribute' | 'hasAttributeNS' | 'hidden' | 'id' | 'isConnected' | 'lang' | 'lastChild' | 'lastElementChild' | 'ownerDocument' | 'querySelector' | 'querySelectorAll' | 'removeAttribute' | 'removeAttributeNS' | 'removeEventListener' | 'setAttribute' | 'setAttributeNS' | 'spellcheck' | 'tabIndex' | 'tagName' | 'title'>;
|
|
25
27
|
type RefNodes = {
|
|
26
28
|
[name: string]: Element;
|
|
27
29
|
};
|
|
@@ -18,6 +18,7 @@ export declare function getComponentRegisteredTemplate(Ctor: LightningElementCon
|
|
|
18
18
|
export declare function getComponentRegisteredName(Ctor: LightningElementConstructor): string | undefined;
|
|
19
19
|
export declare function getComponentAPIVersion(Ctor: LightningElementConstructor): APIVersion;
|
|
20
20
|
export declare function getTemplateReactiveObserver(vm: VM): ReactiveObserver;
|
|
21
|
+
export declare function resetTemplateObserverAndUnsubscribe(vm: VM): void;
|
|
21
22
|
export declare function renderComponent(vm: VM): VNodes;
|
|
22
23
|
export declare function markComponentAsDirty(vm: VM): void;
|
|
23
24
|
export declare function getWrappedComponentsListener(vm: VM, listener: EventListener): EventListener;
|
|
@@ -8,4 +8,11 @@ import { RendererAPI } from '../renderer';
|
|
|
8
8
|
* @param renderer - the renderer to use
|
|
9
9
|
* @param mount - true this is a first (mount) render as opposed to a subsequent (patch) render
|
|
10
10
|
*/
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function mountStaticParts(root: Element, vnode: VStatic, renderer: RendererAPI): void;
|
|
12
|
+
/**
|
|
13
|
+
* Mounts elements to the newly generated VStatic node
|
|
14
|
+
*
|
|
15
|
+
* @param n1 - the previous VStatic vnode
|
|
16
|
+
* @param n2 - the current VStatic vnode
|
|
17
|
+
*/
|
|
18
|
+
export declare function patchStaticParts(n1: VStatic, n2: VStatic): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CallbackFunction, ReactiveObserver } from '../libs/mutation-tracker';
|
|
2
2
|
import { VM } from './vm';
|
|
3
3
|
export declare function componentValueMutated(vm: VM, key: PropertyKey): void;
|
|
4
|
-
export declare function componentValueObserved(vm: VM, key: PropertyKey): void;
|
|
4
|
+
export declare function componentValueObserved(vm: VM, key: PropertyKey, target?: any): void;
|
|
5
5
|
export declare function createReactiveObserver(callback: CallbackFunction): ReactiveObserver;
|
|
6
6
|
export * from '../libs/mutation-tracker';
|
|
7
|
+
export * from '../libs/signal-tracker';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShadowMode } from './vm';
|
|
1
|
+
import { ShadowMode, ShadowSupportMode } from './vm';
|
|
2
2
|
export declare const enum ReportingEventId {
|
|
3
3
|
CrossRootAriaInSyntheticShadow = "CrossRootAriaInSyntheticShadow",
|
|
4
4
|
CompilerRuntimeVersionMismatch = "CompilerRuntimeVersionMismatch",
|
|
@@ -6,7 +6,8 @@ export declare const enum ReportingEventId {
|
|
|
6
6
|
TemplateMutation = "TemplateMutation",
|
|
7
7
|
StylesheetMutation = "StylesheetMutation",
|
|
8
8
|
ConnectedCallbackWhileDisconnected = "ConnectedCallbackWhileDisconnected",
|
|
9
|
-
ShadowModeUsage = "ShadowModeUsage"
|
|
9
|
+
ShadowModeUsage = "ShadowModeUsage",
|
|
10
|
+
ShadowSupportModeUsage = "ShadowSupportModeUsage"
|
|
10
11
|
}
|
|
11
12
|
export interface BasePayload {
|
|
12
13
|
tagName?: string;
|
|
@@ -34,6 +35,9 @@ export interface ConnectedCallbackWhileDisconnectedPayload extends BasePayload {
|
|
|
34
35
|
export interface ShadowModeUsagePayload extends BasePayload {
|
|
35
36
|
mode: ShadowMode;
|
|
36
37
|
}
|
|
38
|
+
export interface ShadowSupportModeUsagePayload extends BasePayload {
|
|
39
|
+
mode: ShadowSupportMode;
|
|
40
|
+
}
|
|
37
41
|
export type ReportingPayloadMapping = {
|
|
38
42
|
[ReportingEventId.CrossRootAriaInSyntheticShadow]: CrossRootAriaInSyntheticShadowPayload;
|
|
39
43
|
[ReportingEventId.CompilerRuntimeVersionMismatch]: CompilerRuntimeVersionMismatchPayload;
|
|
@@ -42,6 +46,7 @@ export type ReportingPayloadMapping = {
|
|
|
42
46
|
[ReportingEventId.StylesheetMutation]: StylesheetMutationPayload;
|
|
43
47
|
[ReportingEventId.ConnectedCallbackWhileDisconnected]: ConnectedCallbackWhileDisconnectedPayload;
|
|
44
48
|
[ReportingEventId.ShadowModeUsage]: ShadowModeUsagePayload;
|
|
49
|
+
[ReportingEventId.ShadowSupportModeUsage]: ShadowSupportModeUsagePayload;
|
|
45
50
|
};
|
|
46
51
|
export type ReportingDispatcher<T extends ReportingEventId = ReportingEventId> = (reportingEventId: T, payload: ReportingPayloadMapping[T]) => void;
|
|
47
52
|
/** Callbacks to invoke when reporting is enabled **/
|