Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8a59dd5
Update wordpress monorepo
renovate-bot Jan 30, 2026
1034a7d
Charts: Fix TypeScript error in story by using spacing instead of gap…
manzoorwanijk Jan 30, 2026
9deea68
Components: Fix TypeScript errors with WordPress components type changes
manzoorwanijk Jan 30, 2026
bd7ef8f
Cast modal title to string in ThreatModal
manzoorwanijk Jan 30, 2026
eeb9bfd
Add label to threats status toggle group
manzoorwanijk Jan 30, 2026
dc5c164
Remove unused component
manzoorwanijk Jan 30, 2026
3bfb67e
Fix type errors related to ExternalLink missing children
manzoorwanijk Jan 30, 2026
75402de
Fix icon type in forms actions
manzoorwanijk Jan 30, 2026
1079f6c
Fix the remaining TS errors in forms
manzoorwanijk Jan 30, 2026
6fedd38
NavigableMenu passes stopNavigationEvents by default
manzoorwanijk Jan 30, 2026
ec564c6
Use controlled value for Filename TextControl
manzoorwanijk Jan 30, 2026
e850ef2
Fix errors in my jetpack
manzoorwanijk Jan 30, 2026
0be60e5
Fix publicize errors except tab panel one to avoid conflicts with #46856
manzoorwanijk Jan 30, 2026
6de4694
Fix multiple errors in jetpack blocks
manzoorwanijk Jan 30, 2026
c906319
Suppress errors in the remaining publicize components for now
manzoorwanijk Jan 30, 2026
cb91b51
Merge branch 'trunk' into renovate/wordpress-monorepo
manzoorwanijk Jan 30, 2026
5c0875a
Merge branch 'trunk' into renovate/wordpress-monorepo
manzoorwanijk Jan 30, 2026
6c76cdc
Fix lints in forms package.json
manzoorwanijk Jan 30, 2026
a70e1a0
Merge branch 'trunk' into renovate/wordpress-monorepo
manzoorwanijk Jan 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,415 changes: 2,677 additions & 2,738 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
28 changes: 14 additions & 14 deletions projects/js-packages/ai-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
"@types/jest": "30.0.0",
"@types/react": "18.3.26",
"@types/wordpress__block-editor": "11.5.17",
"@wordpress/api-fetch": "7.38.0",
"@wordpress/base-styles": "6.14.0",
"@wordpress/blob": "4.38.0",
"@wordpress/block-editor": "15.11.0",
"@wordpress/blocks": "15.11.0",
"@wordpress/components": "32.0.0",
"@wordpress/compose": "7.38.0",
"@wordpress/data": "10.38.0",
"@wordpress/editor": "14.38.0",
"@wordpress/element": "6.38.0",
"@wordpress/i18n": "6.11.0",
"@wordpress/icons": "11.5.0",
"@wordpress/primitives": "4.38.0",
"@wordpress/url": "4.38.0",
"@wordpress/api-fetch": "7.39.0",
"@wordpress/base-styles": "6.15.0",
"@wordpress/blob": "4.39.0",
"@wordpress/block-editor": "15.12.0",
"@wordpress/blocks": "15.12.0",
"@wordpress/components": "32.1.0",
"@wordpress/compose": "7.39.0",
"@wordpress/data": "10.39.0",
"@wordpress/editor": "14.39.0",
"@wordpress/element": "6.39.0",
"@wordpress/i18n": "6.12.0",
"@wordpress/icons": "11.6.0",
"@wordpress/primitives": "4.39.0",
"@wordpress/url": "4.39.0",
"clsx": "2.1.1",
"debug": "4.4.3",
"markdown-it": "14.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export function FairUsageLimitMessage(): ReactElement {
);
const element = createInterpolateElement( message, {
link: (
<ExternalLink href="https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy" />
<ExternalLink
href="https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy"
children={ null }
/>
),
} );

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@automattic/jetpack-config": "workspace:*",
"@wordpress/url": "4.38.0"
"@wordpress/url": "4.39.0"
},
"devDependencies": {
"jest": "30.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/base-styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"build-production-js": "echo 'Not implemented.'"
},
"devDependencies": {
"@wordpress/base-styles": "6.14.0"
"@wordpress/base-styles": "6.15.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/boost-score-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"watch": "pnpm run build && pnpm webpack watch"
},
"dependencies": {
"@wordpress/i18n": "6.11.0",
"@wordpress/i18n": "6.12.0",
"zod": "3.25.76"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
4 changes: 2 additions & 2 deletions projects/js-packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@
"@types/react": "18.3.26",
"@types/react-dom": "18.3.7",
"@visx/glyph": "3.12.0",
"@wordpress/components": "32.0.0",
"@wordpress/element": "6.38.0",
"@wordpress/components": "32.1.0",
"@wordpress/element": "6.39.0",
"babel-jest": "30.2.0",
"esbuild": "0.25.9",
"esbuild-sass-plugin": "^3.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const CustomPieLegend = ( {

return (
<Fragment key={ index }>
<HStack direction="row" justify="flex-start" gap={ 2 }>
<HStack direction="row" justify="flex-start" spacing={ 2 }>
<div
style={ {
width: '8px',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
31 changes: 16 additions & 15 deletions projects/js-packages/components/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import clsx from 'clsx';
import { forwardRef } from 'react';
import styles from './style.module.scss';
import type { ButtonProps } from './types.ts';
import type { ReactNode } from 'react';

/**
* Button component
Expand Down Expand Up @@ -41,8 +40,6 @@ const Button = forwardRef< HTMLInputElement, ButtonProps >( ( props, ref ) => {
[ styles[ 'is-icon-button' ] ]: Boolean( icon ) && ! children,
} );

componentProps.ref = ref;

const externalIconSize = size === 'normal' ? 20 : 16;
const externalIcon = isExternalLink && (
<>
Expand All @@ -64,19 +61,23 @@ const Button = forwardRef< HTMLInputElement, ButtonProps >( ( props, ref ) => {
// Tooltip should not considered as a child
children?.[ 0 ]?.props?.className !== 'components-tooltip';

// Cast to work around WPButton's strict union type that can't be satisfied when spreading props
const wpButtonProps = {
ref,
target: externalTarget,
variant,
className: clsx( className, { 'has-text': !! icon && hasChildren } ),
icon: ! isExternalLink ? icon : undefined,
iconSize,
disabled,
'aria-disabled': disabled,
isDestructive,
text,
...componentProps,
} as React.ComponentProps< typeof WPButton >;

return (
<WPButton
target={ externalTarget }
variant={ variant }
className={ clsx( className, { 'has-text': !! icon && hasChildren } ) }
icon={ ! isExternalLink ? icon : undefined }
iconSize={ iconSize }
disabled={ disabled }
aria-disabled={ disabled }
isDestructive={ isDestructive }
text={ text }
{ ...componentProps }
>
<WPButton { ...wpButtonProps }>
{ isLoading && <Spinner /> }
<span>{ children }</span>
{ externalIcon }
Expand Down
14 changes: 11 additions & 3 deletions projects/js-packages/components/components/button/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button } from '@wordpress/components';
import type { ComponentProps, ForwardedRef, ReactNode } from 'react';
import type { ComponentProps, ForwardedRef, MouseEventHandler, ReactNode } from 'react';

type JetpackButtonBaseProps = {
className?: string;
Expand All @@ -14,8 +14,16 @@ type JetpackButtonBaseProps = {
weight?: 'bold' | 'regular';
fullWidth?: boolean;
ref?: ForwardedRef< unknown >;
href?: string;
target?: string;
onClick?: MouseEventHandler< HTMLButtonElement > | MouseEventHandler< HTMLAnchorElement >;
};

type WPButtonProps = Omit< ComponentProps< typeof Button >, 'size' | 'variant' >;
// Extract base props from WordPress Button, omitting the union-discriminated properties
// that cause type conflicts (size, variant, disabled, href)
type WPButtonBaseProps = Omit<
ComponentProps< typeof Button >,
'size' | 'variant' | 'disabled' | 'href' | 'target' | 'onClick'
>;

export type ButtonProps = JetpackButtonBaseProps & WPButtonProps;
export type ButtonProps = JetpackButtonBaseProps & WPButtonBaseProps;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { __ } from '@wordpress/i18n';
import Button from '../button/index.tsx';
import { ClipboardIcon, CheckmarkIcon } from '../icons/index.tsx';
import { CopyToClipboardProps } from './types.ts';
import type { FC, ReactNode } from 'react';
import type { FC } from 'react';

export const CopyToClipboard: FC< CopyToClipboardProps > = ( {
buttonStyle = 'icon',
Expand Down Expand Up @@ -40,8 +40,8 @@ export const CopyToClipboard: FC< CopyToClipboardProps > = ( {
};
}, [] );

let icon: ReactNode = null;
let label: ReactNode = null;
let icon: JSX.Element = null;
let label: string = null;

if ( 'text' !== buttonStyle ) {
icon = hasCopied ? <CheckmarkIcon /> : <ClipboardIcon />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ const IconTooltip: FC< IconTooltipProps > = ( {
resize: false,
flip: false,
offset, // The distance (in px) between the anchor and the popover.
focusOnMount: 'container' as const,
focusOnMount: 'firstElement',
onClose: hideTooltip,
className: 'icon-tooltip-container',
inline,
shift,
};
} satisfies Omit< React.ComponentProps< typeof Popover >, 'children' >;

const isAnchorWrapper = popoverAnchorStyle === 'wrapper';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import {
* This uses the experimental NumberControl from the block
* editor where available, otherwise it falls back to a
* standard TextControl, limited to numbers.
* @type {import('react').ComponentType<any>}
*
* @param {any} props - the NumberControl component props
* @return {object} - NumberControl component
* @return {import('react').ReactNode} - NumberControl component
*/
const NumberControl =
ExperimentalNumberControl ||
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* External dependencies
*/
import type { Button } from '@wordpress/components';
import type { ComponentProps, ReactNode } from 'react';
import type { ReactNode } from 'react';

export type PricingCardProps = {
/**
Expand Down Expand Up @@ -36,7 +35,7 @@ export type PricingCardProps = {
/**
* The CTA callback to be called on click.
*/
onCtaClick?: ComponentProps< typeof Button >[ 'onClick' ];
onCtaClick?: React.MouseEventHandler< HTMLButtonElement >;
/**
* Optional informative text.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ const SplitButton: FC< SplitButtonProps > = ( {
label,
...buttonProps
} ) => {
// Cast to work around WPButton's strict union type
const wpButtonProps = {
variant,
className: styles.button,
...buttonProps,
} as React.ComponentProps< typeof Button >;

return (
<Flex className={ styles[ 'split-button' ] }>
<div role="group" className="components-button-group">
<Button variant={ variant } { ...buttonProps } className={ styles.button } />
<Button { ...wpButtonProps } />
<DropdownMenu
toggleProps={ { variant, className: styles.button, ...toggleProps } }
popoverProps={ { noArrow: false, ...popoverProps } }
Expand Down
18 changes: 9 additions & 9 deletions projects/js-packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
"@automattic/jetpack-script-data": "workspace:*",
"@automattic/number-formatters": "workspace:*",
"@babel/runtime": "^7",
"@wordpress/browserslist-config": "6.38.0",
"@wordpress/components": "32.0.0",
"@wordpress/compose": "7.38.0",
"@wordpress/data": "10.38.0",
"@wordpress/date": "5.38.0",
"@wordpress/element": "6.38.0",
"@wordpress/i18n": "6.11.0",
"@wordpress/icons": "11.5.0",
"@wordpress/notices": "5.38.0",
"@wordpress/browserslist-config": "6.39.0",
"@wordpress/components": "32.1.0",
"@wordpress/compose": "7.39.0",
"@wordpress/data": "10.39.0",
"@wordpress/date": "5.39.0",
"@wordpress/element": "6.39.0",
"@wordpress/i18n": "6.12.0",
"@wordpress/icons": "11.6.0",
"@wordpress/notices": "5.39.0",
"clsx": "2.1.1",
"prop-types": "^15.7.2",
"qrcode.react": "4.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
16 changes: 8 additions & 8 deletions projects/js-packages/connection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
"@automattic/jetpack-components": "workspace:*",
"@automattic/jetpack-config": "workspace:*",
"@automattic/jetpack-script-data": "workspace:*",
"@wordpress/base-styles": "6.14.0",
"@wordpress/browserslist-config": "6.38.0",
"@wordpress/components": "32.0.0",
"@wordpress/data": "10.38.0",
"@wordpress/element": "6.38.0",
"@wordpress/i18n": "6.11.0",
"@wordpress/icons": "11.5.0",
"@wordpress/url": "4.38.0",
"@wordpress/base-styles": "6.15.0",
"@wordpress/browserslist-config": "6.39.0",
"@wordpress/components": "32.1.0",
"@wordpress/data": "10.39.0",
"@wordpress/element": "6.39.0",
"@wordpress/i18n": "6.12.0",
"@wordpress/icons": "11.6.0",
"@wordpress/url": "4.39.0",
"clsx": "2.1.1",
"debug": "4.4.3",
"prop-types": "^15.7.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/eslint-config-target-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"semver": "^7.3.5"
},
"devDependencies": {
"@wordpress/browserslist-config": "6.38.0",
"@wordpress/browserslist-config": "6.39.0",
"eslint": "9.39.1",
"eslint-plugin-es-x": "9.2.0",
"globals": "16.5.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
4 changes: 2 additions & 2 deletions projects/js-packages/i18n-loader-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"debug": "^4.3.2"
},
"devDependencies": {
"@wordpress/dependency-extraction-webpack-plugin": "6.38.0",
"@wordpress/i18n": "6.11.0",
"@wordpress/dependency-extraction-webpack-plugin": "6.39.0",
"@wordpress/i18n": "6.12.0",
"jest": "30.2.0",
"webpack": "5.101.3",
"webpack-cli": "6.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update package dependencies.
14 changes: 7 additions & 7 deletions projects/js-packages/idc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@automattic/jetpack-api": "workspace:*",
"@automattic/jetpack-base-styles": "workspace:*",
"@automattic/jetpack-components": "workspace:*",
"@wordpress/base-styles": "6.14.0",
"@wordpress/components": "32.0.0",
"@wordpress/compose": "7.38.0",
"@wordpress/data": "10.38.0",
"@wordpress/element": "6.38.0",
"@wordpress/i18n": "6.11.0",
"@wordpress/url": "4.38.0",
"@wordpress/base-styles": "6.15.0",
"@wordpress/components": "32.1.0",
"@wordpress/compose": "7.39.0",
"@wordpress/data": "10.39.0",
"@wordpress/element": "6.39.0",
"@wordpress/i18n": "6.12.0",
"@wordpress/url": "4.39.0",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
Loading
Loading