@automattic/jetpack-connection 0.29.8

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.
Files changed (53) hide show
  1. package/.gitattributes +12 -0
  2. package/CHANGELOG.md +622 -0
  3. package/LICENSE.txt +357 -0
  4. package/README.md +284 -0
  5. package/SECURITY.md +38 -0
  6. package/components/connect-button/index.jsx +70 -0
  7. package/components/connect-screen/basic/index.jsx +104 -0
  8. package/components/connect-screen/basic/style.scss +46 -0
  9. package/components/connect-screen/basic/visual.jsx +109 -0
  10. package/components/connect-screen/layout/image-slider.jsx +37 -0
  11. package/components/connect-screen/layout/index.jsx +65 -0
  12. package/components/connect-screen/layout/style.scss +238 -0
  13. package/components/connect-screen/required-plan/index.jsx +127 -0
  14. package/components/connect-screen/required-plan/style.scss +109 -0
  15. package/components/connect-screen/required-plan/visual.jsx +151 -0
  16. package/components/connect-user/index.jsx +64 -0
  17. package/components/connected-plugins/index.jsx +67 -0
  18. package/components/connection-error-notice/index.jsx +110 -0
  19. package/components/connection-error-notice/styles.module.scss +97 -0
  20. package/components/disconnect-card/index.jsx +40 -0
  21. package/components/disconnect-card/style.scss +85 -0
  22. package/components/disconnect-dialog/images/disconnect-confirm.jpg +0 -0
  23. package/components/disconnect-dialog/images/disconnect-thanks.jpg +0 -0
  24. package/components/disconnect-dialog/index.jsx +409 -0
  25. package/components/disconnect-dialog/steps/step-disconnect-confirm.jsx +87 -0
  26. package/components/disconnect-dialog/steps/step-disconnect.jsx +206 -0
  27. package/components/disconnect-dialog/steps/step-survey.jsx +48 -0
  28. package/components/disconnect-dialog/steps/step-thank-you.jsx +54 -0
  29. package/components/disconnect-dialog/style.scss +218 -0
  30. package/components/disconnect-survey/_jp-connect_disconnect-survey-card.scss +60 -0
  31. package/components/disconnect-survey/index.jsx +181 -0
  32. package/components/disconnect-survey/survey-choice.jsx +43 -0
  33. package/components/in-place-connection/index.jsx +140 -0
  34. package/components/in-place-connection/style.scss +35 -0
  35. package/components/manage-connection-dialog/index.jsx +219 -0
  36. package/components/manage-connection-dialog/style.scss +106 -0
  37. package/components/use-connection/index.jsx +112 -0
  38. package/helpers/third-party-cookies-fallback.jsx +10 -0
  39. package/hooks/use-connection-error-notice/index.jsx +38 -0
  40. package/hooks/use-product-checkout-workflow/Readme.md +61 -0
  41. package/hooks/use-product-checkout-workflow/index.jsx +103 -0
  42. package/hooks/use-restore-connection/index.jsx +64 -0
  43. package/index.jsx +48 -0
  44. package/index.native.js +1 -0
  45. package/package.json +62 -0
  46. package/state/actions.jsx +166 -0
  47. package/state/controls.jsx +40 -0
  48. package/state/reducers.jsx +121 -0
  49. package/state/resolvers.jsx +32 -0
  50. package/state/selectors.jsx +35 -0
  51. package/state/store-holder.jsx +14 -0
  52. package/state/store-id.jsx +3 -0
  53. package/state/store.jsx +29 -0
package/.gitattributes ADDED
@@ -0,0 +1,12 @@
1
+ # Files not needed to be distributed in the package.
2
+ .gitattributes export-ignore
3
+ node_modules export-ignore
4
+
5
+ # Files to exclude from the mirror repo
6
+ /changelog/** production-exclude
7
+ /.eslintrc.cjs production-exclude
8
+ /.gitignore production-exclude
9
+ /jest.config.cjs production-exclude
10
+ /jest.setup.js production-exclude
11
+ **/stories/** production-exclude
12
+ **/test/** production-exclude
package/CHANGELOG.md ADDED
@@ -0,0 +1,622 @@
1
+ # Changelog
2
+
3
+ ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
+
5
+ ## [0.29.8] - 2023-08-21
6
+ ### Added
7
+ - Better way to render initial state. [#32499]
8
+ - Publish package to npmjs.com. [#32515]
9
+
10
+ ## 0.29.7 - 2023-08-09
11
+ ### Changed
12
+ - Updated package dependencies. [#32166]
13
+
14
+ ## 0.29.6 - 2023-07-25
15
+ ### Changed
16
+ - Updated package dependencies. [#31999]
17
+
18
+ ## 0.29.5 - 2023-07-18
19
+ ### Fixed
20
+ - Minor internal updates. [#31684]
21
+
22
+ ## 0.29.4 - 2023-07-17
23
+ ### Changed
24
+ - Updated package dependencies. [#31872]
25
+
26
+ ### Fixed
27
+ - Reset connection errors upon successful Restore request. [#31618]
28
+
29
+ ## 0.29.3 - 2023-07-11
30
+ ### Changed
31
+ - Updated package dependencies. [#31785]
32
+
33
+ ## 0.29.2 - 2023-07-05
34
+ ### Changed
35
+ - Updated package dependencies. [#31659]
36
+
37
+ ## 0.29.1 - 2023-06-21
38
+ ### Changed
39
+ - Updated package dependencies. [#31468]
40
+
41
+ ## 0.29.0 - 2023-06-15
42
+ ### Changed
43
+ - Connection: always display connection button on connection screen. [#31196]
44
+
45
+ ## 0.28.0 - 2023-06-06
46
+ ### Changed
47
+ - Update connection module to have an RNA option that updates the design [#31201]
48
+ - Updated package dependencies. [#31129]
49
+
50
+ ## 0.27.1 - 2023-05-29
51
+ ### Added
52
+ - Add logo prop to `ConnectScreen` and `ConnectScreenVisual` so we could use produucts logos similar to `ConnectScreenRequiredPlan` component. [#30886]
53
+
54
+ ## 0.27.0 - 2023-05-22
55
+ ### Added
56
+ - Offline Mode handling. [#30570]
57
+
58
+ ## 0.26.6 - 2023-05-02
59
+ ### Changed
60
+ - Updated package dependencies.
61
+
62
+ ### Fixed
63
+ - Bring back accidentally removed auto-trigger for connection screen. [#30373]
64
+
65
+ ## 0.26.5 - 2023-04-25
66
+ ### Changed
67
+ - Updated package dependencies. [#30015]
68
+
69
+ ## 0.26.4 - 2023-04-17
70
+ ### Changed
71
+ - Updated package dependencies. [#30019]
72
+
73
+ ## 0.26.3 - 2023-04-04
74
+ ### Changed
75
+ - Updated package dependencies. [#29854]
76
+
77
+ ## 0.26.2 - 2023-03-29
78
+ ### Changed
79
+ - Minor internal updates.
80
+
81
+ ## 0.26.1 - 2023-03-28
82
+ ### Changed
83
+ - Minor internal updates.
84
+
85
+ ## 0.26.0 - 2023-03-27
86
+ ### Added
87
+ - Clarified when license activation fails that a user connection is required, added a link to complete the connection, and added functionality to redirect back to license activation when the connection is done. [#29443]
88
+
89
+ ## 0.25.5 - 2023-03-23
90
+ ### Changed
91
+ - Updated package dependencies.
92
+
93
+ ## 0.25.4 - 2023-03-20
94
+
95
+ - Minor internal updates.
96
+
97
+ ## 0.25.3 - 2023-03-08
98
+ ### Changed
99
+ - Updated package dependencies. [#29216]
100
+
101
+ ## 0.25.2 - 2023-02-28
102
+ ### Fixed
103
+ - Revise Jetpack connection agreement text to comply with our User Agreement [#28403]
104
+ - Update React peer dependencies to match updated dev dependencies. [#28924]
105
+
106
+ ## 0.25.1 - 2023-02-20
107
+ ### Fixed
108
+ - Add External link icon to links at the bottom of the disconnect modal. [#28922]
109
+
110
+ ## 0.25.0 - 2023-02-15
111
+ ### Added
112
+ - Export ConnectScreenLayout component [#28770]
113
+
114
+ ### Changed
115
+ - Update to React 18. [#28710]
116
+
117
+ ## 0.24.9 - 2023-02-08
118
+ ### Changed
119
+ - Updated package dependencies. [#28682, #28700]
120
+
121
+ ## 0.24.8 - 2023-01-26
122
+ ### Changed
123
+ - Use `flex-start` instead of `start` for better browser compatibility. [#28530]
124
+
125
+ ## 0.24.7 - 2023-01-25
126
+ ### Changed
127
+ - Minor internal updates.
128
+
129
+ ## 0.24.6 - 2023-01-18
130
+ ### Fixed
131
+ - Clean up JavaScript eslint issues. [#28441]
132
+
133
+ ## 0.24.5 - 2023-01-11
134
+ ### Changed
135
+ - Updated package dependencies.
136
+
137
+ ### Fixed
138
+ - Connection: Metro JS is unable to build the component SCSS files. Adding a native index file to only export the modules required for the mobile editor build. [#28154]
139
+
140
+ ## 0.24.4 - 2023-01-02
141
+ ### Fixed
142
+ - Connection: Fix box-sizing layout issue on Manage Connection modal [#28101]
143
+
144
+ ## 0.24.3 - 2022-12-27
145
+ ### Fixed
146
+ - Avoid warnings when disconnecting a site from WordPress.com. [#28003]
147
+
148
+ ## 0.24.2 - 2022-12-19
149
+ ### Added
150
+ - Allow passing the custom logo and icon to connection screen [#27802]
151
+
152
+ ### Changed
153
+ - Updated package dependencies. [#27916]
154
+
155
+ ## 0.24.1 - 2022-12-12
156
+ ### Changed
157
+ - Updated package dependencies. [#27888]
158
+
159
+ ## 0.24.0 - 2022-12-05
160
+ ### Changed
161
+ - Improve design of the connection error notice. [#27340]
162
+
163
+ ## 0.23.0 - 2022-12-02
164
+ ### Added
165
+ - Connection: hide the "Manage Connection" modal on "Escape" press. [#27643]
166
+
167
+ ### Changed
168
+ - Updated package dependencies. [#27697]
169
+
170
+ ## 0.22.11 - 2022-11-28
171
+ ### Changed
172
+ - My Jetpack: move connection status card out of connection package. [#26967]
173
+ - Updated package dependencies. [#27576]
174
+
175
+ ## 0.22.10 - 2022-11-22
176
+ ### Added
177
+ - Add Manage Connection dialog to My Jetpack [#27476]
178
+
179
+ ### Changed
180
+ - Updated package dependencies. [#27043]
181
+
182
+ ## 0.22.9 - 2022-11-17
183
+ ### Changed
184
+ - Updated package dependencies. [#26736]
185
+
186
+ ## 0.22.8 - 2022-11-10
187
+ ### Changed
188
+ - Updated package dependencies. [#27319]
189
+
190
+ ## 0.22.7 - 2022-11-08
191
+ ### Changed
192
+ - Updated package dependencies. [#27289]
193
+
194
+ ## 0.22.6 - 2022-11-01
195
+ ### Changed
196
+ - Updated package dependencies. [#27196]
197
+
198
+ ## 0.22.5 - 2022-10-25
199
+ ### Added
200
+ - Connection: add getWpcomUser() and getBlogId() selectors. [#26978]
201
+
202
+ ## 0.22.4 - 2022-10-19
203
+ ### Changed
204
+ - Updated package dependencies. [#26883]
205
+
206
+ ## 0.22.3 - 2022-10-17
207
+ ### Changed
208
+ - Updated package dependencies. [#26851]
209
+
210
+ ## 0.22.2 - 2022-10-13
211
+ ### Changed
212
+ - Updated package dependencies. [#26790]
213
+
214
+ ## 0.22.1 - 2022-10-11
215
+ ### Changed
216
+ - Updated package dependencies.
217
+
218
+ ## 0.22.0 - 2022-10-05
219
+ ### Added
220
+ - Trigger restore connection flow. [#26489]
221
+
222
+ ### Changed
223
+ - Updated package dependencies. [#26457]
224
+
225
+ ## 0.21.0 - 2022-09-27
226
+ ### Added
227
+ - Added connection hook useConnectionErrorNotice to more-easily integrate the ConnectionErrorNotice component with minimal processing logic at the point of integration. [#26400]
228
+
229
+ ### Changed
230
+ - Updated package dependencies.
231
+ - Updated the ConnectionErrorNotice react component to use a required message property. [#26305]
232
+
233
+ ### Removed
234
+ - Removed connection-ui package dependency [#26381]
235
+
236
+ ### Fixed
237
+ - Disconnect Dialog: Fixed the prop types to avoid warnings from React [#26340]
238
+
239
+ ## 0.20.0 - 2022-09-20
240
+ ### Added
241
+ - Added the ConnectionErrorNotice React component. [#26259]
242
+ - Add Restore Connection functionality extracted from Jetpack. [#26034]
243
+
244
+ ### Changed
245
+ - Updated package dependencies. [#26081]
246
+
247
+ ## 0.19.0 - 2022-09-08
248
+ ### Added
249
+ - Add React variables as part of the project to have consistent connection errors across monorepo projects. [#25934]
250
+
251
+ ### Changed
252
+ - Updated package dependencies.
253
+
254
+ ## 0.18.12 - 2022-08-25
255
+ ### Changed
256
+ - Updated package dependencies. [#25814]
257
+
258
+ ## 0.18.11 - 2022-08-23
259
+ ### Changed
260
+ - Updated package dependencies. [#25338, #25339, #25377, #25762, #25764]
261
+
262
+ ## 0.18.10 - 2022-07-26
263
+ ### Changed
264
+ - Updated package dependencies. [#25147]
265
+
266
+ ## 0.18.9 - 2022-07-12
267
+ ### Changed
268
+ - Updated package dependencies. [#25048, #25055]
269
+
270
+ ## 0.18.8 - 2022-07-06
271
+ ### Changed
272
+ - Updated package dependencies. [#24923]
273
+
274
+ ## 0.18.7 - 2022-06-28
275
+ ### Fixed
276
+ - Fix include loop between state/store and state/controls + state/resolvers. [#24777]
277
+
278
+ ## 0.18.6 - 2022-06-21
279
+ ### Added
280
+ - JS Connection: return a Promise when registering site [#24238]
281
+
282
+ ## 0.18.5 - 2022-06-14
283
+ ### Changed
284
+ - Updated package dependencies. [#24722]
285
+
286
+ ## 0.18.4 - 2022-06-08
287
+ ### Changed
288
+ - Reorder JS imports for `import/order` eslint rule. [#24601]
289
+ - Updated package dependencies. [#24510]
290
+
291
+ ## 0.18.3 - 2022-05-30
292
+ ### Added
293
+ - Add option to use the checkout workflow from the ConnectionScreenRequirePlan component
294
+
295
+ ### Changed
296
+ - Updated package dependencies
297
+
298
+ ## 0.18.2 - 2022-05-24
299
+ ### Changed
300
+ - Updated package dependencies. [#24449]
301
+
302
+ ## 0.18.1 - 2022-05-18
303
+ ### Changed
304
+ - Updated package dependencies. [#23795]
305
+
306
+ ## 0.18.0 - 2022-05-10
307
+ ### Changed
308
+ - Do not hard disconnect Jetpack on deactivation [#24272]
309
+ - Updated package dependencies. [#24204]
310
+ - Updated references to old licensing activation UI to licensing activation UI in My Jetpack [#24189]
311
+ - Update tests for updated `@testing-library/user-event`. [#24276]
312
+
313
+ ## 0.17.12 - 2022-05-04
314
+ ### Added
315
+ - Add missing JavaScript dependencies. [#24096]
316
+ - JS Connection: introduce useProductCheckoutWorkflow() custom hook [#24122]
317
+
318
+ ### Changed
319
+ - JS Connection: use connection global state as a fallback to be used by the useProductCheckoutWorkflow() custom hook [#24137]
320
+ - Remove use of `pnpx` in preparation for pnpm 7.0. [#24210]
321
+ - Updated package dependencies [#24198]
322
+
323
+ ### Fixed
324
+ - JS Connection: fix builinfg the product checkout URL in useProductCheckoutWorkflow() custom hook [#24191]
325
+
326
+ ## 0.17.11 - 2022-05-03
327
+ ### Removed
328
+ - Connection: Allowing hard disconnection on deactivation.
329
+
330
+ ## 0.17.10 - 2022-04-26
331
+ ### Changed
332
+ - JS Connection: add default connection arguments for the useConnection() hook
333
+ - Updated package dependencies.
334
+
335
+ ### Fixed
336
+ - Disconnect Modal: Fix react warning
337
+
338
+ ## 0.17.9 - 2022-04-19
339
+ ### Added
340
+ - Add connected plugins list to the initial state and add action to update it when needed
341
+ - Allow secondary users to connect from My Jetpack
342
+
343
+ ### Changed
344
+ - Do not hard disconnect Jetpack on deactivation
345
+
346
+ ### Fixed
347
+ - Avoid Warning in React PropTypes
348
+ - do not display warning for secondary users if connection has an owner
349
+
350
+ ## 0.17.8 - 2022-04-12
351
+ ### Changed
352
+ - Updated package dependencies.
353
+
354
+ ## 0.17.7 - 2022-04-05
355
+ ### Added
356
+ - Add skipUserConnection option to connectScreen component
357
+
358
+ ### Changed
359
+ - Updated package dependencies.
360
+
361
+ ## 0.17.6 - 2022-03-31
362
+ ### Changed
363
+ - My Jetpack: tweak connection card styles and wording
364
+
365
+ ## 0.17.5 - 2022-03-29
366
+ ### Added
367
+ - Connection: Use heading components to render status card cmp
368
+
369
+ ### Changed
370
+ - Updated package dependencies.
371
+
372
+ ### Fixed
373
+ - Fixed minor react warnings
374
+
375
+ ## 0.17.4 - 2022-03-23
376
+ ### Changed
377
+ - Updated package dependencies
378
+
379
+ ## 0.17.3 - 2022-03-15
380
+
381
+ ## 0.17.2 - 2022-03-09
382
+ ### Changed
383
+ - Updated package dependencies.
384
+
385
+ ## 0.17.1 - 2022-03-08
386
+ ### Added
387
+ - Connection: Add footer prop for ConnectScreen
388
+
389
+ ### Changed
390
+ - Components: update attributes used within the Button component to match recent deprecations and changes.
391
+
392
+ ### Fixed
393
+ - Updated link-button label from "Log In" to "Log In to get started"
394
+
395
+ ## 0.17.0 - 2022-03-02
396
+ ### Added
397
+ - Connection: Adds requiresUserConnection prop and makes error message show only when hasConnectedOwner and requiresUserConnection are both true.
398
+
399
+ ### Changed
400
+ - Moved site benefits request out of PHP to React, and guard against no connected plugins.
401
+ - Updated package dependencies.
402
+
403
+ ## 0.16.1 - 2022-02-25
404
+ ### Fixed
405
+ - Fix broken Jetpack Partner Coupon redeem flow for sites without a user connection
406
+
407
+ ## 0.16.0 - 2022-02-22
408
+ ### Changed
409
+ - Bump package version.
410
+ - Connection: Update ConnectionStatusCard to match figma
411
+ - Disconnect dialog changes to cope with asynchronous data loading
412
+ - Updated package dependencies.
413
+
414
+ ### Fixed
415
+ - Connection: Fix ConnectionStatusCard prop
416
+
417
+ ## 0.15.1 - 2022-02-09
418
+ ### Added
419
+ - Connection: Expose hasConnectedOwner in useConnection hook
420
+ - Re organize components stories by project/name
421
+
422
+ ### Changed
423
+ - Updated package dependencies
424
+
425
+ ## 0.15.0 - 2022-02-02
426
+ ### Added
427
+ - Added user click tracking to disconnect dialog modal.
428
+
429
+ ### Changed
430
+ - Updated package dependencies.
431
+
432
+ ### Fixed
433
+ - Fix access to display_name property in connection status card.
434
+
435
+ ## 0.14.0 - 2022-01-25
436
+ ### Changed
437
+ - Enforces the usage of initial state
438
+ - Update h3 style for connection status card
439
+
440
+ ### Fixed
441
+ - Fix Wrong spelling of propTypes in ConnectedPlugins
442
+ - Make redirectUri property not be required in ConnectionStatusCard
443
+
444
+ ## 0.13.2 - 2022-01-18
445
+ ### Changed
446
+ - General: update required node version to v16.13.2
447
+
448
+ ### Fixed
449
+ - fixed babel/preset-react dependency
450
+
451
+ ## 0.13.1 - 2022-01-17
452
+ ### Changed
453
+ - Updated package dependencies.
454
+
455
+ ### Fixed
456
+ - Fixed styling on Required Plan button and Login link.
457
+
458
+ ## 0.13.0 - 2022-01-13
459
+ ### Changed
460
+ - Added user data to initial state
461
+
462
+ ## 0.12.1 - 2022-01-11
463
+ ### Removed
464
+ - Remove use of deprecated `~` in sass-loader imports.
465
+
466
+ ## 0.12.0 - 2022-01-04
467
+ ### Changed
468
+ - Changed min-width of log in link
469
+ - Connection: Extract connection logic for custom hook
470
+ - Drop isRegistered and isUserConnected params from ConnectionStatusCard component
471
+ - Updated package dependencies.
472
+
473
+ ## 0.11.3 - 2021-12-14
474
+ ### Fixed
475
+ - Fix JavaScript i18n strings.
476
+
477
+ ## 0.11.2 - 2021-12-07
478
+ ### Changed
479
+ - Updated package dependencies.
480
+
481
+ ## 0.11.1 - 2021-12-06
482
+ ### Fixed
483
+ - Style updates to improve disconnect flow appearance when Gutenberg plugin is active
484
+
485
+ ## 0.11.0 - 2021-11-30
486
+ ### Added
487
+ - Added a ContextualizedConnection component to display a connection screen that can be used to give context to the user why Jetpack would benefit them.
488
+ - Fetches the initial state from the global variable provided by the connection package
489
+
490
+ ### Changed
491
+ - Extend functionality of the disconnect modal to allow it to be used in more contexts
492
+ - moved the registerSite logic into the store
493
+ - Updated package dependencies.
494
+
495
+ ### Fixed
496
+ - ConnectScreen: Fix custom grid and background color.
497
+ - ConnectScreen: make button full width on small viewports
498
+
499
+ ## 0.10.2 - 2021-11-23
500
+ ### Changed
501
+ - Import RNA styles from base styles package.
502
+ - Updated package dependencies
503
+
504
+ ### Fixed
505
+ - revert button width change in favor of the fix in the visual element
506
+
507
+ ## 0.10.1 - 2021-11-17
508
+ ### Changed
509
+ - Updated package dependencies.
510
+
511
+ ## 0.10.0 - 2021-11-16
512
+ ### Added
513
+ - Remove the withConnectionStatus HOC, export the store.
514
+
515
+ ### Changed
516
+ - Updated package dependencies
517
+
518
+ ### Fixed
519
+ - Button styles: ensure the button can accomodate longer text.
520
+
521
+ ## 0.9.1 - 2021-11-09
522
+ ### Changed
523
+ - Updated package dependencies.
524
+
525
+ ## 0.9.0 - 2021-11-02
526
+ ### Added
527
+ - Add ConnectScreenRequiredPlan component.
528
+
529
+ ### Changed
530
+ - Updated package dependencies.
531
+
532
+ ## 0.8.0 - 2021-10-26
533
+ ### Changed
534
+ - ConnectButton now uses ActionButton component
535
+ - Package version bump.
536
+ - Updated package dependencies
537
+
538
+ ## 0.7.2 - 2021-10-19
539
+ ### Changed
540
+ - Bump the RNA API version.
541
+
542
+ ## 0.7.1 - 2021-10-13
543
+ ### Changed
544
+ - Updated package dependencies.
545
+
546
+ ## 0.7.0 - 2021-10-12
547
+ ### Changed
548
+ - Bump the RNA API version.
549
+
550
+ ### Removed
551
+ - Connection Screen component no longer pulls conneciton status from the API, it only relies on the properties. Use WithConnectionStatus HOC instead.
552
+
553
+ ## 0.6.1 - 2021-09-28
554
+ ### Added
555
+ - Set 'exports' in package.json.
556
+
557
+ ### Changed
558
+ - Allow Node ^14.17.6 to be used in this project. This shouldn't change the behavior of the code itself.
559
+ - Updated package dependencies.
560
+
561
+ ### Fixed
562
+ - Display an error message on site registration failure.
563
+
564
+ ## 0.6.0 - 2021-08-31
565
+ ### Added
566
+ - Add the spinner to the connection button.
567
+
568
+ ### Changed
569
+ - Bump version number
570
+ - Extract connection status fetching into a higher order component.
571
+ - Make redirect URI optional for connection screen and button components.
572
+ - Updated package dependencies.
573
+ - Use Node 16.7.0 in tooling.
574
+
575
+ ## 0.5.1 - 2021-08-12
576
+ ### Changed
577
+ - Move API calls to jetpack-api package
578
+ - Updated package dependencies
579
+
580
+ ### Fixed
581
+ - Fix minor styling issues on the connection screen.
582
+
583
+ ## 0.5.0 - 2021-07-27
584
+ ### Added
585
+ - Add Connection Status Card component.
586
+ - Add DisconnectDialog RNA component.
587
+ - Added the connection screen components, moved connection status callback to properties.
588
+
589
+ ### Changed
590
+ - Mark assetBaseUrl as optional for ImageSlider.
591
+
592
+ ## 0.4.0 - 2021-06-29
593
+ ### Changed
594
+ - Remove In-Place Connection flow from the package.
595
+ - Rename 'Main' component into 'ConnectButton'
596
+ - Update node version requirement to 14.16.1
597
+
598
+ ## 0.3.0 - 2021-06-15
599
+ ### Added
600
+ - Added dev dependency on react (in addition to existing peer dep) for tests to run.
601
+ - Added missing dependencies.
602
+
603
+ ### Changed
604
+ - Getting rid of the 'authorizeUrl' parameter, retrieving the value via REST API, and extrating the user connection functionality into a separate 'ConnectUser' component.
605
+
606
+ ## 0.2.0 - 2021-05-25
607
+ ### Added
608
+ - Add connection components.
609
+
610
+ ### Changed
611
+ - Updated package dependencies.
612
+
613
+ ## 0.1.0 - 2021-04-27
614
+ ### Added
615
+ - `InPlaceConnection` component added.
616
+
617
+ ## 0.2.0 - 2021-05-18
618
+
619
+ - `Main` and `ConnectUser` components added.
620
+ - `JetpackRestApiClient` API client added.
621
+
622
+ [0.29.8]: https://github.com/Automattic/jetpack-connection-js/compare/v0.29.7...v0.29.8