2029 Commits

Author SHA1 Message Date
Josh
f379a8cd7a
chore: make vite the default bundler for the admin (#19283) 2024-01-23 11:21:20 +00:00
Ben Irvin
00d88d8130
Merge branch 'v5/main' into chore/refactor-env-to-config 2024-01-18 11:49:34 +01:00
Josh
b9aef55175
fix(cm): create entries (#19254)
* test(e2e): add better e2e tests for EditView CM

* fix(cm): handle that the `id` might be `create`

* docs: update e2e content-type docs
2024-01-18 10:22:06 +00:00
Ben Irvin
9469280178 enhancement: refactor env-only values into configuration 2024-01-17 15:59:25 +01:00
Josh
316470cdf8 Merge branch 'develop' into v5/main 2024-01-16 17:46:26 +00:00
Josh
e1ede8c55a
feat(strapi): add experimental pluginlink command to CLI (#19143)
* feat(strapi): add plugin:link-watch command to CLI

* chore: skip assertion of strapi project if its the plugin:init command

* fix: add yalc

* fix: add yalc files/folders to ignore list to avoid restarting strapi when using

* chore: don't use run-action on plugin:init

* chore: add yarn dlx command to yarn suggestion
2024-01-11 16:00:54 +00:00
Josh
f324494fe9 Merge branch 'develop' into v5/main 2024-01-10 15:58:45 +00:00
Josh
09b9d36b22 Merge branch 'main' into develop 2024-01-10 14:37:01 +00:00
Alexandre Bodin
e3a8922499 docs: update contributor doc for command and add missing plugin info 2024-01-10 10:39:37 +01:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Josh
22f3123e94
refactor(admin): add auth provider & move to use redux-toolkit-query (#19062)
* feat(admin): add Auth feature

* refactor: authentication to use redux-toolkit

* chore(admin): convert admin data-fetching to use redux-toolkit-query

* chore: add docs

* fix: default logo would not show on login page

* fix: app flashes on logout

* fix: logout should work across browsers
2024-01-02 17:01:58 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +00:00
Josh
f38a1037bd
feat(strapi): add experimental plugin:verify command (#19041) 2023-12-18 09:37:23 +00:00
Madhuri Sandbhor
17801215c6
Feat(blocks): move blocks (#18852)
* feat: updated useDragAndDrop hook to enable DND for blocks where path is not a number but number[], wrapped renderElement with Dnd component to have ability to move blocks around in editor

* fix: useDragandDrop hook updated to accept number[] for moving heirarchy of nodes, cmd/ctrl + shift + up/down arrow to move blocks around using keyboard, set live text on moving blocks for accessibility

* fix: when node is dragged downwards inside list convert it to list-item

* fix: index type updated

* style: margin added to preview block as droppable area needs some height to drop the item

* refactor: updated context, code optimisation, added necessary comments

* docs: updated use-drag-and-drop hook doc

* fix: type NonSelectorBlock

* Revert "fix: type NonSelectorBlock"

This reverts commit c3cb3c15442ba0008c650cbe38e993b0aa44817c.

* fix: block value type

* fix: type of onMoveItem() in useKeyboardDragAndDrop

* fix: selection issue resolved, ondragstart styling updated, grab cursor added back, missing comments added

* update: VisuallyHidden with aria-hidden attr added

* fix: minor fix

* update: link block dropped from dnd, test cases updated

* fix: if list node is empty after dragging remove it, drag handle aligned at the start

* update: link is inline block so skip wrapping dnd component

* Update: comment

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>

* fix: types updated, disabled state managed for drag item

* update: IconButton is used for drag handler, refered getAttributesToClear from utils

* update: on drop blocks are moved, updated useDragAndDrop hook and related changes, instead of blue line showing border box around drop target for now

* update: canDrag, canDrop options removed, as its not required for onDropItem()

* fix: dragging is enabled only on drag button

* fix: quote block padding and margin reduced

* update: useDragAndDrop hook doc

* update: useDragAndDrop hook doc with onDropItem usage

* update: drop placeholder added

* fix: missing condition check added

* update: useDragAndDrop hook doc

* update: useDragAndDrop and useKeyboardDragAndDrop hook converted to TS, styling changes related to list and quote

* fix: types updated for useDragAndDrop hook, tooltip disabled for drag button

* fix: mock event typecasted as its not possible to add all required props for type event

* fix: deleted useDragAndDrop js file

* fix: drag handle is made visible on hover, hide on selection change

* fix: history undo

* fix: dragging block into list-item, drop item at right position

* fix: placeholder margin adjusted for list items

* fix: cloned drag item extracted

* fix: dragging list-item out of block downward

* chore: refactor dnd hook to use generics (#18994)

* fix: required block types exported, manual id creation replaced with useId

* update: drag handle top margin added for few headings

* fix: extended useDropAndDropOptions callback types, comments updated

* fix: drag handle top margin added for all required blocks, selection bug fixed

* fix: reordering between different list-items

---------

Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-12-12 15:51:37 +01:00
Josh
46e6ffbb44
feat(strapi): add experimental plugin init command (#18970) 2023-12-11 09:53:59 +00:00
Fernando Chávez
35f56a0444
feat(core): add feature flags (#18871)
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-12-08 09:19:31 +01:00
Fernando Chávez
1cab7003f9
feat(content-releases): publish a release (#18973)
* feat(content-releases): publish a release

* feat(content-releases): publish is enabled if you have releases publish permissions

* chore(content-releases): Mark's feedback

* Update packages/core/content-releases/server/src/services/release.ts

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2023-12-07 09:35:57 +01:00
markkaylor
f803c8a5b6
feat(content-releases): add delete release action endpoint (#18943) 2023-12-05 11:00:29 +01:00
markkaylor
76f8b2fb15
feat(content-releases): add endpoint to update a release action (#18946) 2023-12-04 14:14:00 +01:00
Alexandre Bodin
27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +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
Fernando Chávez
1efe5dcdd1
feature(content-releases): Add update release service/endpoint (#18829)
* feature(content-releases): Add update release service/endpoint

* chore(Content-releases): create update release contract

* chore(content-releases): Add right type to params id
2023-11-21 13:06:24 +01:00
markkaylor
30e8a6321d
feat(content-releases): add findOne endpoint (#18821) 2023-11-21 09:18:12 +01:00
Josh
a549feb253
chore: pretty codebase (#18835) 2023-11-17 14:48:05 +00:00
markkaylor
dda47a7a76
chore(docs): initialize contributor docs for content releases (#18777) 2023-11-16 15:22:02 +01:00
Marc-Roig
9e388d8484
Merge branch 'main' into v5/main 2023-11-14 10:14:39 +01:00
Josh
175b72af9d
fix(admin): admin build errors (#18764)
* fix(admin): import & pass user customisations for admin panel

* fix(admin): modules should be resolved with module paths not system paths

* fix(admin): ensure webpack config is a type of function before calling, warn otherwise

* fix: convert the pluginPath to a system path before trying to resolve relative

* chore: update documentation
2023-11-13 10:21:24 +00:00
Marc-Roig
8aca4eae6a
Merge branch 'main' into v5/main 2023-11-09 12:13:13 +01:00
Josh
116339ad86
refactor: admin build pipeline (#18539)
* chore(admin): refactor admin develop/build pipeline

chore: remove `webpackChunkName` comments

chore: reuse admin tsconfig where possible

chore: add .strapi to gitignore

chore(admin): pack-up

feat(admin): inject commands into strapi from admin for building

feat(admin): move watch command to admin

chore: keep backward compat API available

Update packages/core/admin/_internal/cli/index.ts

docs(admin): document the build & develop process and pipeline

test(admin): fix StrapiApp tests

chore: fix build

* Update skipped_tests.yml

* test(e2e): fix e2e setup

feat: add dependency installation

fix: mjs webpack resolution

* chore: fix server exports

* fix: typescript project type generation

* fix: development watch mode

* fix: connect to hot middleware – anywhere

* Update packages/core/admin/_internal/node/core/monorepo.ts

Co-authored-by: Marc Roig <marc12info@gmail.com>

* fix(admin): theme toggle type export

* chore: fixes

* chore: pr amends

Co-Authored-By: Ben Irvin <ben@innerdvations.com>

---------

Co-authored-by: Marc Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-30 11:36:16 +00:00
Alexandre BODIN
5ae0dc40cd feat!(content-manager): remove the ability to disable draft&publish (#18488)
* feat!: remove draft and publish triggering

* chore: update snapshots and tests

* test: adapt tests
2023-10-24 17:18:59 +01:00
Alexandre Bodin
0b5590b0eb chore(core/strapi): extend container in strapi class 2023-10-24 17:18:59 +01:00
Alexandre Bodin
dc73e9580f docs(core/database): add documentation & diagram 2023-10-24 17:18:59 +01:00
Alexandre Bodin
f0c3683482 feat(database): add internal migrations 2023-10-24 17:18:59 +01:00
Sora Morimoto
a8cb502824
chore(deps): update yarn to v4.0.0 (#18530)
* Update Yarn to v4.0.0

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* `yarn format`

Signed-off-by: Sora Morimoto <sora@morimoto.io>

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2023-10-24 12:43:07 +01:00
Maxime Castres
dfc4d17eb4
feat(admin): add promoting EE features in CE projects by default (#18179)
* Add: promoting EE features in CE projects by default

* Add: pages

* Update: first review modifications

* Update: integrate locked features pages

* Update: rename pages + update links to the website

* Update: append config to default files

* Update: implement flags logic

* Update: implement promoteEnterpriseFeatures flag

* Update: revamp variable + add doc

* Update: add documentation

* Delete: ContentTypes.d.ts file
2023-10-23 17:20:59 +01:00
Josh
5978c13ec4
feat(pack-up): add the ability to pass plugins via the config (#18486)
* feat(pack-up): add the ability to pass plugins via the config

* refactor: make plugins a func or array
2023-10-18 12:01:17 +01:00
Josh
5d12a35806
feat(strapi): add plugin:watch command (#18462) 2023-10-18 11:23:59 +01:00
Ben Irvin
79f24e9f2b update pack-up node versions 2023-10-17 16:38:34 +02:00
Josh
e5078d5f4d
feat: add pack-up package (#18233)
* feat(pack-up): add build command (#18058)

* chore: lint order of imports

* feat(pack-up): add watch command (#18121)

* feat: add watch command

feat: add ts watch task

* chore: pr amends

* fix: promptUser linter

* chore: remove \n with os.EOL

* feat(pack-up): add init command (#18133)

* feat(pack-up): add build command (#18058)

* feat(pack-up): add watch command (#18121)

* feat: add watch command

feat: add ts watch task

* chore: pr amends

* fix: promptUser linter

* chore: remove \n with os.EOL

* feat: add init command

fix: build

feat: add default template and tests

* chore: pr amends

* Update packages/utils/pack-up/tests/console.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* chore: re-add mock

* chore: fix tsconfig

* chore: fix inquirer types due to rxjs inclusion

* Update packages/utils/pack-up/src/node/templates/internal/files/typescript.ts

* chore: fix inquirer types

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* feat(pack-up): add check command (#18183)

* feat: add check command

* chore: reintroduce CLI tests

* fix: add build command to `prepublishOnly`

* docs(pack-up): add readme and contributor docs (#18237)

* chore: update README

* docs(pack-up): add contributor documentation

* chore: update overview doc to be clearer

* fix(pack-up): init command (#18245)

* fix: init command bugs

* fix: node tests

* fix: template exports ordering & file extensions

* test(upload): double timeout on UploadAssetDialog test

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-05 09:38:29 +01:00
Jamie Howard
cca4181f28 chore(docs): RBAC for stages in content manager docs 2023-09-14 09:10:12 +02:00
Jamie Howard
33d090f98d chore(docs): extend contributor docs by RBAC for stages backend 2023-09-14 09:10:12 +02:00
Gustav Hansen
f385aa6c8c chore(docs): extend contributor docs by RBAC for stages 2023-09-14 09:10:12 +02:00
Gustav Hansen
0064623cff
Merge branch 'main' into feature/rw-stage-rbac 2023-09-06 08:21:02 +02:00
Josh
9756cafa00
feat(experimental): add plugin:build command (#17747)
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2023-09-05 10:25:14 +01:00
Gustav Hansen
b6b5cfc8a4 Merge branch 'main' into feature/rw-stage-rbac 2023-08-30 12:46:54 +02:00
Marc Roig
84c0b9f710
Merge pull request #17699 from strapi/feature/stage-rbac-partial-permission-updates 2023-08-30 09:41:01 +02:00
Ben Irvin
716e78bbc6
Merge pull request #17639 from strapi/fix/sanitization-throw-instead-of-filter 2023-08-25 14:22:08 +02:00
Josh
d2491f8cdf
docs: add fe coding guidelines (#17739) 2023-08-25 09:33:49 +01:00
Ben Irvin
aedf994e20
Merge branch 'main' into fix/sanitization-throw-instead-of-filter 2023-08-24 14:35:58 +02:00
Alexandre Bodin
60f5155c4f Merge branch 'main' into releases/4.12.6 2023-08-23 15:55:24 +02:00