@spiffcommerce/core 33.13.1 → 33.13.3-beta.457bd19e-ea34-5883-a9d5-8d280ac94127

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 CHANGED
@@ -14,11 +14,17 @@ 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
+ ## [33.13.3] - 12-11-2025
18
+
19
+ ### Fixed
20
+
21
+ - Corrected non-deterministic behavior with (de)serializing layout states for frame steps with multiple regions.
22
+
17
23
  ## [33.13.1] - 10-11-2025
18
24
 
19
25
  ### Fixed
20
26
 
21
- - Resolved an issue occuring when duplicating bundles causing recipient information to fail to load.
27
+ - Resolved an issue occurring when duplicating bundles causing recipient information to fail to load.
22
28
 
23
29
  ## [33.13.0] - 10-11-2025
24
30
 
package/dist/index.d.ts CHANGED
@@ -3434,6 +3434,7 @@ interface IllustrationColorObject {
3434
3434
  pmsValue?: string;
3435
3435
  }
3436
3436
  interface FrameOffsets {
3437
+ regionIndex?: string;
3437
3438
  y: number;
3438
3439
  x: number;
3439
3440
  zoom: number;
@@ -3469,6 +3470,10 @@ interface LayoutElement extends Layerable {
3469
3470
  * If the element was made from a workflow step, this is its region.
3470
3471
  */
3471
3472
  stepRegion?: Region;
3473
+ /**
3474
+ * If the element was made from a workflow step, this the index of the region.
3475
+ */
3476
+ stepRegionIndex?: number;
3472
3477
  /**
3473
3478
  * The type of this element
3474
3479
  */
@@ -4193,6 +4198,7 @@ interface ColorOption {
4193
4198
  interface RegionElement {
4194
4199
  id: string;
4195
4200
  region?: Region;
4201
+ regionIndex?: number;
4196
4202
  }
4197
4203
  interface FrameMetadata {
4198
4204
  image: string;
@@ -4331,6 +4337,8 @@ interface Bundle {
4331
4337
  productsCount?: number;
4332
4338
  totalPriceSubunits?: number;
4333
4339
  orderId?: string;
4340
+ externalOrderId?: string;
4341
+ internalOrderId?: string;
4334
4342
  quoteId?: string;
4335
4343
  }
4336
4344
  interface BundleStakeholder {
@@ -5038,7 +5046,7 @@ declare class FrameStepService implements StepService<FrameStepData> {
5038
5046
  availableColors(stepData: Step<FrameStepData>, _workflowManager: WorkflowManager): Promise<ColorOption[]>;
5039
5047
  selectImage(stepData: Step<FrameStepData>, asset: Asset, workflowManager: WorkflowManager, recalculateOffsets?: boolean): Promise<void>;
5040
5048
  selectVariant(stepData: Step<FrameStepData>, variant: VariantResource | undefined, elements: RegionElement[], workflowManager: WorkflowManager, setFrameIsUpdating?: (status: boolean) => void): Promise<void>;
5041
- getCreateElementCommand(id: string, region: Region, layout: ILayout, options: FrameCreateOpts): CreateElementCommand<FrameElement>;
5049
+ getCreateElementCommand(id: string, region: Region, regionIndex: number | undefined, layout: ILayout, options: FrameCreateOpts): CreateElementCommand<FrameElement>;
5042
5050
  loadPatternFromString(src: string, frameService: FrameService, recalculateOffsets?: boolean, colors?: {
5043
5051
  [key: string]: ColorDefinition;
5044
5052
  } | undefined, colorSafeSvg?: boolean): Promise<void>;
@@ -5069,7 +5077,7 @@ interface SVGCreateOpts {
5069
5077
  }
5070
5078
  declare class IllustrationStepService implements StepService<IllustrationStepData> {
5071
5079
  getIllustrationBody(src: string): Promise<string>;
5072
- getCreateElementCommand(id: string, region: Region, layout: ILayout, options: SVGCreateOpts): CreateElementCommand<IllustrationElement>;
5080
+ getCreateElementCommand(id: string, region: Region, regionIndex: number, layout: ILayout, options: SVGCreateOpts): CreateElementCommand<IllustrationElement>;
5073
5081
  getColors(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager): never[] | {
5074
5082
  [key: string]: ColorDefinition;
5075
5083
  };
@@ -5767,11 +5775,17 @@ declare class LayoutElementFactory {
5767
5775
  designInputStep?: any;
5768
5776
  }): Promise<TextboxElement>;
5769
5777
  static getShape(layout: LayoutData, opts: {
5770
- region?: Region;
5778
+ region?: {
5779
+ item: Region;
5780
+ index: number;
5781
+ };
5771
5782
  color: string;
5772
5783
  }): Promise<IllustrationElement>;
5773
5784
  static getIllustration(layout: LayoutData, opts: {
5774
- region?: Region;
5785
+ region?: {
5786
+ item: Region;
5787
+ index: number;
5788
+ };
5775
5789
  src: string;
5776
5790
  }): Promise<IllustrationElement>;
5777
5791
  }