@twreporter/react-components 8.24.0-rc.2 → 8.24.0-rc.3
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 +11 -0
- package/lib/hook/use-bookmark.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [8.24.0-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.24.0-rc.2...@twreporter/react-components@8.24.0-rc.3) (2024-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* pass bookmark as parameter when create ([c467e68](https://github.com/twreporter/twreporter-npm-packages/commit/c467e68afc1bb401d9a7e9718d9514d69d4564a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [8.24.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.24.0-rc.1...@twreporter/react-components@8.24.0-rc.2) (2024-01-15)
|
|
7
18
|
|
|
8
19
|
|
package/lib/hook/use-bookmark.js
CHANGED
|
@@ -67,7 +67,7 @@ var _twreporterRedux$acti = _redux["default"].actions,
|
|
|
67
67
|
* @param {string} bookmark.published_date
|
|
68
68
|
*/
|
|
69
69
|
|
|
70
|
-
var useBookmark = function useBookmark(store
|
|
70
|
+
var useBookmark = function useBookmark(store) {
|
|
71
71
|
var _store = _slicedToArray(store, 2),
|
|
72
72
|
state = _store[0],
|
|
73
73
|
dispatch = _store[1];
|
|
@@ -76,7 +76,7 @@ var useBookmark = function useBookmark(store, bookmark) {
|
|
|
76
76
|
|
|
77
77
|
var userID = _.get(state, 'auth.userInfo.user_id');
|
|
78
78
|
|
|
79
|
-
var addCurrentPageToBookmarks = function addCurrentPageToBookmarks() {
|
|
79
|
+
var addCurrentPageToBookmarks = function addCurrentPageToBookmarks(bookmark) {
|
|
80
80
|
var bookmarkToBeCreated = _objectSpread(_objectSpread({}, bookmark), {}, {
|
|
81
81
|
host: getHostFromWindowLocation()
|
|
82
82
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.24.0-rc.
|
|
3
|
+
"version": "8.24.0-rc.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@twreporter/core": "^1.17.0-rc.0",
|
|
19
|
-
"@twreporter/redux": "^7.10.0-rc.
|
|
19
|
+
"@twreporter/redux": "^7.10.0-rc.2",
|
|
20
20
|
"fontfaceobserver-es": "^3.3.3",
|
|
21
21
|
"hoist-non-react-statics": "^2.3.1",
|
|
22
22
|
"lodash": "^4.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-dom": "^16.0.0",
|
|
52
52
|
"storybook": "^7.5.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "fae9f717d3c7766dc48a538d5cf1f5c8d2d93f6d"
|
|
55
55
|
}
|