@twreporter/react-components 8.5.0-rc.1
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 +544 -0
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/lib/bookmark-list/bookmark.js +251 -0
- package/lib/bookmark-list/bookmarks.js +93 -0
- package/lib/bookmark-list/customized-link.js +45 -0
- package/lib/bookmark-list/image-wrapper.js +119 -0
- package/lib/bookmark-list/index.js +312 -0
- package/lib/bookmark-list/redirect-to-sign-in.js +35 -0
- package/lib/bookmark-widget/index.js +259 -0
- package/lib/confirmation/index.js +125 -0
- package/lib/donation-link.js +75 -0
- package/lib/error/index.js +17 -0
- package/lib/error/message.js +567 -0
- package/lib/footer/constants/paths.js +8 -0
- package/lib/footer/constants/styles.js +81 -0
- package/lib/footer/content.js +227 -0
- package/lib/footer/icon-list.js +191 -0
- package/lib/footer/index.js +123 -0
- package/lib/footer/logo.js +92 -0
- package/lib/is-fetching-wrapper.js +126 -0
- package/lib/link-with-tracker.js +153 -0
- package/lib/listing-page/components/image.js +185 -0
- package/lib/listing-page/components/list-item.js +197 -0
- package/lib/listing-page/components/list.js +188 -0
- package/lib/listing-page/components/topics/index.js +215 -0
- package/lib/listing-page/components/topics/page-content.js +44 -0
- package/lib/listing-page/components/topics/post-item.js +139 -0
- package/lib/listing-page/components/topics/posts.js +24 -0
- package/lib/listing-page/components/topics/section.js +104 -0
- package/lib/listing-page/components/topics/topic-item.js +206 -0
- package/lib/listing-page/constants/mockup-spec.js +39 -0
- package/lib/listing-page/constants/predefined-css.js +21 -0
- package/lib/listing-page/constants/topics.js +13 -0
- package/lib/listing-page/index.js +30 -0
- package/lib/mobile-pop-up-modal.js +161 -0
- package/lib/more.js +98 -0
- package/lib/pagination/index.js +310 -0
- package/lib/podcast-link.js +73 -0
- package/lib/side-bar/index.js +317 -0
- package/lib/table-of-contents/index.js +532 -0
- package/lib/utils/link-with-params.js +27 -0
- package/package.json +33 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [8.5.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.5.0-rc.0...@twreporter/react-components@8.5.0-rc.1) (2021-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix ui defect ([2ab85e2](https://github.com/twreporter/twreporter-npm-packages/commit/2ab85e2eabd9ae33b857353712358777b50a9f9a))
|
|
12
|
+
* **react-components:** fix eslint error ([c0d6d42](https://github.com/twreporter/twreporter-npm-packages/commit/c0d6d428a773762d1284cba2eb5d9ca20b2a221f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [8.5.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.4...@twreporter/react-components@8.5.0-rc.0) (2021-08-30)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **react-components:** use createRef to assign node ref instead of function assign ([1c881da](https://github.com/twreporter/twreporter-npm-packages/commit/1c881da8b9e845858edc436191a68ee86aa49f0e))
|
|
24
|
+
* **universal-header:** fix code review ([e5d3d08](https://github.com/twreporter/twreporter-npm-packages/commit/e5d3d08ee62685c0a49c8c746421ce68b3fa4693))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **react-components:** add mobile-pop-up-modal component ([b5e7088](https://github.com/twreporter/twreporter-npm-packages/commit/b5e7088e548d124a20f1679da3a091bf071a5a24))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## [8.4.4](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.4-rc.0...@twreporter/react-components@8.4.4) (2021-06-22)
|
|
36
|
+
|
|
37
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [8.4.4-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.3...@twreporter/react-components@8.4.4-rc.0) (2021-06-22)
|
|
44
|
+
|
|
45
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [8.4.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.3-rc.0...@twreporter/react-components@8.4.3) (2021-05-13)
|
|
52
|
+
|
|
53
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [8.4.3-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.2...@twreporter/react-components@8.4.3-rc.0) (2021-05-12)
|
|
60
|
+
|
|
61
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## [8.4.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.2-rc.0...@twreporter/react-components@8.4.2) (2021-04-19)
|
|
68
|
+
|
|
69
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## [8.4.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.1...@twreporter/react-components@8.4.2-rc.0) (2021-04-19)
|
|
76
|
+
|
|
77
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## [8.4.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.1-rc.0...@twreporter/react-components@8.4.1) (2021-04-15)
|
|
84
|
+
|
|
85
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [8.4.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.0...@twreporter/react-components@8.4.1-rc.0) (2021-03-31)
|
|
92
|
+
|
|
93
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# [8.4.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.4.0-rc.0...@twreporter/react-components@8.4.0) (2021-02-02)
|
|
100
|
+
|
|
101
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# [8.4.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.9...@twreporter/react-components@8.4.0-rc.0) (2021-02-02)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* use `og_image` as image fallback for listing pages ([#168](https://github.com/twreporter/twreporter-npm-packages/issues/168)) ([5daaf54](https://github.com/twreporter/twreporter-npm-packages/commit/5daaf543be109939aaa94495ce62b149d554a57b))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [8.3.9](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.9-rc.0...@twreporter/react-components@8.3.9) (2021-01-20)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [8.3.9-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.8...@twreporter/react-components@8.3.9-rc.0) (2021-01-19)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
* **react-components:** return original url when exception occurs ([b0ac4be](https://github.com/twreporter/twreporter-npm-packages/commit/b0ac4be88a9501c7b2e9edd9f7526a6423d6c640))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## [8.3.8](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.8-rc.0...@twreporter/react-components@8.3.8) (2021-01-13)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [8.3.8-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.7...@twreporter/react-components@8.3.8-rc.0) (2021-01-13)
|
|
146
|
+
|
|
147
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## [8.3.7](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.7-rc.0...@twreporter/react-components@8.3.7) (2020-11-13)
|
|
154
|
+
|
|
155
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## [8.3.7-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.6...@twreporter/react-components@8.3.7-rc.0) (2020-11-13)
|
|
162
|
+
|
|
163
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## [8.3.6](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.6-rc.0...@twreporter/react-components@8.3.6) (2020-11-12)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
## [8.3.6-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.5...@twreporter/react-components@8.3.6-rc.0) (2020-11-12)
|
|
178
|
+
|
|
179
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## [8.3.5](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.5-rc.0...@twreporter/react-components@8.3.5) (2020-10-28)
|
|
186
|
+
|
|
187
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
## [8.3.5-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.4...@twreporter/react-components@8.3.5-rc.0) (2020-10-28)
|
|
194
|
+
|
|
195
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
## [8.3.4](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.4-rc.0...@twreporter/react-components@8.3.4) (2020-10-08)
|
|
202
|
+
|
|
203
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## [8.3.4-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.3...@twreporter/react-components@8.3.4-rc.0) (2020-09-15)
|
|
210
|
+
|
|
211
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
## [8.3.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.3-rc.0...@twreporter/react-components@8.3.3) (2020-09-14)
|
|
218
|
+
|
|
219
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## [8.3.3-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.2...@twreporter/react-components@8.3.3-rc.0) (2020-09-11)
|
|
226
|
+
|
|
227
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
## [8.3.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.2-rc.0...@twreporter/react-components@8.3.2) (2020-09-10)
|
|
234
|
+
|
|
235
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
## [8.3.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.1...@twreporter/react-components@8.3.2-rc.0) (2020-09-10)
|
|
242
|
+
|
|
243
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
## [8.3.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.1-rc.0...@twreporter/react-components@8.3.1) (2020-09-04)
|
|
250
|
+
|
|
251
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
## [8.3.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.0...@twreporter/react-components@8.3.1-rc.0) (2020-09-03)
|
|
258
|
+
|
|
259
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
# [8.3.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.3.0-rc.0...@twreporter/react-components@8.3.0) (2020-08-28)
|
|
266
|
+
|
|
267
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# [8.3.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3...@twreporter/react-components@8.3.0-rc.0) (2020-08-28)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
### Features
|
|
277
|
+
|
|
278
|
+
* **footer:** add `host`, `pathname` props to footer ([54f605d](https://github.com/twreporter/twreporter-npm-packages/commit/54f605dc00756ee869f2bf369550dbdf37941640))
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
## [8.2.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.6...@twreporter/react-components@8.2.3) (2020-08-25)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
## [8.2.3-rc.6](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.5...@twreporter/react-components@8.2.3-rc.6) (2020-08-01)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
## [8.2.3-rc.5](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.4...@twreporter/react-components@8.2.3-rc.5) (2020-07-27)
|
|
301
|
+
|
|
302
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## [8.2.3-rc.4](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.3...@twreporter/react-components@8.2.3-rc.4) (2020-07-27)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## [8.2.3-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.2...@twreporter/react-components@8.2.3-rc.3) (2020-07-21)
|
|
317
|
+
|
|
318
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
## [8.2.3-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.1...@twreporter/react-components@8.2.3-rc.2) (2020-07-20)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
## [8.2.3-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.3-rc.0...@twreporter/react-components@8.2.3-rc.1) (2020-07-14)
|
|
333
|
+
|
|
334
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## [8.2.3-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.2...@twreporter/react-components@8.2.3-rc.0) (2020-07-14)
|
|
341
|
+
|
|
342
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
## [8.2.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.2-rc.0...@twreporter/react-components@8.2.2) (2020-03-03)
|
|
349
|
+
|
|
350
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
## [8.2.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.1...@twreporter/react-components@8.2.2-rc.0) (2020-03-03)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Bug Fixes
|
|
360
|
+
|
|
361
|
+
* **footer:** body's background shows when exceeds max-height ([#106](https://github.com/twreporter/twreporter-npm-packages/issues/106)) ([6d7b4be](https://github.com/twreporter/twreporter-npm-packages/commit/6d7b4be2cc39fa6bfad902b69e947c127682263d))
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## [8.2.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.1-rc.0...@twreporter/react-components@8.2.1) (2020-02-13)
|
|
368
|
+
|
|
369
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
## [8.2.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.0...@twreporter/react-components@8.2.1-rc.0) (2020-02-12)
|
|
376
|
+
|
|
377
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
# [8.2.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.2.0-rc.0...@twreporter/react-components@8.2.0) (2020-02-10)
|
|
384
|
+
|
|
385
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
# [8.2.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.1.1...@twreporter/react-components@8.2.0-rc.0) (2020-02-10)
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
### Features
|
|
395
|
+
|
|
396
|
+
* **react-components:** add media center link ([#97](https://github.com/twreporter/twreporter-npm-packages/issues/97)) ([c6e9484](https://github.com/twreporter/twreporter-npm-packages/commit/c6e9484fba55e80c9e0cb03b9f2bf76d6bfa2352))
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
## [8.1.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.1.0...@twreporter/react-components@8.1.1) (2020-01-14)
|
|
403
|
+
|
|
404
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
405
|
+
|
|
406
|
+
# [8.1.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.0.4...@twreporter/react-components@8.1.0) (2020-01-06)
|
|
407
|
+
|
|
408
|
+
### Features
|
|
409
|
+
|
|
410
|
+
- add annual report link to footer ([2bb5446](https://github.com/twreporter/twreporter-npm-packages/commit/2bb5446d13e0adfce4d6cf787009a30298cc4320))
|
|
411
|
+
|
|
412
|
+
## [8.0.4](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.0.4-rc.1...@twreporter/react-components@8.0.4) (2020-01-03)
|
|
413
|
+
|
|
414
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
415
|
+
|
|
416
|
+
## [8.0.4-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.0.4-rc.0...@twreporter/react-components@8.0.4-rc.1) (2020-01-03)
|
|
417
|
+
|
|
418
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
419
|
+
|
|
420
|
+
## [8.0.4-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.0.3...@twreporter/react-components@8.0.4-rc.0) (2020-01-02)
|
|
421
|
+
|
|
422
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
423
|
+
|
|
424
|
+
## [8.0.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.0.3-rc.5...@twreporter/react-components@8.0.3) (2019-11-26)
|
|
425
|
+
|
|
426
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
427
|
+
|
|
428
|
+
## 8.0.3-rc.5 (2019-11-26)
|
|
429
|
+
|
|
430
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
431
|
+
|
|
432
|
+
### 8.0.3-rc.4
|
|
433
|
+
|
|
434
|
+
#### Notable Changes
|
|
435
|
+
|
|
436
|
+
- dep upgrade:
|
|
437
|
+
- @twreporter/redux v5.0.4 -> v5.0.7-rc.1
|
|
438
|
+
|
|
439
|
+
#### Commits
|
|
440
|
+
|
|
441
|
+
- [[b69e6cf](https://github.com/twreporter/twreporter-npm-packages/commit/b69e6cf)] - @twreporter/redux v5.0.4 -> v5.0.7-rc.1(taylrj)
|
|
442
|
+
|
|
443
|
+
### 8.0.3-rc.3
|
|
444
|
+
|
|
445
|
+
#### Notable Changes
|
|
446
|
+
|
|
447
|
+
- Bug Fixes
|
|
448
|
+
- bookmark-widget error on ssr
|
|
449
|
+
|
|
450
|
+
#### Commits
|
|
451
|
+
|
|
452
|
+
- [[353339a](https://github.com/twreporter/twreporter-npm-packages/commit/353339a)] - fix: bookmark-widget error on ssr(taylrj)
|
|
453
|
+
|
|
454
|
+
### 8.0.3-rc.2
|
|
455
|
+
|
|
456
|
+
#### Notable Changes
|
|
457
|
+
|
|
458
|
+
- dep upgrade:
|
|
459
|
+
- @twreporter/core: 1.1.2-rc.1 -> 1.1.2-rc.2
|
|
460
|
+
|
|
461
|
+
#### Commits
|
|
462
|
+
|
|
463
|
+
- [[3eb434d](https://github.com/twreporter/twreporter-npm-packages/commit/3eb434ddb8ab3ee148a413a7e42b7925d6ca5a27)] - @twreporter/core: 1.1.2-rc.1 -> 1.1.2-rc.2(taylrj)
|
|
464
|
+
|
|
465
|
+
### 8.0.3-rc.1
|
|
466
|
+
|
|
467
|
+
#### Notable Changes
|
|
468
|
+
|
|
469
|
+
- dep upgrade:
|
|
470
|
+
- @twreporter/core: ^1.1.0 -> 1.1.2-rc.1
|
|
471
|
+
|
|
472
|
+
### 8.0.2
|
|
473
|
+
|
|
474
|
+
- Remove deprecated React API `componentWillMount` and `componentWillReceiveProps`
|
|
475
|
+
- `react-transition-group@^1.2.1` -> `^2.0.0`
|
|
476
|
+
- `react-router-dom@^4.3.1` -> `^5.1.2`
|
|
477
|
+
- Per file imports are deprecated for `react-router-dom` v5
|
|
478
|
+
|
|
479
|
+
### 8.0.1
|
|
480
|
+
|
|
481
|
+
#### Table of Contents
|
|
482
|
+
|
|
483
|
+
- Add `id` attribute in the anchor
|
|
484
|
+
|
|
485
|
+
### 8.0.0
|
|
486
|
+
|
|
487
|
+
#### Bookmark Widget
|
|
488
|
+
|
|
489
|
+
- Add `props.renderIcon`, which lets clients render icons on demand
|
|
490
|
+
- Add `props.toAutoCheck`, if `true`, it will automatically check if bookmark is exited after mounting
|
|
491
|
+
- Remove icon assets
|
|
492
|
+
|
|
493
|
+
### 7.1.1
|
|
494
|
+
|
|
495
|
+
- Add `className` prop to `donation-link-with-utm` for styled-components
|
|
496
|
+
|
|
497
|
+
### 7.1.0
|
|
498
|
+
|
|
499
|
+
#### Table of Contents
|
|
500
|
+
|
|
501
|
+
- Add src/table-of-contents/index.js
|
|
502
|
+
- Add src/table-of-contents/README.md
|
|
503
|
+
|
|
504
|
+
### 7.0.8
|
|
505
|
+
|
|
506
|
+
- Update `src/donation-link-with-utm.js`, pure func -> extends React.PureComponent
|
|
507
|
+
|
|
508
|
+
### 7.0.7
|
|
509
|
+
|
|
510
|
+
- Update Footer component
|
|
511
|
+
- Update dependencies:
|
|
512
|
+
- @twreporter/core: ^1.0.3 -> ^1.1.0
|
|
513
|
+
|
|
514
|
+
### 7.0.6
|
|
515
|
+
|
|
516
|
+
- [listing-page] take last 3 posts from the end of `topic.relateds` for top topic component
|
|
517
|
+
|
|
518
|
+
### 7.0.5
|
|
519
|
+
|
|
520
|
+
- Fix bookmark-widget SSR problem
|
|
521
|
+
|
|
522
|
+
### 7.0.4
|
|
523
|
+
|
|
524
|
+
- Add src/donation-link-with-utm.js
|
|
525
|
+
- Update src/footer/content.js: link-with-tracker -> donation-link-with-utm
|
|
526
|
+
|
|
527
|
+
### 7.0.3
|
|
528
|
+
|
|
529
|
+
- Update dependency
|
|
530
|
+
- @twreporte/redux: 5.0.2 -> ^5.0.3
|
|
531
|
+
- Delete package.json#peerDependencies
|
|
532
|
+
|
|
533
|
+
### 7.0.2
|
|
534
|
+
|
|
535
|
+
- Update dependency
|
|
536
|
+
- @twreporte/redux: ^5.0.1 -> 5.0.2
|
|
537
|
+
|
|
538
|
+
### 7.0.1
|
|
539
|
+
|
|
540
|
+
- Update dependencies
|
|
541
|
+
|
|
542
|
+
### 7.0.0
|
|
543
|
+
|
|
544
|
+
- Move source code from `twreporter-react-components` to `twreporter-npm-packages`
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 TwReporter
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @twreporter/react-components
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@twreporter/react-components)
|
|
4
|
+
|
|
5
|
+
This package provides the React components used in the [The Reporter](https://www.twreporter.org/) website.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @twreporter/react-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Components
|
|
14
|
+
|
|
15
|
+
- bookmark-list
|
|
16
|
+
- bookmark-widget
|
|
17
|
+
- confirmation
|
|
18
|
+
- error
|
|
19
|
+
- footer
|
|
20
|
+
- listing-page
|
|
21
|
+
- pagination
|
|
22
|
+
- side-bar
|
|
23
|
+
- is-fetching-wrapper
|
|
24
|
+
- link-with-tracker
|
|
25
|
+
- more
|
|
26
|
+
- mobile-pop-up-modal
|
|
27
|
+
|
|
28
|
+
## Developement
|
|
29
|
+
|
|
30
|
+
### Dev
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
make dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Build (pre-publish)
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
make build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Publish
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
make publish
|
|
46
|
+
```
|