@lwc/engine-core 6.3.3 → 6.3.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/dist/framework/utils.d.ts +0 -20
- package/dist/index.cjs.js +1 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -30
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -499,29 +499,6 @@ function assertNotProd() {
|
|
|
499
499
|
throw new ReferenceError();
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
// Temporary fix for when the LWC v5 compiler is used in conjunction with a v6+ engine
|
|
503
|
-
// The old compiler format used the "slot" attribute in the `data` bag, whereas the new
|
|
504
|
-
// format uses the special `slotAssignment` key.
|
|
505
|
-
// This should be removed when the LWC v5 compiler is not used anywhere where it could be mismatched
|
|
506
|
-
// with another LWC engine version.
|
|
507
|
-
// TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
|
|
508
|
-
function applyTemporaryCompilerV5SlotFix(data) {
|
|
509
|
-
if (lwcRuntimeFlags.DISABLE_TEMPORARY_V5_COMPILER_SUPPORT) {
|
|
510
|
-
return data;
|
|
511
|
-
}
|
|
512
|
-
const { attrs } = data;
|
|
513
|
-
if (!isUndefined$1(attrs)) {
|
|
514
|
-
const { slot } = attrs;
|
|
515
|
-
if (!isUndefined$1(slot) && !isNull(slot)) {
|
|
516
|
-
return {
|
|
517
|
-
...data,
|
|
518
|
-
attrs: cloneAndOmitKey(attrs, 'slot'),
|
|
519
|
-
slotAssignment: String(slot),
|
|
520
|
-
};
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return data;
|
|
524
|
-
}
|
|
525
502
|
function shouldBeFormAssociated(Ctor) {
|
|
526
503
|
const ctorFormAssociated = Boolean(Ctor.formAssociated);
|
|
527
504
|
const apiVersion = getComponentAPIVersion(Ctor);
|
|
@@ -4932,8 +4909,6 @@ function h(sel, data, children = EmptyArray) {
|
|
|
4932
4909
|
}
|
|
4933
4910
|
});
|
|
4934
4911
|
}
|
|
4935
|
-
// TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
|
|
4936
|
-
data = applyTemporaryCompilerV5SlotFix(data);
|
|
4937
4912
|
const { key, slotAssignment } = data;
|
|
4938
4913
|
const vnode = {
|
|
4939
4914
|
type: 2 /* VNodeType.Element */,
|
|
@@ -4970,8 +4945,6 @@ function s(slotName, data, children, slotset) {
|
|
|
4970
4945
|
}
|
|
4971
4946
|
const vmBeingRendered = getVMBeingRendered();
|
|
4972
4947
|
const { renderMode, apiVersion } = vmBeingRendered;
|
|
4973
|
-
// TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
|
|
4974
|
-
data = applyTemporaryCompilerV5SlotFix(data);
|
|
4975
4948
|
if (!isUndefined$1(slotset) &&
|
|
4976
4949
|
!isUndefined$1(slotset.slotAssignments) &&
|
|
4977
4950
|
!isUndefined$1(slotset.slotAssignments[slotName]) &&
|
|
@@ -5075,8 +5048,6 @@ function c(sel, Ctor, data, children = EmptyArray) {
|
|
|
5075
5048
|
});
|
|
5076
5049
|
}
|
|
5077
5050
|
}
|
|
5078
|
-
// TODO [#3974]: remove temporary logic to support v5 compiler + v6+ engine
|
|
5079
|
-
data = applyTemporaryCompilerV5SlotFix(data);
|
|
5080
5051
|
const { key, slotAssignment } = data;
|
|
5081
5052
|
let elm, aChildren, vm;
|
|
5082
5053
|
const vnode = {
|
|
@@ -7557,5 +7528,5 @@ function readonly(obj) {
|
|
|
7557
7528
|
}
|
|
7558
7529
|
|
|
7559
7530
|
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, setHooks, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
7560
|
-
/** version: 6.3.
|
|
7531
|
+
/** version: 6.3.4 */
|
|
7561
7532
|
//# sourceMappingURL=index.js.map
|