@automattic/jetpack-components 1.1.9 → 1.1.11

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,17 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [1.1.11] - 2025-07-08
6
+ ### Changed
7
+ - Update package dependencies. [#44217]
8
+
9
+ ### Fixed
10
+ - Fix config to include all the TypeScript files for type checking. [#44177]
11
+
12
+ ## [1.1.10] - 2025-07-07
13
+ ### Changed
14
+ - Internal updates.
15
+
5
16
  ## [1.1.9] - 2025-07-03
6
17
  ### Changed
7
18
  - Update package dependencies. [#44151]
@@ -1458,6 +1469,8 @@
1458
1469
  ### Changed
1459
1470
  - Update node version requirement to 14.16.1
1460
1471
 
1472
+ [1.1.11]: https://github.com/Automattic/jetpack-components/compare/1.1.10...1.1.11
1473
+ [1.1.10]: https://github.com/Automattic/jetpack-components/compare/1.1.9...1.1.10
1461
1474
  [1.1.9]: https://github.com/Automattic/jetpack-components/compare/1.1.8...1.1.9
1462
1475
  [1.1.8]: https://github.com/Automattic/jetpack-components/compare/1.1.7...1.1.8
1463
1476
  [1.1.7]: https://github.com/Automattic/jetpack-components/compare/1.1.6...1.1.7
@@ -1,4 +1,4 @@
1
- import ReactDOM from 'react-dom/client';
1
+ import { createRoot } from 'react-dom/client';
2
2
  import { Tooltip } from "./tooltip.js";
3
3
  /**
4
4
  * Custom tooltips plugin for uPlot.
@@ -18,7 +18,7 @@ export function tooltipsPlugin(periods) {
18
18
  function init(u) {
19
19
  container.classList.add('jb-score-tooltips-container');
20
20
  if (!reactDom) {
21
- reactDom = ReactDOM.createRoot(reactRoot);
21
+ reactDom = createRoot(reactRoot);
22
22
  }
23
23
  reactRoot.classList.add('jb-score-tooltip-react-root');
24
24
  container.appendChild(reactRoot);
@@ -1,5 +1,5 @@
1
1
  import type { FC, ReactNode } from 'react';
2
- interface RadioControlProps {
2
+ export interface RadioControlProps {
3
3
  /** The current value. */
4
4
  selected: string;
5
5
  /** Custom class name to append to the component. */
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
- interface StatusProps {
2
+ export interface StatusProps {
3
3
  status?: 'active' | 'error' | 'inactive' | 'action' | 'initializing';
4
4
  label?: string;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import type { FC, ReactNode } from 'react';
2
- interface ToggleControlProps {
2
+ export interface ToggleControlProps {
3
3
  /** Whether or not the toggle is currently enabled. */
4
4
  checked?: boolean;
5
5
  /** Custom class name to append to the component. */
@@ -1,4 +1,4 @@
1
- import ReactDOM from 'react-dom/client';
1
+ import { createRoot } from 'react-dom/client';
2
2
  import uPlot from 'uplot';
3
3
  import { Period } from './index.tsx';
4
4
  import { Tooltip } from './tooltip.tsx';
@@ -22,7 +22,7 @@ export function tooltipsPlugin( periods: Period[] ) {
22
22
  function init( u: uPlot ) {
23
23
  container.classList.add( 'jb-score-tooltips-container' );
24
24
  if ( ! reactDom ) {
25
- reactDom = ReactDOM.createRoot( reactRoot );
25
+ reactDom = createRoot( reactRoot );
26
26
  }
27
27
  reactRoot.classList.add( 'jb-score-tooltip-react-root' );
28
28
 
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import styles from './styles.module.scss';
4
4
  import type { FC, ReactNode } from 'react';
5
5
 
6
- interface RadioControlProps {
6
+ export interface RadioControlProps {
7
7
  /** The current value. */
8
8
  selected: string;
9
9
 
@@ -4,7 +4,7 @@ import Text from '../text/index.tsx';
4
4
  import styles from './style.module.scss';
5
5
  import type { JSX } from 'react';
6
6
 
7
- interface StatusProps {
7
+ export interface StatusProps {
8
8
  status?: 'active' | 'error' | 'inactive' | 'action' | 'initializing';
9
9
  label?: string;
10
10
  className?: string;
@@ -4,7 +4,7 @@ import { useCallback } from 'react';
4
4
  import styles from './styles.module.scss';
5
5
  import type { FC, ReactNode } from 'react';
6
6
 
7
- interface ToggleControlProps {
7
+ export interface ToggleControlProps {
8
8
  /** Whether or not the toggle is currently enabled. */
9
9
  checked?: boolean;
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Jetpack Components Package",
5
5
  "author": "Automattic",
6
6
  "license": "GPL-2.0-or-later",
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@automattic/format-currency": "1.0.1",
18
- "@automattic/jetpack-api": "^1.0.4",
19
- "@automattic/jetpack-boost-score-api": "^1.0.5",
18
+ "@automattic/jetpack-api": "^1.0.5",
19
+ "@automattic/jetpack-boost-score-api": "^1.0.6",
20
20
  "@automattic/jetpack-script-data": "^0.4.4",
21
- "@automattic/number-formatters": "^1.0.7",
21
+ "@automattic/number-formatters": "^1.0.8",
22
22
  "@babel/runtime": "^7",
23
23
  "@wordpress/browserslist-config": "6.26.0",
24
24
  "@wordpress/components": "29.12.0",
@@ -41,19 +41,19 @@
41
41
  "@automattic/jetpack-base-styles": "^1.0.3",
42
42
  "@babel/core": "7.27.7",
43
43
  "@babel/preset-react": "7.27.1",
44
- "@jest/globals": "30.0.0",
44
+ "@jest/globals": "30.0.4",
45
45
  "@storybook/addon-actions": "8.6.7",
46
46
  "@storybook/blocks": "8.6.7",
47
47
  "@storybook/react": "8.6.7",
48
48
  "@testing-library/dom": "10.4.0",
49
- "@testing-library/react": "16.2.0",
49
+ "@testing-library/react": "16.3.0",
50
50
  "@testing-library/user-event": "14.6.1",
51
51
  "@types/jest": "30.0.0",
52
52
  "@types/react": "18.3.23",
53
53
  "@types/react-dom": "18.3.7",
54
54
  "@types/react-slider": "1.3.6",
55
- "jest": "30.0.0",
56
- "jest-environment-jsdom": "30.0.0",
55
+ "jest": "30.0.4",
56
+ "jest-environment-jsdom": "30.0.4",
57
57
  "react": "18.3.1",
58
58
  "react-dom": "18.3.1",
59
59
  "require-from-string": "2.0.2",
@@ -88,7 +88,7 @@
88
88
  "scripts": {
89
89
  "build": "pnpm run clean && pnpm run compile-ts",
90
90
  "clean": "rm -rf build/",
91
- "compile-ts": "tsc --pretty",
91
+ "compile-ts": "tsc --pretty --project tsconfig.build.json",
92
92
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
93
93
  "test-coverage": "pnpm run test --coverage",
94
94
  "typecheck": "tsc --noEmit"
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": [ "./index.ts", "./tools/jp-redirect/index.ts" ]
4
+ }