Skip to content

Commit e8f030d

Browse files
committed
chore(strapi): update strapi versions and enable beta media library
1 parent 39d8c3f commit e8f030d

8 files changed

Lines changed: 1643 additions & 2106 deletions

File tree

apps/strapi/.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ JWT_SECRET=ShuOcfjTi/RwcchWEIKYKA==
2727
# Also used to build the admin SSO callback URL (<APP_URL>/admin/connect/google).
2828
APP_URL=http://localhost:1337
2929

30+
# ----- Future flags -----
31+
32+
# New Media Library UI (beta). "true" => enabled, else legacy UI. Requires restart.
33+
STRAPI_FUTURE_BETA_MEDIA_LIBRARY=true
34+
3035
# ----- Admin SSO (Google) -----
3136

3237
# Google OAuth client credentials for admin-panel Single Sign-On (Enterprise).

apps/strapi/config/features.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default ({ env }) => ({
2+
future: {
3+
// New Media Library UI (beta, Strapi >= 5.52.2). Set to false and restart
4+
// to return to the legacy UI — no assets, folders or settings are lost.
5+
betaMediaLibrary: env.bool("STRAPI_FUTURE_BETA_MEDIA_LIBRARY", false),
6+
},
7+
})

apps/strapi/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"@strapi-community/plugin-rest-cache": "^5.0.1",
3535
"@strapi-community/plugin-seo": "^2.1.1",
3636
"@strapi-community/provider-rest-cache-memory": "^5.0.0",
37-
"@strapi/database": "5.48.1",
38-
"@strapi/design-system": "2.2.0",
39-
"@strapi/plugin-color-picker": "5.48.1",
40-
"@strapi/plugin-sentry": "5.48.1",
41-
"@strapi/plugin-users-permissions": "5.48.1",
42-
"@strapi/strapi": "5.48.1",
43-
"@strapi/utils": "5.48.1",
37+
"@strapi/database": "5.52.2",
38+
"@strapi/design-system": "2.2.4",
39+
"@strapi/plugin-color-picker": "5.52.2",
40+
"@strapi/plugin-sentry": "5.52.2",
41+
"@strapi/plugin-users-permissions": "5.52.2",
42+
"@strapi/strapi": "5.52.2",
43+
"@strapi/utils": "5.52.2",
4444
"jsonwebtoken": "9.0.3",
4545
"lodash": "catalog:",
4646
"passport-google-oauth2": "^0.2.0",

apps/strapi/types/generated/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ export interface UtilitiesTooltip extends Struct.ComponentSchema {
17261726
}
17271727

17281728
declare module "@strapi/strapi" {
1729-
export module Public {
1729+
export namespace Public {
17301730
export interface ComponentSchemas {
17311731
"blog.callout": BlogCallout
17321732
"blog.editors-picks": BlogEditorsPicks

apps/strapi/types/generated/contentTypes.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export interface AdminSession extends Struct.CollectionTypeSchema {
249249
locale: Schema.Attribute.String & Schema.Attribute.Private
250250
localizations: Schema.Attribute.Relation<"oneToMany", "admin::session"> &
251251
Schema.Attribute.Private
252+
metadata: Schema.Attribute.JSON & Schema.Attribute.Private
252253
origin: Schema.Attribute.String &
253254
Schema.Attribute.Required &
254255
Schema.Attribute.Private
@@ -431,6 +432,8 @@ export interface AdminUser extends Struct.CollectionTypeSchema {
431432
publishedAt: Schema.Attribute.DateTime
432433
registrationToken: Schema.Attribute.String & Schema.Attribute.Private
433434
resetPasswordToken: Schema.Attribute.String & Schema.Attribute.Private
435+
resetPasswordTokenExpiresAt: Schema.Attribute.DateTime &
436+
Schema.Attribute.Private
434437
roles: Schema.Attribute.Relation<"manyToMany", "admin::role"> &
435438
Schema.Attribute.Private
436439
updatedAt: Schema.Attribute.DateTime
@@ -2198,7 +2201,7 @@ export interface PluginUsersPermissionsUser
21982201
}
21992202

22002203
declare module "@strapi/strapi" {
2201-
export module Public {
2204+
export namespace Public {
22022205
export interface ContentTypeSchemas {
22032206
"admin::api-token": AdminApiToken
22042207
"admin::api-token-permission": AdminApiTokenPermission

packages/strapi-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"sync-types": "if [ -L ./generated ]; then echo 'generated is symlinked; skipping sync'; else mkdir -p ./generated && cp -R ../../apps/strapi/types/generated/. ./generated; fi"
2323
},
2424
"devDependencies": {
25-
"@strapi/strapi": "5.48.1"
25+
"@strapi/strapi": "5.52.2"
2626
}
2727
}

pnpm-lock.yaml

Lines changed: 1617 additions & 2095 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ packages:
44
- qa/**
55

66
catalog:
7-
'@strapi/strapi': 5.48.1
7+
'@strapi/strapi': 5.52.2
88
'@tailwindcss/postcss': ^4.3.1
99
'@types/node': ^24.13.2
1010
class-variance-authority: ^0.7.1

0 commit comments

Comments
 (0)