Skip to content

Commit fc10069

Browse files
committed
Merge branch '4.x' into 5.x
2 parents ae4c05b + d8ed979 commit fc10069

File tree

24 files changed

+410
-225
lines changed

24 files changed

+410
-225
lines changed

docs-assets/app/package-lock.json

Lines changed: 187 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-assets/screenshots/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/01-introduction/03-ai.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ php artisan boost:install
7575

7676
To verify installation, check your `AGENTS.md`, `CLAUDE.md`, or similar file for a new **Filament Blueprint** section.
7777

78+
<Aside variant="info">
79+
To access your purchased license, sign in to [Filament Packages](https://packages.filamentphp.com) with the email address used to purchase your Blueprint license.
80+
</Aside>
81+
7882
### Using Blueprint
7983

8084
To create a blueprint, enable **planning mode** in your AI agent and ask it to create a Filament Blueprint for your feature:

docs/10-testing/04-testing-schemas.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ livewire(CreatePost::class)
103103
104104
## Testing the existence of a form
105105

106-
To check that a Livewire component has a form, use `assertFormExists()`:
106+
To check that a Livewire component has a form, use `assertSchemaExists('form')`:
107107

108108
```php
109109
use function Pest\Livewire\livewire;
110110

111111
it('has a form', function () {
112112
livewire(CreatePost::class)
113-
->assertFormExists();
113+
->assertSchemaExists('form');
114114
});
115115
```
116116

117-
> If you have multiple schemas on a Livewire component, you can pass the name of a specific form like `assertFormExists('createPostForm')`.
117+
> If you have multiple schemas on a Livewire component, you can pass the name of a specific form like `assertSchemaExists('createPostForm')`.
118118
119119
## Testing the existence of form fields
120120

docs/10-testing/05-testing-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ it('can only print a sent invoice', function () {
314314
});
315315
```
316316

317-
To ensure sets of actions exist in the correct order, you can use `assertActionsExistInOrder()`:
317+
To ensure sets of actions exist in the correct order, you can use `assertActionListInOrder()`:
318318

319319
```php
320320
use function Pest\Livewire\livewire;
@@ -325,7 +325,7 @@ it('can have actions in order', function () {
325325
livewire(EditInvoice::class, [
326326
'invoice' => $invoice,
327327
])
328-
->assertActionsExistInOrder(['send', 'export']);
328+
->assertActionListInOrder(['send', 'export']);
329329
});
330330
```
331331

packages/forms/docs/10-rich-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,9 @@ class Post extends Model implements HasRichContent
764764
2 => 'John Smith',
765765
]),
766766
])
767-
->textColors(
767+
->textColors([
768768
'brand' => TextColor::make('Brand', '#0ea5e9', darkColor: '#38bdf8'),
769-
)
769+
])
770770
->customTextColors()
771771
->plugins([
772772
HighlightRichContentPlugin::make(),

packages/forms/resources/css/components/repeater.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@
4747
@apply flex items-center gap-x-3;
4848
}
4949

50-
& .fi-fo-repeater-item-header-icon {
51-
@apply shrink-0 text-gray-400 dark:text-gray-500;
52-
}
53-
5450
& .fi-fo-repeater-item-header-label {
5551
@apply text-sm font-medium text-gray-950 dark:text-white;
5652

packages/forms/resources/lang/es/components.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,13 @@
568568

569569
'no_merge_tag_search_results_message' => 'No se encontraron etiquetas dinámicas.',
570570

571+
'mentions' => [
572+
'no_options_message' => 'No hay opciones disponibles.',
573+
'no_search_results_message' => 'No hay resultados que coincidan con su búsqueda.',
574+
'search_prompt' => 'Comience a escribir para buscar...',
575+
'searching_message' => 'Buscando...',
576+
],
577+
571578
'tools' => [
572579
'align_center' => 'Alinear al centro',
573580
'align_end' => 'Alinear al final',
@@ -692,7 +699,17 @@
692699
],
693700

694701
'tags_input' => [
702+
703+
'actions' => [
704+
705+
'delete' => [
706+
'label' => 'Eliminar',
707+
],
708+
709+
],
710+
695711
'placeholder' => 'Nueva etiqueta',
712+
696713
],
697714

698715
'text_input' => [

packages/forms/resources/views/components/builder.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class="fi-fo-builder-item-header-start-actions"
171171
@endphp
172172

173173
@if ($hasBlockIcons && filled($blockIcon))
174-
{{ \Filament\Support\generate_icon_html($blockIcon, (new \Illuminate\View\ComponentAttributeBag)->class(['fi-fo-builder-item-header-icon'])) }}
174+
{{ \Filament\Support\generate_icon_html($blockIcon, attributes: (new \Illuminate\View\ComponentAttributeBag)->class(['fi-fo-builder-item-header-icon'])) }}
175175
@endif
176176

177177
@if ($hasBlockLabels)

packages/forms/src/Components/BaseFileUpload.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,17 @@ protected function setUp(): void
194194
return $newPath;
195195
}
196196

197-
$storeMethod = $component->getVisibility() === 'public' ? 'storePubliclyAs' : 'storeAs';
198-
199-
return $file->{$storeMethod}(
197+
$path = $file->storeAs(
200198
$component->getDirectory(),
201199
$component->getUploadedFileNameForStorage($file),
202200
$component->getDiskName(),
203201
);
202+
203+
if ($component->getVisibility() === 'public') {
204+
rescue(fn () => $component->getDisk()->setVisibility($path, 'public'), report: false);
205+
}
206+
207+
return $path;
204208
});
205209
}
206210

0 commit comments

Comments
 (0)