3 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
Simone
38dcf9a2f0
chore: migrate media-library utils to Typescript (#21532)
* chore: migrate to TS typeFromMime

* chore: migrate to TS toSingularTypes

* chore: migrate to TS prefixPluginTranslations

* chore: migrate to TS prefixFileUrlWithBackendUrl

* chore: migrate to TS moveElement

* chore: migrate to TS getTrad

* chore: migrate to TS getFileExtension

* chore: migrate to TS containsAssetFilter

* chore: migrate to TS displayedFilters

* chore: migrate to TS downloadFile

* chore: remove findRecursiveFolderMetadatas because is unused

* chore: migrate to TS appendSearchParamsToUrl

* chore: migrate to TS formatBytes

* chore: migrate to TS formatDuration

* chore: migrate to TS urlYupSchema

* chore: migrate to TS urlsToAssets

* chore: migrate to TS rawFileToAsset

* chore: migrate to TS getFolderURL

* chore: migrate to TS getFolderParents

* chore: migrate to TS createAssetUrl

* chore: migrate to TS findRecursiveFolderByValue

* chore: migrate to TS getAllowedFiles

* chore: migrate to TS getBreadcrumbDataCM

* chore: migrate to TS normalizeAPIError

* chore: migrate to TS getAPIInnerErrors

* chore: migrate to TS getBreadcrumbDataML and change the utils imports

* chore: fix export from index

* chore: reduce the errors type definition

* chore: change Query type

* chore: change the way utils are exported in the index

* chore: reduce the code in the custom declaration type file
2024-10-04 16:57:43 +02:00
Simone
cefde6fa13
chore: migrate media-library define shared contracts (#21439)
* chore: migrate and create config files for the migration

* chore: migrate test utils to TS

* chore: fix the typo

* chore: fix eslint errors

* chore: define the shared contracts
2024-09-26 11:51:07 +02:00