@lwc/engine-core 8.12.2 → 8.12.4
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/LICENSE.md +1 -1
- package/dist/framework/api.d.ts +1 -0
- package/dist/framework/base-bridge-element.d.ts +1 -0
- package/dist/framework/base-lightning-element.d.ts +1 -0
- package/dist/framework/check-version-mismatch.d.ts +1 -0
- package/dist/framework/component.d.ts +1 -0
- package/dist/framework/decorators/api.d.ts +1 -0
- package/dist/framework/decorators/register.d.ts +1 -0
- package/dist/framework/decorators/track.d.ts +1 -0
- package/dist/framework/decorators/wire.d.ts +1 -0
- package/dist/framework/def.d.ts +1 -0
- package/dist/framework/fragment-cache.d.ts +1 -0
- package/dist/framework/freeze-template.d.ts +1 -0
- package/dist/framework/get-component-constructor.d.ts +1 -0
- package/dist/framework/hot-swaps.d.ts +1 -0
- package/dist/framework/html-element.d.ts +1 -0
- package/dist/framework/html-properties.d.ts +1 -0
- package/dist/framework/hydration.d.ts +1 -0
- package/dist/framework/invoker.d.ts +1 -0
- package/dist/framework/main.d.ts +1 -0
- package/dist/framework/membrane.d.ts +1 -0
- package/dist/framework/modules/attrs.d.ts +1 -0
- package/dist/framework/modules/computed-class-attr.d.ts +1 -0
- package/dist/framework/modules/computed-style-attr.d.ts +1 -0
- package/dist/framework/modules/events.d.ts +1 -0
- package/dist/framework/modules/props.d.ts +1 -0
- package/dist/framework/modules/refs.d.ts +1 -0
- package/dist/framework/modules/static-class-attr.d.ts +1 -0
- package/dist/framework/modules/static-parts.d.ts +1 -0
- package/dist/framework/modules/static-style-attr.d.ts +1 -0
- package/dist/framework/modules/text.d.ts +1 -0
- package/dist/framework/mutation-logger.d.ts +1 -0
- package/dist/framework/mutation-tracker.d.ts +1 -0
- package/dist/framework/observed-fields.d.ts +1 -0
- package/dist/framework/profiler.d.ts +1 -0
- package/dist/framework/readonly.d.ts +1 -0
- package/dist/framework/renderer.d.ts +1 -0
- package/dist/framework/rendering.d.ts +1 -0
- package/dist/framework/reporting.d.ts +1 -0
- package/dist/framework/restrictions.d.ts +1 -0
- package/dist/framework/runtime-instrumentation.d.ts +1 -0
- package/dist/framework/sanitized-html-content.d.ts +1 -0
- package/dist/framework/secure-template.d.ts +1 -0
- package/dist/framework/shadow-migration-mode.d.ts +1 -0
- package/dist/framework/stylesheet.d.ts +1 -0
- package/dist/framework/template.d.ts +1 -0
- package/dist/framework/update-component-value.d.ts +1 -0
- package/dist/framework/utils.d.ts +2 -0
- package/dist/framework/vm.d.ts +1 -0
- package/dist/framework/vnodes.d.ts +1 -0
- package/dist/framework/weak-multimap.d.ts +1 -0
- package/dist/framework/wiring/context.d.ts +1 -0
- package/dist/framework/wiring/index.d.ts +1 -0
- package/dist/framework/wiring/types.d.ts +1 -0
- package/dist/framework/wiring/wiring.d.ts +1 -0
- package/dist/index.cjs.js +15 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -5
- package/dist/libs/mutation-tracker/index.d.ts +1 -0
- package/dist/libs/reflection/aria-reflection.d.ts +1 -0
- package/dist/libs/reflection/attr-reflection.d.ts +1 -0
- package/dist/libs/reflection/index.d.ts +1 -0
- package/dist/libs/signal-tracker/index.d.ts +1 -0
- package/dist/patches/detect-non-standard-aria.d.ts +1 -0
- package/dist/patches/detect-synthetic-cross-root-aria.d.ts +1 -0
- package/dist/shared/circular-module-dependencies.d.ts +1 -0
- package/dist/shared/error.d.ts +1 -0
- package/dist/shared/format.d.ts +1 -0
- package/dist/shared/logger.d.ts +1 -0
- package/package.json +6 -5
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.js.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
MIT LICENSE
|
|
4
4
|
|
|
5
|
-
Copyright (c)
|
|
5
|
+
Copyright (c) 2025, Salesforce, Inc.
|
|
6
6
|
All rights reserved.
|
|
7
7
|
|
|
8
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
package/dist/framework/api.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ 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,3 +47,4 @@ 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,3 +11,4 @@ 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,3 +25,4 @@ 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,3 +6,4 @@
|
|
|
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,3 +6,4 @@
|
|
|
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
|
|
@@ -27,3 +27,4 @@ interface WireDecorator<Value, Class> {
|
|
|
27
27
|
export default function wire<ReactiveConfig extends ConfigValue = ConfigValue, Value = any, Context extends ContextValue = ContextValue, Class = LightningElement>(adapter: WireAdapterConstructor<ReplaceReactiveValues<ReactiveConfig, Class>, Value, Context>, config?: ReactiveConfig): WireDecorator<Value, Class>;
|
|
28
28
|
export declare function internalWireFieldDecorator(key: string): PropertyDescriptor;
|
|
29
29
|
export {};
|
|
30
|
+
//# sourceMappingURL=wire.d.ts.map
|
package/dist/framework/def.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ 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,3 +9,4 @@ 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
|
|
@@ -8,3 +8,4 @@ export declare function invokeComponentCallback(vm: VM, fn: (...args: any[]) =>
|
|
|
8
8
|
export declare function invokeComponentConstructor(vm: VM, Ctor: LightningElementConstructor): void;
|
|
9
9
|
export declare function invokeComponentRenderMethod(vm: VM): VNodes;
|
|
10
10
|
export declare function invokeEventListener(vm: VM, fn: EventListener, thisValue: LightningElement | undefined, event: Event): void;
|
|
11
|
+
//# sourceMappingURL=invoker.d.ts.map
|
package/dist/framework/main.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ 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,3 +2,4 @@ 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,3 +2,4 @@ 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,3 +2,4 @@ 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,3 +3,4 @@ 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,3 +32,4 @@ 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,3 +6,4 @@ 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
|
|
@@ -31,3 +31,4 @@ export declare function logGlobalOperationStartWithVM(opId: GlobalOperationId, v
|
|
|
31
31
|
export declare function logGlobalOperationEnd(opId: GlobalOperationId, mutationLogs: MutationLog[] | undefined): void;
|
|
32
32
|
export declare function logGlobalOperationEndWithVM(opId: GlobalOperationId, vm: VM): void;
|
|
33
33
|
export {};
|
|
34
|
+
//# sourceMappingURL=profiler.d.ts.map
|
|
@@ -6,3 +6,4 @@ 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,3 +7,4 @@ 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
|
|
@@ -22,3 +22,4 @@ 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,3 +25,4 @@ 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,4 +12,6 @@ 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>;
|
|
15
16
|
export {};
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
package/dist/framework/vm.d.ts
CHANGED
|
@@ -192,3 +192,4 @@ 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,3 +132,4 @@ 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,3 +2,4 @@ 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,3 +1,4 @@
|
|
|
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,3 +5,4 @@ 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
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -251,6 +251,16 @@ function shouldBeFormAssociated(Ctor) {
|
|
|
251
251
|
}
|
|
252
252
|
return ctorFormAssociated && apiFeatureEnabled;
|
|
253
253
|
}
|
|
254
|
+
// check if a property is in an object, and if the object throws an error merely because we are
|
|
255
|
+
// checking if the property exists, return false
|
|
256
|
+
function safeHasProp(obj, prop) {
|
|
257
|
+
try {
|
|
258
|
+
return prop in obj;
|
|
259
|
+
}
|
|
260
|
+
catch (_err) {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
254
264
|
|
|
255
265
|
/*
|
|
256
266
|
* Copyright (c) 2024, Salesforce, Inc.
|
|
@@ -591,14 +601,14 @@ function componentValueObserved(vm, key, target = {}) {
|
|
|
591
601
|
valueObserved(component, key);
|
|
592
602
|
}
|
|
593
603
|
// The portion of reactivity that's exposed to signals is to subscribe a callback to re-render the VM (templates).
|
|
594
|
-
// We check
|
|
604
|
+
// We check the following to ensure re-render is subscribed at the correct time.
|
|
595
605
|
// 1. The template is currently being rendered (there is a template reactive observer)
|
|
596
606
|
// 2. There was a call to a getter to access the signal (happens during vnode generation)
|
|
597
607
|
if (lwcRuntimeFlags.ENABLE_EXPERIMENTAL_SIGNALS &&
|
|
598
608
|
shared.isObject(target) &&
|
|
599
609
|
!shared.isNull(target) &&
|
|
600
|
-
'value'
|
|
601
|
-
'subscribe'
|
|
610
|
+
safeHasProp(target, 'value') &&
|
|
611
|
+
safeHasProp(target, 'subscribe') &&
|
|
602
612
|
shared.isFunction(target.subscribe) &&
|
|
603
613
|
shared.isTrustedSignal(target) &&
|
|
604
614
|
// Only subscribe if a template is being rendered by the engine
|
|
@@ -8421,5 +8431,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8421
8431
|
exports.track = track;
|
|
8422
8432
|
exports.unwrap = unwrap;
|
|
8423
8433
|
exports.wire = wire;
|
|
8424
|
-
/** version: 8.12.
|
|
8434
|
+
/** version: 8.12.4 */
|
|
8425
8435
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
|
3
3
|
*/
|
|
4
4
|
import { noop, StringToLowerCase, isNull, ArrayPush as ArrayPush$1, ArrayJoin, isFrozen, isUndefined as isUndefined$1, defineProperty, seal, create, isAPIFeatureEnabled, isFunction as isFunction$1, keys, ArrayFilter, isObject, isArray as isArray$1, getOwnPropertyNames as getOwnPropertyNames$1, getOwnPropertySymbols as getOwnPropertySymbols$1, toString, isString, ArrayIndexOf, ArrayPop, isFalse, isTrustedSignal, hasOwnProperty as hasOwnProperty$1, entries, AriaPropNameToAttrNameMap, getPropertyDescriptor, AriaAttrNameToPropNameMap, forEach, REFLECTIVE_GLOBAL_PROPERTY_SET, defineProperties, getPrototypeOf as getPrototypeOf$1, setPrototypeOf, assign, assert, freeze, KEY__SYNTHETIC_MODE, getOwnPropertyDescriptor as getOwnPropertyDescriptor$1, LWC_VERSION_COMMENT_REGEX, LWC_VERSION, getOwnPropertyDescriptors, htmlPropertyToAttribute, ArraySlice, ArrayMap, isTrue, KEY__SCOPED_CSS, KEY__NATIVE_ONLY_CSS, ArraySplice, flattenStylesheets, kebabCaseToCamelCase, StringCharCodeAt, XML_NAMESPACE, XLINK_NAMESPACE, StringSlice, SVG_NAMESPACE, KEY__SHADOW_STATIC, KEY__SHADOW_RESOLVER, ArraySome, isNumber, StringReplace, sanitizeHtmlContent, normalizeClass, ArraySort, ArrayFrom, htmlEscape, StringCharAt, LOWEST_API_VERSION, ArrayUnshift, KEY__NATIVE_GET_ELEMENT_BY_ID, KEY__NATIVE_QUERY_SELECTOR_ALL, ID_REFERENCING_ATTRIBUTES_SET, KEY__SHADOW_TOKEN, StringSplit, parseStyleText, arrayEvery, ArrayCopyWithin, ArrayFill, ArrayReverse, ArrayShift } from '@lwc/shared';
|
|
5
5
|
export { setHooks, setTrustedSignalSet } from '@lwc/shared';
|
|
@@ -248,6 +248,16 @@ function shouldBeFormAssociated(Ctor) {
|
|
|
248
248
|
}
|
|
249
249
|
return ctorFormAssociated && apiFeatureEnabled;
|
|
250
250
|
}
|
|
251
|
+
// check if a property is in an object, and if the object throws an error merely because we are
|
|
252
|
+
// checking if the property exists, return false
|
|
253
|
+
function safeHasProp(obj, prop) {
|
|
254
|
+
try {
|
|
255
|
+
return prop in obj;
|
|
256
|
+
}
|
|
257
|
+
catch (_err) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
251
261
|
|
|
252
262
|
/*
|
|
253
263
|
* Copyright (c) 2024, Salesforce, Inc.
|
|
@@ -588,14 +598,14 @@ function componentValueObserved(vm, key, target = {}) {
|
|
|
588
598
|
valueObserved(component, key);
|
|
589
599
|
}
|
|
590
600
|
// The portion of reactivity that's exposed to signals is to subscribe a callback to re-render the VM (templates).
|
|
591
|
-
// We check
|
|
601
|
+
// We check the following to ensure re-render is subscribed at the correct time.
|
|
592
602
|
// 1. The template is currently being rendered (there is a template reactive observer)
|
|
593
603
|
// 2. There was a call to a getter to access the signal (happens during vnode generation)
|
|
594
604
|
if (lwcRuntimeFlags.ENABLE_EXPERIMENTAL_SIGNALS &&
|
|
595
605
|
isObject(target) &&
|
|
596
606
|
!isNull(target) &&
|
|
597
|
-
'value'
|
|
598
|
-
'subscribe'
|
|
607
|
+
safeHasProp(target, 'value') &&
|
|
608
|
+
safeHasProp(target, 'subscribe') &&
|
|
599
609
|
isFunction$1(target.subscribe) &&
|
|
600
610
|
isTrustedSignal(target) &&
|
|
601
611
|
// Only subscribe if a template is being rendered by the engine
|
|
@@ -8367,5 +8377,5 @@ function readonly(obj) {
|
|
|
8367
8377
|
}
|
|
8368
8378
|
|
|
8369
8379
|
export { BaseBridgeElement, LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
8370
|
-
/** version: 8.12.
|
|
8380
|
+
/** version: 8.12.4 */
|
|
8371
8381
|
//# sourceMappingURL=index.js.map
|
|
@@ -14,3 +14,4 @@ interface CircularModuleDependency<M extends object> {
|
|
|
14
14
|
export declare function resolveCircularModuleDependency<M extends MaybeModule>(fn: CircularModuleDependency<M>): M;
|
|
15
15
|
export declare function isCircularModuleDependency(obj: unknown): obj is CircularModuleDependency<any>;
|
|
16
16
|
export {};
|
|
17
|
+
//# sourceMappingURL=circular-module-dependencies.d.ts.map
|
package/dist/shared/error.d.ts
CHANGED
package/dist/shared/format.d.ts
CHANGED
package/dist/shared/logger.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import type { VM } from '../framework/vm';
|
|
|
2
2
|
export declare function logError(message: string, vm?: VM): void;
|
|
3
3
|
export declare function logWarn(message: string, vm?: VM): void;
|
|
4
4
|
export declare function logWarnOnce(message: string, vm?: VM): void;
|
|
5
|
+
//# sourceMappingURL=logger.d.ts.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
|
5
5
|
],
|
|
6
6
|
"name": "@lwc/engine-core",
|
|
7
|
-
"version": "8.12.
|
|
7
|
+
"version": "8.12.4",
|
|
8
8
|
"description": "Core LWC engine APIs.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"module": "dist/index.js",
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
|
-
"dist"
|
|
32
|
+
"dist/**/*.js",
|
|
33
|
+
"dist/**/*.d.ts"
|
|
33
34
|
],
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build": "rollup --config ../../../scripts/rollup/rollup.config.js",
|
|
@@ -45,9 +46,9 @@
|
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@lwc/features": "8.12.
|
|
49
|
-
"@lwc/shared": "8.12.
|
|
50
|
-
"@lwc/signals": "8.12.
|
|
49
|
+
"@lwc/features": "8.12.4",
|
|
50
|
+
"@lwc/shared": "8.12.4",
|
|
51
|
+
"@lwc/signals": "8.12.4"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"observable-membrane": "2.0.0"
|