@luvio/lwc-luvio 0.156.4 → 0.156.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Adapter, AdapterRequestContext, Luvio } from '@luvio/engine';
|
|
2
|
-
import type { WireConfigValue, WireContextValue,
|
|
2
|
+
import type { WireAdapterConstructor, WireConfigValue, WireContextValue, WireDataCallback } from 'lwc';
|
|
3
3
|
import type { AstResolver, DocumentNode } from '@luvio/graphql-parser';
|
|
4
4
|
import type { SourceContext } from './LWCLuvioWireAdapter';
|
|
5
5
|
import { LWCLuvioWireAdapter } from './LWCLuvioWireAdapter';
|
|
@@ -33,7 +33,7 @@ export type GraphQLResponse = {
|
|
|
33
33
|
};
|
|
34
34
|
export declare class LWCGraphQLLuvioWireAdapter extends LWCLuvioWireAdapter {
|
|
35
35
|
astResolver: AstResolver;
|
|
36
|
-
constructor(adapter: Adapter<unknown, unknown>, name: string, luvio: Luvio, astResolver: AstResolver, callback:
|
|
36
|
+
constructor(adapter: Adapter<unknown, unknown>, name: string, luvio: Luvio, astResolver: AstResolver, callback: WireDataCallback, sourceContext?: SourceContext);
|
|
37
37
|
update(config: WireConfigValue, context?: WireContextValue): void;
|
|
38
38
|
/**
|
|
39
39
|
* Emits new values to the callback.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Adapter, AdapterRequestContext, Luvio, Snapshot } from '@luvio/engine';
|
|
2
|
-
import type { WireConfigValue, WireContextValue
|
|
2
|
+
import type { WireAdapterConstructor, WireConfigValue, WireContextValue } from 'lwc';
|
|
3
3
|
import { LWCLuvioWireAdapter } from './LWCLuvioWireAdapter';
|
|
4
4
|
export declare class LWCInfinteScrollingLuvioWireAdapter extends LWCLuvioWireAdapter {
|
|
5
5
|
private connectTimestamp?;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Adapter, AdapterRequestContext, Luvio, Snapshot, Unsubscribe } from '@luvio/engine';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WireAdapter, WireAdapterConstructor, WireConfigValue, WireContextValue, WireDataCallback } from 'lwc';
|
|
3
3
|
import type { EmittableSnapshot } from './utils/SnapshotState';
|
|
4
4
|
export type SourceContext = {
|
|
5
5
|
tagName: string;
|
|
@@ -7,7 +7,7 @@ export type SourceContext = {
|
|
|
7
7
|
export declare class LWCLuvioWireAdapter implements WireAdapter {
|
|
8
8
|
adapter: Adapter<unknown, unknown>;
|
|
9
9
|
name: string;
|
|
10
|
-
callback:
|
|
10
|
+
callback: WireDataCallback;
|
|
11
11
|
config?: unknown;
|
|
12
12
|
connected: boolean;
|
|
13
13
|
luvio: Luvio;
|
|
@@ -18,7 +18,7 @@ export declare class LWCLuvioWireAdapter implements WireAdapter {
|
|
|
18
18
|
*
|
|
19
19
|
* @param callback callback to be invoked with new values
|
|
20
20
|
*/
|
|
21
|
-
constructor(adapter: Adapter<unknown, unknown>, name: string, luvio: Luvio, callback:
|
|
21
|
+
constructor(adapter: Adapter<unknown, unknown>, name: string, luvio: Luvio, callback: WireDataCallback, sourceContext?: SourceContext);
|
|
22
22
|
/**
|
|
23
23
|
* Called when the component associated with the wire adapter is connected.
|
|
24
24
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/lwc-luvio",
|
|
3
|
-
"version": "0.156.
|
|
3
|
+
"version": "0.156.6",
|
|
4
4
|
"description": "Lightning Web Component bindings for Luvio",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
"watch": "yarn build --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@luvio/engine": "^0.156.
|
|
33
|
-
"@lwc/engine-core": "3.1.0"
|
|
32
|
+
"@luvio/engine": "^0.156.6"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@luvio/adapter-test-library": "^0.156.
|
|
37
|
-
"@luvio/cli": "^0.156.
|
|
38
|
-
"@lwc/jest-preset": "
|
|
35
|
+
"@luvio/adapter-test-library": "^0.156.6",
|
|
36
|
+
"@luvio/cli": "^0.156.6",
|
|
37
|
+
"@lwc/jest-preset": "18.1.0",
|
|
39
38
|
"jest-environment-jsdom": "^29.5.0"
|
|
40
39
|
},
|
|
41
40
|
"volta": {
|