@lwc/engine-core 2.36.0 → 2.37.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/engine-core.cjs.js +15 -17
- package/dist/engine-core.js +15 -17
- package/package.json +4 -4
package/dist/engine-core.cjs.js
CHANGED
|
@@ -5752,18 +5752,16 @@ function validateComponentStylesheets(vm, stylesheets) {
|
|
|
5752
5752
|
}
|
|
5753
5753
|
// Validate and flatten any stylesheets defined as `static stylesheets`
|
|
5754
5754
|
function computeStylesheets(vm, ctor) {
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
logError(`static stylesheets must be an array of CSS stylesheets. Found invalid stylesheets on <${vm.tagName}>`, vm);
|
|
5766
|
-
}
|
|
5755
|
+
warnOnStylesheetsMutation(ctor);
|
|
5756
|
+
const {
|
|
5757
|
+
stylesheets
|
|
5758
|
+
} = ctor;
|
|
5759
|
+
if (!shared.isUndefined(stylesheets)) {
|
|
5760
|
+
const valid = validateComponentStylesheets(vm, stylesheets);
|
|
5761
|
+
if (valid) {
|
|
5762
|
+
return flattenStylesheets(stylesheets);
|
|
5763
|
+
} else if (process.env.NODE_ENV !== 'production') {
|
|
5764
|
+
logError(`static stylesheets must be an array of CSS stylesheets. Found invalid stylesheets on <${vm.tagName}>`, vm);
|
|
5767
5765
|
}
|
|
5768
5766
|
}
|
|
5769
5767
|
return null;
|
|
@@ -6160,7 +6158,7 @@ function forceRehydration(vm) {
|
|
|
6160
6158
|
// The goal of this code is to detect invalid cross-root ARIA references in synthetic shadow DOM.
|
|
6161
6159
|
// These invalid references should be fixed before the offending components can be migrated to native shadow DOM.
|
|
6162
6160
|
// When invalid usage is detected, we warn in dev mode and call the reporting API if enabled.
|
|
6163
|
-
// See: https://
|
|
6161
|
+
// See: https://sfdc.co/synthetic-aria
|
|
6164
6162
|
//
|
|
6165
6163
|
// Use the unpatched native getElementById/querySelectorAll rather than the synthetic one
|
|
6166
6164
|
const getElementById = shared.globalThis[shared.KEY__NATIVE_GET_ELEMENT_BY_ID];
|
|
@@ -6187,7 +6185,7 @@ function reportViolation$1(source, target, attrName) {
|
|
|
6187
6185
|
// Avoid excessively logging to the console in the case of duplicates.
|
|
6188
6186
|
logWarnOnce(`Element <${source.tagName.toLowerCase()}> uses attribute "${attrName}" to reference element ` +
|
|
6189
6187
|
`<${target.tagName.toLowerCase()}>, which is not in the same shadow root. This will break in native shadow DOM. ` +
|
|
6190
|
-
`For details, see: https://
|
|
6188
|
+
`For details, see: https://sfdc.co/synthetic-aria`, vm);
|
|
6191
6189
|
}
|
|
6192
6190
|
}
|
|
6193
6191
|
function parseIdRefAttributeValue(attrValue) {
|
|
@@ -6341,7 +6339,7 @@ function checkAndReportViolation(elm, prop) {
|
|
|
6341
6339
|
if (!isLightningElement(elm)) {
|
|
6342
6340
|
const vm = findVM(elm);
|
|
6343
6341
|
if (process.env.NODE_ENV !== 'production') {
|
|
6344
|
-
logWarnOnce(`Element <${elm.tagName.toLowerCase()}> ` + (shared.isUndefined(vm) ? '' : `owned by <${vm.elm.tagName.toLowerCase()}> `) + `uses non-standard property "${prop}". This will be removed in a future version of LWC. ` + `See https://
|
|
6342
|
+
logWarnOnce(`Element <${elm.tagName.toLowerCase()}> ` + (shared.isUndefined(vm) ? '' : `owned by <${vm.elm.tagName.toLowerCase()}> `) + `uses non-standard property "${prop}". This will be removed in a future version of LWC. ` + `See https://sfdc.co/deprecated-aria`);
|
|
6345
6343
|
}
|
|
6346
6344
|
report(2 /* ReportingEventId.NonStandardAriaReflection */, {
|
|
6347
6345
|
tagName: vm === null || vm === void 0 ? void 0 : vm.tagName,
|
|
@@ -6911,7 +6909,7 @@ function getOriginalArrayMethod(prop) {
|
|
|
6911
6909
|
}
|
|
6912
6910
|
function reportViolation(type, eventId, prop) {
|
|
6913
6911
|
if (process.env.NODE_ENV !== 'production') {
|
|
6914
|
-
logWarnOnce(`Mutating the "${prop}" property on a ${type} ` + `is deprecated and will be removed in a future version of LWC. ` + `See: https://
|
|
6912
|
+
logWarnOnce(`Mutating the "${prop}" property on a ${type} ` + `is deprecated and will be removed in a future version of LWC. ` + `See: https://sfdc.co/template-mutation`);
|
|
6915
6913
|
}
|
|
6916
6914
|
report(eventId, {
|
|
6917
6915
|
propertyName: prop
|
|
@@ -7130,4 +7128,4 @@ exports.swapTemplate = swapTemplate;
|
|
|
7130
7128
|
exports.track = track;
|
|
7131
7129
|
exports.unwrap = unwrap;
|
|
7132
7130
|
exports.wire = wire;
|
|
7133
|
-
/* version: 2.
|
|
7131
|
+
/* version: 2.37.0 */
|
package/dist/engine-core.js
CHANGED
|
@@ -5751,18 +5751,16 @@ function validateComponentStylesheets(vm, stylesheets) {
|
|
|
5751
5751
|
}
|
|
5752
5752
|
// Validate and flatten any stylesheets defined as `static stylesheets`
|
|
5753
5753
|
function computeStylesheets(vm, ctor) {
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
logError(`static stylesheets must be an array of CSS stylesheets. Found invalid stylesheets on <${vm.tagName}>`, vm);
|
|
5765
|
-
}
|
|
5754
|
+
warnOnStylesheetsMutation(ctor);
|
|
5755
|
+
const {
|
|
5756
|
+
stylesheets
|
|
5757
|
+
} = ctor;
|
|
5758
|
+
if (!isUndefined$1(stylesheets)) {
|
|
5759
|
+
const valid = validateComponentStylesheets(vm, stylesheets);
|
|
5760
|
+
if (valid) {
|
|
5761
|
+
return flattenStylesheets(stylesheets);
|
|
5762
|
+
} else if (process.env.NODE_ENV !== 'production') {
|
|
5763
|
+
logError(`static stylesheets must be an array of CSS stylesheets. Found invalid stylesheets on <${vm.tagName}>`, vm);
|
|
5766
5764
|
}
|
|
5767
5765
|
}
|
|
5768
5766
|
return null;
|
|
@@ -6159,7 +6157,7 @@ function forceRehydration(vm) {
|
|
|
6159
6157
|
// The goal of this code is to detect invalid cross-root ARIA references in synthetic shadow DOM.
|
|
6160
6158
|
// These invalid references should be fixed before the offending components can be migrated to native shadow DOM.
|
|
6161
6159
|
// When invalid usage is detected, we warn in dev mode and call the reporting API if enabled.
|
|
6162
|
-
// See: https://
|
|
6160
|
+
// See: https://sfdc.co/synthetic-aria
|
|
6163
6161
|
//
|
|
6164
6162
|
// Use the unpatched native getElementById/querySelectorAll rather than the synthetic one
|
|
6165
6163
|
const getElementById = globalThis$1[KEY__NATIVE_GET_ELEMENT_BY_ID];
|
|
@@ -6186,7 +6184,7 @@ function reportViolation$1(source, target, attrName) {
|
|
|
6186
6184
|
// Avoid excessively logging to the console in the case of duplicates.
|
|
6187
6185
|
logWarnOnce(`Element <${source.tagName.toLowerCase()}> uses attribute "${attrName}" to reference element ` +
|
|
6188
6186
|
`<${target.tagName.toLowerCase()}>, which is not in the same shadow root. This will break in native shadow DOM. ` +
|
|
6189
|
-
`For details, see: https://
|
|
6187
|
+
`For details, see: https://sfdc.co/synthetic-aria`, vm);
|
|
6190
6188
|
}
|
|
6191
6189
|
}
|
|
6192
6190
|
function parseIdRefAttributeValue(attrValue) {
|
|
@@ -6340,7 +6338,7 @@ function checkAndReportViolation(elm, prop) {
|
|
|
6340
6338
|
if (!isLightningElement(elm)) {
|
|
6341
6339
|
const vm = findVM(elm);
|
|
6342
6340
|
if (process.env.NODE_ENV !== 'production') {
|
|
6343
|
-
logWarnOnce(`Element <${elm.tagName.toLowerCase()}> ` + (isUndefined$1(vm) ? '' : `owned by <${vm.elm.tagName.toLowerCase()}> `) + `uses non-standard property "${prop}". This will be removed in a future version of LWC. ` + `See https://
|
|
6341
|
+
logWarnOnce(`Element <${elm.tagName.toLowerCase()}> ` + (isUndefined$1(vm) ? '' : `owned by <${vm.elm.tagName.toLowerCase()}> `) + `uses non-standard property "${prop}". This will be removed in a future version of LWC. ` + `See https://sfdc.co/deprecated-aria`);
|
|
6344
6342
|
}
|
|
6345
6343
|
report(2 /* ReportingEventId.NonStandardAriaReflection */, {
|
|
6346
6344
|
tagName: vm === null || vm === void 0 ? void 0 : vm.tagName,
|
|
@@ -6910,7 +6908,7 @@ function getOriginalArrayMethod(prop) {
|
|
|
6910
6908
|
}
|
|
6911
6909
|
function reportViolation(type, eventId, prop) {
|
|
6912
6910
|
if (process.env.NODE_ENV !== 'production') {
|
|
6913
|
-
logWarnOnce(`Mutating the "${prop}" property on a ${type} ` + `is deprecated and will be removed in a future version of LWC. ` + `See: https://
|
|
6911
|
+
logWarnOnce(`Mutating the "${prop}" property on a ${type} ` + `is deprecated and will be removed in a future version of LWC. ` + `See: https://sfdc.co/template-mutation`);
|
|
6914
6912
|
}
|
|
6915
6913
|
report(eventId, {
|
|
6916
6914
|
propertyName: prop
|
|
@@ -7092,4 +7090,4 @@ function getComponentConstructor(elm) {
|
|
|
7092
7090
|
}
|
|
7093
7091
|
|
|
7094
7092
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
7095
|
-
/* version: 2.
|
|
7093
|
+
/* version: 2.37.0 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/engine-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "Core LWC engine APIs.",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"types/"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lwc/aria-reflection": "2.
|
|
28
|
-
"@lwc/features": "2.
|
|
29
|
-
"@lwc/shared": "2.
|
|
27
|
+
"@lwc/aria-reflection": "2.37.0",
|
|
28
|
+
"@lwc/features": "2.37.0",
|
|
29
|
+
"@lwc/shared": "2.37.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"observable-membrane": "2.0.0"
|