@twreporter/core 1.10.0-rc.0 → 1.10.0-rc.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
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
|
+
# [1.10.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.10.0-rc.1...@twreporter/core@1.10.0-rc.2) (2023-06-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add email subscription options ([2f97f82](https://github.com/twreporter/twreporter-npm-packages/commit/2f97f82a2d754c462dbbfef8a3e0ff9e9db0435c))
|
|
12
|
+
* add read preference ([3d11197](https://github.com/twreporter/twreporter-npm-packages/commit/3d1119766205a566d504452e3325e260b395d63f))
|
|
13
|
+
* add user reducer test ([28cc793](https://github.com/twreporter/twreporter-npm-packages/commit/28cc793bdf68559a4f81e44ab62e6ee62b58a1b7))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [1.10.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.10.0-rc.0...@twreporter/core@1.10.0-rc.1) (2023-05-23)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* fix comment ([e2d4ffb](https://github.com/twreporter/twreporter-npm-packages/commit/e2d4ffbf543eed2461e5c380183b753070f0723b))
|
|
25
|
+
* member role constants ([9c9ac5d](https://github.com/twreporter/twreporter-npm-packages/commit/9c9ac5d5ea94f125f082b5f7b112b0dbf626250b))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
# [1.10.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.9.0...@twreporter/core@1.10.0-rc.0) (2023-05-22)
|
|
7
32
|
|
|
8
33
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EMAIL_SUBSCRIPTION_KEY = void 0;
|
|
7
|
+
// featured: 2f1c91a75a # 報導者精選
|
|
8
|
+
// behind_the_scenes: 219df4131b # 採訪幕後故事
|
|
9
|
+
// operational_journal: ca9d491549 # 報導者營運手記
|
|
10
|
+
// event_updates: 0345c43d67 # 活動資訊與最新動態
|
|
11
|
+
var EMAIL_SUBSCRIPTION_KEY = {
|
|
12
|
+
featured: 'featured',
|
|
13
|
+
behindTheScenes: 'behind_the_scenes',
|
|
14
|
+
operationalJournal: 'operational_journal',
|
|
15
|
+
eventUpdates: 'event_updates'
|
|
16
|
+
};
|
|
17
|
+
exports.EMAIL_SUBSCRIPTION_KEY = EMAIL_SUBSCRIPTION_KEY;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.MEMBER_ROLE_ZH_TW = exports.MEMBER_ROLE = void 0;
|
|
7
|
+
var MEMBER_ROLE = {
|
|
8
|
+
explorer: 'explorer',
|
|
9
|
+
action_taker: 'action_taker',
|
|
10
|
+
trailblazer: 'trailblazer'
|
|
11
|
+
};
|
|
12
|
+
exports.MEMBER_ROLE = MEMBER_ROLE;
|
|
13
|
+
var MEMBER_ROLE_ZH_TW = {
|
|
14
|
+
explorer: '探索者',
|
|
15
|
+
action_taker: '行動者',
|
|
16
|
+
trailblazer: '開創者'
|
|
17
|
+
};
|
|
18
|
+
exports.MEMBER_ROLE_ZH_TW = MEMBER_ROLE_ZH_TW;
|
|
19
|
+
var _default = {
|
|
20
|
+
MEMBER_ROLE: MEMBER_ROLE,
|
|
21
|
+
MEMBER_ROLE_ZH_TW: MEMBER_ROLE_ZH_TW
|
|
22
|
+
};
|
|
23
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.READ_PREFERENCE_ORDER = exports.READ_PREFERENCE_ZH_TW = exports.READ_PREFERENCE = void 0;
|
|
7
|
+
|
|
8
|
+
var _READ_PREFERENCE_ZH_T;
|
|
9
|
+
|
|
10
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
|
|
12
|
+
var READ_PREFERENCE = {
|
|
13
|
+
international: 'international',
|
|
14
|
+
crossStraits: 'cross_straits',
|
|
15
|
+
humanRight: 'human_right',
|
|
16
|
+
society: 'society',
|
|
17
|
+
environment: 'environment',
|
|
18
|
+
education: 'education',
|
|
19
|
+
politics: 'politics',
|
|
20
|
+
economy: 'economy',
|
|
21
|
+
culture: 'culture',
|
|
22
|
+
art: 'art',
|
|
23
|
+
life: 'life',
|
|
24
|
+
health: 'health',
|
|
25
|
+
sport: 'sport',
|
|
26
|
+
all: 'all'
|
|
27
|
+
};
|
|
28
|
+
exports.READ_PREFERENCE = READ_PREFERENCE;
|
|
29
|
+
var READ_PREFERENCE_ZH_TW = (_READ_PREFERENCE_ZH_T = {}, _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.international, '國際'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.crossStraits, '兩岸'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.humanRight, '人權'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.society, '社會'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.environment, '環境'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.education, '教育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.politics, '政治'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.economy, '經濟'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.culture, '文化'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.art, '藝術'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.life, '生活'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.health, '醫療'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.sport, '體育'), _defineProperty(_READ_PREFERENCE_ZH_T, READ_PREFERENCE.all, '全部'), _READ_PREFERENCE_ZH_T);
|
|
30
|
+
exports.READ_PREFERENCE_ZH_TW = READ_PREFERENCE_ZH_TW;
|
|
31
|
+
var READ_PREFERENCE_ORDER = [READ_PREFERENCE.international, READ_PREFERENCE.economy, READ_PREFERENCE.art, READ_PREFERENCE.crossStraits, READ_PREFERENCE.culture, READ_PREFERENCE.life, READ_PREFERENCE.humanRight, READ_PREFERENCE.education, READ_PREFERENCE.health, READ_PREFERENCE.society, READ_PREFERENCE.politics, READ_PREFERENCE.sport, READ_PREFERENCE.environment];
|
|
32
|
+
exports.READ_PREFERENCE_ORDER = READ_PREFERENCE_ORDER;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/core",
|
|
3
|
-
"version": "1.10.0-rc.
|
|
3
|
+
"version": "1.10.0-rc.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"lib"
|
|
21
21
|
],
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "7f423041f31558196c12a2cb438b506619bc5f68"
|
|
23
23
|
}
|