@spiffcommerce/core 11.5.0 → 12.1.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 +6 -1
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -253,6 +253,7 @@ declare class Configuration {
|
|
|
253
253
|
addServerUrlCallback(callback: () => void): void;
|
|
254
254
|
}
|
|
255
255
|
export const spiffCoreConfiguration: Configuration;
|
|
256
|
+
export const shortenUrl: (longUrl: string) => Promise<string>;
|
|
256
257
|
declare class DigitalContentStepService implements StepService<_DigitalContentStepData1> {
|
|
257
258
|
init(stepData: _Step1<_DigitalContentStepData1>, workflowManager: WorkflowManager, reducerState?: _LayoutsState1): Promise<CommandWithFollowup | null>;
|
|
258
259
|
regenerateQRCode(elements: RegionElement[], uploading: boolean, assetKey: string, url: string, workflowManager: WorkflowManager, stepData: _Step1<_DigitalContentStepData1>, setUrl: (finalUrl: string) => void, commandDispatcher: (command: _CanvasCommand1) => void, setIsRegenerating: (state: boolean) => void): Promise<void>;
|
|
@@ -537,6 +538,8 @@ export interface WorkflowManager {
|
|
|
537
538
|
*/
|
|
538
539
|
updateStateWithServerImmediate: (getReducerState: () => _CommandState1) => Promise<void>;
|
|
539
540
|
updateStorage: (stepName: string, update: _StepStorage1) => Promise<void>;
|
|
541
|
+
getModelContainer: () => any | undefined;
|
|
542
|
+
setModelContainer: (container: any) => void;
|
|
540
543
|
}
|
|
541
544
|
interface StepService<T extends _AnyStepData1> {
|
|
542
545
|
/**
|
|
@@ -1081,7 +1084,7 @@ declare class AssetService implements AssetManager {
|
|
|
1081
1084
|
* Upload a user asset to the server. Using callbacks to notify important events.
|
|
1082
1085
|
* The asset will be stored via the persistence service for future access, if available.
|
|
1083
1086
|
*/
|
|
1084
|
-
uploadAssetWithProgress(file: FileInfo, assetType: _AssetType1, onProgress: (val: number) => void, anonymous?: boolean): Promise<_Asset1>;
|
|
1087
|
+
uploadAssetWithProgress(file: FileInfo, assetType: _AssetType1, onProgress: (val: number) => void, anonymous?: boolean, temporary?: boolean): Promise<_Asset1>;
|
|
1085
1088
|
uploadFile(file: File, onProgress: (val: number) => void): Promise<_Asset1>;
|
|
1086
1089
|
removePersistedAsset(assetKey: string): void;
|
|
1087
1090
|
getPersistedAssets(): PersistedAsset[];
|
|
@@ -2091,6 +2094,8 @@ export class MockWorkflowManager implements WorkflowManager {
|
|
|
2091
2094
|
getAll: () => Map<any, any>;
|
|
2092
2095
|
};
|
|
2093
2096
|
getPreviewService(): undefined;
|
|
2097
|
+
setModelContainer: (container: any) => void;
|
|
2098
|
+
getModelContainer(): undefined;
|
|
2094
2099
|
getProfanities(): never[];
|
|
2095
2100
|
getRegionElements(_stepName: string): never[];
|
|
2096
2101
|
getSerializedStep(_stepName: string, _serializedSteps: SerializableStep[]): undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.1.0",
|
|
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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@parcel/transformer-typescript-tsc": "^2.8.0",
|
|
46
46
|
"@parcel/transformer-typescript-types": "2.8.0",
|
|
47
47
|
"@parcel/validator-typescript": "^2.8.0",
|
|
48
|
-
"@spiffcommerce/preview": "^
|
|
48
|
+
"@spiffcommerce/preview": "^3.1.5",
|
|
49
49
|
"@types/enzyme": "^3.10.12",
|
|
50
50
|
"@types/jest": "^29.0.3",
|
|
51
51
|
"@types/lodash.clonedeep": "^4.5.7",
|