@lwc/engine-core 2.40.2-lbc → 2.41.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.40.2-lbc",
3
+ "version": "2.41.1",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -24,9 +24,9 @@
24
24
  "types/"
25
25
  ],
26
26
  "dependencies": {
27
- "@lwc/aria-reflection": "2.40.2-lbc",
28
- "@lwc/features": "2.40.2-lbc",
29
- "@lwc/shared": "2.40.2-lbc"
27
+ "@lwc/aria-reflection": "2.41.1",
28
+ "@lwc/features": "2.41.1",
29
+ "@lwc/shared": "2.41.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "observable-membrane": "2.0.0"
@@ -44,4 +44,4 @@
44
44
  }
45
45
  }
46
46
  }
47
- }
47
+ }
@@ -1,11 +0,0 @@
1
- /**
2
- @license
3
- Copyright (c) 2015 Simon Friis Vindum.
4
- This code may only be used under the MIT License found at
5
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
6
- Code distributed by Snabbdom as part of the Snabbdom project at
7
- https://github.com/snabbdom/snabbdom/
8
- */
9
- import { VNodes } from './types';
10
- export declare function updateDynamicChildren(parentElm: Node, oldCh: VNodes, newCh: VNodes): void;
11
- export declare function updateStaticChildren(parentElm: Node, oldCh: VNodes, newCh: VNodes): void;
@@ -1,70 +0,0 @@
1
- /**
2
- @license
3
- Copyright (c) 2015 Simon Friis Vindum.
4
- This code may only be used under the MIT License found at
5
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
6
- Code distributed by Snabbdom as part of the Snabbdom project at
7
- https://github.com/snabbdom/snabbdom/
8
- */
9
- import { VM } from '../../framework/vm';
10
- export declare type Key = string | number;
11
- export declare type VNodes = Array<VNode | null>;
12
- export interface VNode {
13
- sel: string | undefined;
14
- data: VNodeData;
15
- children: VNodes | undefined;
16
- elm: Node | undefined;
17
- parentElm?: Element;
18
- text: string | undefined;
19
- key: Key | undefined;
20
- hook: Hooks<any>;
21
- owner: VM;
22
- }
23
- export interface VElement extends VNode {
24
- sel: string;
25
- data: VElementData;
26
- children: VNodes;
27
- elm: Element | undefined;
28
- text: undefined;
29
- key: Key;
30
- }
31
- export interface VCustomElement extends VElement {
32
- mode: 'closed' | 'open';
33
- ctor: any;
34
- aChildren?: VNodes;
35
- }
36
- export interface VText extends VNode {
37
- sel: undefined;
38
- children: undefined;
39
- elm: Node | undefined;
40
- text: string;
41
- key: undefined;
42
- }
43
- export interface VComment extends VNode {
44
- sel: undefined;
45
- children: undefined;
46
- text: string;
47
- key: undefined;
48
- }
49
- export interface VNodeData {
50
- props?: Record<string, any>;
51
- attrs?: Record<string, string | number | boolean>;
52
- className?: string;
53
- style?: string;
54
- classMap?: Record<string, boolean>;
55
- styleDecls?: Array<[string, string, boolean]>;
56
- context?: Record<string, Record<string, any>>;
57
- on?: Record<string, Function>;
58
- svg?: boolean;
59
- }
60
- export interface VElementData extends VNodeData {
61
- key: Key;
62
- }
63
- export interface Hooks<N extends VNode> {
64
- create: (vNode: N) => void;
65
- insert: (vNode: N, parentNode: Node, referenceNode: Node | null) => void;
66
- move: (vNode: N, parentNode: Node, referenceNode: Node | null) => void;
67
- update: (oldVNode: N, vNode: N) => void;
68
- remove: (vNode: N, parentNode: Node) => void;
69
- hydrate: (vNode: N, node: Node) => void;
70
- }
@@ -1,9 +0,0 @@
1
- import { ReactiveObserver } from '../libs/mutation-tracker';
2
- import { VM } from './vm';
3
- export declare class AccessorReactiveObserver extends ReactiveObserver {
4
- private value;
5
- private debouncing;
6
- constructor(vm: VM, set: (v: any) => void);
7
- reset(value?: any): void;
8
- }
9
- export declare function createAccessorReactiveObserver(vm: VM, set: (v: any) => void): AccessorReactiveObserver;
@@ -1,15 +0,0 @@
1
- /**
2
- * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
3
- * libraries to sanitize HTML content. This hook process the content passed via the template to
4
- * lwc:inner-html directive.
5
- * It is meant to be overridden with setSanitizeHtmlContentHook
6
- */
7
- export declare let sanitizeHtmlContentHook: SanitizeHtmlContentHook;
8
- export declare type SanitizeHtmlContentHook = (content: unknown) => string;
9
- /**
10
- * Sets the sanitizeHtmlContentHook.
11
- *
12
- * @param newHookImpl
13
- * @returns oldHookImplementation.
14
- */
15
- export declare function setSanitizeHtmlContentHook(newHookImpl: SanitizeHtmlContentHook): SanitizeHtmlContentHook;
@@ -1,10 +0,0 @@
1
- import { WireAdapterConstructor, ContextValue } from './wiring';
2
- interface ContextConsumer {
3
- provide(newContext: ContextValue): void;
4
- }
5
- interface ContextProviderOptions {
6
- consumerConnectedCallback: (consumer: ContextConsumer) => void;
7
- consumerDisconnectedCallback?: (consumer: ContextConsumer) => void;
8
- }
9
- export declare function createContextProvider(adapter: WireAdapterConstructor): (elm: EventTarget, options: ContextProviderOptions) => void;
10
- export {};
@@ -1,17 +0,0 @@
1
- import { VM } from './vm';
2
- import { WireAdapterConstructor, ContextValue, WireDef } from './wiring';
3
- export declare type WireContextSubscriptionCallback = (subscriptionPayload: WireContextSubscriptionPayload) => void;
4
- export interface WireContextSubscriptionPayload {
5
- setNewContext(newContext: ContextValue): void;
6
- setDisconnectedCallback(disconnectCallback: () => void): void;
7
- }
8
- export interface ContextConsumer {
9
- provide(newContext: ContextValue): void;
10
- }
11
- export interface ContextProviderOptions {
12
- consumerConnectedCallback: (consumer: ContextConsumer) => void;
13
- consumerDisconnectedCallback?: (consumer: ContextConsumer) => void;
14
- }
15
- export declare type ContextProvider = (elmOrComponent: EventTarget, options: ContextProviderOptions) => void;
16
- export declare function createContextProvider(adapter: WireAdapterConstructor): ContextProvider;
17
- export declare function createContextWatcher(vm: VM, wireDef: WireDef, callbackWhenContextIsReady: (newContext: ContextValue) => void): void;
@@ -1,9 +0,0 @@
1
- import { VM } from './vm';
2
- import { VNodes, VCustomElement, VElement, VText, VComment, Hooks } from './vnodes';
3
- export declare const TextHook: Hooks<VText>;
4
- export declare const CommentHook: Hooks<VComment>;
5
- export declare const ElementHook: Hooks<VElement>;
6
- export declare const CustomElementHook: Hooks<VCustomElement>;
7
- export declare function patchChildren(parent: ParentNode, oldCh: VNodes, newCh: VNodes): void;
8
- export declare function hydrateChildrenHook(elmChildren: NodeListOf<ChildNode>, children: VNodes, vm?: VM): void;
9
- export declare function markAsDynamicChildren(children: VNodes): void;
@@ -1,2 +0,0 @@
1
- import { VM } from '../vm';
2
- export declare function getScopeTokenClass(owner: VM): string | null;
@@ -1,10 +0,0 @@
1
- import { VM } from './vm';
2
- export declare type MeasurementPhase = 'constructor' | 'render' | 'patch' | 'connectedCallback' | 'disconnectedCallback' | 'renderedCallback' | 'errorCallback';
3
- export declare enum GlobalMeasurementPhase {
4
- REHYDRATE = "lwc-rehydrate",
5
- HYDRATE = "lwc-hydrate"
6
- }
7
- export declare const startMeasure: (phase: MeasurementPhase, vm: VM) => void;
8
- export declare const endMeasure: (phase: MeasurementPhase, vm: VM) => void;
9
- export declare const startGlobalMeasure: (phase: GlobalMeasurementPhase, vm?: VM<any, any> | undefined) => void;
10
- export declare const endGlobalMeasure: (phase: GlobalMeasurementPhase, vm?: VM<any, any> | undefined) => void;
@@ -1,7 +0,0 @@
1
- import type { RendererAPI } from './renderer';
2
- declare type UpgradeCallback = (elm: HTMLElement) => void;
3
- interface UpgradableCustomElementConstructor extends CustomElementConstructor {
4
- new (upgradeCallback?: UpgradeCallback): HTMLElement;
5
- }
6
- export declare function getUpgradableConstructor(tagName: string, renderer: RendererAPI): CustomElementConstructor | UpgradableCustomElementConstructor;
7
- export {};
@@ -1,28 +0,0 @@
1
- import { LightningElement } from './base-lightning-element';
2
- import { VM } from './vm';
3
- export declare type DataCallback = (value: any) => void;
4
- export declare type ConfigValue = Record<string, any>;
5
- export interface WireAdapter {
6
- update(config: ConfigValue, context?: ContextValue): void;
7
- connect(): void;
8
- disconnect(): void;
9
- }
10
- export declare type WireAdapterSchemaValue = 'optional' | 'required';
11
- export interface WireDef {
12
- method?: (data: any) => void;
13
- adapter: WireAdapterConstructor;
14
- dynamic: string[];
15
- configCallback: ConfigCallback;
16
- }
17
- export declare type ContextValue = Record<string, any>;
18
- export declare type ConfigCallback = (component: LightningElement) => ConfigValue;
19
- export interface WireAdapterConstructor {
20
- new (callback: DataCallback): WireAdapter;
21
- configSchema?: Record<string, WireAdapterSchemaValue>;
22
- contextSchema?: Record<string, WireAdapterSchemaValue>;
23
- }
24
- export declare function storeWiredMethodMeta(descriptor: PropertyDescriptor, adapter: WireAdapterConstructor, configCallback: ConfigCallback, dynamic: string[]): void;
25
- export declare function storeWiredFieldMeta(descriptor: PropertyDescriptor, adapter: WireAdapterConstructor, configCallback: ConfigCallback, dynamic: string[]): void;
26
- export declare function installWireAdapters(vm: VM): void;
27
- export declare function connectWireAdapters(vm: VM): void;
28
- export declare function disconnectWireAdapters(vm: VM): void;
@@ -1,119 +0,0 @@
1
- export declare type HostNode = any;
2
- export declare type HostElement = any;
3
- declare type N = HostNode;
4
- declare type E = HostElement;
5
- export declare let ssr: boolean;
6
- export declare function setSsr(ssrImpl: boolean): void;
7
- export declare let isNativeShadowDefined: boolean;
8
- export declare function setIsNativeShadowDefined(isNativeShadowDefinedImpl: boolean): void;
9
- export declare let isSyntheticShadowDefined: boolean;
10
- export declare function setIsSyntheticShadowDefined(isSyntheticShadowDefinedImpl: boolean): void;
11
- declare type HTMLElementType = typeof HTMLElement;
12
- declare let HTMLElementExported: HTMLElementType;
13
- export { HTMLElementExported as HTMLElement };
14
- export declare function setHTMLElement(HTMLElementImpl: HTMLElementType): void;
15
- declare type isHydratingFunc = () => boolean;
16
- export declare let isHydrating: isHydratingFunc;
17
- export declare function setIsHydrating(isHydratingImpl: isHydratingFunc): void;
18
- declare type insertFunc = (node: N, parent: E, anchor: N | null) => void;
19
- export declare let insert: insertFunc;
20
- export declare function setInsert(insertImpl: insertFunc): void;
21
- declare type removeFunc = (node: N, parent: E) => void;
22
- export declare let remove: removeFunc;
23
- export declare function setRemove(removeImpl: removeFunc): void;
24
- declare type createElementFunc = (tagName: string, namespace?: string) => E;
25
- export declare let createElement: createElementFunc;
26
- export declare function setCreateElement(createElementImpl: createElementFunc): void;
27
- declare type createTextFunc = (content: string) => N;
28
- export declare let createText: createTextFunc;
29
- export declare function setCreateText(createTextImpl: createTextFunc): void;
30
- declare type createCommentFunc = (content: string) => N;
31
- export declare let createComment: createCommentFunc;
32
- export declare function setCreateComment(createCommentImpl: createCommentFunc): void;
33
- declare type nextSiblingFunc = (node: N) => N | null;
34
- export declare let nextSibling: nextSiblingFunc;
35
- export declare function setNextSibling(nextSiblingImpl: nextSiblingFunc): void;
36
- declare type attachShadowFunc = (element: E, options: ShadowRootInit) => N;
37
- export declare let attachShadow: attachShadowFunc;
38
- export declare function setAttachShadow(attachShadowImpl: attachShadowFunc): void;
39
- declare type getPropertyFunc = (node: N, key: string) => any;
40
- export declare let getProperty: getPropertyFunc;
41
- export declare function setGetProperty(getPropertyImpl: getPropertyFunc): void;
42
- declare type setPropertyFunc = (node: N, key: string, value: any) => void;
43
- export declare let setProperty: setPropertyFunc;
44
- export declare function setSetProperty(setPropertyImpl: setPropertyFunc): void;
45
- declare type setTextFunc = (node: N, content: string) => void;
46
- export declare let setText: setTextFunc;
47
- export declare function setSetText(setTextImpl: setTextFunc): void;
48
- declare type getAttributeFunc = (element: E, name: string, namespace?: string | null) => string | null;
49
- export declare let getAttribute: getAttributeFunc;
50
- export declare function setGetAttribute(getAttributeImpl: getAttributeFunc): void;
51
- declare type setAttributeFunc = (element: E, name: string, value: string, namespace?: string | null) => void;
52
- export declare let setAttribute: setAttributeFunc;
53
- export declare function setSetAttribute(setAttributeImpl: setAttributeFunc): void;
54
- declare type removeAttributeFunc = (element: E, name: string, namespace?: string | null) => void;
55
- export declare let removeAttribute: removeAttributeFunc;
56
- export declare function setRemoveAttribute(removeAttributeImpl: removeAttributeFunc): void;
57
- declare type addEventListenerFunc = (target: N, type: string, callback: (event: Event) => any, options?: AddEventListenerOptions | boolean) => void;
58
- export declare let addEventListener: addEventListenerFunc;
59
- export declare function setAddEventListener(addEventListenerImpl: addEventListenerFunc): void;
60
- declare type removeEventListenerFunc = (target: N, type: string, callback: (event: Event) => any, options?: EventListenerOptions | boolean) => void;
61
- export declare let removeEventListener: removeEventListenerFunc;
62
- export declare function setRemoveEventListener(removeEventListenerImpl: removeEventListenerFunc): void;
63
- declare type dispatchEventFunc = (target: N, event: Event) => boolean;
64
- export declare let dispatchEvent: dispatchEventFunc;
65
- export declare function setDispatchEvent(dispatchEventImpl: dispatchEventFunc): void;
66
- declare type getClassListFunc = (element: E) => DOMTokenList;
67
- export declare let getClassList: getClassListFunc;
68
- export declare function setGetClassList(getClassListImpl: getClassListFunc): void;
69
- declare type setCSSStylePropertyFunc = (element: E, name: string, value: string, important: boolean) => void;
70
- export declare let setCSSStyleProperty: setCSSStylePropertyFunc;
71
- export declare function setSetCSSStyleProperty(setCSSStylePropertyImpl: setCSSStylePropertyFunc): void;
72
- declare type getBoundingClientRectFunc = (element: E) => ClientRect;
73
- export declare let getBoundingClientRect: getBoundingClientRectFunc;
74
- export declare function setGetBoundingClientRect(getBoundingClientRectImpl: getBoundingClientRectFunc): void;
75
- declare type querySelectorFunc = (element: E, selectors: string) => E | null;
76
- export declare let querySelector: querySelectorFunc;
77
- export declare function setQuerySelector(querySelectorImpl: querySelectorFunc): void;
78
- declare type querySelectorAllFunc = (element: E, selectors: string) => NodeList;
79
- export declare let querySelectorAll: querySelectorAllFunc;
80
- export declare function setQuerySelectorAll(querySelectorAllImpl: querySelectorAllFunc): void;
81
- declare type getElementsByTagNameFunc = (element: E, tagNameOrWildCard: string) => HTMLCollection;
82
- export declare let getElementsByTagName: getElementsByTagNameFunc;
83
- export declare function setGetElementsByTagName(getElementsByTagNameImpl: getElementsByTagNameFunc): void;
84
- declare type getElementsByClassNameFunc = (element: E, names: string) => HTMLCollection;
85
- export declare let getElementsByClassName: getElementsByClassNameFunc;
86
- export declare function setGetElementsByClassName(getElementsByClassNameImpl: getElementsByClassNameFunc): void;
87
- declare type getChildrenFunc = (element: E) => HTMLCollection;
88
- export declare let getChildren: getChildrenFunc;
89
- export declare function setGetChildren(getChildrenImpl: getChildrenFunc): void;
90
- declare type getChildNodesFunc = (element: E) => NodeList;
91
- export declare let getChildNodes: getChildNodesFunc;
92
- export declare function setGetChildNodes(getChildNodesImpl: getChildNodesFunc): void;
93
- declare type getFirstChildFunc = (element: E) => N | null;
94
- export declare let getFirstChild: getFirstChildFunc;
95
- export declare function setGetFirstChild(getFirstChildImpl: getFirstChildFunc): void;
96
- declare type getFirstElementChildFunc = (element: E) => E | null;
97
- export declare let getFirstElementChild: getFirstElementChildFunc;
98
- export declare function setGetFirstElementChild(getFirstElementChildImpl: getFirstElementChildFunc): void;
99
- declare type getLastChildFunc = (element: E) => N | null;
100
- export declare let getLastChild: getLastChildFunc;
101
- export declare function setGetLastChild(getLastChildImpl: getLastChildFunc): void;
102
- declare type getLastElementChildFunc = (element: E) => E | null;
103
- export declare let getLastElementChild: getLastElementChildFunc;
104
- export declare function setGetLastElementChild(getLastElementChildImpl: getLastElementChildFunc): void;
105
- declare type isConnectedFunc = (node: N) => boolean;
106
- export declare let isConnected: isConnectedFunc;
107
- export declare function setIsConnected(isConnectedImpl: isConnectedFunc): void;
108
- declare type insertStylesheetFunc = (content: string, target?: ShadowRoot) => void;
109
- export declare let insertStylesheet: insertStylesheetFunc;
110
- export declare function setInsertStylesheet(insertStylesheetImpl: insertStylesheetFunc): void;
111
- declare type assertInstanceOfHTMLElementFunc = (elm: any, msg: string) => void;
112
- export declare let assertInstanceOfHTMLElement: assertInstanceOfHTMLElementFunc;
113
- export declare function setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElementImpl: assertInstanceOfHTMLElementFunc): void;
114
- declare type defineCustomElementFunc = (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void;
115
- export declare let defineCustomElement: defineCustomElementFunc;
116
- export declare function setDefineCustomElement(defineCustomElementImpl: defineCustomElementFunc): void;
117
- declare type getCustomElementFunc = (name: string) => CustomElementConstructor | undefined;
118
- export declare let getCustomElement: getCustomElementFunc;
119
- export declare function setGetCustomElement(getCustomElementImpl: getCustomElementFunc): void;
@@ -1 +0,0 @@
1
- export {};