Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.3.0 #6485

Merged
merged 164 commits into from
Jun 13, 2024
Merged

4.3.0 #6485

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
cf3e82d
File: fix not creating PDF as different format
distantnative Mar 23, 2024
47bd0b9
Fix deprecation warning in router
bastianallgeier Mar 25, 2024
5d29f1e
Another try
bastianallgeier Mar 27, 2024
1f21b19
Add comment
lukasbestle Mar 27, 2024
e3959a8
New text vertical align icons
distantnative Mar 30, 2024
cc395c0
Editor: add `insertNode` util
distantnative Apr 6, 2024
6fb59f0
Merge pull request #6369 from getkirby/fix/5895-deprecation-in-router
bastianallgeier Apr 10, 2024
44f6064
Fix `nodeInputRule`
distantnative Apr 6, 2024
8fd14c8
Writer: fix nodes for `inline: true`
distantnative Apr 6, 2024
f8000c2
Update searches.php: Fixing panel search when uuids are disabled
toebu Apr 12, 2024
578724d
Upgrade to eslint 9
distantnative Apr 12, 2024
d4f86a8
Merge pull request #6396 from getkirby/fix/eslint-9
bastianallgeier Apr 17, 2024
24acf16
Update check: Support for new license model
lukasbestle Apr 21, 2024
0077473
Merge pull request #6395 from toebu/patch-1
bastianallgeier Apr 23, 2024
a3f513f
Merge pull request #6405 from getkirby/feature/5974-free-major-updates
bastianallgeier Apr 23, 2024
c1cb994
Merge pull request #6374 from getkirby/enhancement/icons-vertical-align
bastianallgeier Apr 23, 2024
788d0c3
Merge pull request #6383 from getkirby/feature/editor-insertnode
bastianallgeier Apr 23, 2024
251d8cd
Fix email dialog title prop translation #6402
afbora Apr 23, 2024
d6fef22
Merge pull request #6385 from getkirby/fix/editor-hr-input-rule
bastianallgeier Apr 23, 2024
9018f76
Merge pull request #6386 from getkirby/fix/writer-inline-nodes
bastianallgeier Apr 23, 2024
5926181
CSS `data-theme` with color names
distantnative Apr 23, 2024
a2ed897
Merge branch 'develop-patch' into develop-minor
distantnative Apr 23, 2024
d570140
Theme lab examples
bastianallgeier Apr 24, 2024
4b452bf
Merge pull request #6407 from getkirby/fix/theme-css-colors
bastianallgeier Apr 24, 2024
9fd6ec9
`k-button`: New `variant` for only colored icon
distantnative Apr 11, 2024
3b8ce34
`k-button`: `theme="positive-icon"`
distantnative Apr 11, 2024
b1b3a75
Simplify CSS
distantnative Apr 11, 2024
31d96d4
Fix regression
distantnative Apr 23, 2024
2c99ade
Extend lab examples
bastianallgeier Apr 24, 2024
435a3ce
Fix text color of only-icon themed filled btn
distantnative Apr 25, 2024
7db0c58
Improve theme and button styles
bastianallgeier Apr 25, 2024
abdc5ba
Language view: fix slot assignment
distantnative Apr 25, 2024
5a7fdc5
Clean up Panel js dev assets loading
distantnative Apr 25, 2024
7b284fe
Panel Assets: simplify code
distantnative Apr 25, 2024
69c7712
Vite config: segment config code
distantnative Apr 25, 2024
b65675f
Merge pull request #6394 from getkirby/enhancement/button-variant-fil…
distantnative Apr 25, 2024
134343c
Improve button themes lab example
distantnative Apr 25, 2024
16482eb
Fix button themes lab example once more
distantnative Apr 25, 2024
8979483
DropdownContent: support global events for `click`
distantnative Apr 26, 2024
9383b4e
Video KirbyTag: support `disablepictureinpicture`
distantnative Apr 27, 2024
f5440d7
Page section: show Add based on `create` status
distantnative Apr 27, 2024
50208fd
Remove server allowlist
distantnative Apr 27, 2024
fd14c38
System view: copy info
distantnative Apr 27, 2024
22d7a2a
Remove dead code
distantnative Apr 27, 2024
0e9a900
DRY button props
distantnative Apr 27, 2024
a144cf4
Fix cs
distantnative Apr 28, 2024
a074f27
Tweak logic after view and add unit tests
distantnative Apr 28, 2024
9ca7e2b
Fix tests after review
distantnative Apr 28, 2024
f835a15
Gather info on backend
distantnative Apr 28, 2024
789bb32
Merge pull request #6413 from getkirby/enhancement/video-tag-attrs
distantnative Apr 28, 2024
86dbb5e
Update tests/Cms/System/SystemTest.php
distantnative Apr 28, 2024
065b695
Merge pull request #6415 from getkirby/enhancement/remove-server-allo…
distantnative Apr 28, 2024
71ff65b
Unit test for `$system->isOk()`
distantnative Apr 28, 2024
69b1c39
Improve unit test
distantnative Apr 28, 2024
6c9e4ba
Merge pull request #6416 from getkirby/feature/system-info-copy
distantnative Apr 28, 2024
b00a705
Merge pull request #6417 from getkirby/refactor/button-props
bastianallgeier Apr 29, 2024
96b6bb5
Improve dropdown lab examples
bastianallgeier Apr 29, 2024
fd1ae62
Fix permissions
bastianallgeier Apr 29, 2024
98332ba
Use fields from parent dialog
bastianallgeier Apr 29, 2024
0167ed7
Adaptations after code review
distantnative Apr 29, 2024
e2c2632
Panel notifcations: support themes
distantnative Apr 30, 2024
ca7966d
Panel notification: improve timeout handling
distantnative Apr 30, 2024
7235440
Merge pull request #6406 from getkirby/fix/6402-email-title-prop
bastianallgeier Apr 30, 2024
7aace02
Merge pull request #6414 from getkirby/enhancement/page-section-add-b…
bastianallgeier Apr 30, 2024
9ee6ddf
Merge branch 'develop-patch' into develop-minor
distantnative Apr 30, 2024
154a573
`panel.notification.info(message)`
distantnative Apr 30, 2024
3248593
Fix DropdownItem
distantnative Apr 30, 2024
b36b8da
Fix cs
distantnative Apr 30, 2024
520c646
Fix leftover text
distantnative Apr 30, 2024
d2465a1
Upload dialog: improve preview icon
distantnative Apr 30, 2024
485f298
DRY with `<k-upload-dialog-preview>`
distantnative Apr 30, 2024
34927ce
CSS fixes
distantnative Apr 30, 2024
d5ae9c3
CalendarInput: fix when no value
distantnative May 1, 2024
d40c0fb
Clean up permissions in `tearDown()`
lukasbestle May 1, 2024
8b994b3
New test for `status`
lukasbestle May 1, 2024
b281b36
DateInput: fix clearing
distantnative May 1, 2024
b14565c
Merge pull request #6419 from getkirby/fix/system-isok-test
distantnative May 1, 2024
35e44a8
Fix tab badges
distantnative May 1, 2024
3370774
File upload: fix sort number
distantnative May 1, 2024
5d38eab
Add missing `void` return types
distantnative May 2, 2024
471cd13
Use elvis operator
distantnative May 2, 2024
b1a09cb
Fix static method calls
distantnative May 2, 2024
8674428
Use `**` instead of `pow()`
distantnative May 2, 2024
d4afccb
Use `random_int()` instead `rand()`
distantnative May 2, 2024
7211f6d
Use shrothand list destruct syntax
distantnative May 2, 2024
da9d2c7
Remove superfluous parameter
distantnative May 2, 2024
3c3295c
Fix passing null to `get_class()`
distantnative May 2, 2024
1f93d96
Use more null coalescing operator
distantnative May 2, 2024
6c10445
Set nullable props default as null
distantnative May 2, 2024
50db4a3
Short arrow function
distantnative May 2, 2024
33137f9
Fix cs
distantnative May 2, 2024
013a42e
More null coalescing operators
distantnative May 2, 2024
4e87efc
Merge pull request #6431 from getkirby/refactor/rector
bastianallgeier May 2, 2024
8a62f05
Merge pull request #6429 from getkirby/fix/6380-file-upload-sort
bastianallgeier May 2, 2024
b9ad2de
Merge pull request #6428 from getkirby/fix/6427-tab-badges
bastianallgeier May 2, 2024
2fa6396
Merge pull request #6425 from getkirby/fix/6422-calender-empty
bastianallgeier May 2, 2024
5d3f721
Merge pull request #6426 from getkirby/fix/6392-date-input-empty
bastianallgeier May 2, 2024
a1e9652
Merge branch 'develop-patch' into develop-minor
distantnative May 2, 2024
a8c23a4
Merge pull request #6411 from getkirby/feature/dropdown-event-plugins
bastianallgeier May 2, 2024
c9b49f4
Add lab example
bastianallgeier May 2, 2024
0850e9c
Fix DropdownItem props, revert change
distantnative May 2, 2024
984bae0
Merge pull request #6423 from getkirby/enhancement/notifications
bastianallgeier May 2, 2024
cde68a2
New upload item components
bastianallgeier May 2, 2024
af58c78
New lab examples
bastianallgeier May 2, 2024
ad2936f
Fix replace dialog
bastianallgeier May 2, 2024
ca37589
Merge upload components lab examples
distantnative May 2, 2024
ecaea19
Use `k-upload-item` for upload replace dialog
distantnative May 2, 2024
d363939
Upload item preview: fallback colors for mime type
distantnative May 2, 2024
78c175b
Last finishing touches
bastianallgeier May 3, 2024
c2bb45e
Merge pull request #6424 from getkirby/enhancement/upload-preview-icon
bastianallgeier May 3, 2024
35d7d5f
Merge pull request #6359 from getkirby/fix/6268-file-create-manipulate
distantnative May 3, 2024
d31e27a
Refactor App::language and introduce App::currentLanguage
bastianallgeier May 3, 2024
be2cb3b
Fix CS issue
bastianallgeier May 3, 2024
330406c
Fix return type
bastianallgeier May 3, 2024
e611cd8
Better be safe
bastianallgeier May 3, 2024
7111bcd
Move App::setCurrentLanguage and fix type hinting
bastianallgeier May 3, 2024
8b84c96
Fix CS issue
bastianallgeier May 3, 2024
6d13806
Merge pull request #6434 from getkirby/refactor/app-language
bastianallgeier May 3, 2024
e4f8558
QrCode: `border` argument
distantnative May 9, 2024
430ce1e
Merge pull request #6445 from getkirby/enhancement/qr-code-border
bastianallgeier May 12, 2024
cda38a7
Upgrad npm dependencies
distantnative May 12, 2024
94d5729
Login lab examples
distantnative Mar 24, 2024
3e0c1b0
Remove breaking change
distantnative Mar 25, 2024
16ae21f
Plugin: new `version` property
distantnative Oct 10, 2023
5c43cc8
Plugin deprecate root and info from extends array
distantnative Mar 7, 2024
e4f00c9
Plugin: alter the order of version fallbacks
distantnative Mar 7, 2024
9c57e5a
Plugin: set root as argument
distantnative Mar 7, 2024
cf39e2d
Move the test cases to named arguments
bastianallgeier Mar 13, 2024
0016629
Don’t trigger deprecation warnings
bastianallgeier Mar 13, 2024
d149380
Add deprecation warnings back in but disable them for now
bastianallgeier Mar 13, 2024
c434341
Fix cs
distantnative May 12, 2024
37b5508
Fix plugin root fallback
distantnative May 12, 2024
806a21a
Refactor `info` prop
distantnative May 12, 2024
b16397f
Add more unit tests
distantnative May 12, 2024
f313896
Fixes after review
distantnative May 16, 2024
47be3a4
Merge pull request #6365 from getkirby/refactor/login-lab
bastianallgeier May 16, 2024
9771fce
Plugin: `version` named argument
distantnative May 16, 2024
4e55609
fix line break when label is too long
tobimori May 20, 2024
c7806f6
Fix non existing file links #6446
afbora May 20, 2024
75db7d1
Add `$version` arg to `Kirby::plugin()`
distantnative May 23, 2024
4e6cca7
Update Media.php line comment
afbora May 23, 2024
4755e16
Merge pull request #6337 from getkirby/v4/enhancement/plugin-version
distantnative May 23, 2024
e1bb532
Merge pull request #6453 from getkirby/fix/6446-non-existing-file-links
distantnative May 23, 2024
67076ed
Exten timeline for plugin call signature changes
distantnative May 23, 2024
2ea5404
Upgrade npm dependencies
distantnative May 24, 2024
b9da5ef
Upload dialog: fix allowed characters for filename
distantnative May 26, 2024
06542e2
`string.slug` helper: stricter trimming
distantnative May 28, 2024
bc4961a
Move all login components into same location
distantnative May 30, 2024
be1dde0
Add string slug unit tests for filenames
distantnative May 30, 2024
98f5a0d
Fix safe basename in $file->changeName()
distantnative May 30, 2024
8a8c991
Resort view components
distantnative Jun 1, 2024
972ad11
Merge pull request #6463 from getkirby/refactor/login-components
bastianallgeier Jun 1, 2024
091ac5a
Merge pull request #6462 from getkirby/fix/6461-upload-dialog-allowed…
distantnative Jun 1, 2024
85bc2dc
Upgrade npm dependencies
distantnative Jun 1, 2024
5cb2698
Update PR template
distantnative Jun 1, 2024
1fac746
Additional updates
lukasbestle Jun 2, 2024
b9802fb
Update PULL_REQUEST_TEMPLATE.md
distantnative Jun 2, 2024
7a8c262
Apply suggestions from code review
distantnative Jun 2, 2024
75b4c82
Merge commit 'pullrequests/tobimori/patch-1' into develop-minor
bastianallgeier Jun 4, 2024
90b5d74
Merge pull request #6464 from getkirby/fix/pr-template
bastianallgeier Jun 4, 2024
a561f9a
Preflight for 4.3.0-rc.1
bastianallgeier Jun 4, 2024
55a3a97
Merge pull request #6470 from getkirby/release/4.3.0-rc.1
bastianallgeier Jun 4, 2024
ce27c9f
Preflight for 4.3.0
bastianallgeier Jun 13, 2024
77ee5d7
Update composer dependencies
afbora Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,45 @@
## This PR …
## Description
<!--
A clear and concise description of the PR.
Use this section for review hints, explanations or discussion points/todos.

Make sure to point your PR to the relevant develop branches, e.g.
`develop-patch`, `develop-minor` or `v5/develop`

How to contribute: https://contribute.getkirby.com
-->

### Summary of changes



### Reasoning



### Additional context



## Changelog
<!--
Add relevant release notes: Features, Enhancements, Fixes, Deprecated.
Reference issues from the `kirby` repo or ideas from `feedback.getkirby.com`.
Always mention whether your PR introduces breaking changes.

How to contribute: https://contribute.getkirby.com
-->

### Fixes



### Breaking changes



## Docs
<!--
Add any notes that help to document the feature/changes. Doesn't need
to be your best writing, just a few words and/or code snipptets.
to be your best writing, just a few words and/or code snippets.
-->


Expand All @@ -32,13 +48,11 @@ to be your best writing, just a few words and/or code snipptets.
<!--
If you can help to check off the following tasks, that'd be great.
If not, don't worry - we will take care of it.

More details: https://contribute.getkirby.com
-->

- [ ] In-code documentation (wherever needed)
- [ ] Unit tests for fixed bug/feature
- [ ] Tests and checks all pass
- [ ] Tests and CI checks all pass

### For review team
<!--
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The Kirby core",
"license": "proprietary",
"type": "kirby-cms",
"version": "4.2.0",
"version": "4.3.0",
"keywords": [
"kirby",
"cms",
Expand Down Expand Up @@ -37,7 +37,7 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"christian-riesen/base32": "1.6.0",
"claviska/simpleimage": "4.1.0",
"claviska/simpleimage": "4.2.0",
"composer/semver": "3.4.0",
"filp/whoops": "2.15.4",
"getkirby/composer-installer": "^1.2.1",
Expand All @@ -46,7 +46,7 @@
"phpmailer/phpmailer": "6.9.1",
"symfony/polyfill-intl-idn": "1.29.0",
"symfony/polyfill-mbstring": "1.29.0",
"symfony/yaml": "6.4.3"
"symfony/yaml": "6.4.8"
},
"replace": {
"symfony/polyfill-php72": "*"
Expand Down
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/areas/site/searches.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'text' => Escape::html($page->title()->value()),
'link' => $page->panel()->url(true),
'info' => Escape::html($page->id()),
'uuid' => $page->uuid()->toString(),
'uuid' => $page->uuid()?->toString(),
]),
'pagination' => $pages->pagination()->toArray()
];
Expand Down
1 change: 1 addition & 0 deletions config/areas/system/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'props' => [
'environment' => $environment,
'exceptions' => $kirby->option('debug') === true ? $exceptions : [],
'info' => $system->info(),
'plugins' => $plugins,
'security' => $security,
'urls' => [
Expand Down
2 changes: 1 addition & 1 deletion config/presets/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

if (empty($sidebar) === true) {
$props['fields'] = $props['fields'] ?? [];
$props['fields'] ??= [];

unset(
$props['files'],
Expand Down
2 changes: 1 addition & 1 deletion config/presets/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

// inject the global templates definition
if (empty($templates) === false) {
$props['templates'] = $props['templates'] ?? $templates;
$props['templates'] ??= $templates;
}

return array_replace_recursive($defaults, $props);
Expand Down
66 changes: 49 additions & 17 deletions config/sections/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,39 @@
return false;
}

if (in_array($this->status, ['draft', 'all']) === false) {
if ($this->isFull() === true) {
return false;
}

if ($this->isFull() === true) {
// form here on, we need to check with which status
// the pages are created and if the section can show
// these newly created pages

// if the section shows pages no matter what status they have,
// we can always show the add button
if ($this->status === 'all') {
return true;
}

// collect all statuses of the blueprints
// that are allowed to be created
$statuses = [];

foreach ($this->blueprintNames() as $blueprint) {
try {
$props = Blueprint::load('pages/' . $blueprint);
$statuses[] = $props['create']['status'] ?? 'draft';
} catch (Throwable) {
$statuses[] = 'draft'; // @codeCoverageIgnore
}
}

$statuses = array_unique($statuses);

// if there are multiple statuses or if the section is showing
// a different status than new pages would be created with,
// we cannot show the add button
if (count($statuses) > 1 || $this->status !== $statuses[0]) {
return false;
}

Expand All @@ -249,37 +277,41 @@
'methods' => [
'blueprints' => function () {
$blueprints = [];
$templates = empty($this->create) === false ? A::wrap($this->create) : $this->templates;

if (empty($templates) === true) {
$templates = $this->kirby()->blueprints();
}

// excludes ignored templates
if ($templatesIgnore = $this->templatesIgnore) {
$templates = array_diff($templates, $templatesIgnore);
}

// convert every template to a usable option array
// for the template select box
foreach ($templates as $template) {
foreach ($this->blueprintNames() as $blueprint) {
try {
$props = Blueprint::load('pages/' . $template);
$props = Blueprint::load('pages/' . $blueprint);

$blueprints[] = [
'name' => basename($props['name']),
'title' => $props['title'],
];
} catch (Throwable) {
$blueprints[] = [
'name' => basename($template),
'title' => ucfirst($template),
'name' => basename($blueprint),
'title' => ucfirst($blueprint),
];
}
}

return $blueprints;
}
},
'blueprintNames' => function () {
$blueprints = empty($this->create) === false ? A::wrap($this->create) : $this->templates;

if (empty($blueprints) === true) {
$blueprints = $this->kirby()->blueprints();
}

// excludes ignored templates
if ($templatesIgnore = $this->templatesIgnore) {
$blueprints = array_diff($blueprints, $templatesIgnore);
}

return $blueprints;
},
],
'toArray' => function () {
return [
Expand Down
12 changes: 8 additions & 4 deletions config/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
'caption',
'controls',
'class',
'disablepictureinpicture',
'height',
'loop',
'muted',
Expand Down Expand Up @@ -294,12 +295,15 @@

// don't use attributes that iframe doesn't support
if ($isProviderVideo === false) {
// converts tag attributes to supported formats (listed below) to output correct html
// booleans: autoplay, controls, loop, muted
// strings : poster, preload
// for ex : `autoplay` will not work if `false` is a `string` instead of a `boolean`
// convert tag attributes to supported formats (bool, string)
// to output correct html attributes
//
// for ex:
// `autoplay` will not work if `false` is a string
// instead of a boolean
$attrs['autoplay'] = $autoplay = Str::toType($tag->autoplay, 'bool');
$attrs['controls'] = Str::toType($tag->controls ?? true, 'bool');
$attrs['disablepictureinpicture'] = Str::toType($tag->disablepictureinpicture ?? false, 'bool');
$attrs['loop'] = Str::toType($tag->loop, 'bool');
$attrs['muted'] = Str::toType($tag->muted ?? $autoplay, 'bool');
$attrs['playsinline'] = Str::toType($tag->playsinline ?? $autoplay, 'bool');
Expand Down
Loading
Loading