@spiffcommerce/core 0.10.4 → 0.10.6

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
@@ -1108,6 +1108,42 @@ export abstract class StepHandle<T extends _AnyStepData1> {
1108
1108
  */
1109
1109
  getType(): _StepType1;
1110
1110
  }
1111
+ export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
1112
+ constructor(manager: WorkflowManager, step: _Step1<_IllustrationStepData1>);
1113
+ selectVariant(variant: _VariantResource1): Promise<void>;
1114
+ /**
1115
+ * Get colors for the illustration.
1116
+ * @returns A list of color definitions that are currently applied to the illustration.
1117
+ */
1118
+ getColors(): {
1119
+ [key: string]: import("@spiffcommerce/papyrus").ColorDefinition;
1120
+ };
1121
+ }
1122
+ interface TextChangeResult {
1123
+ input: string;
1124
+ helperText?: string;
1125
+ errorText?: string;
1126
+ }
1127
+ export class TextStepHandle extends StepHandle<_TextStepData1> {
1128
+ constructor(manager: WorkflowManager, step: _Step1<_TextStepData1>);
1129
+ selectVariant(variant: _VariantResource1): Promise<void>;
1130
+ /**
1131
+ * Changes the fill of text related to this step to the new fill value.
1132
+ * @param fill A new fill value to use.
1133
+ */
1134
+ setFill(fill: ColorOption): Promise<void>;
1135
+ /**
1136
+ * When true & the step has replaceable text configured the user will be
1137
+ * abled to edit the entire text string including the non-replaceable text.
1138
+ * @param shouldCustomizeAll When true the user can configure the entire text string.
1139
+ */
1140
+ setFullTextCustomization(shouldCustomizeAll: boolean): void;
1141
+ /**
1142
+ * Changes the text value of text related to this step to a new value.
1143
+ * @param userInput Input from the user.
1144
+ */
1145
+ setText(userInput: string): TextChangeResult;
1146
+ }
1111
1147
  /**
1112
1148
  * A Workflow experience encapsulates the workflow manager and command context. It
1113
1149
  * provides a simplified interface for interacting with the workflow manager. You
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
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",