@open-tender/cloud 0.0.54 → 0.0.56
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.
|
@@ -156,7 +156,7 @@ exports.submitOrder = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.SubmitO
|
|
|
156
156
|
return rejectWithValue(err);
|
|
157
157
|
}
|
|
158
158
|
}));
|
|
159
|
-
exports.submitOrderPay = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.SubmitOrderPay, (showAlert, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
159
|
+
exports.submitOrderPay = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.SubmitOrderPay, (showAlert = false, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
160
160
|
const { api } = getState().config;
|
|
161
161
|
if (!api)
|
|
162
162
|
return;
|
|
@@ -3,6 +3,6 @@ import { AppState } from '../app';
|
|
|
3
3
|
export interface ConfirmationState {
|
|
4
4
|
order: Order | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const resetConfirmation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
6
|
+
export declare const resetConfirmation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setConfirmationOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
7
7
|
export declare const selectConfirmationOrder: (state: AppState) => Order | null;
|
|
8
8
|
export declare const confirmationReducer: import("redux").Reducer<ConfirmationState, import("redux").AnyAction>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.confirmationReducer = exports.selectConfirmationOrder = exports.resetConfirmation = void 0;
|
|
4
|
+
exports.confirmationReducer = exports.selectConfirmationOrder = exports.setConfirmationOrder = exports.resetConfirmation = void 0;
|
|
4
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
6
|
const types_1 = require("./types");
|
|
6
7
|
const initialState = {
|
|
@@ -16,7 +17,7 @@ const confirmationSlice = (0, toolkit_1.createSlice)({
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
exports.resetConfirmation =
|
|
20
|
+
_a = confirmationSlice.actions, exports.resetConfirmation = _a.resetConfirmation, exports.setConfirmationOrder = _a.setConfirmationOrder;
|
|
20
21
|
const selectConfirmationOrder = (state) => state.confirmation.order;
|
|
21
22
|
exports.selectConfirmationOrder = selectConfirmationOrder;
|
|
22
23
|
exports.confirmationReducer = confirmationSlice.reducer;
|
|
@@ -152,7 +152,7 @@ export const submitOrder = createAsyncThunk(CheckoutActionType.SubmitOrder, (_,
|
|
|
152
152
|
return rejectWithValue(err);
|
|
153
153
|
}
|
|
154
154
|
}));
|
|
155
|
-
export const submitOrderPay = createAsyncThunk(CheckoutActionType.SubmitOrderPay, (showAlert, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
155
|
+
export const submitOrderPay = createAsyncThunk(CheckoutActionType.SubmitOrderPay, (showAlert = false, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
156
156
|
const { api } = getState().config;
|
|
157
157
|
if (!api)
|
|
158
158
|
return;
|
|
@@ -3,6 +3,6 @@ import { AppState } from '../app';
|
|
|
3
3
|
export interface ConfirmationState {
|
|
4
4
|
order: Order | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const resetConfirmation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
6
|
+
export declare const resetConfirmation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setConfirmationOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
7
7
|
export declare const selectConfirmationOrder: (state: AppState) => Order | null;
|
|
8
8
|
export declare const confirmationReducer: import("redux").Reducer<ConfirmationState, import("redux").AnyAction>;
|
|
@@ -13,6 +13,6 @@ const confirmationSlice = createSlice({
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
export const { resetConfirmation } = confirmationSlice.actions;
|
|
16
|
+
export const { resetConfirmation, setConfirmationOrder } = confirmationSlice.actions;
|
|
17
17
|
export const selectConfirmationOrder = (state) => state.confirmation.order;
|
|
18
18
|
export const confirmationReducer = confirmationSlice.reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@open-tender/types": "^0.0.
|
|
58
|
+
"@open-tender/types": "^0.0.89",
|
|
59
59
|
"@open-tender/utils": "^0.0.23"
|
|
60
60
|
}
|
|
61
61
|
}
|