@spiffcommerce/core 14.5.0 → 14.7.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/dist/types.d.ts CHANGED
@@ -1049,6 +1049,7 @@ interface _Bundle1 {
1049
1049
  id?: string;
1050
1050
  bundleOwnerId?: string;
1051
1051
  bundleStakeholders?: BundleStakeholder[];
1052
+ bundleStateData?: string;
1052
1053
  metadata?: {
1053
1054
  key: string;
1054
1055
  value: string;
@@ -1082,6 +1083,16 @@ type GlobalPropertyStateAspect = {
1082
1083
  name: string;
1083
1084
  value: string;
1084
1085
  };
1086
+ interface BundleStateTransform {
1087
+ position: Vector3;
1088
+ rotation: Vector3;
1089
+ scale: Vector3;
1090
+ }
1091
+ interface Vector3 {
1092
+ x: number;
1093
+ y: number;
1094
+ z: number;
1095
+ }
1085
1096
  interface StorageService {
1086
1097
  /**
1087
1098
  * Get a value.
@@ -2173,6 +2184,12 @@ export interface Bundle {
2173
2184
  * This will resolve immediately if the bundle has no experiences, or if the bundle has already been initialized.
2174
2185
  */
2175
2186
  getInitializationPromise(): Promise<void>;
2187
+ /**
2188
+ * Sets the position, rotation, and scale of a workflow experience within this bundle.
2189
+ * @param workflowExperience The workflow experience to update.
2190
+ * @param transform An object containing `position`, `rotation`, and `scale` properties. Each property is an object with `x`, `y`, and `z` properties.
2191
+ */
2192
+ setWorkflowExperienceTransform(workflowExperience: WorkflowExperience, transform: BundleStateTransform): Promise<void>;
2176
2193
  }
2177
2194
  type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
2178
2195
  type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "14.5.0",
3
+ "version": "14.7.0",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",