@automattic/jetpack-connection 0.33.13 → 0.33.15

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
@@ -2,6 +2,14 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
4
 
5
+ ## [0.33.15] - 2024-06-11
6
+ ### Changed
7
+ - Updated package dependencies. [#37779]
8
+
9
+ ## [0.33.14] - 2024-06-10
10
+ ### Changed
11
+ - Change codebase to use clsx instead of classnames. [#37708]
12
+
5
13
  ## [0.33.13] - 2024-06-05
6
14
  ### Changed
7
15
  - Updated package dependencies. [#37669]
@@ -773,6 +781,8 @@
773
781
  - `Main` and `ConnectUser` components added.
774
782
  - `JetpackRestApiClient` API client added.
775
783
 
784
+ [0.33.15]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.14...v0.33.15
785
+ [0.33.14]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.13...v0.33.14
776
786
  [0.33.13]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.12...v0.33.13
777
787
  [0.33.12]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.11...v0.33.12
778
788
  [0.33.11]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.10...v0.33.11
@@ -1,5 +1,5 @@
1
1
  import { JetpackLogo } from '@automattic/jetpack-components';
2
- import classNames from 'classnames';
2
+ import clsx from 'clsx';
3
3
  import React from 'react';
4
4
  import ImageSlider from './image-slider';
5
5
  import type { Props as ConnectScreenProps } from '../basic';
@@ -35,7 +35,7 @@ const ConnectScreenLayout: React.FC< Props > = ( {
35
35
 
36
36
  return (
37
37
  <div
38
- className={ classNames(
38
+ className={ clsx(
39
39
  'jp-connection__connect-screen-layout',
40
40
  showImageSlider ? 'jp-connection__connect-screen-layout__two-columns' : '',
41
41
  className ? ' ' + className : ''
@@ -6,7 +6,7 @@ import {
6
6
  } from '@automattic/jetpack-components';
7
7
  import { createInterpolateElement } from '@wordpress/element';
8
8
  import { __ } from '@wordpress/i18n';
9
- import classNames from 'classnames';
9
+ import clsx from 'clsx';
10
10
  import debugFactory from 'debug';
11
11
  import PropTypes from 'prop-types';
12
12
  import React from 'react';
@@ -70,7 +70,7 @@ const ConnectScreenRequiredPlanVisual = props => {
70
70
  return (
71
71
  <ConnectScreenLayout
72
72
  title={ title }
73
- className={ classNames(
73
+ className={ clsx(
74
74
  'jp-connection__connect-screen-required-plan',
75
75
  isLoading ? 'jp-connection__connect-screen-required-plan__loading' : '',
76
76
  rna ? 'rna' : ''
@@ -6,7 +6,7 @@ import { ExternalLink, Modal } from '@wordpress/components';
6
6
  import { createInterpolateElement } from '@wordpress/element';
7
7
  import { __ } from '@wordpress/i18n';
8
8
  import { Icon, chevronRight, external } from '@wordpress/icons';
9
- import classNames from 'classnames';
9
+ import clsx from 'clsx';
10
10
  import PropTypes from 'prop-types';
11
11
  import React, { useCallback, useState } from 'react';
12
12
  /**
@@ -123,10 +123,7 @@ const ManageConnectionActionCard = ( { title, onClick = () => null, link = '#',
123
123
  <div className="jp-connection__manage-dialog__action-card__card-content">
124
124
  <a
125
125
  href={ link }
126
- className={ classNames(
127
- 'jp-connection__manage-dialog__action-card__card-headline',
128
- action
129
- ) }
126
+ className={ clsx( 'jp-connection__manage-dialog__action-card__card-headline', action ) }
130
127
  onClick={ onClick }
131
128
  >
132
129
  { title }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-connection",
3
- "version": "0.33.13",
3
+ "version": "0.33.15",
4
4
  "description": "Jetpack Connection Component",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
6
6
  "bugs": {
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@automattic/jetpack-analytics": "^0.1.29",
18
18
  "@automattic/jetpack-api": "^0.17.8",
19
- "@automattic/jetpack-components": "^0.53.7",
19
+ "@automattic/jetpack-components": "^0.53.9",
20
20
  "@automattic/jetpack-config": "^0.1.24",
21
21
  "@wordpress/base-styles": "5.0.0",
22
22
  "@wordpress/browserslist-config": "6.0.0",
@@ -25,7 +25,7 @@
25
25
  "@wordpress/element": "6.0.0",
26
26
  "@wordpress/i18n": "5.0.0",
27
27
  "@wordpress/icons": "10.0.0",
28
- "classnames": "2.3.2",
28
+ "clsx": "2.1.1",
29
29
  "debug": "4.3.4",
30
30
  "prop-types": "^15.7.2"
31
31
  },
@@ -33,7 +33,7 @@
33
33
  "@automattic/jetpack-base-styles": "^0.6.26",
34
34
  "@babel/core": "7.24.0",
35
35
  "@babel/preset-react": "7.23.3",
36
- "@storybook/addon-actions": "8.0.9",
36
+ "@storybook/addon-actions": "8.1.6",
37
37
  "@testing-library/dom": "10.1.0",
38
38
  "@testing-library/react": "15.0.7",
39
39
  "@testing-library/user-event": "14.5.2",