@lwc/engine-core 2.5.10-alpha1 → 2.7.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.
@@ -7,13 +7,6 @@
7
7
  https://github.com/snabbdom/snabbdom/
8
8
  */
9
9
  import { VM } from '../../framework/vm';
10
- export declare type VNodeStyleDecls = Array<[string, string, boolean]>;
11
- export interface On {
12
- [event: string]: EventListener;
13
- }
14
- export declare type Attrs = Record<string, string | number | boolean>;
15
- export declare type Classes = Record<string, boolean>;
16
- export declare type Props = Record<string, any>;
17
10
  export declare type Key = string | number;
18
11
  export declare type VNodes = Array<VNode | null>;
19
12
  export interface VNode {
@@ -53,16 +46,15 @@ export interface VComment extends VNode {
53
46
  text: string;
54
47
  key: undefined;
55
48
  }
56
- export declare type CustomElementContext = Record<string, Record<string, any>>;
57
49
  export interface VNodeData {
58
- props?: Props;
59
- attrs?: Attrs;
60
- className?: any;
61
- style?: any;
62
- classMap?: Classes;
63
- styleDecls?: VNodeStyleDecls;
64
- context?: CustomElementContext;
65
- on?: On;
50
+ props?: Record<string, any>;
51
+ attrs?: Record<string, string | number | boolean>;
52
+ className?: string;
53
+ style?: string;
54
+ classMap?: Record<string, boolean>;
55
+ styleDecls?: Array<[string, string, boolean]>;
56
+ context?: Record<string, Record<string, any>>;
57
+ on?: Record<string, Function>;
66
58
  svg?: boolean;
67
59
  }
68
60
  export interface VElementData extends VNodeData {
@@ -76,7 +68,3 @@ export interface Hooks<N extends VNode> {
76
68
  remove: (vNode: N, parentNode: Node) => void;
77
69
  hydrate: (vNode: N, node: Node) => void;
78
70
  }
79
- export interface Module<N extends VNode> {
80
- create?: (vNode: N) => void;
81
- update?: (oldVNode: N, vNode: N) => void;
82
- }
@@ -1,4 +1,4 @@
1
- import ObservableMembrane from 'observable-membrane';
1
+ import { ObservableMembrane } from 'observable-membrane';
2
2
  export declare const lockerLivePropertyKey: unique symbol;
3
3
  export declare const reactiveMembrane: ObservableMembrane;
4
4
  /**
@@ -6,4 +6,4 @@ export declare const reactiveMembrane: ObservableMembrane;
6
6
  * works for observable membrane objects. This API is subject to
7
7
  * change or being removed.
8
8
  */
9
- export declare const unwrap: (value: any) => any;
9
+ export declare function unwrap(value: any): any;
@@ -1,4 +1,4 @@
1
- import { VM } from './vm';
1
+ import { RenderMode, ShadowMode, VM } from './vm';
2
2
  export declare const enum OperationId {
3
3
  Constructor = 0,
4
4
  Render = 1,
@@ -15,7 +15,7 @@ declare const enum Phase {
15
15
  Start = 0,
16
16
  Stop = 1
17
17
  }
18
- declare type LogDispatcher = (opId: OperationId, phase: Phase, cmpName?: string, vmIndex?: number) => void;
18
+ declare type LogDispatcher = (opId: OperationId, phase: Phase, cmpName?: string, vmIndex?: number, renderMode?: RenderMode, shadowMode?: ShadowMode) => void;
19
19
  export declare const profilerControl: {
20
20
  enableProfiler(): void;
21
21
  disableProfiler(): void;
@@ -5,7 +5,7 @@ import { Template } from './template';
5
5
  * Function producing style based on a host and a shadow selector. This function is invoked by
6
6
  * the engine with different values depending on the mode that the component is running on.
7
7
  */
8
- export declare type StylesheetFactory = (useActualHostSelector: boolean, stylesheetToken: string | undefined) => string;
8
+ export declare type StylesheetFactory = (stylesheetToken: string | undefined, useActualHostSelector: boolean, useNativeDirPseudoclass: boolean) => string;
9
9
  /**
10
10
  * The list of stylesheets associated with a template. Each entry is either a StylesheetFactory or a
11
11
  * TemplateStylesheetFactory a given stylesheet depends on other external stylesheets (via the
@@ -17,4 +17,3 @@ export declare let isUpdatingTemplate: boolean;
17
17
  export declare function getVMBeingRendered(): VM | null;
18
18
  export declare function setVMBeingRendered(vm: VM | null): void;
19
19
  export declare function evaluateTemplate(vm: VM, html: Template): Array<VNode | null>;
20
- export declare function computeHasScopedStyles(template: Template): boolean;
@@ -1,10 +0,0 @@
1
- import { VM } from './vm';
2
- export declare type MeasurementPhase = 'constructor' | 'render' | 'patch' | 'connectedCallback' | 'disconnectedCallback' | 'renderedCallback' | 'errorCallback';
3
- export declare enum GlobalMeasurementPhase {
4
- REHYDRATE = "lwc-rehydrate",
5
- HYDRATE = "lwc-hydrate"
6
- }
7
- export declare const startMeasure: (phase: MeasurementPhase, vm: VM) => void;
8
- export declare const endMeasure: (phase: MeasurementPhase, vm: VM) => void;
9
- export declare const startGlobalMeasure: (phase: GlobalMeasurementPhase, vm?: VM<any, any> | undefined) => void;
10
- export declare const endGlobalMeasure: (phase: GlobalMeasurementPhase, vm?: VM<any, any> | undefined) => void;