diff --git a/.github/versions.sh b/.github/versions.sh index 3ed1d71ec4db1..0064576962d11 100644 --- a/.github/versions.sh +++ b/.github/versions.sh @@ -1,7 +1,7 @@ # Versions of tools to use in CI. PHP_VERSION=8.2 COMPOSER_VERSION=2.7.7 -NODE_VERSION=20.8.1 +NODE_VERSION=22.9.0 PNPM_VERSION=9.3.0 # Other useful version numbers. diff --git a/.nvmrc b/.nvmrc index 6569dfa4f323c..728f7de5c2da0 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.8.1 +22.9.0 diff --git a/.phan/stubs/wpcom-stubs.php b/.phan/stubs/wpcom-stubs.php index cbd51c2605c21..a2ebf26f7fcb8 100644 --- a/.phan/stubs/wpcom-stubs.php +++ b/.phan/stubs/wpcom-stubs.php @@ -4,7 +4,7 @@ * `bin/teamcity-builds/jetpack-stubs/stub-defs.php` and regenerate the stubs * by triggering the Jetpack Staging → Update WPCOM Stubs job in TeamCity. * - * Stubs automatically generated from WordPress.com commit 2ed424b4493f3450b67bb248706d6e29170e6042. + * Stubs automatically generated from WordPress.com commit 4fd96546151f08483e92c0807b89830093fc1aee. */ namespace { @@ -548,7 +548,7 @@ function is_automattic($blog_id = \null) { } /** - * @param int|null $blog_id + * @param int|string|null $blog_id * @return bool */ function wpcom_is_automattic_p2_site($blog_id = \null) @@ -716,7 +716,7 @@ function is_simple_site_redirect($blog_id = 0) } class Subscription_Mailer extends \WordPressMailer { - public function __construct(\Blog_Subscriber $subscriber, $use_wp = \true) + public function __construct(\Blog_Subscriber $subscriber, $use_wp = \true, $locale_type = self::USER_LOCALE) { } /** @@ -1058,7 +1058,7 @@ function wpcom_fetch_subs_counts($include_paid_subscribers = \false) function wpcom_is_child_theme() { } - function queue_publish_post($post_id, $post = \null) + function queue_publish_post($post_id, $post = \null, $old_post_status = \null) { } /** diff --git a/package.json b/package.json index b9ee7ae166f1f..b7d34e0aa51d2 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ "version-packages": "bash ./tools/version-packages.sh" }, "devDependencies": { - "eslint": "8.57.0", + "eslint": "8.57.1", "husky": "8.0.3", "jetpack-cli": "workspace:*", "jetpack-js-tools": "workspace:*" }, "engines": { - "node": "^20.8.1", - "pnpm": "^9.3.0" + "node": "^22.9.0", + "pnpm": "^9.3.0 <9.12.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d20a403bb87c6..7054e946f8af8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ importers: .: devDependencies: eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 husky: specifier: 8.0.3 version: 8.0.3 @@ -262,10 +262,10 @@ importers: version: link:../webpack-config '@typescript-eslint/parser': specifier: 6.21.0 - version: 6.21.0(eslint@8.57.0)(typescript@5.0.4) + version: 6.21.0(eslint@8.57.1)(typescript@5.0.4) eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 jest: specifier: 29.7.0 version: 29.7.0 @@ -626,11 +626,11 @@ importers: specifier: 6.9.0 version: 6.9.0 eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 eslint-plugin-es-x: specifier: 7.8.0 - version: 7.8.0(eslint@8.57.0) + version: 7.8.0(eslint@8.57.1) globals: specifier: 15.4.0 version: 15.4.0 @@ -771,22 +771,22 @@ importers: version: 12.1.0(rollup@3.29.5)(tslib@2.5.0)(typescript@5.0.4) '@typescript-eslint/parser': specifier: 6.21.0 - version: 6.21.0(eslint@8.57.0)(typescript@5.0.4) + version: 6.21.0(eslint@8.57.1)(typescript@5.0.4) eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 jest: specifier: 29.7.0 version: 29.7.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 rollup: specifier: 3.29.5 version: 3.29.5 rollup-plugin-postcss: specifier: 4.0.2 - version: 4.0.2(postcss@8.4.31) + version: 4.0.2(postcss@8.4.47) rollup-plugin-svelte: specifier: 7.2.2 version: 7.2.2(rollup@3.29.5)(svelte@4.2.19) @@ -801,7 +801,7 @@ importers: version: 4.2.19 svelte-preprocess: specifier: 6.0.2 - version: 6.0.2(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4) + version: 6.0.2(@babel/core@7.24.7)(postcss@8.4.47)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4) tslib: specifier: 2.5.0 version: 2.5.0 @@ -1343,8 +1343,8 @@ importers: specifier: ^6.0.3 version: 6.0.3 svgicons2svgfont: - specifier: ^12.0.0 - version: 12.0.0 + specifier: ^14.0.0 + version: 14.0.2 svgo: specifier: ^3.3.2 version: 3.3.2 @@ -1450,7 +1450,7 @@ importers: version: 5.9.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@wordpress/postcss-plugins-preset': specifier: 5.9.0 - version: 5.9.0(postcss@8.4.31) + version: 5.9.0(postcss@8.4.47) allure-playwright: specifier: 2.9.2 version: 2.9.2 @@ -1473,11 +1473,11 @@ importers: specifier: 2.1.35 version: 2.1.35 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) react: specifier: 18.3.1 version: 18.3.1 @@ -1525,10 +1525,10 @@ importers: version: link:../webpack-config '@typescript-eslint/parser': specifier: 6.21.0 - version: 6.21.0(eslint@8.57.0)(typescript@5.0.4) + version: 6.21.0(eslint@8.57.1)(typescript@5.0.4) eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 jest: specifier: 29.7.0 version: 29.7.0 @@ -1908,22 +1908,22 @@ importers: version: 7.24.7 '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@wordpress/browserslist-config': specifier: 6.9.0 version: 6.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) glob: specifier: 10.4.1 version: 10.4.1 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) sass: specifier: 1.64.1 version: 1.64.1 @@ -2164,7 +2164,7 @@ importers: version: 5.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) concurrently: specifier: 7.6.0 version: 7.6.0 @@ -2181,11 +2181,11 @@ importers: specifier: 3.6.0 version: 3.6.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) sass-loader: specifier: 12.4.0 version: 12.4.0(sass@1.64.1)(webpack@5.94.0(webpack-cli@4.9.1)) @@ -2380,7 +2380,7 @@ importers: version: 2.6.0 postcss-custom-properties: specifier: 12.1.7 - version: 12.1.7(postcss@8.4.31) + version: 12.1.7(postcss@8.4.47) devDependencies: '@automattic/jetpack-webpack-config': specifier: workspace:* @@ -2393,22 +2393,22 @@ importers: version: 7.24.7 '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@wordpress/browserslist-config': specifier: 6.9.0 version: 6.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) glob: specifier: 10.4.1 version: 10.4.1 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) sass: specifier: 1.64.1 version: 1.64.1 @@ -2732,7 +2732,7 @@ importers: version: 7.24.7 '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@size-limit/preset-app': specifier: 11.1.6 version: 11.1.6(size-limit@11.1.6) @@ -2756,7 +2756,7 @@ importers: version: 6.9.0(webpack@5.94.0(webpack-cli@4.9.1)) autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) babel-jest: specifier: 29.4.3 version: 29.4.3(@babel/core@7.24.7) @@ -2773,14 +2773,14 @@ importers: specifier: 29.7.0 version: 29.7.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-custom-properties: specifier: 12.1.7 - version: 12.1.7(postcss@8.4.31) + version: 12.1.7(postcss@8.4.47) postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) prettier: specifier: npm:wp-prettier@3.0.3 version: wp-prettier@3.0.3 @@ -2908,7 +2908,7 @@ importers: version: 7.24.7(@babel/core@7.24.7) '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@jest/globals': specifier: 29.4.3 version: 29.4.3 @@ -2944,7 +2944,7 @@ importers: version: 6.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) copy-webpack-plugin: specifier: 11.0.0 version: 11.0.0(webpack@5.94.0(webpack-cli@4.9.1)) @@ -2955,14 +2955,14 @@ importers: specifier: 29.7.0 version: 29.7.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-custom-properties: specifier: 12.1.7 - version: 12.1.7(postcss@8.4.31) + version: 12.1.7(postcss@8.4.47) postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) require-from-string: specifier: 2.0.2 version: 2.0.2 @@ -3414,8 +3414,8 @@ importers: specifier: 1.0.1 version: 1.0.1 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 process: specifier: 0.11.10 version: 0.11.10 @@ -3693,8 +3693,8 @@ importers: specifier: 5.9.0 version: 5.9.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 rollup: specifier: 3.29.5 version: 3.29.5 @@ -3703,7 +3703,7 @@ importers: version: 2.0.5 rollup-plugin-postcss: specifier: 4.0.2 - version: 4.0.2(postcss@8.4.31) + version: 4.0.2(postcss@8.4.47) rollup-plugin-svelte: specifier: 7.2.2 version: 7.2.2(rollup@3.29.5)(svelte@4.2.19) @@ -3715,7 +3715,7 @@ importers: version: 4.2.19 svelte-preprocess: specifier: 6.0.2 - version: 6.0.2(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4) + version: 6.0.2(@babel/core@7.24.7)(postcss@8.4.47)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4) typescript: specifier: 5.0.4 version: 5.0.4 @@ -3895,7 +3895,7 @@ importers: version: 4.1.1 postcss-custom-properties: specifier: 12.1.7 - version: 12.1.7(postcss@8.4.31) + version: 12.1.7(postcss@8.4.47) prop-types: specifier: 15.7.2 version: 15.7.2 @@ -3978,7 +3978,7 @@ importers: version: 7.24.7 '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@svgr/webpack': specifier: 7.0.0 version: 7.0.0(typescript@5.0.4) @@ -4041,7 +4041,7 @@ importers: version: 3.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) babel-jest: specifier: 29.4.3 version: 29.4.3(@babel/core@7.24.7) @@ -4067,11 +4067,11 @@ importers: specifier: 4.17.21 version: 4.17.21 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) regenerator-runtime: specifier: 0.13.9 version: 0.13.9 @@ -4381,7 +4381,7 @@ importers: version: 7.24.7 '@csstools/postcss-global-data': specifier: 2.1.1 - version: 2.1.1(postcss@8.4.31) + version: 2.1.1(postcss@8.4.47) '@testing-library/dom': specifier: 10.4.0 version: 10.4.0 @@ -4399,7 +4399,7 @@ importers: version: 6.9.0 autoprefixer: specifier: 10.4.14 - version: 10.4.14(postcss@8.4.31) + version: 10.4.14(postcss@8.4.47) babel-jest: specifier: 29.4.3 version: 29.4.3(@babel/core@7.24.7) @@ -4413,14 +4413,14 @@ importers: specifier: 29.7.0 version: 29.7.0 postcss: - specifier: 8.4.31 - version: 8.4.31 + specifier: 8.4.47 + version: 8.4.47 postcss-custom-properties: specifier: 12.1.7 - version: 12.1.7(postcss@8.4.31) + version: 12.1.7(postcss@8.4.47) postcss-loader: specifier: 6.2.0 - version: 6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)) + version: 6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)) sass: specifier: 1.64.1 version: 1.64.1 @@ -4805,8 +4805,8 @@ importers: specifier: 7.24.7 version: 7.24.7 '@babel/eslint-parser': - specifier: 7.24.7 - version: 7.24.7(@babel/core@7.24.7)(eslint@8.57.0) + specifier: 7.25.9 + version: 7.25.9(@babel/core@7.24.7)(eslint@8.57.1) '@babel/preset-react': specifier: 7.24.7 version: 7.24.7(@babel/core@7.24.7) @@ -4827,13 +4827,13 @@ importers: version: 6.5.0 '@typescript-eslint/eslint-plugin': specifier: 6.21.0 - version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4) + version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4) '@typescript-eslint/parser': specifier: 6.21.0 - version: 6.21.0(eslint@8.57.0)(typescript@5.0.4) + version: 6.21.0(eslint@8.57.1)(typescript@5.0.4) '@wordpress/eslint-plugin': specifier: 21.2.0 - version: 21.2.0(2g4wiqq3ubewvaaot6et2pay5m) + version: 21.2.0(3zgehwu3uz4mcmtrtsv3cr4muy) '@wordpress/jest-console': specifier: 8.9.0 version: 8.9.0(jest@29.7.0) @@ -4850,53 +4850,53 @@ importers: specifier: 2.4.1 version: 2.4.1 eslint: - specifier: 8.57.0 - version: 8.57.0 + specifier: 8.57.1 + version: 8.57.1 eslint-config-prettier: specifier: 9.1.0 - version: 9.1.0(eslint@8.57.0) + version: 9.1.0(eslint@8.57.1) eslint-import-resolver-exports: specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0))(eslint@8.57.0) + version: 1.0.0-beta.5(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1))(eslint@8.57.1) eslint-plugin-es-x: specifier: 7.8.0 - version: 7.8.0(eslint@8.57.0) + version: 7.8.0(eslint@8.57.1) eslint-plugin-import: - specifier: 2.29.1 - version: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0) + specifier: 2.31.0 + version: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1) eslint-plugin-jest: specifier: 27.9.0 - version: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4) + version: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4) eslint-plugin-jest-dom: specifier: 5.4.0 - version: 5.4.0(eslint@8.57.0) + version: 5.4.0(eslint@8.57.1) eslint-plugin-jsdoc: - specifier: 48.8.3 - version: 48.8.3(eslint@8.57.0) + specifier: 48.11.0 + version: 48.11.0(eslint@8.57.1) eslint-plugin-jsx-a11y: - specifier: 6.9.0 - version: 6.9.0(eslint@8.57.0) + specifier: 6.10.1 + version: 6.10.1(eslint@8.57.1) eslint-plugin-lodash: specifier: 7.4.0 - version: 7.4.0(eslint@8.57.0) + version: 7.4.0(eslint@8.57.1) eslint-plugin-playwright: specifier: 0.22.2 - version: 0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.0) + version: 0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.1) eslint-plugin-prettier: specifier: 5.2.1 - version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(wp-prettier@3.0.3) + version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(wp-prettier@3.0.3) eslint-plugin-react: - specifier: 7.35.0 - version: 7.35.0(eslint@8.57.0) + specifier: 7.37.2 + version: 7.37.2(eslint@8.57.1) eslint-plugin-react-hooks: specifier: 4.6.2 - version: 4.6.2(eslint@8.57.0) + version: 4.6.2(eslint@8.57.1) eslint-plugin-svelte: - specifier: 2.43.0 - version: 2.43.0(eslint@8.57.0)(svelte@4.2.19) + specifier: 2.46.0 + version: 2.46.0(eslint@8.57.1)(svelte@4.2.19) eslint-plugin-testing-library: - specifier: 6.3.0 - version: 6.3.0(eslint@8.57.0)(typescript@5.0.4) + specifier: 6.4.0 + version: 6.4.0(eslint@8.57.1)(typescript@5.0.4) glob: specifier: 10.4.1 version: 10.4.1 @@ -5053,8 +5053,8 @@ packages: resolution: {integrity: sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==} engines: {node: '>=6.9.0'} - '@babel/eslint-parser@7.24.7': - resolution: {integrity: sha512-SO5E3bVxDuxyNxM5agFv480YA2HO6ohZbGxbazZdIk3KQOPOGVNw6q78I9/lbviIf95eq6tPozeYnJLbjnC8IA==} + '@babel/eslint-parser@7.25.9': + resolution: {integrity: sha512-5UXfgpK0j0Xr/xIdgdLEhOFxaDZ0bRPWJJchRpqOSur/3rZoPbqqki5mm0p4NE2cs28krBEiSM2MB7//afRSQQ==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: '@babel/core': ^7.11.0 @@ -6072,8 +6072,8 @@ packages: resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@eslint/js@8.57.0': - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + '@eslint/js@8.57.1': + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} '@fastify/busboy@2.1.1': @@ -6101,8 +6101,8 @@ packages: '@hapi/topo@5.1.0': resolution: {integrity: sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==} - '@humanwhocodes/config-array@0.11.14': - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + '@humanwhocodes/config-array@0.13.0': + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead @@ -6695,6 +6695,9 @@ packages: rollup: optional: true + '@rtsao/scc@1.1.0': + resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} + '@rushstack/eslint-patch@1.3.3': resolution: {integrity: sha512-0xd7qez0AQ+MbHatZTlI1gu5vkG8r7MYRUJAHPAHJBmGLs16zpkrpAVLvjQKQOqaXPDUBwOiJzNc00znHSCVBw==} @@ -7461,6 +7464,9 @@ packages: '@types/retry@0.12.0': resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==} + '@types/sax@1.2.7': + resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==} + '@types/seed-random@2.2.4': resolution: {integrity: sha512-M4wSiHb23w6oRFo69SrjWiYMXocfhRyzX5kuGkAJmLrYJDD//8zmhsY+9t6t87RLYhyIcE4h3feYwqOFdaslHw==} @@ -8353,9 +8359,6 @@ packages: axios@1.7.4: resolution: {integrity: sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==} - axobject-query@3.1.1: - resolution: {integrity: sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==} - axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} @@ -9421,8 +9424,8 @@ packages: es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} - es-iterator-helpers@1.0.19: - resolution: {integrity: sha512-zoMwbCcH5hwUkKJkT8kDIBZSz9I6mVG//+lDCinLCGov4+r7NIy0ld8o03M0cJxl2spVf6ESYVS6/gpIfq1FFw==} + es-iterator-helpers@1.1.0: + resolution: {integrity: sha512-/SurEfycdyssORP/E+bj4sEu1CWw4EmLDsHynHwSXQ7utgbrMRWW195pTrCjFgFCddf/UkYm3oqKPRq5i8bJbw==} engines: {node: '>= 0.4'} es-module-lexer@1.5.4: @@ -9542,12 +9545,12 @@ packages: peerDependencies: eslint: '>=8' - eslint-plugin-import@2.29.1: - resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==} + eslint-plugin-import@2.31.0: + resolution: {integrity: sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==} engines: {node: '>=4'} peerDependencies: '@typescript-eslint/parser': '*' - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9 peerDependenciesMeta: '@typescript-eslint/parser': optional: true @@ -9575,17 +9578,17 @@ packages: jest: optional: true - eslint-plugin-jsdoc@48.8.3: - resolution: {integrity: sha512-AtIvwwW9D17MRkM0Z0y3/xZYaa9mdAvJrkY6fU/HNUwGbmMtHVvK4qRM9CDixGVtfNrQitb8c6zQtdh6cTOvLg==} + eslint-plugin-jsdoc@48.11.0: + resolution: {integrity: sha512-d12JHJDPNo7IFwTOAItCeJY1hcqoIxE0lHA8infQByLilQ9xkqrRa6laWCnsuCrf+8rUnvxXY1XuTbibRBNylA==} engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 - eslint-plugin-jsx-a11y@6.9.0: - resolution: {integrity: sha512-nOFOCaJG2pYqORjK19lqPqxMO/JpvdCZdPtNdxY3kvom3jTvkAbOvQvD8wuD0G8BYR0IGAGYDlzqWJOh/ybn2g==} + eslint-plugin-jsx-a11y@6.10.1: + resolution: {integrity: sha512-zHByM9WTUMnfsDTafGXRiqxp6lFtNoSOWBY6FonVRn3A+BUwN1L/tdBXT40BcBJi0cZjOGTXZ0eD/rTG9fEJ0g==} engines: {node: '>=4.0'} peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 eslint-plugin-lodash@7.4.0: resolution: {integrity: sha512-Tl83UwVXqe1OVeBRKUeWcfg6/pCW1GTRObbdnbEJgYwjxp5Q92MEWQaH9+dmzbRt6kvYU1Mp893E79nJiCSM8A==} @@ -9622,27 +9625,27 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - eslint-plugin-react@7.35.0: - resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} + eslint-plugin-react@7.37.2: + resolution: {integrity: sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==} engines: {node: '>=4'} peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 - eslint-plugin-svelte@2.43.0: - resolution: {integrity: sha512-REkxQWvg2pp7QVLxQNa+dJ97xUqRe7Y2JJbSWkHSuszu0VcblZtXkPBPckkivk99y5CdLw4slqfPylL2d/X4jQ==} + eslint-plugin-svelte@2.46.0: + resolution: {integrity: sha512-1A7iEMkzmCZ9/Iz+EAfOGYL8IoIG6zeKEq1SmpxGeM5SXmoQq+ZNnCpXFVJpsxPWYx8jIVGMerQMzX20cqUl0g==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0-0 || ^9.0.0-0 - svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.191 + svelte: ^3.37.0 || ^4.0.0 || ^5.0.0 peerDependenciesMeta: svelte: optional: true - eslint-plugin-testing-library@6.3.0: - resolution: {integrity: sha512-GYcEErTt6EGwE0bPDY+4aehfEBpB2gDBFKohir8jlATSUvzStEyzCx8QWB/14xeKc/AwyXkzScSzMHnFojkWrA==} + eslint-plugin-testing-library@6.4.0: + resolution: {integrity: sha512-yeWF+YgCgvNyPNI9UKnG0FjeE2sk93N/3lsKqcmR8dSfeXJwFT5irnWo7NjLf152HkRzfoFjh3LsBUrhvFz4eA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'} peerDependencies: - eslint: ^7.5.0 || ^8.0.0 + eslint: ^7.5.0 || ^8.0.0 || ^9.0.0 eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} @@ -9660,12 +9663,20 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + eslint-visitor-keys@4.1.0: + resolution: {integrity: sha512-Q7lok0mqMUSf5a/AdAZkA5a/gHcO6snwQClVNNvFKCAVlxXucdU8pKydU5ZVZjBx5xr37vGbFFWtLQYreLzrZg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true + espree@10.2.0: + resolution: {integrity: sha512-upbkBJbckcCNBDBDXEbuhjbP68n+scUd3k/U2EkyM9nw+I/jPiL4cLF/Al06CF96wRltFda16sxDFrxsI1v0/g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -10096,15 +10107,15 @@ packages: engines: {node: '>=16 || 14 >=14.18'} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported - glob@8.1.0: - resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} - engines: {node: '>=12'} - deprecated: Glob versions prior to v9 are no longer supported - global-modules@0.2.3: resolution: {integrity: sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==} engines: {node: '>=0.10.0'} @@ -10674,12 +10685,17 @@ packages: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} - iterator.prototype@1.1.2: - resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==} + iterator.prototype@1.1.3: + resolution: {integrity: sha512-FW5iMbeQ6rBGm/oKgzq2aW4KvAGpxPzYES8N4g4xNXUKpL1mclMvOe+76AcLDTvD+Ze+sOpVhgdAQEKF4L9iGQ==} + engines: {node: '>= 0.4'} jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + jake@10.9.2: resolution: {integrity: sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==} engines: {node: '>=10'} @@ -10970,8 +10986,8 @@ packages: resolution: {integrity: sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==} engines: {node: '>= 8'} - known-css-properties@0.34.0: - resolution: {integrity: sha512-tBECoUqNFbyAY4RrbqsBQqDFpGXAEbdD5QKr8kACx3+rnArmuuR22nKQWKazvp07N9yjTyDZaw/20UIH8tL9DQ==} + known-css-properties@0.35.0: + resolution: {integrity: sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==} kuler@2.0.0: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} @@ -11165,6 +11181,10 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -11423,6 +11443,10 @@ packages: peerDependencies: webpack: ^5.0.0 + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -11731,6 +11755,9 @@ packages: resolution: {integrity: sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==} engines: {node: '>=8'} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + param-case@3.0.4: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} @@ -11815,6 +11842,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@0.1.10: resolution: {integrity: sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==} @@ -12148,10 +12179,6 @@ packages: postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - postcss@8.4.31: - resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} - engines: {node: ^10 || ^12 || >=14} - postcss@8.4.47: resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==} engines: {node: ^10 || ^12 || >=14} @@ -13131,8 +13158,9 @@ packages: resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} engines: {node: '>=12'} - string.prototype.includes@2.0.0: - resolution: {integrity: sha512-E34CkBgyeqNDcrbU76cDjL5JLcVrtSdYq0MEh/B10r17pRP4ciHLwTgnuLV8Ay6cgEMLkcBkFCKyFZ43YldYzg==} + string.prototype.includes@2.0.1: + resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==} + engines: {node: '>= 0.4'} string.prototype.matchall@4.0.11: resolution: {integrity: sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==} @@ -13262,11 +13290,11 @@ packages: svelte: optional: true - svelte-eslint-parser@0.41.1: - resolution: {integrity: sha512-08ndI6zTghzI8SuJAFpvMbA/haPSGn3xz19pjre19yYMw8Nw/wQJ2PrZBI/L8ijGTgtkWCQQiLLy+Z1tfaCwNA==} + svelte-eslint-parser@0.43.0: + resolution: {integrity: sha512-GpU52uPKKcVnh8tKN5P4UZpJ/fUDndmq7wfsvoVXsyP+aY0anol7Yqo01fyrlaWGMFfm4av5DyrjlaXdLRJvGA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: - svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.191 + svelte: ^3.37.0 || ^4.0.0 || ^5.0.0 peerDependenciesMeta: svelte: optional: true @@ -13315,17 +13343,17 @@ packages: svg-parser@2.0.4: resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==} - svg-pathdata@6.0.3: - resolution: {integrity: sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw==} - engines: {node: '>=12.0.0'} + svg-pathdata@7.1.0: + resolution: {integrity: sha512-wrvKHXZSYZyODOj5E1l1bMTIo8sR7YCH0E4SA8IgLgMsZq4RypslpYvNSsrdg4ThD6du2KWPyVeKinkqUelGhg==} + engines: {node: '>=20.11.1'} svg2ttf@6.0.3: resolution: {integrity: sha512-CgqMyZrbOPpc+WqH7aga4JWkDPso23EgypLsbQ6gN3uoPWwwiLjXvzgrwGADBExvCRJrWFzAeK1bSoSpE7ixSQ==} hasBin: true - svgicons2svgfont@12.0.0: - resolution: {integrity: sha512-fjyDkhiG0M1TPBtZzD12QV3yDcG2fUgiqHPOCYzf7hHE40Hl3GhnE6P1njsJCCByhwM7MiufyDW3L7IOR5dg9w==} - engines: {node: '>=16.15.0'} + svgicons2svgfont@14.0.2: + resolution: {integrity: sha512-NwbAbOMZvLN/3ycAnaDA8RRbovgtjoVqjW6bnGVaNHTG3dcnNLwRXGD/e11V37Tv48SlAjBTEWCNJRf+qdS1nA==} + engines: {node: '>=20.11.1'} hasBin: true svgo@3.3.2: @@ -13493,6 +13521,10 @@ packages: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} + transformation-matrix-js@2.7.6: + resolution: {integrity: sha512-1CxDIZmCQ3vA0GGnkdMQqxUXVm3xXAFmglPYRS1hr37LzSg22TC7QAWOT38OmdUvMEs/rqcnkFoAsqvzdiluDg==} + deprecated: Package no longer supported. Contact support@npmjs.com for more info. + tree-kill@1.2.2: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true @@ -14157,6 +14189,10 @@ packages: yauzl@2.10.0: resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} + yerror@8.0.0: + resolution: {integrity: sha512-FemWD5/UqNm8ffj8oZIbjWXIF2KE0mZssggYpdaQkWDDgXBQ/35PNIxEuz6/YLn9o0kOxDBNJe8x8k9ljD7k/g==} + engines: {node: '>=18.16.0'} + yjs@13.6.19: resolution: {integrity: sha512-GNKw4mEUn5yWU2QPHRx8jppxmCm9KzbBhB4qJLUJFiiYD0g/tDVgXQ7aPkyh01YO28kbs2J/BEbWBagjuWyejw==} engines: {node: '>=16.0.0', npm: '>=8.0.0'} @@ -14354,11 +14390,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/eslint-parser@7.24.7(@babel/core@7.24.7)(eslint@8.57.0)': + '@babel/eslint-parser@7.25.9(@babel/core@7.24.7)(eslint@8.57.1)': dependencies: '@babel/core': 7.24.7 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 2.1.0 semver: 6.3.1 @@ -15214,9 +15250,9 @@ snapshots: '@colors/colors@1.6.0': {} - '@csstools/postcss-global-data@2.1.1(postcss@8.4.31)': + '@csstools/postcss-global-data@2.1.1(postcss@8.4.47)': dependencies: - postcss: 8.4.31 + postcss: 8.4.47 '@dabh/diagnostics@2.0.3': dependencies: @@ -15490,9 +15526,9 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + '@eslint-community/eslint-utils@4.4.0(eslint@8.57.1)': dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.11.1': {} @@ -15511,7 +15547,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.0': {} + '@eslint/js@8.57.1': {} '@fastify/busboy@2.1.1': {} @@ -15538,7 +15574,7 @@ snapshots: dependencies: '@hapi/hoek': 9.3.0 - '@humanwhocodes/config-array@0.11.14': + '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 debug: 4.3.4 @@ -16417,6 +16453,8 @@ snapshots: optionalDependencies: rollup: 3.29.5 + '@rtsao/scc@1.1.0': {} + '@rushstack/eslint-patch@1.3.3': {} '@samverschueren/stream-to-observable@0.3.1(rxjs@6.6.7)': @@ -17411,6 +17449,10 @@ snapshots: '@types/retry@0.12.0': {} + '@types/sax@1.2.7': + dependencies: + '@types/node': 20.16.10 + '@types/seed-random@2.2.4': {} '@types/semver@7.5.8': {} @@ -17523,16 +17565,16 @@ snapshots: '@types/node': 20.16.10 optional: true - '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4)': + '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4)': dependencies: '@eslint-community/regexpp': 4.11.1 - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.0.4) + '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.0.4) '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.0)(typescript@5.0.4) - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.0.4) + '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.1)(typescript@5.0.4) + '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@5.0.4) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 @@ -17543,14 +17585,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4)': + '@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4)': dependencies: '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.0.4) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 - eslint: 8.57.0 + eslint: 8.57.1 optionalDependencies: typescript: 5.0.4 transitivePeerDependencies: @@ -17566,12 +17608,12 @@ snapshots: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - '@typescript-eslint/type-utils@6.21.0(eslint@8.57.0)(typescript@5.0.4)': + '@typescript-eslint/type-utils@6.21.0(eslint@8.57.1)(typescript@5.0.4)': dependencies: '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.0.4) - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.0.4) + '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@5.0.4) debug: 4.3.4 - eslint: 8.57.0 + eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.0.4) optionalDependencies: typescript: 5.0.4 @@ -17611,30 +17653,30 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.62.0(eslint@8.57.0)(typescript@5.0.4)': + '@typescript-eslint/utils@5.62.0(eslint@8.57.1)(typescript@5.0.4)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) - eslint: 8.57.0 + eslint: 8.57.1 eslint-scope: 5.1.1 semver: 7.5.2 transitivePeerDependencies: - supports-color - typescript - '@typescript-eslint/utils@6.21.0(eslint@8.57.0)(typescript@5.0.4)': + '@typescript-eslint/utils@6.21.0(eslint@8.57.1)(typescript@5.0.4)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.0.4) - eslint: 8.57.0 + eslint: 8.57.1 semver: 7.6.3 transitivePeerDependencies: - supports-color @@ -17849,9 +17891,9 @@ snapshots: fast-deep-equal: 3.1.3 memize: 2.1.0 parsel-js: 1.1.2 - postcss: 8.4.31 - postcss-prefix-selector: 1.16.1(postcss@8.4.31) - postcss-urlrebase: 1.4.0(postcss@8.4.31) + postcss: 8.4.47 + postcss-prefix-selector: 1.16.1(postcss@8.4.47) + postcss-urlrebase: 1.4.0(postcss@8.4.47) react: 18.3.1 react-autosize-textarea: 7.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: 18.3.1(react@18.3.1) @@ -17907,9 +17949,9 @@ snapshots: fast-deep-equal: 3.1.3 memize: 2.1.0 parsel-js: 1.1.2 - postcss: 8.4.31 - postcss-prefix-selector: 1.16.1(postcss@8.4.31) - postcss-urlrebase: 1.4.0(postcss@8.4.31) + postcss: 8.4.47 + postcss-prefix-selector: 1.16.1(postcss@8.4.47) + postcss-urlrebase: 1.4.0(postcss@8.4.47) react: 18.3.1 react-autosize-textarea: 7.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: 18.3.1(react@18.3.1) @@ -17965,9 +18007,9 @@ snapshots: fast-deep-equal: 3.1.3 memize: 2.1.0 parsel-js: 1.1.2 - postcss: 8.4.31 - postcss-prefix-selector: 1.16.1(postcss@8.4.31) - postcss-urlrebase: 1.4.0(postcss@8.4.31) + postcss: 8.4.47 + postcss-prefix-selector: 1.16.1(postcss@8.4.47) + postcss-urlrebase: 1.4.0(postcss@8.4.47) react: 18.3.1 react-autosize-textarea: 7.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: 18.3.1(react@18.3.1) @@ -18870,25 +18912,25 @@ snapshots: dependencies: '@babel/runtime': 7.24.7 - '@wordpress/eslint-plugin@21.2.0(2g4wiqq3ubewvaaot6et2pay5m)': + '@wordpress/eslint-plugin@21.2.0(3zgehwu3uz4mcmtrtsv3cr4muy)': dependencies: '@babel/core': 7.24.7 - '@babel/eslint-parser': 7.24.7(@babel/core@7.24.7)(eslint@8.57.0) - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4) - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.0.4) + '@babel/eslint-parser': 7.25.9(@babel/core@7.24.7)(eslint@8.57.1) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4) + '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.0.4) '@wordpress/babel-preset-default': 8.9.0 '@wordpress/prettier-config': 4.9.0(wp-prettier@3.0.3) cosmiconfig: 7.1.0 - eslint: 8.57.0 - eslint-config-prettier: 9.1.0(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0) - eslint-plugin-jest: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4) - eslint-plugin-jsdoc: 48.8.3(eslint@8.57.0) - eslint-plugin-jsx-a11y: 6.9.0(eslint@8.57.0) - eslint-plugin-playwright: 0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.0) - eslint-plugin-prettier: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(wp-prettier@3.0.3) - eslint-plugin-react: 7.35.0(eslint@8.57.0) - eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) + eslint: 8.57.1 + eslint-config-prettier: 9.1.0(eslint@8.57.1) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1) + eslint-plugin-jest: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4) + eslint-plugin-jsdoc: 48.11.0(eslint@8.57.1) + eslint-plugin-jsx-a11y: 6.10.1(eslint@8.57.1) + eslint-plugin-playwright: 0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.1) + eslint-plugin-prettier: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(wp-prettier@3.0.3) + eslint-plugin-react: 7.37.2(eslint@8.57.1) + eslint-plugin-react-hooks: 4.6.2(eslint@8.57.1) globals: 13.24.0 requireindex: 1.2.0 optionalDependencies: @@ -19255,11 +19297,11 @@ snapshots: - '@types/react' - supports-color - '@wordpress/postcss-plugins-preset@5.9.0(postcss@8.4.31)': + '@wordpress/postcss-plugins-preset@5.9.0(postcss@8.4.47)': dependencies: '@wordpress/base-styles': 5.9.0 - autoprefixer: 10.4.14(postcss@8.4.31) - postcss: 8.4.31 + autoprefixer: 10.4.14(postcss@8.4.47) + postcss: 8.4.47 '@wordpress/preferences@4.9.0(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -19825,14 +19867,14 @@ snapshots: asynckit@0.4.0: {} - autoprefixer@10.4.14(postcss@8.4.31): + autoprefixer@10.4.14(postcss@8.4.47): dependencies: browserslist: 4.23.1 caniuse-lite: 1.0.30001667 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.0 - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 autosize@4.0.4: {} @@ -19859,10 +19901,6 @@ snapshots: transitivePeerDependencies: - debug - axobject-query@3.1.1: - dependencies: - deep-equal: 2.2.3 - axobject-query@4.1.0: {} b4a@1.6.7: {} @@ -20598,9 +20636,9 @@ snapshots: crypto-random-string@2.0.0: {} - css-declaration-sorter@7.2.0(postcss@8.4.31): + css-declaration-sorter@7.2.0(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 css-loader@6.11.0(webpack@5.94.0(webpack-cli@4.9.1)): dependencies: @@ -20617,12 +20655,12 @@ snapshots: css-loader@6.5.1(webpack@5.94.0(webpack-cli@4.9.1)): dependencies: - icss-utils: 5.1.0(postcss@8.4.31) - postcss: 8.4.31 - postcss-modules-extract-imports: 3.1.0(postcss@8.4.31) - postcss-modules-local-by-default: 4.0.5(postcss@8.4.31) - postcss-modules-scope: 3.2.0(postcss@8.4.31) - postcss-modules-values: 4.0.0(postcss@8.4.31) + icss-utils: 5.1.0(postcss@8.4.47) + postcss: 8.4.47 + postcss-modules-extract-imports: 3.1.0(postcss@8.4.47) + postcss-modules-local-by-default: 4.0.5(postcss@8.4.47) + postcss-modules-scope: 3.2.0(postcss@8.4.47) + postcss-modules-values: 4.0.0(postcss@8.4.47) postcss-value-parser: 4.2.0 semver: 7.5.2 webpack: 5.94.0(webpack-cli@4.9.1) @@ -20630,9 +20668,9 @@ snapshots: css-minimizer-webpack-plugin@5.0.1(webpack@5.94.0(webpack-cli@4.9.1)): dependencies: '@jridgewell/trace-mapping': 0.3.25 - cssnano: 6.1.2(postcss@8.4.31) + cssnano: 6.1.2(postcss@8.4.47) jest-worker: 29.7.0 - postcss: 8.4.31 + postcss: 8.4.47 schema-utils: 4.2.0 serialize-javascript: 6.0.2 webpack: 5.94.0(webpack-cli@4.9.1) @@ -20671,49 +20709,49 @@ snapshots: cssesc@3.0.0: {} - cssnano-preset-default@6.1.2(postcss@8.4.31): + cssnano-preset-default@6.1.2(postcss@8.4.47): dependencies: browserslist: 4.23.1 - css-declaration-sorter: 7.2.0(postcss@8.4.31) - cssnano-utils: 4.0.2(postcss@8.4.31) - postcss: 8.4.31 - postcss-calc: 9.0.1(postcss@8.4.31) - postcss-colormin: 6.1.0(postcss@8.4.31) - postcss-convert-values: 6.1.0(postcss@8.4.31) - postcss-discard-comments: 6.0.2(postcss@8.4.31) - postcss-discard-duplicates: 6.0.3(postcss@8.4.31) - postcss-discard-empty: 6.0.3(postcss@8.4.31) - postcss-discard-overridden: 6.0.2(postcss@8.4.31) - postcss-merge-longhand: 6.0.5(postcss@8.4.31) - postcss-merge-rules: 6.1.1(postcss@8.4.31) - postcss-minify-font-values: 6.1.0(postcss@8.4.31) - postcss-minify-gradients: 6.0.3(postcss@8.4.31) - postcss-minify-params: 6.1.0(postcss@8.4.31) - postcss-minify-selectors: 6.0.4(postcss@8.4.31) - postcss-normalize-charset: 6.0.2(postcss@8.4.31) - postcss-normalize-display-values: 6.0.2(postcss@8.4.31) - postcss-normalize-positions: 6.0.2(postcss@8.4.31) - postcss-normalize-repeat-style: 6.0.2(postcss@8.4.31) - postcss-normalize-string: 6.0.2(postcss@8.4.31) - postcss-normalize-timing-functions: 6.0.2(postcss@8.4.31) - postcss-normalize-unicode: 6.1.0(postcss@8.4.31) - postcss-normalize-url: 6.0.2(postcss@8.4.31) - postcss-normalize-whitespace: 6.0.2(postcss@8.4.31) - postcss-ordered-values: 6.0.2(postcss@8.4.31) - postcss-reduce-initial: 6.1.0(postcss@8.4.31) - postcss-reduce-transforms: 6.0.2(postcss@8.4.31) - postcss-svgo: 6.0.3(postcss@8.4.31) - postcss-unique-selectors: 6.0.4(postcss@8.4.31) - - cssnano-utils@4.0.2(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - - cssnano@6.1.2(postcss@8.4.31): - dependencies: - cssnano-preset-default: 6.1.2(postcss@8.4.31) + css-declaration-sorter: 7.2.0(postcss@8.4.47) + cssnano-utils: 4.0.2(postcss@8.4.47) + postcss: 8.4.47 + postcss-calc: 9.0.1(postcss@8.4.47) + postcss-colormin: 6.1.0(postcss@8.4.47) + postcss-convert-values: 6.1.0(postcss@8.4.47) + postcss-discard-comments: 6.0.2(postcss@8.4.47) + postcss-discard-duplicates: 6.0.3(postcss@8.4.47) + postcss-discard-empty: 6.0.3(postcss@8.4.47) + postcss-discard-overridden: 6.0.2(postcss@8.4.47) + postcss-merge-longhand: 6.0.5(postcss@8.4.47) + postcss-merge-rules: 6.1.1(postcss@8.4.47) + postcss-minify-font-values: 6.1.0(postcss@8.4.47) + postcss-minify-gradients: 6.0.3(postcss@8.4.47) + postcss-minify-params: 6.1.0(postcss@8.4.47) + postcss-minify-selectors: 6.0.4(postcss@8.4.47) + postcss-normalize-charset: 6.0.2(postcss@8.4.47) + postcss-normalize-display-values: 6.0.2(postcss@8.4.47) + postcss-normalize-positions: 6.0.2(postcss@8.4.47) + postcss-normalize-repeat-style: 6.0.2(postcss@8.4.47) + postcss-normalize-string: 6.0.2(postcss@8.4.47) + postcss-normalize-timing-functions: 6.0.2(postcss@8.4.47) + postcss-normalize-unicode: 6.1.0(postcss@8.4.47) + postcss-normalize-url: 6.0.2(postcss@8.4.47) + postcss-normalize-whitespace: 6.0.2(postcss@8.4.47) + postcss-ordered-values: 6.0.2(postcss@8.4.47) + postcss-reduce-initial: 6.1.0(postcss@8.4.47) + postcss-reduce-transforms: 6.0.2(postcss@8.4.47) + postcss-svgo: 6.0.3(postcss@8.4.47) + postcss-unique-selectors: 6.0.4(postcss@8.4.47) + + cssnano-utils@4.0.2(postcss@8.4.47): + dependencies: + postcss: 8.4.47 + + cssnano@6.1.2(postcss@8.4.47): + dependencies: + cssnano-preset-default: 6.1.2(postcss@8.4.47) lilconfig: 3.1.2 - postcss: 8.4.31 + postcss: 8.4.47 csso@5.0.5: dependencies: @@ -21132,7 +21170,7 @@ snapshots: isarray: 2.0.5 stop-iteration-iterator: 1.0.0 - es-iterator-helpers@1.0.19: + es-iterator-helpers@1.1.0: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 @@ -21146,7 +21184,7 @@ snapshots: has-proto: 1.0.3 has-symbols: 1.0.3 internal-slot: 1.0.7 - iterator.prototype: 1.1.2 + iterator.prototype: 1.1.3 safe-array-concat: 1.1.2 es-module-lexer@1.5.4: {} @@ -21260,19 +21298,19 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-compat-utils@0.5.1(eslint@8.57.0): + eslint-compat-utils@0.5.1(eslint@8.57.1): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 semver: 7.6.3 - eslint-config-prettier@9.1.0(eslint@8.57.0): + eslint-config-prettier@9.1.0(eslint@8.57.1): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 - eslint-import-resolver-exports@1.0.0-beta.5(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0))(eslint@8.57.0): + eslint-import-resolver-exports@1.0.0-beta.5(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1))(eslint@8.57.1): dependencies: - eslint: 8.57.0 - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0) + eslint: 8.57.1 + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1) resolve.exports: 2.0.2 eslint-import-resolver-node@0.3.9: @@ -21283,34 +21321,35 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.0.4) - eslint: 8.57.0 + '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.0.4) + eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color - eslint-plugin-es-x@7.8.0(eslint@8.57.0): + eslint-plugin-es-x@7.8.0(eslint@8.57.1): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@eslint-community/regexpp': 4.11.1 - eslint: 8.57.0 - eslint-compat-utils: 0.5.1(eslint@8.57.0) + eslint: 8.57.1 + eslint-compat-utils: 0.5.1(eslint@8.57.1) - eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1): dependencies: + '@rtsao/scc': 1.1.0 array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.2 array.prototype.flatmap: 1.3.2 debug: 3.2.7 doctrine: 2.1.0 - eslint: 8.57.0 + eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -21319,39 +21358,41 @@ snapshots: object.groupby: 1.0.3 object.values: 1.2.0 semver: 6.3.1 + string.prototype.trimend: 1.0.8 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.0.4) + '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.0.4) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jest-dom@5.4.0(eslint@8.57.0): + eslint-plugin-jest-dom@5.4.0(eslint@8.57.1): dependencies: '@babel/runtime': 7.24.7 - eslint: 8.57.0 + eslint: 8.57.1 requireindex: 1.2.0 - eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4): + eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4): dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.0.4) - eslint: 8.57.0 + '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) + eslint: 8.57.1 optionalDependencies: - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4) jest: 29.7.0 transitivePeerDependencies: - supports-color - typescript - eslint-plugin-jsdoc@48.8.3(eslint@8.57.0): + eslint-plugin-jsdoc@48.11.0(eslint@8.57.1): dependencies: '@es-joy/jsdoccomment': 0.46.0 are-docs-informative: 0.0.2 comment-parser: 1.4.1 debug: 4.3.7 escape-string-regexp: 4.0.0 - eslint: 8.57.0 + eslint: 8.57.1 + espree: 10.2.0 esquery: 1.6.0 parse-imports: 2.2.1 semver: 7.6.3 @@ -21360,60 +21401,60 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-jsx-a11y@6.9.0(eslint@8.57.0): + eslint-plugin-jsx-a11y@6.10.1(eslint@8.57.1): dependencies: - aria-query: 5.1.3 + aria-query: 5.3.2 array-includes: 3.1.8 array.prototype.flatmap: 1.3.2 ast-types-flow: 0.0.8 axe-core: 4.10.0 - axobject-query: 3.1.1 + axobject-query: 4.1.0 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 - es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + es-iterator-helpers: 1.1.0 + eslint: 8.57.1 hasown: 2.0.2 jsx-ast-utils: 3.3.5 language-tags: 1.0.9 minimatch: 3.1.2 object.fromentries: 2.0.8 safe-regex-test: 1.0.3 - string.prototype.includes: 2.0.0 + string.prototype.includes: 2.0.1 - eslint-plugin-lodash@7.4.0(eslint@8.57.0): + eslint-plugin-lodash@7.4.0(eslint@8.57.1): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 lodash: 4.17.21 - eslint-plugin-playwright@0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.0): + eslint-plugin-playwright@0.22.2(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4))(eslint@8.57.1): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 globals: 13.24.0 optionalDependencies: - eslint-plugin-jest: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(typescript@5.0.4))(eslint@8.57.0)(jest@29.7.0)(typescript@5.0.4) + eslint-plugin-jest: 27.9.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(typescript@5.0.4))(eslint@8.57.1)(jest@29.7.0)(typescript@5.0.4) - eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(wp-prettier@3.0.3): + eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.1))(eslint@8.57.1)(wp-prettier@3.0.3): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 prettier: wp-prettier@3.0.3 prettier-linter-helpers: 1.0.0 synckit: 0.9.2 optionalDependencies: - eslint-config-prettier: 9.1.0(eslint@8.57.0) + eslint-config-prettier: 9.1.0(eslint@8.57.1) - eslint-plugin-react-hooks@4.6.2(eslint@8.57.0): + eslint-plugin-react-hooks@4.6.2(eslint@8.57.1): dependencies: - eslint: 8.57.0 + eslint: 8.57.1 - eslint-plugin-react@7.35.0(eslint@8.57.0): + eslint-plugin-react@7.37.2(eslint@8.57.1): dependencies: array-includes: 3.1.8 array.prototype.findlast: 1.2.5 array.prototype.flatmap: 1.3.2 array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 - es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + es-iterator-helpers: 1.1.0 + eslint: 8.57.1 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -21427,29 +21468,29 @@ snapshots: string.prototype.matchall: 4.0.11 string.prototype.repeat: 1.0.0 - eslint-plugin-svelte@2.43.0(eslint@8.57.0)(svelte@4.2.19): + eslint-plugin-svelte@2.46.0(eslint@8.57.1)(svelte@4.2.19): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@jridgewell/sourcemap-codec': 1.5.0 - eslint: 8.57.0 - eslint-compat-utils: 0.5.1(eslint@8.57.0) + eslint: 8.57.1 + eslint-compat-utils: 0.5.1(eslint@8.57.1) esutils: 2.0.3 - known-css-properties: 0.34.0 + known-css-properties: 0.35.0 postcss: 8.4.47 postcss-load-config: 3.1.4(postcss@8.4.47) postcss-safe-parser: 6.0.0(postcss@8.4.47) postcss-selector-parser: 6.1.2 semver: 7.6.3 - svelte-eslint-parser: 0.41.1(svelte@4.2.19) + svelte-eslint-parser: 0.43.0(svelte@4.2.19) optionalDependencies: svelte: 4.2.19 transitivePeerDependencies: - ts-node - eslint-plugin-testing-library@6.3.0(eslint@8.57.0)(typescript@5.0.4): + eslint-plugin-testing-library@6.4.0(eslint@8.57.1)(typescript@5.0.4): dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.0.4) - eslint: 8.57.0 + '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -21468,13 +21509,15 @@ snapshots: eslint-visitor-keys@3.4.3: {} - eslint@8.57.0: + eslint-visitor-keys@4.1.0: {} + + eslint@8.57.1: dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@eslint-community/regexpp': 4.11.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 @@ -21511,6 +21554,12 @@ snapshots: transitivePeerDependencies: - supports-color + espree@10.2.0: + dependencies: + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 4.1.0 + espree@9.6.1: dependencies: acorn: 8.12.1 @@ -22003,6 +22052,15 @@ snapshots: minipass: 7.1.2 path-scurry: 1.11.1 + glob@11.0.0: + dependencies: + foreground-child: 3.3.0 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -22012,14 +22070,6 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 - glob@8.1.0: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 5.1.0 - once: 1.4.0 - global-modules@0.2.3: dependencies: global-prefix: 0.1.5 @@ -22279,10 +22329,6 @@ snapshots: icss-replace-symbols@1.1.0: {} - icss-utils@5.1.0(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - icss-utils@5.1.0(postcss@8.4.47): dependencies: postcss: 8.4.47 @@ -22593,7 +22639,7 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 - iterator.prototype@1.1.2: + iterator.prototype@1.1.3: dependencies: define-properties: 1.2.1 get-intrinsic: 1.2.4 @@ -22607,6 +22653,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + jake@10.9.2: dependencies: async: 3.2.6 @@ -23178,7 +23228,7 @@ snapshots: klona@2.0.6: {} - known-css-properties@0.34.0: {} + known-css-properties@0.35.0: {} kuler@2.0.0: {} @@ -23389,6 +23439,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.0.1: {} + lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -23817,6 +23869,10 @@ snapshots: tapable: 2.2.1 webpack: 5.94.0(webpack-cli@4.9.1) + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -24135,6 +24191,8 @@ snapshots: lodash.flattendeep: 4.4.0 release-zalgo: 1.0.0 + package-json-from-dist@1.0.1: {} + param-case@3.0.4: dependencies: dot-case: 3.0.4 @@ -24212,6 +24270,11 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-to-regexp@0.1.10: {} path-to-regexp@1.9.0: @@ -24287,53 +24350,46 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-calc@9.0.1(postcss@8.4.31): + postcss-calc@9.0.1(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-selector-parser: 6.1.2 postcss-value-parser: 4.2.0 - postcss-colormin@6.1.0(postcss@8.4.31): + postcss-colormin@6.1.0(postcss@8.4.47): dependencies: browserslist: 4.23.1 caniuse-api: 3.0.0 colord: 2.9.3 - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-convert-values@6.1.0(postcss@8.4.31): + postcss-convert-values@6.1.0(postcss@8.4.47): dependencies: browserslist: 4.23.1 - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-custom-properties@12.1.7(postcss@8.4.31): + postcss-custom-properties@12.1.7(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-discard-comments@6.0.2(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - - postcss-discard-duplicates@6.0.3(postcss@8.4.31): + postcss-discard-comments@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 - postcss-discard-empty@6.0.3(postcss@8.4.31): + postcss-discard-duplicates@6.0.3(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 - postcss-discard-overridden@6.0.2(postcss@8.4.31): + postcss-discard-empty@6.0.3(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 - postcss-load-config@3.1.4(postcss@8.4.31): + postcss-discard-overridden@6.0.2(postcss@8.4.47): dependencies: - lilconfig: 2.1.0 - yaml: 1.10.2 - optionalDependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-load-config@3.1.4(postcss@8.4.47): dependencies: @@ -24342,67 +24398,56 @@ snapshots: optionalDependencies: postcss: 8.4.47 - postcss-loader@6.2.0(postcss@8.4.31)(webpack@5.94.0(webpack-cli@4.9.1)): + postcss-loader@6.2.0(postcss@8.4.47)(webpack@5.94.0(webpack-cli@4.9.1)): dependencies: cosmiconfig: 7.1.0 klona: 2.0.6 - postcss: 8.4.31 + postcss: 8.4.47 semver: 7.5.2 webpack: 5.94.0(webpack-cli@4.9.1) - postcss-merge-longhand@6.0.5(postcss@8.4.31): + postcss-merge-longhand@6.0.5(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - stylehacks: 6.1.1(postcss@8.4.31) + stylehacks: 6.1.1(postcss@8.4.47) - postcss-merge-rules@6.1.1(postcss@8.4.31): + postcss-merge-rules@6.1.1(postcss@8.4.47): dependencies: browserslist: 4.23.1 caniuse-api: 3.0.0 - cssnano-utils: 4.0.2(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 4.0.2(postcss@8.4.47) + postcss: 8.4.47 postcss-selector-parser: 6.1.2 - postcss-minify-font-values@6.1.0(postcss@8.4.31): + postcss-minify-font-values@6.1.0(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-minify-gradients@6.0.3(postcss@8.4.31): + postcss-minify-gradients@6.0.3(postcss@8.4.47): dependencies: colord: 2.9.3 - cssnano-utils: 4.0.2(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 4.0.2(postcss@8.4.47) + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-minify-params@6.1.0(postcss@8.4.31): + postcss-minify-params@6.1.0(postcss@8.4.47): dependencies: browserslist: 4.23.1 - cssnano-utils: 4.0.2(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 4.0.2(postcss@8.4.47) + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-minify-selectors@6.0.4(postcss@8.4.31): + postcss-minify-selectors@6.0.4(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-selector-parser: 6.1.2 - postcss-modules-extract-imports@3.1.0(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - postcss-modules-extract-imports@3.1.0(postcss@8.4.47): dependencies: postcss: 8.4.47 - postcss-modules-local-by-default@4.0.5(postcss@8.4.31): - dependencies: - icss-utils: 5.1.0(postcss@8.4.31) - postcss: 8.4.31 - postcss-selector-parser: 6.1.2 - postcss-value-parser: 4.2.0 - postcss-modules-local-by-default@4.0.5(postcss@8.4.47): dependencies: icss-utils: 5.1.0(postcss@8.4.47) @@ -24410,102 +24455,92 @@ snapshots: postcss-selector-parser: 6.1.2 postcss-value-parser: 4.2.0 - postcss-modules-scope@3.2.0(postcss@8.4.31): - dependencies: - postcss: 8.4.31 - postcss-selector-parser: 6.1.2 - postcss-modules-scope@3.2.0(postcss@8.4.47): dependencies: postcss: 8.4.47 postcss-selector-parser: 6.1.2 - postcss-modules-values@4.0.0(postcss@8.4.31): - dependencies: - icss-utils: 5.1.0(postcss@8.4.31) - postcss: 8.4.31 - postcss-modules-values@4.0.0(postcss@8.4.47): dependencies: icss-utils: 5.1.0(postcss@8.4.47) postcss: 8.4.47 - postcss-modules@4.3.1(postcss@8.4.31): + postcss-modules@4.3.1(postcss@8.4.47): dependencies: generic-names: 4.0.0 icss-replace-symbols: 1.1.0 lodash.camelcase: 4.3.0 - postcss: 8.4.31 - postcss-modules-extract-imports: 3.1.0(postcss@8.4.31) - postcss-modules-local-by-default: 4.0.5(postcss@8.4.31) - postcss-modules-scope: 3.2.0(postcss@8.4.31) - postcss-modules-values: 4.0.0(postcss@8.4.31) + postcss: 8.4.47 + postcss-modules-extract-imports: 3.1.0(postcss@8.4.47) + postcss-modules-local-by-default: 4.0.5(postcss@8.4.47) + postcss-modules-scope: 3.2.0(postcss@8.4.47) + postcss-modules-values: 4.0.0(postcss@8.4.47) string-hash: 1.1.3 - postcss-normalize-charset@6.0.2(postcss@8.4.31): + postcss-normalize-charset@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 - postcss-normalize-display-values@6.0.2(postcss@8.4.31): + postcss-normalize-display-values@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-positions@6.0.2(postcss@8.4.31): + postcss-normalize-positions@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-repeat-style@6.0.2(postcss@8.4.31): + postcss-normalize-repeat-style@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-string@6.0.2(postcss@8.4.31): + postcss-normalize-string@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-timing-functions@6.0.2(postcss@8.4.31): + postcss-normalize-timing-functions@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-unicode@6.1.0(postcss@8.4.31): + postcss-normalize-unicode@6.1.0(postcss@8.4.47): dependencies: browserslist: 4.23.1 - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-url@6.0.2(postcss@8.4.31): + postcss-normalize-url@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-normalize-whitespace@6.0.2(postcss@8.4.31): + postcss-normalize-whitespace@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-ordered-values@6.0.2(postcss@8.4.31): + postcss-ordered-values@6.0.2(postcss@8.4.47): dependencies: - cssnano-utils: 4.0.2(postcss@8.4.31) - postcss: 8.4.31 + cssnano-utils: 4.0.2(postcss@8.4.47) + postcss: 8.4.47 postcss-value-parser: 4.2.0 - postcss-prefix-selector@1.16.1(postcss@8.4.31): + postcss-prefix-selector@1.16.1(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 - postcss-reduce-initial@6.1.0(postcss@8.4.31): + postcss-reduce-initial@6.1.0(postcss@8.4.47): dependencies: browserslist: 4.23.1 caniuse-api: 3.0.0 - postcss: 8.4.31 + postcss: 8.4.47 - postcss-reduce-transforms@6.0.2(postcss@8.4.31): + postcss-reduce-transforms@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 postcss-safe-parser@6.0.0(postcss@8.4.47): @@ -24521,30 +24556,24 @@ snapshots: cssesc: 3.0.0 util-deprecate: 1.0.2 - postcss-svgo@6.0.3(postcss@8.4.31): + postcss-svgo@6.0.3(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 svgo: 3.3.2 - postcss-unique-selectors@6.0.4(postcss@8.4.31): + postcss-unique-selectors@6.0.4(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-selector-parser: 6.1.2 - postcss-urlrebase@1.4.0(postcss@8.4.31): + postcss-urlrebase@1.4.0(postcss@8.4.47): dependencies: - postcss: 8.4.31 + postcss: 8.4.47 postcss-value-parser: 4.2.0 postcss-value-parser@4.2.0: {} - postcss@8.4.31: - dependencies: - nanoid: 3.3.7 - picocolors: 1.1.0 - source-map-js: 1.2.0 - postcss@8.4.47: dependencies: nanoid: 3.3.7 @@ -25219,17 +25248,17 @@ snapshots: - bufferutil - utf-8-validate - rollup-plugin-postcss@4.0.2(postcss@8.4.31): + rollup-plugin-postcss@4.0.2(postcss@8.4.47): dependencies: chalk: 4.1.2 concat-with-sourcemaps: 1.1.0 - cssnano: 6.1.2(postcss@8.4.31) + cssnano: 6.1.2(postcss@8.4.47) import-cwd: 3.0.0 p-queue: 6.6.2 pify: 5.0.0 - postcss: 8.4.31 - postcss-load-config: 3.1.4(postcss@8.4.31) - postcss-modules: 4.3.1(postcss@8.4.31) + postcss: 8.4.47 + postcss-load-config: 3.1.4(postcss@8.4.47) + postcss-modules: 4.3.1(postcss@8.4.47) promise.series: 0.2.0 resolve: 1.22.8 rollup-pluginutils: 2.8.2 @@ -25263,7 +25292,7 @@ snapshots: dependencies: find-up: 5.0.0 picocolors: 1.1.0 - postcss: 8.4.31 + postcss: 8.4.47 strip-json-comments: 3.1.1 run-parallel@1.2.0: @@ -25672,8 +25701,9 @@ snapshots: emoji-regex: 9.2.2 strip-ansi: 7.1.0 - string.prototype.includes@2.0.0: + string.prototype.includes@2.0.1: dependencies: + call-bind: 1.0.7 define-properties: 1.2.1 es-abstract: 1.23.3 @@ -25772,10 +25802,10 @@ snapshots: dependencies: webpack: 5.94.0(webpack-cli@4.9.1) - stylehacks@6.1.1(postcss@8.4.31): + stylehacks@6.1.1(postcss@8.4.47): dependencies: browserslist: 4.23.1 - postcss: 8.4.31 + postcss: 8.4.47 postcss-selector-parser: 6.1.2 stylis@4.2.0: {} @@ -25810,7 +25840,7 @@ snapshots: optionalDependencies: svelte: 4.2.19 - svelte-eslint-parser@0.41.1(svelte@4.2.19): + svelte-eslint-parser@0.43.0(svelte@4.2.19): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -25820,12 +25850,12 @@ snapshots: optionalDependencies: svelte: 4.2.19 - svelte-preprocess@6.0.2(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4): + svelte-preprocess@6.0.2(@babel/core@7.24.7)(postcss@8.4.47)(sass@1.64.1)(svelte@4.2.19)(typescript@5.0.4): dependencies: svelte: 4.2.19 optionalDependencies: '@babel/core': 7.24.7 - postcss: 8.4.31 + postcss: 8.4.47 sass: 1.64.1 typescript: 5.0.4 @@ -25848,7 +25878,9 @@ snapshots: svg-parser@2.0.4: {} - svg-pathdata@6.0.3: {} + svg-pathdata@7.1.0: + dependencies: + yerror: 8.0.0 svg2ttf@6.0.3: dependencies: @@ -25859,12 +25891,19 @@ snapshots: microbuffer: 1.0.0 svgpath: 2.6.0 - svgicons2svgfont@12.0.0: + svgicons2svgfont@14.0.2: dependencies: - commander: 9.3.0 - glob: 8.1.0 + '@types/sax': 1.2.7 + commander: 12.1.0 + debug: 4.3.7 + glob: 11.0.0 + punycode: 2.3.1 sax: 1.4.1 - svg-pathdata: 6.0.3 + svg-pathdata: 7.1.0 + transformation-matrix-js: 2.7.6 + yerror: 8.0.0 + transitivePeerDependencies: + - supports-color svgo@3.3.2: dependencies: @@ -26027,6 +26066,8 @@ snapshots: dependencies: punycode: 2.3.1 + transformation-matrix-js@2.7.6: {} + tree-kill@1.2.2: {} triple-beam@1.4.1: {} @@ -26783,6 +26824,8 @@ snapshots: buffer-crc32: 0.2.13 fd-slicer: 1.1.0 + yerror@8.0.0: {} + yjs@13.6.19: dependencies: lib0: 0.2.98 diff --git a/projects/github-actions/required-review/changelog/fix-required-review-no-request-review-from-bot b/projects/github-actions/required-review/changelog/fix-required-review-no-request-review-from-bot new file mode 100644 index 0000000000000..bb2852820990b --- /dev/null +++ b/projects/github-actions/required-review/changelog/fix-required-review-no-request-review-from-bot @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Avoid trying to request reviews from bot accounts. diff --git a/projects/github-actions/required-review/src/request-review.js b/projects/github-actions/required-review/src/request-review.js index f6aa0acb39bb6..c8ebbda971d72 100644 --- a/projects/github-actions/required-review/src/request-review.js +++ b/projects/github-actions/required-review/src/request-review.js @@ -21,7 +21,9 @@ async function requestReviewer( teams ) { const teamReviews = []; for ( const t of teams ) { - if ( t.startsWith( '@' ) ) { + if ( t.startsWith( '@' ) && t.endsWith( '[bot]' ) ) { + core.info( `Skipping ${ t }, appears to be a bot` ); + } else if ( t.startsWith( '@' ) ) { userReviews.push( t.slice( 1 ) ); } else { teamReviews.push( t ); diff --git a/projects/js-packages/ai-client/CHANGELOG.md b/projects/js-packages/ai-client/CHANGELOG.md index 54f957ea86683..99bcab06d2685 100644 --- a/projects/js-packages/ai-client/CHANGELOG.md +++ b/projects/js-packages/ai-client/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.22.0] - 2024-10-21 +### Changed +- AI Client: Add types for AI assistant feature payload data branch featuresControl. [#39826] + ## [0.21.0] - 2024-10-14 ### Added - AI Client: Add image styles 'auto' and 'none' to the logo generator. Order styles so those are on top in the dropdown selector. [#39689] @@ -435,6 +439,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated package dependencies. [#31659] - Updated package dependencies. [#31785] +[0.22.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.21.0...v0.22.0 [0.21.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.20.1...v0.21.0 [0.20.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.20.0...v0.20.1 [0.20.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.19.0...v0.20.0 diff --git a/projects/js-packages/ai-client/changelog/add-jetpack-ai-features-control-types b/projects/js-packages/ai-client/changelog/add-jetpack-ai-features-control-types deleted file mode 100644 index 68e175cac7043..0000000000000 --- a/projects/js-packages/ai-client/changelog/add-jetpack-ai-features-control-types +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: changed - -AI Client: add types for AI assistant feature payload data branch featuresControl diff --git a/projects/js-packages/ai-client/changelog/change-jetpack-ai-modal-prompt-input-reuse b/projects/js-packages/ai-client/changelog/change-jetpack-ai-modal-prompt-input-reuse new file mode 100644 index 0000000000000..c4a38f6eb8440 --- /dev/null +++ b/projects/js-packages/ai-client/changelog/change-jetpack-ai-modal-prompt-input-reuse @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +AI Client: decouple prompt input as component and export it for reusability diff --git a/projects/js-packages/ai-client/package.json b/projects/js-packages/ai-client/package.json index d376a895d3cb7..a35a4e132b951 100644 --- a/projects/js-packages/ai-client/package.json +++ b/projects/js-packages/ai-client/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "@automattic/jetpack-ai-client", - "version": "0.21.0", + "version": "0.22.0", "description": "A JS client for consuming Jetpack AI services", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme", "bugs": { diff --git a/projects/js-packages/ai-client/src/logo-generator/components/prompt.tsx b/projects/js-packages/ai-client/src/logo-generator/components/prompt.tsx index 643bd0e3eb9fa..13a83c5a14140 100644 --- a/projects/js-packages/ai-client/src/logo-generator/components/prompt.tsx +++ b/projects/js-packages/ai-client/src/logo-generator/components/prompt.tsx @@ -7,6 +7,7 @@ import { __, sprintf } from '@wordpress/i18n'; import { Icon, info } from '@wordpress/icons'; import debugFactory from 'debug'; import { useCallback, useEffect, useState, useRef } from 'react'; +import { Dispatch, SetStateAction } from 'react'; /** * Internal dependencies */ @@ -37,6 +38,81 @@ type PromptProps = { initialPrompt?: string; }; +export const AiModalPromptInput = ( { + prompt = '', + setPrompt = () => {}, + disabled = false, + generateHandler = () => {}, + placeholder = '', + buttonLabel = '', +}: { + prompt: string; + setPrompt: Dispatch< SetStateAction< string > >; + disabled: boolean; + generateHandler: () => void; + placeholder?: string; + buttonLabel?: string; +} ) => { + const inputRef = useRef< HTMLDivElement | null >( null ); + const hasPrompt = prompt?.length >= MINIMUM_PROMPT_LENGTH; + + const onPromptInput = ( event: React.ChangeEvent< HTMLInputElement > ) => { + setPrompt( event.target.textContent || '' ); + }; + + const onPromptPaste = ( event: React.ClipboardEvent< HTMLInputElement > ) => { + event.preventDefault(); + + const selection = event.currentTarget.ownerDocument.getSelection(); + if ( ! selection || ! selection.rangeCount ) { + return; + } + + // Paste plain text only + const text = event.clipboardData.getData( 'text/plain' ); + + selection.deleteFromDocument(); + const range = selection.getRangeAt( 0 ); + range.insertNode( document.createTextNode( text ) ); + selection.collapseToEnd(); + + setPrompt( inputRef.current?.textContent || '' ); + }; + + const onKeyDown = ( event: React.KeyboardEvent ) => { + if ( event.key === 'Enter' ) { + event.preventDefault(); + generateHandler(); + } + }; + + return ( +
+
+ +
+ ); +}; + export const Prompt = ( { initialPrompt = '' }: PromptProps ) => { const { tracks } = useAnalytics(); const { recordEvent: recordTracksEvent } = tracks; @@ -143,29 +219,6 @@ export const Prompt = ( { initialPrompt = '' }: PromptProps ) => { } }, [ context, generateLogo, prompt, style ] ); - const onPromptInput = ( event: React.ChangeEvent< HTMLInputElement > ) => { - setPrompt( event.target.textContent || '' ); - }; - - const onPromptPaste = ( event: React.ClipboardEvent< HTMLInputElement > ) => { - event.preventDefault(); - - const selection = event.currentTarget.ownerDocument.getSelection(); - if ( ! selection || ! selection.rangeCount ) { - return; - } - - // Paste plain text only - const text = event.clipboardData.getData( 'text/plain' ); - - selection.deleteFromDocument(); - const range = selection.getRangeAt( 0 ); - range.insertNode( document.createTextNode( text ) ); - selection.collapseToEnd(); - - setPrompt( inputRef.current?.textContent || '' ); - }; - const onUpgradeClick = () => { recordTracksEvent( EVENT_UPGRADE, { context, placement: EVENT_PLACEMENT_INPUT_FOOTER } ); }; @@ -179,13 +232,6 @@ export const Prompt = ( { initialPrompt = '' }: PromptProps ) => { [ context, setStyle, recordTracksEvent ] ); - const onKeyDown = ( event: React.KeyboardEvent ) => { - if ( event.key === 'Enter' ) { - event.preventDefault(); - onGenerate(); - } - }; - return (
@@ -212,32 +258,16 @@ export const Prompt = ( { initialPrompt = '' }: PromptProps ) => { /> ) }
-
-
- -
+
{ ! isUnlimited && ! requireUpgrade && (
diff --git a/projects/js-packages/ai-client/src/logo-generator/index.ts b/projects/js-packages/ai-client/src/logo-generator/index.ts index e6a9b9dec67ce..fab7b12e9442f 100644 --- a/projects/js-packages/ai-client/src/logo-generator/index.ts +++ b/projects/js-packages/ai-client/src/logo-generator/index.ts @@ -1 +1,2 @@ export * from './components/generator-modal.js'; +export { AiModalPromptInput } from './components/prompt.js'; diff --git a/projects/plugins/social/changelog/renovate-lock-file-maintenance b/projects/js-packages/boost-score-api/changelog/renovate-eslint-packages similarity index 100% rename from projects/plugins/social/changelog/renovate-lock-file-maintenance rename to projects/js-packages/boost-score-api/changelog/renovate-eslint-packages diff --git a/projects/js-packages/boost-score-api/package.json b/projects/js-packages/boost-score-api/package.json index 6aaa7889bafc4..7d1e968103ec8 100644 --- a/projects/js-packages/boost-score-api/package.json +++ b/projects/js-packages/boost-score-api/package.json @@ -26,7 +26,7 @@ "devDependencies": { "@automattic/jetpack-webpack-config": "workspace:*", "@typescript-eslint/parser": "6.21.0", - "eslint": "8.57.0", + "eslint": "8.57.1", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "typescript": "5.0.4", diff --git a/projects/plugins/social/changelog/renovate-wordpress-monorepo b/projects/js-packages/eslint-config-target-es/changelog/renovate-eslint-packages similarity index 100% rename from projects/plugins/social/changelog/renovate-wordpress-monorepo rename to projects/js-packages/eslint-config-target-es/changelog/renovate-eslint-packages diff --git a/projects/js-packages/eslint-config-target-es/package.json b/projects/js-packages/eslint-config-target-es/package.json index 689e82c091855..d72c9716cf066 100644 --- a/projects/js-packages/eslint-config-target-es/package.json +++ b/projects/js-packages/eslint-config-target-es/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "@wordpress/browserslist-config": "6.9.0", - "eslint": "8.57.0", + "eslint": "8.57.1", "eslint-plugin-es-x": "7.8.0", "globals": "15.4.0", "jest": "29.7.0" diff --git a/projects/plugins/social/changelog/renovate-wordpress-monorepo#2 b/projects/js-packages/image-guide/changelog/renovate-eslint-packages similarity index 100% rename from projects/plugins/social/changelog/renovate-wordpress-monorepo#2 rename to projects/js-packages/image-guide/changelog/renovate-eslint-packages diff --git a/projects/js-packages/shared-extension-utils/changelog/force-a-release b/projects/js-packages/image-guide/changelog/renovate-postcss-8.x similarity index 53% rename from projects/js-packages/shared-extension-utils/changelog/force-a-release rename to projects/js-packages/image-guide/changelog/renovate-postcss-8.x index d4ad6c7cc3379..c47cb18e82997 100644 --- a/projects/js-packages/shared-extension-utils/changelog/force-a-release +++ b/projects/js-packages/image-guide/changelog/renovate-postcss-8.x @@ -1,4 +1,4 @@ Significance: patch Type: changed -Update dependencies. +Updated package dependencies. diff --git a/projects/js-packages/image-guide/package.json b/projects/js-packages/image-guide/package.json index d6144e403ce7c..53120824dee13 100644 --- a/projects/js-packages/image-guide/package.json +++ b/projects/js-packages/image-guide/package.json @@ -44,9 +44,9 @@ "@rollup/plugin-terser": "0.4.3", "@rollup/plugin-typescript": "12.1.0", "@typescript-eslint/parser": "6.21.0", - "eslint": "8.57.0", + "eslint": "8.57.1", "jest": "29.7.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "rollup": "3.29.5", "rollup-plugin-postcss": "4.0.2", "rollup-plugin-svelte": "7.2.2", diff --git a/projects/js-packages/partner-coupon/CHANGELOG.md b/projects/js-packages/partner-coupon/CHANGELOG.md index 42c3b08d9a664..b06983ee66eb5 100644 --- a/projects/js-packages/partner-coupon/CHANGELOG.md +++ b/projects/js-packages/partner-coupon/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.2.93 - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## 0.2.92 - 2024-10-14 ### Changed - Updated package dependencies. [#39707] diff --git a/projects/js-packages/partner-coupon/package.json b/projects/js-packages/partner-coupon/package.json index cc979e05da105..e940ad6672592 100644 --- a/projects/js-packages/partner-coupon/package.json +++ b/projects/js-packages/partner-coupon/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-partner-coupon", - "version": "0.2.92", + "version": "0.2.93", "description": "This package aims to add components to make it easier to redeem partner coupons", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/partner-coupon/#readme", "bugs": { diff --git a/projects/js-packages/publicize-components/CHANGELOG.md b/projects/js-packages/publicize-components/CHANGELOG.md index cc0e827f8d4cd..43c07a78f6e22 100644 --- a/projects/js-packages/publicize-components/CHANGELOG.md +++ b/projects/js-packages/publicize-components/CHANGELOG.md @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.71.4] - 2024-10-25 +### Changed +- Initial state: Migrated isEnhancedPublishingEnabled to feature check [#39835] + +### Fixed +- Fixed Bsky conneciton management profile name [#39889] +- Fixed reconnection for broken Bluesky connections [#39844] +- Social: Fixed Bluesky custom domain handle not being accepted [#39872] + +## [0.71.3] - 2024-10-21 +### Changed +- Initial state: Migrated URLs in the editor to the new script data. [#39799] [#39797] +- Update dependencies. [#39781] + +### Fixed +- Social: Fixed Bluesky display name when it's not set in Bluesky profile. [#39840] + ## [0.71.2] - 2024-10-14 ### Added - Social: Added Bluesky to social previews. [#39659] @@ -970,6 +987,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Updated package dependencies. [#24470] +[0.71.4]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.71.3...v0.71.4 +[0.71.3]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.71.2...v0.71.3 [0.71.2]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.71.1...v0.71.2 [0.71.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.71.0...v0.71.1 [0.71.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.70.1...v0.71.0 diff --git a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-custom-domain-handles-not-working b/projects/js-packages/publicize-components/changelog/fix-social-bluesky-custom-domain-handles-not-working deleted file mode 100644 index 5857f3006fd35..0000000000000 --- a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-custom-domain-handles-not-working +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Social: Fixed Bluesky custom domain handle not being accepted diff --git a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name b/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name deleted file mode 100644 index ec1589efa9688..0000000000000 --- a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Social: Fixed Bluesky display name when it's not set in Bluesky profile diff --git a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-reconnection-for-broken-connections b/projects/js-packages/publicize-components/changelog/fix-social-bluesky-reconnection-for-broken-connections deleted file mode 100644 index eb4d17f671962..0000000000000 --- a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-reconnection-for-broken-connections +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Fixed reconnection for broken Bluesky connections diff --git a/projects/js-packages/publicize-components/changelog/update-enhances-publishing-feature-check b/projects/js-packages/publicize-components/changelog/update-enhances-publishing-feature-check deleted file mode 100644 index e1af3f96c5a7e..0000000000000 --- a/projects/js-packages/publicize-components/changelog/update-enhances-publishing-feature-check +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Initial state: Migrated isEnhancedPublishingEnabled to feature check diff --git a/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-in-editor b/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-in-editor deleted file mode 100644 index 71f7bcb2beb79..0000000000000 --- a/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-in-editor +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Initial state: Migrated URLs in the editor to the new script data diff --git a/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-on-social-admin b/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-on-social-admin deleted file mode 100644 index c23ee0fbdc59a..0000000000000 --- a/projects/js-packages/publicize-components/changelog/update-social-initial-state-migrate-urls-on-social-admin +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Initial State: Migrated URLs to script data diff --git a/projects/js-packages/publicize-components/index.ts b/projects/js-packages/publicize-components/index.ts index 36f1fab810ff0..f10e54078ec65 100644 --- a/projects/js-packages/publicize-components/index.ts +++ b/projects/js-packages/publicize-components/index.ts @@ -32,6 +32,7 @@ export * from './src/components/share-post'; export * from './src/hooks/use-sync-post-data-to-store'; export * from './src/hooks/use-saving-post'; export * from './src/hooks/use-post-meta'; +export * from './src/hooks/use-post-can-use-sig'; export * from './src/components/share-buttons'; export * from './src/components/manage-connections-modal'; export * from './src/utils/script-data'; diff --git a/projects/js-packages/publicize-components/package.json b/projects/js-packages/publicize-components/package.json index 87ec5e146b293..b3eb34b40227b 100644 --- a/projects/js-packages/publicize-components/package.json +++ b/projects/js-packages/publicize-components/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-publicize-components", - "version": "0.71.2", + "version": "0.71.4", "description": "A library of JS components required by the Publicize editor plugin", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme", "bugs": { diff --git a/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx b/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx index 858d1c6bffebe..230366360cc2b 100644 --- a/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx +++ b/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx @@ -32,7 +32,7 @@ export function ConnectionName( { connection }: ConnectionNameProps ) { ) : ( - { connection.display_name || connection.external_display } + { connection.display_name || connection.external_display || connection.external_name } ) } { isUpdating ? ( diff --git a/projects/js-packages/publicize-components/src/components/form/enhanced-features-nudge.tsx b/projects/js-packages/publicize-components/src/components/form/enhanced-features-nudge.tsx index ce90b960e33a2..b66bab3557fad 100644 --- a/projects/js-packages/publicize-components/src/components/form/enhanced-features-nudge.tsx +++ b/projects/js-packages/publicize-components/src/components/form/enhanced-features-nudge.tsx @@ -5,20 +5,17 @@ import { isSimpleSite, } from '@automattic/jetpack-shared-extension-utils'; import { Button, PanelRow } from '@wordpress/components'; -import { useSelect } from '@wordpress/data'; import { _x } from '@wordpress/i18n'; -import { store as socialStore } from '../../social-store'; +import { hasSocialPaidFeatures } from '../../utils'; import styles from './styles.module.scss'; import { useAutoSaveAndRedirect } from './use-auto-save-and-redirect'; export const EnhancedFeaturesNudge: React.FC = () => { - const hasPaidFeatures = useSelect( select => select( socialStore ).hasPaidFeatures(), [] ); - const autosaveAndRedirect = useAutoSaveAndRedirect(); const isWpcom = isSimpleSite() || isAtomicSite(); - if ( isWpcom || hasPaidFeatures ) { + if ( isWpcom || hasSocialPaidFeatures() ) { return null; } diff --git a/projects/js-packages/publicize-components/src/hooks/use-post-can-use-sig/index.ts b/projects/js-packages/publicize-components/src/hooks/use-post-can-use-sig/index.ts new file mode 100644 index 0000000000000..5602ca0709d00 --- /dev/null +++ b/projects/js-packages/publicize-components/src/hooks/use-post-can-use-sig/index.ts @@ -0,0 +1,21 @@ +import { siteHasFeature } from '@automattic/jetpack-script-data'; +import { useSelect } from '@wordpress/data'; +import { store as editorStore } from '@wordpress/editor'; +import { features } from '../../utils/constants'; + +/** + * When a post can use the Social Image Generator (SIG). + * + * @return {boolean} Whether the post can use the Social Image Generator. + */ +export function usePostCanUseSig() { + const isJetpackSocialNote = useSelect( select => { + const currentPostType = select( editorStore ) + // @ts-expect-error -- `@wordpress/editor` is a nightmare to work with TypeScript - getCurrentPostType exists on the editor store + .getCurrentPostType(); + + return 'jetpack-social-note' === currentPostType; + }, [] ); + + return ! isJetpackSocialNote && siteHasFeature( features.IMAGE_GENERATOR ); +} diff --git a/projects/js-packages/publicize-components/src/hooks/use-publicize-config/index.js b/projects/js-packages/publicize-components/src/hooks/use-publicize-config/index.js index bb991a44dd85e..d55353f871995 100644 --- a/projects/js-packages/publicize-components/src/hooks/use-publicize-config/index.js +++ b/projects/js-packages/publicize-components/src/hooks/use-publicize-config/index.js @@ -25,7 +25,6 @@ export default function usePublicizeConfig() { const isRePublicizeFeatureAvailable = isJetpackSite || getJetpackExtensionAvailability( republicizeFeatureName )?.available; const isPostPublished = useSelect( select => select( editorStore ).isCurrentPostPublished(), [] ); - const currentPostType = useSelect( select => select( editorStore ).getCurrentPostType(), [] ); const { isUserConnected } = useConnection(); const { urls } = getSocialScriptData(); @@ -80,17 +79,6 @@ export default function usePublicizeConfig() { */ const hidePublicizeFeature = isPostPublished && ! isRePublicizeFeatureAvailable; - /** - * hasPaidPlan: - * Whether the site has a paid plan. This could be either the Basic or the Advanced plan. - */ - const hasPaidPlan = !! getJetpackData()?.social?.hasPaidPlan; - - /**\ - * Returns true if the post type is a Jetpack Social Note. - */ - const isJetpackSocialNote = 'jetpack-social-note' === currentPostType; - const needsUserConnection = ! isUserConnected && ! isSimpleSite(); return { @@ -102,12 +90,8 @@ export default function usePublicizeConfig() { isRePublicizeUpgradableViaUpsell, hidePublicizeFeature, isPostAlreadyShared, - hasPaidPlan, - isSocialImageGeneratorAvailable: - !! getJetpackData()?.social?.isSocialImageGeneratorAvailable && ! isJetpackSocialNote, isSocialImageGeneratorEnabled: !! getJetpackData()?.social?.isSocialImageGeneratorEnabled, connectionsPageUrl: urls.connectionsManagementPage, - isJetpackSocialNote, needsUserConnection, }; } diff --git a/projects/js-packages/publicize-components/src/social-store/reducer/index.js b/projects/js-packages/publicize-components/src/social-store/reducer/index.js index 502e34d256f73..6bae3be245474 100644 --- a/projects/js-packages/publicize-components/src/social-store/reducer/index.js +++ b/projects/js-packages/publicize-components/src/social-store/reducer/index.js @@ -11,8 +11,6 @@ const reducer = combineReducers( { jetpackSettings, socialImageGeneratorSettings, shareStatus, - hasPaidPlan: ( state = false ) => state, - hasPaidFeatures: ( state = false ) => state, } ); export default reducer; diff --git a/projects/js-packages/publicize-components/src/social-store/selectors/index.js b/projects/js-packages/publicize-components/src/social-store/selectors/index.js index 9841e282af43e..6cf378df068eb 100644 --- a/projects/js-packages/publicize-components/src/social-store/selectors/index.js +++ b/projects/js-packages/publicize-components/src/social-store/selectors/index.js @@ -10,7 +10,6 @@ const selectors = { ...jetpackSettingSelectors, ...socialImageGeneratorSettingsSelectors, ...shareStatusSelectors, - hasPaidFeatures: state => state.hasPaidFeatures, }; export default selectors; diff --git a/projects/js-packages/publicize-components/src/social-store/selectors/jetpack-settings.js b/projects/js-packages/publicize-components/src/social-store/selectors/jetpack-settings.js index 1eb9be3e6e729..09d99b3937a34 100644 --- a/projects/js-packages/publicize-components/src/social-store/selectors/jetpack-settings.js +++ b/projects/js-packages/publicize-components/src/social-store/selectors/jetpack-settings.js @@ -3,7 +3,6 @@ const jetpackSettingSelectors = { isModuleEnabled: state => state.jetpackSettings.publicize_active, showPricingPage: state => state.jetpackSettings.show_pricing_page, isUpdatingJetpackSettings: state => state.jetpackSettings.is_updating, - hasPaidPlan: state => ! ( state.jetpackSettings?.showNudge ?? true ), getDismissedNotices: state => state.jetpackSettings?.dismissedNotices, isSocialNotesEnabled: state => state.jetpackSettings?.social_notes_enabled, isSocialNotesSettingsUpdating: state => state.jetpackSettings?.social_notes_is_updating, diff --git a/projects/js-packages/publicize-components/src/social-store/selectors/social-image-generator-settings.js b/projects/js-packages/publicize-components/src/social-store/selectors/social-image-generator-settings.js index 25cf39b9dedd8..c7ea88783996c 100644 --- a/projects/js-packages/publicize-components/src/social-store/selectors/social-image-generator-settings.js +++ b/projects/js-packages/publicize-components/src/social-store/selectors/social-image-generator-settings.js @@ -1,6 +1,5 @@ const socialImageGeneratorSettingsSelectors = { getSocialImageGeneratorSettings: state => state.socialImageGeneratorSettings, - isSocialImageGeneratorAvailable: state => state.socialImageGeneratorSettings.available, isSocialImageGeneratorEnabled: state => state.socialImageGeneratorSettings.enabled, isUpdatingSocialImageGeneratorSettings: state => state.socialImageGeneratorSettings.isUpdating, getSocialImageGeneratorDefaultTemplate: state => state.socialImageGeneratorSettings.template, diff --git a/projects/js-packages/publicize-components/src/social-store/types.ts b/projects/js-packages/publicize-components/src/social-store/types.ts index afe11754eb291..b0ed6db4cf0c7 100644 --- a/projects/js-packages/publicize-components/src/social-store/types.ts +++ b/projects/js-packages/publicize-components/src/social-store/types.ts @@ -67,8 +67,6 @@ export type ShareStatus = { // TODO we should have a consistent structure across all the pages - editor, dashboard, admin page etc. export type SocialStoreState = { connectionData: ConnectionData; - // on post editor - hasPaidPlan?: boolean; // on Jetack Social admin page jetpackSettings?: JetpackSettings; shareStatus?: ShareStatus; diff --git a/projects/js-packages/publicize-components/src/types/types.ts b/projects/js-packages/publicize-components/src/types/types.ts index 8264d46782842..667f33f90a64d 100644 --- a/projects/js-packages/publicize-components/src/types/types.ts +++ b/projects/js-packages/publicize-components/src/types/types.ts @@ -47,7 +47,6 @@ type JetpackSettingsSelectors = { isModuleEnabled: () => boolean; showPricingPage: () => boolean; isUpdatingJetpackSettings: () => boolean; - hasPaidPlan: () => boolean; }; type ConnectionDataSelectors = { @@ -68,7 +67,6 @@ type SocialImageGeneratorSettingsSelectors = { template: string; }; }; - isSocialImageGeneratorAvailable: () => boolean; isSocialImageGeneratorEnabled: () => boolean; isUpdatingSocialImageGeneratorSettings: () => boolean; getSocialImageGeneratorDefaultTemplate: () => string; diff --git a/projects/js-packages/publicize-components/src/utils/constants.ts b/projects/js-packages/publicize-components/src/utils/constants.ts index 9ac40038d75b8..49cedf5633358 100644 --- a/projects/js-packages/publicize-components/src/utils/constants.ts +++ b/projects/js-packages/publicize-components/src/utils/constants.ts @@ -1,3 +1,4 @@ export const features = { ENHANCED_PUBLISHING: 'social-enhanced-publishing', + IMAGE_GENERATOR: 'social-image-generator', }; diff --git a/projects/js-packages/publicize-components/src/utils/index.js b/projects/js-packages/publicize-components/src/utils/index.js index 6e0284f7b9870..bfc461305ff8a 100644 --- a/projects/js-packages/publicize-components/src/utils/index.js +++ b/projects/js-packages/publicize-components/src/utils/index.js @@ -3,3 +3,4 @@ export * from './get-supported-additional-connections'; export * from './request-external-access'; export * from './types'; export * from './script-data'; +export * from './constants'; diff --git a/projects/js-packages/publicize-components/src/utils/script-data.ts b/projects/js-packages/publicize-components/src/utils/script-data.ts index 4db102747a639..25561a8b726f2 100644 --- a/projects/js-packages/publicize-components/src/utils/script-data.ts +++ b/projects/js-packages/publicize-components/src/utils/script-data.ts @@ -1,4 +1,4 @@ -import { getScriptData } from '@automattic/jetpack-script-data'; +import { getScriptData, siteHasFeature } from '@automattic/jetpack-script-data'; import { SocialScriptData } from '../types/types'; /** @@ -9,3 +9,12 @@ import { SocialScriptData } from '../types/types'; export function getSocialScriptData(): SocialScriptData { return getScriptData().social; } + +/** + * Check if the site has social paid features. + * + * @return {boolean} Whether the site has social paid features. + */ +export function hasSocialPaidFeatures() { + return siteHasFeature( 'social-enhanced-publishing' ); +} diff --git a/projects/js-packages/script-data/CHANGELOG.md b/projects/js-packages/script-data/CHANGELOG.md index 483863296910b..d6008bd9ac192 100644 --- a/projects/js-packages/script-data/CHANGELOG.md +++ b/projects/js-packages/script-data/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.3] - 2024-10-21 +### Fixed +- Fixed the site features for Simple sites. [#39817] + ## [0.1.2] - 2024-08-21 ### Changed - Internal updates. @@ -17,5 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added jetpack-script-data package to consolidate the logic for Jetpack Initial state [#38430] +[0.1.3]: https://github.com/Automattic/jetpack-script-data/compare/v0.1.2...v0.1.3 [0.1.2]: https://github.com/Automattic/jetpack-script-data/compare/v0.1.1...v0.1.2 [0.1.1]: https://github.com/Automattic/jetpack-script-data/compare/v0.1.0...v0.1.1 diff --git a/projects/js-packages/script-data/changelog/fix-site-specific-features-for-simple-sites b/projects/js-packages/script-data/changelog/fix-site-specific-features-for-simple-sites deleted file mode 100644 index 8d0bfe4ddc2c9..0000000000000 --- a/projects/js-packages/script-data/changelog/fix-site-specific-features-for-simple-sites +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Fixed the site features for Simple sites diff --git a/projects/js-packages/script-data/package.json b/projects/js-packages/script-data/package.json index 98db58435ae5f..b95ad91379ed9 100644 --- a/projects/js-packages/script-data/package.json +++ b/projects/js-packages/script-data/package.json @@ -1,6 +1,6 @@ { "name": "@automattic/jetpack-script-data", - "version": "0.1.2", + "version": "0.1.3", "description": "A library to provide data for script handles and the corresponding utility functions for Jetpack.", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/script-data/#readme", "bugs": { diff --git a/projects/js-packages/shared-extension-utils/CHANGELOG.md b/projects/js-packages/shared-extension-utils/CHANGELOG.md index 92ced18380878..b0abeb5df6cdb 100644 --- a/projects/js-packages/shared-extension-utils/CHANGELOG.md +++ b/projects/js-packages/shared-extension-utils/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.15.14] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.15.13] - 2024-10-14 ### Changed - Updated package dependencies. [#39707] @@ -471,6 +475,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Core: prepare utility for release +[0.15.14]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.13...0.15.14 [0.15.13]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.12...0.15.13 [0.15.12]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.11...0.15.12 [0.15.11]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.10...0.15.11 diff --git a/projects/js-packages/shared-extension-utils/package.json b/projects/js-packages/shared-extension-utils/package.json index c4af22048acfd..25a832f9b09fa 100644 --- a/projects/js-packages/shared-extension-utils/package.json +++ b/projects/js-packages/shared-extension-utils/package.json @@ -1,6 +1,6 @@ { "name": "@automattic/jetpack-shared-extension-utils", - "version": "0.15.13", + "version": "0.15.14", "description": "Utility functions used by the block editor extensions", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme", "bugs": { diff --git a/projects/js-packages/social-logos/CHANGELOG.md b/projects/js-packages/social-logos/CHANGELOG.md index fadc43298865a..7b5bb36820788 100644 --- a/projects/js-packages/social-logos/CHANGELOG.md +++ b/projects/js-packages/social-logos/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.1.10] - 2024-10-25 +### Changed +- Updated package dependencies. [#39893] + ## [3.1.9] - 2024-10-14 ### Fixed - Add `key` in React example to make it more correct. [#39709] @@ -157,6 +161,7 @@ - Build: Refactored (aligned build system with Gridicons). +[3.1.10]: https://github.com/Automattic/social-logos/compare/v3.1.9...v3.1.10 [3.1.9]: https://github.com/Automattic/social-logos/compare/v3.1.8...v3.1.9 [3.1.8]: https://github.com/Automattic/social-logos/compare/v3.1.7...v3.1.8 [3.1.7]: https://github.com/Automattic/social-logos/compare/v3.1.6...v3.1.7 diff --git a/projects/js-packages/social-logos/package.json b/projects/js-packages/social-logos/package.json index c8ed32af63311..7d4ed4cc6ef71 100644 --- a/projects/js-packages/social-logos/package.json +++ b/projects/js-packages/social-logos/package.json @@ -1,6 +1,6 @@ { "name": "social-logos", - "version": "3.1.9", + "version": "3.1.10", "description": "A repository of all the social logos used on WordPress.com.", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/social-logos/", "bugs": { @@ -38,7 +38,7 @@ "@types/react-dom": "18.3.0", "glob": "10.4.1", "svg2ttf": "^6.0.3", - "svgicons2svgfont": "^12.0.0", + "svgicons2svgfont": "^14.0.0", "svgo": "^3.3.2", "svgstore": "^3.0.1", "typescript": "5.0.4", diff --git a/projects/js-packages/social-logos/tools/build b/projects/js-packages/social-logos/tools/build index 33c3adcdac5ca..eee9aed604e9d 100755 --- a/projects/js-packages/social-logos/tools/build +++ b/projects/js-packages/social-logos/tools/build @@ -20,7 +20,7 @@ if ./tools/clean && # Disabling this for now until we figure out the proper place for it. # ./tools/svg-to-php && ./tools/svg-to-sprite.js && -./tools/svg-to-font.js && +./tools/svg-to-font.mjs && ./tools/svg-to-react-data.js && ./tools/build-react; then echo 'Build complete.' diff --git a/projects/js-packages/social-logos/tools/svg-to-font.js b/projects/js-packages/social-logos/tools/svg-to-font.mjs similarity index 86% rename from projects/js-packages/social-logos/tools/svg-to-font.js rename to projects/js-packages/social-logos/tools/svg-to-font.mjs index 8e6dee559bad0..ca95004e5f640 100755 --- a/projects/js-packages/social-logos/tools/svg-to-font.js +++ b/projects/js-packages/social-logos/tools/svg-to-font.mjs @@ -1,4 +1,15 @@ #!/usr/bin/env node + +import { spawnSync } from 'child_process'; +import fs from 'fs'; +import path from 'path'; +import process from 'process'; +import { fileURLToPath } from 'url'; +import { glob } from 'glob'; +import svg2ttf from 'svg2ttf'; +import { SVGIcons2SVGFontStream } from 'svgicons2svgfont'; +import wawoff2 from 'wawoff2'; + /* eslint-disable no-console */ const svgDir = 'build/svg-clean'; const srcSvgDir = 'src/svg'; @@ -7,17 +18,8 @@ const destFontDir = 'build/font'; const cssFile = destFontDir + '/social-logos.css'; const woff2FontFile = destFontDir + '/social-logos.woff2'; -const { spawnSync } = require( 'child_process' ); -const fs = require( 'fs' ); -const path = require( 'path' ); -const process = require( 'process' ); -const { glob } = require( 'glob' ); -const svg2ttf = require( 'svg2ttf' ); -const SVGIcons2SVGFontStream = require( 'svgicons2svgfont' ); -const wawoff2 = require( 'wawoff2' ); - // Start in the right folder. -const rootDir = __dirname + '/..'; +const rootDir = fileURLToPath( new URL( '..', import.meta.url ) ); process.chdir( rootDir ); const getCodepoint = name => { @@ -93,7 +95,7 @@ ${ cssCodepoints }*/`; // Make destination dir as needed. fs.mkdirSync( destFontDir, { recursive: true } ); -const codepoints = require( path.resolve( codepointsFile ) ); +const codepoints = JSON.parse( fs.readFileSync( path.resolve( codepointsFile ) ) ); let maxCodepoint = Math.max( ...Object.values( codepoints ) ); let fontBuffer = Buffer.alloc( 0 ); @@ -109,7 +111,7 @@ const fontStream = new SVGIcons2SVGFontStream( { fontStream .on( 'data', data => { // This concats to the font buffer each time a glyph is written. - fontBuffer = Buffer.concat( [ fontBuffer, data ] ); + fontBuffer = Buffer.concat( [ fontBuffer, Buffer.from( data ) ] ); } ) .on( 'finish', async function () { const woff2Buffer = await svg2woff2( fontBuffer ); diff --git a/projects/js-packages/partner-coupon/changelog/force-a-release b/projects/js-packages/storybook/changelog/renovate-postcss-8.x similarity index 53% rename from projects/js-packages/partner-coupon/changelog/force-a-release rename to projects/js-packages/storybook/changelog/renovate-postcss-8.x index d4ad6c7cc3379..c47cb18e82997 100644 --- a/projects/js-packages/partner-coupon/changelog/force-a-release +++ b/projects/js-packages/storybook/changelog/renovate-postcss-8.x @@ -1,4 +1,4 @@ Significance: patch Type: changed -Update dependencies. +Updated package dependencies. diff --git a/projects/js-packages/storybook/package.json b/projects/js-packages/storybook/package.json index 6ad94d97e4d6f..c56af48c67f68 100644 --- a/projects/js-packages/storybook/package.json +++ b/projects/js-packages/storybook/package.json @@ -54,7 +54,7 @@ "esbuild-loader": "3.0.1", "jest": "29.7.0", "mime-types": "2.1.35", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-loader": "6.2.0", "react": "18.3.1", "react-dom": "18.3.1", diff --git a/projects/packages/backup/changelog/force-a-release b/projects/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 similarity index 53% rename from projects/packages/backup/changelog/force-a-release rename to projects/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 index d4ad6c7cc3379..c47cb18e82997 100644 --- a/projects/packages/backup/changelog/force-a-release +++ b/projects/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 @@ -1,4 +1,4 @@ Significance: patch Type: changed -Update dependencies. +Updated package dependencies. diff --git a/projects/js-packages/svelte-data-sync-client/package.json b/projects/js-packages/svelte-data-sync-client/package.json index 4eb9fc7fd00df..2f9d27cf28c85 100644 --- a/projects/js-packages/svelte-data-sync-client/package.json +++ b/projects/js-packages/svelte-data-sync-client/package.json @@ -26,7 +26,7 @@ "devDependencies": { "@automattic/jetpack-webpack-config": "workspace:*", "@typescript-eslint/parser": "6.21.0", - "eslint": "8.57.0", + "eslint": "8.57.1", "jest": "29.7.0", "svelte": "4.2.19", "tslib": "2.5.0", diff --git a/projects/packages/backup/CHANGELOG.md b/projects/packages/backup/CHANGELOG.md index 67503b335190d..fa30ee71ad93c 100644 --- a/projects/packages/backup/CHANGELOG.md +++ b/projects/packages/backup/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.4.15] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [3.4.14] - 2024-10-14 ### Changed - Only include `wp-polyfill` as a script dependency when needed. [#39629] @@ -718,6 +722,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add API endpoints and Jetpack Backup package for managing Help… +[3.4.15]: https://github.com/Automattic/jetpack-backup/compare/v3.4.14...v3.4.15 [3.4.14]: https://github.com/Automattic/jetpack-backup/compare/v3.4.13...v3.4.14 [3.4.13]: https://github.com/Automattic/jetpack-backup/compare/v3.4.12...v3.4.13 [3.4.12]: https://github.com/Automattic/jetpack-backup/compare/v3.4.11...v3.4.12 diff --git a/projects/packages/backup/src/class-package-version.php b/projects/packages/backup/src/class-package-version.php index 57e6e4efe9e4f..de8eb1d2e432a 100644 --- a/projects/packages/backup/src/class-package-version.php +++ b/projects/packages/backup/src/class-package-version.php @@ -16,7 +16,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '3.4.14'; + const PACKAGE_VERSION = '3.4.15'; const PACKAGE_SLUG = 'backup'; diff --git a/projects/packages/blaze/CHANGELOG.md b/projects/packages/blaze/CHANGELOG.md index 490182acf3571..64f62d295a32a 100644 --- a/projects/packages/blaze/CHANGELOG.md +++ b/projects/packages/blaze/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.23.2] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.23.1] - 2024-10-14 ### Changed - Only include `wp-polyfill` as a script dependency when needed. [#39629] @@ -466,6 +470,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Updated package dependencies. [#27906] +[0.23.2]: https://github.com/automattic/jetpack-blaze/compare/v0.23.1...v0.23.2 [0.23.1]: https://github.com/automattic/jetpack-blaze/compare/v0.23.0...v0.23.1 [0.23.0]: https://github.com/automattic/jetpack-blaze/compare/v0.22.12...v0.23.0 [0.22.12]: https://github.com/automattic/jetpack-blaze/compare/v0.22.11...v0.22.12 diff --git a/projects/packages/blaze/changelog/force-a-release b/projects/packages/blaze/changelog/force-a-release deleted file mode 100644 index d4ad6c7cc3379..0000000000000 --- a/projects/packages/blaze/changelog/force-a-release +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Update dependencies. diff --git a/projects/packages/blaze/package.json b/projects/packages/blaze/package.json index d04a82d00d01d..e7552046cf583 100644 --- a/projects/packages/blaze/package.json +++ b/projects/packages/blaze/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-blaze", - "version": "0.23.1", + "version": "0.23.2", "description": "Attract high-quality traffic to your site using Blaze. Using this service, you can advertise a post or page on some of the millions of pages across WordPress.com and Tumblr from just $5 per day.", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/blaze/#readme", "bugs": { diff --git a/projects/packages/blaze/src/class-dashboard.php b/projects/packages/blaze/src/class-dashboard.php index 701fd7cbae9ea..110872540a70f 100644 --- a/projects/packages/blaze/src/class-dashboard.php +++ b/projects/packages/blaze/src/class-dashboard.php @@ -21,7 +21,7 @@ class Dashboard { * * @var string */ - const PACKAGE_VERSION = '0.23.1'; + const PACKAGE_VERSION = '0.23.2'; /** * List of dependencies needed to render the dashboard in wp-admin. diff --git a/projects/packages/changelogger/CHANGELOG.md b/projects/packages/changelogger/CHANGELOG.md index 8fada1afe9231..156ceae5c1cfd 100644 --- a/projects/packages/changelogger/CHANGELOG.md +++ b/projects/packages/changelogger/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.2.7] - 2024-10-25 +### Fixed +- When amending, do not preserve a default link. We'll want the link to be updated to the new default. [#39868] + ## [4.2.6] - 2024-08-22 ### Changed - Updated package dependencies. [#39004] @@ -244,6 +248,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Added - Initial version. +[4.2.7]: https://github.com/Automattic/jetpack-changelogger/compare/4.2.6...4.2.7 [4.2.6]: https://github.com/Automattic/jetpack-changelogger/compare/4.2.5...4.2.6 [4.2.5]: https://github.com/Automattic/jetpack-changelogger/compare/4.2.4...4.2.5 [4.2.4]: https://github.com/Automattic/jetpack-changelogger/compare/4.2.3...4.2.4 diff --git a/projects/packages/changelogger/src/Application.php b/projects/packages/changelogger/src/Application.php index d70b65acc2f0b..69ea521e20354 100644 --- a/projects/packages/changelogger/src/Application.php +++ b/projects/packages/changelogger/src/Application.php @@ -19,7 +19,7 @@ */ class Application extends SymfonyApplication { - const VERSION = '4.2.6'; + const VERSION = '4.2.7'; /** * Constructor. diff --git a/projects/packages/changelogger/src/WriteCommand.php b/projects/packages/changelogger/src/WriteCommand.php index 900167f64d328..1a23cbdf38090 100644 --- a/projects/packages/changelogger/src/WriteCommand.php +++ b/projects/packages/changelogger/src/WriteCommand.php @@ -412,7 +412,11 @@ protected function doAmendChanges( InputInterface $input, OutputInterface $outpu $input->setOption( 'epilogue', $latest->getEpilogue() ); } if ( $input->getOption( 'link' ) === null ) { - $input->setOption( 'link', $latest->getLink() ); + $oldLink = $latest->getLink(); + $defaultLink = $changelog->getLatestEntry() ? Config::link( $changelog->getLatestEntry()->getVersion(), $latest->getVersion() ) : null; + if ( $oldLink !== $defaultLink ) { + $input->setOption( 'link', $latest->getLink() ); + } } } else { $output->writeln( 'No version to amend, ignoring --amend.', OutputInterface::VERBOSITY_DEBUG ); diff --git a/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php b/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php index ebb2e105351a6..1ea6e7d0c1f6d 100644 --- a/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php +++ b/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php @@ -749,6 +749,54 @@ public function provideExecute() { true, "# Changelog\n\n## 1.0.1 - $date\n\nPrologue for v1.0.1\n\n### Added\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n", ), + 'Amend, beta to release' => array( + array( '--amend' => true ), + array( + 'composer.json' => array( 'link-template' => 'https://example.org/diff/${old}..${new}' ), + 'changes' => array(), + 'changelog' => "# Changelog\n\n## [1.0.1-beta] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1-beta]: https://example.org/new-link\n", + ), + array( 'Y' ), + 0, + array( + '{^No changes were found! Proceed\? \[y/N\] $}m', + ), + true, + "# Changelog\n\n## [1.0.1] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1]: https://example.org/new-link\n", + ), + 'Amend, ignore default link' => array( + array( '--amend' => true ), + array( + 'composer.json' => array( 'link-template' => 'https://example.org/diff/${old}..${new}' ), + 'changes' => array(), + 'changelog' => "# Changelog\n\n## [1.0.1-beta] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1-beta]: https://example.org/diff/1.0.0..1.0.1-beta\n", + ), + array( 'Y' ), + 0, + array( + '{^No changes were found! Proceed\? \[y/N\] $}m', + ), + true, + "# Changelog\n\n## [1.0.1] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1]: https://example.org/diff/1.0.0..1.0.1\n", + ), + 'Amend, manually override default link' => array( + array( + '--amend' => true, + '--link' => 'https://example.org/new-link', + ), + array( + 'composer.json' => array( 'link-template' => 'https://example.org/diff/${old}..${new}' ), + 'changes' => array(), + 'changelog' => "# Changelog\n\n## [1.0.1-beta] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1-beta]: https://example.org/diff/1.0.0..1.0.1-beta\n", + ), + array( 'Y' ), + 0, + array( + '{^No changes were found! Proceed\? \[y/N\] $}m', + ), + true, + "# Changelog\n\n## [1.0.1] - $date\n\nPrologue for v1.0.1\n\n### Added\n- New stuff.\n- Stuff.\n- ZZZ.\n\n### Removed\n- Other stuff.\n\n### Fixed\n- Broken stuff.\n\nEpilogue for v1.0.1\n\n## 1.0.0 - 2021-02-23\n\n- Initial release.\n\n[1.0.1]: https://example.org/new-link\n", + ), '--use-version invalid' => array( array( '--use-version' => '2.0' ), diff --git a/projects/js-packages/publicize-components/changelog/force-a-release b/projects/packages/classic-theme-helper/changelog/renovate-postcss-8.x similarity index 53% rename from projects/js-packages/publicize-components/changelog/force-a-release rename to projects/packages/classic-theme-helper/changelog/renovate-postcss-8.x index d4ad6c7cc3379..c47cb18e82997 100644 --- a/projects/js-packages/publicize-components/changelog/force-a-release +++ b/projects/packages/classic-theme-helper/changelog/renovate-postcss-8.x @@ -1,4 +1,4 @@ Significance: patch Type: changed -Update dependencies. +Updated package dependencies. diff --git a/projects/packages/classic-theme-helper/package.json b/projects/packages/classic-theme-helper/package.json index 6e9427b2d6658..7076d527b2bbd 100644 --- a/projects/packages/classic-theme-helper/package.json +++ b/projects/packages/classic-theme-helper/package.json @@ -31,7 +31,7 @@ "@wordpress/browserslist-config": "6.9.0", "autoprefixer": "10.4.14", "glob": "10.4.1", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-loader": "6.2.0", "sass": "1.64.1", "sass-loader": "12.4.0", diff --git a/projects/packages/connection/CHANGELOG.md b/projects/packages/connection/CHANGELOG.md index b4755a410b998..afb4d5b98596d 100644 --- a/projects/packages/connection/CHANGELOG.md +++ b/projects/packages/connection/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.1.5] - 2024-10-25 +### Changed +- Internal updates. + +## [5.1.4] - 2024-10-21 +### Changed +- SSO: optimize 'admin_notices' action callback. [#39811] + ## [5.1.3] - 2024-10-10 ### Changed - Updated package dependencies. @@ -1226,6 +1234,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Separate the connection library into its own package. +[5.1.5]: https://github.com/Automattic/jetpack-connection/compare/v5.1.4...v5.1.5 +[5.1.4]: https://github.com/Automattic/jetpack-connection/compare/v5.1.3...v5.1.4 [5.1.3]: https://github.com/Automattic/jetpack-connection/compare/v5.1.2...v5.1.3 [5.1.2]: https://github.com/Automattic/jetpack-connection/compare/v5.1.1...v5.1.2 [5.1.1]: https://github.com/Automattic/jetpack-connection/compare/v5.1.0...v5.1.1 diff --git a/projects/packages/connection/changelog/update-sso-optimize-admin-notices-callback b/projects/packages/connection/changelog/update-sso-optimize-admin-notices-callback deleted file mode 100644 index ae5bb946df85e..0000000000000 --- a/projects/packages/connection/changelog/update-sso-optimize-admin-notices-callback +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -SSO: optimize 'admin_notices' action callback. diff --git a/projects/packages/connection/src/class-connection-assets.php b/projects/packages/connection/src/class-connection-assets.php index f231aa40b7b9e..93daae1b536f7 100644 --- a/projects/packages/connection/src/class-connection-assets.php +++ b/projects/packages/connection/src/class-connection-assets.php @@ -25,6 +25,9 @@ public static function configure() { /** * Register assets. + * + * NOTICE: Please think twice before including Connection scripts in the frontend. + * Those scripts are intended to be used in WP admin area. */ public static function register_assets() { diff --git a/projects/packages/connection/src/class-package-version.php b/projects/packages/connection/src/class-package-version.php index a11e92bf93e7b..9797fa57d5dfc 100644 --- a/projects/packages/connection/src/class-package-version.php +++ b/projects/packages/connection/src/class-package-version.php @@ -12,7 +12,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '5.1.3'; + const PACKAGE_VERSION = '5.1.5'; const PACKAGE_SLUG = 'connection'; diff --git a/projects/packages/forms/CHANGELOG.md b/projects/packages/forms/CHANGELOG.md index 6136f9063e1f2..2357526c70e25 100644 --- a/projects/packages/forms/CHANGELOG.md +++ b/projects/packages/forms/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.33.4] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.33.3] - 2024-10-14 ### Changed - Only include `wp-polyfill` as a script dependency when needed. [#39629] @@ -689,6 +693,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a new jetpack/forms package [#28409] - Added a public load_contact_form method for initializing the contact form module. [#28416] +[0.33.4]: https://github.com/automattic/jetpack-forms/compare/v0.33.3...v0.33.4 [0.33.3]: https://github.com/automattic/jetpack-forms/compare/v0.33.2...v0.33.3 [0.33.2]: https://github.com/automattic/jetpack-forms/compare/v0.33.1...v0.33.2 [0.33.1]: https://github.com/automattic/jetpack-forms/compare/v0.33.0...v0.33.1 diff --git a/projects/packages/forms/changelog/force-a-release b/projects/packages/forms/changelog/force-a-release deleted file mode 100644 index d4ad6c7cc3379..0000000000000 --- a/projects/packages/forms/changelog/force-a-release +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Update dependencies. diff --git a/projects/packages/forms/changelog/renovate-postcss-8.x b/projects/packages/forms/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/packages/forms/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/forms/package.json b/projects/packages/forms/package.json index 8e7636ff74aae..3b1f19d4240dd 100644 --- a/projects/packages/forms/package.json +++ b/projects/packages/forms/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-forms", - "version": "0.33.3", + "version": "0.33.4", "description": "Jetpack Forms", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/forms/#readme", "bugs": { @@ -76,7 +76,7 @@ "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jquery": "3.6.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-loader": "6.2.0", "sass": "1.64.1", "sass-loader": "12.4.0", diff --git a/projects/packages/forms/src/class-jetpack-forms.php b/projects/packages/forms/src/class-jetpack-forms.php index d40c01829a347..d056158932ef0 100644 --- a/projects/packages/forms/src/class-jetpack-forms.php +++ b/projects/packages/forms/src/class-jetpack-forms.php @@ -15,7 +15,7 @@ */ class Jetpack_Forms { - const PACKAGE_VERSION = '0.33.3'; + const PACKAGE_VERSION = '0.33.4'; /** * Load the contact form module. diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-smp-special-chars b/projects/packages/jetpack-mu-wpcom/changelog/fix-smp-special-chars new file mode 100644 index 0000000000000..0bfb660b10d0f --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-smp-special-chars @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Site Management Panel: fix site name encoding display diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-verbum-comments-resize-logic b/projects/packages/jetpack-mu-wpcom/changelog/fix-verbum-comments-resize-logic new file mode 100644 index 0000000000000..1ddd3df5cd6c6 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-verbum-comments-resize-logic @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Update Verbum Comments resize logic diff --git a/projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php b/projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php index b7f9a707def63..397838493877c 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php @@ -175,6 +175,7 @@ public function enqueue_assets() { $jetpack_username = isset( $__get['hc_username'] ) && is_string( $__get['hc_username'] ) ? $__get['hc_username'] : ''; $jetpack_user_id = isset( $__get['hc_userid'] ) && is_numeric( $__get['hc_userid'] ) ? (int) $__get['hc_userid'] : 0; $jetpack_signature = isset( $__get['sig'] ) && is_string( $__get['sig'] ) ? $__get['sig'] : ''; + $iframe_unique_id = isset( $__get['iframe_unique_id'] ) && is_numeric( $__get['iframe_unique_id'] ) ? (int) $__get['iframe_unique_id'] : 0; list( $jetpack_avatar ) = wpcom_get_avatar_url( "$email_hash@md5.gravatar.com" ); $comment_registration_enabled = boolval( get_blog_option( $this->blog_id, 'comment_registration' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended @@ -255,6 +256,7 @@ public function enqueue_assets() { 'verbumBundleUrl' => plugins_url( 'dist/index.js', __FILE__ ), 'isRTL' => is_rtl( $locale ), 'vbeCacheBuster' => $vbe_cache_buster, + 'iframeUniqueId' => $iframe_unique_id, ) ), 'before' diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-dashboard-widgets/wpcom-dashboard-widgets.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-dashboard-widgets/wpcom-dashboard-widgets.php index c627f966f295a..5312a26f24cde 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-dashboard-widgets/wpcom-dashboard-widgets.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-dashboard-widgets/wpcom-dashboard-widgets.php @@ -48,7 +48,7 @@ function enqueue_wpcom_dashboard_widgets() { $data = wp_json_encode( array( - 'siteName' => get_bloginfo( 'name' ), + 'siteName' => wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), 'siteDomain' => wp_parse_url( home_url(), PHP_URL_HOST ), 'siteIconUrl' => get_site_icon_url( 38 ), ) diff --git a/projects/packages/masterbar/changelog/renovate-postcss-8.x b/projects/packages/masterbar/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/packages/masterbar/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/masterbar/package.json b/projects/packages/masterbar/package.json index 5c69b3a94be1d..c89ec2dafa2f2 100644 --- a/projects/packages/masterbar/package.json +++ b/projects/packages/masterbar/package.json @@ -36,7 +36,7 @@ "@wordpress/browserslist-config": "6.9.0", "autoprefixer": "10.4.14", "glob": "10.4.1", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-loader": "6.2.0", "sass": "1.64.1", "sass-loader": "12.4.0", diff --git a/projects/packages/plans/CHANGELOG.md b/projects/packages/plans/CHANGELOG.md index bdb192c71b67d..1d1d39451f04c 100644 --- a/projects/packages/plans/CHANGELOG.md +++ b/projects/packages/plans/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.12] - 2024-10-21 +### Fixed +- Fixed the site features for Simple sites. [#39817] + ## [0.4.11] - 2024-09-23 ### Changed - Update dependencies. @@ -154,6 +158,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated - Moved the options class into Connection. [#24095] +[0.4.12]: https://github.com/Automattic/jetpack-plans/compare/v0.4.11...v0.4.12 [0.4.11]: https://github.com/Automattic/jetpack-plans/compare/v0.4.10...v0.4.11 [0.4.10]: https://github.com/Automattic/jetpack-plans/compare/v0.4.9...v0.4.10 [0.4.9]: https://github.com/Automattic/jetpack-plans/compare/v0.4.8...v0.4.9 diff --git a/projects/packages/plans/changelog/fix-site-specific-features-for-simple-sites b/projects/packages/plans/changelog/fix-site-specific-features-for-simple-sites deleted file mode 100644 index 8d0bfe4ddc2c9..0000000000000 --- a/projects/packages/plans/changelog/fix-site-specific-features-for-simple-sites +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Fixed the site features for Simple sites diff --git a/projects/packages/plans/package.json b/projects/packages/plans/package.json index 9b34af05f76c4..5f135800276bc 100644 --- a/projects/packages/plans/package.json +++ b/projects/packages/plans/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-plans", - "version": "0.4.11", + "version": "0.4.12", "description": "Fetch information about Jetpack Plans from wpcom", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/plans/#readme", "bugs": { diff --git a/projects/packages/publicize/CHANGELOG.md b/projects/packages/publicize/CHANGELOG.md index 66c737591d6e3..53a9ad0cba00b 100644 --- a/projects/packages/publicize/CHANGELOG.md +++ b/projects/packages/publicize/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.55.0] - 2024-10-25 +### Fixed +- Social: Fix Bsky profile URL [#39849] + +## [0.54.4] - 2024-10-21 +### Changed +- Initial State: Migrated URLs to script data. [#39797] + +### Fixed +- Fixed the site features for Simple sites. [#39817] + ## [0.54.3] - 2024-10-14 ### Changed - Updated package dependencies. [#39707] @@ -729,6 +740,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated package dependencies. - Update package.json metadata. +[0.55.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.4...v0.55.0 +[0.54.4]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.3...v0.54.4 [0.54.3]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.2...v0.54.3 [0.54.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.1...v0.54.2 [0.54.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.54.0...v0.54.1 diff --git a/projects/packages/publicize/changelog/fix-site-specific-features-for-simple-sites b/projects/packages/publicize/changelog/fix-site-specific-features-for-simple-sites deleted file mode 100644 index 8d0bfe4ddc2c9..0000000000000 --- a/projects/packages/publicize/changelog/fix-site-specific-features-for-simple-sites +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Fixed the site features for Simple sites diff --git a/projects/packages/publicize/changelog/fix-social-bsky-profile-url b/projects/packages/publicize/changelog/fix-social-bsky-profile-url deleted file mode 100644 index ebe3332ec44de..0000000000000 --- a/projects/packages/publicize/changelog/fix-social-bsky-profile-url +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fixed - -Social: Fix Bsky profile URL diff --git a/projects/packages/publicize/changelog/update-social-initial-state-migrate-urls-on-social-admin b/projects/packages/publicize/changelog/update-social-initial-state-migrate-urls-on-social-admin deleted file mode 100644 index c23ee0fbdc59a..0000000000000 --- a/projects/packages/publicize/changelog/update-social-initial-state-migrate-urls-on-social-admin +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Initial State: Migrated URLs to script data diff --git a/projects/packages/publicize/composer.json b/projects/packages/publicize/composer.json index 7eca829441cb7..b3f71236d8419 100644 --- a/projects/packages/publicize/composer.json +++ b/projects/packages/publicize/composer.json @@ -68,7 +68,7 @@ "link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "0.54.x-dev" + "dev-trunk": "0.55.x-dev" } }, "config": { diff --git a/projects/packages/publicize/package.json b/projects/packages/publicize/package.json index 1a1a64708c3fb..0ae20c479ae66 100644 --- a/projects/packages/publicize/package.json +++ b/projects/packages/publicize/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-publicize", - "version": "0.54.3", + "version": "0.55.0", "description": "Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/publicize/#readme", "bugs": { diff --git a/projects/packages/search/CHANGELOG.md b/projects/packages/search/CHANGELOG.md index c21c38da6ba3c..2425246b79d41 100644 --- a/projects/packages/search/CHANGELOG.md +++ b/projects/packages/search/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.45.9] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.45.8] - 2024-10-14 ### Changed - Updated package dependencies. [#39707] @@ -1067,6 +1071,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated package dependencies. - Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't. +[0.45.9]: https://github.com/Automattic/jetpack-search/compare/v0.45.8...v0.45.9 [0.45.8]: https://github.com/Automattic/jetpack-search/compare/v0.45.7...v0.45.8 [0.45.7]: https://github.com/Automattic/jetpack-search/compare/v0.45.6...v0.45.7 [0.45.6]: https://github.com/Automattic/jetpack-search/compare/v0.45.5...v0.45.6 diff --git a/projects/packages/search/changelog/force-a-release b/projects/packages/search/changelog/force-a-release deleted file mode 100644 index d4ad6c7cc3379..0000000000000 --- a/projects/packages/search/changelog/force-a-release +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Update dependencies. diff --git a/projects/packages/search/changelog/renovate-postcss-8.x b/projects/packages/search/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/packages/search/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index 118b947057b5d..ecb065e76f714 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -1,6 +1,6 @@ { "name": "jetpack-search", - "version": "0.45.8", + "version": "0.45.9", "description": "Package for Jetpack Search products", "main": "main.js", "directories": { @@ -84,7 +84,7 @@ "core-js": "3.38.1", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-custom-properties": "12.1.7", "postcss-loader": "6.2.0", "prettier": "npm:wp-prettier@3.0.3", diff --git a/projects/packages/search/src/class-package.php b/projects/packages/search/src/class-package.php index 91a310f92ca59..38fb525e2aa66 100644 --- a/projects/packages/search/src/class-package.php +++ b/projects/packages/search/src/class-package.php @@ -11,7 +11,7 @@ * Search package general information */ class Package { - const VERSION = '0.45.8'; + const VERSION = '0.45.9'; const SLUG = 'search'; /** diff --git a/projects/packages/stats-admin/CHANGELOG.md b/projects/packages/stats-admin/CHANGELOG.md index 95c88e00e7a68..fc9c6b475970d 100644 --- a/projects/packages/stats-admin/CHANGELOG.md +++ b/projects/packages/stats-admin/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.22.3 - 2024-10-21 +### Changed +- JITM: Expose function to render message. [#39714] + ## 0.22.2 - 2024-10-14 ### Fixed - Added missing fields for stats single post endpoint. [#39691] diff --git a/projects/packages/stats-admin/changelog/update-integration-jitm-in-stats b/projects/packages/stats-admin/changelog/update-integration-jitm-in-stats deleted file mode 100644 index d9779842c1cc7..0000000000000 --- a/projects/packages/stats-admin/changelog/update-integration-jitm-in-stats +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -JITM: expose function to render message diff --git a/projects/packages/stats-admin/changelog/update-use-option-value-instead-of-transient b/projects/packages/stats-admin/changelog/update-use-option-value-instead-of-transient new file mode 100644 index 0000000000000..6e6660e388644 --- /dev/null +++ b/projects/packages/stats-admin/changelog/update-use-option-value-instead-of-transient @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Odyssey Stats cache busting: use optioin instead of transient diff --git a/projects/packages/stats-admin/package.json b/projects/packages/stats-admin/package.json index 617e65e29fc7e..d0a9302a24fa1 100644 --- a/projects/packages/stats-admin/package.json +++ b/projects/packages/stats-admin/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-stats-admin", - "version": "0.22.2", + "version": "0.22.3", "description": "Stats Dashboard", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/stats-admin/#readme", "bugs": { diff --git a/projects/packages/stats-admin/src/class-main.php b/projects/packages/stats-admin/src/class-main.php index 66b53734e7b71..34c931bdb5de8 100644 --- a/projects/packages/stats-admin/src/class-main.php +++ b/projects/packages/stats-admin/src/class-main.php @@ -22,7 +22,7 @@ class Main { /** * Stats version. */ - const VERSION = '0.22.2'; + const VERSION = '0.22.3'; /** * Singleton Main instance. diff --git a/projects/packages/stats-admin/src/class-odyssey-assets.php b/projects/packages/stats-admin/src/class-odyssey-assets.php index 8117e650ae5fa..98d59fc3bb3ad 100644 --- a/projects/packages/stats-admin/src/class-odyssey-assets.php +++ b/projects/packages/stats-admin/src/class-odyssey-assets.php @@ -75,36 +75,58 @@ public function load_admin_scripts( $asset_handle, $asset_name, $options = array /** * Returns cache buster string for assets. * Development mode doesn't need this, as it's handled by `Assets` class. + * + * @return string */ protected function get_cdn_asset_cache_buster() { + $now_in_ms = floor( microtime( true ) * 1000 ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( isset( $_GET['force_refresh'] ) ) { - set_transient( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, floor( microtime( true ) * 1000 ), 15 * MINUTE_IN_SECONDS ); + update_option( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, $this->get_cache_buster_option_value( $now_in_ms ), false ); } // Use cached cache buster in production. - $remote_asset_version = get_transient( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY ); + $remote_asset_version = get_option( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY ); if ( ! empty( $remote_asset_version ) ) { - return $remote_asset_version; + $remote_asset_version = json_decode( $remote_asset_version, true ); + // If cache buster is cached and not expired (valid in 15 min), return it. + if ( ! empty( $remote_asset_version['cache_buster'] ) && $remote_asset_version['cached_at'] > $now_in_ms - MINUTE_IN_SECONDS * 1000 * 15 ) { + return $remote_asset_version['cache_buster']; + } } // If no cached cache buster, we fetch it from CDN and set to transient. - $response = wp_remote_get( sprintf( self::ODYSSEY_CDN_URL, self::ODYSSEY_STATS_VERSION, 'build_meta.json?t=' . time() ), array( 'timeout' => 5 ) ); + $response = wp_remote_get( sprintf( self::ODYSSEY_CDN_URL, self::ODYSSEY_STATS_VERSION, 'build_meta.json?t=' . $now_in_ms ), array( 'timeout' => 5 ) ); if ( is_wp_error( $response ) ) { - // fallback to the package version. - return Main::VERSION; + // fallback to current timestamp. + return (string) $now_in_ms; } $build_meta = json_decode( wp_remote_retrieve_body( $response ), true ); if ( ! empty( $build_meta['cache_buster'] ) ) { // Cache the cache buster for 15 mins. - set_transient( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, $build_meta['cache_buster'], 15 * MINUTE_IN_SECONDS ); + update_option( self::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, $this->get_cache_buster_option_value( $build_meta['cache_buster'] ), false ); return $build_meta['cache_buster']; } - // fallback to the package version. - return Main::VERSION; + // fallback to current timestamp. + return (string) $now_in_ms; + } + + /** + * Get the cache buster option value. + * + * @param string|int|float $cache_buster The cache buster. + * @return string|false + */ + protected function get_cache_buster_option_value( $cache_buster ) { + return wp_json_encode( + array( + 'cache_buster' => (string) $cache_buster, + 'cached_at' => floor( microtime( true ) * 1000 ), // milliseconds. + ) + ); } } diff --git a/projects/packages/stats-admin/tests/php/class-test-case.php b/projects/packages/stats-admin/tests/php/class-test-case.php index e6b919b204a4f..0d21e264cf842 100644 --- a/projects/packages/stats-admin/tests/php/class-test-case.php +++ b/projects/packages/stats-admin/tests/php/class-test-case.php @@ -60,6 +60,7 @@ public function set_up() { add_filter( 'jetpack_options', array( $this, 'mock_jetpack_site_connection_options' ), 10, 2 ); add_filter( 'pre_http_request', array( $this, 'plan_http_response_fixture' ), 10, 3 ); + delete_option( Odyssey_Assets::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY ); } /** @@ -76,6 +77,7 @@ public function tear_down() { remove_filter( 'pre_http_request', array( $this, 'plan_http_response_fixture' ) ); remove_filter( 'jetpack_options', array( $this, 'mock_jetpack_site_connection_options' ) ); + delete_option( Odyssey_Assets::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY ); } /** diff --git a/projects/packages/stats-admin/tests/php/test-odyssey-assets.php b/projects/packages/stats-admin/tests/php/test-odyssey-assets.php index f99eca36ad1fe..14e1fb5c3bec9 100644 --- a/projects/packages/stats-admin/tests/php/test-odyssey-assets.php +++ b/projects/packages/stats-admin/tests/php/test-odyssey-assets.php @@ -2,6 +2,7 @@ namespace Automattic\Jetpack\Stats_Admin; use Automattic\Jetpack\Stats_Admin\Test_Case as Stats_Test_Case; +use WP_Error; /** * Unit tests for the Odyssey_Assets class. @@ -9,13 +10,106 @@ * @package automattic/jetpack-stats-admin */ class Test_Odyssey_Assets extends Stats_Test_Case { + /** * Test remote cache buster. */ public function test_get_cdn_asset_cache_buster() { + $this->assertEquals( 'calypso-4917-8664-g72a154d63a', $this->get_cdn_asset_cache_buster_callable() ); + } + + /** + * Test remote cache buster remote error. + */ + public function test_get_cdn_asset_cache_buster_remote_error() { + add_filter( 'pre_http_request', array( $this, 'break_cdn_cache_buster_request' ), 15, 3 ); + $this->assertEquals( time(), floor( $this->get_cdn_asset_cache_buster_callable() / 1000 ) ); + remove_filter( 'pre_http_request', array( $this, 'break_cdn_cache_buster_request' ), 15 ); + } + + /** + * Test already cached cache buster. + */ + public function test_get_cdn_asset_cache_buster_already_cached() { + update_option( + Odyssey_Assets::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, + wp_json_encode( + array( + 'cache_buster' => 'calypso-4917-8664-123456', + 'cached_at' => floor( microtime( true ) * 1000 ), // milliseconds. + ) + ), + false + ); + $this->assertEquals( 'calypso-4917-8664-123456', $this->get_cdn_asset_cache_buster_callable() ); + } + + /** + * Test already cached cache buster expired. + */ + public function test_get_cdn_asset_cache_buster_already_cached_expired() { + update_option( + Odyssey_Assets::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, + wp_json_encode( + array( + 'cache_buster' => 'calypso-4917-8664-123456', + 'cached_at' => floor( microtime( true ) * 1000 - MINUTE_IN_SECONDS * 1000 * 20 ), // milliseconds. + ) + ), + false + ); + $this->assertEquals( 'calypso-4917-8664-g72a154d63a', $this->get_cdn_asset_cache_buster_callable() ); + } + + /** + * Test already cached cache buster expired and failed to fetch new one. + */ + public function test_get_cdn_asset_cache_buster_failed_to_fetch() { + add_filter( 'pre_http_request', array( $this, 'break_cdn_cache_buster_request' ), 15, 3 ); + update_option( + Odyssey_Assets::ODYSSEY_STATS_CACHE_BUSTER_CACHE_KEY, + wp_json_encode( + array( + 'cache_buster' => 'calypso-4917-8664-123456', + 'cached_at' => floor( microtime( true ) * 1000 - MINUTE_IN_SECONDS * 1000 * 20 ), // milliseconds. + ) + ), + false + ); + $this->assertEquals( time(), floor( $this->get_cdn_asset_cache_buster_callable() / 1000 ) ); + remove_filter( 'pre_http_request', array( $this, 'break_cdn_cache_buster_request' ), 15 ); + } + + /** + * Test force refresh cache buster. + */ + public function test_get_cdn_asset_cache_buster_force_refresh_expired() { + $_GET['force_refresh'] = 1; + $this->assertEquals( time(), floor( $this->get_cdn_asset_cache_buster_callable() / 1000 ) ); + } + + /** + * Test remote cache buster. + * + * @param mixed $response The response array. + * @param mixed $parsed_args The parsed args. + * @param mixed $url The URL. + * @return WP_Error | void + */ + public function break_cdn_cache_buster_request( $response, $parsed_args, $url ) { + if ( strpos( $url, '/build_meta.json' ) !== false ) { + return new WP_Error( 500, 'Internal Server Error' ); + } + } + + /** + * Get CDN asset cache buster. + */ + protected function get_cdn_asset_cache_buster_callable() { $odyssey_assets = new Odyssey_Assets(); $get_cdn_asset_cache_buster = new \ReflectionMethod( $odyssey_assets, 'get_cdn_asset_cache_buster' ); $get_cdn_asset_cache_buster->setAccessible( true ); - $this->assertEquals( 'calypso-4917-8664-g72a154d63a', $get_cdn_asset_cache_buster->invoke( $odyssey_assets ) ); + + return $get_cdn_asset_cache_buster->invoke( $odyssey_assets ); } } diff --git a/projects/packages/sync/CHANGELOG.md b/projects/packages/sync/CHANGELOG.md index 963e67ed56760..3eb956e5ec6e5 100644 --- a/projects/packages/sync/CHANGELOG.md +++ b/projects/packages/sync/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.14.3] - 2024-10-25 +### Fixed +- Hooks: Hook init_sync_cron_jobs into init to ensure translation loading within the function is not triggered too early. [#39841] + ## [3.14.2] - 2024-10-15 ### Changed - Jetpack Sync: Update default Post Type Blacklist [#39770] @@ -1318,6 +1322,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Packages: Move sync to a classmapped package +[3.14.3]: https://github.com/Automattic/jetpack-sync/compare/v3.14.2...v3.14.3 [3.14.2]: https://github.com/Automattic/jetpack-sync/compare/v3.14.1...v3.14.2 [3.14.1]: https://github.com/Automattic/jetpack-sync/compare/v3.14.0...v3.14.1 [3.14.0]: https://github.com/Automattic/jetpack-sync/compare/v3.13.2...v3.14.0 diff --git a/projects/packages/sync/changelog/revert-39658-update-jetpack-sync-whitelist b/projects/packages/sync/changelog/revert-39658-update-jetpack-sync-whitelist deleted file mode 100644 index 59df2569689e4..0000000000000 --- a/projects/packages/sync/changelog/revert-39658-update-jetpack-sync-whitelist +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: removed -Comment: Revert "Jetpack Sync: Add 'woocommerce_analytics_first_activation' in options' whitelist" - - diff --git a/projects/packages/sync/src/class-actions.php b/projects/packages/sync/src/class-actions.php index 2769030b4e68e..fb09385827392 100644 --- a/projects/packages/sync/src/class-actions.php +++ b/projects/packages/sync/src/class-actions.php @@ -116,7 +116,7 @@ public static function init() { } if ( self::sync_via_cron_allowed() ) { - self::init_sync_cron_jobs(); + add_action( 'init', array( __CLASS__, 'init_sync_cron_jobs' ), 1 ); } elseif ( wp_next_scheduled( 'jetpack_sync_cron' ) ) { self::clear_sync_cron_jobs(); } diff --git a/projects/packages/sync/src/class-package-version.php b/projects/packages/sync/src/class-package-version.php index d028b2ae59613..ac647f5064ad9 100644 --- a/projects/packages/sync/src/class-package-version.php +++ b/projects/packages/sync/src/class-package-version.php @@ -12,7 +12,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '3.14.2'; + const PACKAGE_VERSION = '3.14.3'; const PACKAGE_SLUG = 'sync'; diff --git a/projects/packages/videopress/CHANGELOG.md b/projects/packages/videopress/CHANGELOG.md index ac6c363f35e82..96d1d13f498a4 100644 --- a/projects/packages/videopress/CHANGELOG.md +++ b/projects/packages/videopress/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.24.13] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.24.12] - 2024-10-14 ### Added - Add tracks to connection banner. [#39732] @@ -1467,6 +1471,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Created empty package [#24952] +[0.24.13]: https://github.com/Automattic/jetpack-videopress/compare/v0.24.12...v0.24.13 [0.24.12]: https://github.com/Automattic/jetpack-videopress/compare/v0.24.11...v0.24.12 [0.24.11]: https://github.com/Automattic/jetpack-videopress/compare/v0.24.10...v0.24.11 [0.24.10]: https://github.com/Automattic/jetpack-videopress/compare/v0.24.9...v0.24.10 diff --git a/projects/packages/videopress/changelog/force-a-release b/projects/packages/videopress/changelog/force-a-release deleted file mode 100644 index d4ad6c7cc3379..0000000000000 --- a/projects/packages/videopress/changelog/force-a-release +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Update dependencies. diff --git a/projects/packages/videopress/changelog/renovate-postcss-8.x b/projects/packages/videopress/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/packages/videopress/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/videopress/changelog/update-hooks-prevent-doing-it-wrong-notice b/projects/packages/videopress/changelog/update-hooks-prevent-doing-it-wrong-notice new file mode 100644 index 0000000000000..18dbc98c689ab --- /dev/null +++ b/projects/packages/videopress/changelog/update-hooks-prevent-doing-it-wrong-notice @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Admin: Changed initialization load order for menu items to prevent translation error. diff --git a/projects/packages/videopress/package.json b/projects/packages/videopress/package.json index ad6b24972bdd9..51f8d659df3c3 100644 --- a/projects/packages/videopress/package.json +++ b/projects/packages/videopress/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-videopress", - "version": "0.24.12", + "version": "0.24.13", "description": "VideoPress package", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/videopress/#readme", "bugs": { @@ -44,7 +44,7 @@ "copy-webpack-plugin": "11.0.0", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-custom-properties": "12.1.7", "postcss-loader": "6.2.0", "require-from-string": "2.0.2", diff --git a/projects/packages/videopress/src/class-admin-ui.php b/projects/packages/videopress/src/class-admin-ui.php index ef5182a691076..e934b7cd4a4ba 100644 --- a/projects/packages/videopress/src/class-admin-ui.php +++ b/projects/packages/videopress/src/class-admin-ui.php @@ -34,6 +34,23 @@ class Admin_UI { * @return void */ public static function init() { + + add_action( 'admin_menu', array( __CLASS__, 'enable_menu' ) ); + + add_action( 'admin_footer-upload.php', array( __CLASS__, 'attachment_details_two_column_template' ) ); + add_action( 'admin_footer-post.php', array( __CLASS__, 'attachment_details_template' ), 20 ); + + add_filter( 'get_edit_post_link', array( __CLASS__, 'edit_video_link' ), 10, 3 ); + + add_action( 'admin_init', array( __CLASS__, 'remove_jetpack_hooks' ) ); + } + + /** + * Enable the menu, separately to init due to translations needing to run early for the page suffix. + * + * @return void + */ + public static function enable_menu() { $page_suffix = Admin_Menu::add_menu( __( 'Jetpack VideoPress', 'jetpack-videopress-pkg' ), _x( 'VideoPress', 'The Jetpack VideoPress product name, without the Jetpack prefix', 'jetpack-videopress-pkg' ), @@ -43,13 +60,6 @@ public static function init() { 3 ); add_action( 'load-' . $page_suffix, array( __CLASS__, 'admin_init' ) ); - - add_action( 'admin_footer-upload.php', array( __CLASS__, 'attachment_details_two_column_template' ) ); - add_action( 'admin_footer-post.php', array( __CLASS__, 'attachment_details_template' ), 20 ); - - add_filter( 'get_edit_post_link', array( __CLASS__, 'edit_video_link' ), 10, 3 ); - - add_action( 'admin_init', array( __CLASS__, 'remove_jetpack_hooks' ) ); } /** diff --git a/projects/packages/videopress/src/class-package-version.php b/projects/packages/videopress/src/class-package-version.php index e076aa95377d6..dc3f8ec1b1335 100644 --- a/projects/packages/videopress/src/class-package-version.php +++ b/projects/packages/videopress/src/class-package-version.php @@ -11,7 +11,7 @@ * The Package_Version class. */ class Package_Version { - const PACKAGE_VERSION = '0.24.12'; + const PACKAGE_VERSION = '0.24.13'; const PACKAGE_SLUG = 'videopress'; diff --git a/projects/packages/wordads/CHANGELOG.md b/projects/packages/wordads/CHANGELOG.md index 27cf0341b9e87..d25e4089cd111 100644 --- a/projects/packages/wordads/CHANGELOG.md +++ b/projects/packages/wordads/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.37] - 2024-10-21 +### Changed +- Update dependencies. [#39781] + ## [0.3.36] - 2024-10-14 ### Changed - Updated package dependencies. [#39707] @@ -426,6 +430,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - PHPCS: Fix `WordPress.Security.ValidatedSanitizedInput` - Updated package dependencies. +[0.3.37]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.36...v0.3.37 [0.3.36]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.35...v0.3.36 [0.3.35]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.34...v0.3.35 [0.3.34]: https://github.com/Automattic/jetpack-wordads/compare/v0.3.33...v0.3.34 diff --git a/projects/packages/wordads/changelog/force-a-release b/projects/packages/wordads/changelog/force-a-release deleted file mode 100644 index d4ad6c7cc3379..0000000000000 --- a/projects/packages/wordads/changelog/force-a-release +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Update dependencies. diff --git a/projects/packages/wordads/package.json b/projects/packages/wordads/package.json index 27f9ca2e57fab..410b3d6c90e4a 100644 --- a/projects/packages/wordads/package.json +++ b/projects/packages/wordads/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-wordads", - "version": "0.3.36", + "version": "0.3.37", "description": "Earn income by allowing Jetpack to display high quality ads.", "main": "main.js", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/wordads/#readme", diff --git a/projects/packages/wordads/src/class-package.php b/projects/packages/wordads/src/class-package.php index 3d4ee760a8709..547d26cc1b6d7 100644 --- a/projects/packages/wordads/src/class-package.php +++ b/projects/packages/wordads/src/class-package.php @@ -11,7 +11,7 @@ * WordAds package general information */ class Package { - const VERSION = '0.3.36'; + const VERSION = '0.3.37'; const SLUG = 'wordads'; /** diff --git a/projects/plugins/automattic-for-agencies-client/changelog/update-tested-to-6-7 b/projects/plugins/automattic-for-agencies-client/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/automattic-for-agencies-client/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/automattic-for-agencies-client/readme.txt b/projects/plugins/automattic-for-agencies-client/readme.txt index 4fa7bc1f2a1ba..5601a6fd6bd91 100644 --- a/projects/plugins/automattic-for-agencies-client/readme.txt +++ b/projects/plugins/automattic-for-agencies-client/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, jeherve, njweller, rcanepa Tags: agency, dashboard, management, sites, monitoring Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 0.2.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/backup/changelog/update-tested-to-6-7 b/projects/plugins/backup/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/backup/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/backup/readme.txt b/projects/plugins/backup/readme.txt index b620d28bd8d14..7fe594088a899 100644 --- a/projects/plugins/backup/readme.txt +++ b/projects/plugins/backup/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, bjorsch, fgiannar, initsogar, jeherve, jwebbdev, kraft Tags: jetpack, backup, restore Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 2.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/boost/.phan/baseline.php b/projects/plugins/boost/.phan/baseline.php index ab0305ca7b92a..e774b56f1c260 100644 --- a/projects/plugins/boost/.phan/baseline.php +++ b/projects/plugins/boost/.phan/baseline.php @@ -30,7 +30,6 @@ // PhanImpossibleTypeComparison : 1 occurrence // PhanImpossibleTypeComparisonInGlobalScope : 1 occurrence // PhanPluginNeverReturnFunction : 1 occurrence - // PhanPluginSimplifyExpressionBool : 1 occurrence // PhanRedefineFunction : 1 occurrence // PhanTypeComparisonToArray : 1 occurrence // PhanTypeInvalidUnaryOperandIncOrDec : 1 occurrence @@ -57,7 +56,6 @@ 'app/lib/minify/functions-helpers.php' => ['PhanTypeMismatchArgumentNullable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDefault', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassReference', 'PhanUndeclaredConstant'], 'app/lib/minify/functions-service.php' => ['PhanImpossibleTypeComparison', 'PhanPluginDuplicateConditionalNullCoalescing', 'PhanPluginNeverReturnFunction', 'PhanPluginUseReturnValueInternalKnown', 'PhanPossiblyUndeclaredVariable', 'PhanRedundantCondition', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal'], 'app/modules/Modules_Setup.php' => ['PhanTypeMismatchPropertyDefault'], - 'app/modules/image-guide/Image_Guide.php' => ['PhanPluginSimplifyExpressionBool'], 'app/modules/image-guide/Image_Guide_Proxy.php' => ['PhanPluginDuplicateConditionalNullCoalescing'], 'app/modules/image-size-analysis/data-sync/Image_Size_Analysis_Action_Fix.php' => ['PhanPossiblyUndeclaredVariable', 'PhanRedundantCondition'], 'app/modules/optimizations/critical-css/CSS_Proxy.php' => ['PhanPluginDuplicateConditionalNullCoalescing'], diff --git a/projects/plugins/boost/app/modules/image-guide/Image_Guide.php b/projects/plugins/boost/app/modules/image-guide/Image_Guide.php index 9360a6b25efef..ce2e23fe9197e 100644 --- a/projects/plugins/boost/app/modules/image-guide/Image_Guide.php +++ b/projects/plugins/boost/app/modules/image-guide/Image_Guide.php @@ -9,15 +9,12 @@ class Image_Guide implements Pluggable { public function setup() { - // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $override = isset( $_GET['jb-debug-ig'] ); - - if ( is_admin() || is_user_logged_in() || current_user_can( 'manage_options' ) ) { + if ( is_user_logged_in() && current_user_can( 'manage_options' ) ) { Image_Guide_Proxy::init(); } // Show the UI only when the user is logged in, with sufficient permissions and isn't looking at the dashboard. - if ( true !== $override && ( is_admin() || ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) ) { + if ( is_admin() || ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) { return; } diff --git a/projects/plugins/boost/changelog/remove-image-guide-override b/projects/plugins/boost/changelog/remove-image-guide-override new file mode 100644 index 0000000000000..35c10bab98c1a --- /dev/null +++ b/projects/plugins/boost/changelog/remove-image-guide-override @@ -0,0 +1,4 @@ +Significance: minor +Type: removed + +Image Guide: Remove URL parameter based override. diff --git a/projects/plugins/boost/changelog/renovate-postcss-8.x b/projects/plugins/boost/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/plugins/boost/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/boost/changelog/update-tested-to-6-7 b/projects/plugins/boost/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/boost/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/boost/package.json b/projects/plugins/boost/package.json index 9c3124c796fab..df03b2014d9eb 100644 --- a/projects/plugins/boost/package.json +++ b/projects/plugins/boost/package.json @@ -44,7 +44,7 @@ "jest-environment-jsdom": "29.7.0", "livereload": "0.9.3", "path-browserify": "1.0.1", - "postcss": "8.4.31", + "postcss": "8.4.47", "process": "0.11.10", "react": "18.3.1", "react-dom": "18.3.1", diff --git a/projects/plugins/boost/readme.txt b/projects/plugins/boost/readme.txt index ac48b05bda4e2..fde356fc07b00 100644 --- a/projects/plugins/boost/readme.txt +++ b/projects/plugins/boost/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, xwp, adnan007, bjorsch, danwalmsley, davidlonjon, dili Donate link: https://automattic.com Tags: performance, speed, web vitals, critical css, cache Requires at least: 6.5 -Tested up to: 6.6 +Tested up to: 6.7 Requires PHP: 7.0 Stable tag: 3.5.2 License: GPLv2 or later diff --git a/projects/plugins/classic-theme-helper-plugin/changelog/update-tested-to-6-7 b/projects/plugins/classic-theme-helper-plugin/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/classic-theme-helper-plugin/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/classic-theme-helper-plugin/readme.txt b/projects/plugins/classic-theme-helper-plugin/readme.txt index d4c1568fc21a6..ae28b2f61398f 100644 --- a/projects/plugins/classic-theme-helper-plugin/readme.txt +++ b/projects/plugins/classic-theme-helper-plugin/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, Tags: jetpack, stuff Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 0.1.0-alpha License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/crm/changelog/update-tested-to-6-7 b/projects/plugins/crm/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/crm/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/crm/readme.txt b/projects/plugins/crm/readme.txt index fa19d69208f33..85fc40e13a5de 100644 --- a/projects/plugins/crm/readme.txt +++ b/projects/plugins/crm/readme.txt @@ -1,7 +1,7 @@ === Jetpack CRM - Clients, Leads, Invoices, Billing, Email Marketing, & Automation === Contributors: automattic, kallehauge, cleacos, diegogarciarodrigues, bradshawtm, wpkaren, robertf4, woodyhayday, mikemayhem3030 Tags: CRM, Invoice, Woocommerce CRM, Clients, Lead Generation, contacts, customers, billing, email marketing, Marketing Automation, contact form, automations -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 6.4.2 Requires at least: 6.0 Requires PHP: 7.4 diff --git a/projects/plugins/inspect/changelog/renovate-postcss-8.x b/projects/plugins/inspect/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/plugins/inspect/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/inspect/changelog/update-tested-to-6-7 b/projects/plugins/inspect/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/inspect/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/inspect/package.json b/projects/plugins/inspect/package.json index 1fc9e2849fb1e..6689cf7d57ecf 100644 --- a/projects/plugins/inspect/package.json +++ b/projects/plugins/inspect/package.json @@ -33,7 +33,7 @@ "@rollup/plugin-terser": "0.4.3", "@rollup/plugin-typescript": "12.1.0", "@wordpress/i18n": "5.9.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "rollup": "3.29.5", "rollup-plugin-livereload": "2.0.5", "rollup-plugin-postcss": "4.0.2", diff --git a/projects/plugins/inspect/readme.txt b/projects/plugins/inspect/readme.txt index 8047dad7d5d0f..d3a735ec12689 100644 --- a/projects/plugins/inspect/readme.txt +++ b/projects/plugins/inspect/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, Tags: jetpack, stuff Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 1.0.0-alpha License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/jetpack/.phan/baseline.php b/projects/plugins/jetpack/.phan/baseline.php index 73b08dec3ed91..b8589a544e1db 100644 --- a/projects/plugins/jetpack/.phan/baseline.php +++ b/projects/plugins/jetpack/.phan/baseline.php @@ -178,7 +178,6 @@ 'extensions/blocks/blog-stats/blog-stats.php' => ['PhanTypeMismatchReturnProbablyReal'], 'extensions/blocks/blogroll/blogroll-item/blogroll-item.php' => ['PhanPluginDuplicateConditionalNullCoalescing'], 'extensions/blocks/calendly/calendly.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnProbablyReal'], - 'extensions/blocks/contact-info/class-jetpack-contact-info-block.php' => ['PhanTypeMismatchReturn'], 'extensions/blocks/cookie-consent/cookie-consent.php' => ['PhanParamTooMany'], 'extensions/blocks/donations/donations.php' => ['PhanTypeMismatchArgument'], 'extensions/blocks/gif/gif.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeMismatchReturnProbablyReal'], diff --git a/projects/plugins/jetpack/CHANGELOG.md b/projects/plugins/jetpack/CHANGELOG.md index ce8c8f35f9072..69f50357e0587 100644 --- a/projects/plugins/jetpack/CHANGELOG.md +++ b/projects/plugins/jetpack/CHANGELOG.md @@ -2,6 +2,29 @@ ### This is a list detailing changes for all Jetpack releases. +## 14.0-a.7 - 2024-10-21 +### Enhancements +- Newsletters: Add an email preview option to the preview menu. [#39782] +- Newsletters: Allow skipping newsletter modals with a URL query param. [#39644] + +### Improved compatibility +- General: Ensure notice displays without errors when running an old version of WordPress. [#39745] +- Plugin action links filters: Update parameter to avoid conflicts with other plugins. [#39681] + +### Bug fixes +- Map Block: Fix issue where blocks placed underneath would overlap with the map block. [#39744] +- Newsletters: Fix "Use excerpt" setting. [#39815] + +### Other changes +- Map Block: Display a static map image when the block is rendered in a pattern preview. [#39768] +- Map: Remove preview attribute. [#39768] +- Newsletters: Fix 'class Jetpack_Subscriptions_Widget not found' fatal error during REST API. [#39765] +- Slideshow Block: Fix console warning related to images with the same key. [#39821] +- Story Block: Avoid error when previewing block styles in development version of the Gutenberg plugin. [#39807] +- Story Block: Fix console warning related to 'key' not being a prop. [#39822] +- Tests: Fix unit tests. [#39799] +- Update VideoPress notice URL on Media Library. [#39731] + ## 14.0-a.5 - 2024-10-16 ### Other changes - Related Posts: refine how related posts are made available on singular views in block themes. [#39784] diff --git a/projects/plugins/jetpack/_inc/client/components/module-settings/with-module-settings-form-helpers.jsx b/projects/plugins/jetpack/_inc/client/components/module-settings/with-module-settings-form-helpers.jsx index 50a5b9353a461..90571b74a25ed 100644 --- a/projects/plugins/jetpack/_inc/client/components/module-settings/with-module-settings-form-helpers.jsx +++ b/projects/plugins/jetpack/_inc/client/components/module-settings/with-module-settings-form-helpers.jsx @@ -124,7 +124,7 @@ export function withModuleSettingsFormHelpers( InnerComponent ) { const saneOptions = {}; each( this.state.options, ( value, key ) => { - key = key.replace( /\-/, '_' ); + key = key.replace( /-/, '_' ); saneOptions[ key ] = value; } ); diff --git a/projects/plugins/jetpack/_inc/client/components/popover/util.js b/projects/plugins/jetpack/_inc/client/components/popover/util.js index dc1d70473ffcd..9ee46675a4b36 100644 --- a/projects/plugins/jetpack/_inc/client/components/popover/util.js +++ b/projects/plugins/jetpack/_inc/client/components/popover/util.js @@ -117,7 +117,8 @@ function choosePrimary( prefered, room ) { // less chopped of than other sides if ( space > best ) { - ( best = space ), ( bestPos = prefered ); + best = space; + bestPos = prefered; } } @@ -161,7 +162,8 @@ function chooseSecondary( primary, prefered, el, target, w, h ) { // shows more of the tip than the other positions if ( area > best ) { - ( best = area ), ( bestPos = pos ); + best = area; + bestPos = pos; } } diff --git a/projects/plugins/jetpack/_inc/client/components/section-nav/tabs.jsx b/projects/plugins/jetpack/_inc/client/components/section-nav/tabs.jsx index 7561cc6c1500e..e3c7b196ee45a 100644 --- a/projects/plugins/jetpack/_inc/client/components/section-nav/tabs.jsx +++ b/projects/plugins/jetpack/_inc/client/components/section-nav/tabs.jsx @@ -155,7 +155,7 @@ class NavTabs extends React.Component { case 32: // space case 13: // enter event.preventDefault(); - document.activeElement.click(); + event.target.ownerDocument.activeElement.click(); break; } }; diff --git a/projects/plugins/jetpack/_inc/client/components/select-dropdown/index.jsx b/projects/plugins/jetpack/_inc/client/components/select-dropdown/index.jsx index 0823472917e90..cc5f27ea3f3bc 100644 --- a/projects/plugins/jetpack/_inc/client/components/select-dropdown/index.jsx +++ b/projects/plugins/jetpack/_inc/client/components/select-dropdown/index.jsx @@ -312,7 +312,7 @@ class SelectDropdown extends Component { if ( ! this.state.isOpen ) { return this.openDropdown(); } - document.activeElement.click(); + this.dropdownContainerRef.current.ownerDocument.activeElement.click(); } focusSibling( direction ) { diff --git a/projects/plugins/jetpack/_inc/client/pro-status/index.jsx b/projects/plugins/jetpack/_inc/client/pro-status/index.jsx index 8afa74cd5381e..8966c2d5fb9af 100644 --- a/projects/plugins/jetpack/_inc/client/pro-status/index.jsx +++ b/projects/plugins/jetpack/_inc/client/pro-status/index.jsx @@ -109,9 +109,10 @@ class ProStatus extends React.Component { break; case 'invalid_key': return; - case 'rewind_connected': + case 'rewind_connected': { const rewindMessage = this.getRewindMessage(); return ; + } case 'active': return ; } diff --git a/projects/plugins/jetpack/_inc/client/sharing/index.jsx b/projects/plugins/jetpack/_inc/client/sharing/index.jsx index 196f8cd178b05..ba0f0e9b64409 100644 --- a/projects/plugins/jetpack/_inc/client/sharing/index.jsx +++ b/projects/plugins/jetpack/_inc/client/sharing/index.jsx @@ -1,4 +1,7 @@ -import { getSocialScriptData } from '@automattic/jetpack-publicize-components'; +import { + getSocialScriptData, + hasSocialPaidFeatures, +} from '@automattic/jetpack-publicize-components'; import { __ } from '@wordpress/i18n'; import QuerySite from 'components/data/query-site'; import React, { Component } from 'react'; @@ -97,7 +100,7 @@ export default connect( state => { blogID: getSiteId( state ), siteAdminUrl: getSiteAdminUrl( state ), activeFeatures: getActiveFeatures( state ), - hasPaidFeatures: siteHasFeature( state, 'social-enhanced-publishing' ), + hasPaidFeatures: hasSocialPaidFeatures(), hasSocialImageGenerator: siteHasFeature( state, 'social-image-generator' ), userCanManageModules: userCanManageModules( state ), isAtomicSite: isAtomicSite( state ), diff --git a/projects/plugins/jetpack/_inc/client/state/connection/reducer.js b/projects/plugins/jetpack/_inc/client/state/connection/reducer.js index 3062aaff5c056..4550f2180f236 100644 --- a/projects/plugins/jetpack/_inc/client/state/connection/reducer.js +++ b/projects/plugins/jetpack/_inc/client/state/connection/reducer.js @@ -73,9 +73,10 @@ export const user = ( state = window.Initial_State.userData || {}, action ) => { case USER_CONNECTION_DATA_FETCH_SUCCESS: return assign( {}, state, action.userConnectionData ); - case UNLINK_USER_SUCCESS: + case UNLINK_USER_SUCCESS: { const currentUser = assign( {}, state.currentUser, { isConnected: false } ); return assign( {}, state, { currentUser } ); + } case MOCK_SWITCH_USER_PERMISSIONS: return merge( {}, state, action.initialState ); diff --git a/projects/plugins/jetpack/_inc/client/state/modules/reducer.js b/projects/plugins/jetpack/_inc/client/state/modules/reducer.js index 5599dc44292ba..70de9bc934250 100644 --- a/projects/plugins/jetpack/_inc/client/state/modules/reducer.js +++ b/projects/plugins/jetpack/_inc/client/state/modules/reducer.js @@ -31,7 +31,7 @@ export const items = ( state = {}, action ) => { return assign( {}, state, { [ action.module ]: assign( {}, state[ action.module ], { activated: false } ), } ); - case JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS: + case JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS: { const updatedModule = assign( {}, state[ action.module ] ); Object.keys( action.newOptionValues ).forEach( key => { updatedModule.options[ key ].current_value = action.newOptionValues[ key ]; @@ -39,6 +39,7 @@ export const items = ( state = {}, action ) => { return assign( {}, state, { [ action.module ]: updatedModule, } ); + } default: return state; } @@ -84,7 +85,7 @@ export const requests = ( state = initialRequestsState, action ) => { [ action.module ]: false, } ), } ); - case JETPACK_MODULE_UPDATE_OPTIONS: + case JETPACK_MODULE_UPDATE_OPTIONS: { const updatingOption = assign( {}, state.updatingOption ); updatingOption[ action.module ] = assign( {}, updatingOption[ action.module ] ); Object.keys( action.newOptionValues ).forEach( key => { @@ -93,8 +94,9 @@ export const requests = ( state = initialRequestsState, action ) => { return assign( {}, state, { updatingOption: assign( {}, state.updatingOption, updatingOption ), } ); + } case JETPACK_MODULE_UPDATE_OPTIONS_FAIL: - case JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS: + case JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS: { const _updatingOption = assign( {}, state.updatingOption ); _updatingOption[ action.module ] = assign( {}, _updatingOption[ action.module ] ); Object.keys( action.newOptionValues ).forEach( key => { @@ -103,6 +105,7 @@ export const requests = ( state = initialRequestsState, action ) => { return assign( {}, state, { updatingOption: assign( {}, state.updatingOption, _updatingOption ), } ); + } default: return state; } diff --git a/projects/plugins/jetpack/_inc/client/state/settings/reducer.js b/projects/plugins/jetpack/_inc/client/state/settings/reducer.js index bb6f2d05225f6..ed91a0c41fcf0 100644 --- a/projects/plugins/jetpack/_inc/client/state/settings/reducer.js +++ b/projects/plugins/jetpack/_inc/client/state/settings/reducer.js @@ -21,11 +21,12 @@ export const items = ( state = {}, action ) => { return assign( {}, state, action.initialState.settings ); case JETPACK_SETTINGS_FETCH_RECEIVE: return assign( {}, action.settings ); - case JETPACK_SETTING_UPDATE_SUCCESS: + case JETPACK_SETTING_UPDATE_SUCCESS: { const key = Object.keys( action.updatedOption )[ 0 ]; return assign( {}, state, { [ key ]: action.updatedOption[ key ], } ); + } case JETPACK_SETTINGS_UPDATE_SUCCESS: return assign( {}, state, action.updatedOptions ); default: diff --git a/projects/plugins/jetpack/_inc/client/writing/composing.jsx b/projects/plugins/jetpack/_inc/client/writing/composing.jsx index 90b5b46d5e535..955bc07d37f7d 100644 --- a/projects/plugins/jetpack/_inc/client/writing/composing.jsx +++ b/projects/plugins/jetpack/_inc/client/writing/composing.jsx @@ -21,7 +21,7 @@ export class Composing extends React.Component { * @return {*} the updated value */ updateFormStateByMarkdown = module => { - if ( !! this.props.getSettingCurrentValue( 'wpcom_publish_comments_with_markdown', module ) ) { + if ( this.props.getSettingCurrentValue( 'wpcom_publish_comments_with_markdown', module ) ) { return this.props.updateFormStateModuleOption( module, 'wpcom_publish_posts_with_markdown' ); } return this.props.updateFormStateModuleOption( diff --git a/projects/plugins/jetpack/_inc/jetpack-deactivate-dialog.js b/projects/plugins/jetpack/_inc/jetpack-deactivate-dialog.js index 294ffae1e3338..9c89b0bdba2cd 100644 --- a/projects/plugins/jetpack/_inc/jetpack-deactivate-dialog.js +++ b/projects/plugins/jetpack/_inc/jetpack-deactivate-dialog.js @@ -30,11 +30,12 @@ $( '#TB_window' ).addClass( 'jetpack-disconnect-modal' ); deactivationModalCentralize(); - $( '#TB_closeWindowButton, #TB_overlay' ).on( 'click', function ( e ) { + $( '#TB_closeWindowButton, #TB_overlay' ).on( 'click', function () { deactivationModalTrackCloseEvent(); } ); document.onkeyup = function ( e ) { + var keycode; if ( e === null ) { // ie keycode = event.keyCode; @@ -42,7 +43,7 @@ // mozilla keycode = e.which; } - if ( keycode == 27 ) { + if ( keycode === 27 ) { // close deactivationModalTrackCloseEvent(); } @@ -77,12 +78,12 @@ deactivateLinkElem.attr( 'title', deactivate_dialog.title ); deactivateLinkElem.addClass( 'thickbox' ); deactivateLinkElem.html( deactivate_dialog.deactivate_label ); - deactivateLinkElem.on( 'click', function ( e ) { + deactivateLinkElem.on( 'click', function () { observer.observe( body, { childList: true } ); analytics.tracks.recordEvent( 'jetpack_termination_dialog_open', tracksProps ); } ); - $( '#jetpack_deactivation_dialog_content__button-cancel' ).on( 'click', function ( e ) { + $( '#jetpack_deactivation_dialog_content__button-cancel' ).on( 'click', function () { tb_remove(); deactivationModalTrackCloseEvent(); } ); diff --git a/projects/plugins/jetpack/_inc/jetpack-modules.js b/projects/plugins/jetpack/_inc/jetpack-modules.js index 18c90b9e3ab81..dbb654d44ec66 100644 --- a/projects/plugins/jetpack/_inc/jetpack-modules.js +++ b/projects/plugins/jetpack/_inc/jetpack-modules.js @@ -1,19 +1,10 @@ ( function ( window, $, items, models, views, i18n, modalinfo, nonces ) { 'use strict'; - var modules, - list_table, - handle_module_tag_click, - $the_table, - $the_filters, - $the_search, - $jp_frame, - $bulk_button; - - $the_table = $( '.wp-list-table.jetpack-modules' ); + var modules, list_table, handle_module_tag_click, $the_filters, $the_search, $bulk_button; + $the_filters = $( '.navbar-form' ); $the_search = $( '#srch-term-search-input' ); - $jp_frame = $( '.jp-frame' ); $bulk_button = $( '#doaction' ); modules = new models.Modules( { diff --git a/projects/plugins/jetpack/changelog/add-newsletter-preview-menu-item b/projects/plugins/jetpack/changelog/add-newsletter-preview-menu-item deleted file mode 100644 index 5f502c0b91c70..0000000000000 --- a/projects/plugins/jetpack/changelog/add-newsletter-preview-menu-item +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: enhancement - -Newsletter: Add Preview Email to the Preview Menu diff --git a/projects/plugins/jetpack/changelog/change-jetpack-ai-modal-prompt-input-reuse b/projects/plugins/jetpack/changelog/change-jetpack-ai-modal-prompt-input-reuse new file mode 100644 index 0000000000000..958a637ead149 --- /dev/null +++ b/projects/plugins/jetpack/changelog/change-jetpack-ai-modal-prompt-input-reuse @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Jetpack AI: use new exported component for AI generation modal on GP image generation diff --git a/projects/plugins/jetpack/changelog/display-map-block-as-preview-if-in-block-preview-mode b/projects/plugins/jetpack/changelog/display-map-block-as-preview-if-in-block-preview-mode deleted file mode 100644 index 3ee73641ae113..0000000000000 --- a/projects/plugins/jetpack/changelog/display-map-block-as-preview-if-in-block-preview-mode +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Map block: Display a static map image when the block is rendered in a pattern preview diff --git a/projects/plugins/jetpack/changelog/fix-class-not-found-error b/projects/plugins/jetpack/changelog/fix-class-not-found-error deleted file mode 100644 index 1fd5a98213c4a..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-class-not-found-error +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Fix Fatal Error: Class 'Jetpack_Subscriptions_Widget' not found during REST API diff --git a/projects/plugins/jetpack/changelog/fix-jetpack-story-block-connection-assets b/projects/plugins/jetpack/changelog/fix-jetpack-story-block-connection-assets new file mode 100644 index 0000000000000..bbca92108485e --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-jetpack-story-block-connection-assets @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Blocks: initialize connection assets in Story block. diff --git a/projects/plugins/jetpack/changelog/fix-map-block-auto-height b/projects/plugins/jetpack/changelog/fix-map-block-auto-height deleted file mode 100644 index d53bd6f5ee2b4..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-map-block-auto-height +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: bugfix - -Map block: Fix issue where blocks placed underneath would overlap with the map block. diff --git a/projects/plugins/jetpack/changelog/fix-newsletter-settings-api b/projects/plugins/jetpack/changelog/fix-newsletter-settings-api deleted file mode 100644 index 9c8dfd2259656..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-newsletter-settings-api +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: bugfix - -Newsletter: Fix use excerpt setting. diff --git a/projects/plugins/jetpack/changelog/fix-slideshow-block-global-styles b/projects/plugins/jetpack/changelog/fix-slideshow-block-global-styles deleted file mode 100644 index c459b3a44d721..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-slideshow-block-global-styles +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Slideshow block: fix console warning related to images with the same key. diff --git a/projects/plugins/jetpack/changelog/fix-stats-explode-trailing-newline b/projects/plugins/jetpack/changelog/fix-stats-explode-trailing-newline deleted file mode 100644 index 591df46c8f0a5..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-stats-explode-trailing-newline +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: other -Comment: Fix bug in #39665 related to a trailing newline in the CSV data. - - diff --git a/projects/plugins/jetpack/changelog/fix-story-block-fatal b/projects/plugins/jetpack/changelog/fix-story-block-fatal deleted file mode 100644 index bb6d0c7d2abd9..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-story-block-fatal +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Story Block: avoid error when previewing block styles in development version of the Gutenberg plugin. diff --git a/projects/plugins/jetpack/changelog/fix-story-block-key-prop-warning b/projects/plugins/jetpack/changelog/fix-story-block-key-prop-warning deleted file mode 100644 index 656285fda32cd..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-story-block-key-prop-warning +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Story block: fix console warning related to 'key' not being a prop. diff --git a/projects/plugins/jetpack/changelog/fix-sync-filter-null-array b/projects/plugins/jetpack/changelog/fix-sync-filter-null-array deleted file mode 100644 index 2ac348ea5eb8a..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-sync-filter-null-array +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: compat - -Plugin action links filters: update parameter to avoid any conflicts with other plugins. diff --git a/projects/plugins/jetpack/changelog/fix-various-eslint-lints b/projects/plugins/jetpack/changelog/fix-various-eslint-lints new file mode 100644 index 0000000000000..85fe0d31b9f57 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-various-eslint-lints @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Fix various eslint lints. Should be no change to functionality, although it's possible some obscure React bugs got fixed. + + diff --git a/projects/plugins/jetpack/changelog/fix-verbum-comments-resize-logic b/projects/plugins/jetpack/changelog/fix-verbum-comments-resize-logic new file mode 100644 index 0000000000000..a6a79b1897ec6 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-verbum-comments-resize-logic @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Update Verbum Comments resize logic diff --git a/projects/plugins/jetpack/changelog/fix-video-upload-media-notice b/projects/plugins/jetpack/changelog/fix-video-upload-media-notice deleted file mode 100644 index c43ecff1cd68b..0000000000000 --- a/projects/plugins/jetpack/changelog/fix-video-upload-media-notice +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Update VideoPress notice URL on Media Library diff --git a/projects/plugins/jetpack/changelog/fix-write-brief-spellcheck-numbers b/projects/plugins/jetpack/changelog/fix-write-brief-spellcheck-numbers new file mode 100644 index 0000000000000..28a48a83cba5d --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-write-brief-spellcheck-numbers @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +AI Assistant: Write Brief should not flag words like '2nd' and '100th' as spelling errors. diff --git a/projects/plugins/social/changelog/prerelease b/projects/plugins/jetpack/changelog/prerelease similarity index 79% rename from projects/plugins/social/changelog/prerelease rename to projects/plugins/jetpack/changelog/prerelease index 9aa70e3ec1f75..a1c1831fa1ef7 100644 --- a/projects/plugins/social/changelog/prerelease +++ b/projects/plugins/jetpack/changelog/prerelease @@ -1,5 +1,5 @@ Significance: patch -Type: changed +Type: other Comment: Updated composer.lock. diff --git a/projects/plugins/jetpack/changelog/remove-preview-attribute-from-map-block b/projects/plugins/jetpack/changelog/remove-preview-attribute-from-map-block deleted file mode 100644 index 514100b1029fe..0000000000000 --- a/projects/plugins/jetpack/changelog/remove-preview-attribute-from-map-block +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: other - -Map: remove preview attribute. The mechanism to determine if the block is in preview mode changed internally. diff --git a/projects/plugins/jetpack/changelog/update-social-initial-state-migrate-urls-in-editor b/projects/plugins/jetpack/changelog/renovate-postcss-8.x similarity index 52% rename from projects/plugins/jetpack/changelog/update-social-initial-state-migrate-urls-in-editor rename to projects/plugins/jetpack/changelog/renovate-postcss-8.x index 5601b77a6a611..1eaea6a769e84 100644 --- a/projects/plugins/jetpack/changelog/update-social-initial-state-migrate-urls-in-editor +++ b/projects/plugins/jetpack/changelog/renovate-postcss-8.x @@ -1,4 +1,4 @@ Significance: patch Type: other -Fixed unit tests +Updated package dependencies. diff --git a/projects/plugins/jetpack/changelog/revert-admin_notice_37051 b/projects/plugins/jetpack/changelog/revert-admin_notice_37051 deleted file mode 100644 index 40c07fe1eb5f1..0000000000000 --- a/projects/plugins/jetpack/changelog/revert-admin_notice_37051 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: compat - -General: ensure the notice displayed when running an old version of WordPress can always be displayed without errors. diff --git a/projects/plugins/jetpack/changelog/update-contact-info-block-loading b/projects/plugins/jetpack/changelog/update-contact-info-block-loading new file mode 100644 index 0000000000000..6c6e7cb31a30d --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-contact-info-block-loading @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Contact Info: Change block registration code - move back to two files. diff --git a/projects/plugins/jetpack/changelog/update-hooks-prevent-doing-it-wrong-notice b/projects/plugins/jetpack/changelog/update-hooks-prevent-doing-it-wrong-notice new file mode 100644 index 0000000000000..850d659cbcc69 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-hooks-prevent-doing-it-wrong-notice @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Hooks: Change several action priorities to ensure translation loading is not triggered too early. diff --git a/projects/plugins/jetpack/changelog/update-social-replace-has-paid-features-check b/projects/plugins/jetpack/changelog/update-social-replace-has-paid-features-check new file mode 100644 index 0000000000000..a2339eaccb346 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-social-replace-has-paid-features-check @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Initial State: Migrated hasPaidFeatures flag with feature check on front-end + + diff --git a/projects/plugins/jetpack/changelog/update-social-sig-feature-check b/projects/plugins/jetpack/changelog/update-social-sig-feature-check new file mode 100644 index 0000000000000..82aa474998f99 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-social-sig-feature-check @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Initial state: Migrated isSocialImageGeneratorAvailable to feature check + + diff --git a/projects/plugins/jetpack/changelog/update-subscriptions-skip-modal b/projects/plugins/jetpack/changelog/update-subscriptions-skip-modal deleted file mode 100644 index 2e357ea143d80..0000000000000 --- a/projects/plugins/jetpack/changelog/update-subscriptions-skip-modal +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: enhancement - -Newsletters: allow skipping modals with URL query param diff --git a/projects/plugins/jetpack/changelog/update-tested-to-6-7 b/projects/plugins/jetpack/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..30b22a8d242ae --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/jetpack/class.jetpack.php b/projects/plugins/jetpack/class.jetpack.php index 4f9a306cd26b9..dda2deb3cf61a 100644 --- a/projects/plugins/jetpack/class.jetpack.php +++ b/projects/plugins/jetpack/class.jetpack.php @@ -867,8 +867,7 @@ function ( $methods ) { * @action plugins_loaded */ public function late_initialization() { - add_action( 'plugins_loaded', array( 'Jetpack', 'load_modules' ), 100 ); - + add_action( 'after_setup_theme', array( 'Jetpack', 'load_modules' ), 1 ); My_Jetpack_Initializer::init(); // Initialize Boost Speed Score diff --git a/projects/plugins/jetpack/composer.json b/projects/plugins/jetpack/composer.json index eac7bdcd02b56..86d4e58586ca5 100644 --- a/projects/plugins/jetpack/composer.json +++ b/projects/plugins/jetpack/composer.json @@ -102,7 +102,7 @@ "platform": { "ext-intl": "0.0.0" }, - "autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5", + "autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_7", "allow-plugins": { "automattic/jetpack-autoloader": true, "automattic/jetpack-composer-plugin": true diff --git a/projects/plugins/jetpack/composer.lock b/projects/plugins/jetpack/composer.lock index 5df2b3221306d..6d59b8cc740a6 100644 --- a/projects/plugins/jetpack/composer.lock +++ b/projects/plugins/jetpack/composer.lock @@ -2225,7 +2225,7 @@ "dist": { "type": "path", "url": "../../packages/publicize", - "reference": "b8abac09471222cd803a35a623b5e9b7d4049c0d" + "reference": "1fc54eab768a14c867ab64b3a5b169c662bb6b77" }, "require": { "automattic/jetpack-assets": "@dev", @@ -2253,7 +2253,7 @@ "link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "0.54.x-dev" + "dev-trunk": "0.55.x-dev" } }, "autoload": { diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php b/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php index 9c961dc8e2f2d..9ec393ac0b548 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php @@ -5,6 +5,8 @@ * @package automattic/jetpack */ +use Automattic\Jetpack\Blocks; + /** * Helper class that lets us add schema attributes dynamically because they are not something that is store with the content. * Due to the limitations of wp_kses. @@ -13,6 +15,45 @@ */ class Jetpack_Contact_Info_Block { + /** + * Registers the block for use in Gutenberg + * This is done via an action so that we can disable + * registration if we need to. + */ + public static function register_block() { + + Blocks::jetpack_register_block( + __DIR__, + array( + 'render_callback' => __NAMESPACE__ . '\render', + ) + ); + + Blocks::jetpack_register_block( + 'jetpack/address', + array( + 'parent' => array( 'jetpack/contact-info' ), + 'render_callback' => __NAMESPACE__ . '\render_adress', + ) + ); + + Blocks::jetpack_register_block( + 'jetpack/email', + array( + 'parent' => array( 'jetpack/contact-info' ), + 'render_callback' => __NAMESPACE__ . '\render_email', + ) + ); + + Blocks::jetpack_register_block( + 'jetpack/phone', + array( + 'parent' => array( 'jetpack/contact-info' ), + 'render_callback' => __NAMESPACE__ . '\render_phone', + ) + ); + } + /** * Adds contact info schema attributes. * @@ -70,7 +111,7 @@ public static function render_address( $attr, $content ) { * @param array $attr Array containing the block attributes. * @param array $omit Array containing the block attributes that we ignore. * - * @return string + * @return bool */ public static function has_attributes( $attr, $omit = array() ) { foreach ( $attr as $attribute => $value ) { diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/contact-info.php b/projects/plugins/jetpack/extensions/blocks/contact-info/contact-info.php index 06167a7578302..5228e694aa165 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/contact-info.php +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/contact-info.php @@ -7,36 +7,10 @@ * @package automattic/jetpack */ -use Automattic\Jetpack\Blocks; +namespace Automattic\Jetpack\Extensions\Contact_Info; -Blocks::jetpack_register_block( - __DIR__, - array( - 'render_callback' => array( 'Jetpack_Contact_Info_Block', 'render' ), - ) -); +use Jetpack_Contact_Info_Block; -Blocks::jetpack_register_block( - 'jetpack/address', - array( - 'parent' => array( 'jetpack/contact-info' ), - 'render_callback' => array( 'Jetpack_Contact_Info_Block', 'render_address' ), - ) -); - -Blocks::jetpack_register_block( - 'jetpack/email', - array( - 'parent' => array( 'jetpack/contact-info' ), - 'render_callback' => array( 'Jetpack_Contact_Info_Block', 'render_email' ), - ) -); - -Blocks::jetpack_register_block( - 'jetpack/phone', - array( - 'parent' => array( 'jetpack/contact-info' ), - 'render_callback' => array( 'Jetpack_Contact_Info_Block', 'render_phone' ), - ) -); require_once __DIR__ . '/class-jetpack-contact-info-block.php'; + +add_action( 'init', array( Jetpack_Contact_Info_Block::class, 'register_block' ) ); diff --git a/projects/plugins/jetpack/extensions/blocks/eventbrite/utils.js b/projects/plugins/jetpack/extensions/blocks/eventbrite/utils.js index 41c497f8cb9b8..71ddc4b55ad4e 100644 --- a/projects/plugins/jetpack/extensions/blocks/eventbrite/utils.js +++ b/projects/plugins/jetpack/extensions/blocks/eventbrite/utils.js @@ -24,7 +24,7 @@ export function eventIdFromUrl( url ) { return null; } - const match = url.match( /(\d+)\/?(?:\?[^\/]*)?\s*$/ ); + const match = url.match( /(\d+)\/?(?:\?[^/]*)?\s*$/ ); return match && match[ 1 ] ? parseInt( match[ 1 ], 10 ) : null; } diff --git a/projects/plugins/jetpack/extensions/blocks/image-compare/edit.js b/projects/plugins/jetpack/extensions/blocks/image-compare/edit.js index 8f564c170dd4c..82b90463813a2 100644 --- a/projects/plugins/jetpack/extensions/blocks/image-compare/edit.js +++ b/projects/plugins/jetpack/extensions/blocks/image-compare/edit.js @@ -14,34 +14,30 @@ import './view.js'; const Edit = ( { attributes, clientId, isSelected, setAttributes } ) => { const { align, imageBefore, imageAfter, caption, orientation } = attributes; - // Check for useResizeObserver, not available in older Gutenberg. - let resizeListener = null; - let sizes = null; const blockProps = useBlockProps(); const juxtaposeRef = useRef( undefined ); - if ( useResizeObserver ) { - // Let's look for resize so we can trigger the thing. - [ resizeListener, sizes ] = useResizeObserver(); - useDebounce( - sz => { - if ( sz > 0 ) { - if ( typeof juxtapose !== 'undefined' && juxtapose.sliders ) { - // only update for *this* slide - juxtapose.sliders.forEach( elem => { - const parentElem = elem.wrapper.parentElement; - if ( parentElem.id === clientId ) { - elem.optimizeWrapper( sz ); - } - } ); - } + // Let's look for resize so we can trigger the thing. + const [ resizeListener, sizes ] = useResizeObserver(); + + useDebounce( + sz => { + if ( sz > 0 ) { + if ( typeof juxtapose !== 'undefined' && juxtapose.sliders ) { + // only update for *this* slide + juxtapose.sliders.forEach( elem => { + const parentElem = elem.wrapper.parentElement; + if ( parentElem.id === clientId ) { + elem.optimizeWrapper( sz ); + } + } ); } - }, - 200, - sizes.width - ); - } + } + }, + 200, + sizes.width + ); // Initial state if attributes already set or not. // If both images are set, add juxtapose class, which is picked up by the library. diff --git a/projects/plugins/jetpack/extensions/blocks/opentable/edit.js b/projects/plugins/jetpack/extensions/blocks/opentable/edit.js index 1ca50c37925c0..4ac453c675c73 100644 --- a/projects/plugins/jetpack/extensions/blocks/opentable/edit.js +++ b/projects/plugins/jetpack/extensions/blocks/opentable/edit.js @@ -119,7 +119,7 @@ function OpenTableEdit( { // Need to force attribute to be updated after switch to using block styles // so it still meets frontend rendering expectations. setAttributes( { style } ); - }, [ style ] ); + }, [ align, style, prevStyle, setAttributes ] ); const parseEmbedCode = embedCode => { const newAttributes = getAttributesFromEmbedCode( embedCode ); diff --git a/projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js b/projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js index dd57dcce1c536..4d157ff17fcda 100644 --- a/projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js +++ b/projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js @@ -11,7 +11,7 @@ export default function RestaurantPicker( props ) { const { restaurants, hasRequestFailed } = useRestaurantSearch( input, MAX_SUGGESTIONS ); const [ selectedRestaurants, setSelectedRestaurants ] = useState( props.rids || [] ); - const idRegex = /^(\d+)$|\(\#(\d+)\)$/; + const idRegex = /^(\d+)$|\(#(\d+)\)$/; const onChange = selected => { const selectedIds = selected.map( restaurant => { diff --git a/projects/plugins/jetpack/extensions/blocks/opentable/use-restaurant-search.js b/projects/plugins/jetpack/extensions/blocks/opentable/use-restaurant-search.js index 38896d0765e44..9b1ff32638d1d 100644 --- a/projects/plugins/jetpack/extensions/blocks/opentable/use-restaurant-search.js +++ b/projects/plugins/jetpack/extensions/blocks/opentable/use-restaurant-search.js @@ -1,38 +1,42 @@ -import { useState, useEffect, useCallback } from '@wordpress/element'; +import { useState, useEffect, useCallback, useMemo } from '@wordpress/element'; import { unionBy, throttle, isEmpty } from 'lodash'; -export const possibleEmbed = /^\s*(http[s]?:\/\/|\ { - setHasRequestFailed( false ); + const searchRestaurants = useCallback( + ( input = '' ) => { + setHasRequestFailed( false ); - fetch( - 'https://www.opentable.com/widget/reservation/restaurant-search?pageSize=' + - maxResults + - '&query=' + - encodeURIComponent( input ) - ) - .then( result => result.json() ) - .then( restaurantResponse => { - setHasRequestFailed( false ); - setRestaurants( unionBy( restaurants, restaurantResponse.items, 'rid' ) ); - } ) - .catch( () => setHasRequestFailed( true ) ); - }; + fetch( + 'https://www.opentable.com/widget/reservation/restaurant-search?pageSize=' + + maxResults + + '&query=' + + encodeURIComponent( input ) + ) + .then( result => result.json() ) + .then( restaurantResponse => { + setHasRequestFailed( false ); + setRestaurants( unionBy( restaurants, restaurantResponse.items, 'rid' ) ); + } ) + .catch( () => setHasRequestFailed( true ) ); + }, + [ restaurants, maxResults ] + ); - const throttledSearchRestaurants = useCallback( throttle( searchRestaurants, 500 ), [ - restaurants, - ] ); + const throttledSearchRestaurants = useMemo( + () => throttle( searchRestaurants, 500 ), + [ searchRestaurants ] + ); useEffect( () => { if ( ! isEmpty( searchTerm ) && ! possibleEmbed.test( searchTerm ) ) { throttledSearchRestaurants( searchTerm ); } - }, [ searchTerm ] ); + }, [ searchTerm, throttledSearchRestaurants ] ); return { restaurants, hasRequestFailed }; } diff --git a/projects/plugins/jetpack/extensions/blocks/story/story.php b/projects/plugins/jetpack/extensions/blocks/story/story.php index f279d0ee807b3..9554994db0f4e 100644 --- a/projects/plugins/jetpack/extensions/blocks/story/story.php +++ b/projects/plugins/jetpack/extensions/blocks/story/story.php @@ -10,6 +10,7 @@ namespace Automattic\Jetpack\Extensions\Story; use Automattic\Jetpack\Blocks; +use Automattic\Jetpack\Connection\Connection_Assets; use Jetpack; use Jetpack_Gutenberg; use Jetpack_PostImages; @@ -442,6 +443,11 @@ function render_block( $attributes ) { // Let's use a counter to have a different id for each story rendered in the same context. static $story_block_counter = 0; + if ( 0 === $story_block_counter ) { + // @todo Fix the webpack tree shaking so the block's view.js no longer depends on jetpack-connection, then remove this. + Connection_Assets::register_assets(); + } + Jetpack_Gutenberg::load_assets_as_required( __DIR__ ); $media_files = isset( $attributes['mediaFiles'] ) ? enrich_media_files( $attributes['mediaFiles'] ) : array(); diff --git a/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js b/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js index a80575a492478..73d732bf87bc0 100644 --- a/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js +++ b/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js @@ -39,6 +39,7 @@ import SubscriptionSkeletonLoader from './subscription-skeleton-loader'; const { getComputedStyle } = window; const isGradientAvailable = !! useGradient; +const useGradientIfAvailable = isGradientAvailable ? useGradient : () => ( {} ); const name = metadata.name.replace( 'jetpack/', '' ); const applyFallbackStyles = withFallbackStyles( ( node, ownProps ) => { @@ -125,18 +126,14 @@ export function SubscriptionEdit( props ) { }; } ); - const emailFieldGradient = isGradientAvailable - ? useGradient( { - gradientAttribute: 'emailFieldGradient', - customGradientAttribute: 'customEmailFieldGradient', - } ) - : {}; - const buttonGradient = isGradientAvailable - ? useGradient( { - gradientAttribute: 'buttonGradient', - customGradientAttribute: 'customButtonGradient', - } ) - : {}; + const emailFieldGradient = useGradientIfAvailable( { + gradientAttribute: 'emailFieldGradient', + customGradientAttribute: 'customEmailFieldGradient', + } ); + const buttonGradient = useGradientIfAvailable( { + gradientAttribute: 'buttonGradient', + customGradientAttribute: 'customButtonGradient', + } ); const sharedClasses = { 'no-border-radius': borderRadius === 0, diff --git a/projects/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php b/projects/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php index 95b32b92a19a2..1670a7760a1c0 100644 --- a/projects/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php +++ b/projects/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php @@ -180,4 +180,4 @@ private static function is_squareish_layout( $attr ) { } } -Tiled_Gallery::register(); +add_action( 'init', array( Tiled_Gallery::class, 'register' ) ); diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.scss b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.scss index 0f914277191bc..c47eb5e218245 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.scss +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.scss @@ -15,7 +15,6 @@ &__actions { width: 100%; display: flex; - justify-content: center; } &__user-prompt { diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx index 12572e7df2284..ec2868aaabdd3 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-image/components/ai-image-modal.tsx @@ -1,9 +1,10 @@ /** * External dependencies */ -import { Button, Tooltip, KeyboardShortcuts } from '@wordpress/components'; +import { AiModalPromptInput } from '@automattic/jetpack-ai-client'; +import { Button } from '@wordpress/components'; import { useCallback, useRef, useState, useEffect } from '@wordpress/element'; -import { __, sprintf } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { Icon, external } from '@wordpress/icons'; /** * Internal dependencies @@ -34,13 +35,11 @@ export default function AiImageModal( { isUnlimited = false, upgradeDescription = null, hasError = false, - postContent = null, handlePreviousImage = () => {}, handleNextImage = () => {}, acceptButton = null, autoStart = false, autoStartAction = null, - generateButtonLabel = null, instructionsPlaceholder = null, }: { title: string; @@ -72,13 +71,6 @@ export default function AiImageModal( { const [ userPrompt, setUserPrompt ] = useState( '' ); const triggeredAutoGeneration = useRef( false ); - const handleUserPromptChange = useCallback( - ( e: React.ChangeEvent< HTMLTextAreaElement > ) => { - setUserPrompt( e.target.value.trim() ); - }, - [ setUserPrompt ] - ); - const handleTryAgain = useCallback( () => { onTryAgain?.( { userPrompt } ); }, [ onTryAgain, userPrompt ] ); @@ -87,37 +79,13 @@ export default function AiImageModal( { onGenerate?.( { userPrompt } ); }, [ onGenerate, userPrompt ] ); - const costTooltipTextSingular = __( '1 request per image', 'jetpack' ); - - const costTooltipTextPlural = sprintf( - // Translators: %d is the cost of generating one image. - __( '%d requests per image', 'jetpack' ), - cost - ); - - const costTooltipText = cost === 1 ? costTooltipTextSingular : costTooltipTextPlural; - // Controllers const instructionsDisabled = notEnoughRequests || generating || requireUpgrade; const upgradePromptVisible = ( requireUpgrade || notEnoughRequests ) && ! generating; const counterVisible = Boolean( ! isUnlimited && cost && currentLimit ); - const tryAgainButtonDisabled = ! userPrompt && ! postContent; - const generateButtonDisabled = - notEnoughRequests || generating || ( ! userPrompt && ! postContent ); - const tryAgainButton = ( - - ); - - const generateButton = ( - - - - ); + const generateLabel = __( 'Generate', 'jetpack' ); + const tryAgainLabel = __( 'Try again', 'jetpack' ); /** * Trigger image generation automatically. @@ -136,28 +104,14 @@ export default function AiImageModal( { { open && (
-
-
- { - if ( ! generateButtonDisabled ) { - handleGenerate(); - } - }, - } } - > - - -
-
+ { upgradePromptVisible && ( ) }
-
-
- { hasError ? tryAgainButton : generateButton } -
-
{ @@ -199,6 +199,11 @@ export default function spellingMistakes( text: string ): Array< HighlightedText return; } + // Skip anything that is a valid number + if ( ! isNaN( Number( word ) ) ) { + return; + } + // Split words by hyphens and slashes const subWords = word.split( /[-/]/ ); diff --git a/projects/plugins/jetpack/extensions/plugins/publicize/index.js b/projects/plugins/jetpack/extensions/plugins/publicize/index.js index 0a73e5629f843..5d705f0638dd2 100644 --- a/projects/plugins/jetpack/extensions/plugins/publicize/index.js +++ b/projects/plugins/jetpack/extensions/plugins/publicize/index.js @@ -10,7 +10,7 @@ import { PublicizePanel, SocialImageGeneratorPanel, - usePublicizeConfig, + usePostCanUseSig, PostPublishPanels, GlobalModals, } from '@automattic/jetpack-publicize-components'; @@ -29,7 +29,7 @@ export const name = 'publicize'; const PublicizeSettings = () => { const { isLoadingModules, isChangingStatus, isModuleActive, changeStatus } = useModuleStatus( name ); - const { isSocialImageGeneratorAvailable } = usePublicizeConfig(); + const postCanUseSig = usePostCanUseSig(); let children = null; let panels = null; @@ -50,12 +50,12 @@ const PublicizeSettings = () => { - { isSocialImageGeneratorAvailable && } + { postCanUseSig && } ); panels = ( <> - + diff --git a/projects/plugins/jetpack/extensions/plugins/publicize/pre-publish.js b/projects/plugins/jetpack/extensions/plugins/publicize/pre-publish.js index e0ba6ac7cbeb2..559c9edff032d 100644 --- a/projects/plugins/jetpack/extensions/plugins/publicize/pre-publish.js +++ b/projects/plugins/jetpack/extensions/plugins/publicize/pre-publish.js @@ -3,16 +3,18 @@ import { SocialImageGeneratorPanel, useSyncPostDataToStore, useSocialMediaConnections, + usePostCanUseSig, } from '@automattic/jetpack-publicize-components'; import { JetpackEditorPanelLogo } from '@automattic/jetpack-shared-extension-utils'; import { PluginPrePublishPanel } from '@wordpress/edit-post'; import { __ } from '@wordpress/i18n'; import UpsellNotice from './components/upsell'; -const PrePublishPanels = ( { isSocialImageGeneratorAvailable } ) => { +const PrePublishPanels = () => { useSyncPostDataToStore(); const { hasEnabledConnections } = useSocialMediaConnections(); + const postCanUseSig = usePostCanUseSig(); return ( <> @@ -31,7 +33,7 @@ const PrePublishPanels = ( { isSocialImageGeneratorAvailable } ) => { - { isSocialImageGeneratorAvailable && ( + { postCanUseSig && ( { - const { getBlock } = select( 'core/block-editor' ); - return getBlock( clientId ); - } ); - } + const block = useSelect( select => { + const { getBlock } = select( 'core/block-editor' ); + return getBlock( clientId ); + } ); return ( <> @@ -105,8 +102,7 @@ export default function BlockStylesSelector( {
{ styleOption.preview ? styleOption.preview - : useSelect && - block && ( + : block && ( { - if ( undefined !== typeof window && window.location ) { + if ( window?.location ) { const queryParams = new URLSearchParams( window.location.search ); if ( queryParams.get( 'plan_upgraded' ) ) { diff --git a/projects/plugins/jetpack/jetpack.php b/projects/plugins/jetpack/jetpack.php index 367973ccfab33..2331d6424dfeb 100644 --- a/projects/plugins/jetpack/jetpack.php +++ b/projects/plugins/jetpack/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 14.0-a.5 + * Version: 14.0-a.7 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -34,7 +34,7 @@ define( 'JETPACK__MINIMUM_WP_VERSION', '6.5' ); define( 'JETPACK__MINIMUM_PHP_VERSION', '7.0' ); -define( 'JETPACK__VERSION', '14.0-a.5' ); +define( 'JETPACK__VERSION', '14.0-a.7' ); /** * Constant used to fetch the connection owner token diff --git a/projects/plugins/jetpack/modules/.eslintrc.js b/projects/plugins/jetpack/modules/.eslintrc.js index 25a20196d8d6e..ed838f1bb2eec 100644 --- a/projects/plugins/jetpack/modules/.eslintrc.js +++ b/projects/plugins/jetpack/modules/.eslintrc.js @@ -26,7 +26,7 @@ module.exports = { 'no-unused-vars': 'warn', 'no-useless-escape': 0, 'no-control-regex': 0, - 'no-unused-expressions': 'warn', + 'no-unused-expressions': [ 'warn', { allowShortCircuit: true, allowTernary: true } ], 'no-caller': 'error', 'no-cond-assign': [ 'error', 'except-parens' ], diff --git a/projects/plugins/jetpack/modules/comments/comments.php b/projects/plugins/jetpack/modules/comments/comments.php index f7cd5fac70061..5378eb8c80ae5 100644 --- a/projects/plugins/jetpack/modules/comments/comments.php +++ b/projects/plugins/jetpack/modules/comments/comments.php @@ -394,6 +394,7 @@ public function comment_form_after() { 'color_scheme' => get_option( 'jetpack_comment_form_color_scheme', $this->default_color_scheme ), 'lang' => get_locale(), 'jetpack_version' => JETPACK__VERSION, + 'iframe_unique_id' => wp_unique_id(), ); // Extra parameters for logged in user. @@ -594,12 +595,30 @@ function tellFrameNewParent ( commentParentValue ) { document.querySelector('#comment-reply-js')?.addEventListener( 'load', watchReply ); + + const commentIframes = document.getElementsByClassName('jetpack_remote_comment'); - window.addEventListener( 'message', function ( event ) { - if ( event.origin !== 'https://jetpack.wordpress.com' ) { + window.addEventListener('message', function(event) { + if (event.origin !== 'https://jetpack.wordpress.com') { return; } - iframe.style.height = event.data + 'px'; + + if (!event?.data?.iframeUniqueId && !event?.data?.height) { + return; + } + + const eventDataUniqueId = event.data.iframeUniqueId; + + // Change height for the matching comment iframe + for (let i = 0; i < commentIframes.length; i++) { + const iframe = commentIframes[i]; + const url = new URL(iframe.src); + const iframeUniqueIdParam = url.searchParams.get('iframe_unique_id'); + if (iframeUniqueIdParam == event.data.iframeUniqueId) { + iframe.style.height = event.data.height + 'px'; + return; + } + } }); })(); diff --git a/projects/plugins/jetpack/modules/infinite-scroll/infinity.js b/projects/plugins/jetpack/modules/infinite-scroll/infinity.js index e880c15bfc9c4..10ee02978bed9 100644 --- a/projects/plugins/jetpack/modules/infinite-scroll/infinity.js +++ b/projects/plugins/jetpack/modules/infinite-scroll/infinity.js @@ -2,17 +2,17 @@ ( function () { // Open closure. // Local vars. - var Scroller, ajaxurl, stats, type, text, totop, loading_text; + var Scroller, stats, type, text, totop, loading_text; // IE requires special handling - var isIE = -1 != navigator.userAgent.search( 'MSIE' ); + var isIE = -1 !== navigator.userAgent.search( 'MSIE' ); if ( isIE ) { var IEVersion = navigator.userAgent.match( /MSIE\s?(\d+)\.?\d*;/ ); IEVersion = parseInt( IEVersion[ 1 ] ); } // HTTP ajaxurl when site is HTTPS causes Access-Control-Allow-Origin failure in Desktop and iOS Safari - if ( 'https:' == document.location.protocol ) { + if ( 'https:' === document.location.protocol ) { infiniteScroll.settings.ajaxurl = infiniteScroll.settings.ajaxurl.replace( 'http://', 'https://' @@ -63,7 +63,7 @@ // We have two type of infinite scroll // cases 'scroll' and 'click' - if ( type == 'scroll' ) { + if ( type === 'scroll' ) { // Bind refresh to the scroll event // Throttle to check for such case every 300ms @@ -90,7 +90,7 @@ // Ensure that enough posts are loaded to fill the initial viewport, to compensate for short posts and large displays. self.ensureFilledViewport(); this.body.addEventListener( 'is.post-load', self.checkViewportOnLoadBound ); - } else if ( type == 'click' ) { + } else if ( type === 'click' ) { if ( this.click_handle ) { this.element.appendChild( this.handle ); } @@ -488,7 +488,7 @@ self.render.call( self, response ); // If 'click' type and there are still posts to fetch, add back the handle - if ( type == 'click' ) { + if ( type === 'click' ) { // add focus to new posts, only in button mode as we know where page focus currently is and only if we have a wrapper if ( infiniteScroll.settings.wrapper ) { document @@ -805,7 +805,7 @@ self.history.parameters; } - if ( window.location.href != pageSlug ) { + if ( window.location.href !== pageSlug ) { history.pushState( null, null, pageSlug ); } }; @@ -875,9 +875,6 @@ } } ); - // Set ajaxurl (for brevity) - ajaxurl = infiniteScroll.settings.ajaxurl; - // Set stats, used for tracking stats stats = infiniteScroll.settings.stats; @@ -895,7 +892,7 @@ /** * Monitor user scroll activity to update URL to correspond to archive page for current set of IS posts */ - if ( type == 'click' ) { + if ( type === 'click' ) { var timer = null; window.addEventListener( 'scroll', function () { // run the real scroll handler once every 250 ms. diff --git a/projects/plugins/jetpack/modules/plugin-search/plugin-search.js b/projects/plugins/jetpack/modules/plugin-search/plugin-search.js index a306b1e44cc85..87eda471adc1b 100644 --- a/projects/plugins/jetpack/modules/plugin-search/plugin-search.js +++ b/projects/plugins/jetpack/modules/plugin-search/plugin-search.js @@ -3,7 +3,7 @@ * of the card with customized content. */ -/* global jetpackPluginSearch, JSON, jpTracksAJAX */ +/* global jetpackPluginSearch, jpTracksAJAX */ var JetpackPSH = {}; diff --git a/projects/plugins/jetpack/modules/scan/admin-bar-notice.js b/projects/plugins/jetpack/modules/scan/admin-bar-notice.js index 4a226bc4d9309..1580169806a53 100644 --- a/projects/plugins/jetpack/modules/scan/admin-bar-notice.js +++ b/projects/plugins/jetpack/modules/scan/admin-bar-notice.js @@ -1,6 +1,6 @@ ( function ( localized ) { function ready( fn ) { - if ( document.readyState != 'loading' ) { + if ( document.readyState !== 'loading' ) { fn(); } else { document.addEventListener( 'DOMContentLoaded', fn ); @@ -11,7 +11,7 @@ var xhrRequest = new XMLHttpRequest(); xhrRequest.open( 'GET', localized.scan_endpoint, true ); xhrRequest.onload = function () { - if ( this.status == 200 ) { + if ( this.status === 200 ) { // Success! var body = JSON.parse( this.response ); if ( body && body.data ) { @@ -45,7 +45,7 @@ return; } - var textLabel = numberOfThreats == 1 ? localized.singular : localized.multiple; + var textLabel = numberOfThreats === 1 ? localized.singular : localized.multiple; element.innerHTML = '' + textLabel + ''; } diff --git a/projects/plugins/jetpack/modules/videopress/js/videopress-plupload.js b/projects/plugins/jetpack/modules/videopress/js/videopress-plupload.js index 1418b16c57ea1..4ccb5ddf50789 100644 --- a/projects/plugins/jetpack/modules/videopress/js/videopress-plupload.js +++ b/projects/plugins/jetpack/modules/videopress/js/videopress-plupload.js @@ -1,4 +1,4 @@ -/* global pluploadL10n, plupload, _wpPluploadSettings, JSON */ +/* global pluploadL10n, plupload, _wpPluploadSettings */ window.wp = window.wp || {}; diff --git a/projects/plugins/jetpack/modules/wpgroho.js b/projects/plugins/jetpack/modules/wpgroho.js index 33c79d5afc90f..ae683793d1e51 100644 --- a/projects/plugins/jetpack/modules/wpgroho.js +++ b/projects/plugins/jetpack/modules/wpgroho.js @@ -4,10 +4,14 @@ out = out || {}; for ( var i = 1; i < arguments.length; i++ ) { - if ( ! arguments[ i ] ) continue; + if ( ! arguments[ i ] ) { + continue; + } for ( var key in arguments[ i ] ) { - if ( Object.hasOwn( arguments[ i ], key ) ) out[ key ] = arguments[ i ][ key ]; + if ( Object.hasOwn( arguments[ i ], key ) ) { + out[ key ] = arguments[ i ][ key ]; + } } } diff --git a/projects/plugins/jetpack/package.json b/projects/plugins/jetpack/package.json index 75a84e7b516be..69e0571785b39 100644 --- a/projects/plugins/jetpack/package.json +++ b/projects/plugins/jetpack/package.json @@ -1,6 +1,6 @@ { "name": "Jetpack", - "version": "14.0.0-a.5", + "version": "14.0.0-a.7", "private": true, "description": "[Jetpack](https://jetpack.com/) is a WordPress plugin that supercharges your self-hosted WordPress site with the awesome cloud power of [WordPress.com](https://wordpress.com).", "homepage": "https://jetpack.com", @@ -157,7 +157,7 @@ "jest-environment-jsdom": "29.7.0", "jquery": "3.6.0", "lodash": "4.17.21", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-loader": "6.2.0", "regenerator-runtime": "0.13.9", "sass-loader": "12.4.0", diff --git a/projects/plugins/jetpack/readme.txt b/projects/plugins/jetpack/readme.txt index caa2d797608e3..2ea5b8f05cca1 100644 --- a/projects/plugins/jetpack/readme.txt +++ b/projects/plugins/jetpack/readme.txt @@ -1,10 +1,10 @@ === Jetpack - WP Security, Backup, Speed, & Growth === Contributors: automattic, adamkheckler, adrianmoldovanwp, aduth, akirk, allendav, alternatekev, andy, annamcphee, annezazu, apeatling, arcangelini, arsihasi, azaozz, barry, batmoo, beaulebens, bindlegirl, biskobe, bjorsch, blobaugh, brbrr, brileyhooper, cainm, cena, cfinke, cgastrell, chaselivingston, chellycat, clickysteve, csonnek, danielbachhuber, daniloercoli, davoraltman, delawski, designsimply, dkmyta, dllh, drawmyface, dsmart, dun2mis, dzver, ebinnion, egregor, eliorivero, enej, eoigal, erania-pinnera, ethitter, fgiannar, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, joen, jblz, jeffgolenski, jeherve, jenhooks, jenia, jessefriedman, jgs, jkudish, jmdodd, joanrho, johnjamesjacoby, jshreve, kbrownkd, keoshi, koke, kraftbj, lancewillett, leogermani, lhkowalski, lschuyler, macmanx, martinremy, matt, mattwiebe, matveb, maverick3x6, mcsf, mdawaffe, mdbitz, MichaelArestad, migueluy, miguelxavierpenha, mikeyarce, mkaz, nancythanki, nickmomrik, njweller, nunyvega, obenland, oskosk, pento, professor44, rachelsquirrel, rdcoll, renatoagds, retrofox, richardmtl, richardmuscat, robertbpugh, roccotripaldi, ryancowles, samhotchkiss, samiff, scarstocea, scottsweb, sdixon194, sdquirk, sermitr, simison, stephdau, thehenridev, tmoorewp, tyxla, Viper007Bond, westi, williamvianas, wpkaren, yoavf, zinigor Tags: Security, backup, malware, scan, performance -Stable tag: 13.8.1 +Stable tag: 13.9.1 Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -326,8 +326,18 @@ Jetpack Backup can do a full website migration to a new host, migrate theme file == Changelog == -### 14.0-a.5 - 2024-10-16 -Fix: do not include Related Posts on non-post posts on classic themes. +### 14.0-a.7 - 2024-10-21 +#### Enhancements +- Newsletters: Add an email preview option to the preview menu. +- Newsletters: Allow skipping newsletter modals with a URL query param. + +#### Improved compatibility +- General: Ensure notice displays without errors when running an old version of WordPress. +- Plugin action links filters: Update parameter to avoid conflicts with other plugins. + +#### Bug fixes +- Map Block: Fix issue where blocks placed underneath would overlap with the map block. +- Newsletters: Fix "Use excerpt" setting. -------- diff --git a/projects/plugins/jetpack/tests/php/general/test_jetpack-admin-menu.php b/projects/plugins/jetpack/tests/php/general/test_jetpack-admin-menu.php index 7c26ad0aca3f0..c4d0a6983443a 100644 --- a/projects/plugins/jetpack/tests/php/general/test_jetpack-admin-menu.php +++ b/projects/plugins/jetpack/tests/php/general/test_jetpack-admin-menu.php @@ -87,20 +87,19 @@ public function test_jetpack_admin_menu_order() { // Some sites - multisites / WoA for example - may not have all of the menu items. if ( in_array( 'My Jetpack', $submenu_names, true ) ) { $my_jetpack_submenu_position = array_search( 'My Jetpack', $submenu_names, true ); - $this->assertTrue( $my_jetpack_submenu_position < $stats_submenu_position, 'My Jetpack should be above Stats in the submenu order.' ); + $this->assertLessThan( $stats_submenu_position, $my_jetpack_submenu_position, 'My Jetpack should be above Stats in the submenu order.' ); } if ( in_array( 'Activity Log', $submenu_names, true ) ) { $activity_log_submenu_position = array_search( 'Activity Log', $submenu_names, true ); - $this->assertTrue( $activity_log_submenu_position < $search_submenu_position, 'Activity Log should be above Search in the submenu order.' ); - $this->assertTrue( $backup_submenu_position < $activity_log_submenu_position, 'Jetpack VaultPress Backup should be above Activity Log in the submenu order.' ); + $this->assertLessThan( $search_submenu_position, $activity_log_submenu_position, 'Activity Log should be above Search in the submenu order.' ); + $this->assertLessThan( $activity_log_submenu_position, $backup_submenu_position, 'Jetpack VaultPress Backup should be above Activity Log in the submenu order.' ); } - - $this->assertTrue( $stats_submenu_position < $videopress_submenu_position, 'Stats should be above VideoPress in the submenu order.' ); - $this->assertTrue( $videopress_submenu_position < $backup_submenu_position, 'Jetpack VideoPress should be above Jetpack VaultPress Backup in the submenu order.' ); - $this->assertTrue( $backup_submenu_position < $search_submenu_position, 'Jetpack VaultPress Backup should be above Search in the submenu order.' ); - $this->assertTrue( $search_submenu_position < $wordads_submenu_position, 'Search should be above WordAds in the submenu order.' ); - $this->assertTrue( $wordads_submenu_position < $settings_submenu_position, 'WordAds should be above Settings in the submenu order.' ); - $this->assertTrue( $settings_submenu_position < $dashboard_submenu_position, 'Settings should be above Dashboard in the submenu order.' ); + $this->assertLessThan( $videopress_submenu_position, $stats_submenu_position, 'Stats should be above VideoPress in the submenu order.' ); + $this->assertLessThan( $backup_submenu_position, $videopress_submenu_position, 'Jetpack VideoPress should be above Jetpack VaultPress Backup in the submenu order.' ); + $this->assertLessThan( $search_submenu_position, $backup_submenu_position, 'Jetpack VaultPress Backup should be above Search in the submenu order.' ); + $this->assertLessThan( $wordads_submenu_position, $search_submenu_position, 'Search should be above WordAds in the submenu order.' ); + $this->assertLessThan( $settings_submenu_position, $wordads_submenu_position, 'WordAds should be above Settings in the submenu order.' ); + $this->assertLessThan( $dashboard_submenu_position, $settings_submenu_position, 'Settings should be above Dashboard in the submenu order.' ); } } diff --git a/projects/plugins/migration/changelog/update-tested-to-6-7 b/projects/plugins/migration/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/migration/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/migration/readme.txt b/projects/plugins/migration/readme.txt index e841038dff934..0b5da1d9329a0 100644 --- a/projects/plugins/migration/readme.txt +++ b/projects/plugins/migration/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic Tags: migrate, migration, backup, restore, transfer, move, copy, wordpress.com, automattic, import, importer, hosting Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 2.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/protect/changelog/update-tested-to-6-7 b/projects/plugins/protect/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/protect/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/protect/readme.txt b/projects/plugins/protect/readme.txt index 7196aefcbbf88..7d2253fff1a8c 100644 --- a/projects/plugins/protect/readme.txt +++ b/projects/plugins/protect/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, retrofox, leogermani, renatoagds, bjorsch, ebinnion, f Tags: jetpack, protect, security, malware, scan Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 1.4.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/search/changelog/update-tested-to-6-7 b/projects/plugins/search/changelog/update-tested-to-6-7 new file mode 100644 index 0000000000000..9c1d5b4fabb5f --- /dev/null +++ b/projects/plugins/search/changelog/update-tested-to-6-7 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +General: indicate compatibility with the upcoming version of WordPress - 6.7. diff --git a/projects/plugins/search/readme.txt b/projects/plugins/search/readme.txt index b101853e40996..d92746c11d472 100644 --- a/projects/plugins/search/readme.txt +++ b/projects/plugins/search/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, annamcphee, bluefuton, kangzj, jsnmoon, robfelty, gibr Tags: search, filter, woocommerce search, ajax search, product search, free cloud-based search Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 1.4.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/social/CHANGELOG.md b/projects/plugins/social/CHANGELOG.md index 0eaa0d3f74a52..158d7ee767b35 100644 --- a/projects/plugins/social/CHANGELOG.md +++ b/projects/plugins/social/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.5.0 - 2024-10-25 +### Added +- Added Bluesky to social previews [#39659] +- Social Notes: add support for the ActivityPub Reply-To block. [#39738] + +### Changed +- General: indicate compatibility with the upcoming version of WordPress - 6.7. [#39786] +- Initial State: Migrated URLs to script data [#39797] +- Only include `wp-polyfill` as a script dependency when needed. [#39629] +- Updated package dependencies. [#39594] [#39653] [#39707] + +### Fixed +- Added Jetpack Beta's slug to Social OG conflicting plugins [#39792] +- Social: Fixed share status tooltip text overflow [#39599] + ## 5.4.1 - 2024-10-02 ### Changed - Internal updates. diff --git a/projects/plugins/social/changelog/add-bluesky-to-social-previews b/projects/plugins/social/changelog/add-bluesky-to-social-previews deleted file mode 100644 index 73211c933517d..0000000000000 --- a/projects/plugins/social/changelog/add-bluesky-to-social-previews +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: added - -Added Bluesky to social previews diff --git a/projects/plugins/social/changelog/add-dependency-extraction-auto-polyfill b/projects/plugins/social/changelog/add-dependency-extraction-auto-polyfill deleted file mode 100644 index f4cd286e166af..0000000000000 --- a/projects/plugins/social/changelog/add-dependency-extraction-auto-polyfill +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Only include `wp-polyfill` as a script dependency when needed. diff --git a/projects/plugins/social/changelog/add-reply-to-support-social-notes b/projects/plugins/social/changelog/add-reply-to-support-social-notes deleted file mode 100644 index 9e7a0738be21b..0000000000000 --- a/projects/plugins/social/changelog/add-reply-to-support-social-notes +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Social Notes: add support for the ActivityPub Reply-To block. diff --git a/projects/plugins/social/changelog/fix-jetpack-social-notes-clobber-other-cpts b/projects/plugins/social/changelog/fix-jetpack-social-notes-clobber-other-cpts deleted file mode 100644 index 8aac5c2fdff3e..0000000000000 --- a/projects/plugins/social/changelog/fix-jetpack-social-notes-clobber-other-cpts +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fixed -Comment: Resolves a bug in an unreleased feature - - diff --git a/projects/plugins/social/changelog/fix-social-og-tags-jetpack-dev-path b/projects/plugins/social/changelog/fix-social-og-tags-jetpack-dev-path deleted file mode 100644 index 79af3f25d3565..0000000000000 --- a/projects/plugins/social/changelog/fix-social-og-tags-jetpack-dev-path +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Added Jetpack Beta's slug to Social OG conflicting plugins diff --git a/projects/plugins/social/changelog/fix-social-share-status-tooltip-text-overflow b/projects/plugins/social/changelog/fix-social-share-status-tooltip-text-overflow deleted file mode 100644 index 9a6eda0cf22bb..0000000000000 --- a/projects/plugins/social/changelog/fix-social-share-status-tooltip-text-overflow +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Social: Fixed share status tooltip text overflow diff --git a/projects/plugins/social/changelog/fix-sync-filter-null-array b/projects/plugins/social/changelog/fix-sync-filter-null-array deleted file mode 100644 index 3f56c90b3a7bf..0000000000000 --- a/projects/plugins/social/changelog/fix-sync-filter-null-array +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fixed -Comment: Sync: update filter parameter to avoid conflicts with other plugins. - - diff --git a/projects/plugins/social/changelog/renovate-lock-file-maintenance#2 b/projects/plugins/social/changelog/renovate-lock-file-maintenance#2 deleted file mode 100644 index 9aa70e3ec1f75..0000000000000 --- a/projects/plugins/social/changelog/renovate-lock-file-maintenance#2 +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: changed -Comment: Updated composer.lock. - - diff --git a/projects/plugins/social/changelog/renovate-postcss-8.x b/projects/plugins/social/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/plugins/social/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/social/changelog/update-social-initial-state-migrate-urls-on-social-admin b/projects/plugins/social/changelog/update-social-initial-state-migrate-urls-on-social-admin deleted file mode 100644 index c23ee0fbdc59a..0000000000000 --- a/projects/plugins/social/changelog/update-social-initial-state-migrate-urls-on-social-admin +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -Initial State: Migrated URLs to script data diff --git a/projects/plugins/social/composer.json b/projects/plugins/social/composer.json index 83f2a82e3643d..bdd956a7d1584 100644 --- a/projects/plugins/social/composer.json +++ b/projects/plugins/social/composer.json @@ -84,6 +84,6 @@ "automattic/jetpack-autoloader": true, "automattic/jetpack-composer-plugin": true }, - "autoloader-suffix": "c4802e05bbcf59fd3b6350e8d3e5482c_socialⓥ5_4_1" + "autoloader-suffix": "c4802e05bbcf59fd3b6350e8d3e5482c_socialⓥ5_5_0" } } diff --git a/projects/plugins/social/composer.lock b/projects/plugins/social/composer.lock index 7da20bcbcf2d6..71abf37eef397 100644 --- a/projects/plugins/social/composer.lock +++ b/projects/plugins/social/composer.lock @@ -1497,7 +1497,7 @@ "dist": { "type": "path", "url": "../../packages/publicize", - "reference": "b8abac09471222cd803a35a623b5e9b7d4049c0d" + "reference": "1fc54eab768a14c867ab64b3a5b169c662bb6b77" }, "require": { "automattic/jetpack-assets": "@dev", @@ -1525,7 +1525,7 @@ "link-template": "https://github.com/Automattic/jetpack-publicize/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "0.54.x-dev" + "dev-trunk": "0.55.x-dev" } }, "autoload": { diff --git a/projects/plugins/social/jetpack-social.php b/projects/plugins/social/jetpack-social.php index a7d6093d591a1..227b32ff741de 100644 --- a/projects/plugins/social/jetpack-social.php +++ b/projects/plugins/social/jetpack-social.php @@ -4,7 +4,7 @@ * Plugin Name: Jetpack Social * Plugin URI: https://wordpress.org/plugins/jetpack-social * Description: Share your site’s posts on several social media networks automatically when you publish a new post. - * Version: 5.4.1 + * Version: 5.5.0 * Author: Automattic - Jetpack Social team * Author URI: https://jetpack.com/social/ * License: GPLv2 or later diff --git a/projects/plugins/social/package.json b/projects/plugins/social/package.json index f5c3bd624b4d2..a7acc1313b8ef 100644 --- a/projects/plugins/social/package.json +++ b/projects/plugins/social/package.json @@ -61,7 +61,7 @@ "concurrently": "7.6.0", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", - "postcss": "8.4.31", + "postcss": "8.4.47", "postcss-custom-properties": "12.1.7", "postcss-loader": "6.2.0", "sass": "1.64.1", diff --git a/projects/plugins/social/readme.txt b/projects/plugins/social/readme.txt index 73e34ae18e14a..dd42a1fd30aba 100644 --- a/projects/plugins/social/readme.txt +++ b/projects/plugins/social/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, pabline, siddarthan, gmjuhasz, manzoorwanijk Tags: social media automation, social media scheduling, auto share, social sharing, social media marketing Requires at least: 6.5 Requires PHP: 7.0 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 4.5.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -102,9 +102,20 @@ The easiest way is to use the Custom Message option in the publishing options bo 6. Managing Social media accounts in the post editor == Changelog == -### 5.4.1 - 2024-10-02 +### 5.5.0 - 2024-10-25 +#### Added +- Added Bluesky to social previews +- Social Notes: add support for the ActivityPub Reply-To block. + #### Changed -- Internal updates. +- General: indicate compatibility with the upcoming version of WordPress - 6.7. +- Initial State: Migrated URLs to script data +- Only include `wp-polyfill` as a script dependency when needed. +- Updated package dependencies. + +#### Fixed +- Added Jetpack Beta's slug to Social OG conflicting plugins +- Social: Fixed share status tooltip text overflow == Upgrade Notice == diff --git a/projects/plugins/social/src/class-note.php b/projects/plugins/social/src/class-note.php index 73aa53395f6cd..b03256fd62a83 100644 --- a/projects/plugins/social/src/class-note.php +++ b/projects/plugins/social/src/class-note.php @@ -170,7 +170,7 @@ public function restrict_blocks_for_social_note( $allowed_blocks, $post ) { * * Default is ['core/paragraph', 'core/post-featured-image'] * - * @since $$next-version$$ + * @since 5.5.0 * * @param array $allowed_blocks A linear array of blocks allowed by the CPT. */ diff --git a/projects/plugins/social/src/js/components/admin-page/index.jsx b/projects/plugins/social/src/js/components/admin-page/index.jsx index fcb351364013c..466fd6342cda9 100644 --- a/projects/plugins/social/src/js/components/admin-page/index.jsx +++ b/projects/plugins/social/src/js/components/admin-page/index.jsx @@ -7,7 +7,12 @@ import { GlobalNotices, } from '@automattic/jetpack-components'; import { useConnection } from '@automattic/jetpack-connection'; -import { store as socialStore } from '@automattic/jetpack-publicize-components'; +import { + hasSocialPaidFeatures, + store as socialStore, + features, +} from '@automattic/jetpack-publicize-components'; +import { siteHasFeature } from '@automattic/jetpack-script-data'; import { useSelect, useDispatch } from '@wordpress/data'; import { useState, useCallback, useEffect, useRef } from '@wordpress/element'; import React from 'react'; @@ -31,33 +36,30 @@ const Admin = () => { const onPricingPageDismiss = useCallback( () => setForceDisplayPricingPage( false ), [] ); - const { - isModuleEnabled, - showPricingPage, - hasPaidFeatures, - pluginVersion, - isSocialImageGeneratorAvailable, - isUpdatingJetpackSettings, - } = useSelect( select => { - const store = select( socialStore ); - return { - isModuleEnabled: store.isModuleEnabled(), - showPricingPage: store.showPricingPage(), - hasPaidFeatures: store.hasPaidFeatures(), - pluginVersion: store.getPluginVersion(), - isSocialImageGeneratorAvailable: store.isSocialImageGeneratorAvailable(), - isUpdatingJetpackSettings: store.isUpdatingJetpackSettings(), - }; - } ); + const { isModuleEnabled, showPricingPage, pluginVersion, isUpdatingJetpackSettings } = useSelect( + select => { + const store = select( socialStore ); + return { + isModuleEnabled: store.isModuleEnabled(), + showPricingPage: store.showPricingPage(), + pluginVersion: store.getPluginVersion(), + isUpdatingJetpackSettings: store.isUpdatingJetpackSettings(), + }; + } + ); const hasEnabledModule = useRef( isModuleEnabled ); useEffect( () => { - if ( isModuleEnabled && ! hasEnabledModule.current && isSocialImageGeneratorAvailable ) { + if ( + isModuleEnabled && + ! hasEnabledModule.current && + siteHasFeature( features.IMAGE_GENERATOR ) + ) { hasEnabledModule.current = true; refreshJetpackSocialSettings(); } - }, [ isModuleEnabled, isSocialImageGeneratorAvailable, refreshJetpackSocialSettings ] ); + }, [ isModuleEnabled, refreshJetpackSocialSettings ] ); const moduleName = `Jetpack Social ${ pluginVersion }`; @@ -76,7 +78,7 @@ const Admin = () => { return ( }> - { ( ! hasPaidFeatures && showPricingPage ) || forceDisplayPricingPage ? ( + { ( ! hasSocialPaidFeatures() && showPricingPage ) || forceDisplayPricingPage ? ( @@ -92,7 +94,7 @@ const Admin = () => { { isModuleEnabled && } - { isModuleEnabled && isSocialImageGeneratorAvailable && ( + { isModuleEnabled && siteHasFeature( features.IMAGE_GENERATOR ) && ( ) } diff --git a/projects/plugins/social/src/js/components/admin-page/test/index.test.jsx b/projects/plugins/social/src/js/components/admin-page/test/index.test.jsx index fe6184c585049..e24423098cdb0 100644 --- a/projects/plugins/social/src/js/components/admin-page/test/index.test.jsx +++ b/projects/plugins/social/src/js/components/admin-page/test/index.test.jsx @@ -13,7 +13,6 @@ describe( 'load the app', () => { let storeSelect; renderHook( () => useSelect( select => ( storeSelect = select( SOCIAL_STORE_ID ) ) ) ); jest.spyOn( storeSelect, 'showPricingPage' ).mockReset().mockReturnValue( true ); - jest.spyOn( storeSelect, 'hasPaidPlan' ).mockReset().mockReturnValue( true ); jest.spyOn( storeSelect, 'getPluginVersion' ).mockReset().mockReturnValue( version ); render( ); expect( screen.getByText( `Jetpack Social ${ version }` ) ).toBeInTheDocument(); diff --git a/projects/plugins/social/src/js/components/social-module-toggle/index.tsx b/projects/plugins/social/src/js/components/social-module-toggle/index.tsx index 77345ba97de14..6d955bc2f817d 100644 --- a/projects/plugins/social/src/js/components/social-module-toggle/index.tsx +++ b/projects/plugins/social/src/js/components/social-module-toggle/index.tsx @@ -9,6 +9,7 @@ import { ConnectionManagement, SOCIAL_STORE_ID, getSocialScriptData, + hasSocialPaidFeatures, } from '@automattic/jetpack-publicize-components'; import { ExternalLink } from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; @@ -26,7 +27,6 @@ const SocialModuleToggle: React.FC = () => { isUpdating, siteSuffix, blogID, - hasPaidFeatures, } = useSelect( select => { const store = select( SOCIAL_STORE_ID ) as SocialStoreSelectors; return { @@ -34,7 +34,6 @@ const SocialModuleToggle: React.FC = () => { isUpdating: store.isUpdatingJetpackSettings(), siteSuffix: store.getSiteSuffix(), blogID: store.getBlogID(), - hasPaidFeatures: store.hasPaidFeatures(), }; }, [] ); @@ -97,7 +96,7 @@ const SocialModuleToggle: React.FC = () => { { __( 'Learn more', 'jetpack-social' ) } - { ! hasPaidFeatures ? ( + { ! hasSocialPaidFeatures() ? ( { const [ isAtLeastMedium ] = useBreakpointMatch( 'md', '>=' ); - const hasPaidPlan = useSelect( select => select( SOCIAL_STORE_ID ).hasPaidPlan() ); - if ( ! hasPaidPlan ) { + if ( ! hasSocialPaidFeatures() ) { return null; } diff --git a/projects/plugins/social/src/js/components/types/types.ts b/projects/plugins/social/src/js/components/types/types.ts index 9ce1d062591fb..bd349bbd106f3 100644 --- a/projects/plugins/social/src/js/components/types/types.ts +++ b/projects/plugins/social/src/js/components/types/types.ts @@ -7,8 +7,6 @@ type JetpackSettingsSelectors = { isModuleEnabled: () => boolean; showPricingPage: () => boolean; isUpdatingJetpackSettings: () => boolean; - hasPaidPlan: () => boolean; - hasPaidFeatures: () => boolean; }; type ConnectionDataSelectors = { @@ -31,7 +29,6 @@ type SocialImageGeneratorSettingsSelectors = { template: string; }; }; - isSocialImageGeneratorAvailable: () => boolean; isSocialImageGeneratorEnabled: () => boolean; isUpdatingSocialImageGeneratorSettings: () => boolean; getSocialImageGeneratorDefaultTemplate: () => string; diff --git a/projects/plugins/social/src/js/editor.js b/projects/plugins/social/src/js/editor.js index 2966d8d49ae34..ed12f1e5c4f18 100644 --- a/projects/plugins/social/src/js/editor.js +++ b/projects/plugins/social/src/js/editor.js @@ -9,6 +9,7 @@ import { useSyncPostDataToStore, PostPublishPanels, GlobalModals, + usePostCanUseSig, } from '@automattic/jetpack-publicize-components'; import { JetpackEditorPanelLogo } from '@automattic/jetpack-shared-extension-utils'; import { PanelBody } from '@wordpress/components'; @@ -51,8 +52,9 @@ const JetpackSocialSidebar = () => { const closeModal = useCallback( () => setIsModalOpened( false ), [] ); const { hasConnections, hasEnabledConnections } = useSocialMediaConnections(); - const { isPublicizeEnabled, hidePublicizeFeature, isSocialImageGeneratorAvailable } = - usePublicizeConfig(); + const { isPublicizeEnabled, hidePublicizeFeature } = usePublicizeConfig(); + const postCanUseSig = usePostCanUseSig(); + const isPostPublished = useSelect( select => select( editorStore ).isCurrentPostPublished(), [] ); const PanelDescription = () => ( { - { isSocialImageGeneratorAvailable && } + { postCanUseSig && } @@ -95,7 +97,7 @@ const JetpackSocialSidebar = () => { - { isSocialImageGeneratorAvailable && ( + { postCanUseSig && ( false ) ) { + // If we're building changelogger itself, we need to install before we can run it. + if ( t.project === 'packages/changelogger' ) { + await t.execa( 'composer', await getInstallArgs( t.project, 'composer', t.argv ), { + cwd: t.cwd, + stdio: [ 'ignore', 'inherit', 'inherit' ], + buffer: false, + } ); + } + let prerelease = 'alpha'; if ( composerJson.extra?.[ 'dev-releases' ] ) { const m = ( diff --git a/tools/cli/commands/changelog.js b/tools/cli/commands/changelog.js index 9319a3e1c6843..5b24a6c7237f5 100644 --- a/tools/cli/commands/changelog.js +++ b/tools/cli/commands/changelog.js @@ -311,7 +311,8 @@ async function changelogAdd( argv ) { return; } - let changelogInfo, needChangelog; + let changelogInfo, + needChangelog = []; if ( argv.project ) { needChangelog = [ argv.project ]; @@ -695,7 +696,11 @@ async function checkChangelogFiles() { const branchReg = /\/branch-/; // match example: jetpack/branch-1.2.3 if ( currentBranch.match( branchReg ) ) { console.log( chalk.green( 'Release branch detected. No changelog required.' ) ); - return []; + return { + touched: [], + files: new Map(), + need: [], + }; } const re1 = /^projects\/([^/]+\/[^/]+)\//; // regex matches project file path, ie 'project/packages/connection/..' diff --git a/tools/cli/commands/generate.js b/tools/cli/commands/generate.js index f872709139c88..8a6f54a01d777 100644 --- a/tools/cli/commands/generate.js +++ b/tools/cli/commands/generate.js @@ -958,7 +958,7 @@ function createReadMeTxt( answers ) { 'Tags: jetpack, stuff\n' + 'Requires at least: 6.5\n' + 'Requires PHP: 7.0\n' + - 'Tested up to: 6.6\n' + + 'Tested up to: 6.7\n' + `Stable tag: ${ answers.version }\n` + 'License: GPLv2 or later\n' + 'License URI: http://www.gnu.org/licenses/gpl-2.0.html\n' + diff --git a/tools/eslint-excludelist.json b/tools/eslint-excludelist.json index e89841313592a..fda4bf3612853 100644 --- a/tools/eslint-excludelist.json +++ b/tools/eslint-excludelist.json @@ -24,7 +24,6 @@ "projects/plugins/jetpack/_inc/client/mixins/emitter/index.js", "projects/plugins/jetpack/_inc/client/my-plan/index.jsx", "projects/plugins/jetpack/_inc/client/notices/index.js", - "projects/plugins/jetpack/_inc/client/pro-status/index.jsx", "projects/plugins/jetpack/_inc/client/state/connection/reducer.js", "projects/plugins/jetpack/_inc/client/state/dev-version/reducer.js", "projects/plugins/jetpack/_inc/client/state/disconnect-survey/reducer.js", @@ -47,30 +46,15 @@ "projects/plugins/jetpack/_inc/jetpack-deactivate-dialog.js", "projects/plugins/jetpack/_inc/jetpack-modules.js", "projects/plugins/jetpack/_inc/twitter-timeline.js", - "projects/plugins/jetpack/extensions/blocks/eventbrite/utils.js", - "projects/plugins/jetpack/extensions/blocks/image-compare/edit.js", "projects/plugins/jetpack/extensions/blocks/image-compare/use-debounce.js", - "projects/plugins/jetpack/extensions/blocks/opentable/edit.js", - "projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js", - "projects/plugins/jetpack/extensions/blocks/opentable/use-restaurant-search.js", "projects/plugins/jetpack/extensions/blocks/pinterest/utils.js", "projects/plugins/jetpack/extensions/blocks/podcast-player/utils.js", "projects/plugins/jetpack/extensions/blocks/slideshow/transforms.js", - "projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js", "projects/plugins/jetpack/extensions/shared/block-styles.js", - "projects/plugins/jetpack/extensions/shared/components/block-styles-selector/index.js", "projects/plugins/jetpack/extensions/shared/currencies.js", - "projects/plugins/jetpack/extensions/shared/external-media/sources/google-photos/filter-request.js", "projects/plugins/jetpack/extensions/shared/get-validated-attributes.js", - "projects/plugins/jetpack/extensions/shared/plan-upgrade-notification.js", "projects/plugins/jetpack/modules/infinite-scroll/infinity-customizer.js", - "projects/plugins/jetpack/modules/infinite-scroll/infinity.js", - "projects/plugins/jetpack/modules/plugin-search/plugin-search.js", - "projects/plugins/jetpack/modules/scan/admin-bar-notice.js", "projects/plugins/jetpack/modules/videopress/js/gutenberg-video-upload.js", - "projects/plugins/jetpack/modules/videopress/js/videopress-plupload.js", "projects/plugins/jetpack/modules/widgets/customizer-utils.js", - "projects/plugins/jetpack/modules/widgets/milestone/admin.js", - "projects/plugins/jetpack/modules/widgets/simple-payments/customizer.js", - "projects/plugins/jetpack/modules/wpgroho.js" + "projects/plugins/jetpack/modules/widgets/simple-payments/customizer.js" ] diff --git a/tools/js-tools/package.json b/tools/js-tools/package.json index 0e238c864e288..ea9398358565d 100644 --- a/tools/js-tools/package.json +++ b/tools/js-tools/package.json @@ -13,7 +13,7 @@ "@automattic/eslint-changed": "workspace:*", "@automattic/eslint-config-target-es": "workspace:*", "@babel/core": "7.24.7", - "@babel/eslint-parser": "7.24.7", + "@babel/eslint-parser": "7.25.9", "@babel/preset-react": "7.24.7", "@babel/preset-typescript": "7.24.7", "@octokit/auth-token": "5.1.1", @@ -28,22 +28,22 @@ "chalk": "4.1.2", "debug": "4.3.4", "enquirer": "2.4.1", - "eslint": "8.57.0", + "eslint": "8.57.1", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-exports": "1.0.0-beta.5", "eslint-plugin-es-x": "7.8.0", - "eslint-plugin-import": "2.29.1", + "eslint-plugin-import": "2.31.0", "eslint-plugin-jest": "27.9.0", "eslint-plugin-jest-dom": "5.4.0", - "eslint-plugin-jsdoc": "48.8.3", - "eslint-plugin-jsx-a11y": "6.9.0", + "eslint-plugin-jsdoc": "48.11.0", + "eslint-plugin-jsx-a11y": "6.10.1", "eslint-plugin-lodash": "7.4.0", "eslint-plugin-playwright": "0.22.2", "eslint-plugin-prettier": "5.2.1", - "eslint-plugin-react": "7.35.0", + "eslint-plugin-react": "7.37.2", "eslint-plugin-react-hooks": "4.6.2", - "eslint-plugin-svelte": "2.43.0", - "eslint-plugin-testing-library": "6.3.0", + "eslint-plugin-svelte": "2.46.0", + "eslint-plugin-testing-library": "6.4.0", "glob": "10.4.1", "ignore": "5.1.8", "jest": "29.7.0",