@open-tender/cloud 0.1.21 → 0.1.22
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.
|
@@ -88,11 +88,7 @@ export declare const selectOptIns: (state: AppState) => {
|
|
|
88
88
|
order_notifications: import("@open-tender/types").ConfigOrderNotifications | null | undefined;
|
|
89
89
|
};
|
|
90
90
|
export declare const selectFulfillment: (state: AppState) => import("@open-tender/types").ConfigFulfillment | undefined;
|
|
91
|
-
export declare const selectRecaptcha: (state: AppState) =>
|
|
92
|
-
addCard: boolean;
|
|
93
|
-
donations: boolean;
|
|
94
|
-
giftCards: boolean;
|
|
95
|
-
} | undefined;
|
|
91
|
+
export declare const selectRecaptcha: (state: AppState) => import("@open-tender/types").ConfigRecaptcha | undefined;
|
|
96
92
|
export declare const selectContentSection: <T extends keyof ConfigContent>(page: T) => (state: AppState) => ConfigContent[T] | undefined;
|
|
97
93
|
export declare const selectSoldOutMsg: (state: AppState) => string;
|
|
98
94
|
export declare const selectHeaderHeight: (state: AppState) => (isBrowser: boolean) => number;
|
|
@@ -15,24 +15,24 @@ var ResetPasswordActionType;
|
|
|
15
15
|
ResetPasswordActionType["SendPasswordResetEmail"] = "resetPassword/sendPasswordResetEmail";
|
|
16
16
|
ResetPasswordActionType["ResetPassword"] = "resetPassword/resetPassword";
|
|
17
17
|
})(ResetPasswordActionType = exports.ResetPasswordActionType || (exports.ResetPasswordActionType = {}));
|
|
18
|
-
exports.sendPasswordResetEmail = (0, toolkit_1.createAsyncThunk)(ResetPasswordActionType.SendPasswordResetEmail, (
|
|
18
|
+
exports.sendPasswordResetEmail = (0, toolkit_1.createAsyncThunk)(ResetPasswordActionType.SendPasswordResetEmail, ({ email, link_url }, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
19
19
|
const { api } = getState().config;
|
|
20
20
|
if (!api)
|
|
21
21
|
return;
|
|
22
22
|
try {
|
|
23
|
-
yield api.postSendPasswordResetEmail(
|
|
23
|
+
yield api.postSendPasswordResetEmail(email, link_url);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
catch (err) {
|
|
27
27
|
return rejectWithValue(err);
|
|
28
28
|
}
|
|
29
29
|
}));
|
|
30
|
-
exports.resetPassword = (0, toolkit_1.createAsyncThunk)(ResetPasswordActionType.ResetPassword, (
|
|
30
|
+
exports.resetPassword = (0, toolkit_1.createAsyncThunk)(ResetPasswordActionType.ResetPassword, ({ new_password, resetToken }, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
31
31
|
const { api } = getState().config;
|
|
32
32
|
if (!api)
|
|
33
33
|
return;
|
|
34
34
|
try {
|
|
35
|
-
yield api.postResetPassword(
|
|
35
|
+
yield api.postResetPassword(new_password, resetToken);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
catch (err) {
|
|
@@ -88,11 +88,7 @@ export declare const selectOptIns: (state: AppState) => {
|
|
|
88
88
|
order_notifications: import("@open-tender/types").ConfigOrderNotifications | null | undefined;
|
|
89
89
|
};
|
|
90
90
|
export declare const selectFulfillment: (state: AppState) => import("@open-tender/types").ConfigFulfillment | undefined;
|
|
91
|
-
export declare const selectRecaptcha: (state: AppState) =>
|
|
92
|
-
addCard: boolean;
|
|
93
|
-
donations: boolean;
|
|
94
|
-
giftCards: boolean;
|
|
95
|
-
} | undefined;
|
|
91
|
+
export declare const selectRecaptcha: (state: AppState) => import("@open-tender/types").ConfigRecaptcha | undefined;
|
|
96
92
|
export declare const selectContentSection: <T extends keyof ConfigContent>(page: T) => (state: AppState) => ConfigContent[T] | undefined;
|
|
97
93
|
export declare const selectSoldOutMsg: (state: AppState) => string;
|
|
98
94
|
export declare const selectHeaderHeight: (state: AppState) => (isBrowser: boolean) => number;
|
|
@@ -12,24 +12,24 @@ export var ResetPasswordActionType;
|
|
|
12
12
|
ResetPasswordActionType["SendPasswordResetEmail"] = "resetPassword/sendPasswordResetEmail";
|
|
13
13
|
ResetPasswordActionType["ResetPassword"] = "resetPassword/resetPassword";
|
|
14
14
|
})(ResetPasswordActionType || (ResetPasswordActionType = {}));
|
|
15
|
-
export const sendPasswordResetEmail = createAsyncThunk(ResetPasswordActionType.SendPasswordResetEmail, (
|
|
15
|
+
export const sendPasswordResetEmail = createAsyncThunk(ResetPasswordActionType.SendPasswordResetEmail, ({ email, link_url }, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
16
|
const { api } = getState().config;
|
|
17
17
|
if (!api)
|
|
18
18
|
return;
|
|
19
19
|
try {
|
|
20
|
-
yield api.postSendPasswordResetEmail(
|
|
20
|
+
yield api.postSendPasswordResetEmail(email, link_url);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
catch (err) {
|
|
24
24
|
return rejectWithValue(err);
|
|
25
25
|
}
|
|
26
26
|
}));
|
|
27
|
-
export const resetPassword = createAsyncThunk(ResetPasswordActionType.ResetPassword, (
|
|
27
|
+
export const resetPassword = createAsyncThunk(ResetPasswordActionType.ResetPassword, ({ new_password, resetToken }, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
28
|
const { api } = getState().config;
|
|
29
29
|
if (!api)
|
|
30
30
|
return;
|
|
31
31
|
try {
|
|
32
|
-
yield api.postResetPassword(
|
|
32
|
+
yield api.postResetPassword(new_password, resetToken);
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
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",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"typescript": "^4.8.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@open-tender/types": "^0.2.
|
|
53
|
-
"@open-tender/utils": "^0.1.
|
|
52
|
+
"@open-tender/types": "^0.2.12",
|
|
53
|
+
"@open-tender/utils": "^0.1.70",
|
|
54
54
|
"@reduxjs/toolkit": "^1.8.5",
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|