Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dependencies: Install React Testing Library * Recommendations Block: Add JS test sample * Providing a Store * Dependencies: Install MSW * Dependencies: Install jest-dom * Recommendations Block: Add sample JS tests * Update plugin version to 3.3.0-alpha * Adding tracker URL to REST API (#743) * Adding tracker URL to REST API * Fixing tests * Updating filter comment * Moving metadata generation to external class (#742) * Gradually moving metadata to class * Requiring metadata file * Add deprecated notice * Remove hard deprecate * Update src/class-metadata.php Co-authored-by: Gary Jones <[email protected]> * Moving protocol of schema.org Co-authored-by: Gary Jones <[email protected]> * WordPress_Cache: Use built-in caching functions In the initial implementation of this, we were expecting an object of type WP_Object_Cache, which was not always the case could result in fatal errors. This new implementation tries to be more agnostic and work correctly in most scenarios. * WP_Object_Cache: Move linter ignore comment Co-authored-by: Pau Argelaguet <[email protected]> * Remove unused parameter from constructor call * Bump concurrently from 7.0.0 to 7.1.0 (#755) Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.0.0 to 7.1.0. - [Release notes](https://github.com/open-cli-tools/concurrently/releases) - [Commits](open-cli-tools/concurrently@v7.0.0...v7.1.0) --- updated-dependencies: - dependency-name: concurrently dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-node from 3.0.0 to 3.1.0 (#756) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v3.0.0...v3.1.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prettier from 2.6.1 to 2.6.2 (#754) Bumps [prettier](https://github.com/prettier/prettier) from 2.6.1 to 2.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.6.1...2.6.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Fix styling issues in FSE mode * Recommendations Block: Enable in FSE mode * Remove @wordpress/editor dependency * Recommendations Block: Enable by default * Metadata: Don't limit internal images to thumbnail size * Fix broken regex in get_first_image() The regex in `Metadata->get_first_image()` did not actually capture many (if any) image tags. * Revert "Recommendations Block: Enable by default" This reverts commit 1014e42. * Metadata: Remove get_first_image() * Remove obsolete comment * Update @uses and @Covers taking into account Metadata class * Introduce block.json to be used as the source of truth for block definition. * Registers the block by passing the path the block.json file. Removes the supports and attributes items from PHP as they are now manged via block.json. * Adjust webpack config to use defaultConfig.entry to take advantage to the automatic entry point detenction and file copying provided by the @wordpress/scripts package. * Rename index.js to view.js to better reflect it's usage on the front end only. * Add new proprties to the block.json file: editorScript - defines which file will be enqueue into the block editor. This file handles the block definition on the client side. style - defines a stylesheet to be enqueue into both the editor and on the front end viewScript - defines a file that will be registered with the intent of being enqueue on the front end only. * Remove the manually registered scripts and styles in favor of the block.json managing them. Manually enqueue the viewScript defined in block.json. * Add the build files for the block. * Add textdomain property to block.json. * Add admin only CSS and enqueue the file. * Add check for 5.9 and fallback viewScript registration if needed. * Updates per code review. * Run build command. * Ensuring the defaul value of title is translated. * Recommendations Block: Rebuild assets * Metadata: Improve image/thumb URL checks * Recommendations Block: Update compatibility to WP 5.9 and up * Recommendations Block: Remove feature flag * README.md: Update Recommendations Block information * Recommendations Block README.md: Update Block information * README.md: Update "Tested up to" to 5.9.3 * Settings page: Improve on-screen help for Site ID * Settings page: Improve Site ID validation * Recommendations Block: Simplify editor CSS * Recommendations Block: Disable links in editor * Add missing period in a comment * Add a CSS comment for clarity * Bump moment from 2.29.1 to 2.29.2 (#768) Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](moment/moment@2.29.1...2.29.2) --- updated-dependencies: - dependency-name: moment dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/url from 3.6.0 to 3.7.0 (#773) Bumps [@wordpress/url](https://github.com/WordPress/gutenberg/tree/HEAD/packages/url) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/url/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/url) --- updated-dependencies: - dependency-name: "@wordpress/url" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/babel-preset-default from 6.7.0 to 6.8.0 (#772) Bumps [@wordpress/babel-preset-default](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-preset-default) from 6.7.0 to 6.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/babel-preset-default/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/babel-preset-default) --- updated-dependencies: - dependency-name: "@wordpress/babel-preset-default" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/compose from 5.3.0 to 5.4.0 (#771) Bumps [@wordpress/compose](https://github.com/WordPress/gutenberg/tree/HEAD/packages/compose) from 5.3.0 to 5.4.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/compose/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/compose) --- updated-dependencies: - dependency-name: "@wordpress/compose" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/blocks from 11.4.0 to 11.5.0 (#769) Bumps [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) from 11.4.0 to 11.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/blocks) --- updated-dependencies: - dependency-name: "@wordpress/blocks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/api-fetch from 6.2.0 to 6.3.0 (#770) Bumps [@wordpress/api-fetch](https://github.com/WordPress/gutenberg/tree/HEAD/packages/api-fetch) from 6.2.0 to 6.3.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/api-fetch/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/api-fetch) --- updated-dependencies: - dependency-name: "@wordpress/api-fetch" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/e2e-test-utils from 7.1.0 to 7.2.0 (#777) Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 7.1.0 to 7.2.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/e2e-test-utils) --- updated-dependencies: - dependency-name: "@wordpress/e2e-test-utils" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/env from 4.4.0 to 4.5.0 (#775) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump eslint-plugin-jest from 26.1.3 to 26.1.4 (#778) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.3 to 26.1.4. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v26.1.3...v26.1.4) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/scripts from 22.3.0 to 22.4.0 (#779) Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 22.3.0 to 22.4.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/scripts) --- updated-dependencies: - dependency-name: "@wordpress/scripts" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/components from 19.7.0 to 19.8.0 (#776) Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 19.7.0 to 19.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/components) --- updated-dependencies: - dependency-name: "@wordpress/components" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/eslint-plugin from 11.1.0 to 12.0.0 (#780) Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 11.1.0 to 12.0.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@wordpress/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/block-editor from 8.4.0 to 8.5.0 (#781) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.4.0 to 8.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Recommendations Block: Change URLs to # when in editor Mouse events are already disabled by CSS, but this was done for better screen reader experience. * Add filter for enabling/disabling Related API Proxy * Roll back to @wordpress/scripts 22.3.0 * Settings page: Improve wording about Site ID Co-authored-by: Gary Jones <[email protected]> * Recommendations Block: Improve error handling * Recommendations Block: Improve code quality * Bump actions/setup-node from 3.1.0 to 3.1.1 (#782) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Integration Tests: Don't run Block tests against unsupported WP versions * Recommendations Block: Update @SInCE for register_block() * Extracting metadata rendering to UI class (#751) * Moving metadata rendering out * Moving function out * Fix method reference * Fix metadata endpoint * Rename to Metadata Renderer * Fix path * Restoring deprecated functions * Remove Cache Buster (#747) * Settings page: Implement API key sanitization and validation in dedicated functions * Add unit test for settings page API key validation function * Bump @wordpress/block-editor from 8.5.0 to 8.5.1 (#788) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.5.0 to 8.5.1. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Dependencies: Uninstall MSW * Recommendations Block: Add tests for loading one recommendation * Getting rid of construct metadata usages (#783) * Getting rid of construct metadata usages * Rename Metadata Renderer * Making metadata generation consistent * Renaming name in views * Fix metadata rendering * Adding e2e tests for metadata (#789) * Adding repeated metas end to end tests * Workin on jsonld * Adding json-ld test * Adding extra jsonld tests * Adding extra check for negative conditions. * Improving type annotations on metadata (#790) * Improving type annotations on metadata * Realigning comments * Recommendations Block: Add CSS class to error placeholder * Recommendations Block: Add E2E tests * Move initialization outside of test * Add a full stop to some comments. * Recommendations Block: Add structure tests for multiple items * Update some comments for corectness * Recommendations Block: Move structure test to unit tests * Recommendations Block: Rename E2E test * Recommendations Block: Add settings E2E test * Removing Dynamic Tracking references (#791) * Removing Dynamic Parsely references * Removing additional dead code * Recommendations Block: Try to fix some code smells in settings test * Recommendations Block: Fix thumbnail images not showing * Update Related Proxy Endpoint integration test * update_metadata_endpoint(): Send image URL instead of thumbnail URL * Fix Recommended Widget not showing * Make certain functions accessible to all types of PHPUnit tests * Add missing "require" in unit tests bootstrap.php * Eliminate code duplication in block-structure.test.js * block-structure.test.js: Simplify code further * E2E tests: Remove *PluginApiKey() functions in favor of SetSiteId() * Bump async from 2.6.3 to 2.6.4 (#801) Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. - [Release notes](https://github.com/caolan/async/releases) - [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md) - [Commits](caolan/async@v2.6.3...v2.6.4) --- updated-dependencies: - dependency-name: async dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updating testing dependencies (#804) * Moving JS unit tests (#806) * Rename Tests_Trait to Tests_Reflection * Adding disable autotrack option for dynamic tracking (#792) * Adding disable autotrack option * Correcting test * Inserting autotrack more in a more conservative way * Revert test changes * Updating error messages * Adding check for disable autotrack * Fixing autotrack in all situations * Adding comments * Update src/js/lib/loader.js Co-authored-by: Alex Cicovic <[email protected]> * Update src/js/lib/loader.js Co-authored-by: Alex Cicovic <[email protected]> * Update tests/Integration/ScriptsTest.php Co-authored-by: Alex Cicovic <[email protected]> * Updating asset * Stricter comparison for disable_autotrack * Renaming disable autotrack variable Co-authored-by: Alex Cicovic <[email protected]> * Remove unused variables (#807) * Remove unused index from metadata loop * Remove unused variable from test * Readding blog creation * Simplify test regex * Using array_values * Update tests/Integration/UI/NetworkAdminSitesListTest.php Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> * README.md: Remove beta mentions regarding Recommendations Block * Bump @wordpress/hooks from 3.6.0 to 3.7.0 (#813) Bumps [@wordpress/hooks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/hooks) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/hooks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/hooks) --- updated-dependencies: - dependency-name: "@wordpress/hooks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/babel-preset-default from 6.8.0 to 6.9.0 (#812) Bumps [@wordpress/babel-preset-default](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-preset-default) from 6.8.0 to 6.9.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/babel-preset-default/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/babel-preset-default) --- updated-dependencies: - dependency-name: "@wordpress/babel-preset-default" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/e2e-test-utils from 7.2.0 to 7.3.0 (#814) Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 7.2.0 to 7.3.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/e2e-test-utils) --- updated-dependencies: - dependency-name: "@wordpress/e2e-test-utils" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/eslint-plugin from 12.0.0 to 12.1.0 (#815) Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 12.0.0 to 12.1.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@wordpress/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Add integration test for post image metadata * Single post integration tests: Update some PHPDocs * Remove tag setting from the Recommendations Block * Fix SonarCloud's 'errorMessage' is already declared in the upper scope * Bump @wordpress/env from 4.5.0 to 4.6.0 (#819) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump eslint-plugin-jest from 26.1.4 to 26.1.5 (#829) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.4 to 26.1.5. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v26.1.4...v26.1.5) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/block-editor from 8.5.1 to 8.6.0 (#816) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.5.1 to 8.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Bump @wordpress/compose from 5.4.0 to 5.5.0 (#817) Bumps [@wordpress/compose](https://github.com/WordPress/gutenberg/tree/HEAD/packages/compose) from 5.4.0 to 5.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/compose/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/compose) --- updated-dependencies: - dependency-name: "@wordpress/compose" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> * Rebuild assets * Bump @wordpress/blocks from 11.5.1 to 11.6.0 (#811) Bumps [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) from 11.5.1 to 11.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/blocks) --- updated-dependencies: - dependency-name: "@wordpress/blocks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> Co-authored-by: Pau Argelaguet <[email protected]> * Fix SonarCloud's 'errorMessage' is already declared in the upper scope * Bump @wordpress/components from 19.8.0 to 19.9.0 (#818) Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 19.8.0 to 19.9.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/components) --- updated-dependencies: - dependency-name: "@wordpress/components" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> Co-authored-by: Pau Argelaguet <[email protected]> * Settings page: Remove media months query (#827) The settings page calls `wp_enqueue_media()`, and this always runs a query to capture the month-year combinations that attachments were uploaded. This is only potentially useful when the logo is being selected, and even then, it's more likely that the user would upload a new logo or choose a recently uploaded one, than use the month-year filter to try and find an older upload (search by file is also available anyway). The filter hook to disable this query has a note that this query can be expensive for large media libraries, so let's disable this query by default. Since we control the page, and won't be calling `wp_enqueue_media()` a second time, there's no benefit to re-enabling the month-year query after `wp_enqueue_media()` has been called. Co-authored-by: Pau Argelaguet <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> * Settings: Associate logo label to field (#826) The new-ish logo field didn't have an id attribute that linked it to the label. This was an accessibility issue, but is now fixed. The "Browse" button on a new line also seemed redundant and awkward, so it's now inline with the input field. Co-authored-by: Pau Argelaguet <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> * Bump @wordpress/scripts from 22.3.0 to 22.5.0 (#830) * Bump @wordpress/scripts from 22.3.0 to 22.5.0 Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 22.3.0 to 22.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/scripts) --- updated-dependencies: - dependency-name: "@wordpress/scripts" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix defaultConfig.entry call Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet <[email protected]> Co-authored-by: Pau Argelaguet <[email protected]> * Bump github/codeql-action from 1 to 2 (#831) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Recommendations Block: Update documentation (#821) * Recommendations Block: Update documentation * README.md: Add Recommended Widget deprecation note Co-authored-by: Pau Argelaguet <[email protected]> * Recommendations Block: Handle failed HTTP request (#825) * Recommendations Block: Handle failed HTTP request When the Parse.ly Recommendations API was not accessible to the proxy endpoint, such as when developing offline or if the Parse.ly API was down, and recommendations were not able to be retrieved, then the block editor displayed: > Error: {"errors":{"http_request_failed":["A valid URL was not provided."]},"error_data":[]} The error message comes from WP_HTTP class in WordPress core, and in this case was slightly misleading, as the attempted URL was correct. By adding some `errorMesssage` handling to the block's JavaScript, we can improve the message and avoid JSON being shown, so it reads as: > The Parse.ly Recommendations API is not accessible. You may be offline. * Rebuild assets * Recommendations Block: Handle more failed HTTP error scenarios * Recommendations Block: Add test for failed HTTP request * Rebuild assets * Update variable name to be consistent with develop branch * Rebuild assets * Recommendations Block: Attempt to fix failing E2E test Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Pau Argelaguet <[email protected]> * Adding onReady hook (#808) Co-authored-by: Alex Cicovic <[email protected]> * Removing uses of deprecated metadata generation (#833) * Removing uses of deprecated metadata generation * Update SinglePostTest * Use Metadata * Updating OtherTest * Updating RestMetadataTest * Updating phpunit references * Update Recommended Widget's "social interactions" text The Recommended Widget's social interactions text contained "LinkedIn" which is not supported by Parse.ly. The text was updated to match what we have on the Recommendations Block. * Remove Parse.ly options as a parameter for Metadata generation (#836) * Fixing coverage annotations in tests (#837) * Fixing coverage issues * Put OtherTest in correct order * Improve PHP comments conformity to Inline Documentation Standards (#838) * Update PHP function comments to third person See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#language. * Remove return void from PHP function comments See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#1-functions-class-methods. * Attempt to limit some very long DocBlocks See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#line-wrapping, * Add missing full stops to PHP comments * Update PHP file headers See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#6-file-headers. * PHP file headers: Remove author tag * PHP file headers: Remove copyright tag See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Remove license tag License is still present in wp-parsely.php in the plugin header. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Remove package WordPress tag See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Update package tag to Parsely and Parsely\Tests * Remove unused WP_ERROR * Restore wp-parsely.php file comments Co-authored-by: Pau Argelaguet <[email protected]> * Preparation for 3.3.0 release (#840) * Preparation for 3.3.0 release * Update CHANGELOG.md Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Gary Jones <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ryan Welcher <[email protected]>
- Loading branch information