@spiffcommerce/core 0.10.99 → 0.10.101
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 +1 -1
- package/dist/types.d.ts +5 -4
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1178,9 +1178,9 @@ export interface SavedDesign {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
title: string;
|
|
1180
1180
|
/**
|
|
1181
|
-
* A URL pointing to an image of the design.
|
|
1181
|
+
* A URL pointing to an image of the design. Typically a data URL
|
|
1182
1182
|
*/
|
|
1183
|
-
thumbnail
|
|
1183
|
+
thumbnail?: string;
|
|
1184
1184
|
/**
|
|
1185
1185
|
* The ID of the transaction relating to this design.
|
|
1186
1186
|
*/
|
|
@@ -1403,8 +1403,9 @@ export interface WorkflowExperience {
|
|
|
1403
1403
|
* Saves this experience to storage. This may be local or remote depending
|
|
1404
1404
|
* on configuration.
|
|
1405
1405
|
* @param title The title for the saved design.
|
|
1406
|
+
* @param thumbnail An optional thumbnail for the saved design. If none is provided this field will be saved blank.
|
|
1406
1407
|
*/
|
|
1407
|
-
save(title: string): Promise<SavedDesign>;
|
|
1408
|
+
save(title: string, thumbnail?: string): Promise<SavedDesign>;
|
|
1408
1409
|
/**
|
|
1409
1410
|
* Returns a copy of the currently loaded design as a new, seperated workflow experience with
|
|
1410
1411
|
* a fresh transaction.
|
|
@@ -1459,7 +1460,7 @@ export class SpiffCommerceClient {
|
|
|
1459
1460
|
/**
|
|
1460
1461
|
* @returns A list of designs saved.
|
|
1461
1462
|
*/
|
|
1462
|
-
getSavedDesigns(): Promise<SavedDesign[]>;
|
|
1463
|
+
getSavedDesigns(): Promise<import("services/design").SavedDesign[]>;
|
|
1463
1464
|
/**
|
|
1464
1465
|
* Removes a design from storage. This will be a noop if the design isn't already saved.
|
|
1465
1466
|
* @param experience The workflow experience to remove from storage.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.101",
|
|
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",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@apollo/client": "^3.7.0",
|
|
83
|
-
"@spiffcommerce/papyrus": "^1.5.
|
|
83
|
+
"@spiffcommerce/papyrus": "^1.5.32",
|
|
84
84
|
"canvg": "https://github.com/spiffdev/canvg.git#03bcd151b12441e88ecb552bb658356f5bbe92c4",
|
|
85
85
|
"cross-fetch": "^3.1.5",
|
|
86
86
|
"graphql": "^16.6.0",
|