@spiffcommerce/core 22.4.4 → 22.4.6
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 +6 -3
- package/dist/index.js +367 -354
- package/dist/index.umd.cjs +7 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1141,7 +1141,7 @@ interface GlobalPropertyStateManager {
|
|
|
1141
1141
|
getInitializationPromise(): Promise<void>;
|
|
1142
1142
|
getGlobalPropertyState(): GlobalPropertyState | undefined;
|
|
1143
1143
|
getAspect(name: string): string | undefined;
|
|
1144
|
-
getAspectStorage(name: string):
|
|
1144
|
+
getAspectStorage<S extends GlobalPropertyStateAspectStorage>(name: string): S | undefined;
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Updates the value of a named aspect in the state.
|
|
1147
1147
|
* @param name The name (key) of the aspect. This must match the key in the associated Global Property Config
|
|
@@ -1150,7 +1150,7 @@ interface GlobalPropertyStateManager {
|
|
|
1150
1150
|
* storage (if it already exists). Providing `null` will clear the existing storage.
|
|
1151
1151
|
*/
|
|
1152
1152
|
setAspect(name: string, value: string, storage?: GlobalPropertyStateAspectStorage | null): Promise<void>;
|
|
1153
|
-
setAspectStorage(name: string, storage:
|
|
1153
|
+
setAspectStorage<S extends GlobalPropertyStateAspectStorage>(name: string, storage: S | null): Promise<void>;
|
|
1154
1154
|
setBundleOptions(bundleOptions?: BundleOptions): void;
|
|
1155
1155
|
}
|
|
1156
1156
|
interface BundleOptions {
|
|
@@ -2780,12 +2780,15 @@ type GlobalPropertyStateAspect = {
|
|
|
2780
2780
|
type?: AspectType;
|
|
2781
2781
|
storage?: GlobalPropertyStateAspectStorage;
|
|
2782
2782
|
};
|
|
2783
|
-
type GlobalPropertyStateAspectStorage = GlobalPropertyStateFileUploadStorage;
|
|
2783
|
+
type GlobalPropertyStateAspectStorage = GlobalPropertyStateFileUploadStorage | GlobalPropertyStateColorOptionStorage;
|
|
2784
2784
|
type GlobalPropertyStateFileUploadStorage = {
|
|
2785
2785
|
originalAssetKey?: string;
|
|
2786
2786
|
backgroundRemovedAssetKey?: string;
|
|
2787
2787
|
useOriginalAsset?: boolean;
|
|
2788
2788
|
};
|
|
2789
|
+
type GlobalPropertyStateColorOptionStorage = {
|
|
2790
|
+
customColor?: string;
|
|
2791
|
+
};
|
|
2789
2792
|
interface BundleStateTransform {
|
|
2790
2793
|
position: Vector3;
|
|
2791
2794
|
rotation: Vector3;
|