diff --git a/package.json b/package.json index 61aea19924cbf..b7d34e0aa51d2 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "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:*" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3883be69e5cd..7d8e6b960550d 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 @@ -290,6 +290,9 @@ importers: '@automattic/jetpack-boost-score-api': specifier: workspace:* version: link:../boost-score-api + '@automattic/jetpack-scan': + specifier: workspace:* + version: link:../scan '@babel/runtime': specifier: ^7 version: 7.24.7 @@ -629,11 +632,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 @@ -774,22 +777,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) @@ -804,7 +807,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 @@ -1160,12 +1163,6 @@ importers: '@automattic/jetpack-base-styles': specifier: workspace:* version: link:../base-styles - '@automattic/jetpack-connection': - specifier: workspace:* - version: link:../connection - '@automattic/jetpack-shared-extension-utils': - specifier: workspace:* - version: link:../shared-extension-utils '@wordpress/api-fetch': specifier: 7.9.0 version: 7.9.0 @@ -1453,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 @@ -1476,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 @@ -1528,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 @@ -1911,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 @@ -2167,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 @@ -2184,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)) @@ -2383,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:* @@ -2396,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 @@ -2735,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) @@ -2759,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) @@ -2776,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 @@ -2911,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 @@ -2947,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)) @@ -2958,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 @@ -3417,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 @@ -3696,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 @@ -3706,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) @@ -3718,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 @@ -3898,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 @@ -3981,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) @@ -4044,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) @@ -4070,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 @@ -4384,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 @@ -4402,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) @@ -4416,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 @@ -4808,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) @@ -4830,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) @@ -4853,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 @@ -5056,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 @@ -6079,8 +6076,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': @@ -6108,8 +6105,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 @@ -6702,6 +6699,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==} @@ -8477,9 +8477,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'} @@ -9545,8 +9542,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: @@ -9666,12 +9663,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 @@ -9699,17 +9696,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==} @@ -9746,27 +9743,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==} @@ -9784,12 +9781,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} @@ -10798,8 +10803,9 @@ 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==} @@ -11098,8 +11104,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==} @@ -12291,10 +12297,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} @@ -13274,8 +13276,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==} @@ -13405,11 +13408,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 @@ -14505,11 +14508,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 @@ -15369,9 +15372,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: @@ -15645,9 +15648,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': {} @@ -15666,7 +15669,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.0': {} + '@eslint/js@8.57.1': {} '@fastify/busboy@2.1.1': {} @@ -15693,7 +15696,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 @@ -16572,6 +16575,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)': @@ -17682,16 +17687,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 @@ -17702,14 +17707,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: @@ -17725,12 +17730,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 @@ -17770,30 +17775,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 @@ -18014,9 +18019,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) @@ -18072,9 +18077,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) @@ -18130,9 +18135,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) @@ -19183,25 +19188,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: @@ -19601,11 +19606,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: @@ -20216,14 +20221,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: {} @@ -20250,10 +20255,6 @@ snapshots: transitivePeerDependencies: - debug - axobject-query@3.1.1: - dependencies: - deep-equal: 2.2.3 - axobject-query@4.1.0: {} b4a@1.6.7: {} @@ -20989,9 +20990,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: @@ -21008,12 +21009,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) @@ -21021,9 +21022,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) @@ -21062,49 +21063,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: @@ -21523,7 +21524,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 @@ -21537,7 +21538,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: {} @@ -21651,19 +21652,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: @@ -21674,34 +21675,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 @@ -21710,39 +21712,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 @@ -21751,60 +21755,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 @@ -21818,29 +21822,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 @@ -21859,13 +21863,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 @@ -21902,6 +21908,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 @@ -22671,10 +22683,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 @@ -22985,7 +22993,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 @@ -23574,7 +23582,7 @@ snapshots: klona@2.0.6: {} - known-css-properties@0.34.0: {} + known-css-properties@0.35.0: {} kuler@2.0.0: {} @@ -24696,53 +24704,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): + postcss-discard-comments@6.0.2(postcss@8.4.47): dependencies: - postcss: 8.4.31 - - postcss-discard-duplicates@6.0.3(postcss@8.4.31): - 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: @@ -24751,67 +24752,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) @@ -24819,102 +24809,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): @@ -24930,30 +24910,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 @@ -25628,17 +25602,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 @@ -25672,7 +25646,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: @@ -26081,8 +26055,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 @@ -26181,10 +26156,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: {} @@ -26219,7 +26194,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 @@ -26229,12 +26204,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 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/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/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/js-packages/social-logos/changelog/renovate-svgicons2svgfont-14.x b/projects/js-packages/boost-score-api/changelog/renovate-eslint-packages similarity index 100% rename from projects/js-packages/social-logos/changelog/renovate-svgicons2svgfont-14.x 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/js-packages/components/changelog/icon-tooltip-add-hover-support b/projects/js-packages/components/changelog/icon-tooltip-add-hover-support new file mode 100644 index 0000000000000..581190cf8e745 --- /dev/null +++ b/projects/js-packages/components/changelog/icon-tooltip-add-hover-support @@ -0,0 +1,4 @@ +Significance: patch +Type: added + +IconTooltip: add support for showing tooltip on hover. diff --git a/projects/js-packages/components/components/icon-tooltip/index.tsx b/projects/js-packages/components/components/icon-tooltip/index.tsx index c51ec4e125d01..9e70380a248ae 100644 --- a/projects/js-packages/components/components/icon-tooltip/index.tsx +++ b/projects/js-packages/components/components/icon-tooltip/index.tsx @@ -38,15 +38,14 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { children, popoverAnchorStyle = 'icon', forceShow = false, + hoverShow = false, wide = false, inline = true, shift = false, - hoverShow = false, } ) => { const POPOVER_HELPER_WIDTH = 124; const [ isVisible, setIsVisible ] = useState( false ); - const [ timeoutId, setTimeoutId ] = useState( null ); - + const [ hoverTimeout, setHoverTimeout ] = useState( null ); const hideTooltip = useCallback( () => setIsVisible( false ), [ setIsVisible ] ); const toggleTooltip = useCallback( e => { @@ -56,26 +55,6 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { [ isVisible, setIsVisible ] ); - const handleMouseEnter = useCallback( () => { - if ( hoverShow ) { - if ( timeoutId ) { - clearTimeout( timeoutId ); - setTimeoutId( null ); - } - setIsVisible( true ); - } - }, [ hoverShow, timeoutId ] ); - - const handleMouseLeave = useCallback( () => { - if ( hoverShow ) { - const id = setTimeout( () => { - setIsVisible( false ); - setTimeoutId( null ); - }, 100 ); - setTimeoutId( id ); - } - }, [ hoverShow ] ); - const args = { // To be compatible with deprecating prop `position`. position: placementsToPositions( placement ), @@ -101,6 +80,26 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { const isForcedToShow = isAnchorWrapper && forceShow; + const handleMouseEnter = useCallback( () => { + if ( hoverShow ) { + if ( hoverTimeout ) { + clearTimeout( hoverTimeout ); + setHoverTimeout( null ); + } + setIsVisible( true ); + } + }, [ hoverShow, hoverTimeout ] ); + + const handleMouseLeave = useCallback( () => { + if ( hoverShow ) { + const id = setTimeout( () => { + setIsVisible( false ); + setHoverTimeout( null ); + }, 100 ); + setHoverTimeout( id ); + } + }, [ hoverShow ] ); + return (
This is a tooltip!
, + children:
This is a hover tooltip!
, placement: 'bottom-start', hoverShow: true, }; diff --git a/projects/js-packages/components/components/icon-tooltip/types.ts b/projects/js-packages/components/components/icon-tooltip/types.ts index dfb2c285ee854..58c7629247009 100644 --- a/projects/js-packages/components/components/icon-tooltip/types.ts +++ b/projects/js-packages/components/components/icon-tooltip/types.ts @@ -69,6 +69,11 @@ export type IconTooltipProps = { */ forceShow?: boolean; + /** + * Enables the Popover to show on hover. + */ + hoverShow?: boolean; + /** * Uses a wider content area when enabled. */ diff --git a/projects/js-packages/components/components/threats-data-views/fixer-status.tsx b/projects/js-packages/components/components/threats-data-views/fixer-status.tsx index 7f378cd3c250d..3e9f5b5dd1efe 100644 --- a/projects/js-packages/components/components/threats-data-views/fixer-status.tsx +++ b/projects/js-packages/components/components/threats-data-views/fixer-status.tsx @@ -1,3 +1,4 @@ +import { type ThreatFixStatus } from '@automattic/jetpack-scan'; import { ExternalLink, Spinner } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; import { __, sprintf } from '@wordpress/i18n'; @@ -7,7 +8,6 @@ import IconTooltip from '../icon-tooltip'; import Text from '../text'; import { PAID_PLUGIN_SUPPORT_URL } from './constants'; import styles from './styles.module.scss'; -import { type ThreatFixStatus } from './types'; import { fixerStatusIsStale } from './utils'; /** diff --git a/projects/js-packages/components/components/threats-data-views/index.tsx b/projects/js-packages/components/components/threats-data-views/index.tsx index 8626064d89817..73ed75ce8a0a9 100644 --- a/projects/js-packages/components/components/threats-data-views/index.tsx +++ b/projects/js-packages/components/components/threats-data-views/index.tsx @@ -1,3 +1,4 @@ +import { ThreatStatus, type Threat } from '@automattic/jetpack-scan'; import { __experimentalToggleGroupControl as ToggleGroupControl, // eslint-disable-line @wordpress/no-unsafe-wp-apis __experimentalToggleGroupControlOption as ToggleGroupControlOption, // eslint-disable-line @wordpress/no-unsafe-wp-apis @@ -24,7 +25,6 @@ import ThreatSeverityBadge from '../threat-severity-badge'; import { THREAT_STATUSES, THREAT_TYPES } from './constants'; import FixerStatusIcon, { FixerStatusBadge } from './fixer-status'; import styles from './styles.module.scss'; -import { type Threat, type ThreatStatus } from './types'; import { getThreatIcon, getThreatSubtitle, getThreatType } from './utils'; /** @@ -34,7 +34,7 @@ import { getThreatIcon, getThreatSubtitle, getThreatType } from './utils'; * @param {number} props.historicThreatsCount - Number of historic threats. * @param {boolean} props.isViewingActiveThreats - Whether the active status is selected. * @param {boolean} props.isViewingHistoricThreats - Whether the historic status is selected. - * @param {Function} props.onStatusFilterChange - Callback function to update the filter value. + * @param {Function} props.onStatusFilterChange - Callback function to handle the status filter change. * @return {JSX.Element|null} The component or null. */ export function ThreatsStatusToggleGroupControl( { diff --git a/projects/js-packages/components/components/threats-data-views/stories/index.stories.tsx b/projects/js-packages/components/components/threats-data-views/stories/index.stories.tsx index 8c11d2b1b4bac..9ba8dbdebaf6e 100644 --- a/projects/js-packages/components/components/threats-data-views/stories/index.stories.tsx +++ b/projects/js-packages/components/components/threats-data-views/stories/index.stories.tsx @@ -1,7 +1,7 @@ import ThreatsDataViews from '..'; export default { - title: 'JS Packages/Components/Threats Data View', + title: 'JS Packages/Components/Threats Data Views', component: ThreatsDataViews, parameters: { backgrounds: { @@ -148,7 +148,7 @@ Default.args = { fixedIn: '3.4.6', fixedOn: null, severity: null, - fixable: false, + fixable: null, status: 'current', filename: null, context: null, diff --git a/projects/js-packages/components/components/threats-data-views/styles.module.scss b/projects/js-packages/components/components/threats-data-views/styles.module.scss index 616b9c76d3a13..b4a27b06d68d5 100644 --- a/projects/js-packages/components/components/threats-data-views/styles.module.scss +++ b/projects/js-packages/components/components/threats-data-views/styles.module.scss @@ -128,4 +128,4 @@ .toggle-control { white-space: nowrap; -} \ No newline at end of file +} diff --git a/projects/js-packages/components/components/threats-data-views/test/index.test.tsx b/projects/js-packages/components/components/threats-data-views/test/index.test.tsx index cf5482e4e1ddb..65dd02c3a171a 100644 --- a/projects/js-packages/components/components/threats-data-views/test/index.test.tsx +++ b/projects/js-packages/components/components/threats-data-views/test/index.test.tsx @@ -1,8 +1,9 @@ +import { type Threat } from '@automattic/jetpack-scan'; import { render, screen } from '@testing-library/react'; -import ThreatsDataViews from '..'; -import { type Threat } from '../types'; +import ThreatsDataView from '..'; const data = [ + // Scan API Data { id: 185869885, signature: 'EICAR_AV_Test', @@ -11,9 +12,10 @@ const data = [ "This is the standard EICAR antivirus test code, and not a real infection. If your site contains this code when you don't expect it to, contact Jetpack support for some help.", firstDetected: '2024-10-07T20:45:06.000Z', fixedIn: null, - fixedOn: null, - severity: 8, + fixedOn: '2024-10-07T20:45:06.000Z', fixable: { fixer: 'rollback', target: 'January 26, 2024, 6:49 am', extensionStatus: '' }, + fixer: { status: 'in_progress', startedAt: '2024-10-07T20:45:06.000Z' }, + severity: 8, status: 'current', filename: '/var/www/html/wp-content/index.php', context: { @@ -23,13 +25,39 @@ const data = [ marks: {}, }, source: null, + }, + // Protect Report Data + { + id: '1d0470df-4671-47ac-8d87-a165e8f7d502', + title: 'WooCommerce <= 3.2.3 - Authenticated PHP Object Injection', + description: + 'Versions 3.2.3 and earlier are affected by an issue where cached queries within shortcodes could lead to object injection. This is related to the recent WordPress 4.8.3 security release.This issue can only be exploited by users who can edit content and add shortcodes, but we still recommend all users running WooCommerce 3.x upgrade to 3.2 to mitigate this issue.', + source: 'https://wpscan.com/vulnerability/1d0470df-4671-47ac-8d87-a165e8f7d502', + extension: { + name: 'WooCommerce', + slug: 'woocommerce', + version: '3.2.3', + type: 'plugin', + }, + fixedIn: '3.2.4', + context: null, + filename: null, + firstDetected: null, + fixable: null, + fixedOn: null, fixer: null, + severity: null, + signature: null, + status: null, }, ] as Threat[]; describe( 'ThreatsDataViews', () => { it( 'renders threat data', () => { - render( ); + render( ); expect( screen.getByText( 'Malicious code found in file: index.php' ) ).toBeInTheDocument(); + expect( + screen.getByText( 'WooCommerce <= 3.2.3 - Authenticated PHP Object Injection' ) + ).toBeInTheDocument(); } ); } ); diff --git a/projects/js-packages/components/components/threats-data-views/utils.ts b/projects/js-packages/components/components/threats-data-views/utils.ts index bfe4e9db55246..f8c3151ea35b4 100644 --- a/projects/js-packages/components/components/threats-data-views/utils.ts +++ b/projects/js-packages/components/components/threats-data-views/utils.ts @@ -1,5 +1,5 @@ +import { type Threat, type ThreatFixStatus } from '@automattic/jetpack-scan'; import { code, color, grid, plugins, shield, wordpress } from '@wordpress/icons'; -import { type Threat, type ThreatFixStatus } from './types'; export const getThreatIcon = ( threat: Threat ) => { const type = getThreatType( threat ); diff --git a/projects/js-packages/components/package.json b/projects/js-packages/components/package.json index 1a5130f11e3aa..1e7b3ba6f9949 100644 --- a/projects/js-packages/components/package.json +++ b/projects/js-packages/components/package.json @@ -16,6 +16,7 @@ "dependencies": { "@automattic/format-currency": "1.0.1", "@automattic/jetpack-boost-score-api": "workspace:*", + "@automattic/jetpack-scan": "workspace:*", "@babel/runtime": "^7", "@wordpress/browserslist-config": "6.9.0", "@wordpress/components": "28.9.0", diff --git a/projects/plugins/social/changelog/renovate-lock-file-maintenance b/projects/js-packages/eslint-config-target-es/changelog/renovate-eslint-packages similarity index 100% rename from projects/plugins/social/changelog/renovate-lock-file-maintenance 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 b/projects/js-packages/image-guide/changelog/renovate-eslint-packages similarity index 100% rename from projects/plugins/social/changelog/renovate-wordpress-monorepo rename to projects/js-packages/image-guide/changelog/renovate-eslint-packages diff --git a/projects/plugins/social/changelog/renovate-wordpress-monorepo#2 b/projects/js-packages/image-guide/changelog/renovate-postcss-8.x similarity index 100% rename from projects/plugins/social/changelog/renovate-wordpress-monorepo#2 rename to projects/js-packages/image-guide/changelog/renovate-postcss-8.x 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/publicize-components/CHANGELOG.md b/projects/js-packages/publicize-components/CHANGELOG.md index a47006d9fe0db..43c07a78f6e22 100644 --- a/projects/js-packages/publicize-components/CHANGELOG.md +++ b/projects/js-packages/publicize-components/CHANGELOG.md @@ -5,6 +5,15 @@ 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] @@ -978,6 +987,7 @@ 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 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-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/fix-social-bsky-profile-name-connection-management b/projects/js-packages/publicize-components/changelog/fix-social-bsky-profile-name-connection-management deleted file mode 100644 index c33f654b62b79..0000000000000 --- a/projects/js-packages/publicize-components/changelog/fix-social-bsky-profile-name-connection-management +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Fixed Bsky conneciton management profile name 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-nuke-has-paid-plan b/projects/js-packages/publicize-components/changelog/update-social-nuke-has-paid-plan deleted file mode 100644 index 59e08c72626b5..0000000000000 --- a/projects/js-packages/publicize-components/changelog/update-social-nuke-has-paid-plan +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: changed -Comment: Initial state: Removed unused hasPaidPlan flag - - diff --git a/projects/js-packages/publicize-components/changelog/update-social-replace-has-paid-features-check b/projects/js-packages/publicize-components/changelog/update-social-replace-has-paid-features-check deleted file mode 100644 index bf9a130af83ec..0000000000000 --- a/projects/js-packages/publicize-components/changelog/update-social-replace-has-paid-features-check +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: changed -Comment: Initial State: Migrated hasPaidFeatures flag with feature check on front-end - - 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 54856e9583755..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.3", + "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/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 e7827d27afd78..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,11 +79,6 @@ export default function usePublicizeConfig() { */ const hidePublicizeFeature = isPostPublished && ! isRePublicizeFeatureAvailable; - /**\ - * Returns true if the post type is a Jetpack Social Note. - */ - const isJetpackSocialNote = 'jetpack-social-note' === currentPostType; - const needsUserConnection = ! isUserConnected && ! isSimpleSite(); return { @@ -96,11 +90,8 @@ export default function usePublicizeConfig() { isRePublicizeUpgradableViaUpsell, hidePublicizeFeature, isPostAlreadyShared, - 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/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/types/types.ts b/projects/js-packages/publicize-components/src/types/types.ts index 041b0bd18f8f4..667f33f90a64d 100644 --- a/projects/js-packages/publicize-components/src/types/types.ts +++ b/projects/js-packages/publicize-components/src/types/types.ts @@ -67,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/scan/changelog/add-threat-and-fixer-types b/projects/js-packages/scan/changelog/add-threat-and-fixer-types new file mode 100644 index 0000000000000..c339bfa18ace5 --- /dev/null +++ b/projects/js-packages/scan/changelog/add-threat-and-fixer-types @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Added threat and fixer types. diff --git a/projects/js-packages/scan/changelog/remove-deps b/projects/js-packages/scan/changelog/remove-deps new file mode 100644 index 0000000000000..223cefe9d9cb8 --- /dev/null +++ b/projects/js-packages/scan/changelog/remove-deps @@ -0,0 +1,4 @@ +Significance: patch +Type: removed + +Updated dependencies. diff --git a/projects/js-packages/scan/package.json b/projects/js-packages/scan/package.json index 480b5a2e424e6..3215bb8366e35 100644 --- a/projects/js-packages/scan/package.json +++ b/projects/js-packages/scan/package.json @@ -52,8 +52,6 @@ "dependencies": { "@automattic/jetpack-api": "workspace:*", "@automattic/jetpack-base-styles": "workspace:*", - "@automattic/jetpack-connection": "workspace:*", - "@automattic/jetpack-shared-extension-utils": "workspace:*", "@wordpress/api-fetch": "7.9.0", "@wordpress/element": "6.9.0", "@wordpress/i18n": "5.9.0", diff --git a/projects/js-packages/scan/src/index.ts b/projects/js-packages/scan/src/index.ts index e69de29bb2d1d..314a00ec1f4fb 100644 --- a/projects/js-packages/scan/src/index.ts +++ b/projects/js-packages/scan/src/index.ts @@ -0,0 +1 @@ +export * from './types/index.js'; diff --git a/projects/js-packages/scan/src/types/fixers.d.ts b/projects/js-packages/scan/src/types/fixers.d.ts new file mode 100644 index 0000000000000..6ba9433122dbb --- /dev/null +++ b/projects/js-packages/scan/src/types/fixers.d.ts @@ -0,0 +1,17 @@ +export type FixerStatus = 'not_started' | 'in_progress' | 'fixed' | 'not_fixed'; + +/** + * Threat Fix Status + * + * Individual fixer status for a threat. + */ +export type ThreatFixStatusError = { + error: string; +}; + +export type ThreatFixStatusSuccess = { + status: FixerStatus; + last_updated: string; +}; + +export type ThreatFixStatus = ThreatFixStatusError | ThreatFixStatusSuccess; diff --git a/projects/js-packages/scan/src/types/index.ts b/projects/js-packages/scan/src/types/index.ts new file mode 100644 index 0000000000000..e831f787e4b42 --- /dev/null +++ b/projects/js-packages/scan/src/types/index.ts @@ -0,0 +1,2 @@ +export * from './fixers.js'; +export * from './threats.js'; diff --git a/projects/js-packages/scan/src/types/threats.d.ts b/projects/js-packages/scan/src/types/threats.d.ts new file mode 100644 index 0000000000000..be81934adf3ac --- /dev/null +++ b/projects/js-packages/scan/src/types/threats.d.ts @@ -0,0 +1,70 @@ +export type ThreatStatus = 'fixed' | 'ignored' | 'current'; + +export type ThreatFixType = 'replace' | 'delete' | 'update' | string; + +export type Threat = { + /** The threat's unique ID. */ + id: string | number; + + /** The threat's signature. */ + signature: string; + + /** The threat's title. */ + title: string; + + /** The threat's description. */ + description: string; + + /** The threat's current status. */ + status: ThreatStatus; + + /** The threat's severity level (0-10). */ + severity: number; + + /** The date the threat was first detected on the site, in YYYY-MM-DDTHH:MM:SS.000Z format. */ + firstDetected: string; + + /** The version the threat is fixed in. */ + fixedIn?: string | null; + + /** The date the threat was fixed, in YYYY-MM-DDTHH:MM:SS.000Z format. */ + fixedOn?: string | null; + + /** The fixable details. */ + fixable: + | { + fixer: ThreatFixType; + target?: string | null; + extensionStatus?: string | null; + } + | false; + + /** The fixer status. */ + fixer: ThreatFixStatus; + + /** The threat's source. */ + source?: string; + + /** The threat's context. */ + context?: Record< string, unknown > | null; + + /** The name of the affected file. */ + filename: string | null; + + /** The rows affected by the database threat. */ + rows?: unknown; + + /** The table name of the database threat. */ + table?: string; + + /** The diff showing the threat's modified file contents. */ + diff?: string; + + /** The affected extension. */ + extension?: { + slug: string; + name: string; + version: string; + type: 'plugin' | 'theme' | 'core'; + }; +}; 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 862f576b7ace7..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": { diff --git a/projects/plugins/social/changelog/renovate-lock-file-maintenance#2 b/projects/js-packages/storybook/changelog/renovate-postcss-8.x similarity index 51% rename from projects/plugins/social/changelog/renovate-lock-file-maintenance#2 rename to projects/js-packages/storybook/changelog/renovate-postcss-8.x index 9aa70e3ec1f75..c47cb18e82997 100644 --- a/projects/plugins/social/changelog/renovate-lock-file-maintenance#2 +++ b/projects/js-packages/storybook/changelog/renovate-postcss-8.x @@ -1,5 +1,4 @@ Significance: patch Type: changed -Comment: Updated composer.lock. - +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/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 b/projects/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/js-packages/svelte-data-sync-client/changelog/renovate-eslint-packages#2 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +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/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/changelog/fix-changelogger-amend-default-link b/projects/packages/changelogger/changelog/fix-changelogger-amend-default-link deleted file mode 100644 index 09dc0989a5b9c..0000000000000 --- a/projects/packages/changelogger/changelog/fix-changelogger-amend-default-link +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -When amending, do not preserve a default link. We'll want the link to be updated to the new default. 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/classic-theme-helper/changelog/renovate-postcss-8.x b/projects/packages/classic-theme-helper/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/packages/classic-theme-helper/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +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 01ae992f43f27..afb4d5b98596d 100644 --- a/projects/packages/connection/CHANGELOG.md +++ b/projects/packages/connection/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). +## [5.1.5] - 2024-10-25 +### Changed +- Internal updates. + ## [5.1.4] - 2024-10-21 ### Changed - SSO: optimize 'admin_notices' action callback. [#39811] @@ -1230,6 +1234,7 @@ 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 diff --git a/projects/packages/connection/changelog/fix-jetpack-story-block-connection-assets b/projects/packages/connection/changelog/fix-jetpack-story-block-connection-assets deleted file mode 100644 index 4652d98b066f2..0000000000000 --- a/projects/packages/connection/changelog/fix-jetpack-story-block-connection-assets +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: added -Comment: PHPDoc comment change. - - diff --git a/projects/packages/connection/src/class-package-version.php b/projects/packages/connection/src/class-package-version.php index 0ed481101c11e..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.4'; + const PACKAGE_VERSION = '5.1.5'; const PACKAGE_SLUG = 'connection'; 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 0fbedf955ef9b..3b1f19d4240dd 100644 --- a/projects/packages/forms/package.json +++ b/projects/packages/forms/package.json @@ -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/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/publicize/CHANGELOG.md b/projects/packages/publicize/CHANGELOG.md index 2e9b7805d534b..53a9ad0cba00b 100644 --- a/projects/packages/publicize/CHANGELOG.md +++ b/projects/packages/publicize/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.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] @@ -736,6 +740,7 @@ 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 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/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 7df4d2ac41402..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.4", + "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/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 e50483025b55f..ecb065e76f714 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -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/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/changelog/update-hooks-prevent-doing-it-wrong-notice b/projects/packages/sync/changelog/update-hooks-prevent-doing-it-wrong-notice deleted file mode 100644 index f319fb6812720..0000000000000 --- a/projects/packages/sync/changelog/update-hooks-prevent-doing-it-wrong-notice +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fixed - -Hooks: Hook init_sync_cron_jobs into init to ensure translation loading within the function is not triggered too early. 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/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/package.json b/projects/packages/videopress/package.json index 13363879be44b..51f8d659df3c3 100644 --- a/projects/packages/videopress/package.json +++ b/projects/packages/videopress/package.json @@ -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/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/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/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/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/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/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/renovate-postcss-8.x b/projects/plugins/jetpack/changelog/renovate-postcss-8.x new file mode 100644 index 0000000000000..1eaea6a769e84 --- /dev/null +++ b/projects/plugins/jetpack/changelog/renovate-postcss-8.x @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Updated package dependencies. 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/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/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 } -
-
{ 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 onPricingPageDismiss = useCallback( () => setForceDisplayPricingPage( false ), [] ); - const { - isModuleEnabled, - showPricingPage, - pluginVersion, - isSocialImageGeneratorAvailable, - isUpdatingJetpackSettings, - } = useSelect( select => { - const store = select( socialStore ); - return { - isModuleEnabled: store.isModuleEnabled(), - showPricingPage: store.showPricingPage(), - 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 }`; @@ -93,7 +94,7 @@ const Admin = () => { { isModuleEnabled && } - { isModuleEnabled && isSocialImageGeneratorAvailable && ( + { isModuleEnabled && siteHasFeature( features.IMAGE_GENERATOR ) && ( ) } diff --git a/projects/plugins/social/src/js/components/types/types.ts b/projects/plugins/social/src/js/components/types/types.ts index a7047318cfcd5..bd349bbd106f3 100644 --- a/projects/plugins/social/src/js/components/types/types.ts +++ b/projects/plugins/social/src/js/components/types/types.ts @@ -29,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 && (