207 Commits

Author SHA1 Message Date
Simone
df8fc36161
chore: migrate media-library hooks to Typescript (#21554)
* chore: migrate to TS useConfig

* chore: migrate to TS useCropImg

* chore: migrate to TS useRemoveAsset

* chore: migrate to TS useEditFolder

* chore: migrate to TS useMediaLibraryPermissions

* chore: migrate to TS rename-keys

* chore: migrate to TS useFolderStructure

* chore: migrate to TS useBulkRemove

* chore: migrate to TS useModalQueryParams

* chore: migrate to TS useBulkMove

* chore: migrate to TS useAssets

* chore: migrate to TS useEditAsset

* chore: migrate to TS useFolder

* chore: migrate to TS useFolders

* chore: migrate to TS useUpload

* chore: fix review's comments

* chore: fix get call response type
2024-10-07 09:29:08 +02:00
Alexandre Bodin
0908fdc5e7 fix: uncheck files on Media Library 2024-08-26 19:40:00 +02:00
Josh
5ff7024fc8
chore: update DS to 2.0.0-beta.4 (#20301) 2024-05-20 10:42:44 +01:00
Bassel Kanso
833d0a7ccd chore: removing onUploadProgress from upload plugin 2024-05-02 13:32:54 +03:00
Bassel Kanso
8f75d1e78a chore: making upload work with fetchClient 2024-04-23 17:12:52 +03:00
Josh
e11b6f2e96
chore(helper-plugin)!: move RBAC / remove auth / remove usePersistentState (#19847)
* chore(helper-plugin)!: move useRBAC

* chore: get tests working

* chore!: remove auth

* chore!: remove usePersistentState

* fix: refactor building admin package so it shares modules with different entries

* fix: session vs local
2024-03-20 11:39:59 +00:00
Simone
e9eabddd69
chore(helper-plugin)!: move getFetchClient and useFetchClient (#19840)
* chore(helper-plugin)!: move useFetchClient and getFetchClient to the admin

* chore(helper-plugin)!: fix prettier errors

* chore(helper-plugin)!: remove useless functions
2024-03-19 15:37:20 +00:00
Simone
426ddd2ec2
chore(helper-plugin)!: remove useSelectionState (#19841) 2024-03-19 14:22:11 +00:00
Josh
b17a180f13
chore!(helper-plugin): remove useLockScroll / useClipboard / useFocusWhenNavigate / useQuery / useFocusInputField (#19835)
* chore!: remove useLockScroll & useClipboard

* chore!: remove useFocusWhenNavigate

* chore!: remove useQuery

* chore!: remove useFocusInputField

* chore!: move useQueryParams

* chore: fix tests

* chore: update copy

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* chore: pretty

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-03-19 09:56:07 +00:00
Josh
95674865d9
chore(helper-plugin)!: move Notifications & AppInfo to admin (#19831)
* chore(helper-plugin)!: move Notifications to admin

* chore(helper-plugin)!: move AppInfo to admin
2024-03-18 21:07:24 +00:00
Josh
5989f7ef55
chore(helper-plugin)!: move tracking feature (#19809) 2024-03-18 10:09:21 +00:00
Josh
f2e89269f9
chore!: move confirm dialog to admin package and refactor (#19782) 2024-03-15 15:33:24 +00:00
Josh
cc1043c512
feat: update to react-router-dom@6 (#19184) 2024-01-15 11:13:36 +00:00
TousifAhmed
3a1cb32f56
fix: upload replaced media file (#18301) 2023-10-05 17:07:35 +01:00
Josh
ddcbafe9d9
tests(upload): fix error logs in upload tests (#18261)
* chore: add test utils

* test(upload): fix useModalQueryParams

* test(upload): fix TableRows

* test(upload): fix useConfig test

* test(upload): fix useFolder tests

* test(upload): fix useFolders test

* test(upload): fix SettingsPage tests

* test(upload): fix UploadAssetDialog tests

* test(upload): fix CarouselAssets tests
2023-10-04 16:03:02 +01:00
Gustav Hansen
df872f2fd4 Chore: Drop getRequestUrl 2023-07-25 13:40:25 +02:00
Josh
96d8ebb0c8 fix: CM media-input browsing 2023-07-10 10:26:01 +01:00
Mark Kaylor
132fc9e4a9 Josh Gustav feedback 2023-07-06 14:48:24 +02:00
Mark Kaylor
1899ac4d42 Add params serializer 2023-07-06 14:48:21 +02:00
Josh
9bc4e05325
Merge pull request #17140 from strapi/fix/useRBAC-infinite-loop 2023-07-03 14:24:55 +01:00
Josh
239d832457 refactor: useAsset query to use folderPath 2023-06-30 08:45:49 +01:00
Josh
885aa13160 refactor: useRBAC hook to stop infinite loop
chore: add test setup to helper-plugin

test: add useRBAC suite

refactor: useRBAC hook to stop infinite loop

chore: shuffle around and add jsdocs
2023-06-29 11:56:36 +01:00
Gustav Hansen
528b451257 Chore: Move plugin permissions into constants 2023-06-20 14:18:34 +02:00
Gustav Hansen
dca5778d8e Chore: Apply eslint import sorting fix 2023-06-12 21:34:07 +02:00
Paul Tiedtke
301e0706b8 chore: upgrade libs to react 18 and fix tests
chore: update snapshots

chore: fix fe tests

chore: update snapshot

Revert "revert react18 (#16793)"

This reverts commit 141d3675ab2c9a8c16eff26406bebef50ecce4c5.
2023-05-22 15:33:31 +01:00
Josh
141d3675ab
revert react18 (#16793) 2023-05-22 12:23:24 +01:00
Josh
bdd0c462a1
chore: update to react18 (#16701)
Co-authored-by: Paul Tiedtke <PaulTiedtke@web.de>
2023-05-18 09:41:59 +01:00
Josh
5acae2e2a9 chore: remove tracking mocks 2023-05-05 18:47:48 +01:00
Josh
4134c0e33b refactor: colocate code in helper-plugin features for clearer view
refactor: move Notification logic into helper-plugin

refactor: wip

fix: typo

chore: fix tests

chore: ensure contexts are still exported

Update packages/core/helper-plugin/src/features/OverlayBlocker.js

Update packages/core/helper-plugin/src/features/AutoReloadOverlayBlocker.js

Co-Authored-By: Gustav Hansen <gustav.hansen@strapi.io>
2023-04-26 09:06:18 +01:00
Josh
e438557f17 fix: check if mime or ext are nullish and replace with empty strings 2023-03-07 11:46:03 +00:00
Josh
cf179e35d3
Merge pull request #15831 from strapi/fix/useConfig-returns-null 2023-02-21 09:05:46 +00:00
Josh
9e9547a64e fix: always return an object if data is falsey
test: add test for falsey value
2023-02-15 17:48:51 +00:00
Josh
6b17f8ad12 chore: convert all files to single imports of the DS & icons
chore: remove eslint rule

chore: update snapshots

chore: update snapshots

chore: add eslint rule to stop direct imports apart from v2
2023-02-15 17:23:59 +00:00
gitstart
dbd718e10c chore: resolves bug resulting form folder update
Co-authored-by: raph941 <raph941@gmail.com>
Co-authored-by: oxenprogrammer <emmy1000okello@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
2023-02-10 05:56:18 +00:00
Simone Taeggi
ab8ffd0686 replace axiosInstance in the useEditFolder hook to replace the api call with the useFetchClient post and put methods and update test 2023-01-26 15:16:24 +01:00
Simone Taeggi
0227276d32 replace axiosInstance in the useEditAsset hook to replace the api call with the useFetchClient post method 2023-01-26 14:53:45 +01:00
Simone Taeggi
97626c4dd4 replace axiosInstance in the useUpload hook to replace the api call with the useFetchClient post method 2023-01-26 13:27:34 +01:00
Simone Taeggi
da5c8f753f replace axiosInstance in the useFolderStructure hook to replace the api call with the useFetchClient get method and update test 2023-01-26 11:18:31 +01:00
Simone Taeggi
16fe20c6ad replace axiosInstance in the useFolder hook to replace the api call with the useFetchClient get method and update test 2023-01-26 10:39:57 +01:00
Simone Taeggi
c2e11e481e replace axiosInstance in the useFolders hook to replace the api call with the useFetchClient get method and update test 2023-01-26 10:26:45 +01:00
Simone Taeggi
d801ed12fe replace axiosInstance in the useConfig hook to replace the api call with the useFetchClient get and put methods and update test 2023-01-25 17:19:19 +01:00
Simone Taeggi
8f0366eac8 replace axiosInstance in the useBulkRemove hook to replace the api call with the useFetchClient get method and update test 2023-01-25 16:26:04 +01:00
Simone Taeggi
40dcc501d4 replace axiosInstance in the useBulkMove hook to replace the api call with the useFetchClient get method and update test 2023-01-25 15:50:29 +01:00
Simone Taeggi
803ff586ab replace axiosInstance in the useAssets hook to replace the api call with the useFetchClient get method 2023-01-25 15:28:28 +01:00
Gustav Hansen
85637195bb Chore: Upgrade axios to 1.2.1 2022-12-22 14:43:19 +01:00
Jamie Howard
d2abb0899a Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-19 09:47:05 +00:00
Julie Plantey
80626a65c8 fixed table displayed without assets or folders in BrowseStep + added a test case 2022-12-16 14:54:13 +01:00
Jamie Howard
12eb6ceb69 Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-12 10:07:23 +00:00
Jamie Howard
268efc629f chore(upload): review feedback 2022-12-12 10:05:22 +00:00
Gustav Hansen
a19579634c useEditAsset: Send folder.id instead of full folder object 2022-12-06 12:12:58 +01:00