@spiffcommerce/core 0.5.0 → 0.5.2
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 +4 -7
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -143,8 +143,10 @@ declare class Configuration {
|
|
|
143
143
|
constructor();
|
|
144
144
|
getServerUrl(): string;
|
|
145
145
|
getServicesApiUrl(): string;
|
|
146
|
+
getHubUrl(): string;
|
|
146
147
|
setServerUrl(serverUrl: string): void;
|
|
147
148
|
setServicesApiUrl(servicesApiUrl: string): void;
|
|
149
|
+
setHubUrl(hubUrl: string): void;
|
|
148
150
|
addServerUrlCallback(callback: () => void): void;
|
|
149
151
|
}
|
|
150
152
|
export const spiffCoreConfiguration: Configuration;
|
|
@@ -328,9 +330,6 @@ declare class TextStepService implements StepService<_TextStepData1> {
|
|
|
328
330
|
* @deprecated
|
|
329
331
|
*/
|
|
330
332
|
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
333
|
selectVariant(step: Step<_TextStepData1>, variant: VariantResource, storage: TextStepStorage, elements: RegionElement[], workflowManager: WorkflowManager, customiseAllText: boolean, setError: (status: boolean) => void, setHelperText: (text: string) => void): void;
|
|
335
334
|
fontDataFromVariant(variant: VariantResource): Promise<FontData>;
|
|
336
335
|
findOrCreateElements(workflowManager: WorkflowManager, step: Step<_TextStepData1>, getAllLayouts: () => any[]): Promise<_TextboxElement1[]>;
|
|
@@ -424,9 +423,8 @@ export interface WorkflowManager {
|
|
|
424
423
|
getPreviewService: () => _ThreeDPreviewService1 | undefined;
|
|
425
424
|
getProductName: () => string | undefined;
|
|
426
425
|
getProfanities: () => string[];
|
|
426
|
+
getRegionElements: (stepName: string) => RegionElement[];
|
|
427
427
|
getSerializedStep: (stepName: string, serializedSteps: SerializableStep[]) => SerializableStep | undefined;
|
|
428
|
-
getStepSpecificElements: (stepName: string) => RegionElement[];
|
|
429
|
-
getStepSpecificStorage: (stepName: string) => StepStorage;
|
|
430
428
|
getStepSpecificServices: (stepName: string) => StepSpecificServices | undefined;
|
|
431
429
|
getTransaction: () => Transaction;
|
|
432
430
|
getWorkflow: () => Workflow;
|
|
@@ -1174,8 +1172,7 @@ export class MockWorkflowManager implements WorkflowManager {
|
|
|
1174
1172
|
getPreviewService(): any;
|
|
1175
1173
|
getProductName(): string;
|
|
1176
1174
|
getProfanities(): any[];
|
|
1177
|
-
|
|
1178
|
-
getStepSpecificStorage(stepName: string): {};
|
|
1175
|
+
getRegionElements(_stepName: string): any[];
|
|
1179
1176
|
getSerializedStep(_stepName: string, _serializedSteps: SerializableStep[]): any;
|
|
1180
1177
|
getStepSpecificServices(_stepName: string): any;
|
|
1181
1178
|
getTransaction(): {
|