@spiffcommerce/core 0.5.0 → 0.5.1

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
@@ -328,9 +328,6 @@ declare class TextStepService implements StepService<_TextStepData1> {
328
328
  * @deprecated
329
329
  */
330
330
  curFontData: FontData, input: string, storage: TextStepStorage, workflowManager: WorkflowManager, customiseAllText: boolean, setError: (status: boolean) => void, setHelperText: (text: string) => void, setFlashRedError?: (status: boolean) => void): Promise<GroupCommand | undefined>;
331
- /**
332
- * Selects a new font variant for a given text step
333
- */
334
331
  selectVariant(step: Step<_TextStepData1>, variant: VariantResource, storage: TextStepStorage, elements: RegionElement[], workflowManager: WorkflowManager, customiseAllText: boolean, setError: (status: boolean) => void, setHelperText: (text: string) => void): void;
335
332
  fontDataFromVariant(variant: VariantResource): Promise<FontData>;
336
333
  findOrCreateElements(workflowManager: WorkflowManager, step: Step<_TextStepData1>, getAllLayouts: () => any[]): Promise<_TextboxElement1[]>;
@@ -424,9 +421,8 @@ export interface WorkflowManager {
424
421
  getPreviewService: () => _ThreeDPreviewService1 | undefined;
425
422
  getProductName: () => string | undefined;
426
423
  getProfanities: () => string[];
424
+ getRegionElements: (stepName: string) => RegionElement[];
427
425
  getSerializedStep: (stepName: string, serializedSteps: SerializableStep[]) => SerializableStep | undefined;
428
- getStepSpecificElements: (stepName: string) => RegionElement[];
429
- getStepSpecificStorage: (stepName: string) => StepStorage;
430
426
  getStepSpecificServices: (stepName: string) => StepSpecificServices | undefined;
431
427
  getTransaction: () => Transaction;
432
428
  getWorkflow: () => Workflow;
@@ -1174,8 +1170,7 @@ export class MockWorkflowManager implements WorkflowManager {
1174
1170
  getPreviewService(): any;
1175
1171
  getProductName(): string;
1176
1172
  getProfanities(): any[];
1177
- getStepSpecificElements(_stepName: string): any[];
1178
- getStepSpecificStorage(stepName: string): {};
1173
+ getRegionElements(_stepName: string): any[];
1179
1174
  getSerializedStep(_stepName: string, _serializedSteps: SerializableStep[]): any;
1180
1175
  getStepSpecificServices(_stepName: string): any;
1181
1176
  getTransaction(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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",