@spiffcommerce/core 21.1.1 → 21.1.2

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 CHANGED
@@ -1667,6 +1667,76 @@ declare abstract class GlobalPropertyHandle {
1667
1667
  */
1668
1668
  protected getSharedSteps(targetExperiences?: WorkflowExperience[]): StepHandle<_spiffcommerce_papyrus.AnyStepData>[];
1669
1669
  }
1670
+ /**
1671
+ * A file upload global property allows for setting a frame image against all shared steps.
1672
+ */
1673
+ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
1674
+ constructor(bundle: Bundle, property: GlobalPropertyConfigurationAspect);
1675
+ /**
1676
+ * Select an image to be used for all shared steps.
1677
+ * @param asset The asset to use.
1678
+ * @returns A promise resolving when all affected steps have been updated.
1679
+ */
1680
+ selectImage(asset: Asset): Promise<void>;
1681
+ applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1682
+ private applyImageSelection;
1683
+ }
1684
+ declare class TextGlobalPropertyHandle extends GlobalPropertyHandle {
1685
+ constructor(bundle: Bundle, property: GlobalPropertyConfigurationAspect);
1686
+ /**
1687
+ * Gets the current text
1688
+ */
1689
+ getText(): string;
1690
+ /**
1691
+ * Set the text.
1692
+ */
1693
+ setText(text: string): Promise<void>;
1694
+ applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1695
+ private applyTextSelection;
1696
+ }
1697
+ /**
1698
+ * An option property handle represents a property that can
1699
+ * affect the option of steps across multiple transactions.
1700
+ */
1701
+ declare class OptionGlobalPropertyHandle extends GlobalPropertyHandle {
1702
+ protected optionResource?: OptionResource;
1703
+ constructor(bundle: Bundle, property: GlobalPropertyConfigurationAspect, optionResource: OptionResource | undefined);
1704
+ /**
1705
+ * Gets the currently selected variant, or undefined if no variant is selected.
1706
+ */
1707
+ getCurrentVariant(): Variant | undefined;
1708
+ /**
1709
+ * @returns A list of valid variants for this step. Does not include disabled variants.
1710
+ */
1711
+ getAvailableVariants(): Variant[];
1712
+ /**
1713
+ * @returns A list of all variants for this step, including disabled ones.
1714
+ */
1715
+ getAllVariants(): Variant[];
1716
+ /**
1717
+ * Select a given variant on the option for all shared steps.
1718
+ * @param variant The variant to select.
1719
+ */
1720
+ selectVariant(variant: Variant): Promise<void>;
1721
+ applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1722
+ private applyVariantSelection;
1723
+ }
1724
+ /**
1725
+ * A color option property handle represents a property that can
1726
+ * affect the option of steps across multiple transactions. This class is a specialization of the OptionGlobalPropertyHandle which includes functionality for
1727
+ * setting custom color values when a custom color variant is selected.
1728
+ */
1729
+ declare class ColorOptionGlobalPropertyHandle extends OptionGlobalPropertyHandle {
1730
+ constructor(bundle: Bundle, property: GlobalPropertyConfigurationAspect, optionResource: OptionResource | undefined);
1731
+ /**
1732
+ * Sets a custom color on the global state.
1733
+ */
1734
+ setCustomColor(color: string): void;
1735
+ /**
1736
+ * Gets the custom color used by the global state.
1737
+ */
1738
+ getCustomColor(): string;
1739
+ }
1670
1740
 
1671
1741
  interface GlobalPropertyStateManager {
1672
1742
  getInitializationPromise(): Promise<void>;
@@ -3032,4 +3102,4 @@ declare class PromiseCache {
3032
3102
  }
3033
3103
  declare const promiseCache: PromiseCache;
3034
3104
 
3035
- export { ArrayInput, AssetNotFoundError, Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, CollectionProduct, ColorOption, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextInput, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
3105
+ export { ArrayInput, AssetNotFoundError, Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, CollectionProduct, ColorOption, ColorOptionGlobalPropertyHandle, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, ParseError, PictureStepHandle, Product, ProductCameraRig, ProductCollection, ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextGlobalPropertyHandle, TextInput, TextStepHandle, TextStepStorage, Transaction, Transform, TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, createDesign, designService, digitalContentStepService, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, questionStepService, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
package/dist/index.js CHANGED
@@ -10789,12 +10789,14 @@ export {
10789
10789
  Xi as BringToFrontCommand,
10790
10790
  qi as CanvasCommand,
10791
10791
  Oe as CollectionProduct,
10792
+ Wa as ColorOptionGlobalPropertyHandle,
10792
10793
  Zi as CommandContext,
10793
10794
  cn as ConversionDataType,
10794
10795
  rn as ConversionLocation,
10795
10796
  $i as CreateElementCommand,
10796
10797
  _i as CreateLayoutCommand,
10797
10798
  es as DeleteElementCommand,
10799
+ ja as FileUploadGlobalPropertyHandle,
10798
10800
  Qe as FlowExecutionNodeResult,
10799
10801
  ii as FlowExecutionResult,
10800
10802
  ai as FlowService,
@@ -10822,6 +10824,7 @@ export {
10822
10824
  rs as MoveCommand,
10823
10825
  dt as ObjectInput,
10824
10826
  si as ObjectInputType,
10827
+ Bt as OptionGlobalPropertyHandle,
10825
10828
  Me as OptionNotFoundError,
10826
10829
  oe as ParseError,
10827
10830
  Aa as PictureStepHandle,
@@ -10843,6 +10846,7 @@ export {
10843
10846
  W as StepHandle,
10844
10847
  ds as StepType,
10845
10848
  ws as TextChangeCommand,
10849
+ Va as TextGlobalPropertyHandle,
10846
10850
  bi as TextInput,
10847
10851
  aa as TextStepHandle,
10848
10852
  ti as Transform,