powr-sdk-web 5.6.6 → 5.6.8
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/activities/index.js +1 -1
- package/dist/auth/index.js +9 -7
- package/dist/blogs/index.js +1 -1
- package/dist/chat/index.js +6 -6
- package/dist/comments/index.js +4 -4
- package/dist/feeds/admin.js +2 -2
- package/dist/feeds/components/CreatePost.js +2 -2
- package/dist/feeds/components/FeedPost.js +2 -2
- package/dist/feeds/index.js +1 -1
- package/dist/forms/admin.js +278 -64
- package/dist/forms/index.js +2 -2
- package/dist/functions/admin.js +3 -3
- package/dist/invoices/admin.js +3 -3
- package/dist/invoices/index.js +1 -1
- package/dist/likes/index.js +3 -3
- package/dist/notifications/admin.js +3 -3
- package/dist/powrVerify/index.js +2 -2
- package/dist/reviews/index.js +1 -1
- package/dist/slides/admin.js +3 -3
- package/dist/swiper/index.js +1 -1
- package/dist/tasks/admin.js +6 -6
- package/dist/tasks/index.js +7 -7
- package/dist/tools/PowrBaseTools.js +6 -6
- package/dist/tools/PowrToolConfig.js +1 -1
- package/dist/uploader/index.js +2 -2
- package/dist/users/admin.js +1 -1
- package/dist/utils/firebase.js +1 -1
- package/dist/waitlists/admin.js +2 -2
- package/dist/waitlists/index.js +1 -1
- package/package.json +1 -1
- package/dist/activitySubscriptions/admin.js +0 -551
- package/dist/comments/components/UploadModal.js +0 -119
- package/dist/invoice/index.js +0 -140
package/dist/activities/index.js
CHANGED
|
@@ -78,7 +78,7 @@ function PowrBaseActivities(_ref) {
|
|
|
78
78
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
79
79
|
var _yield$apiCall, data, ok, list, _t;
|
|
80
80
|
return _regenerator().w(function (_context) {
|
|
81
|
-
while (1) switch (_context.n) {
|
|
81
|
+
while (1) switch (_context.p = _context.n) {
|
|
82
82
|
case 0:
|
|
83
83
|
setLoading(true);
|
|
84
84
|
setError(null);
|
package/dist/auth/index.js
CHANGED
|
@@ -34,7 +34,9 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
34
34
|
mode = _ref$mode === void 0 ? 'toggle' : _ref$mode,
|
|
35
35
|
projectId = _ref.projectId,
|
|
36
36
|
_ref$requirePhoneVeri = _ref.requirePhoneVerification,
|
|
37
|
-
requirePhoneVerification = _ref$requirePhoneVeri === void 0 ? true : _ref$requirePhoneVeri
|
|
37
|
+
requirePhoneVerification = _ref$requirePhoneVeri === void 0 ? true : _ref$requirePhoneVeri,
|
|
38
|
+
_ref$showForgotPasswo = _ref.showForgotPassword,
|
|
39
|
+
showForgotPassword = _ref$showForgotPasswo === void 0 ? true : _ref$showForgotPasswo;
|
|
38
40
|
var _useState = (0, _react.useState)(function () {
|
|
39
41
|
switch (mode) {
|
|
40
42
|
case 'login':
|
|
@@ -155,7 +157,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
155
157
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(phone) {
|
|
156
158
|
var appVerifier, confirmationResult, _t, _t2;
|
|
157
159
|
return _regenerator().w(function (_context2) {
|
|
158
|
-
while (1) switch (_context2.n) {
|
|
160
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
159
161
|
case 0:
|
|
160
162
|
setOtpLoading(true);
|
|
161
163
|
setError('');
|
|
@@ -254,7 +256,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
254
256
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
255
257
|
var result, _t3, _t4;
|
|
256
258
|
return _regenerator().w(function (_context3) {
|
|
257
|
-
while (1) switch (_context3.n) {
|
|
259
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
258
260
|
case 0:
|
|
259
261
|
setLoading(true);
|
|
260
262
|
setError('');
|
|
@@ -337,7 +339,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
337
339
|
_args4 = arguments,
|
|
338
340
|
_t5;
|
|
339
341
|
return _regenerator().w(function (_context4) {
|
|
340
|
-
while (1) switch (_context4.n) {
|
|
342
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
341
343
|
case 0:
|
|
342
344
|
skipPhoneValidation = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : false;
|
|
343
345
|
if (e) e.preventDefault();
|
|
@@ -480,7 +482,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
480
482
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
481
483
|
var _yield$apiCall2, data, ok, _t6;
|
|
482
484
|
return _regenerator().w(function (_context5) {
|
|
483
|
-
while (1) switch (_context5.n) {
|
|
485
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
484
486
|
case 0:
|
|
485
487
|
if (formData.phoneOrEmail.trim()) {
|
|
486
488
|
_context5.n = 1;
|
|
@@ -677,13 +679,13 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
677
679
|
style: styles.checkbox
|
|
678
680
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
679
681
|
style: styles.checkboxText
|
|
680
|
-
}, "Remember me")), /*#__PURE__*/_react["default"].createElement("button", {
|
|
682
|
+
}, "Remember me")), showForgotPassword && /*#__PURE__*/_react["default"].createElement("button", {
|
|
681
683
|
type: "button",
|
|
682
684
|
onClick: function onClick() {
|
|
683
685
|
return setShowOtpOption(!showOtpOption);
|
|
684
686
|
},
|
|
685
687
|
style: styles.forgotPasswordLink
|
|
686
|
-
}, "Forgot password?")), isLogin && showOtpOption && /*#__PURE__*/_react["default"].createElement("div", {
|
|
688
|
+
}, "Forgot password?")), isLogin && showForgotPassword && showOtpOption && /*#__PURE__*/_react["default"].createElement("div", {
|
|
687
689
|
style: styles.otpSection
|
|
688
690
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
689
691
|
style: styles.otpText
|
package/dist/blogs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var PowrBaseBlogs = function PowrBaseBlogs(_ref) {
|
|
|
41
41
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
42
42
|
var _yield$apiCall, data, ok, _t;
|
|
43
43
|
return _regenerator().w(function (_context) {
|
|
44
|
-
while (1) switch (_context.n) {
|
|
44
|
+
while (1) switch (_context.p = _context.n) {
|
|
45
45
|
case 0:
|
|
46
46
|
_context.p = 0;
|
|
47
47
|
_context.n = 1;
|
package/dist/chat/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
102
102
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
103
103
|
var _yield$apiCall, data, ok, convos, groupId, hasGroup, _refetch$data, _refetch$data2, refetch, projectGroup, _t;
|
|
104
104
|
return _regenerator().w(function (_context) {
|
|
105
|
-
while (1) switch (_context.n) {
|
|
105
|
+
while (1) switch (_context.p = _context.n) {
|
|
106
106
|
case 0:
|
|
107
107
|
if (!(!projectId || !apiUrl)) {
|
|
108
108
|
_context.n = 1;
|
|
@@ -188,7 +188,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
188
188
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
189
189
|
var _yield$apiCall2, data, ok, _t2;
|
|
190
190
|
return _regenerator().w(function (_context2) {
|
|
191
|
-
while (1) switch (_context2.n) {
|
|
191
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
192
192
|
case 0:
|
|
193
193
|
if (!(!projectId || !apiUrl)) {
|
|
194
194
|
_context2.n = 1;
|
|
@@ -234,7 +234,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
234
234
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
235
235
|
var _data$data, _yield$apiCall3, data, ok, _t3;
|
|
236
236
|
return _regenerator().w(function (_context3) {
|
|
237
|
-
while (1) switch (_context3.n) {
|
|
237
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
238
238
|
case 0:
|
|
239
239
|
if (!(!projectGroupName || !(participantIds !== null && participantIds !== void 0 && participantIds.length) || !projectId || !apiUrl)) {
|
|
240
240
|
_context3.n = 1;
|
|
@@ -284,7 +284,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
284
284
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(userId) {
|
|
285
285
|
var _yield$apiCall4, data, ok, _t4;
|
|
286
286
|
return _regenerator().w(function (_context4) {
|
|
287
|
-
while (1) switch (_context4.n) {
|
|
287
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
288
288
|
case 0:
|
|
289
289
|
_context4.p = 0;
|
|
290
290
|
_context4.n = 1;
|
|
@@ -326,7 +326,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
326
326
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(conversationId) {
|
|
327
327
|
var _yield$apiCall5, data, ok, _t5;
|
|
328
328
|
return _regenerator().w(function (_context5) {
|
|
329
|
-
while (1) switch (_context5.n) {
|
|
329
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
330
330
|
case 0:
|
|
331
331
|
_context5.p = 0;
|
|
332
332
|
setLoading(true);
|
|
@@ -369,7 +369,7 @@ var PowrBaseChat = function PowrBaseChat(_ref) {
|
|
|
369
369
|
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
370
370
|
var _yield$apiCall6, data, ok, _t6;
|
|
371
371
|
return _regenerator().w(function (_context6) {
|
|
372
|
-
while (1) switch (_context6.n) {
|
|
372
|
+
while (1) switch (_context6.p = _context6.n) {
|
|
373
373
|
case 0:
|
|
374
374
|
if (!(!message.trim() || !selectedChat || sending)) {
|
|
375
375
|
_context6.n = 1;
|
package/dist/comments/index.js
CHANGED
|
@@ -121,7 +121,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
121
121
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
122
122
|
var _yield$apiCall, data, ok, sorted, _t;
|
|
123
123
|
return _regenerator().w(function (_context) {
|
|
124
|
-
while (1) switch (_context.n) {
|
|
124
|
+
while (1) switch (_context.p = _context.n) {
|
|
125
125
|
case 0:
|
|
126
126
|
if (contentId) {
|
|
127
127
|
_context.n = 1;
|
|
@@ -169,7 +169,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
169
169
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
170
170
|
var commentPayload, _yield$apiCall2, data, ok, temp, _t2;
|
|
171
171
|
return _regenerator().w(function (_context2) {
|
|
172
|
-
while (1) switch (_context2.n) {
|
|
172
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
173
173
|
case 0:
|
|
174
174
|
if (!(!contentId || !newComment.trim() && selectedFiles.length === 0)) {
|
|
175
175
|
_context2.n = 1;
|
|
@@ -274,7 +274,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
274
274
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(id, content) {
|
|
275
275
|
var newText, _yield$apiCall3, data, ok, _t3;
|
|
276
276
|
return _regenerator().w(function (_context3) {
|
|
277
|
-
while (1) switch (_context3.n) {
|
|
277
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
278
278
|
case 0:
|
|
279
279
|
if (!onCommentEdit) {
|
|
280
280
|
_context3.n = 1;
|
|
@@ -323,7 +323,7 @@ var PowrBaseComments = function PowrBaseComments(_ref) {
|
|
|
323
323
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(id) {
|
|
324
324
|
var _yield$apiCall4, data, ok, _t4;
|
|
325
325
|
return _regenerator().w(function (_context4) {
|
|
326
|
-
while (1) switch (_context4.n) {
|
|
326
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
327
327
|
case 0:
|
|
328
328
|
if (!onCommentDelete) {
|
|
329
329
|
_context4.n = 1;
|
package/dist/feeds/admin.js
CHANGED
|
@@ -44,7 +44,7 @@ var PowrBaseFeedsAdmin = function PowrBaseFeedsAdmin(_ref) {
|
|
|
44
44
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
45
45
|
var _yield$apiCall, data, ok, _t;
|
|
46
46
|
return _regenerator().w(function (_context) {
|
|
47
|
-
while (1) switch (_context.n) {
|
|
47
|
+
while (1) switch (_context.p = _context.n) {
|
|
48
48
|
case 0:
|
|
49
49
|
_context.p = 0;
|
|
50
50
|
_context.n = 1;
|
|
@@ -79,7 +79,7 @@ var PowrBaseFeedsAdmin = function PowrBaseFeedsAdmin(_ref) {
|
|
|
79
79
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
80
80
|
var _yield$apiCall2, data, ok, _t2;
|
|
81
81
|
return _regenerator().w(function (_context2) {
|
|
82
|
-
while (1) switch (_context2.n) {
|
|
82
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
83
83
|
case 0:
|
|
84
84
|
if (selectedPost) {
|
|
85
85
|
_context2.n = 1;
|
|
@@ -58,7 +58,7 @@ var CreatePost = function CreatePost(_ref) {
|
|
|
58
58
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
|
|
59
59
|
var postData, _yield$apiCall, data, ok, _t;
|
|
60
60
|
return _regenerator().w(function (_context) {
|
|
61
|
-
while (1) switch (_context.n) {
|
|
61
|
+
while (1) switch (_context.p = _context.n) {
|
|
62
62
|
case 0:
|
|
63
63
|
e.preventDefault();
|
|
64
64
|
|
|
@@ -131,7 +131,7 @@ var CreatePost = function CreatePost(_ref) {
|
|
|
131
131
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(files) {
|
|
132
132
|
var uploadedFiles, _iterator, _step, file, formData, _yield$apiCall2, data, ok, _t2, _t3;
|
|
133
133
|
return _regenerator().w(function (_context2) {
|
|
134
|
-
while (1) switch (_context2.n) {
|
|
134
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
135
135
|
case 0:
|
|
136
136
|
uploadedFiles = [];
|
|
137
137
|
_iterator = _createForOfIteratorHelper(files);
|
|
@@ -68,7 +68,7 @@ var FeedPost = function FeedPost(_ref) {
|
|
|
68
68
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
69
69
|
var _yield$apiCall, data, ok, _t;
|
|
70
70
|
return _regenerator().w(function (_context) {
|
|
71
|
-
while (1) switch (_context.n) {
|
|
71
|
+
while (1) switch (_context.p = _context.n) {
|
|
72
72
|
case 0:
|
|
73
73
|
if (editContent.trim()) {
|
|
74
74
|
_context.n = 1;
|
|
@@ -118,7 +118,7 @@ var FeedPost = function FeedPost(_ref) {
|
|
|
118
118
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
119
119
|
var _yield$apiCall2, data, ok, _t2;
|
|
120
120
|
return _regenerator().w(function (_context2) {
|
|
121
|
-
while (1) switch (_context2.n) {
|
|
121
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
122
122
|
case 0:
|
|
123
123
|
if (confirm('Are you sure you want to delete this post?')) {
|
|
124
124
|
_context2.n = 1;
|
package/dist/feeds/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var PowrBaseFeed = function PowrBaseFeed(_ref) {
|
|
|
78
78
|
_args = arguments,
|
|
79
79
|
_t;
|
|
80
80
|
return _regenerator().w(function (_context) {
|
|
81
|
-
while (1) switch (_context.n) {
|
|
81
|
+
while (1) switch (_context.p = _context.n) {
|
|
82
82
|
case 0:
|
|
83
83
|
pageNum = _args.length > 0 && _args[0] !== undefined ? _args[0] : 1;
|
|
84
84
|
append = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|