@plusscommunities/pluss-core-app 1.1.1 → 1.1.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-app",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "upload": "npm version patch && npm publish --access public",
7
+ "upload": "npm version patch && npm publish --access public && rm -rf node_modules",
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
10
  "author": "Phillip Suh",
@@ -10,4 +10,4 @@ export const UPDATE_RESIDENTS = 'UPDATE_RESIDENTS';
10
10
  export const LOADED_RESIDENTS = 'LOADED_RESIDENTS';
11
11
  export const LOADED_LINKED_USERS = 'LOADED_LINKED_USERS';
12
12
  export const LOADED_LINKED_TO_USERS = 'LOADED_LINKED_TO_USERS';
13
- export const UPDATE_USER_STATE = 'update_user_state';
13
+ export const UPDATE_USER_STATE = 'UPDATE_USER_STATE';
@@ -3,29 +3,29 @@ import { getUrl } from '../helper';
3
3
  import { authedFunction } from '../session';
4
4
 
5
5
  export const reactionActions = {
6
- // add: (entityId, entityType, reaction, site) => {
7
- // return authedFunction({
8
- // method: 'POST',
9
- // url: getUrl('reactions', 'add'),
10
- // data: {
11
- // entityId,
12
- // entityType,
13
- // reaction,
14
- // site,
15
- // },
16
- // });
17
- // },
18
- // remove: (entityId, entityType, reaction) => {
19
- // return authedFunction({
20
- // method: 'POST',
21
- // url: getUrl('reactions', 'remove'),
22
- // data: {
23
- // entityId,
24
- // entityType,
25
- // reaction,
26
- // },
27
- // });
28
- // },
6
+ add: (entityId, entityType, reaction, site) => {
7
+ return authedFunction({
8
+ method: 'POST',
9
+ url: getUrl('reactions', 'add'),
10
+ data: {
11
+ entityId,
12
+ entityType,
13
+ reaction,
14
+ site,
15
+ },
16
+ });
17
+ },
18
+ remove: (entityId, entityType, reaction) => {
19
+ return authedFunction({
20
+ method: 'POST',
21
+ url: getUrl('reactions', 'remove'),
22
+ data: {
23
+ entityId,
24
+ entityType,
25
+ reaction,
26
+ },
27
+ });
28
+ },
29
29
  addComment: (entityId, entityType, site, comment, image) => {
30
30
  const data = {
31
31
  entityId,
@@ -20,7 +20,6 @@ import {
20
20
  TEXT_BLUEGREY,
21
21
  } from '../colours';
22
22
  import { getEnabledTabsFromState, get1400, getThumb300, imageExists, isVideo, getImageSource } from '../helper';
23
- // import { tinyChatDefault } from '../../config';
24
23
  import Config, { Services } from '../config';
25
24
  import ImageUploader from './ImageUploader';
26
25
  import ImageUploadProgress from './ImageUploadProgress';