diff --git a/.github/DISCUSSION_TEMPLATE/Help.yml b/.github/DISCUSSION_TEMPLATE/help.yml similarity index 100% rename from .github/DISCUSSION_TEMPLATE/Help.yml rename to .github/DISCUSSION_TEMPLATE/help.yml diff --git a/.github/ISSUE_TEMPLATE/unexpected_major_version_breaking_change.yml b/.github/ISSUE_TEMPLATE/unexpected_major_version_breaking_change.yml new file mode 100644 index 0000000000..f145f2008a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/unexpected_major_version_breaking_change.yml @@ -0,0 +1,101 @@ +name: Unexpected v4 breaking change +description: If a breaking change is not documented in the upgrade guide and not automatically upgraded by the script, report it here +labels: unexpected major version breaking change,unconfirmed,high priority +projects: ['filamentphp/2'] +body: + - type: markdown + attributes: + value: | + Before opening a report, please search the existing issues (both open and closed). + + --- + + Thank you for taking the time to file a report. To address this issue as fast as possible, we need some information. + - type: dropdown + id: package + attributes: + label: Package + description: Which package is this report for? + options: + - filament/actions + - filament/filament + - filament/forms + - filament/infolists + - filament/notifications + - filament/spark-billing-provider + - filament/spatie-laravel-google-fonts-plugin + - filament/spatie-laravel-media-library-plugin + - filament/spatie-laravel-settings-plugin + - filament/spatie-laravel-tags-plugin + - filament/spatie-laravel-translatable-plugin + - filament/support + - filament/tables + - filament/widgets + - Other + default: 1 + validations: + required: true + - type: input + id: package-version + attributes: + label: Package Version + description: Please provide the full version of the package you have installed. + placeholder: v3.0.0 + validations: + required: true + - type: input + id: laravel-version + attributes: + label: Laravel Version + description: Please provide the full Laravel version of your project. + placeholder: v10.0.0 + validations: + required: true + - type: input + id: livewire-version + attributes: + label: Livewire Version + description: Please provide the full Livewire version of your project, if applicable. + placeholder: v3.0.0 + - type: input + id: php-version + attributes: + label: PHP Version + description: Please provide the full PHP version of your server. + placeholder: PHP 8.3.0 + validations: + required: true + - type: textarea + id: description + attributes: + label: Breaking change description + description: What happened when you experienced the breaking change? + validations: + required: true + - type: textarea + id: expectation + attributes: + label: Expected behavior + description: What did you expect to happen instead? + validations: + required: true + - type: textarea + id: steps + attributes: + label: Steps to reproduce + description: Which steps do we need to take to reproduce the problem? Any code examples need to be **as short as possible**, remove any code that is unrelated to the issue. **This issue will be automatically closed and not reviewed if detailed replication steps are missing.** + validations: + required: true + - type: input + id: reproduction + attributes: + label: Reproduction repository (issue will be closed if this is not valid) + description: The URL of a public GitHub repository which reproduces the problem. **Please do not link to your actual project**, what we need instead is a _minimal_ reproduction in a fresh project without any unnecessary code. This means it doesn\'t matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. This allows us to fix the problem much quicker. **This issue will be automatically closed and not reviewed if this is missing. Please make sure to format the URL starting with `https://github.com` - only repositories hosted on GitHub are accepted.** [Need a headstart? We have a template Filament project for you.](https://filament-issue.unitedbycode.com) + validations: + required: true + - type: textarea + id: logs + attributes: + label: Relevant log output + description: If applicable, provide relevant log output. No need for backticks here. + render: shell diff --git a/packages/forms/resources/js/components/file-upload.js b/packages/forms/resources/js/components/file-upload.js index 2f51b364f0..c8ab44ecaf 100644 --- a/packages/forms/resources/js/components/file-upload.js +++ b/packages/forms/resources/js/components/file-upload.js @@ -756,20 +756,28 @@ export default function fileUploadFormComponent({ import am from 'filepond/locale/am-et' import ar from 'filepond/locale/ar-ar' +import az from 'filepond/locale/az-az' import ca from 'filepond/locale/ca-ca' import ckb from 'filepond/locale/ku-ckb' import cs from 'filepond/locale/cs-cz' import da from 'filepond/locale/da-dk' import de from 'filepond/locale/de-de' +import el from 'filepond/locale/el-el' import en from 'filepond/locale/en-en' import es from 'filepond/locale/es-es' import fa from 'filepond/locale/fa_ir' import fi from 'filepond/locale/fi-fi' import fr from 'filepond/locale/fr-fr' +import he from 'filepond/locale/he-he' +import hr from 'filepond/locale/hr-hr' import hu from 'filepond/locale/hu-hu' import id from 'filepond/locale/id-id' import it from 'filepond/locale/it-it' +import ja from 'filepond/locale/ja-ja' import km from 'filepond/locale/km-km' +import ko from 'filepond/locale/ko-kr' +import lt from 'filepond/locale/lt-lt' +import lv from 'filepond/locale/lv-lv' import nb from 'filepond/locale/no_nb' import nl from 'filepond/locale/nl-nl' import pl from 'filepond/locale/pl-pl' @@ -777,6 +785,7 @@ import pt from 'filepond/locale/pt-pt' import pt_BR from 'filepond/locale/pt-br' import ro from 'filepond/locale/ro-ro' import ru from 'filepond/locale/ru-ru' +import sk from 'filepond/locale/sk-sk' import sv from 'filepond/locale/sv_se' import tr from 'filepond/locale/tr-tr' import uk from 'filepond/locale/uk-ua' @@ -787,20 +796,28 @@ import zh_TW from 'filepond/locale/zh-tw' const locales = { am, ar, + az, ca, ckb, cs, da, de, + el, en, es, fa, fi, fr, + he, + hr, hu, id, it, + ja, km, + ko, + lt, + lv, nb, nl, pl, @@ -808,6 +825,7 @@ const locales = { pt_BR, ro, ru, + sk, sv, tr, uk, diff --git a/packages/panels/src/Panel/Concerns/HasAvatars.php b/packages/panels/src/Panel/Concerns/HasAvatars.php index a85faaf467..10ae010abe 100644 --- a/packages/panels/src/Panel/Concerns/HasAvatars.php +++ b/packages/panels/src/Panel/Concerns/HasAvatars.php @@ -2,13 +2,14 @@ namespace Filament\Panel\Concerns; +use Closure; use Filament\AvatarProviders\UiAvatarsProvider; trait HasAvatars { - protected string $defaultAvatarProvider = UiAvatarsProvider::class; + protected string | Closure $defaultAvatarProvider = UiAvatarsProvider::class; - public function defaultAvatarProvider(string $provider): static + public function defaultAvatarProvider(string | Closure $provider): static { $this->defaultAvatarProvider = $provider; @@ -17,6 +18,6 @@ trait HasAvatars public function getDefaultAvatarProvider(): string { - return $this->defaultAvatarProvider; + return $this->evaluate($this->defaultAvatarProvider); } }