@spiffcommerce/core 33.13.2 → 33.13.3

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;
@@ -5040,7 +5046,7 @@ declare class FrameStepService implements StepService<FrameStepData> {
5040
5046
  availableColors(stepData: Step<FrameStepData>, _workflowManager: WorkflowManager): Promise<ColorOption[]>;
5041
5047
  selectImage(stepData: Step<FrameStepData>, asset: Asset, workflowManager: WorkflowManager, recalculateOffsets?: boolean): Promise<void>;
5042
5048
  selectVariant(stepData: Step<FrameStepData>, variant: VariantResource | undefined, elements: RegionElement[], workflowManager: WorkflowManager, setFrameIsUpdating?: (status: boolean) => void): Promise<void>;
5043
- 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>;
5044
5050
  loadPatternFromString(src: string, frameService: FrameService, recalculateOffsets?: boolean, colors?: {
5045
5051
  [key: string]: ColorDefinition;
5046
5052
  } | undefined, colorSafeSvg?: boolean): Promise<void>;
@@ -5071,7 +5077,7 @@ interface SVGCreateOpts {
5071
5077
  }
5072
5078
  declare class IllustrationStepService implements StepService<IllustrationStepData> {
5073
5079
  getIllustrationBody(src: string): Promise<string>;
5074
- 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>;
5075
5081
  getColors(stepData: Step<IllustrationStepData>, workflowManager: WorkflowManager): never[] | {
5076
5082
  [key: string]: ColorDefinition;
5077
5083
  };
@@ -5769,11 +5775,17 @@ declare class LayoutElementFactory {
5769
5775
  designInputStep?: any;
5770
5776
  }): Promise<TextboxElement>;
5771
5777
  static getShape(layout: LayoutData, opts: {
5772
- region?: Region;
5778
+ region?: {
5779
+ item: Region;
5780
+ index: number;
5781
+ };
5773
5782
  color: string;
5774
5783
  }): Promise<IllustrationElement>;
5775
5784
  static getIllustration(layout: LayoutData, opts: {
5776
- region?: Region;
5785
+ region?: {
5786
+ item: Region;
5787
+ index: number;
5788
+ };
5777
5789
  src: string;
5778
5790
  }): Promise<IllustrationElement>;
5779
5791
  }