@lwc/engine-core 5.0.7 → 5.0.9
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/reporting.d.ts +7 -2
- package/dist/index.cjs.js +10 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShadowMode } from './vm';
|
|
1
|
+
import { ShadowMode, ShadowSupportMode } from './vm';
|
|
2
2
|
export declare const enum ReportingEventId {
|
|
3
3
|
CrossRootAriaInSyntheticShadow = "CrossRootAriaInSyntheticShadow",
|
|
4
4
|
CompilerRuntimeVersionMismatch = "CompilerRuntimeVersionMismatch",
|
|
@@ -6,7 +6,8 @@ export declare const enum ReportingEventId {
|
|
|
6
6
|
TemplateMutation = "TemplateMutation",
|
|
7
7
|
StylesheetMutation = "StylesheetMutation",
|
|
8
8
|
ConnectedCallbackWhileDisconnected = "ConnectedCallbackWhileDisconnected",
|
|
9
|
-
ShadowModeUsage = "ShadowModeUsage"
|
|
9
|
+
ShadowModeUsage = "ShadowModeUsage",
|
|
10
|
+
ShadowSupportModeUsage = "ShadowSupportModeUsage"
|
|
10
11
|
}
|
|
11
12
|
export interface BasePayload {
|
|
12
13
|
tagName?: string;
|
|
@@ -34,6 +35,9 @@ export interface ConnectedCallbackWhileDisconnectedPayload extends BasePayload {
|
|
|
34
35
|
export interface ShadowModeUsagePayload extends BasePayload {
|
|
35
36
|
mode: ShadowMode;
|
|
36
37
|
}
|
|
38
|
+
export interface ShadowSupportModeUsagePayload extends BasePayload {
|
|
39
|
+
mode: ShadowSupportMode;
|
|
40
|
+
}
|
|
37
41
|
export type ReportingPayloadMapping = {
|
|
38
42
|
[ReportingEventId.CrossRootAriaInSyntheticShadow]: CrossRootAriaInSyntheticShadowPayload;
|
|
39
43
|
[ReportingEventId.CompilerRuntimeVersionMismatch]: CompilerRuntimeVersionMismatchPayload;
|
|
@@ -42,6 +46,7 @@ export type ReportingPayloadMapping = {
|
|
|
42
46
|
[ReportingEventId.StylesheetMutation]: StylesheetMutationPayload;
|
|
43
47
|
[ReportingEventId.ConnectedCallbackWhileDisconnected]: ConnectedCallbackWhileDisconnectedPayload;
|
|
44
48
|
[ReportingEventId.ShadowModeUsage]: ShadowModeUsagePayload;
|
|
49
|
+
[ReportingEventId.ShadowSupportModeUsage]: ShadowSupportModeUsagePayload;
|
|
45
50
|
};
|
|
46
51
|
export type ReportingDispatcher<T extends ReportingEventId = ReportingEventId> = (reportingEventId: T, payload: ReportingPayloadMapping[T]) => void;
|
|
47
52
|
/** Callbacks to invoke when reporting is enabled **/
|
package/dist/index.cjs.js
CHANGED
|
@@ -3126,6 +3126,15 @@ function createComponentDef(Ctor) {
|
|
|
3126
3126
|
let shadowSupportMode = superDef.shadowSupportMode;
|
|
3127
3127
|
if (!shared.isUndefined(ctorShadowSupportMode)) {
|
|
3128
3128
|
shadowSupportMode = ctorShadowSupportMode;
|
|
3129
|
+
if (isReportingEnabled() &&
|
|
3130
|
+
(shadowSupportMode === "any" /* ShadowSupportMode.Any */ ||
|
|
3131
|
+
shadowSupportMode === "native" /* ShadowSupportMode.Native */)) {
|
|
3132
|
+
// tagName is used to avoid having to make o11y schema changes in a patch release.
|
|
3133
|
+
report("ShadowSupportModeUsage" /* ReportingEventId.ShadowSupportModeUsage */, {
|
|
3134
|
+
tagName: Ctor.name,
|
|
3135
|
+
mode: shadowSupportMode,
|
|
3136
|
+
});
|
|
3137
|
+
}
|
|
3129
3138
|
}
|
|
3130
3139
|
let renderMode = superDef.renderMode;
|
|
3131
3140
|
if (!shared.isUndefined(ctorRenderMode)) {
|
|
@@ -7371,5 +7380,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
7371
7380
|
exports.track = track;
|
|
7372
7381
|
exports.unwrap = unwrap;
|
|
7373
7382
|
exports.wire = wire;
|
|
7374
|
-
/** version: 5.0.
|
|
7383
|
+
/** version: 5.0.9 */
|
|
7375
7384
|
//# sourceMappingURL=index.cjs.js.map
|