@salesforce/lds-bindings 1.103.0 → 1.104.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Adapter, AdapterRequestContext, ErrorResponse as LuvioErrorResponse, Luvio, Unsubscribe } from '@luvio/engine';
|
|
2
|
+
import type { AstResolver } from '@luvio/graphql-parser';
|
|
2
3
|
import type { GraphQLError } from '@luvio/lwc-luvio';
|
|
3
4
|
import type { AdapterMetadata } from './ldsAdapter';
|
|
4
5
|
interface DataResponse {
|
|
@@ -27,5 +28,5 @@ interface ImperativeAdapter<C> {
|
|
|
27
28
|
* @param metadata AdapterMetadata
|
|
28
29
|
* @returns Imperative adapter object with invoke and subscribe functions
|
|
29
30
|
*/
|
|
30
|
-
export declare function createGraphQLImperativeAdapter<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata): ImperativeAdapter<C>;
|
|
31
|
+
export declare function createGraphQLImperativeAdapter<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata, astResolver: AstResolver): ImperativeAdapter<C>;
|
|
31
32
|
export {};
|
package/dist/ldsBindings.js
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { unwrap } from 'lwc';
|
|
16
|
-
import { astResolver } from 'force/ldsGraphqlParser';
|
|
17
16
|
|
|
18
17
|
// instrumentation keys to be imported by ldsInstrumentation
|
|
19
18
|
const REFRESH_ADAPTER_EVENT = 'refresh-adapter-event';
|
|
@@ -784,7 +783,7 @@ function createInvalidConfigError() {
|
|
|
784
783
|
* @param metadata AdapterMetadata
|
|
785
784
|
* @returns Imperative adapter object with invoke and subscribe functions
|
|
786
785
|
*/
|
|
787
|
-
function createGraphQLImperativeAdapter(luvio, adapter, metadata) {
|
|
786
|
+
function createGraphQLImperativeAdapter(luvio, adapter, metadata, astResolver) {
|
|
788
787
|
const { name } = metadata;
|
|
789
788
|
const imperativeAdapterInvoke = (config, requestContext, callback) => {
|
|
790
789
|
const ast = astResolver(config.query);
|
|
@@ -893,10 +892,10 @@ function createInfiniteScrollingWireAdapterConstructor(luvio, adapter, metadata)
|
|
|
893
892
|
const { apiFamily, name } = metadata;
|
|
894
893
|
return createInfiniteScrollingWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio);
|
|
895
894
|
}
|
|
896
|
-
function createGraphQLWireAdapterConstructor(luvio, adapter, metadata) {
|
|
895
|
+
function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolver) {
|
|
897
896
|
const { apiFamily, name } = metadata;
|
|
898
897
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
899
898
|
}
|
|
900
899
|
|
|
901
900
|
export { ADAPTER_UNFULFILLED_ERROR, REFRESH_ADAPTER_EVENT, bindWireRefresh, createGraphQLImperativeAdapter, createGraphQLWireAdapterConstructor, createImperativeAdapter, createInfiniteScrollingWireAdapterConstructor, createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, instrument, refresh };
|
|
902
|
-
// version: 1.
|
|
901
|
+
// version: 1.104.1-1e6c5b3e6
|
package/dist/wireAdapter.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Adapter, Luvio } from '@luvio/engine';
|
|
2
2
|
import type { WireAdapterConstructor } from '@lwc/engine-core';
|
|
3
3
|
import type { AdapterMetadata } from './ldsAdapter';
|
|
4
|
+
import type { AstResolver } from '@luvio/graphql-parser';
|
|
4
5
|
export declare function createWireAdapterConstructor<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata): WireAdapterConstructor;
|
|
5
6
|
export declare function createInfiniteScrollingWireAdapterConstructor<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata): WireAdapterConstructor;
|
|
6
|
-
export declare function createGraphQLWireAdapterConstructor<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata): WireAdapterConstructor;
|
|
7
|
+
export declare function createGraphQLWireAdapterConstructor<C, D>(luvio: Luvio, adapter: Adapter<C, D>, metadata: AdapterMetadata, astResolver: AstResolver): WireAdapterConstructor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-bindings",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.104.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Bindings for SFDC",
|
|
6
6
|
"main": "dist/ldsBindings.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@luvio/lwc-luvio": "0.135.4",
|
|
35
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
35
|
+
"@salesforce/lds-graphql-parser": "^1.104.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@luvio/engine": "0.135.4",
|