@lwc/engine-core 2.34.0 → 2.35.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.34.0",
3
+ "version": "2.35.1",
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.34.0",
28
- "@lwc/features": "2.34.0",
29
- "@lwc/shared": "2.34.0"
27
+ "@lwc/aria-reflection": "2.35.1",
28
+ "@lwc/features": "2.35.1",
29
+ "@lwc/shared": "2.35.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "observable-membrane": "2.0.0"
@@ -17,6 +17,7 @@ export { unwrap } from './membrane';
17
17
  export { sanitizeAttribute } from './secure-template';
18
18
  export { getComponentDef, isComponentConstructor } from './def';
19
19
  export { profilerControl as __unstable__ProfilerControl } from './profiler';
20
+ export { reportingControl as __unstable__ReportingControl } from './reporting';
20
21
  export { swapTemplate, swapComponent, swapStyle } from './hot-swaps';
21
22
  export { setHooks } from './overridable-hooks';
22
23
  export { freezeTemplate } from './freeze-template';
@@ -0,0 +1,31 @@
1
+ import { VM } from './vm';
2
+ export declare const enum ReportingEventId {
3
+ CrossRootAriaInSyntheticShadow = 0
4
+ }
5
+ type ReportingDispatcher = (reportingEventId: ReportingEventId, tagName: string, vmIndex: number) => void;
6
+ type OnReportingEnabledCallback = () => void;
7
+ export declare const reportingControl: {
8
+ /**
9
+ * Attach a new reporting control (aka dispatcher).
10
+ *
11
+ * @param dispatcher - reporting control
12
+ */
13
+ attachDispatcher(dispatcher: ReportingDispatcher): void;
14
+ /**
15
+ * Detach the current reporting control (aka dispatcher).
16
+ */
17
+ detachDispatcher(): void;
18
+ };
19
+ /**
20
+ * Call a callback when reporting is enabled, or immediately if reporting is already enabled.
21
+ * Will only ever be called once.
22
+ * @param callback
23
+ */
24
+ export declare function onReportingEnabled(callback: OnReportingEnabledCallback): void;
25
+ /**
26
+ * Report to the current dispatcher, if there is one.
27
+ * @param reportingEventId
28
+ * @param vm
29
+ */
30
+ export declare function report(reportingEventId: ReportingEventId, vm: VM): void;
31
+ export {};
@@ -17,4 +17,5 @@ export declare function cloneAndOmitKey(object: {
17
17
  };
18
18
  export declare function flattenStylesheets(stylesheets: TemplateStylesheetFactories): StylesheetFactory[];
19
19
  export declare function setRefVNode(vm: VM, ref: string, vnode: VBaseElement): void;
20
+ export declare function assertNotProd(): void;
20
21
  export {};
@@ -70,8 +70,6 @@ export interface VM<N = HostNode, E = HostElement> {
70
70
  readonly owner: VM<N, E> | null;
71
71
  /** References to elements rendered using lwc:ref (template refs) */
72
72
  refVNodes: RefVNodes | null;
73
- /** Whether this template has any references to elements (template refs) */
74
- hasRefVNodes: boolean;
75
73
  /** Whether or not the VM was hydrated */
76
74
  readonly hydrated: boolean;
77
75
  /** Rendering operations associated with the VM */
package/types/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import './testFeatureFlag';
2
+ import './patches/detect-synthetic-cross-root-aria';
2
3
  export * from './framework/main';
@@ -1,3 +1,4 @@
1
1
  import { VM } from '../framework/vm';
2
2
  export declare function logError(message: string, vm?: VM): void;
3
3
  export declare function logWarn(message: string, vm?: VM): void;
4
+ export declare function logWarnOnce(message: string, vm?: VM): void;