@lwc/engine-core 2.32.1 → 2.34.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.32.1",
3
+ "version": "2.34.0",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -24,8 +24,9 @@
24
24
  "types/"
25
25
  ],
26
26
  "dependencies": {
27
- "@lwc/features": "2.32.1",
28
- "@lwc/shared": "2.32.1"
27
+ "@lwc/aria-reflection": "2.34.0",
28
+ "@lwc/features": "2.34.0",
29
+ "@lwc/shared": "2.34.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "observable-membrane": "2.0.0"
@@ -10,6 +10,7 @@ import { AccessibleElementProperties } from '@lwc/shared';
10
10
  import { ShadowSupportMode } from './vm';
11
11
  import { Template } from './template';
12
12
  import { HTMLElementConstructor } from './base-bridge-element';
13
+ import { TemplateStylesheetFactories } from './stylesheet';
13
14
  export interface LightningElementConstructor {
14
15
  new (): LightningElement;
15
16
  readonly prototype: LightningElement;
@@ -17,6 +18,7 @@ export interface LightningElementConstructor {
17
18
  delegatesFocus?: boolean;
18
19
  renderMode?: 'light' | 'shadow';
19
20
  shadowSupportMode?: ShadowSupportMode;
21
+ stylesheets: TemplateStylesheetFactories;
20
22
  }
21
23
  type HTMLElementTheGoodParts = Pick<Object, 'toString'> & Pick<HTMLElement, 'accessKey' | 'addEventListener' | 'children' | 'childNodes' | 'classList' | 'dir' | 'dispatchEvent' | 'draggable' | 'firstChild' | 'firstElementChild' | 'getAttribute' | 'getAttributeNS' | 'getBoundingClientRect' | 'getElementsByClassName' | 'getElementsByTagName' | 'hasAttribute' | 'hasAttributeNS' | 'hidden' | 'id' | 'isConnected' | 'lang' | 'lastChild' | 'lastElementChild' | 'querySelector' | 'querySelectorAll' | 'removeAttribute' | 'removeAttributeNS' | 'removeEventListener' | 'setAttribute' | 'setAttributeNS' | 'spellcheck' | 'tabIndex' | 'title'>;
22
24
  type RefNodes = {
@@ -21,4 +21,5 @@ export declare function setVMBeingRendered(vm: VM | null): void;
21
21
  export declare const parseFragment: (strings: string[], ...keys: number[]) => () => Element;
22
22
  export declare const parseSVGFragment: (strings: string[], ...keys: number[]) => () => Element;
23
23
  export declare function evaluateTemplate(vm: VM, html: Template): VNodes;
24
- export declare function computeHasScopedStyles(template: Template): boolean;
24
+ export declare function computeHasScopedStyles(template: Template, vm: VM | undefined): boolean;
25
+ export declare function hasStyles(stylesheets: TemplateStylesheetFactories | undefined | null): stylesheets is TemplateStylesheetFactories;
@@ -4,6 +4,7 @@ import { ComponentDef } from './def';
4
4
  import { LightningElement, LightningElementConstructor } from './base-lightning-element';
5
5
  import { ReactiveObserver } from './mutation-tracker';
6
6
  import { VNodes, VCustomElement, VNode, VBaseElement } from './vnodes';
7
+ import { TemplateStylesheetFactories } from './stylesheet';
7
8
  type ShadowRootMode = 'open' | 'closed';
8
9
  export interface TemplateCache {
9
10
  [key: string]: any;
@@ -132,6 +133,9 @@ export interface VM<N = HostNode, E = HostElement> {
132
133
  /**
133
134
  * Debug info bag. Stores useful debug information about the component. */
134
135
  debugInfo?: Record<string, any>;
136
+ /**
137
+ * Any stylesheets associated with the component */
138
+ stylesheets: TemplateStylesheetFactories | null;
135
139
  }
136
140
  type VMAssociable = HostNode | LightningElement;
137
141
  export declare function rerenderVM(vm: VM): void;