@spiffcommerce/core 26.30.1-beta.bd6c2e26-471b-5bce-8962-bb6e924ed382 → 26.30.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.
- package/dist/index.d.ts +1 -12
- package/dist/index.js +152 -146
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1115 -1131
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'preact/compat';
|
|
2
2
|
import * as _apollo_client_core from '@apollo/client/core';
|
|
3
|
-
import {
|
|
3
|
+
import { MutationOptions, FetchResult, ApolloClient } from '@apollo/client/core';
|
|
4
4
|
import { RenderableContextService, RenderableContext, ThreeDPreviewService, ModelContainer } from '@spiffcommerce/preview';
|
|
5
5
|
import * as lodash from 'lodash';
|
|
6
6
|
import { CompleteQuoteMessage, ThemeInstallConfigurationGraphQl, ConversionConfiguration } from '@spiffcommerce/theme-bridge';
|
|
@@ -1017,12 +1017,6 @@ declare class DesignService {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
declare const designService: DesignService;
|
|
1019
1019
|
|
|
1020
|
-
interface GraphQlClient {
|
|
1021
|
-
query<T = any, TVariables extends OperationVariables = OperationVariables>(options: QueryOptions<TVariables, T>): Promise<ApolloQueryResult<T>>;
|
|
1022
|
-
mutate<TData = any, TVariables extends OperationVariables = OperationVariables, TContext extends Record<string, any> = DefaultContext>(options: MutationOptions<TData, TVariables, TContext>): Promise<FetchResult<TData>>;
|
|
1023
|
-
}
|
|
1024
|
-
type GraphQlClientFunc = () => GraphQlClient;
|
|
1025
|
-
|
|
1026
1020
|
/**
|
|
1027
1021
|
* A scene is a collection of steps that can be used to group steps together.
|
|
1028
1022
|
*/
|
|
@@ -1063,10 +1057,6 @@ interface ExperienceOptions {
|
|
|
1063
1057
|
* A function that communicates state changes to the server.
|
|
1064
1058
|
*/
|
|
1065
1059
|
stateMutationFunc: StateMutationFunc;
|
|
1066
|
-
/**
|
|
1067
|
-
* The interface for the graphql client
|
|
1068
|
-
*/
|
|
1069
|
-
graphQlClient: GraphQlClientFunc;
|
|
1070
1060
|
/**
|
|
1071
1061
|
* Should be set to true when the experience is loaded from an existing transaction.
|
|
1072
1062
|
* FIXME: Wouldn't we know this from existance of reloadedState
|
|
@@ -1274,7 +1264,6 @@ declare enum WorkflowExperienceEventType {
|
|
|
1274
1264
|
declare class WorkflowExperienceImpl implements WorkflowExperience {
|
|
1275
1265
|
readonly client: SpiffCommerceClient;
|
|
1276
1266
|
readonly commandContext: CommandContext;
|
|
1277
|
-
readonly graphQlClient: GraphQlClientFunc;
|
|
1278
1267
|
readonly workflowManager: WorkflowManager;
|
|
1279
1268
|
readonly isReadOnly: boolean;
|
|
1280
1269
|
readonly cachedStepHandles: Map<string, StepHandle<any>>;
|