@automattic/jetpack-connection 0.33.13 → 0.33.14

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,10 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
4
 
5
+ ## [0.33.14] - 2024-06-10
6
+ ### Changed
7
+ - Change codebase to use clsx instead of classnames. [#37708]
8
+
5
9
  ## [0.33.13] - 2024-06-05
6
10
  ### Changed
7
11
  - Updated package dependencies. [#37669]
@@ -773,6 +777,7 @@
773
777
  - `Main` and `ConnectUser` components added.
774
778
  - `JetpackRestApiClient` API client added.
775
779
 
780
+ [0.33.14]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.13...v0.33.14
776
781
  [0.33.13]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.12...v0.33.13
777
782
  [0.33.12]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.11...v0.33.12
778
783
  [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.14",
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.8",
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
  },