@lwc/engine-core 8.20.0 → 8.20.2
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/README.md +11 -3
- package/dist/framework/base-lightning-element.d.ts +9 -4
- package/dist/framework/main.d.ts +2 -1
- package/dist/index.cjs.js +14 -1
- package/dist/index.js +3 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -122,17 +122,25 @@ This experimental API enables the addition of a signal as a trusted signal. If t
|
|
|
122
122
|
|
|
123
123
|
If `setTrustedSignalSet` is called more than once, it will throw an error. If it is never called, then no trusted signal validation will be performed. The same `setTrustedSignalSet` API must be called on both `@lwc/engine-dom` and `@lwc/signals`.
|
|
124
124
|
|
|
125
|
+
### isTrustedSignal()
|
|
126
|
+
|
|
127
|
+
Not intended for external use. This experimental API enables the caller to determine if an object is a trusted signal. The [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature must be enabled.
|
|
128
|
+
|
|
125
129
|
### setContextKeys
|
|
126
130
|
|
|
127
|
-
Not intended for external use. Enables another library to establish contextful relationships via the LWC component tree. The `connectContext` and `disconnectContext` symbols that are provided are later used to identify methods that facilitate the establishment and dissolution of these contextful relationships.
|
|
131
|
+
Not intended for external use. Enables another library to establish contextful relationships via the LWC component tree. The `connectContext` and `disconnectContext` symbols that are provided are later used to identify methods that facilitate the establishment and dissolution of these contextful relationships. The [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature must be enabled.
|
|
128
132
|
|
|
129
133
|
### setTrustedContextSet()
|
|
130
134
|
|
|
131
|
-
Not intended for external use. This experimental API enables the addition of context as trusted context.
|
|
135
|
+
Not intended for external use. This experimental API enables the addition of context as trusted context. The [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature must be enabled.
|
|
132
136
|
|
|
133
137
|
If `setTrustedContextSet` is called more than once, it will throw an error. If it is never called, then context will not be connected.
|
|
134
138
|
|
|
135
139
|
### ContextBinding
|
|
136
140
|
|
|
137
141
|
The context object's `connectContext` and `disconnectContext` methods are called with this object when contextful components are connected and disconnected. The ContextBinding exposes `provideContext` and `consumeContext`,
|
|
138
|
-
enabling the provision/consumption of a contextful Signal of a specified variety for the associated component.
|
|
142
|
+
enabling the provision/consumption of a contextful Signal of a specified variety for the associated component. The [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature must be enabled.
|
|
143
|
+
|
|
144
|
+
### SignalBaseClass
|
|
145
|
+
|
|
146
|
+
Not intended for external use. Signals that extend SignalBaseClass will be added to set of trusted signals. The [ENABLE_EXPERIMENTAL_SIGNALS](https://github.com/salesforce/lwc/blob/master/packages/%40lwc/features/README.md#lwcfeatures) feature must be enabled.
|
|
@@ -18,12 +18,17 @@ type HTMLElementTheGoodParts = {
|
|
|
18
18
|
type RefNodes = {
|
|
19
19
|
[name: string]: Element;
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
|
|
23
|
-
* rather than the more broad `Element` used by the generic shadow root interface.
|
|
24
|
-
*/
|
|
25
21
|
export interface LightningElementShadowRoot extends ShadowRoot {
|
|
22
|
+
/**
|
|
23
|
+
* A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
|
|
24
|
+
* rather than the more broad `Element` used by the generic shadow root interface.
|
|
25
|
+
*/
|
|
26
26
|
readonly host: HTMLElement;
|
|
27
|
+
/**
|
|
28
|
+
* When present, indicates that the shadow root is the synthetic polyfill loaded by
|
|
29
|
+
* `@lwc/synethic-shadow`.
|
|
30
|
+
*/
|
|
31
|
+
readonly synthetic?: true;
|
|
27
32
|
}
|
|
28
33
|
export interface LightningElement extends HTMLElementTheGoodParts, AccessibleElementProperties {
|
|
29
34
|
constructor: LightningElementConstructor;
|
package/dist/framework/main.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { default as track } from './decorators/track';
|
|
|
28
28
|
export { default as wire } from './decorators/wire';
|
|
29
29
|
export { readonly } from './readonly';
|
|
30
30
|
export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
|
|
31
|
-
export { setContextKeys, setTrustedSignalSet, setTrustedContextSet } from '@lwc/shared';
|
|
31
|
+
export { setContextKeys, setTrustedSignalSet, setTrustedContextSet, addTrustedContext, isTrustedSignal, } from '@lwc/shared';
|
|
32
32
|
export type { Stylesheet, Stylesheets } from '@lwc/shared';
|
|
33
|
+
export { SignalBaseClass } from '@lwc/signals';
|
|
33
34
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/index.cjs.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
7
7
|
|
|
8
8
|
var shared = require('@lwc/shared');
|
|
9
9
|
var features = require('@lwc/features');
|
|
10
|
+
var signals = require('@lwc/signals');
|
|
10
11
|
|
|
11
12
|
/*
|
|
12
13
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8668,6 +8669,14 @@ function readonly(obj) {
|
|
|
8668
8669
|
return getReadOnlyProxy(obj);
|
|
8669
8670
|
}
|
|
8670
8671
|
|
|
8672
|
+
Object.defineProperty(exports, "addTrustedContext", {
|
|
8673
|
+
enumerable: true,
|
|
8674
|
+
get: function () { return shared.addTrustedContext; }
|
|
8675
|
+
});
|
|
8676
|
+
Object.defineProperty(exports, "isTrustedSignal", {
|
|
8677
|
+
enumerable: true,
|
|
8678
|
+
get: function () { return shared.isTrustedSignal; }
|
|
8679
|
+
});
|
|
8671
8680
|
Object.defineProperty(exports, "setContextKeys", {
|
|
8672
8681
|
enumerable: true,
|
|
8673
8682
|
get: function () { return shared.setContextKeys; }
|
|
@@ -8692,6 +8701,10 @@ Object.defineProperty(exports, "setFeatureFlagForTest", {
|
|
|
8692
8701
|
enumerable: true,
|
|
8693
8702
|
get: function () { return features.setFeatureFlagForTest; }
|
|
8694
8703
|
});
|
|
8704
|
+
Object.defineProperty(exports, "SignalBaseClass", {
|
|
8705
|
+
enumerable: true,
|
|
8706
|
+
get: function () { return signals.SignalBaseClass; }
|
|
8707
|
+
});
|
|
8695
8708
|
exports.BaseBridgeElement = BaseBridgeElement;
|
|
8696
8709
|
exports.LightningElement = LightningElement;
|
|
8697
8710
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -8728,5 +8741,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8728
8741
|
exports.track = track;
|
|
8729
8742
|
exports.unwrap = unwrap;
|
|
8730
8743
|
exports.wire = wire;
|
|
8731
|
-
/** version: 8.20.
|
|
8744
|
+
/** version: 8.20.2 */
|
|
8732
8745
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
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, toString, isString, ArrayFilter, isObject, isArray as isArray$1, getOwnPropertyNames as getOwnPropertyNames$1, getOwnPropertySymbols as getOwnPropertySymbols$1, ArrayIndexOf, ArrayPop, isFalse, isTrustedSignal, hasOwnProperty as hasOwnProperty$1, entries, AriaPropNameToAttrNameMap, getPropertyDescriptor, AriaAttrNameToPropNameMap, forEach, REFLECTIVE_GLOBAL_PROPERTY_SET, getPrototypeOf as getPrototypeOf$1, setPrototypeOf, defineProperties, assign, freeze, assert, 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, ArraySome, KEY__SHADOW_RESOLVER, normalizeClass, sanitizeHtmlContent, StringReplace, isNumber, ArraySort, ArrayFrom, StringCharAt, htmlEscape, LOWEST_API_VERSION, getContextKeys, isTrustedContext, ContextEventName, ArrayUnshift, KEY__NATIVE_GET_ELEMENT_BY_ID, KEY__NATIVE_QUERY_SELECTOR_ALL, KEY__SHADOW_TOKEN, ID_REFERENCING_ATTRIBUTES_SET, StringSplit, arrayEvery, parseStyleText, ArrayCopyWithin, ArrayFill, ArrayReverse, ArrayShift } from '@lwc/shared';
|
|
5
|
-
export { setContextKeys, setHooks, setTrustedContextSet, setTrustedSignalSet } from '@lwc/shared';
|
|
5
|
+
export { addTrustedContext, isTrustedSignal, setContextKeys, setHooks, setTrustedContextSet, setTrustedSignalSet } from '@lwc/shared';
|
|
6
6
|
export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
|
|
7
|
+
export { SignalBaseClass } from '@lwc/signals';
|
|
7
8
|
|
|
8
9
|
/*
|
|
9
10
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8666,5 +8667,5 @@ function readonly(obj) {
|
|
|
8666
8667
|
}
|
|
8667
8668
|
|
|
8668
8669
|
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 };
|
|
8669
|
-
/** version: 8.20.
|
|
8670
|
+
/** version: 8.20.2 */
|
|
8670
8671
|
//# sourceMappingURL=index.js.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.20.
|
|
7
|
+
"version": "8.20.2",
|
|
8
8
|
"description": "Core LWC engine APIs.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lwc/features": "8.20.
|
|
50
|
-
"@lwc/shared": "8.20.
|
|
51
|
-
"@lwc/signals": "8.20.
|
|
49
|
+
"@lwc/features": "8.20.2",
|
|
50
|
+
"@lwc/shared": "8.20.2",
|
|
51
|
+
"@lwc/signals": "8.20.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"observable-membrane": "2.0.0"
|