@lwc/engine-core 2.21.0 → 2.23.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 +187 -192
- package/dist/engine-core.js +188 -193
- package/package.json +3 -3
- package/types/framework/accessor-reactive-observer.d.ts +9 -0
- package/types/framework/component.d.ts +1 -1
- package/types/framework/decorators/api.d.ts +0 -8
- package/types/framework/membrane.d.ts +3 -3
- package/types/framework/mutation-tracker.d.ts +2 -0
- package/types/framework/renderer.d.ts +0 -2
- package/types/framework/update-component-value.d.ts +2 -0
- package/types/framework/vm.d.ts +1 -1
- package/types/libs/mutation-tracker/index.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/engine-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "Core LWC engine APIs.",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"types/"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@lwc/features": "2.
|
|
29
|
-
"@lwc/shared": "2.
|
|
28
|
+
"@lwc/features": "2.23.0",
|
|
29
|
+
"@lwc/shared": "2.23.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"observable-membrane": "2.0.0"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactiveObserver } from '../libs/mutation-tracker';
|
|
2
|
+
import { VM } from './vm';
|
|
3
|
+
export declare class AccessorReactiveObserver extends ReactiveObserver {
|
|
4
|
+
private value;
|
|
5
|
+
private debouncing;
|
|
6
|
+
constructor(vm: VM, set: (v: any) => void);
|
|
7
|
+
reset(value?: any): void;
|
|
8
|
+
}
|
|
9
|
+
export declare function createAccessorReactiveObserver(vm: VM, set: (v: any) => void): AccessorReactiveObserver;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ReactiveObserver } from '../mutation-tracker';
|
|
2
|
-
import { VM } from '../vm';
|
|
3
1
|
/**
|
|
4
2
|
* @api decorator to mark public fields and public methods in
|
|
5
3
|
* LWC Components. This function implements the internals of this
|
|
@@ -7,10 +5,4 @@ import { VM } from '../vm';
|
|
|
7
5
|
*/
|
|
8
6
|
export default function api(target: any, propertyKey: string, descriptor: PropertyDescriptor): void;
|
|
9
7
|
export declare function createPublicPropertyDescriptor(key: string): PropertyDescriptor;
|
|
10
|
-
export declare class AccessorReactiveObserver extends ReactiveObserver {
|
|
11
|
-
private value;
|
|
12
|
-
private debouncing;
|
|
13
|
-
constructor(vm: VM, set: (v: any) => void);
|
|
14
|
-
reset(value?: any): void;
|
|
15
|
-
}
|
|
16
8
|
export declare function createPublicAccessorDescriptor(key: PropertyKey, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ObservableMembrane } from 'observable-membrane';
|
|
2
|
-
export declare const lockerLivePropertyKey: unique symbol;
|
|
3
|
-
export declare const reactiveMembrane: ObservableMembrane;
|
|
4
1
|
/**
|
|
5
2
|
* EXPERIMENTAL: This function implements an unwrap mechanism that
|
|
6
3
|
* works for observable membrane objects. This API is subject to
|
|
7
4
|
* change or being removed.
|
|
8
5
|
*/
|
|
9
6
|
export declare function unwrap(value: any): any;
|
|
7
|
+
export declare function getReadOnlyProxy(value: any): any;
|
|
8
|
+
export declare function getReactiveProxy(value: any): any;
|
|
9
|
+
export declare function markLockerLiveObject(obj: any): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { CallbackFunction, ReactiveObserver } from '../libs/mutation-tracker';
|
|
1
2
|
import { VM } from './vm';
|
|
2
3
|
export declare function componentValueMutated(vm: VM, key: PropertyKey): void;
|
|
3
4
|
export declare function componentValueObserved(vm: VM, key: PropertyKey): void;
|
|
5
|
+
export declare function createReactiveObserver(callback: CallbackFunction): ReactiveObserver;
|
|
4
6
|
export * from '../libs/mutation-tracker';
|
|
@@ -3,11 +3,9 @@ export declare type HostElement = any;
|
|
|
3
3
|
declare type N = HostNode;
|
|
4
4
|
declare type E = HostElement;
|
|
5
5
|
export interface RendererAPI {
|
|
6
|
-
ssr: boolean;
|
|
7
6
|
isNativeShadowDefined: boolean;
|
|
8
7
|
isSyntheticShadowDefined: boolean;
|
|
9
8
|
HTMLElementExported: typeof HTMLElement;
|
|
10
|
-
isHydrating: () => boolean;
|
|
11
9
|
insert: (node: N, parent: E, anchor: N | null) => void;
|
|
12
10
|
remove: (node: N, parent: E) => void;
|
|
13
11
|
cloneNode: (node: N, deep: boolean) => N;
|
package/types/framework/vm.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Template } from './template';
|
|
|
3
3
|
import { ComponentDef } from './def';
|
|
4
4
|
import { LightningElement, LightningElementConstructor } from './base-lightning-element';
|
|
5
5
|
import { ReactiveObserver } from './mutation-tracker';
|
|
6
|
-
import { AccessorReactiveObserver } from './
|
|
6
|
+
import { AccessorReactiveObserver } from './accessor-reactive-observer';
|
|
7
7
|
import { VNodes, VCustomElement, VNode } from './vnodes';
|
|
8
8
|
declare type ShadowRootMode = 'open' | 'closed';
|
|
9
9
|
export interface TemplateCache {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function valueMutated(target: object, key: PropertyKey): void;
|
|
2
2
|
export declare function valueObserved(target: object, key: PropertyKey): void;
|
|
3
|
-
declare type CallbackFunction = (rp: ReactiveObserver) => void;
|
|
4
|
-
declare type JobFunction = () => void;
|
|
3
|
+
export declare type CallbackFunction = (rp: ReactiveObserver) => void;
|
|
4
|
+
export declare type JobFunction = () => void;
|
|
5
5
|
export declare class ReactiveObserver {
|
|
6
6
|
private listeners;
|
|
7
7
|
private callback;
|
|
@@ -16,4 +16,3 @@ export declare class ReactiveObserver {
|
|
|
16
16
|
notify(): void;
|
|
17
17
|
link(reactiveObservers: ReactiveObserver[]): void;
|
|
18
18
|
}
|
|
19
|
-
export {};
|