@lwc/engine-core 8.4.0 → 8.6.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 -6
- package/dist/framework/base-lightning-element.d.ts +1 -1
- package/dist/framework/check-version-mismatch.d.ts +1 -1
- package/dist/framework/hot-swaps.d.ts +1 -1
- package/dist/framework/main.d.ts +2 -2
- package/dist/framework/stylesheet.d.ts +1 -10
- package/dist/framework/template.d.ts +1 -1
- package/dist/framework/utils.d.ts +0 -2
- package/dist/framework/vm.d.ts +1 -1
- package/dist/index.cjs.js +9 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +6 -48
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/framework/overridable-hooks.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
3
3
|
*/
|
|
4
|
-
import { noop, StringToLowerCase, isNull, ArrayPush as ArrayPush$1, ArrayJoin, isFrozen, isUndefined as isUndefined$1, defineProperty, seal, create, isAPIFeatureEnabled,
|
|
5
|
-
export { setTrustedSignalSet } from '@lwc/shared';
|
|
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 as toString$1, isString, ArrayIndexOf, ArrayPop, isFalse, isTrustedSignal, hasOwnProperty as hasOwnProperty$1, entries, AriaPropNameToAttrNameMap, getPropertyDescriptor, forEach, 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, KEY__SCOPED_CSS, ArraySplice, flattenStylesheets, kebabCaseToCamelCase, StringCharCodeAt, XML_NAMESPACE, XLINK_NAMESPACE, StringSlice, isTrue, SVG_NAMESPACE, KEY__SHADOW_STATIC, KEY__SHADOW_RESOLVER, ArraySome, isNumber, StringReplace, sanitizeHtmlContent, StringTrim, ArraySort, ArrayFrom, htmlEscape, StringCharAt, ArrayUnshift, LOWEST_API_VERSION, 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
|
+
export { setHooks, setTrustedSignalSet } from '@lwc/shared';
|
|
6
6
|
export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -228,18 +228,6 @@ function cloneAndOmitKey(object, keyToOmit) {
|
|
|
228
228
|
}
|
|
229
229
|
return result;
|
|
230
230
|
}
|
|
231
|
-
function flattenStylesheets(stylesheets) {
|
|
232
|
-
const list = [];
|
|
233
|
-
for (const stylesheet of stylesheets) {
|
|
234
|
-
if (!isArray$1(stylesheet)) {
|
|
235
|
-
list.push(stylesheet);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
list.push(...flattenStylesheets(stylesheet));
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
return list;
|
|
242
|
-
}
|
|
243
231
|
// Throw an error if we're running in prod mode. Ensures code is truly removed from prod mode.
|
|
244
232
|
function assertNotProd() {
|
|
245
233
|
/* istanbul ignore if */
|
|
@@ -5793,26 +5781,9 @@ function sc(vnodes) {
|
|
|
5793
5781
|
markAsDynamicChildren(vnodes);
|
|
5794
5782
|
return vnodes;
|
|
5795
5783
|
}
|
|
5796
|
-
/**
|
|
5797
|
-
* EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
|
|
5798
|
-
* libraries to sanitize HTML content. This hook process the content passed via the template to
|
|
5799
|
-
* lwc:inner-html directive.
|
|
5800
|
-
* It is meant to be overridden with setSanitizeHtmlContentHook, it throws an error by default.
|
|
5801
|
-
*/
|
|
5802
|
-
let sanitizeHtmlContentHook = () => {
|
|
5803
|
-
// locker-service patches this function during runtime to sanitize HTML content.
|
|
5804
|
-
throw new Error('sanitizeHtmlContent hook must be implemented.');
|
|
5805
|
-
};
|
|
5806
|
-
/**
|
|
5807
|
-
* Sets the sanitizeHtmlContentHook.
|
|
5808
|
-
* @param newHookImpl
|
|
5809
|
-
*/
|
|
5810
|
-
function setSanitizeHtmlContentHook(newHookImpl) {
|
|
5811
|
-
sanitizeHtmlContentHook = newHookImpl;
|
|
5812
|
-
}
|
|
5813
5784
|
// [s]anitize [h]tml [c]ontent
|
|
5814
5785
|
function shc(content) {
|
|
5815
|
-
const sanitizedString =
|
|
5786
|
+
const sanitizedString = sanitizeHtmlContent(content);
|
|
5816
5787
|
return createSanitizedHtmlContent(sanitizedString);
|
|
5817
5788
|
}
|
|
5818
5789
|
/**
|
|
@@ -7866,7 +7837,7 @@ expectAddlSiblings) {
|
|
|
7866
7837
|
}
|
|
7867
7838
|
}
|
|
7868
7839
|
mount(childVnode, parentNode, renderer, nextNode);
|
|
7869
|
-
nextNode = renderer.nextSibling(childVnode.elm);
|
|
7840
|
+
nextNode = renderer.nextSibling(childVnode.type === 5 /* VNodeType.Fragment */ ? childVnode.trailing : childVnode.elm);
|
|
7870
7841
|
}
|
|
7871
7842
|
}
|
|
7872
7843
|
}
|
|
@@ -8181,19 +8152,6 @@ function haveCompatibleStaticParts(vnode, renderer) {
|
|
|
8181
8152
|
return true;
|
|
8182
8153
|
}
|
|
8183
8154
|
|
|
8184
|
-
/*
|
|
8185
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
8186
|
-
* All rights reserved.
|
|
8187
|
-
* SPDX-License-Identifier: MIT
|
|
8188
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8189
|
-
*/
|
|
8190
|
-
let hooksAreSet = false;
|
|
8191
|
-
function setHooks(hooks) {
|
|
8192
|
-
assert.isFalse(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
|
|
8193
|
-
hooksAreSet = true;
|
|
8194
|
-
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
8195
|
-
}
|
|
8196
|
-
|
|
8197
8155
|
/*
|
|
8198
8156
|
* Copyright (c) 2024, Salesforce, Inc.
|
|
8199
8157
|
* All rights reserved.
|
|
@@ -8456,6 +8414,6 @@ function readonly(obj) {
|
|
|
8456
8414
|
return getReadOnlyProxy(obj);
|
|
8457
8415
|
}
|
|
8458
8416
|
|
|
8459
|
-
export { 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,
|
|
8460
|
-
/** version: 8.
|
|
8417
|
+
export { 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 };
|
|
8418
|
+
/** version: 8.6.0 */
|
|
8461
8419
|
//# sourceMappingURL=index.js.map
|