@plusscommunities/pluss-circles-web-groups 1.5.5-beta.0 → 1.5.5-beta.1

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
@@ -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: 'circles',
68
- entityKey: 'circle',
69
- entityName: 'circle',
70
- serviceKey: 'circles',
71
- permission: 'circles',
72
- menuIcon: 'circle-o',
67
+ featureKey: 'groups',
68
+ entityKey: 'group',
69
+ entityName: 'group',
70
+ serviceKey: 'groups',
71
+ permission: 'groups',
72
+ menuIcon: 'comments',
73
73
  isFontAwesome: true,
74
- reducerKey: 'circles',
75
- actionCircleKey: 'CIRCLE',
76
- textFeatureTitle: 'Circles',
77
- textAddMenuTitle: 'Circle',
78
- textEmptyGroups: "You aren't in any Circles",
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: 'Circles',
81
- componentAddCircle: 'AddCircle',
82
- componentCircle: 'Circle',
83
- inviteKey: 'circleInvite',
84
- messageKey: 'circleMessage',
85
- chatRoute: 'circleChat',
86
- updateKeyUserCircles: 'userCircles',
87
- allowPublicKey: 'circleAllowPublicCircles',
88
- allowPublicKeyDefault: false,
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: false
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
- "default": values.allowPublicKeyDefault
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
- "delete": function _delete(circleId) {
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["delete"](circle.Id).then(function (res) {
528
+ circleActions.delete(circle.Id).then(function (res) {
529
529
  _this.getData();
530
- })["catch"](function (res) {
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
- })["catch"](function (error) {
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
- })["catch"](function (err) {
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
- })["catch"](function (err) {
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: 'circles',
25
- entityKey: 'circle',
26
- entityName: 'circle',
27
- serviceKey: 'circles',
28
- permission: 'circles',
29
- menuIcon: 'circle-o',
24
+ featureKey: 'groups',
25
+ entityKey: 'group',
26
+ entityName: 'group',
27
+ serviceKey: 'groups',
28
+ permission: 'groups',
29
+ menuIcon: 'comments',
30
30
  isFontAwesome: true,
31
- reducerKey: 'circles',
32
- actionCircleKey: 'CIRCLE',
33
- textFeatureTitle: 'Circles',
34
- textAddMenuTitle: 'Circle',
35
- textEmptyGroups: "You aren't in any Circles",
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: 'Circles',
38
- componentAddCircle: 'AddCircle',
39
- componentCircle: 'Circle',
40
- inviteKey: 'circleInvite',
41
- messageKey: 'circleMessage',
42
- chatRoute: 'circleChat',
43
- updateKeyUserCircles: 'userCircles',
44
- allowPublicKey: 'circleAllowPublicCircles',
45
- allowPublicKeyDefault: false,
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: false
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
- "default": values.allowPublicKeyDefault
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
- "delete": function _delete(circleId) {
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["delete"](circle.Id).then(function (res) {
485
+ circleActions.delete(circle.Id).then(function (res) {
486
486
  _this.getData();
487
- })["catch"](function (res) {
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
- })["catch"](function (error) {
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
- })["catch"](function (err) {
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
- })["catch"](function (err) {
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: 'circles',
48
- entityKey: 'circle',
49
- entityName: 'circle',
50
- serviceKey: 'circles',
51
- permission: 'circles',
52
- menuIcon: 'circle-o',
47
+ featureKey: 'groups',
48
+ entityKey: 'group',
49
+ entityName: 'group',
50
+ serviceKey: 'groups',
51
+ permission: 'groups',
52
+ menuIcon: 'comments',
53
53
  isFontAwesome: true,
54
- reducerKey: 'circles',
55
- actionCircleKey: 'CIRCLE',
56
- textFeatureTitle: 'Circles',
57
- textAddMenuTitle: 'Circle',
58
- textEmptyGroups: "You aren't in any Circles",
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: 'Circles',
61
- componentAddCircle: 'AddCircle',
62
- componentCircle: 'Circle',
63
- inviteKey: 'circleInvite',
64
- messageKey: 'circleMessage',
65
- chatRoute: 'circleChat',
66
- updateKeyUserCircles: 'userCircles',
67
- allowPublicKey: 'circleAllowPublicCircles',
68
- allowPublicKeyDefault: false,
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: false
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
- "default": values.allowPublicKeyDefault
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
- "delete": function _delete(circleId) {
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["delete"](circle.Id).then(function (res) {
508
+ circleActions.delete(circle.Id).then(function (res) {
509
509
  _this.getData();
510
- })["catch"](function (res) {
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
- })["catch"](function (error) {
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
- })["catch"](function (err) {
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
- })["catch"](function (err) {
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.0",
3
+ "version": "1.5.5-beta.1",
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 '' -e 's/'$target'.*\"/'$replace'\"/g' package.json; }; run",
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
  },
@@ -37,7 +37,7 @@
37
37
  "@babel/runtime": "^7.14.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@plusscommunities/pluss-core-web": "^1.6.12-beta.1",
40
+ "@plusscommunities/pluss-core-web": "^1.6.8",
41
41
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
42
42
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
43
43
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -1,34 +1,34 @@
1
1
  const values = {
2
- featureKey: 'circles',
3
- entityKey: 'circle',
4
- entityName: 'circle',
5
- serviceKey: 'circles',
6
- permission: 'circles',
7
- menuIcon: 'circle-o',
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: 'circles',
10
+ reducerKey: 'groups',
11
11
 
12
- actionCircleKey: 'CIRCLE',
12
+ actionCircleKey: 'GROUP',
13
13
 
14
- textFeatureTitle: 'Circles',
15
- textAddMenuTitle: 'Circle',
16
- textEmptyGroups: "You aren't in any Circles",
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: 'Circles',
20
- componentAddCircle: 'AddCircle',
21
- componentCircle: 'Circle',
19
+ componentCircles: 'Groups',
20
+ componentAddCircle: 'AddGroup',
21
+ componentCircle: 'Group',
22
22
 
23
- inviteKey: 'circleInvite',
24
- messageKey: 'circleMessage',
25
- chatRoute: 'circleChat',
26
- updateKeyUserCircles: 'userCircles',
27
- allowPublicKey: 'circleAllowPublicCircles',
28
- allowPublicKeyDefault: false,
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: false,
31
+ allowAnyCreate: true,
32
32
  },
33
33
  };
34
34