@spiffcommerce/core 0.10.125 → 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 +19 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1312,6 +1312,25 @@ export class QuestionStepHandle extends StepHandle<_QuestionStepData1> {
|
|
|
1312
1312
|
*/
|
|
1313
1313
|
getDisplayType(): string | undefined;
|
|
1314
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
|
+
}[]>;
|
|
1333
|
+
}
|
|
1315
1334
|
interface TextChangeResult {
|
|
1316
1335
|
input: string;
|
|
1317
1336
|
helperText?: string;
|