Skip to content

Commit cff38ae

Browse files
committed
Merge branch '5.x'
2 parents c663ae0 + 7a144d5 commit cff38ae

File tree

24 files changed

+309
-95
lines changed

24 files changed

+309
-95
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Release Notes
22

3+
## 5.46.0 (2025-01-22)
4+
5+
### What's new
6+
- Add empty/not empty filters for replicator, bard and grid [#11354](https://github.com/statamic/cms/issues/11354) by @jacksleight
7+
- Page children as value for field conditions [#11368](https://github.com/statamic/cms/issues/11368) by @heidkaemper
8+
- Allow addons cache path to be set by an environment variable [#11365](https://github.com/statamic/cms/issues/11365) by @ryanmitchell
9+
10+
### What's fixed
11+
- Fix error with disallowed words in Comb search driver [#11336](https://github.com/statamic/cms/issues/11336) by @duncanmcclean
12+
- Fixed ordering search results by origin value [#11334](https://github.com/statamic/cms/issues/11334) by @duncanmcclean
13+
- Fix case insensitive Comb search for UTF-8 characters [#11363](https://github.com/statamic/cms/issues/11363) by @heidkaemper
14+
- Translate name in user group fieldtype [#11343](https://github.com/statamic/cms/issues/11343) by @duncanmcclean
15+
- Fix UI bugs in Safari 18.2 [#11335](https://github.com/statamic/cms/issues/11335) by @marcorieser
16+
17+
18+
19+
## 5.45.2 (2025-01-21)
20+
21+
### What's fixed
22+
- Revert "Allow form fields view to be rendered with single tag" [#11374](https://github.com/statamic/cms/issues/11374) by @duncanmcclean
23+
- Remove `type` attribute in nocache replacer [#11373](https://github.com/statamic/cms/issues/11373) by @marcorieser
24+
- Fix deprecation warning from regex operator [#11337](https://github.com/statamic/cms/issues/11337) by @duncanmcclean
25+
- Fix bug report link in Contribution Guide [#11367](https://github.com/statamic/cms/issues/11367) by @duncanmcclean
26+
- Fix bard undefined href error [#11351](https://github.com/statamic/cms/issues/11351) by @jacksleight
27+
- Suppress “packing” git message [#11326](https://github.com/statamic/cms/issues/11326) by @edalzell
28+
29+
30+
331
## 5.45.1 (2025-01-07)
432

533
### What's fixed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Next, please search through the [open issues](https://github.com/statamic/cms/is
5353

5454
If you _do_ find a similar issue, upvote it by adding a :thumbsup: [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Only leave a comment if you have relevant information to add.
5555

56-
If no one has filed the issue yet, feel free to [submit a new one](https://github.com/statamic/cms/issues/new). Please include a clear description of the issue, follow along with the issue template, and provide and as much relevant information as possible. Code examples demonstrating the issue are the best way to ensure a timely solution to the issue.
56+
If no one has filed the issue yet, feel free to [submit a new one](https://github.com/statamic/cms/issues/new?template=bug_report.yml). Please include a clear description of the issue, follow along with the issue template, and provide and as much relevant information as possible. Code examples demonstrating the issue are the best way to ensure a timely solution to the issue.
5757

5858
### Feature Requests
5959

resources/css/elements/buttons.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,27 @@ button {
3434
.btn, .btn-default {
3535
@apply text-gray-800 dark:text-dark-150 shadow-button;
3636
background: linear-gradient(180deg, #fff, #f9fafb);
37+
background-clip: padding-box;
3738
border: 1px solid #D3DDE7;
3839
border-bottom: 1px solid #c4cdd6;
3940
box-shadow: inset 0 1px 0 0 #fff, 0 1px 0 0 rgba(0, 0, 0,.05), 0 2px 1px 0 theme(colors.gray.600 / .15), 0 0 0 0 transparent;
4041

4142
.dark & {
4243
background: linear-gradient(180deg, theme(colors.dark.550), theme(colors.dark.600));
44+
background-clip: padding-box;
4345
border-color: theme(colors.dark.700);
4446
box-shadow: inset 0 1px 0 0 theme(colors.dark.300), 0 1px 0 0 rgba(200, 200, 200,.05), 0 2px 1px 0 theme(colors.dark.900 / .15), 0 0 0 0 transparent;
4547
}
4648

4749
&:hover:not(:disabled), &:active:not(:disabled) {
4850
@apply text-gray-800 dark:text-dark-150;
4951
background: linear-gradient(180deg, #f9fafb, #f4f6f8);
52+
background-clip: padding-box;
5053
border-bottom: 1px solid #BFC7D0;
5154

5255
.dark & {
5356
background: linear-gradient(180deg, theme(colors.dark.600), theme(colors.dark.700));
57+
background-clip: padding-box;
5458
border-color: theme(colors.dark.800);
5559
}
5660
}
@@ -78,7 +82,7 @@ button {
7882

7983
/* Primary action button */
8084
.btn-primary {
81-
@apply text-white bg-gradient-to-b from-blue-500 to-blue-600 dark:from-dark-blue-100 dark:to-dark-blue-150 border border-blue-700 dark:border-blue-900 border-b-blue-800 dark:border-b-dark-blue-200 !important;
85+
@apply text-white bg-gradient-to-b from-blue-500 to-blue-600 dark:from-dark-blue-100 dark:to-dark-blue-150 bg-clip-padding border border-blue-700 dark:border-blue-900 border-b-blue-800 dark:border-b-dark-blue-200 !important;
8286
box-shadow: inset 0 1px 0 0 theme('colors.blue.400'), 0 1px 0 0 rgba(25,30,35,.05), 0 3px 2px -1px theme(colors.blue.900 / .15), 0 0 0 0 transparent;
8387

8488
&:hover:not(:disabled), :active:not(:disabled) {
@@ -93,11 +97,11 @@ button {
9397

9498
/* Danger/delete button */
9599
.btn-danger {
96-
@apply text-white bg-gradient-to-b from-red-500 to-red-600 border border-red-600 border-b-red-900;
100+
@apply text-white bg-gradient-to-b from-red-500 to-red-600 bg-clip-padding border border-red-600 border-b-red-900;
97101
box-shadow: inset 0 1px 0 0 theme('colors.red.400'), 0 1px 0 0 rgba(0, 0, 0,.05), 0 3px 2px -1px theme(colors.red.900 / .15), 0 0 0 0 transparent;
98102

99103
&:hover:not(:disabled), &:active:not(:disabled) {
100-
@apply bg-gradient-to-b from-red-600 to-red-700 border border-red-700 border-b-red-900;
104+
@apply bg-gradient-to-b from-red-600 to-red-700 bg-clip-padding border border-red-700 border-b-red-900;
101105
}
102106

103107
&:disabled {
@@ -159,22 +163,26 @@ button {
159163
.btn-round {
160164
@apply rounded-full flex items-center text-center p-0;
161165
background: linear-gradient(180deg, #fff, #f9fafb);
166+
background-clip: padding-box;
162167
border: 1px solid #c4cdd6;
163168
box-shadow: 0 1px 0 0 rgba(25,30,35,.05);
164169
height: 32px;
165170
width: 32px;
166171

167172
.dark & {
168173
background: linear-gradient(180deg, theme(colors.dark.500), theme(colors.dark.550));
174+
background-clip: padding-box;
169175
border-color: theme(colors.dark.400);
170176
}
171177

172178
&:hover:not(:disabled), &:active:not(:disabled) {
173179
background: linear-gradient(180deg, #f9fafb, #f4f6f8);
180+
background-clip: padding-box;
174181
border-color: #c4cdd5;
175182

176183
.dark & {
177184
background: linear-gradient(180deg, theme(colors.dark.550), theme(colors.dark.600));
185+
background-clip: padding-box;
178186
border-color: theme(colors.dark.500);
179187
}
180188
}

resources/css/elements/forms.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ input.input-text-minimal:read-only,
9393
.input-group-prepend, .input-group-append, .input-group-item {
9494
@apply rtl:rounded-r ltr:rounded-l px-2 border dark:border-dark-900 text-sm text-gray-800 dark:text-dark-150 select-none;
9595
background: linear-gradient(180deg, #fff, #f9fafb);
96+
background-clip: padding-box;
9697
border: 1px solid #c4cdd6;
9798
box-shadow: 0 1px 0 0 rgba(25,30,35,.05);
9899
height: 2.375rem;
99100
line-height: 36px;
100101

101102
.dark & {
102103
background: linear-gradient(180deg, theme(colors.dark.500), theme(colors.dark.600));
104+
background-clip: padding-box;
103105
border-color: theme(colors.dark.900);
104106
box-shadow: 0 1px 0 0 rgba(0,0,0,.05);
105107
}
@@ -133,10 +135,12 @@ input.input-text-minimal:read-only,
133135
button.input-group-append:hover:not(:disabled),
134136
button.input-group-append:active:not(:disabled) {
135137
background: linear-gradient(180deg, #f9fafb, #f4f6f8);
138+
background-clip: padding-box;
136139
border-color: #c4cdd5;
137140

138141
.dark & {
139142
background: linear-gradient(180deg, theme(colors.dark.550), theme(colors.dark.600));
143+
background-clip: padding-box;
140144
border-color: theme(colors.dark.900);
141145
}
142146
}
@@ -213,22 +217,26 @@ input.input-text-minimal:read-only,
213217
@apply select-none rounded leading-normal align-middle whitespace-nowrap appearance-none subpixel-antialiased;
214218

215219
background: linear-gradient(180deg, #fff, #f9fafb);
220+
background-clip: padding-box;
216221
border: 1px solid #c4cdd6;
217222
height: 2.375rem; /* 38px */
218223
letter-spacing: -0.01em;
219224
padding: .475rem 1.75rem .475rem .75rem ; [dir="rtl"] & { padding: .475rem .75rem .475rem 1.75rem ; }
220225

221226
.dark & {
222227
background: linear-gradient(180deg, theme(colors.dark.500), theme(colors.dark.600));
228+
background-clip: padding-box;
223229
border-color: theme(colors.dark.800);
224230
}
225231

226232
&:hover:not(:disabled), &:active:not(:disabled) {
227233
background: linear-gradient(180deg, #f9fafb, #f4f6f8);
234+
background-clip: padding-box;
228235
border-color: #c4cdd5;
229236

230237
.dark & {
231238
background: linear-gradient(180deg, theme(colors.dark.700), theme(colors.dark.750));
239+
background-clip: padding-box;
232240
border-color: theme(colors.dark.900);
233241
}
234242
}

resources/css/vendors/vue-select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
.vs__open-indicator {
106106
@apply clickable;
107-
@apply flex items-center rounded-e px-2 text-sm shrink-0 h-full border-e-0 dark:border-dark-800;
107+
@apply flex items-center rounded-e px-2 text-sm shrink-0 h-full border-e-0 bg-clip-padding dark:border-dark-800;
108108
/* height: 2.375rem; */
109109
}
110110

resources/views/extend/forms/fields.antlers.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
<sup aria-label="{{ trans:Required }}">*</sup>
77
{{ /if }}
88
</label>
9-
{{ if instructions && instructions_position == "above" }}
10-
<p class="text-gray-500" id="{{ id }}-instructions">{{ instructions }}</p>
11-
{{ /if }}
12-
<div class="py-2">{{ field }}</div>
13-
{{ if instructions && instructions_position == "below" }}
9+
<div class="p-2">{{ field }}</div>
10+
{{ if instructions }}
1411
<p class="text-gray-500" id="{{ id }}-instructions">{{ instructions }}</p>
1512
{{ /if }}
1613
{{ if error }}

src/Console/Processes/Git.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ protected function prepareErrorOutput($type, $buffer)
8989
'remote: Resolving deltas',
9090
'Permanently added the ECDSA host key for IP address',
9191
'remote: Processed',
92+
'Auto packing the repository',
9293
];
9394

9495
if (Str::contains($buffer, $ignore)) {

src/Data/DataCollection.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,19 @@ protected function getSortableValue($sort, $item)
9696
return $this->normalizeSortableValue($item[$sort] ?? null);
9797
}
9898

99-
$method = Str::camel($sort);
100-
10199
if ($item instanceof Result && ! $item instanceof PlainResult) {
102100
$item = $item->getSearchable() ?? $item;
103101
}
104102

105-
$value = (method_exists($item, $method))
106-
? call_user_func([$item, $method])
107-
: $item->get($sort);
103+
if (method_exists($item, $method = Str::camel($sort))) {
104+
return $this->normalizeSortableValue(call_user_func([$item, $method]));
105+
}
106+
107+
if (method_exists($item, 'value')) {
108+
return $this->normalizeSortableValue($item->value($sort));
109+
}
108110

109-
return $this->normalizeSortableValue($value);
111+
return $this->normalizeSortableValue($item->get($sort));
110112
}
111113

112114
/**

src/Fieldtypes/Bard/LinkMark.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ public function addAttributes()
2525
return [
2626
'href' => [
2727
'renderHTML' => function ($attributes) {
28-
$href = $attributes->href;
29-
if (! isset($href)) {
28+
if (! isset($attributes->href)) {
3029
return null;
3130
}
3231

3332
return [
34-
'href' => $this->convertHref($href) ?? '',
33+
'href' => $this->convertHref($attributes->href) ?? '',
3534
];
3635
},
3736
],

src/Fieldtypes/UserGroups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function toItemArray($id, $site = null)
1717
{
1818
if ($group = UserGroup::find($id)) {
1919
return [
20-
'title' => $group->title(),
20+
'title' => __($group->title()),
2121
'id' => $group->handle(),
2222
];
2323
}
@@ -30,7 +30,7 @@ public function getIndexItems($request)
3030
return UserGroup::all()->sortBy('title')->map(function ($group) {
3131
return [
3232
'id' => $group->handle(),
33-
'title' => $group->title(),
33+
'title' => __($group->title()),
3434
];
3535
})->values();
3636
}

0 commit comments

Comments
 (0)