@spiffcommerce/core 14.4.0 → 14.5.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 +2 -2
- package/dist/module.js +35 -35
- package/dist/types.d.ts +20 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -2104,6 +2104,11 @@ export interface Bundle {
|
|
|
2104
2104
|
* @param experience The workflow experience to remove from this bundle.
|
|
2105
2105
|
*/
|
|
2106
2106
|
removeWorkflowExperience(experience: WorkflowExperience): Promise<void>;
|
|
2107
|
+
/**
|
|
2108
|
+
* Remove a workflow experience from this bundle by transaction.
|
|
2109
|
+
* @param transaction The transaction to remove from this bundle.
|
|
2110
|
+
*/
|
|
2111
|
+
removeWorkflowExperienceByTransaction(transaction: Transaction): Promise<void>;
|
|
2107
2112
|
/**
|
|
2108
2113
|
* Returns all workflow experiences currently added to this bundle.
|
|
2109
2114
|
*/
|
|
@@ -2144,11 +2149,11 @@ export interface Bundle {
|
|
|
2144
2149
|
* @param event The event to listen for. Currently only "conditional-global-properties-changed" is supported.
|
|
2145
2150
|
* @param listener The listener to call when the event occurs.
|
|
2146
2151
|
*/
|
|
2147
|
-
addEventListener(event:
|
|
2152
|
+
addEventListener(event: BundleEventType, listener: (e: BundleEvent) => void): void;
|
|
2148
2153
|
/**
|
|
2149
2154
|
* Remove a previously added event listener from this bundle.
|
|
2150
2155
|
*/
|
|
2151
|
-
removeEventListener(event:
|
|
2156
|
+
removeEventListener(event: BundleEventType, listener: (e: BundleEvent) => void): void;
|
|
2152
2157
|
/**
|
|
2153
2158
|
* Retrieves the current preview service for this bundle, if one exists.
|
|
2154
2159
|
* If a preview service was specified when calling client.getExistingBundle, this will return that service.
|
|
@@ -2169,7 +2174,19 @@ export interface Bundle {
|
|
|
2169
2174
|
*/
|
|
2170
2175
|
getInitializationPromise(): Promise<void>;
|
|
2171
2176
|
}
|
|
2172
|
-
type
|
|
2177
|
+
type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
|
|
2178
|
+
type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
|
|
2179
|
+
type BundleEvent = {
|
|
2180
|
+
bundle: Bundle;
|
|
2181
|
+
data: BundleEventData;
|
|
2182
|
+
event: BundleEventType;
|
|
2183
|
+
};
|
|
2184
|
+
interface ConditionalGlobalPropertiesChangedEventData {
|
|
2185
|
+
globalProperties: GlobalPropertyHandle[];
|
|
2186
|
+
}
|
|
2187
|
+
interface WorkflowExperienceHoverEventData {
|
|
2188
|
+
workflowExperience: WorkflowExperience;
|
|
2189
|
+
}
|
|
2173
2190
|
interface ExecutionResponse {
|
|
2174
2191
|
id: string;
|
|
2175
2192
|
completedAt?: string;
|