@spiffcommerce/core 0.10.124 → 0.10.126
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/main.js +2 -2
- package/dist/module.js +2 -2
- package/dist/types.d.ts +24 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1256,6 +1256,7 @@ export abstract class StepHandle<T extends _AnyStepData1> {
|
|
|
1256
1256
|
* @returns The type of the step handle.
|
|
1257
1257
|
*/
|
|
1258
1258
|
getType(): _StepType1;
|
|
1259
|
+
getHelpText(): string | undefined;
|
|
1259
1260
|
}
|
|
1260
1261
|
export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
|
|
1261
1262
|
constructor(manager: WorkflowManager, step: _Step1<_IllustrationStepData1>);
|
|
@@ -1306,6 +1307,29 @@ export class PictureStepHandle extends StepHandle<_PictureStepData1> {
|
|
|
1306
1307
|
export class QuestionStepHandle extends StepHandle<_QuestionStepData1> {
|
|
1307
1308
|
constructor(manager: WorkflowManager, step: _Step1<_QuestionStepData1>);
|
|
1308
1309
|
selectVariant(variant: _VariantResource1): Promise<void>;
|
|
1310
|
+
/**
|
|
1311
|
+
* The way that this step expects to be rendered.
|
|
1312
|
+
*/
|
|
1313
|
+
getDisplayType(): string | undefined;
|
|
1314
|
+
}
|
|
1315
|
+
export class ShapeStepHandle extends StepHandle<_ShapeStepData1> {
|
|
1316
|
+
constructor(manager: WorkflowManager, step: _Step1<_ShapeStepData1>);
|
|
1317
|
+
selectVariant(_: _VariantResource1): Promise<void>;
|
|
1318
|
+
/**
|
|
1319
|
+
* Sets the color of the shape.
|
|
1320
|
+
* @param color The color option to use.
|
|
1321
|
+
* @returns A promise resolving when the color has changed in the design.
|
|
1322
|
+
*/
|
|
1323
|
+
setColor(color: ColorOption): Promise<void>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Get available colors for the shape.
|
|
1326
|
+
* @returns A list of color definitions that are currently applied to the illustration.
|
|
1327
|
+
*/
|
|
1328
|
+
getColors(): Promise<{
|
|
1329
|
+
fill: string | undefined;
|
|
1330
|
+
stroke: string | undefined;
|
|
1331
|
+
variant: _VariantResource1;
|
|
1332
|
+
}[]>;
|
|
1309
1333
|
}
|
|
1310
1334
|
interface TextChangeResult {
|
|
1311
1335
|
input: string;
|