@lwc/engine-core 8.5.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/main.d.ts +1 -1
- package/dist/index.cjs.js +7 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +6 -36
- 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, 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, 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 { 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
|
/*
|
|
@@ -5781,26 +5781,9 @@ function sc(vnodes) {
|
|
|
5781
5781
|
markAsDynamicChildren(vnodes);
|
|
5782
5782
|
return vnodes;
|
|
5783
5783
|
}
|
|
5784
|
-
/**
|
|
5785
|
-
* EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
|
|
5786
|
-
* libraries to sanitize HTML content. This hook process the content passed via the template to
|
|
5787
|
-
* lwc:inner-html directive.
|
|
5788
|
-
* It is meant to be overridden with setSanitizeHtmlContentHook, it throws an error by default.
|
|
5789
|
-
*/
|
|
5790
|
-
let sanitizeHtmlContentHook = () => {
|
|
5791
|
-
// locker-service patches this function during runtime to sanitize HTML content.
|
|
5792
|
-
throw new Error('sanitizeHtmlContent hook must be implemented.');
|
|
5793
|
-
};
|
|
5794
|
-
/**
|
|
5795
|
-
* Sets the sanitizeHtmlContentHook.
|
|
5796
|
-
* @param newHookImpl
|
|
5797
|
-
*/
|
|
5798
|
-
function setSanitizeHtmlContentHook(newHookImpl) {
|
|
5799
|
-
sanitizeHtmlContentHook = newHookImpl;
|
|
5800
|
-
}
|
|
5801
5784
|
// [s]anitize [h]tml [c]ontent
|
|
5802
5785
|
function shc(content) {
|
|
5803
|
-
const sanitizedString =
|
|
5786
|
+
const sanitizedString = sanitizeHtmlContent(content);
|
|
5804
5787
|
return createSanitizedHtmlContent(sanitizedString);
|
|
5805
5788
|
}
|
|
5806
5789
|
/**
|
|
@@ -7854,7 +7837,7 @@ expectAddlSiblings) {
|
|
|
7854
7837
|
}
|
|
7855
7838
|
}
|
|
7856
7839
|
mount(childVnode, parentNode, renderer, nextNode);
|
|
7857
|
-
nextNode = renderer.nextSibling(childVnode.elm);
|
|
7840
|
+
nextNode = renderer.nextSibling(childVnode.type === 5 /* VNodeType.Fragment */ ? childVnode.trailing : childVnode.elm);
|
|
7858
7841
|
}
|
|
7859
7842
|
}
|
|
7860
7843
|
}
|
|
@@ -8169,19 +8152,6 @@ function haveCompatibleStaticParts(vnode, renderer) {
|
|
|
8169
8152
|
return true;
|
|
8170
8153
|
}
|
|
8171
8154
|
|
|
8172
|
-
/*
|
|
8173
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
8174
|
-
* All rights reserved.
|
|
8175
|
-
* SPDX-License-Identifier: MIT
|
|
8176
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8177
|
-
*/
|
|
8178
|
-
let hooksAreSet = false;
|
|
8179
|
-
function setHooks(hooks) {
|
|
8180
|
-
assert.isFalse(hooksAreSet, 'Hooks are already overridden, only one definition is allowed.');
|
|
8181
|
-
hooksAreSet = true;
|
|
8182
|
-
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
8183
|
-
}
|
|
8184
|
-
|
|
8185
8155
|
/*
|
|
8186
8156
|
* Copyright (c) 2024, Salesforce, Inc.
|
|
8187
8157
|
* All rights reserved.
|
|
@@ -8444,6 +8414,6 @@ function readonly(obj) {
|
|
|
8444
8414
|
return getReadOnlyProxy(obj);
|
|
8445
8415
|
}
|
|
8446
8416
|
|
|
8447
|
-
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,
|
|
8448
|
-
/** 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 */
|
|
8449
8419
|
//# sourceMappingURL=index.js.map
|