@plusscommunities/pluss-maintenance-web 1.1.22-auth.0 → 1.1.23

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
@@ -71,6 +71,7 @@ var values = {
71
71
  serviceKey: 'maintenance',
72
72
  reducerKey: 'maintenance',
73
73
  analyticsKey: 'maintenancerequest',
74
+ commentKey: 'maintenancerequest',
74
75
  actionJobsLoaded: 'JOBS_LOADED',
75
76
  actionJobsRemoved: 'JOBS_REMOVED',
76
77
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADED',
@@ -2817,7 +2818,7 @@ var Job = /*#__PURE__*/function (_Component) {
2817
2818
  });
2818
2819
 
2819
2820
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getComments", function () {
2820
- reactionActions.getComments(_this.state.jobId, values.featureKey, 0).then(function (res) {
2821
+ reactionActions.getComments(_this.state.jobId, values.commentKey, 0).then(function (res) {
2821
2822
  _this.setState({
2822
2823
  comments: res.data
2823
2824
  });
@@ -2839,7 +2840,7 @@ var Job = /*#__PURE__*/function (_Component) {
2839
2840
  });
2840
2841
 
2841
2842
  _context7.next = 5;
2842
- return reactionActions.addComment(jobId, values.featureKey, job.title, job.site, commentInput);
2843
+ return reactionActions.addComment(jobId, values.commentKey, job.title, job.site, commentInput);
2843
2844
 
2844
2845
  case 5:
2845
2846
  res = _context7.sent;
package/dist/index.esm.js CHANGED
@@ -28,6 +28,7 @@ var values = {
28
28
  serviceKey: 'maintenance',
29
29
  reducerKey: 'maintenance',
30
30
  analyticsKey: 'maintenancerequest',
31
+ commentKey: 'maintenancerequest',
31
32
  actionJobsLoaded: 'JOBS_LOADED',
32
33
  actionJobsRemoved: 'JOBS_REMOVED',
33
34
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADED',
@@ -2774,7 +2775,7 @@ var Job = /*#__PURE__*/function (_Component) {
2774
2775
  });
2775
2776
 
2776
2777
  _defineProperty(_assertThisInitialized(_this), "getComments", function () {
2777
- reactionActions.getComments(_this.state.jobId, values.featureKey, 0).then(function (res) {
2778
+ reactionActions.getComments(_this.state.jobId, values.commentKey, 0).then(function (res) {
2778
2779
  _this.setState({
2779
2780
  comments: res.data
2780
2781
  });
@@ -2796,7 +2797,7 @@ var Job = /*#__PURE__*/function (_Component) {
2796
2797
  });
2797
2798
 
2798
2799
  _context7.next = 5;
2799
- return reactionActions.addComment(jobId, values.featureKey, job.title, job.site, commentInput);
2800
+ return reactionActions.addComment(jobId, values.commentKey, job.title, job.site, commentInput);
2800
2801
 
2801
2802
  case 5:
2802
2803
  res = _context7.sent;
package/dist/index.umd.js CHANGED
@@ -50,6 +50,7 @@
50
50
  serviceKey: 'maintenance',
51
51
  reducerKey: 'maintenance',
52
52
  analyticsKey: 'maintenancerequest',
53
+ commentKey: 'maintenancerequest',
53
54
  actionJobsLoaded: 'JOBS_LOADED',
54
55
  actionJobsRemoved: 'JOBS_REMOVED',
55
56
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADED',
@@ -2796,7 +2797,7 @@
2796
2797
  });
2797
2798
 
2798
2799
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getComments", function () {
2799
- reactionActions.getComments(_this.state.jobId, values.featureKey, 0).then(function (res) {
2800
+ reactionActions.getComments(_this.state.jobId, values.commentKey, 0).then(function (res) {
2800
2801
  _this.setState({
2801
2802
  comments: res.data
2802
2803
  });
@@ -2818,7 +2819,7 @@
2818
2819
  });
2819
2820
 
2820
2821
  _context7.next = 5;
2821
- return reactionActions.addComment(jobId, values.featureKey, job.title, job.site, commentInput);
2822
+ return reactionActions.addComment(jobId, values.commentKey, job.title, job.site, commentInput);
2822
2823
 
2823
2824
  case 5:
2824
2825
  res = _context7.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web",
3
- "version": "1.1.22-auth.0",
3
+ "version": "1.1.23",
4
4
  "description": "Extension package to enable maintenance on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -9,16 +9,12 @@
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",
15
12
  "upload": "npm run build && npm publish --access public && rm -rf node_modules",
16
13
  "upload:p": "npm run patch && npm run upload",
17
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",
18
15
  "copy:get": "echo $npm_package_name",
19
16
  "copy:set": "run(){ target='\\@plusscommunities\\/pluss-maintenance-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",
20
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;",
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;",
22
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;"
23
19
  },
24
20
  "author": "Phillip Suh",
@@ -41,7 +37,7 @@
41
37
  "@babel/runtime": "^7.14.0"
42
38
  },
43
39
  "peerDependencies": {
44
- "@plusscommunities/pluss-core-web": "^1.6.5-auth.0",
40
+ "@plusscommunities/pluss-core-web": "^1.4.33",
45
41
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
46
42
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
47
43
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -52,7 +48,7 @@
52
48
  "react-bootstrap": "^0.31.2",
53
49
  "react-dom": "^16.14.0",
54
50
  "react-fontawesome": "^1.6.1",
55
- "react-redux": "^7.2.9",
51
+ "react-redux": "^5.0.6",
56
52
  "react-router-dom": "^4.2.2",
57
53
  "react-textarea-autosize": "^7.1.0-1"
58
54
  },
@@ -303,7 +303,7 @@ class Job extends Component {
303
303
  };
304
304
 
305
305
  getComments = () => {
306
- reactionActions.getComments(this.state.jobId, values.featureKey, 0).then((res) => {
306
+ reactionActions.getComments(this.state.jobId, values.commentKey, 0).then((res) => {
307
307
  this.setState({ comments: res.data });
308
308
  });
309
309
  };
@@ -312,7 +312,7 @@ class Job extends Component {
312
312
  const { commentInput, jobId, job, comments } = this.state;
313
313
  try {
314
314
  this.setState({ commentInput: '' });
315
- const res = await reactionActions.addComment(jobId, values.featureKey, job.title, job.site, commentInput);
315
+ const res = await reactionActions.addComment(jobId, values.commentKey, job.title, job.site, commentInput);
316
316
  this.setState({ comments: [...comments, res.data] });
317
317
  } catch (error) {
318
318
  console.error('onAddComment', error);
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenanceA',
5
5
  reducerKey: 'maintenanceA',
6
6
  analyticsKey: 'maintenancerequestA',
7
+ commentKey: 'maintenanceA',
7
8
  actionJobsLoaded: 'JOBS_LOADEDA',
8
9
  actionJobsRemoved: 'JOBS_REMOVEDA',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADEDA',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenanceB',
5
5
  reducerKey: 'maintenanceB',
6
6
  analyticsKey: 'maintenancerequestB',
7
+ commentKey: 'maintenanceB',
7
8
  actionJobsLoaded: 'JOBS_LOADEDB',
8
9
  actionJobsRemoved: 'JOBS_REMOVEDB',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADEDB',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenanceC',
5
5
  reducerKey: 'maintenanceC',
6
6
  analyticsKey: 'maintenancerequestC',
7
+ commentKey: 'maintenanceC',
7
8
  actionJobsLoaded: 'JOBS_LOADEDC',
8
9
  actionJobsRemoved: 'JOBS_REMOVEDC',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADEDC',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenanceD',
5
5
  reducerKey: 'maintenanceD',
6
6
  analyticsKey: 'maintenancerequestD',
7
+ commentKey: 'maintenanceD',
7
8
  actionJobsLoaded: 'JOBS_LOADEDD',
8
9
  actionJobsRemoved: 'JOBS_REMOVEDD',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADEDD',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenance',
5
5
  reducerKey: 'maintenance',
6
6
  analyticsKey: 'maintenancerequest',
7
+ commentKey: 'maintenancerequest',
7
8
  actionJobsLoaded: 'JOBS_LOADED',
8
9
  actionJobsRemoved: 'JOBS_REMOVED',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADED',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenanceForms',
5
5
  reducerKey: 'maintenanceForms',
6
6
  analyticsKey: 'maintenancerequestForms',
7
+ commentKey: 'maintenanceForms',
7
8
  actionJobsLoaded: 'JOBS_LOADEDForms',
8
9
  actionJobsRemoved: 'JOBS_REMOVEDForms',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADEDForms',
@@ -4,6 +4,7 @@ const values = {
4
4
  serviceKey: 'maintenance',
5
5
  reducerKey: 'maintenance',
6
6
  analyticsKey: 'maintenancerequest',
7
+ commentKey: 'maintenancerequest',
7
8
  actionJobsLoaded: 'JOBS_LOADED',
8
9
  actionJobsRemoved: 'JOBS_REMOVED',
9
10
  actionJobsTypesLoaded: 'JOBS_TYPES_LOADED',