@spiffcommerce/core 0.10.90 → 0.10.92
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 +19 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -300,6 +300,13 @@ declare class AssetService {
|
|
|
300
300
|
* @returns An asset entity as a promise.
|
|
301
301
|
*/
|
|
302
302
|
getAssetFromVariant: (variant: _VariantResource1) => Promise<IServerModel<_Asset1>>;
|
|
303
|
+
/**
|
|
304
|
+
* Search for the material of a variant. First looks for an material inlined in the variant,
|
|
305
|
+
* otherwise check for ID in our cache and go to the server as a last resort.
|
|
306
|
+
* @param variant The variant to search on.
|
|
307
|
+
* @returns A material entity as a promise.
|
|
308
|
+
*/
|
|
309
|
+
getMaterialFromVariant: (variant: _VariantResource1) => Promise<IServerModel<MaterialResource>>;
|
|
303
310
|
}
|
|
304
311
|
interface PersistedAsset {
|
|
305
312
|
assetKey: string;
|
|
@@ -1257,6 +1264,18 @@ export class IllustrationStepHandle extends StepHandle<_IllustrationStepData1> {
|
|
|
1257
1264
|
* Set color for the illustration.
|
|
1258
1265
|
*/
|
|
1259
1266
|
setColor(key: string, value: string): Promise<void>;
|
|
1267
|
+
getColorOption(): Promise<import("@spiffcommerce/papyrus").IServerModel<import("@spiffcommerce/papyrus").OptionResource> | undefined>;
|
|
1268
|
+
getAvailableColors(): Promise<{
|
|
1269
|
+
fill: string | undefined;
|
|
1270
|
+
stroke: string | undefined;
|
|
1271
|
+
variant: _VariantResource1;
|
|
1272
|
+
}[] | {
|
|
1273
|
+
fill: string;
|
|
1274
|
+
stroke: string;
|
|
1275
|
+
}[]>;
|
|
1276
|
+
hasVaryingSelection(): boolean | undefined;
|
|
1277
|
+
hasVaryingColors(): boolean | undefined;
|
|
1278
|
+
isColorPickerEnabled(): boolean;
|
|
1260
1279
|
}
|
|
1261
1280
|
export class PictureStepHandle extends StepHandle<_PictureStepData1> {
|
|
1262
1281
|
constructor(manager: WorkflowManager, step: _Step1<_PictureStepData1>);
|