@spiffcommerce/core 0.4.5 → 0.4.7

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