@lwc/engine-core 8.12.6 → 8.12.7-alpha.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/api.d.ts +0 -1
- package/dist/framework/attributes.d.ts +1 -0
- package/dist/framework/base-bridge-element.d.ts +0 -1
- package/dist/framework/base-lightning-element.d.ts +0 -1
- package/dist/framework/check-version-mismatch.d.ts +0 -1
- package/dist/framework/component.d.ts +0 -1
- package/dist/framework/decorators/api.d.ts +0 -1
- package/dist/framework/decorators/register.d.ts +0 -1
- package/dist/framework/decorators/track.d.ts +0 -1
- package/dist/framework/decorators/wire.d.ts +3 -2
- package/dist/framework/def.d.ts +0 -1
- package/dist/framework/fragment-cache.d.ts +0 -1
- package/dist/framework/freeze-template.d.ts +0 -1
- package/dist/framework/get-component-constructor.d.ts +0 -1
- package/dist/framework/hot-swaps.d.ts +0 -1
- package/dist/framework/html-element.d.ts +0 -1
- package/dist/framework/html-properties.d.ts +0 -1
- package/dist/framework/hydration.d.ts +0 -1
- package/dist/framework/invoker.d.ts +1 -3
- package/dist/framework/main.d.ts +0 -1
- package/dist/framework/membrane.d.ts +0 -1
- package/dist/framework/modules/attrs.d.ts +0 -1
- package/dist/framework/modules/computed-class-attr.d.ts +0 -1
- package/dist/framework/modules/computed-style-attr.d.ts +0 -1
- package/dist/framework/modules/events.d.ts +0 -1
- package/dist/framework/modules/props.d.ts +0 -1
- package/dist/framework/modules/refs.d.ts +0 -1
- package/dist/framework/modules/static-class-attr.d.ts +0 -1
- package/dist/framework/modules/static-parts.d.ts +0 -1
- package/dist/framework/modules/static-style-attr.d.ts +0 -1
- package/dist/framework/modules/text.d.ts +0 -1
- package/dist/framework/mutation-logger.d.ts +0 -1
- package/dist/framework/mutation-tracker.d.ts +0 -1
- package/dist/framework/observed-fields.d.ts +0 -1
- package/dist/framework/overridable-hooks.d.ts +6 -0
- package/dist/framework/profiler.d.ts +3 -5
- package/dist/framework/readonly.d.ts +0 -1
- package/dist/framework/renderer.d.ts +0 -1
- package/dist/framework/rendering.d.ts +0 -1
- package/dist/framework/reporting.d.ts +0 -1
- package/dist/framework/restrictions.d.ts +0 -1
- package/dist/framework/runtime-instrumentation.d.ts +0 -1
- package/dist/framework/sanitized-html-content.d.ts +7 -2
- package/dist/framework/secure-template.d.ts +0 -1
- package/dist/framework/shadow-migration-mode.d.ts +0 -1
- package/dist/framework/stylesheet.d.ts +0 -1
- package/dist/framework/template.d.ts +0 -1
- package/dist/framework/update-component-value.d.ts +0 -1
- package/dist/framework/utils.d.ts +0 -2
- package/dist/framework/vm.d.ts +0 -1
- package/dist/framework/vnodes.d.ts +0 -1
- package/dist/framework/weak-multimap.d.ts +0 -1
- package/dist/framework/wiring/context.d.ts +0 -1
- package/dist/framework/wiring/index.d.ts +0 -1
- package/dist/framework/wiring/types.d.ts +0 -1
- package/dist/framework/wiring/wiring.d.ts +0 -1
- package/dist/index.cjs.js +130 -197
- package/dist/index.d.ts +0 -1
- package/dist/index.js +130 -197
- package/dist/libs/aria-reflection/aria-reflection.d.ts +1 -0
- package/dist/libs/aria-reflection/attr-reflection.d.ts +2 -0
- package/dist/libs/mutation-tracker/index.d.ts +0 -1
- package/dist/libs/reflection/aria-reflection.d.ts +0 -1
- package/dist/libs/reflection/attr-reflection.d.ts +0 -1
- package/dist/libs/reflection/index.d.ts +0 -1
- package/dist/libs/signal-tracker/index.d.ts +0 -1
- package/dist/patches/detect-non-standard-aria.d.ts +0 -1
- package/dist/patches/detect-synthetic-cross-root-aria.d.ts +0 -1
- package/dist/shared/circular-module-dependencies.d.ts +0 -1
- package/dist/shared/error.d.ts +0 -1
- package/dist/shared/format.d.ts +0 -1
- package/dist/shared/logger.d.ts +0 -1
- package/package.json +5 -5
package/dist/framework/api.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultDefHTMLPropertyNames: string[];
|
|
@@ -5,4 +5,3 @@ export interface HTMLElementConstructor {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function HTMLBridgeElementFactory(SuperClass: HTMLElementConstructor, publicProperties: string[], methods: string[], observedFields: string[], proto: LightningElement | null, hasCustomSuperClass: boolean): HTMLElementConstructor;
|
|
7
7
|
export declare const BaseBridgeElement: HTMLElementConstructor;
|
|
8
|
-
//# sourceMappingURL=base-bridge-element.d.ts.map
|
|
@@ -47,4 +47,3 @@ export interface LightningElement extends HTMLElementTheGoodParts, AccessibleEle
|
|
|
47
47
|
export declare const LightningElement: LightningElementConstructor;
|
|
48
48
|
export declare const lightningBasedDescriptors: PropertyDescriptorMap;
|
|
49
49
|
export {};
|
|
50
|
-
//# sourceMappingURL=base-lightning-element.d.ts.map
|
|
@@ -11,4 +11,3 @@ import type { Stylesheet } from '@lwc/shared';
|
|
|
11
11
|
export declare function checkVersionMismatch(func: Template, type: 'template'): void;
|
|
12
12
|
export declare function checkVersionMismatch(func: Stylesheet, type: 'stylesheet'): void;
|
|
13
13
|
export declare function checkVersionMismatch(func: LightningElementConstructor, type: 'component'): void;
|
|
14
|
-
//# sourceMappingURL=check-version-mismatch.d.ts.map
|
|
@@ -25,4 +25,3 @@ export declare function renderComponent(vm: VM): VNodes;
|
|
|
25
25
|
export declare function markComponentAsDirty(vm: VM): void;
|
|
26
26
|
export declare function getWrappedComponentsListener(vm: VM, listener: EventListener): EventListener;
|
|
27
27
|
export {};
|
|
28
|
-
//# sourceMappingURL=component.d.ts.map
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
export default function api(value: unknown, context: ClassMemberDecoratorContext): void;
|
|
7
7
|
export declare function createPublicPropertyDescriptor(key: string): PropertyDescriptor;
|
|
8
8
|
export declare function createPublicAccessorDescriptor(key: PropertyKey, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
9
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
export default function track(target: undefined, context: ClassFieldDecoratorContext): void;
|
|
7
7
|
export default function track<T>(target: T, context?: never): T;
|
|
8
8
|
export declare function internalTrackDecorator(key: string): PropertyDescriptor;
|
|
9
|
-
//# sourceMappingURL=track.d.ts.map
|
|
@@ -24,7 +24,8 @@ interface WireDecorator<Value, Class> {
|
|
|
24
24
|
* \@wire(getBook, { id: '$bookId'}) book;
|
|
25
25
|
* }
|
|
26
26
|
*/
|
|
27
|
-
export default function wire<ReactiveConfig extends ConfigValue = ConfigValue, Value = any, Context extends ContextValue = ContextValue, Class = LightningElement>(adapter: WireAdapterConstructor<ReplaceReactiveValues<ReactiveConfig, Class>, Value, Context
|
|
27
|
+
export default function wire<ReactiveConfig extends ConfigValue = ConfigValue, Value = any, Context extends ContextValue = ContextValue, Class = LightningElement>(adapter: WireAdapterConstructor<ReplaceReactiveValues<ReactiveConfig, Class>, Value, Context> | {
|
|
28
|
+
adapter: WireAdapterConstructor<ReplaceReactiveValues<ReactiveConfig, Class>, Value, Context>;
|
|
29
|
+
}, config?: ReactiveConfig): WireDecorator<Value, Class>;
|
|
28
30
|
export declare function internalWireFieldDecorator(key: string): PropertyDescriptor;
|
|
29
31
|
export {};
|
|
30
|
-
//# sourceMappingURL=wire.d.ts.map
|
package/dist/framework/def.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export declare const enum FragmentCacheKey {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function getFromFragmentCache(cacheKey: number, strings: string[]): Element | undefined;
|
|
6
6
|
export declare function setInFragmentCache(cacheKey: number, strings: string[], element: Element): void;
|
|
7
|
-
//# sourceMappingURL=fragment-cache.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare function setActiveVM(vm: VM): void;
|
|
|
9
9
|
export declare function swapTemplate(oldTpl: Template, newTpl: Template): boolean;
|
|
10
10
|
export declare function swapComponent(oldComponent: LightningElementConstructor, newComponent: LightningElementConstructor): boolean;
|
|
11
11
|
export declare function swapStyle(oldStyle: Stylesheet, newStyle: Stylesheet): boolean;
|
|
12
|
-
//# sourceMappingURL=hot-swaps.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LightningElement } from './base-lightning-element';
|
|
2
1
|
import type { VM } from './vm';
|
|
3
|
-
import type { LightningElementConstructor } from './base-lightning-element';
|
|
2
|
+
import type { LightningElement, LightningElementConstructor } from './base-lightning-element';
|
|
4
3
|
import type { VNodes } from './vnodes';
|
|
5
4
|
export declare let isInvokingRender: boolean;
|
|
6
5
|
export declare let vmBeingConstructed: VM | null;
|
|
@@ -9,4 +8,3 @@ export declare function invokeComponentCallback(vm: VM, fn: (...args: any[]) =>
|
|
|
9
8
|
export declare function invokeComponentConstructor(vm: VM, Ctor: LightningElementConstructor): void;
|
|
10
9
|
export declare function invokeComponentRenderMethod(vm: VM): VNodes;
|
|
11
10
|
export declare function invokeEventListener(vm: VM, fn: EventListener, thisValue: LightningElement | undefined, event: Event): void;
|
|
12
|
-
//# sourceMappingURL=invoker.d.ts.map
|
package/dist/framework/main.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export declare function unwrap(value: any): any;
|
|
|
8
8
|
export declare function getReadOnlyProxy(value: any): any;
|
|
9
9
|
export declare function getReactiveProxy(value: any): any;
|
|
10
10
|
export declare function markLockerLiveObject(obj: any): void;
|
|
11
|
-
//# sourceMappingURL=membrane.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { RendererAPI } from '../renderer';
|
|
|
2
2
|
import type { VBaseElement, VStatic, VStaticPartElement } from '../vnodes';
|
|
3
3
|
export declare function patchAttributes(oldVnode: VBaseElement | VStaticPartElement | null, vnode: VBaseElement | VStaticPartElement, renderer: RendererAPI): void;
|
|
4
4
|
export declare function patchSlotAssignment(oldVnode: VBaseElement | VStatic | null, vnode: VBaseElement | VStatic, renderer: RendererAPI): void;
|
|
5
|
-
//# sourceMappingURL=attrs.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { RendererAPI } from '../renderer';
|
|
|
2
2
|
import type { VBaseElement, VStaticPartElement } from '../vnodes';
|
|
3
3
|
export declare function getMapFromClassName(className: string | undefined): Record<string, boolean>;
|
|
4
4
|
export declare function patchClassAttribute(oldVnode: VBaseElement | VStaticPartElement | null, vnode: VBaseElement | VStaticPartElement, renderer: RendererAPI): void;
|
|
5
|
-
//# sourceMappingURL=computed-class-attr.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { RendererAPI } from '../renderer';
|
|
|
2
2
|
import type { VBaseElement, VStaticPartElement } from '../vnodes';
|
|
3
3
|
import type { VM } from '../vm';
|
|
4
4
|
export declare function patchStyleAttribute(oldVnode: VBaseElement | VStaticPartElement | null, vnode: VBaseElement | VStaticPartElement, renderer: RendererAPI, owner: VM): void;
|
|
5
|
-
//# sourceMappingURL=computed-style-attr.d.ts.map
|
|
@@ -3,4 +3,3 @@ import type { VComment, VStaticPartText, VText } from '../vnodes';
|
|
|
3
3
|
export declare function patchTextVNode(n1: VText, n2: VText, renderer: RendererAPI): void;
|
|
4
4
|
export declare function patchTextVStaticPart(n1: VStaticPartText | null, n2: VStaticPartText, renderer: RendererAPI): void;
|
|
5
5
|
export declare function updateTextContent(vnode: VText | VComment | VStaticPartText, renderer: RendererAPI): void;
|
|
6
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -32,4 +32,3 @@ export declare function associateReactiveObserverWithVM(reactiveObserver: Reacti
|
|
|
32
32
|
* @param target - tracked target object
|
|
33
33
|
*/
|
|
34
34
|
export declare function trackTargetForMutationLogging(key: PropertyKey, target: any): void;
|
|
35
|
-
//# sourceMappingURL=mutation-logger.d.ts.map
|
|
@@ -6,4 +6,3 @@ export declare function componentValueObserved(vm: VM, key: PropertyKey, target?
|
|
|
6
6
|
export declare function createReactiveObserver(callback: CallbackFunction): ReactiveObserver;
|
|
7
7
|
export * from '../libs/mutation-tracker';
|
|
8
8
|
export * from '../libs/signal-tracker';
|
|
9
|
-
//# sourceMappingURL=mutation-tracker.d.ts.map
|
|
@@ -9,11 +9,10 @@ export declare const enum OperationId {
|
|
|
9
9
|
RenderedCallback = 4,
|
|
10
10
|
DisconnectedCallback = 5,
|
|
11
11
|
ErrorCallback = 6,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
GlobalSsrHydrate = 9
|
|
12
|
+
GlobalHydrate = 7,
|
|
13
|
+
GlobalRehydrate = 8
|
|
15
14
|
}
|
|
16
|
-
type GlobalOperationId = OperationId.
|
|
15
|
+
type GlobalOperationId = OperationId.GlobalHydrate | OperationId.GlobalRehydrate;
|
|
17
16
|
declare const enum Phase {
|
|
18
17
|
Start = 0,
|
|
19
18
|
Stop = 1
|
|
@@ -32,4 +31,3 @@ export declare function logGlobalOperationStartWithVM(opId: GlobalOperationId, v
|
|
|
32
31
|
export declare function logGlobalOperationEnd(opId: GlobalOperationId, mutationLogs: MutationLog[] | undefined): void;
|
|
33
32
|
export declare function logGlobalOperationEndWithVM(opId: GlobalOperationId, vm: VM): void;
|
|
34
33
|
export {};
|
|
35
|
-
//# sourceMappingURL=profiler.d.ts.map
|
|
@@ -6,4 +6,3 @@ export declare function mount(node: VNode, parent: ParentNode, renderer: Rendere
|
|
|
6
6
|
export declare function removeNode(node: Node, parent: ParentNode, renderer: RendererAPI): void;
|
|
7
7
|
export declare function allocateChildren(vnode: VCustomElement, vm: VM): void;
|
|
8
8
|
export declare function markAsDynamicChildren(children: VNodes): void;
|
|
9
|
-
//# sourceMappingURL=rendering.d.ts.map
|
|
@@ -7,4 +7,3 @@ export declare function patchElementWithRestrictions(elm: Element, options: {
|
|
|
7
7
|
}): void;
|
|
8
8
|
export declare function patchShadowRootWithRestrictions(sr: ShadowRoot): void;
|
|
9
9
|
export declare function patchCustomElementWithRestrictions(elm: HTMLElement): void;
|
|
10
|
-
//# sourceMappingURL=restrictions.d.ts.map
|
|
@@ -3,7 +3,6 @@ declare const sanitizedHtmlContentSymbol: unique symbol;
|
|
|
3
3
|
export type SanitizedHtmlContent = {
|
|
4
4
|
[sanitizedHtmlContentSymbol]: unknown;
|
|
5
5
|
};
|
|
6
|
-
export declare function unwrapIfNecessary(object: any): any;
|
|
7
6
|
/**
|
|
8
7
|
* Wrap a pre-sanitized string designated for `.innerHTML` via `lwc:inner-html`
|
|
9
8
|
* as an object with a Symbol that only we have access to.
|
|
@@ -20,5 +19,11 @@ export declare function createSanitizedHtmlContent(sanitizedString: unknown): Sa
|
|
|
20
19
|
* @param value - value to set
|
|
21
20
|
*/
|
|
22
21
|
export declare function safelySetProperty(setProperty: RendererAPI['setProperty'], elm: Element, key: string, value: any): void;
|
|
22
|
+
/**
|
|
23
|
+
* Given two objects (likely either a string or a SanitizedHtmlContent object), return true if their
|
|
24
|
+
* string values are equivalent.
|
|
25
|
+
* @param first
|
|
26
|
+
* @param second
|
|
27
|
+
*/
|
|
28
|
+
export declare function isSanitizedHtmlContentEqual(first: any, second: any): boolean;
|
|
23
29
|
export {};
|
|
24
|
-
//# sourceMappingURL=sanitized-html-content.d.ts.map
|
|
@@ -22,4 +22,3 @@ export declare function getScopeTokenClass(owner: VM, legacy: boolean): string |
|
|
|
22
22
|
export declare function getStylesheetTokenHost(vnode: VCustomElement): string | null;
|
|
23
23
|
export declare function createStylesheet(vm: VM, stylesheets: ReadonlyArray<string>): VNode[] | null;
|
|
24
24
|
export declare function unrenderStylesheet(stylesheet: Stylesheet): void;
|
|
25
|
-
//# sourceMappingURL=stylesheet.d.ts.map
|
|
@@ -25,4 +25,3 @@ export declare const parseSVGFragment: (strings: string[], ...keys: (string | nu
|
|
|
25
25
|
export declare function evaluateTemplate(vm: VM, html: Template): VNodes;
|
|
26
26
|
export declare function computeHasScopedStyles(template: Template, vm: VM | undefined): boolean;
|
|
27
27
|
export declare function hasStyles(stylesheets: Stylesheets | undefined | null): stylesheets is Stylesheets;
|
|
28
|
-
//# sourceMappingURL=template.d.ts.map
|
|
@@ -12,6 +12,4 @@ export declare function cloneAndOmitKey(object: {
|
|
|
12
12
|
};
|
|
13
13
|
export declare function assertNotProd(): void;
|
|
14
14
|
export declare function shouldBeFormAssociated(Ctor: LightningElementConstructor): boolean;
|
|
15
|
-
export declare function safeHasProp<K extends PropertyKey>(obj: unknown, prop: K): obj is Record<K, unknown>;
|
|
16
15
|
export {};
|
|
17
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/framework/vm.d.ts
CHANGED
|
@@ -192,4 +192,3 @@ export type FormRestoreReason = 'restore' | 'autocomplete';
|
|
|
192
192
|
export declare function runFormStateRestoreCallback(elm: HTMLElement, state: FormRestoreState | null, reason: FormRestoreReason): void;
|
|
193
193
|
export declare function resetRefVNodes(vm: VM): void;
|
|
194
194
|
export {};
|
|
195
|
-
//# sourceMappingURL=vm.d.ts.map
|
|
@@ -132,4 +132,3 @@ export declare function isVScopedSlotFragment(vnode: VNode): vnode is VScopedSlo
|
|
|
132
132
|
export declare function isVStatic(vnode: VNode): vnode is VStatic;
|
|
133
133
|
export declare function isVStaticPartElement(vnode: VStaticPart): vnode is VStaticPartElement;
|
|
134
134
|
export declare function isVStaticPartText(vnode: VStaticPart): vnode is VStaticPartText;
|
|
135
|
-
//# sourceMappingURL=vnodes.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { VM } from '../vm';
|
|
|
2
2
|
import type { ContextProvider, ContextValue, RegisterContextProviderFn, WireAdapterConstructor, WireDef } from './types';
|
|
3
3
|
export declare function createContextProviderWithRegister(adapter: WireAdapterConstructor, registerContextProvider: RegisterContextProviderFn): ContextProvider;
|
|
4
4
|
export declare function createContextWatcher(vm: VM, wireDef: WireDef, callbackWhenContextIsReady: (newContext: ContextValue) => void): void;
|
|
5
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { createContextProviderWithRegister, createContextWatcher } from './context';
|
|
2
2
|
export { ConfigCallback, ConfigValue, ContextConsumer, ContextProvider, ContextProviderOptions, ContextValue, DataCallback, ReplaceReactiveValues, WireAdapter, WireAdapterConstructor, WireAdapterSchemaValue, WireContextSubscriptionPayload, WireContextSubscriptionCallback, } from './types';
|
|
3
3
|
export { connectWireAdapters, disconnectWireAdapters, installWireAdapters, storeWiredFieldMeta, storeWiredMethodMeta, } from './wiring';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,4 +5,3 @@ export declare function storeWiredFieldMeta(descriptor: PropertyDescriptor, adap
|
|
|
5
5
|
export declare function installWireAdapters(vm: VM): void;
|
|
6
6
|
export declare function connectWireAdapters(vm: VM): void;
|
|
7
7
|
export declare function disconnectWireAdapters(vm: VM): void;
|
|
8
|
-
//# sourceMappingURL=wiring.d.ts.map
|