diff --git a/composer.json b/composer.json index 58dbe29..f577c9e 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require": { "php": ">=8.1", "aws/aws-sdk-php": "^3.281", - "composer/installers": "^1.12", + "composer/installers": "^2", "cweagans/composer-patches": "^1.7", "drupal/admin_denied": "^2.0", "drupal/admin_feedback": "^2.6", @@ -38,6 +38,7 @@ "drupal/csp": "^1.17", "drupal/devel": "^5.1", "drupal/environment_indicator": "^4.0", + "drupal/field_group": "^3.4", "drupal/google_tag": "^1.6", "drupal/imageapi_optimize_binaries": "^1.0@beta", "drupal/imagemagick": "^3.4", @@ -76,7 +77,7 @@ "kint-php/kint": "^5.0", "marcocesarato/php-conventional-changelog": "^1.16", "mglaman/drupal-check": "^1.4", - "palantirnet/drupal-rector": "^0.13", + "palantirnet/drupal-rector": "^0.20", "phpcompatibility/php-compatibility": "^9.3", "phpmd/phpmd": "^2.9", "phpspec/prophecy-phpunit": "^2", diff --git a/composer.lock b/composer.lock index 1770c72..0c1b203 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cd001042a59a131d8717ea84c3d5c426", + "content-hash": "1d12842a7dcfaa2cdeb3e191cc385773", "packages": [ { "name": "asm89/stack-cors", @@ -118,16 +118,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.303.2", + "version": "3.304.6", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "c087819351de027791d830ffc7f45195488ae988" + "reference": "02abf9b8e2afbdf281e28757c582049d3db16df7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/c087819351de027791d830ffc7f45195488ae988", - "reference": "c087819351de027791d830ffc7f45195488ae988", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/02abf9b8e2afbdf281e28757c582049d3db16df7", + "reference": "02abf9b8e2afbdf281e28757c582049d3db16df7", "shasum": "" }, "require": { @@ -207,9 +207,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.303.2" + "source": "https://github.com/aws/aws-sdk-php/tree/3.304.6" }, - "time": "2024-04-03T18:08:21+00:00" + "time": "2024-04-17T18:27:31+00:00" }, { "name": "behat/mink", @@ -819,39 +819,37 @@ }, { "name": "composer/installers", - "version": "v1.12.0", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/composer/installers.git", - "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19" + "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/d20a64ed3c94748397ff5973488761b22f6d3f19", - "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19", + "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35", + "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35", "shasum": "" }, "require": { - "composer-plugin-api": "^1.0 || ^2.0" - }, - "replace": { - "roundcube/plugin-installer": "*", - "shama/baton": "*" + "composer-plugin-api": "^1.0 || ^2.0", + "php": "^7.2 || ^8.0" }, "require-dev": { "composer/composer": "1.6.* || ^2.0", "composer/semver": "^1 || ^3", "phpstan/phpstan": "^0.12.55", "phpstan/phpstan-phpunit": "^0.12.16", - "symfony/phpunit-bridge": "^4.2 || ^5", - "symfony/process": "^2.3" + "symfony/phpunit-bridge": "^5.3", + "symfony/process": "^5" }, "type": "composer-plugin", "extra": { "class": "Composer\\Installers\\Plugin", "branch-alias": { - "dev-main": "1.x-dev" - } + "dev-main": "2.x-dev" + }, + "plugin-modifies-install-path": true }, "autoload": { "psr-4": { @@ -872,7 +870,6 @@ "description": "A multi-framework Composer library installer", "homepage": "https://composer.github.io/installers/", "keywords": [ - "Craft", "Dolibarr", "Eliasis", "Hurad", @@ -893,7 +890,6 @@ "Whmcs", "WolfCMS", "agl", - "aimeos", "annotatecms", "attogram", "bitrix", @@ -912,7 +908,6 @@ "grav", "installer", "itop", - "joomla", "known", "kohana", "laravel", @@ -921,6 +916,7 @@ "magento", "majima", "mako", + "matomo", "mediawiki", "miaoxing", "modulework", @@ -940,9 +936,7 @@ "silverstripe", "sydes", "sylius", - "symfony", "tastyigniter", - "typo3", "wordpress", "yawik", "zend", @@ -950,7 +944,7 @@ ], "support": { "issues": "https://github.com/composer/installers/issues", - "source": "https://github.com/composer/installers/tree/v1.12.0" + "source": "https://github.com/composer/installers/tree/v2.2.0" }, "funding": [ { @@ -966,7 +960,7 @@ "type": "tidelift" } ], - "time": "2021-09-13T08:19:44+00:00" + "time": "2022-08-20T06:45:11+00:00" }, { "name": "composer/metadata-minifier", @@ -2130,16 +2124,16 @@ }, { "name": "doctrine/common", - "version": "3.4.3", + "version": "3.4.4", "source": { "type": "git", "url": "https://github.com/doctrine/common.git", - "reference": "8b5e5650391f851ed58910b3e3d48a71062eeced" + "reference": "0aad4b7ab7ce8c6602dfbb1e1a24581275fb9d1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/8b5e5650391f851ed58910b3e3d48a71062eeced", - "reference": "8b5e5650391f851ed58910b3e3d48a71062eeced", + "url": "https://api.github.com/repos/doctrine/common/zipball/0aad4b7ab7ce8c6602dfbb1e1a24581275fb9d1a", + "reference": "0aad4b7ab7ce8c6602dfbb1e1a24581275fb9d1a", "shasum": "" }, "require": { @@ -2201,7 +2195,7 @@ ], "support": { "issues": "https://github.com/doctrine/common/issues", - "source": "https://github.com/doctrine/common/tree/3.4.3" + "source": "https://github.com/doctrine/common/tree/3.4.4" }, "funding": [ { @@ -2217,7 +2211,7 @@ "type": "tidelift" } ], - "time": "2022-10-09T11:47:59+00:00" + "time": "2024-04-16T13:35:33+00:00" }, { "name": "doctrine/deprecations", @@ -2618,7 +2612,7 @@ "shasum": "6a66e40a4249351a89afba529910e1e5e2f667aa" }, "require": { - "drupal/core": "^10" + "drupal/core": "^9.1 || ^10" }, "type": "drupal-module", "extra": { @@ -3793,6 +3787,71 @@ "source": "https://git.drupalcode.org/project/environment_indicator" } }, + { + "name": "drupal/field_group", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/field_group.git", + "reference": "8.x-3.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/field_group-8.x-3.4.zip", + "reference": "8.x-3.4", + "shasum": "80b937e1a11f8b29c69d853fc4bf798c057c6f94" + }, + "require": { + "drupal/core": "^9.2 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-3.4", + "datestamp": "1667241979", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Anybody", + "homepage": "https://www.drupal.org/user/291091" + }, + { + "name": "Hydra", + "homepage": "https://www.drupal.org/user/647364" + }, + { + "name": "jyve", + "homepage": "https://www.drupal.org/user/591438" + }, + { + "name": "nils.destoop", + "homepage": "https://www.drupal.org/user/361625" + }, + { + "name": "Stalski", + "homepage": "https://www.drupal.org/user/322618" + }, + { + "name": "swentel", + "homepage": "https://www.drupal.org/user/107403" + } + ], + "description": "Provides the field_group module.", + "homepage": "https://www.drupal.org/project/field_group", + "support": { + "source": "https://git.drupalcode.org/project/field_group", + "issues": "https://www.drupal.org/project/issues/field_group" + } + }, { "name": "drupal/file_mdm", "version": "3.0.0", @@ -3858,7 +3917,7 @@ "shasum": "e46c24b62c3c3c6b5d7232f3b679b46b1fe0c7a9" }, "require": { - "drupal/core": "^10" + "drupal/core": "^8.8 || ^9 || ^10" }, "type": "drupal-module", "extra": { @@ -3918,7 +3977,7 @@ "shasum": "6139e7d5d5d5dd28bf51b15118c8c84d6ff91614" }, "require": { - "drupal/core": "^10" + "drupal/core": "^9 || ^10" }, "type": "drupal-module", "extra": { @@ -3970,7 +4029,7 @@ "shasum": "cc7cd2f029137e99a99deb90aee83b8bbf01c0d4" }, "require": { - "drupal/core": "^10", + "drupal/core": "^8 || ^9 || ^10", "drupal/imageapi_optimize": "*" }, "type": "drupal-module", @@ -4633,7 +4692,7 @@ "extra": { "drupal": { "version": "8.x-1.12", - "datestamp": "1696776683", + "datestamp": "1712319355", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -5165,17 +5224,17 @@ }, { "name": "drupal/token", - "version": "1.13.0", + "version": "1.14.0", "source": { "type": "git", "url": "https://git.drupalcode.org/project/token.git", - "reference": "8.x-1.13" + "reference": "8.x-1.14" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/token-8.x-1.13.zip", - "reference": "8.x-1.13", - "shasum": "f2a074b51726de3727c1d900237d6d471806a4d2" + "url": "https://ftp.drupal.org/files/projects/token-8.x-1.14.zip", + "reference": "8.x-1.14", + "shasum": "df3cae709fcc1a99ac1111ce67a0d6af56d287d7" }, "require": { "drupal/core": "^9.2 || ^10" @@ -5183,8 +5242,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-1.13", - "datestamp": "1697885927", + "version": "8.x-1.14", + "datestamp": "1713009399", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -5688,33 +5747,29 @@ }, { "name": "fileeye/mimemap", - "version": "2.0.3", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/FileEye/MimeMap.git", - "reference": "0795b7db12838ffb7bc564e0a02cf53fb1463ec0" + "reference": "4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/0795b7db12838ffb7bc564e0a02cf53fb1463ec0", - "reference": "0795b7db12838ffb7bc564e0a02cf53fb1463ec0", + "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4", + "reference": "4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=7.4" }, "require-dev": { "composer-runtime-api": "^2.0.0", - "phpstan/phpstan": "^1.2", - "phpunit/phpunit": "^9 | ^10", "sebastian/comparator": ">=4", "sebastian/diff": ">=4", - "squizlabs/php_codesniffer": ">=3.6", "symfony/console": ">=5.4", "symfony/filesystem": ">=5.4", "symfony/var-dumper": ">=5.4", - "symfony/yaml": ">=5.4", - "vimeo/psalm": "^4.23 | ^5" + "symfony/yaml": ">=5.4" }, "bin": [ "bin/fileeye-mimemap" @@ -5744,9 +5799,9 @@ ], "support": { "issues": "https://github.com/FileEye/MimeMap/issues", - "source": "https://github.com/FileEye/MimeMap/tree/2.0.3" + "source": "https://github.com/FileEye/MimeMap/tree/2.1.0" }, - "time": "2023-11-11T14:14:23+00:00" + "time": "2024-04-06T13:00:52+00:00" }, { "name": "fileeye/pel", @@ -7474,20 +7529,20 @@ }, { "name": "open-telemetry/sem-conv", - "version": "1.24.0", + "version": "1.25.0", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/sem-conv.git", - "reference": "d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3" + "reference": "23f457ba390847647a17068e0095d9ffe9a4824c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3", - "reference": "d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3", + "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/23f457ba390847647a17068e0095d9ffe9a4824c", + "reference": "23f457ba390847647a17068e0095d9ffe9a4824c", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" + "php": "^8.1" }, "type": "library", "extra": { @@ -7527,7 +7582,7 @@ "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2024-01-23T21:47:17+00:00" + "time": "2024-04-09T23:31:35+00:00" }, { "name": "openai-php/client", @@ -8580,28 +8635,35 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", + "version": "5.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + "reference": "298d2febfe79d03fe714eb871d5538da55205b1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/298d2febfe79d03fe714eb871d5538da55205b1a", + "reference": "298d2febfe79d03fe714eb871d5538da55205b1a", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.1", "ext-filter": "*", - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", + "phpdocumentor/type-resolver": "^1.7", + "phpstan/phpdoc-parser": "^1.7", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" + "mockery/mockery": "~1.3.5", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^5.13" }, "type": "library", "extra": { @@ -8625,15 +8687,15 @@ }, { "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" + "email": "opensource@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.0" }, - "time": "2021-10-19T17:43:47+00:00" + "time": "2024-04-09T21:13:58+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -9121,16 +9183,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.66", + "version": "1.10.67", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd" + "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/94779c987e4ebd620025d9e5fdd23323903950bd", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/16ddbe776f10da6a95ebd25de7c1dbed397dc493", + "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493", "shasum": "" }, "require": { @@ -9173,13 +9235,9 @@ { "url": "https://github.com/phpstan", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" } ], - "time": "2024-03-28T16:17:31+00:00" + "time": "2024-04-16T07:22:02+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -9602,16 +9660,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.18", + "version": "9.6.19", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "32c2c2d6580b1d8ab3c10b1e9e4dc263cc69bb04" + "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/32c2c2d6580b1d8ab3c10b1e9e4dc263cc69bb04", - "reference": "32c2c2d6580b1d8ab3c10b1e9e4dc263cc69bb04", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a1a54a473501ef4cdeaae4e06891674114d79db8", + "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8", "shasum": "" }, "require": { @@ -9685,7 +9743,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.18" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.19" }, "funding": [ { @@ -9701,7 +9759,7 @@ "type": "tidelift" } ], - "time": "2024-03-21T12:07:32+00:00" + "time": "2024-04-05T04:35:58+00:00" }, { "name": "psr/cache", @@ -15664,20 +15722,20 @@ }, { "name": "palantirnet/drupal-rector", - "version": "0.13.1", + "version": "0.20.1", "source": { "type": "git", "url": "https://github.com/palantirnet/drupal-rector.git", - "reference": "4814ad9fa7d19be068f75558220383967c258d10" + "reference": "dc2e858a5f5cea2ef3e2b770350169f0d0af926b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/palantirnet/drupal-rector/zipball/4814ad9fa7d19be068f75558220383967c258d10", - "reference": "4814ad9fa7d19be068f75558220383967c258d10", + "url": "https://api.github.com/repos/palantirnet/drupal-rector/zipball/dc2e858a5f5cea2ef3e2b770350169f0d0af926b", + "reference": "dc2e858a5f5cea2ef3e2b770350169f0d0af926b", "shasum": "" }, "require": { - "rector/rector": "~0.13.8", + "rector/rector": "^1.0", "webflo/drupal-finder": "^1.2" }, "replace": { @@ -15686,13 +15744,14 @@ }, "require-dev": { "cweagans/composer-patches": "^1.7.2", - "php": "^8.0", + "friendsofphp/php-cs-fixer": "^3.38", + "php": "^8.1", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-deprecation-rules": "^1.0", - "phpunit/phpunit": "^9.5", - "rector/rector-src": "dev-main", + "phpunit/phpunit": "^10.0", "symfony/yaml": "^5 || ^6", + "symplify/rule-doc-generator": "^12.0", "symplify/vendor-patches": "^11.0" }, "type": "library", @@ -15724,6 +15783,14 @@ { "name": "Matt Glaman", "email": "nmd.matt@gmail.com" + }, + { + "name": "Björn Brala", + "email": "drupal@bjorn.dev" + }, + { + "name": "Ken Rickard", + "email": "agentrickard@gmail.com" } ], "description": "Instant fixes for your Drupal code by using Rector.", @@ -15735,9 +15802,9 @@ "rector" ], "support": { - "source": "https://github.com/palantirnet/drupal-rector/tree/0.13.1" + "source": "https://github.com/palantirnet/drupal-rector/tree/0.20.1" }, - "time": "2022-08-05T19:55:37+00:00" + "time": "2024-03-09T19:12:48+00:00" }, { "name": "pdepend/pdepend", @@ -15949,42 +16016,35 @@ }, { "name": "rector/rector", - "version": "0.13.10", + "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "d1e069db8ad3b4aea2b968248370c21415e4c180" + "reference": "6e04d0eb087aef707fa0c5686d33d6ff61f4a555" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/d1e069db8ad3b4aea2b968248370c21415e4c180", - "reference": "d1e069db8ad3b4aea2b968248370c21415e4c180", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/6e04d0eb087aef707fa0c5686d33d6ff61f4a555", + "reference": "6e04d0eb087aef707fa0c5686d33d6ff61f4a555", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.8.2" + "phpstan/phpstan": "^1.10.57" }, "conflict": { - "phpstan/phpdoc-parser": "<1.6.2", - "rector/rector-cakephp": "*", "rector/rector-doctrine": "*", - "rector/rector-laravel": "*", - "rector/rector-nette": "*", - "rector/rector-phpoffice": "*", + "rector/rector-downgrade-php": "*", "rector/rector-phpunit": "*", - "rector/rector-prefixed": "*", "rector/rector-symfony": "*" }, + "suggest": { + "ext-dom": "To manipulate phpunit.xml via the custom-rule command" + }, "bin": [ "bin/rector" ], "type": "library", - "extra": { - "branch-alias": { - "dev-main": "0.13-dev" - } - }, "autoload": { "files": [ "bootstrap.php" @@ -15995,9 +16055,15 @@ "MIT" ], "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.13.10" + "source": "https://github.com/rectorphp/rector/tree/1.0.4" }, "funding": [ { @@ -16005,7 +16071,7 @@ "type": "github" } ], - "time": "2022-08-03T12:48:10+00:00" + "time": "2024-04-05T09:01:07+00:00" }, { "name": "symfony/config", diff --git a/config/core.entity_form_display.node.action_points.default.yml b/config/core.entity_form_display.node.action_points.default.yml index 1a22099..a35fc2c 100644 --- a/config/core.entity_form_display.node.action_points.default.yml +++ b/config/core.entity_form_display.node.action_points.default.yml @@ -17,10 +17,31 @@ dependencies: module: - comment - content_moderation + - field_group - file - path - private_content - text +third_party_settings: + field_group: + group_advanced: + children: + - field_ai_brain + - field_auto_create + - private + - langcode + label: Advanced + region: content + parent_name: '' + weight: 6 + format_type: details + format_settings: + classes: '' + show_empty_fields: false + id: '' + open: false + description: '' + required_fields: true id: node.action_points.default targetEntityType: node bundle: action_points @@ -28,13 +49,13 @@ mode: default content: created: type: datetime_timestamp - weight: 11 + weight: 8 region: content settings: { } third_party_settings: { } field_action_points: type: text_textarea - weight: 10 + weight: 5 region: content settings: rows: 5 @@ -48,7 +69,7 @@ content: third_party_settings: { } field_ai_feedback: type: comment_default - weight: 16 + weight: 13 region: content settings: { } third_party_settings: { } @@ -61,20 +82,20 @@ content: third_party_settings: { } field_document: type: file_generic - weight: 7 + weight: 3 region: content settings: progress_indicator: throbber third_party_settings: { } field_document_language: type: options_select - weight: 5 + weight: 1 region: content settings: { } third_party_settings: { } field_document_text: type: string_textarea - weight: 9 + weight: 4 region: content settings: rows: 5 @@ -82,38 +103,38 @@ content: third_party_settings: { } field_output_language: type: options_select - weight: 6 + weight: 2 region: content settings: { } third_party_settings: { } langcode: type: language_select - weight: 1 + weight: 6 region: content settings: include_locked: true third_party_settings: { } moderation_state: type: moderation_state_default - weight: 14 + weight: 11 region: content settings: { } third_party_settings: { } path: type: path - weight: 12 + weight: 9 region: content settings: { } third_party_settings: { } private: type: private - weight: 2 + weight: 5 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 15 + weight: 12 region: content settings: display_label: true @@ -128,7 +149,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 8 + weight: 7 region: content settings: match_operator: CONTAINS @@ -137,7 +158,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 13 + weight: 10 region: content settings: { } third_party_settings: { } diff --git a/config/core.entity_form_display.node.summary.default.yml b/config/core.entity_form_display.node.summary.default.yml index 6643ac0..cb4a6b6 100644 --- a/config/core.entity_form_display.node.summary.default.yml +++ b/config/core.entity_form_display.node.summary.default.yml @@ -18,9 +18,33 @@ dependencies: module: - comment - content_moderation + - field_group - file - path - private_content +third_party_settings: + field_group: + group_advanced: + children: + - langcode + - field_ai_brain + - field_auto_create + - moderation_state + - private + - field_ai_feedback + - status + label: Advanced + region: content + parent_name: '' + weight: 7 + format_type: details + format_settings: + classes: '' + show_empty_fields: false + id: '' + open: false + description: '' + required_fields: false id: node.summary.default targetEntityType: node bundle: summary @@ -28,45 +52,45 @@ mode: default content: created: type: datetime_timestamp - weight: 15 + weight: 11 region: content settings: { } third_party_settings: { } field_ai_brain: type: options_select - weight: 3 + weight: 9 region: content settings: { } third_party_settings: { } field_ai_feedback: type: comment_default - weight: 17 + weight: 16 region: content settings: { } third_party_settings: { } field_auto_create: type: boolean_checkbox - weight: 4 + weight: 10 region: content settings: display_label: true third_party_settings: { } field_document: type: file_generic - weight: 8 + weight: 4 region: content settings: progress_indicator: throbber third_party_settings: { } field_document_language: type: options_select - weight: 6 + weight: 2 region: content settings: { } third_party_settings: { } field_document_text: type: string_textarea - weight: 9 + weight: 5 region: content settings: rows: 5 @@ -74,19 +98,19 @@ content: third_party_settings: { } field_number_of_paragraphs: type: options_select - weight: 5 + weight: 1 region: content settings: { } third_party_settings: { } field_output_language: type: options_select - weight: 7 + weight: 3 region: content settings: { } third_party_settings: { } field_summary: type: string_textarea - weight: 10 + weight: 6 region: content settings: rows: 5 @@ -94,32 +118,32 @@ content: third_party_settings: { } langcode: type: language_select - weight: 1 + weight: 8 region: content settings: include_locked: true third_party_settings: { } moderation_state: type: moderation_state_default - weight: 11 + weight: 12 region: content settings: { } third_party_settings: { } path: type: path - weight: 12 + weight: 10 region: content settings: { } third_party_settings: { } private: type: private - weight: 2 + weight: 14 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 14 + weight: 18 region: content settings: display_label: true @@ -134,7 +158,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 16 + weight: 8 region: content settings: match_operator: CONTAINS @@ -143,7 +167,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 13 + weight: 9 region: content settings: { } third_party_settings: { } diff --git a/config/core.extension.yml b/config/core.extension.yml index 3c3c615..2bd80fd 100644 --- a/config/core.extension.yml +++ b/config/core.extension.yml @@ -23,6 +23,7 @@ module: entity_reference_revisions: 0 environment_indicator: 0 field: 0 + field_group: 0 field_ui: 0 file: 0 file_mdm: 0 diff --git a/config/field.field.node.summary.field_number_of_paragraphs.yml b/config/field.field.node.summary.field_number_of_paragraphs.yml index 1a19268..0349e3b 100644 --- a/config/field.field.node.summary.field_number_of_paragraphs.yml +++ b/config/field.field.node.summary.field_number_of_paragraphs.yml @@ -11,7 +11,7 @@ id: node.summary.field_number_of_paragraphs field_name: field_number_of_paragraphs entity_type: node bundle: summary -label: 'Number of paragraphs' +label: 'Approximate number of paragraphs' description: '' required: true translatable: false diff --git a/config/user.role.document_analyzer.yml b/config/user.role.document_analyzer.yml index 0a241e5..4d34c7a 100644 --- a/config/user.role.document_analyzer.yml +++ b/config/user.role.document_analyzer.yml @@ -41,7 +41,5 @@ permissions: - 'use summarize transition summarize' - 'use summarize transition summarized_update' - 'use summarize transition text_extracted_update' - - 'view action_points revisions' - 'view own summary content' - 'view own unpublished content' - - 'view summary revisions' diff --git a/html/modules/custom/ocha_ai_summarize/ocha_ai_summarize.module b/html/modules/custom/ocha_ai_summarize/ocha_ai_summarize.module index 9fcbb80..e187482 100644 --- a/html/modules/custom/ocha_ai_summarize/ocha_ai_summarize.module +++ b/html/modules/custom/ocha_ai_summarize/ocha_ai_summarize.module @@ -245,6 +245,9 @@ function ocha_ai_summarize_form_node_summary_edit_form_alter(&$form, FormStateIn * Alter summary form based on state. */ function ocha_ai_summarize_form_node_summary_alter(&$form, FormStateInterface $form_state, $form_id) { + // Hide revision widget. + $form['revision_log']['#access'] = FALSE; + if ($form_id === 'node_summary_form') { // Remove OpenAi. if (isset($form['field_ai_brain']['widget']['#options']['openai'])) { @@ -329,6 +332,9 @@ function ocha_ai_summarize_form_node_action_points_edit_form_alter(&$form, FormS * Alter action_points form based on state. */ function ocha_ai_summarize_form_node_action_points_alter(&$form, FormStateInterface $form_state, $form_id) { + // Hide revision widget. + $form['revision_log']['#access'] = FALSE; + if ($form_id === 'node_action_points_form') { // Remove OpenAi. if (isset($form['field_ai_brain']['widget']['#options']['openai'])) { @@ -1481,10 +1487,12 @@ function ocha_ai_summarize_notify_user(NodeInterface $node) { $to = $node->getOwner()->getEmail(); $langcode = $node->getOwner()->getPreferredLangcode(); + $ai_models = $node->get('field_ai_brain')->getSettings()['allowed_values']; + $ai_model = $ai_models[$node->get('field_ai_brain')->value]; + $params['subject'] = t('AI Summarize: your document has been processed.'); $params['message'] = implode("\r\n\r\n", [ - t('Dear'), - t('Your document has been processed.'), + t('Your document has been processed by @model.', ['@model' => $ai_model]), t('You can see the result on @link', [ '@link' => $node->toUrl()->setAbsolute()->toString(), ]), diff --git a/local/docker-compose.yml b/local/docker-compose.yml index c41c659..94b1b6a 100644 --- a/local/docker-compose.yml +++ b/local/docker-compose.yml @@ -38,6 +38,7 @@ services: - "../composer.json:/srv/www/composer.json:rw" - "../composer.lock:/srv/www/composer.lock:rw" - "../composer.patches.json:/srv/www/composer.patches.json:rw" + - "../PATCHES:/srv/www/PATCHES:rw" - "../scripts:/srv/www/scripts:ro" # Mount a database directory for import. - "../database:/srv/www/database:rw"