Skip to content

Commit e561a9b

Browse files
authored
Merge pull request #64 from ASUWebPlatforms/release-2.15.0
Release 2.15.0
2 parents 0b1e2f8 + b96b234 commit e561a9b

File tree

550 files changed

+1425
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

550 files changed

+1425
-581
lines changed

composer.json

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
}
5050
],
5151
"require": {
52-
"drupal/ckeditor_responsive_plugin": "dev-2.1.x#22b2e1b",
5352
"pantheon-upstreams/upstream-configuration": "*",
5453
"webspark/custom-dependencies": "*"
5554
},
@@ -62,9 +61,17 @@
6261
"drupal/drupal-extension": "5.0.0",
6362
"genesis/behat-fail-aid": "3.7.5",
6463
"nuvoleweb/drupal-behat": "1.3.0",
65-
"palantirnet/drupal-rector": "0.18.6",
64+
"palantirnet/drupal-rector": "0.20.3",
65+
"phpstan/phpstan-deprecation-rules": "^1.2",
6666
"sirbrillig/phpcs-changed": "v2.11.4"
6767
},
68+
"replace": {
69+
"asu_modules/asu_brand": "self.version",
70+
"asu_modules/asu_config_utility": "self.version",
71+
"asu_modules/asu_react_core": "self.version",
72+
"asu_modules/asu_react_integration": "self.version",
73+
"asu_modules/asu_user": "self.version"
74+
},
6875
"conflict": {
6976
"drupal/drupal": "*"
7077
},
@@ -82,49 +89,27 @@
8289
"bower-asset"
8390
],
8491
"installer-paths": {
85-
"web/core": [
86-
"type:drupal-core"
87-
],
92+
"web/core": ["type:drupal-core"],
8893
"web/libraries/{$name}": [
8994
"type:drupal-library",
9095
"type:npm-asset",
9196
"type:bower-asset"
9297
],
93-
"web/modules/composer/{$name}": [
94-
"type:drupal-module"
95-
],
96-
"web/profiles/composer/{$name}": [
97-
"type:drupal-profile"
98-
],
99-
"web/themes/composer/{$name}": [
100-
"type:drupal-theme"
101-
],
102-
"drush/Commands/contrib/{$name}": [
103-
"type:drupal-drush"
104-
],
105-
"web/modules/custom/{$name}": [
106-
"type:drupal-custom-module"
107-
],
108-
"web/profiles/custom/{$name}": [
109-
"type:drupal-custom-profile"
110-
],
111-
"web/themes/custom/{$name}": [
112-
"type:drupal-custom-theme"
113-
],
114-
"web/private/scripts/quicksilver/{$name}/": [
115-
"type:quicksilver-script"
116-
],
117-
"web/libraries/ckeditor/plugins/{$name}": [
118-
"vendor:ckeditor-plugin"
119-
]
98+
"web/modules/composer/{$name}": ["type:drupal-module"],
99+
"web/profiles/composer/{$name}": ["type:drupal-profile"],
100+
"web/themes/composer/{$name}": ["type:drupal-theme"],
101+
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
102+
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
103+
"web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
104+
"web/themes/custom/{$name}": ["type:drupal-custom-theme"],
105+
"web/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"],
106+
"web/libraries/ckeditor/plugins/{$name}": ["vendor:ckeditor-plugin"]
120107
},
121108
"drupal-scaffold": {
122109
"locations": {
123110
"web-root": "./web"
124111
},
125-
"allowed-packages": [
126-
"pantheon-systems/drupal-integrations"
127-
],
112+
"allowed-packages": ["pantheon-systems/drupal-integrations"],
128113
"file-mapping": {
129114
"[project-root]/.editorconfig": false,
130115
"[project-root]/pantheon.upstream.yml": false,
@@ -164,24 +149,16 @@
164149
"./vendor/bin/phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md --ignore=node_modules,bower_components,vendor ./web/modules/webspark",
165150
"./vendor/bin/phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md --ignore=node_modules,bower_components,vendor ./web/themes/webspark"
166151
],
167-
"pre-update-cmd": [
168-
"DrupalComposerManaged\\ComposerScripts::preUpdate"
169-
],
170-
"post-update-cmd": [
171-
"DrupalComposerManaged\\ComposerScripts::postUpdate"
172-
],
173-
"custom-require": [
174-
"WebsparkCustomScripts\\CustomComposerScripts::customRequire"
175-
],
176-
"custom-remove": [
177-
"WebsparkCustomScripts\\CustomComposerScripts::customRemove"
178-
]
152+
"pre-update-cmd": ["DrupalComposerManaged\\ComposerScripts::preUpdate"],
153+
"post-update-cmd": ["DrupalComposerManaged\\ComposerScripts::postUpdate"],
154+
"custom-require": ["WebsparkCustomScripts\\CustomComposerScripts::customRequire"],
155+
"custom-remove": ["WebsparkCustomScripts\\CustomComposerScripts::customRemove"]
179156
},
180157
"config": {
181158
"preferred-install": "dist",
182159
"sort-packages": true,
183160
"platform": {
184-
"php": "8.1.6"
161+
"php": "8.3.0"
185162
},
186163
"allow-plugins": {
187164
"composer/installers": true,
@@ -192,7 +169,7 @@
192169
"phpstan/extension-installer": true,
193170
"zaporylie/composer-drupal-optimizations": true,
194171
"php-http/discovery": true,
195-
"tbachert/spi": false
172+
"tbachert/spi": true
196173
}
197174
}
198175
}

monorepo-builder.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symplify\MonorepoBuilder\Config\MBConfig;
6+
7+
return static function (MBConfig $mbConfig): void {
8+
$mbConfig->packageDirectories([__DIR__ . '/web/modules/asu_modules/']);
9+
};

pantheon.upstream.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ api_version: 1
22
web_docroot: true
33
# See https://pantheon.io/docs/pantheon-yml/#enforce-https--hsts for valid values
44
enforce_https: transitional
5-
php_version: 8.1
5+
php_version: 8.3
66
database:
7-
version: 10.4
7+
version: 10.6
88
drush_version: 10
9+
# The drush version is kept at 10 because Pantheon does not support Drush
10+
# at a higher version at the platform level, so we have to use composer.
911
build_step: true
1012
protected_web_paths:
1113
- /private/

phpstan.neon

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
parameters:
22
customRulesetUsed: true
3+
level: 0
4+
paths:
5+
- web/modules/webspark/
6+
- web/themes/webspark/renovation
37
ignoreErrors:
4-
- '#Plugin definitions cannot be altered.#'
5-
- '#Missing cache backend declaration for performance.#'
6-
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
7-
- '#Unsafe usage of new static.#'
8+
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
9+
- '#Plugin definitions cannot be altered.#'
10+
- '#Missing cache backend declaration for performance.#'
11+
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
12+
- '#Unsafe usage of new static.#'
813

914
# FROM mglaman/drupal-check/phpstan/base_config.neon
1015
reportUnmatchedIgnoredErrors: false

rector.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
use Rector\Config\RectorConfig;
1010

1111
return static function (RectorConfig $rectorConfig): void {
12-
// Adjust the set lists to be more granular to your Drupal requirements.
13-
// @todo find out how to only load the relevant rector rules.
14-
// Should we try and load \Drupal::VERSION and check?
15-
$rectorConfig->sets([
16-
Drupal8SetList::DRUPAL_8,
17-
Drupal9SetList::DRUPAL_9,
18-
Drupal10SetList::DRUPAL_10,
19-
]);
12+
// Adjust the set lists to be more granular to your Drupal requirements.
13+
// @todo find out how to only load the relevant rector rules.
14+
// Should we try and load \Drupal::VERSION and check?
15+
$rectorConfig->sets([
16+
Drupal8SetList::DRUPAL_8,
17+
Drupal9SetList::DRUPAL_9,
18+
Drupal10SetList::DRUPAL_10,
19+
]);
2020

21-
$drupalFinder = new DrupalFinder();
22-
$drupalFinder->locateRoot(__DIR__);
23-
$drupalRoot = $drupalFinder->getDrupalRoot();
24-
$rectorConfig->autoloadPaths([
25-
$drupalRoot . '/core',
26-
$drupalRoot . '/modules',
27-
$drupalRoot . '/profiles',
28-
$drupalRoot . '/themes'
29-
]);
21+
$drupalFinder = new DrupalFinder();
22+
$drupalFinder->locateRoot(__DIR__);
23+
$drupalRoot = $drupalFinder->getDrupalRoot();
24+
$rectorConfig->autoloadPaths([
25+
$drupalRoot . '/core',
26+
$drupalRoot . '/modules',
27+
$drupalRoot . '/profiles',
28+
$drupalRoot . '/themes'
29+
]);
3030

31-
$rectorConfig->skip(['*/upgrade_status/tests/modules/*']);
32-
$rectorConfig->fileExtensions(['php', 'module', 'theme', 'install', 'profile', 'inc', 'engine']);
33-
$rectorConfig->importNames(true, false);
34-
$rectorConfig->importShortClasses(false);
31+
$rectorConfig->skip(['*/upgrade_status/tests/modules/*']);
32+
$rectorConfig->fileExtensions(['php', 'module', 'theme', 'install', 'profile', 'inc', 'engine']);
33+
$rectorConfig->importNames(true, false);
34+
$rectorConfig->importShortClasses(false);
3535
};

upstream-configuration/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Upstream Configuration
22

3-
If you are working on your custom upstream, use this folder for upstream specific stuff.
3+
If you are working on your custom upstream, use this folder for upstream specific stuff.
44

55
You can require the `pantheon-systems/upstream-management` [composer package](https://packagist.org/packages/pantheon-systems/upstream-management) to get access to some upstream management tools. Require it with composer like this:
66

77
```
88
composer require pantheon-systems/upstream-management:^1
99
```
1010

11-
Read project description for more information about the tools that it contains.
11+
Read project description for more information about the tools that it contains

upstream-configuration/composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
"type": "project",
44
"require": {
55
"composer/installers": "v2.0.0",
6-
"cweagans/composer-patches": "1.7.1",
6+
"cweagans/composer-patches": "1.7.3",
77
"drupal/admin_toolbar": "3.4.2",
88
"drupal/allowed_formats": "3.0.0",
99
"drupal/anchor_link": "3.0.0-alpha2",
1010
"drupal/block_field": "1.0.0-rc4",
1111
"drupal/captcha": "2.0.5",
1212
"drupal/cas": "2.3.2",
13+
"drupal/ckeditor_responsive_plugin": "2.1.0-beta1",
1314
"drupal/components": "3.0.0-beta3",
1415
"drupal/config_readonly": "1.0.0-beta5",
1516
"drupal/config_update": "2.0.0-alpha3",
16-
"drupal/core-composer-scaffold": "10.2.10",
17-
"drupal/core-recommended": "10.2.10",
17+
"drupal/core-composer-scaffold": "10.3.11",
18+
"drupal/core-recommended": "10.3.11",
1819
"drupal/crop": "2.3.0",
1920
"drupal/ctools": "4.1.0",
2021
"drupal/current_page_crumb": "1.5.0",
@@ -47,7 +48,7 @@
4748
"drupal/simple_sitemap": "4.2.1",
4849
"drupal/smtp": "1.2.0",
4950
"drupal/webform": "6.2.3",
50-
"drush/drush": "^11 || ^12.4.3",
51+
"drush/drush": "^12.4.3 || ^13.0",
5152
"drush-ops/behat-drush-endpoint": "9.4.1",
5253
"fontawesome/fontawesome": "6.4.2",
5354
"npm-asset/fonticonpicker--fonticonpicker": "3.1.1",
@@ -56,7 +57,7 @@
5657
"drupal/pantheon_advanced_page_cache": "2.2.0",
5758
"pantheon-systems/drupal-integrations": "9.0.2",
5859
"pantheon-systems/quicksilver-pushback": "2.1.1",
59-
"php": ">=8.1.6",
60+
"php": ">=8.3.0",
6061
"zaporylie/composer-drupal-optimizations": "1.2.0",
6162
"drupal/editor_advanced_link": "2.2.4",
6263
"drupal/ckeditor": "1.0.2",
@@ -67,5 +68,5 @@
6768
"config": {
6869
"sort-packages": true
6970
},
70-
"version": "2.14.2"
71+
"version": "2.15.0"
7172
}

upstream-configuration/patches.webspark.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
22
"drupal/core": {
33
"#2951547: Fix issue with layout overflow": "https://www.drupal.org/files/issues/2022-07-13/f245f21ea664f22c81d8d28c6f0f4a42fb9a5890.patch",
4-
"3109650: Refactor Xss::attributes() to allow filtering of style attribute values": "https://www.drupal.org/files/issues/2024-05-16/core-10.2.3-xss-refactor_filter_attributes-3109650-74.patch",
5-
"#3415961: Fix issue with focus after inserting media via the modal dialog": "https://www.drupal.org/files/issues/2024-02-15/3415961.patch"
4+
"#3109650: Refactor Xss::attributes() to allow filtering of style attribute values": "https://www.drupal.org/files/issues/2024-05-16/core-10.2.3-xss-refactor_filter_attributes-3109650-74.patch",
5+
"#3415961: Fix issue with focus after inserting media via the modal dialog": "https://www.drupal.org/files/issues/2024-02-15/3415961.patch",
6+
"#3386605: Add CKEditor 5 support for WebP images": "https://www.drupal.org/files/issues/2024-08-14/3386605-9-add-ckeditor5-support-for-webp.patch"
67
},
78
"drupal/config_readonly": {
89
"#3085001: Config blacklist to only block some configuration while in read only mode": "https://www.drupal.org/files/issues/2019-10-31/config_readonly-3085001-2.patch"
910
},
1011
"drupal/field_states_ui": {
11-
"#3225009: Cant add custom block with field states ui using layout builder": "https://www.drupal.org/files/issues/2023-06-21/3225009-6.patch"
12+
"#3225009: Cant add custom block with field states ui using layout builder": "https://www.drupal.org/files/issues/2023-06-21/3225009-6.patch",
13+
"#3371927: PluginNotFoundException: The \"\" plugin does not exist": "upstream-configuration/patches/field_states_ui_3371927_mr_10.patch",
14+
"3442166: Unable to change either the Target or Comparison elements": "https://www.drupal.org/files/issues/2024-09-27/resolve_fields_states_ui.patch"
1215
},
1316
"drupal/linkit": {
1417
"2877535: Fix issue with path alias": "https://www.drupal.org/files/issues/2023-10-05/linkit-2877535-64.patch"
@@ -27,8 +30,5 @@
2730
},
2831
"drupal/paragraphs": {
2932
"#3090200: Paragraphs do not render: access check for view fail when using layout builder": "https://www.drupal.org/files/issues/2022-10-26/3084934-13_combine_3090200-22.patch"
30-
},
31-
"drupal/ckeditor_responsive_plugin": {
32-
"#3334636 : Add content after injecting the grid ": "https://www.drupal.org/files/issues/2023-08-22/ckeditor_responsive_plugin_2-1.patch"
3333
}
3434
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From c4b8790af6a10a1a12e49573a290c0917cdfc0e0 Mon Sep 17 00:00:00 2001
2+
From: Jo Fitzgerald <[email protected]>
3+
Date: Fri, 19 Apr 2024 17:27:13 +0000
4+
Subject: [PATCH] Include type as a hidden form element to ake it available in
5+
$form_state
6+
7+
---
8+
src/FieldStateManager.php | 3 +++
9+
1 file changed, 3 insertions(+)
10+
11+
diff --git a/src/FieldStateManager.php b/src/FieldStateManager.php
12+
index 3db119b..768bad2 100644
13+
--- a/src/FieldStateManager.php
14+
+++ b/src/FieldStateManager.php
15+
@@ -414,6 +414,9 @@ class FieldStateManager extends DefaultPluginManager {
16+
$title = t('Add new field state: @type', ['@type' => $field_state->label()]);
17+
$submit_label = t('Add');
18+
$op = 'new';
19+
+
20+
+ $element['form']['type']['#type'] = 'hidden';
21+
+ $element['form']['type']['#title'] = $type;
22+
}
23+
$element['form']['edit'] = $field_state->buildConfigurationForm([], $form_state);
24+
$element['form']['edit']['#type'] = 'fieldset';
25+
--
26+
GitLab
27+

upstream-configuration/scripts/ComposerScripts.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ public static function applyComposerJsonUpdates(Event $event) {
158158
$io->write("<info>Allow phpstan/extension-installer in preparation for Drupal 10</info>");
159159
$composerJson['config']['allow-plugins']['phpstan/extension-installer'] = true;
160160
}
161+
162+
// allow php-http/discovery
163+
if(! isset($composerJson['config']['allow-plugins']['php-http/discovery'])) {
164+
$io->write("<info>Allow php-http/discovery</info>");
165+
$composerJson['config']['allow-plugins']['php-http/discovery'] = true;
166+
}
161167
}
162168

163169
if(serialize($composerJson) == serialize($originalComposerJson)) {
@@ -236,6 +242,7 @@ private static function bestPhpPatchVersion($pantheonPhpVersion) {
236242
// Drupal 9 requires PHP 7.3 at a minimum.
237243
// Integrated Composer requires PHP 7.1 at a minimum.
238244
$patchVersions = [
245+
'8.3' => '8.3.0',
239246
'8.2' => '8.2.0',
240247
'8.1' => '8.1.13',
241248
'8.0' => '8.0.26',

0 commit comments

Comments
 (0)