14150 Commits

Author SHA1 Message Date
Josh
327b3dcd83
fix(content-manager): add memoization to params object to stop recursion (#18982) 2023-12-05 15:29:09 +00:00
markkaylor
f803c8a5b6
feat(content-releases): add delete release action endpoint (#18943) 2023-12-05 11:00:29 +01:00
Jen Tak
5fc763775e
Register logger middleware before errors middleware (#16921)
In the examples and project templates the "errors" middleware which turn
thrown errors into HTTP responses is registered before the "logger"
middleware. This causes any errors thrown in controllers to pierce
through the logger middleware resulting in these requests not being
logged.

Eg. when a controller throws a ValidationError the resulting HTTP 400
request is not logged at all.

Change the order of middleware registration so that the logger is
'above' the errors middleware and has a chance to log *all* requests.

Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
2023-12-05 09:28:41 +01:00
Alexandre Bodin
25f085aafc Merge branch 'v5/main' into v5/core-split 2023-12-04 21:49:23 -08:00
Josh
f1dd5cc8ee
chore(content-manager): convert the editview to typescript (#18948) 2023-12-04 16:00:50 +00:00
Ben Irvin
24dabd281e
chore: update knex to 3.0.1 (#18936) 2023-12-04 16:17:10 +01:00
markkaylor
76f8b2fb15
feat(content-releases): add endpoint to update a release action (#18946) 2023-12-04 14:14:00 +01:00
Simone
b4936e04a9
feat(content-releases): Edit Release (#18956)
* first draft implementation edit release

* add dialog unit test

* add permission to the edit button

* add permissions type and remove old unit test

* add createAction to the PermissionMap

* fix type errors

* fix unit test

* fix lint error

* fix review comments

* change state naming

* change dialog to modal
2023-12-04 13:58:29 +01:00
Ben Irvin
c38881e08d
chore: update typescript to 5.3.2 (#18938) 2023-12-04 11:47:05 +01:00
Fernando Chávez
9b4c03b10b
chore(content-releases): Add entries to content-releases' actions (#18918)
* chore(content-releases): add entries to content releases actions

* chore(content-releases): add entries relation to findMany content-release's actions

* chore(content-releases): improve findOne with actions code

* chore(Content-releases): remi feedback

* chore(content-releases): fix getReleaseActions response type

* chore(content-releases): change findOne and findActions endpoints

* chore(content-releases): fix error in release's tests

* chore(content-releases): use queryBuilder from strapi.db

* chore(content-releases): use queryBuilder from strapi.db
2023-12-04 10:10:51 +01:00
Bassel Kanso
d58362aec0 fix deep query populate issue on dynamic zone 2023-12-01 12:43:12 +02:00
Alexandre Bodin
b373446907 Merge branch 'v5/main' into v5/core-split 2023-12-01 10:29:58 +01:00
Alexandre Bodin
83daf0117c Merge branch 'develop' into v5/main 2023-12-01 10:29:48 +01:00
markkaylor
4f6722c6d4
feat(content-releases): add create release action to cm edit view (#18905) 2023-12-01 09:27:16 +01:00
Josh
3301d58a39
chore(deps): update DS to 1.13.2 (#18959)
* chore(deps): update DS to 1.13.2

* chore: update snapshots
2023-11-30 16:37:04 +00:00
Alexandre Bodin
61cd845498 Merge branch 'v5/main' into v5/core-split 2023-11-30 16:51:18 +01:00
Alexandre Bodin
e0de993d4a Merge branch 'develop' into v5/main 2023-11-30 16:42:36 +01:00
Alexandre Bodin
6b35da10af Merge branch 'main' into develop 2023-11-30 16:32:56 +01:00
Mark Kaylor
f486f51567 fix: update frontend snapshots after downgrade 2023-11-30 15:56:13 +01:00
Mark Kaylor
675d60f265 fix: downgrade @strapi/icons to match main 1.13.0 2023-11-30 14:16:07 +01:00
Josh
dfec2ca3fc
chore(i18n): convert middlewares to TS (#18957) 2023-11-30 11:58:42 +00:00
Simone
8145b7becc
feat(content-releases): Releases list page UI implementation (#18884)
* first draft implementation Releases page

* fix some comments

* refactor releases page and its logic

* add a more readable comment

* fix rtk transformResponse return type

* add unit test changing tab

* add unit test with mixed content

* fix type response error

* remove log

* fix review comments

* fix review comments

* reduce releases page unit test code

* test AddReleaseDialog

* remove useless mocked data and fix comments syntax

* refactor releases filters

* remove empty line

* add TODO
2023-11-30 12:22:27 +01:00
Alexandre Bodin
a4814d75e4 chore(core): split strapi/strapi & strapi/core 2023-11-30 12:18:04 +01:00
Mark Kaylor
b6dda1f6ae chore: update frontend snapshots 2023-11-30 12:07:39 +01:00
Mark Kaylor
97e854e902 Merge branch 'main' of github.com:strapi/strapi into releases/4.15.5 2023-11-30 11:08:02 +01:00
Mark Kaylor
dc96169c3f v4.15.5 2023-11-29 16:42:28 +01:00
Rémi de Juvigny
2611986c0d
fix(blocks): handle enter key on image (#18901)
* fix(blocks): handle enter key on image

* reuse mock schema image

* show image block focus

* remove created paragraph

* remove unused utils

* fix delete image when it's the only block

* fix images taller than needed
2023-11-29 16:23:21 +01:00
Rémi de Juvigny
a8393a3381
feat(blocks): add markdown snippets (#18922)
* wip

* handle snippets

* handle multiple snippets

* add snippet for image block

* add + snippet for list

* mark feedback

* add code block snippet
2023-11-29 14:14:47 +01:00
Rémi de Juvigny
adbd820884
feat(blocks): make it easier to exit code blocks (#18894)
* handle double enter on code blocks

* rename code translations

* allow forced line breaks

* mark feedback

* don't add paragraph when converting to code block
2023-11-29 11:19:25 +01:00
Sébastien Vanvelthem
520c59aa2c chore(lock): deduplicate dependencies
Co-Authored-By: Sébastien Vanvelthem <belgattitude@users.noreply.github.com>
2023-11-28 15:36:30 +01:00
Marc Roig
d4d47227a6
feat: Initialize Document Service (#18558)
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-11-28 12:01:27 +01:00
Josh
b7d336700e
chore(cm): convert crudReducer to TS (#18879)
Update packages/core/admin/admin/src/content-manager/components/CollectionTypeFormWrapper/index.jsx
2023-11-28 09:01:48 +00:00
Gustav Hansen
c9130a2ea3
chore(admin): convert token components to TS (#18907) 2023-11-27 21:08:40 +00:00
Rémi de Juvigny
87b413c0c2
chore(blocks): handle block conversion logic in the blocks store (#18840)
* chore: manage block conversion logic in blocks store

* fix heading conversion when inside list

* make handleConvert optional

* add comments to conversions file

* extract getAttributesToClear

* extract baseHandleConvert
2023-11-27 09:57:35 +01:00
Ben Irvin
498ecc1a26
feat: strapi.log default level 'info' (#18904) 2023-11-24 14:35:15 +01:00
Gustav Hansen
daf387268b chore(admin): convert transfer tokens to TS
Co-authored-by: Josh Ellis <josh.ellis@strapi.io>
2023-11-24 13:18:11 +01:00
Alexandre Bodin
9628e9d90f chore: remove ee direct imports 2023-11-24 09:33:00 +01:00
Rémi de Juvigny
8811cfafd2
fix(blocks): add modifiers to test provider (#18898) 2023-11-23 18:14:54 +01:00
Rémi de Juvigny
e19c0efd68
chore(blocks): pass modifiers via useBlocksEditorContext (#18802)
* move toolbar up one directory

* rename BlocksInput to BlocksContent

* rename BlocksEditor to BlocksInput

* rename parent dir to BlocksInput

* extract BlocksEditor component out of BlocksInput

* pass editor via useBlocksEditorContext hook

* rename Toolbar file to BlocksToolbar

* update test names

* assemble blocks store in context

* add basic unit tests for each block type

* test individual block logic

* simplify wrapper code

* delete useBlocksStore

* rename dir to Blocks

* fix build error

* use type guard for Link element

* pass modifiers via useBlocksEditorContext

* remove useBlocksStore
2023-11-23 17:10:59 +01:00
Alexandre Bodin
9f51230057 fix(content-type-builder): typings 2023-11-23 17:08:55 +01:00
Jamie Howard
52321fa7ad
(content-manager): types for field sizes service (#18888) 2023-11-23 12:45:10 +00:00
Alexandre Bodin
27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +01:00
markkaylor
9f5e68ce57
chore(content-releases): refactor rtk with type contracts (#18867) 2023-11-23 11:15:29 +01:00
Convly
fc55046abe Use a case insensitive lookup for admin.user.findOneByEmail 2023-11-23 10:54:39 +01:00
Josh
eb7b88426d
fix(pack-up): ensure we pass the tsconfig file name, not a path to it (#18875)
* fix(pack-up): ensure we pass the tsconfig file name, not a path to it

fix(admin): annotate return type on createBuildContext

fix(admin): ensure shared is a the base folder not importing from server

chore(pack-up): PRINT MOREEEE

fix(ctb): export required type

chore: refactor tsconfigs

* chore: pr amends
2023-11-23 09:16:25 +00:00
Jamie Howard
c6501d8941
fix(type): export JSONObject (#18870) 2023-11-23 09:54:03 +01:00
Alexandre Bodin
37fcc99be4 Merge branch 'main' into v5/main 2023-11-22 17:28:51 +01:00
Marc Roig
c970d7027e
Merge pull request #18860 from strapi/ts/content-manager-entity-manager
feat: type content manger entity manager service
2023-11-22 15:22:15 +01:00
Josh
e47841a710
chore(i18n): convert CM hooks to TS (#18861) 2023-11-22 11:36:57 +00:00
Jamie Howard
fc0ebf30f1
[content-manager] types for policies (#18846) 2023-11-22 09:45:34 +00:00