@spiffcommerce/core 26.14.0 → 26.15.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +9 -47
- package/dist/index.js +239 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1890 -1665
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
## [26.15.0] - 03-03-2025
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Methods on experiences and bundles to attach adresses and organizations.
|
|
22
|
+
|
|
17
23
|
## [26.13.0] - 27-02-2025
|
|
18
24
|
|
|
19
25
|
### Changed
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import * as _apollo_client_core from '@apollo/client/core';
|
|
|
3
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
|
-
import { ThemeInstallConfigurationGraphQl } from '@spiffcommerce/theme-bridge';
|
|
6
|
+
import { ThemeInstallConfigurationGraphQl, ConversionConfiguration } from '@spiffcommerce/theme-bridge';
|
|
7
|
+
export { ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation } from '@spiffcommerce/theme-bridge';
|
|
7
8
|
import { FuseResult } from 'fuse.js';
|
|
8
9
|
import { Font } from 'opentype.js';
|
|
9
10
|
|
|
@@ -1253,6 +1254,8 @@ interface WorkflowExperience {
|
|
|
1253
1254
|
* @param callback The function to remove.
|
|
1254
1255
|
*/
|
|
1255
1256
|
removeEventListener(type: WorkflowExperienceEventType, callback: (workflowExperience: WorkflowExperience) => void): void;
|
|
1257
|
+
attachAddress(streetAddress?: string, apartment?: string, city?: string, country?: string, state?: string, postCode?: string): Promise<void>;
|
|
1258
|
+
attachOrganization(name: string): Promise<void>;
|
|
1256
1259
|
}
|
|
1257
1260
|
declare enum WorkflowExperienceEventType {
|
|
1258
1261
|
QuantityChanged = "QuantityChanged",
|
|
@@ -1273,6 +1276,8 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
|
|
|
1273
1276
|
private renderableSceneCallbacks;
|
|
1274
1277
|
private eventCallbacks;
|
|
1275
1278
|
constructor(client: SpiffCommerceClient, experienceOptions: ExperienceOptions);
|
|
1279
|
+
attachAddress(streetAddress?: string, apartment?: string, city?: string, country?: string, state?: string, postCode?: string): Promise<void>;
|
|
1280
|
+
attachOrganization(name: string): Promise<void>;
|
|
1276
1281
|
getBundle(): Bundle$1 | undefined;
|
|
1277
1282
|
setBundle(bundle: Bundle$1): void;
|
|
1278
1283
|
getClient(): SpiffCommerceClient;
|
|
@@ -1905,6 +1910,8 @@ interface Bundle$1 {
|
|
|
1905
1910
|
getWorkflowViewerAmendLink(): string;
|
|
1906
1911
|
approve(note?: string): Promise<void>;
|
|
1907
1912
|
reject(note?: string): Promise<void>;
|
|
1913
|
+
attachAddress(streetAddress?: string, apartment?: string, city?: string, country?: string, state?: string, postCode?: string): Promise<void>;
|
|
1914
|
+
attachOrganization(name: string): Promise<void>;
|
|
1908
1915
|
}
|
|
1909
1916
|
type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
|
|
1910
1917
|
type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
|
|
@@ -3862,51 +3869,6 @@ declare enum ProductCameraRig {
|
|
|
3862
3869
|
Orbit = 0,
|
|
3863
3870
|
Pan = 1
|
|
3864
3871
|
}
|
|
3865
|
-
/**
|
|
3866
|
-
* Defines the locations at which a conversion attempt can take place.
|
|
3867
|
-
*/
|
|
3868
|
-
declare enum ConversionLocation {
|
|
3869
|
-
/**
|
|
3870
|
-
* The client should expose a flow for allowing the user to optionally input details at any point.
|
|
3871
|
-
*/
|
|
3872
|
-
Manual = "Manual",
|
|
3873
|
-
/**
|
|
3874
|
-
* The client should show the conversion flow at the beginning of a workflow.
|
|
3875
|
-
*/
|
|
3876
|
-
OnStart = "OnStart",
|
|
3877
|
-
/**
|
|
3878
|
-
* The client should allow the user to input details just before quitting the experience.
|
|
3879
|
-
*/
|
|
3880
|
-
OnQuit = "OnQuit",
|
|
3881
|
-
/**
|
|
3882
|
-
* The client should ask the user for details prior to adding to cart.
|
|
3883
|
-
*/
|
|
3884
|
-
OnEnd = "OnEnd"
|
|
3885
|
-
}
|
|
3886
|
-
/**
|
|
3887
|
-
* The data configured to be requested.
|
|
3888
|
-
*/
|
|
3889
|
-
declare enum ConversionDataType {
|
|
3890
|
-
Email = "Email",
|
|
3891
|
-
FirstName = "FirstName",
|
|
3892
|
-
LastName = "LastName",
|
|
3893
|
-
Phone = "Phone"
|
|
3894
|
-
}
|
|
3895
|
-
interface ConversionData {
|
|
3896
|
-
type: ConversionDataType;
|
|
3897
|
-
mandatory: boolean;
|
|
3898
|
-
}
|
|
3899
|
-
/**
|
|
3900
|
-
* The configuration for conversion, exposed on products currently.
|
|
3901
|
-
*/
|
|
3902
|
-
interface ConversionConfiguration {
|
|
3903
|
-
id: string;
|
|
3904
|
-
name?: string;
|
|
3905
|
-
locations: ConversionLocation[];
|
|
3906
|
-
requestedData: ConversionDataType[];
|
|
3907
|
-
requestedDataItems: ConversionData[];
|
|
3908
|
-
mandatory?: boolean;
|
|
3909
|
-
}
|
|
3910
3872
|
/**
|
|
3911
3873
|
* Someone who has used a workflow experience and entered their contact details.
|
|
3912
3874
|
*/
|
|
@@ -5581,4 +5543,4 @@ declare const getOrderedTransactions: (customerId: string, limit: number, offset
|
|
|
5581
5543
|
declare const getTemplateTransactions: (customerId: string, limit: number, offset: number) => Promise<Transaction[]>;
|
|
5582
5544
|
declare const getTemplateBundles: (customerId: string, limit: number, offset: number) => Promise<Bundle[]>;
|
|
5583
5545
|
|
|
5584
|
-
export { AddonHandle, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetConfiguration, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, BundleStakeholder, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData,
|
|
5546
|
+
export { AddonHandle, Animatable, AnyStepData, ArrayInput, AspectType, Asset, AssetConfiguration, AssetNotFoundError, AssetObjectVersion, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, BundleStakeholder, CanvasCommand, CollectionProduct, ColorDefinition, ColorOption, ColorOptionGlobalPropertyHandle, ColorProfileProps, CommandContext, CommandState, Condition, ConditionalGlobalPropertiesChangedEventData, CreateElementCommand, CreateLayoutCommand, Customer, CustomerDetailsInput, DeleteElementCommand, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepData, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameService, FrameStep, FrameStepData, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyConfiguration, GlobalPropertyHandle, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, IllustrationStepHandle, ImageElement, InformationMessageType, InformationResult, InformationStepData, InformationStepHandle, Integration, IntegrationOptionResource, IntegrationProduct, IntegrationType, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutNotFoundError, LayoutRenderingPurpose, LayoutState, LayoutsState, MandatorySteps, MaterialEffectMode, MaterialStepData, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepData, ModelStepHandle, ModuleStepData, ModuleStepHandle, MoveCommand, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, OptionResource, Order, OrderItem, PapyrusComponent, ParseError, PictureStepData, PictureStepHandle, Placeable, PmsSearchResult, Point, Product, ProductCameraRig, ProductCollection, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepData, QuestionStepHandle, QueueablePromise, Region, RegionElement, RenderableScene, ResizeCommand, ResourceNotFoundError, RotateCommand, SavedDesign, ScaleAxis, SelectionStorage, SendBackwardsCommand, ShapeStepData, ShapeStepHandle, ShareAction, ShareActionType, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, Step, StepAspect, StepAspectType, StepElements, StepGroup, StepHandle, StepStorage, StepType, TextAlgorithm, TextChangeCommand, TextChangeResult, TextGlobalPropertyHandle, TextInput, TextStepData, TextStepHandle, TextStepStorage, TextboxElement, Theme, ToastCallback, Transaction, Transform, TransformCollection$1 as TransformCollection, UnhandledBehaviorError, UnitOfMeasurement, UpdateImageSourceCommand, Variant, VariantResource, Vector3, Workflow, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowPanel, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, browserColorToHex, cmPerPixel, createDesign, currentDirection, dataUrlFromExternalUrl, designService, determineCorrectFontSizeAndLines, digitalContentStepService, domParser, duplicateBundle, duplicateTransaction, fetchAsString, findAngle, findElement, findPmsColors, frameDataCache, frameStepService, generate, generateCommands, generateSVGWithUnknownColors, generateStateFromDesignInputSteps, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getBoundedOffsets, getBundleThemeConfiguration, getCustomer, getCustomerBundles, getElementVertices, getFrameData, getIntegration, getNEPoint, getNWPoint, getOrderedTransactions, getOverrideThemeConfiguration, getPointOfRotation, getSEPoint, getSvgElement, getTemplateBundles, getTemplateTransactions, getTransaction, getTransactionThemeConfiguration, getTransactionsForBundle, getTrueCoordinates, getUnorderedTransactions, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, isCloseToValue, loadFont, matchHexToPms, materialStepService, mmPerPixel, modelStepService, modifySVGColors, moduleStepService, nameBundle, nameTransaction, optionService, outlineFontsInSvg, patternImageDataCache, persistenceService, pictureStepService, pmsToRgb, questionStepService, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, rgbToPms, rotateAroundPoint, sanitizeSvgTree, setBearerAuthenticationToken, setCanvasModule, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, svgColorValueToDefinition, svgStringDimensions, svgToDataUrl, textStepService, toast, xmlSerializer };
|