@selfcommunity/react-ui 0.10.2-alpha.1 → 0.10.2-alpha.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfcommunity/react-ui",
3
- "version": "0.10.2-alpha.1",
3
+ "version": "0.10.2-alpha.2",
4
4
  "description": "React UI Components to integrate a Community created with SelfCommunity Platform.",
5
5
  "author": "SelfCommunity <https://www.selfcommunity.com>",
6
6
  "homepage": "https://www.selfcommunity.com",
@@ -116,7 +116,7 @@
116
116
  "react-dom": "17 || 18",
117
117
  "react-intersection-observer": "^9.4.3",
118
118
  "react-intl": "^6.4.7",
119
- "react-lazyload": "^3.2.0",
119
+ "react-lazyload": "^3.2.1",
120
120
  "react-photo-view": "^1.2.6",
121
121
  "react-player": "^2.12.0",
122
122
  "react-share": "^4.4.1",
@@ -180,5 +180,5 @@
180
180
  "bugs": {
181
181
  "url": "https://github.com/selfcommunity/community-js/issues"
182
182
  },
183
- "gitHead": "0d4dd8ffdf8795757cd8dc712e7ad244010ac9f7"
183
+ "gitHead": "1101af745706515798f9e48dea29682e032412f0"
184
184
  }
@@ -1,15 +0,0 @@
1
- export declare const actionTypes: {
2
- LOADING: string;
3
- SET_COLORS: string;
4
- SET_LOGOS: string;
5
- SET_SLOGANS: string;
6
- };
7
- export declare const initialState: {
8
- loading: boolean;
9
- colors: any[];
10
- logos: any[];
11
- slogans: any[];
12
- modified: boolean;
13
- };
14
- export declare function getInitialState(data: any): any;
15
- export declare function reducer(state: any, action: any): any;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reducer = exports.getInitialState = exports.initialState = exports.actionTypes = void 0;
4
- exports.actionTypes = {
5
- LOADING: '_loading',
6
- SET_COLORS: '_set_colors',
7
- SET_LOGOS: '_set_logos',
8
- SET_SLOGANS: '_set_slogans'
9
- };
10
- exports.initialState = {
11
- loading: false,
12
- colors: [],
13
- logos: [],
14
- slogans: [],
15
- modified: false
16
- };
17
- function getInitialState(data) {
18
- if (data) {
19
- return Object.assign(Object.assign({}, exports.initialState), data);
20
- }
21
- return exports.initialState;
22
- }
23
- exports.getInitialState = getInitialState;
24
- function reducer(state, action) {
25
- let _state = Object.assign({}, state);
26
- switch (action.type) {
27
- case exports.actionTypes.LOADING:
28
- _state = Object.assign(Object.assign({}, state), { loading: action.payload.loading });
29
- break;
30
- case exports.actionTypes.SET_COLORS:
31
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { colors: action.payload.colors, logos: state.logos }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
32
- break;
33
- case exports.actionTypes.SET_LOGOS:
34
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { logos: action.payload.logos, colors: state.colors }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
35
- break;
36
- case exports.actionTypes.SET_SLOGANS:
37
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { slogans: action.payload.slogans, logos: state.logos, colors: state.colors }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
38
- break;
39
- }
40
- return _state;
41
- }
42
- exports.reducer = reducer;
@@ -1,15 +0,0 @@
1
- export declare const actionTypes: {
2
- LOADING: string;
3
- SET_COLORS: string;
4
- SET_LOGOS: string;
5
- SET_SLOGANS: string;
6
- };
7
- export declare const initialState: {
8
- loading: boolean;
9
- colors: any[];
10
- logos: any[];
11
- slogans: any[];
12
- modified: boolean;
13
- };
14
- export declare function getInitialState(data: any): any;
15
- export declare function reducer(state: any, action: any): any;
@@ -1,37 +0,0 @@
1
- export const actionTypes = {
2
- LOADING: '_loading',
3
- SET_COLORS: '_set_colors',
4
- SET_LOGOS: '_set_logos',
5
- SET_SLOGANS: '_set_slogans'
6
- };
7
- export const initialState = {
8
- loading: false,
9
- colors: [],
10
- logos: [],
11
- slogans: [],
12
- modified: false
13
- };
14
- export function getInitialState(data) {
15
- if (data) {
16
- return Object.assign(Object.assign({}, initialState), data);
17
- }
18
- return initialState;
19
- }
20
- export function reducer(state, action) {
21
- let _state = Object.assign({}, state);
22
- switch (action.type) {
23
- case actionTypes.LOADING:
24
- _state = Object.assign(Object.assign({}, state), { loading: action.payload.loading });
25
- break;
26
- case actionTypes.SET_COLORS:
27
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { colors: action.payload.colors, logos: state.logos }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
28
- break;
29
- case actionTypes.SET_LOGOS:
30
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { logos: action.payload.logos, colors: state.colors }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
31
- break;
32
- case actionTypes.SET_SLOGANS:
33
- _state = Object.assign(Object.assign(Object.assign(Object.assign({}, state), { slogans: action.payload.slogans, logos: state.logos, colors: state.colors }), (action.payload.loading !== undefined && { loading: action.payload.loading })), { modified: true });
34
- break;
35
- }
36
- return _state;
37
- }