@plusscommunities/pluss-circles-web-groups 1.5.5-beta.0 → 1.5.5-beta.2
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 +28 -28
- package/dist/index.esm.js +28 -28
- package/dist/index.umd.js +28 -28
- package/package.json +2 -2
- package/src/values.config.js +21 -21
package/dist/index.cjs.js
CHANGED
|
@@ -64,30 +64,30 @@ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumab
|
|
|
64
64
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
65
65
|
|
|
66
66
|
var values = {
|
|
67
|
-
featureKey: '
|
|
68
|
-
entityKey: '
|
|
69
|
-
entityName: '
|
|
70
|
-
serviceKey: '
|
|
71
|
-
permission: '
|
|
72
|
-
menuIcon: '
|
|
67
|
+
featureKey: 'groups',
|
|
68
|
+
entityKey: 'group',
|
|
69
|
+
entityName: 'group',
|
|
70
|
+
serviceKey: 'groups',
|
|
71
|
+
permission: 'groups',
|
|
72
|
+
menuIcon: 'comments',
|
|
73
73
|
isFontAwesome: true,
|
|
74
|
-
reducerKey: '
|
|
75
|
-
actionCircleKey: '
|
|
76
|
-
textFeatureTitle: '
|
|
77
|
-
textAddMenuTitle: '
|
|
78
|
-
textEmptyGroups: "You aren't in any
|
|
74
|
+
reducerKey: 'groups',
|
|
75
|
+
actionCircleKey: 'GROUP',
|
|
76
|
+
textFeatureTitle: 'Groups',
|
|
77
|
+
textAddMenuTitle: 'Group',
|
|
78
|
+
textEmptyGroups: "You aren't in any Groups",
|
|
79
79
|
textEmptyPeople: 'Contacts will show here',
|
|
80
|
-
componentCircles: '
|
|
81
|
-
componentAddCircle: '
|
|
82
|
-
componentCircle: '
|
|
83
|
-
inviteKey: '
|
|
84
|
-
messageKey: '
|
|
85
|
-
chatRoute: '
|
|
86
|
-
updateKeyUserCircles: '
|
|
87
|
-
allowPublicKey: '
|
|
88
|
-
allowPublicKeyDefault:
|
|
80
|
+
componentCircles: 'Groups',
|
|
81
|
+
componentAddCircle: 'AddGroup',
|
|
82
|
+
componentCircle: 'Group',
|
|
83
|
+
inviteKey: 'groupInvite',
|
|
84
|
+
messageKey: 'groupMessage',
|
|
85
|
+
chatRoute: 'groupChat',
|
|
86
|
+
updateKeyUserCircles: 'userGroups',
|
|
87
|
+
allowPublicKey: 'groupAllowPublicGroups',
|
|
88
|
+
allowPublicKeyDefault: true,
|
|
89
89
|
settings: {
|
|
90
|
-
allowAnyCreate:
|
|
90
|
+
allowAnyCreate: true
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -107,7 +107,7 @@ var FeatureConfig = {
|
|
|
107
107
|
title: "Allow for public ".concat(values.entityName, "s"),
|
|
108
108
|
description: "Public ".concat(values.entityName, "s can be viewed and joined by anyone in the community."),
|
|
109
109
|
defaultNew: values.allowPublicKeyDefault,
|
|
110
|
-
|
|
110
|
+
default: values.allowPublicKeyDefault
|
|
111
111
|
}],
|
|
112
112
|
featurePickerInfo: {
|
|
113
113
|
image: 'https://pluss-prd-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:80aecdcb-9955-493e-a341-2f2263f64777/public/e4a5948c40908e2137f0a65eb1/groups.jpg',
|
|
@@ -248,7 +248,7 @@ var circleActions = {
|
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
250
|
},
|
|
251
|
-
|
|
251
|
+
delete: function _delete(circleId) {
|
|
252
252
|
return Session$4.authedFunction({
|
|
253
253
|
method: 'POST',
|
|
254
254
|
url: Helper$3.getUrl(values.serviceKey, 'update/delete'),
|
|
@@ -525,9 +525,9 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
525
525
|
if (window.confirm("Are you sure you want to delete that ".concat(values.entityName, "? You will no longer be able to access the messages in the ").concat(values.entityName, "."))) {
|
|
526
526
|
_this.props.circleRemoved(circle.Id);
|
|
527
527
|
|
|
528
|
-
circleActions
|
|
528
|
+
circleActions.delete(circle.Id).then(function (res) {
|
|
529
529
|
_this.getData();
|
|
530
|
-
})
|
|
530
|
+
}).catch(function (res) {
|
|
531
531
|
alert('Something went wrong with the request. Please try again.');
|
|
532
532
|
});
|
|
533
533
|
}
|
|
@@ -878,7 +878,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
878
878
|
})
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
})
|
|
881
|
+
}).catch(function (error) {
|
|
882
882
|
_this.setState({
|
|
883
883
|
loadingAll: false
|
|
884
884
|
});
|
|
@@ -1052,7 +1052,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1052
1052
|
console.log('success');
|
|
1053
1053
|
|
|
1054
1054
|
_this.props.circleUpdated(res.data);
|
|
1055
|
-
})
|
|
1055
|
+
}).catch(function (err) {
|
|
1056
1056
|
console.log('error');
|
|
1057
1057
|
|
|
1058
1058
|
_this.setState({
|
|
@@ -1071,7 +1071,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1071
1071
|
console.log('success');
|
|
1072
1072
|
|
|
1073
1073
|
_this.props.circleUpdated(res.data);
|
|
1074
|
-
})
|
|
1074
|
+
}).catch(function (err) {
|
|
1075
1075
|
console.log('error');
|
|
1076
1076
|
|
|
1077
1077
|
_this.setState({
|
package/dist/index.esm.js
CHANGED
|
@@ -21,30 +21,30 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
21
21
|
import { faUserGroup, faMessage, faUserTie, faUsers, faUsersRectangle, faPeopleArrows } from '@fortawesome/free-solid-svg-icons';
|
|
22
22
|
|
|
23
23
|
var values = {
|
|
24
|
-
featureKey: '
|
|
25
|
-
entityKey: '
|
|
26
|
-
entityName: '
|
|
27
|
-
serviceKey: '
|
|
28
|
-
permission: '
|
|
29
|
-
menuIcon: '
|
|
24
|
+
featureKey: 'groups',
|
|
25
|
+
entityKey: 'group',
|
|
26
|
+
entityName: 'group',
|
|
27
|
+
serviceKey: 'groups',
|
|
28
|
+
permission: 'groups',
|
|
29
|
+
menuIcon: 'comments',
|
|
30
30
|
isFontAwesome: true,
|
|
31
|
-
reducerKey: '
|
|
32
|
-
actionCircleKey: '
|
|
33
|
-
textFeatureTitle: '
|
|
34
|
-
textAddMenuTitle: '
|
|
35
|
-
textEmptyGroups: "You aren't in any
|
|
31
|
+
reducerKey: 'groups',
|
|
32
|
+
actionCircleKey: 'GROUP',
|
|
33
|
+
textFeatureTitle: 'Groups',
|
|
34
|
+
textAddMenuTitle: 'Group',
|
|
35
|
+
textEmptyGroups: "You aren't in any Groups",
|
|
36
36
|
textEmptyPeople: 'Contacts will show here',
|
|
37
|
-
componentCircles: '
|
|
38
|
-
componentAddCircle: '
|
|
39
|
-
componentCircle: '
|
|
40
|
-
inviteKey: '
|
|
41
|
-
messageKey: '
|
|
42
|
-
chatRoute: '
|
|
43
|
-
updateKeyUserCircles: '
|
|
44
|
-
allowPublicKey: '
|
|
45
|
-
allowPublicKeyDefault:
|
|
37
|
+
componentCircles: 'Groups',
|
|
38
|
+
componentAddCircle: 'AddGroup',
|
|
39
|
+
componentCircle: 'Group',
|
|
40
|
+
inviteKey: 'groupInvite',
|
|
41
|
+
messageKey: 'groupMessage',
|
|
42
|
+
chatRoute: 'groupChat',
|
|
43
|
+
updateKeyUserCircles: 'userGroups',
|
|
44
|
+
allowPublicKey: 'groupAllowPublicGroups',
|
|
45
|
+
allowPublicKeyDefault: true,
|
|
46
46
|
settings: {
|
|
47
|
-
allowAnyCreate:
|
|
47
|
+
allowAnyCreate: true
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -64,7 +64,7 @@ var FeatureConfig = {
|
|
|
64
64
|
title: "Allow for public ".concat(values.entityName, "s"),
|
|
65
65
|
description: "Public ".concat(values.entityName, "s can be viewed and joined by anyone in the community."),
|
|
66
66
|
defaultNew: values.allowPublicKeyDefault,
|
|
67
|
-
|
|
67
|
+
default: values.allowPublicKeyDefault
|
|
68
68
|
}],
|
|
69
69
|
featurePickerInfo: {
|
|
70
70
|
image: 'https://pluss-prd-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:80aecdcb-9955-493e-a341-2f2263f64777/public/e4a5948c40908e2137f0a65eb1/groups.jpg',
|
|
@@ -205,7 +205,7 @@ var circleActions = {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
delete: function _delete(circleId) {
|
|
209
209
|
return Session$4.authedFunction({
|
|
210
210
|
method: 'POST',
|
|
211
211
|
url: Helper$3.getUrl(values.serviceKey, 'update/delete'),
|
|
@@ -482,9 +482,9 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
482
482
|
if (window.confirm("Are you sure you want to delete that ".concat(values.entityName, "? You will no longer be able to access the messages in the ").concat(values.entityName, "."))) {
|
|
483
483
|
_this.props.circleRemoved(circle.Id);
|
|
484
484
|
|
|
485
|
-
circleActions
|
|
485
|
+
circleActions.delete(circle.Id).then(function (res) {
|
|
486
486
|
_this.getData();
|
|
487
|
-
})
|
|
487
|
+
}).catch(function (res) {
|
|
488
488
|
alert('Something went wrong with the request. Please try again.');
|
|
489
489
|
});
|
|
490
490
|
}
|
|
@@ -835,7 +835,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
835
835
|
})
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
|
-
})
|
|
838
|
+
}).catch(function (error) {
|
|
839
839
|
_this.setState({
|
|
840
840
|
loadingAll: false
|
|
841
841
|
});
|
|
@@ -1009,7 +1009,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1009
1009
|
console.log('success');
|
|
1010
1010
|
|
|
1011
1011
|
_this.props.circleUpdated(res.data);
|
|
1012
|
-
})
|
|
1012
|
+
}).catch(function (err) {
|
|
1013
1013
|
console.log('error');
|
|
1014
1014
|
|
|
1015
1015
|
_this.setState({
|
|
@@ -1028,7 +1028,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1028
1028
|
console.log('success');
|
|
1029
1029
|
|
|
1030
1030
|
_this.props.circleUpdated(res.data);
|
|
1031
|
-
})
|
|
1031
|
+
}).catch(function (err) {
|
|
1032
1032
|
console.log('error');
|
|
1033
1033
|
|
|
1034
1034
|
_this.setState({
|
package/dist/index.umd.js
CHANGED
|
@@ -44,30 +44,30 @@
|
|
|
44
44
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
45
45
|
|
|
46
46
|
var values = {
|
|
47
|
-
featureKey: '
|
|
48
|
-
entityKey: '
|
|
49
|
-
entityName: '
|
|
50
|
-
serviceKey: '
|
|
51
|
-
permission: '
|
|
52
|
-
menuIcon: '
|
|
47
|
+
featureKey: 'groups',
|
|
48
|
+
entityKey: 'group',
|
|
49
|
+
entityName: 'group',
|
|
50
|
+
serviceKey: 'groups',
|
|
51
|
+
permission: 'groups',
|
|
52
|
+
menuIcon: 'comments',
|
|
53
53
|
isFontAwesome: true,
|
|
54
|
-
reducerKey: '
|
|
55
|
-
actionCircleKey: '
|
|
56
|
-
textFeatureTitle: '
|
|
57
|
-
textAddMenuTitle: '
|
|
58
|
-
textEmptyGroups: "You aren't in any
|
|
54
|
+
reducerKey: 'groups',
|
|
55
|
+
actionCircleKey: 'GROUP',
|
|
56
|
+
textFeatureTitle: 'Groups',
|
|
57
|
+
textAddMenuTitle: 'Group',
|
|
58
|
+
textEmptyGroups: "You aren't in any Groups",
|
|
59
59
|
textEmptyPeople: 'Contacts will show here',
|
|
60
|
-
componentCircles: '
|
|
61
|
-
componentAddCircle: '
|
|
62
|
-
componentCircle: '
|
|
63
|
-
inviteKey: '
|
|
64
|
-
messageKey: '
|
|
65
|
-
chatRoute: '
|
|
66
|
-
updateKeyUserCircles: '
|
|
67
|
-
allowPublicKey: '
|
|
68
|
-
allowPublicKeyDefault:
|
|
60
|
+
componentCircles: 'Groups',
|
|
61
|
+
componentAddCircle: 'AddGroup',
|
|
62
|
+
componentCircle: 'Group',
|
|
63
|
+
inviteKey: 'groupInvite',
|
|
64
|
+
messageKey: 'groupMessage',
|
|
65
|
+
chatRoute: 'groupChat',
|
|
66
|
+
updateKeyUserCircles: 'userGroups',
|
|
67
|
+
allowPublicKey: 'groupAllowPublicGroups',
|
|
68
|
+
allowPublicKeyDefault: true,
|
|
69
69
|
settings: {
|
|
70
|
-
allowAnyCreate:
|
|
70
|
+
allowAnyCreate: true
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
title: "Allow for public ".concat(values.entityName, "s"),
|
|
88
88
|
description: "Public ".concat(values.entityName, "s can be viewed and joined by anyone in the community."),
|
|
89
89
|
defaultNew: values.allowPublicKeyDefault,
|
|
90
|
-
|
|
90
|
+
default: values.allowPublicKeyDefault
|
|
91
91
|
}],
|
|
92
92
|
featurePickerInfo: {
|
|
93
93
|
image: 'https://pluss-prd-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:80aecdcb-9955-493e-a341-2f2263f64777/public/e4a5948c40908e2137f0a65eb1/groups.jpg',
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
},
|
|
231
|
-
|
|
231
|
+
delete: function _delete(circleId) {
|
|
232
232
|
return Session$4.authedFunction({
|
|
233
233
|
method: 'POST',
|
|
234
234
|
url: Helper$3.getUrl(values.serviceKey, 'update/delete'),
|
|
@@ -505,9 +505,9 @@
|
|
|
505
505
|
if (window.confirm("Are you sure you want to delete that ".concat(values.entityName, "? You will no longer be able to access the messages in the ").concat(values.entityName, "."))) {
|
|
506
506
|
_this.props.circleRemoved(circle.Id);
|
|
507
507
|
|
|
508
|
-
circleActions
|
|
508
|
+
circleActions.delete(circle.Id).then(function (res) {
|
|
509
509
|
_this.getData();
|
|
510
|
-
})
|
|
510
|
+
}).catch(function (res) {
|
|
511
511
|
alert('Something went wrong with the request. Please try again.');
|
|
512
512
|
});
|
|
513
513
|
}
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
})
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
})
|
|
861
|
+
}).catch(function (error) {
|
|
862
862
|
_this.setState({
|
|
863
863
|
loadingAll: false
|
|
864
864
|
});
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
console.log('success');
|
|
1033
1033
|
|
|
1034
1034
|
_this.props.circleUpdated(res.data);
|
|
1035
|
-
})
|
|
1035
|
+
}).catch(function (err) {
|
|
1036
1036
|
console.log('error');
|
|
1037
1037
|
|
|
1038
1038
|
_this.setState({
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
console.log('success');
|
|
1052
1052
|
|
|
1053
1053
|
_this.props.circleUpdated(res.data);
|
|
1054
|
-
})
|
|
1054
|
+
}).catch(function (err) {
|
|
1055
1055
|
console.log('error');
|
|
1056
1056
|
|
|
1057
1057
|
_this.setState({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-circles-web-groups",
|
|
3
|
-
"version": "1.5.5-beta.
|
|
3
|
+
"version": "1.5.5-beta.2",
|
|
4
4
|
"description": "Extension package to enable circles on Pluss Communities Platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"upload:p": "npm run patch && npm run upload",
|
|
14
14
|
"copy:add": "run(){ ext=${1:-default}; test -f src/values.config.$ext.js || cp src/values.config.default.js src/values.config.$ext.js; }; run",
|
|
15
15
|
"copy:get": "echo $npm_package_name",
|
|
16
|
-
"copy:set": "run(){ target='\\@plusscommunities\\/pluss-circles-web'; ext=${1:-default}; [ $ext == 'default' ] && replace=$target || replace=$target'-'$ext; echo 'Setting target to '$replace; test -f src/values.config.$ext.js && cp -f src/values.config.$ext.js src/values.config.js; sed -i
|
|
16
|
+
"copy:set": "run(){ target='\\@plusscommunities\\/pluss-circles-web'; ext=${1:-default}; [ $ext == 'default' ] && replace=$target || replace=$target'-'$ext; echo 'Setting target to '$replace; test -f src/values.config.$ext.js && cp -f src/values.config.$ext.js src/values.config.js; sed -i'' -e 's/'$target'.*\"/'$replace'\"/g' package.json; }; run",
|
|
17
17
|
"copy:betaupload": "npm run betapatch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run betaupload; done; npm run copy:set;",
|
|
18
18
|
"copy:upload": "npm run patch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run upload; done; npm run copy:set;"
|
|
19
19
|
},
|
package/src/values.config.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
const values = {
|
|
2
|
-
featureKey: '
|
|
3
|
-
entityKey: '
|
|
4
|
-
entityName: '
|
|
5
|
-
serviceKey: '
|
|
6
|
-
permission: '
|
|
7
|
-
menuIcon: '
|
|
2
|
+
featureKey: 'groups',
|
|
3
|
+
entityKey: 'group',
|
|
4
|
+
entityName: 'group',
|
|
5
|
+
serviceKey: 'groups',
|
|
6
|
+
permission: 'groups',
|
|
7
|
+
menuIcon: 'comments',
|
|
8
8
|
isFontAwesome: true,
|
|
9
9
|
|
|
10
|
-
reducerKey: '
|
|
10
|
+
reducerKey: 'groups',
|
|
11
11
|
|
|
12
|
-
actionCircleKey: '
|
|
12
|
+
actionCircleKey: 'GROUP',
|
|
13
13
|
|
|
14
|
-
textFeatureTitle: '
|
|
15
|
-
textAddMenuTitle: '
|
|
16
|
-
textEmptyGroups: "You aren't in any
|
|
14
|
+
textFeatureTitle: 'Groups',
|
|
15
|
+
textAddMenuTitle: 'Group',
|
|
16
|
+
textEmptyGroups: "You aren't in any Groups",
|
|
17
17
|
textEmptyPeople: 'Contacts will show here',
|
|
18
18
|
|
|
19
|
-
componentCircles: '
|
|
20
|
-
componentAddCircle: '
|
|
21
|
-
componentCircle: '
|
|
19
|
+
componentCircles: 'Groups',
|
|
20
|
+
componentAddCircle: 'AddGroup',
|
|
21
|
+
componentCircle: 'Group',
|
|
22
22
|
|
|
23
|
-
inviteKey: '
|
|
24
|
-
messageKey: '
|
|
25
|
-
chatRoute: '
|
|
26
|
-
updateKeyUserCircles: '
|
|
27
|
-
allowPublicKey: '
|
|
28
|
-
allowPublicKeyDefault:
|
|
23
|
+
inviteKey: 'groupInvite',
|
|
24
|
+
messageKey: 'groupMessage',
|
|
25
|
+
chatRoute: 'groupChat',
|
|
26
|
+
updateKeyUserCircles: 'userGroups',
|
|
27
|
+
allowPublicKey: 'groupAllowPublicGroups',
|
|
28
|
+
allowPublicKeyDefault: true,
|
|
29
29
|
|
|
30
30
|
settings: {
|
|
31
|
-
allowAnyCreate:
|
|
31
|
+
allowAnyCreate: true,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
|