@twreporter/redux 7.3.0 → 7.4.0-rc.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/CHANGELOG.md +18 -0
- package/lib/constants/redux-state-field-names.js +25 -9
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [7.4.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/redux@7.3.0...@twreporter/redux@7.4.0-rc.0) (2022-09-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add @twreporter/core to redux dependency ([f84bbf3](https://github.com/twreporter/twreporter-npm-packages/commit/f84bbf3d99a9635b7985846886c2c21c6a261078))
|
|
12
|
+
* fix index-page reducer test case ([2e71684](https://github.com/twreporter/twreporter-npm-packages/commit/2e7168412ad2403def444e74f4ab831cf2efd603))
|
|
13
|
+
* fix jest config for cannot found module problem in monorepo ([538bd96](https://github.com/twreporter/twreporter-npm-packages/commit/538bd963a34dc91741ff887bb2c36eb14b582bc7))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add category set const & apply category set to index-page ([c497f90](https://github.com/twreporter/twreporter-npm-packages/commit/c497f90752246e2a0ffd2707fa246c054fa6da78))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
# [7.3.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/redux@7.3.0-rc.0...@twreporter/redux@7.3.0) (2022-09-14)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @twreporter/redux
|
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _featureFlag = require("@twreporter/core/lib/constants/feature-flag");
|
|
9
|
+
|
|
10
|
+
var _categorySet = require("@twreporter/core/lib/constants/category-set");
|
|
11
|
+
|
|
7
12
|
var entities = 'entities';
|
|
8
13
|
var indexPage = 'index_page';
|
|
9
14
|
var lists = 'lists';
|
|
@@ -31,7 +36,25 @@ var environmentAndEducation = 'environment_and_education';
|
|
|
31
36
|
var politicsAndEconomy = 'politics_and_economy';
|
|
32
37
|
var cultureAndArt = 'culture_and_art';
|
|
33
38
|
var international = 'international';
|
|
34
|
-
var livingAndMedicalCare = 'living_and_medical_care'; //
|
|
39
|
+
var livingAndMedicalCare = 'living_and_medical_care'; // feature toggle
|
|
40
|
+
|
|
41
|
+
var categories = _featureFlag.ENABLE_NEW_INFO_ARCH ? {
|
|
42
|
+
world: _categorySet.CATEGORY_PATH.world,
|
|
43
|
+
humanrights: _categorySet.CATEGORY_PATH.humanrights,
|
|
44
|
+
politicsAndSociety: _categorySet.CATEGORY_PATH.politicsAndSociety,
|
|
45
|
+
health: _categorySet.CATEGORY_PATH.health,
|
|
46
|
+
environment: _categorySet.CATEGORY_PATH.environment,
|
|
47
|
+
econ: _categorySet.CATEGORY_PATH.econ,
|
|
48
|
+
culture: _categorySet.CATEGORY_PATH.culture,
|
|
49
|
+
education: _categorySet.CATEGORY_PATH.education
|
|
50
|
+
} : {
|
|
51
|
+
humanRightsAndSociety: humanRightsAndSociety,
|
|
52
|
+
environmentAndEducation: environmentAndEducation,
|
|
53
|
+
politicsAndEconomy: politicsAndEconomy,
|
|
54
|
+
cultureAndArt: cultureAndArt,
|
|
55
|
+
international: international,
|
|
56
|
+
livingAndMedicalCare: livingAndMedicalCare
|
|
57
|
+
}; // time stamp for next popup
|
|
35
58
|
|
|
36
59
|
var nextNotifyPopupTS = 'nextNotifyPopupTS';
|
|
37
60
|
/**
|
|
@@ -45,14 +68,7 @@ var origins = 'origins'; // settings
|
|
|
45
68
|
|
|
46
69
|
var settings = 'settings';
|
|
47
70
|
var _default = {
|
|
48
|
-
categories:
|
|
49
|
-
humanRightsAndSociety: humanRightsAndSociety,
|
|
50
|
-
environmentAndEducation: environmentAndEducation,
|
|
51
|
-
politicsAndEconomy: politicsAndEconomy,
|
|
52
|
-
cultureAndArt: cultureAndArt,
|
|
53
|
-
international: international,
|
|
54
|
-
livingAndMedicalCare: livingAndMedicalCare
|
|
55
|
-
},
|
|
71
|
+
categories: categories,
|
|
56
72
|
sections: {
|
|
57
73
|
editorPicksSection: editorPicksSection,
|
|
58
74
|
infographicsSection: infographicsSection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/redux",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-rc.0",
|
|
4
4
|
"description": "redux actions and reducers for twreporter website",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/twreporter/twreporter-redux/#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@twreporter/core": "^1.7.0-rc.0",
|
|
28
29
|
"axios": "^0.19.0",
|
|
29
30
|
"es6-error": "^4.0.2",
|
|
30
31
|
"humps": "^0.6.0",
|
|
@@ -43,5 +44,5 @@
|
|
|
43
44
|
"files": [
|
|
44
45
|
"lib"
|
|
45
46
|
],
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "03f3145b392dfa27120080cff5ad0c56ade8399a"
|
|
47
48
|
}
|