@plusscommunities/pluss-circles-web-groups 1.5.2 → 1.5.4-auth.0

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
@@ -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({
@@ -1134,7 +1134,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
1134
1134
  this.setState({
1135
1135
  image: url
1136
1136
  });
1137
- this.imageInput.getWrappedInstance().setValue(url);
1137
+ this.imageInput.setValue(url);
1138
1138
  } else {
1139
1139
  setTimeout(function () {
1140
1140
  _this2.checkSetImage(url);
@@ -1825,8 +1825,8 @@ var Circle = /*#__PURE__*/function (_Component) {
1825
1825
 
1826
1826
  _this.scrollToBottom();
1827
1827
 
1828
- _this.imageInput && _this.imageInput.getWrappedInstance().setValue(null);
1829
- _this.fileInput && _this.fileInput.getWrappedInstance().setValue(null);
1828
+ _this.imageInput && _this.imageInput.setValue(null);
1829
+ _this.fileInput && _this.fileInput.setValue(null);
1830
1830
  }, 100);
1831
1831
  });
1832
1832
 
package/dist/index.esm.js CHANGED
@@ -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({
@@ -1091,7 +1091,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
1091
1091
  this.setState({
1092
1092
  image: url
1093
1093
  });
1094
- this.imageInput.getWrappedInstance().setValue(url);
1094
+ this.imageInput.setValue(url);
1095
1095
  } else {
1096
1096
  setTimeout(function () {
1097
1097
  _this2.checkSetImage(url);
@@ -1782,8 +1782,8 @@ var Circle = /*#__PURE__*/function (_Component) {
1782
1782
 
1783
1783
  _this.scrollToBottom();
1784
1784
 
1785
- _this.imageInput && _this.imageInput.getWrappedInstance().setValue(null);
1786
- _this.fileInput && _this.fileInput.getWrappedInstance().setValue(null);
1785
+ _this.imageInput && _this.imageInput.setValue(null);
1786
+ _this.fileInput && _this.fileInput.setValue(null);
1787
1787
  }, 100);
1788
1788
  });
1789
1789
 
package/dist/index.umd.js CHANGED
@@ -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({
@@ -1114,7 +1114,7 @@
1114
1114
  this.setState({
1115
1115
  image: url
1116
1116
  });
1117
- this.imageInput.getWrappedInstance().setValue(url);
1117
+ this.imageInput.setValue(url);
1118
1118
  } else {
1119
1119
  setTimeout(function () {
1120
1120
  _this2.checkSetImage(url);
@@ -1805,8 +1805,8 @@
1805
1805
 
1806
1806
  _this.scrollToBottom();
1807
1807
 
1808
- _this.imageInput && _this.imageInput.getWrappedInstance().setValue(null);
1809
- _this.fileInput && _this.fileInput.getWrappedInstance().setValue(null);
1808
+ _this.imageInput && _this.imageInput.setValue(null);
1809
+ _this.fileInput && _this.fileInput.setValue(null);
1810
1810
  }, 100);
1811
1811
  });
1812
1812
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-circles-web-groups",
3
- "version": "1.5.2",
3
+ "version": "1.5.4-auth.0",
4
4
  "description": "Extension package to enable circles on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -9,12 +9,16 @@
9
9
  "patch": "npm version patch",
10
10
  "betaupload": "npm run build && npm publish --access public --tag beta && rm -rf node_modules",
11
11
  "betaupload:p": "npm run betapatch && npm run betaupload",
12
+ "authpatch": "npm version prepatch --preid=auth",
13
+ "authupload": "npm run build && npm publish --access public --tag auth && rm -rf node_modules",
14
+ "authupload:p": "npm run authpatch && npm run authupload",
12
15
  "upload": "npm run build && npm publish --access public && rm -rf node_modules",
13
16
  "upload:p": "npm run patch && npm run upload",
14
17
  "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
18
  "copy:get": "echo $npm_package_name",
16
19
  "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
20
  "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;",
21
+ "copy:authupload": "npm run authpatch; 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 authupload; done; npm run copy:set;",
18
22
  "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
23
  },
20
24
  "author": "Phillip Suh",
@@ -37,7 +41,7 @@
37
41
  "@babel/runtime": "^7.14.0"
38
42
  },
39
43
  "peerDependencies": {
40
- "@plusscommunities/pluss-core-web": "^1.6.7",
44
+ "@plusscommunities/pluss-core-web": "^1.6.9-auth.0",
41
45
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
42
46
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
43
47
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -46,7 +50,8 @@
46
50
  "react": "^16.14.0",
47
51
  "react-bootstrap": "^0.31.2",
48
52
  "react-dom": "^16.14.0",
49
- "react-fontawesome": "^1.6.1"
53
+ "react-fontawesome": "^1.6.1",
54
+ "react-redux": "^7.2.9"
50
55
  },
51
56
  "keywords": []
52
57
  }
@@ -105,7 +105,7 @@ class AddCircle extends Component {
105
105
  this.setState({
106
106
  image: url,
107
107
  });
108
- this.imageInput.getWrappedInstance().setValue(url);
108
+ this.imageInput.setValue(url);
109
109
  } else {
110
110
  setTimeout(() => {
111
111
  this.checkSetImage(url);
@@ -365,8 +365,8 @@ class Circle extends Component {
365
365
  setTimeout(() => {
366
366
  this.onReply(null);
367
367
  this.scrollToBottom();
368
- this.imageInput && this.imageInput.getWrappedInstance().setValue(null);
369
- this.fileInput && this.fileInput.getWrappedInstance().setValue(null);
368
+ this.imageInput && this.imageInput.setValue(null);
369
+ this.fileInput && this.fileInput.setValue(null);
370
370
  }, 100);
371
371
  };
372
372