Skip to content

Commit f1f4cf4

Browse files
committed
Merge branch 'main' into improve-charts
# Conflicts: # package-lock.json
2 parents 1a65063 + 3721a1e commit f1f4cf4

File tree

197 files changed

+5801
-3993
lines changed

Some content is hidden

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

197 files changed

+5801
-3993
lines changed

.github/workflows/junie.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Junie
2+
run-name: Junie run ${{ inputs.run_id }}
3+
4+
permissions:
5+
pull-requests: write
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
run_id:
11+
description: "id of workflow process"
12+
required: true
13+
workflow_params:
14+
description: "stringified params"
15+
required: true
16+
17+
jobs:
18+
call-workflow-passing-data:
19+
uses: jetbrains-junie/junie-workflows/.github/workflows/ej-issue.yml@main
20+
with:
21+
workflow_params: ${{ inputs.workflow_params }}

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
env:
2323
LARAVEL: 11.*
2424
TESTBENCH: 9.*
25+
- php: 8.5
26+
env:
27+
LARAVEL: 11.*
28+
TESTBENCH: 9.*
2529
- php: 8.3
2630
env:
2731
LARAVEL: 12.*
@@ -30,6 +34,10 @@ jobs:
3034
env:
3135
LARAVEL: 12.*
3236
TESTBENCH: 10.*
37+
- php: 8.5
38+
env:
39+
LARAVEL: 12.*
40+
TESTBENCH: 10.*
3341

3442
env: ${{ matrix.env }}
3543
steps:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"php": "8.3.*|8.4.*",
16+
"php": "8.3.*|8.4.*|8.5.*",
1717
"ext-dom": "*",
1818
"ext-intl": "*",
1919
"ext-json": "*",
@@ -39,9 +39,9 @@
3939
"mockery/mockery": "^1.5.0",
4040
"nunomaduro/collision": "^8.0",
4141
"orchestra/testbench": "^9.0|^10.0",
42-
"pestphp/pest": "^3.0",
43-
"pestphp/pest-plugin-laravel": "^3.0",
44-
"phpunit/phpunit": "^11.0",
42+
"pestphp/pest": "^3.0|^4.0",
43+
"pestphp/pest-plugin-laravel": "^3.0|^4.0",
44+
"phpunit/phpunit": "^11.0|^12.0",
4545
"spatie/laravel-ray": "^1.26",
4646
"spatie/laravel-typescript-transformer": "^2.3",
4747
"spatie/typescript-transformer": "^2.2"
@@ -62,7 +62,7 @@
6262
},
6363
"scripts": {
6464
"test": "vendor/bin/pest --parallel",
65-
"typescript:generate": "php demo/artisan ziggy:generate --types-only; php demo/artisan typescript:transform",
65+
"typescript:generate": "php demo/artisan sharp:typescript-generate",
6666
"post-autoload-dump": [
6767
"git config core.hooksPath scripts/hooks"
6868
]

demo/app/Sharp/Posts/PostForm.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use App\Models\Post;
77
use App\Models\User;
88
use App\Sharp\Utils\Embeds\AuthorEmbed;
9-
use App\Sharp\Utils\Embeds\CodeEmbed;
109
use App\Sharp\Utils\Embeds\RelatedPostEmbed;
1110
use App\Sharp\Utils\Embeds\TableOfContentsEmbed;
1211
use Code16\Sharp\Form\Eloquent\Uploads\Transformers\SharpUploadModelFormAttributeTransformer;
@@ -59,14 +58,13 @@ public function buildFormFields(FieldsContainer $formFields): void
5958
SharpFormEditorField::SEPARATOR,
6059
SharpFormEditorField::IFRAME,
6160
SharpFormEditorField::UPLOAD,
61+
SharpFormEditorField::CODE_BLOCK,
6262
AuthorEmbed::class,
63-
CodeEmbed::class,
6463
])
6564
->allowEmbeds([
6665
RelatedPostEmbed::class,
6766
AuthorEmbed::class,
6867
TableOfContentsEmbed::class,
69-
CodeEmbed::class,
7068
])
7169
->allowUploads(
7270
SharpFormEditorUpload::make()

demo/app/Sharp/Posts/PostShow.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use App\Sharp\Posts\Commands\EvaluateDraftPostWizardCommand;
1111
use App\Sharp\Posts\Commands\PreviewPostCommand;
1212
use App\Sharp\Utils\Embeds\AuthorEmbed;
13-
use App\Sharp\Utils\Embeds\CodeEmbed;
1413
use App\Sharp\Utils\Embeds\RelatedPostEmbed;
1514
use App\Sharp\Utils\Embeds\TableOfContentsEmbed;
1615
use App\Sharp\Utils\Filters\CategoryFilter;
@@ -41,7 +40,6 @@ protected function buildShowFields(FieldsContainer $showFields): void
4140
->allowEmbeds([
4241
RelatedPostEmbed::class,
4342
AuthorEmbed::class,
44-
CodeEmbed::class,
4543
TableOfContentsEmbed::class,
4644
])
4745
->collapseToWordCount(40)
@@ -157,7 +155,9 @@ public function find(mixed $id): array
157155
->renderAsText($instance->author->name)
158156
: null
159157
)
160-
->setCustomTransformer('categories', new SharpTagsTransformer('name')->setFilterLink(PostEntity::class, CategoryFilter::class))
158+
->setCustomTransformer('categories', (new SharpTagsTransformer('name'))
159+
->setFilterLink(PostEntity::class, CategoryFilter::class)
160+
)
161161
->setCustomTransformer('cover', new SharpUploadModelThumbnailUrlTransformer(500))
162162
->setCustomTransformer(
163163
'attachments[document]',

demo/app/Sharp/Utils/Embeds/CodeEmbed.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

demo/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bacon/bacon-qr-code": "~2.0",
77
"blade-ui-kit/blade-icons": "^1.6",
88
"code16/laravel-content-renderer": "^1.2",
9-
"enshrined/svg-sanitize": "^0.21.0",
9+
"enshrined/svg-sanitize": "^0.22.0",
1010
"guzzlehttp/guzzle": "^7.2",
1111
"inertiajs/inertia-laravel": "^2.0",
1212
"intervention/image": "^3.4",
@@ -27,7 +27,7 @@
2727
"laravel/sail": "^1.0.1",
2828
"mockery/mockery": "^1.4.4",
2929
"nunomaduro/collision": "^8.6",
30-
"phpunit/phpunit": "^11.0",
30+
"phpunit/phpunit": "^12.0",
3131
"spatie/laravel-ignition": "^2.0",
3232
"spatie/laravel-ray": "^1.29",
3333
"spatie/laravel-typescript-transformer": "^2.3"

0 commit comments

Comments
 (0)