@spiffcommerce/core 21.21.5 → 21.22.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/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3113,7 +3113,7 @@ declare class IllustrationStepHandle extends StepHandle<IllustrationStepData> {
|
|
|
3113
3113
|
stroke: string | undefined;
|
|
3114
3114
|
variant: _spiffcommerce_papyrus.VariantResource;
|
|
3115
3115
|
}[] | undefined>;
|
|
3116
|
-
isColorPickerEnabled(): boolean
|
|
3116
|
+
isColorPickerEnabled(): boolean;
|
|
3117
3117
|
}
|
|
3118
3118
|
|
|
3119
3119
|
interface TextChangeResult {
|
|
@@ -3299,6 +3299,7 @@ declare class FrameStepHandle extends StepHandle<FrameStepData> {
|
|
|
3299
3299
|
getImageData(): PatternImageData | undefined;
|
|
3300
3300
|
getColorOption(): Promise<_spiffcommerce_papyrus.OptionResource | undefined>;
|
|
3301
3301
|
getAvailableColors(): Promise<ColorOption[]>;
|
|
3302
|
+
isColorPickerEnabled(): boolean;
|
|
3302
3303
|
getOriginalImageColors(): Promise<{
|
|
3303
3304
|
[key: string]: ColorDefinition;
|
|
3304
3305
|
} | undefined>;
|
package/dist/index.js
CHANGED
|
@@ -6105,7 +6105,7 @@ class wn extends X {
|
|
|
6105
6105
|
return this.step.data.colorPickerEnabled ? xe.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
6106
6106
|
}
|
|
6107
6107
|
isColorPickerEnabled() {
|
|
6108
|
-
return this.step.data.colorPickerEnabled;
|
|
6108
|
+
return this.step.data.colorPickerEnabled ?? !1;
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
6111
6111
|
class En extends X {
|
|
@@ -11538,6 +11538,9 @@ class Li extends X {
|
|
|
11538
11538
|
getAvailableColors() {
|
|
11539
11539
|
return this.step.data.colorPickerEnabled ? se.availableColors(this.step, this.manager) : Promise.resolve([]);
|
|
11540
11540
|
}
|
|
11541
|
+
isColorPickerEnabled() {
|
|
11542
|
+
return this.step.data.colorPickerEnabled ?? !1;
|
|
11543
|
+
}
|
|
11541
11544
|
async getOriginalImageColors() {
|
|
11542
11545
|
const e = this.getImageData();
|
|
11543
11546
|
return e != null && e.svg ? (await Oe(e.svg)).colors : void 0;
|