@spiffcommerce/core 3.0.0 → 3.2.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/main.js +7 -7
- package/dist/module.js +6 -6
- package/dist/types.d.ts +17 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1511,6 +1511,16 @@ export class TextStepHandle extends StepHandle<_TextStepData1> {
|
|
|
1511
1511
|
hasVaryingSelection(): boolean | undefined;
|
|
1512
1512
|
hasColorPicker(): boolean | undefined;
|
|
1513
1513
|
getRegions(): import("@spiffcommerce/papyrus").Region[];
|
|
1514
|
+
/**
|
|
1515
|
+
* Return the maximum characters allowed for
|
|
1516
|
+
* this step, or undefined if there is no limit.
|
|
1517
|
+
*/
|
|
1518
|
+
getCharacterLimit(): number | undefined;
|
|
1519
|
+
/**
|
|
1520
|
+
* Return the remaining amount of characters that
|
|
1521
|
+
* the user is allowed to add, or undefined if there is no limit.
|
|
1522
|
+
*/
|
|
1523
|
+
getCharactersRemaining(): number | undefined;
|
|
1514
1524
|
}
|
|
1515
1525
|
export const createDesign: (workflowManager: WorkflowManager, workflow: _Workflow1, layouts: _ILayout1[], getReducerState: () => _CommandState1, product: Product, transaction: Transaction, workflowSelections: WorkflowSelections, designName: string, onProgressUpdate: DesignCreationProgressUpdate, updateVariationRecords: (variationRecords: VariationRecord[]) => Promise<void>, variationRecords: VariationRecord[], createPreviewImage: (shouldRender3D?: boolean) => Promise<string>, workflowMetadata?: WorkflowMetadata) => Promise<DesignCreationMessage>;
|
|
1516
1526
|
export interface SavedDesign {
|
|
@@ -1710,6 +1720,13 @@ export interface WorkflowExperience {
|
|
|
1710
1720
|
* @param metadata
|
|
1711
1721
|
*/
|
|
1712
1722
|
onDesignFinished(product: Product, onProgressUpdate: DesignCreationProgressUpdate, selections: WorkflowSelections, metadata?: WorkflowMetadata | undefined): Promise<DesignCreationMessage>;
|
|
1723
|
+
/**
|
|
1724
|
+
* Returns the metadata associated with this workflow experience.
|
|
1725
|
+
* This is a combination of the metadata from the workflow, and the selections made by the user.
|
|
1726
|
+
*/
|
|
1727
|
+
getExportedData(): Map<string, {
|
|
1728
|
+
[key: string]: string;
|
|
1729
|
+
}>;
|
|
1713
1730
|
}
|
|
1714
1731
|
export const getWorkflow: (id: string) => Promise<_Workflow1>;
|
|
1715
1732
|
/**
|