@flowerforce/flower-core 4.0.1-beta.4 → 4.0.1-beta.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.cjs.js
CHANGED
@@ -650,7 +650,7 @@ const FlowerCoreBaseReducers = {
|
|
650
650
|
payload: { name: flowName, node: nextNumberNode }
|
651
651
|
});
|
652
652
|
},
|
653
|
-
|
653
|
+
back: (state, { payload }) => {
|
654
654
|
const { name, flowName } = payload;
|
655
655
|
FlowerCoreBaseReducers.historyPop(state, {
|
656
656
|
type: 'historyPop',
|
package/dist/index.esm.js
CHANGED
@@ -648,7 +648,7 @@ const FlowerCoreBaseReducers = {
|
|
648
648
|
payload: { name: flowName, node: nextNumberNode }
|
649
649
|
});
|
650
650
|
},
|
651
|
-
|
651
|
+
back: (state, { payload }) => {
|
652
652
|
const { name, flowName } = payload;
|
653
653
|
FlowerCoreBaseReducers.historyPop(state, {
|
654
654
|
type: 'historyPop',
|
@@ -197,7 +197,7 @@ export type CoreReducersFunctions<T extends Record<string, any> = Record<FlowCas
|
|
197
197
|
*
|
198
198
|
* @returns state
|
199
199
|
*/
|
200
|
-
|
200
|
+
back: ReducerFunctionSign<T, {
|
201
201
|
name?: string;
|
202
202
|
flowName?: string;
|
203
203
|
}>;
|
@@ -235,7 +235,7 @@ export type CoreReducersFunctions<T extends Record<string, any> = Record<FlowCas
|
|
235
235
|
*/
|
236
236
|
>;
|
237
237
|
};
|
238
|
-
export type FlowCaseReducersNames = 'historyAdd' | 'historyPrevToNode' | 'forceAddHistory' | 'historyPop' | 'restoreHistory' | 'replaceNode' | 'forceResetHistory' | 'destroy' | 'initNodes' | 'setCurrentNode' | 'node' | 'prevToNode' | 'next' | '
|
238
|
+
export type FlowCaseReducersNames = 'historyAdd' | 'historyPrevToNode' | 'forceAddHistory' | 'historyPop' | 'restoreHistory' | 'replaceNode' | 'forceResetHistory' | 'destroy' | 'initNodes' | 'setCurrentNode' | 'node' | 'prevToNode' | 'next' | 'back' | 'restart' | 'reset';
|
239
239
|
type DataReducerFunctionSign<T extends object, R = object> = (state: Record<string, T>, action: ActionWithPayload<{
|
240
240
|
rootName: string;
|
241
241
|
} & R>) => Record<string, T> | void;
|