Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge develop into v5/main #20126

Merged
merged 9 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const config = {
watch: process.env.TYPEDOC_WATCH,
},
],
[
'@cmfcmf/docusaurus-search-local',
{
indexBlog: false,
},
],
],
presets: [
[
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
]
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "1.1.0",
"@docusaurus/core": "3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "^3.0.0",
Expand Down
123 changes: 120 additions & 3 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ __metadata:
version: 8
cacheKey: 10

"@algolia/autocomplete-core@npm:1.17.0":
version: 1.17.0
resolution: "@algolia/autocomplete-core@npm:1.17.0"
dependencies:
"@algolia/autocomplete-plugin-algolia-insights": "npm:1.17.0"
"@algolia/autocomplete-shared": "npm:1.17.0"
checksum: 09b0beaf3e742db9f278d951a76a51ef328ac7545564d692d54c0d9e54600e1836a9f03281585bd3cc056c0afa8f9cb9936755aab6b7e46492d463b76f117410
languageName: node
linkType: hard

"@algolia/autocomplete-core@npm:1.9.3":
version: 1.9.3
resolution: "@algolia/autocomplete-core@npm:1.9.3"
Expand All @@ -15,6 +25,33 @@ __metadata:
languageName: node
linkType: hard

"@algolia/autocomplete-js@npm:^1.8.2":
version: 1.17.0
resolution: "@algolia/autocomplete-js@npm:1.17.0"
dependencies:
"@algolia/autocomplete-core": "npm:1.17.0"
"@algolia/autocomplete-preset-algolia": "npm:1.17.0"
"@algolia/autocomplete-shared": "npm:1.17.0"
htm: "npm:^3.1.1"
preact: "npm:^10.13.2"
peerDependencies:
"@algolia/client-search": ">= 4.5.1 < 6"
algoliasearch: ">= 4.9.1 < 6"
checksum: e40576eeaf245242d44453c7c1c4860a239ab7b85d8ab59b53fa8479e248dce8ecf9adc91162f2c7f0d37b2da0c123010efa6975714abd0f56dd7d7e99dab674
languageName: node
linkType: hard

"@algolia/autocomplete-plugin-algolia-insights@npm:1.17.0":
version: 1.17.0
resolution: "@algolia/autocomplete-plugin-algolia-insights@npm:1.17.0"
dependencies:
"@algolia/autocomplete-shared": "npm:1.17.0"
peerDependencies:
search-insights: ">= 1 < 3"
checksum: 99fb44f998acf340bac6ba039e434e925c24d20d3ebca462e8a0b3e8091da239b19a5a18be4e2abd9dae58398cfd6843f9f630e300a394abe292164bbfe0dee3
languageName: node
linkType: hard

"@algolia/autocomplete-plugin-algolia-insights@npm:1.9.3":
version: 1.9.3
resolution: "@algolia/autocomplete-plugin-algolia-insights@npm:1.9.3"
Expand All @@ -26,6 +63,18 @@ __metadata:
languageName: node
linkType: hard

"@algolia/autocomplete-preset-algolia@npm:1.17.0":
version: 1.17.0
resolution: "@algolia/autocomplete-preset-algolia@npm:1.17.0"
dependencies:
"@algolia/autocomplete-shared": "npm:1.17.0"
peerDependencies:
"@algolia/client-search": ">= 4.9.1 < 6"
algoliasearch: ">= 4.9.1 < 6"
checksum: 9d1b879d56f123b974a1aabfeedce7204ba1dec11894d6642f3282d127beac63607dcfe5c79ea2948c35683288f436f916215c3f08ec9cddd2c8d102107a2ed6
languageName: node
linkType: hard

"@algolia/autocomplete-preset-algolia@npm:1.9.3":
version: 1.9.3
resolution: "@algolia/autocomplete-preset-algolia@npm:1.9.3"
Expand All @@ -38,6 +87,16 @@ __metadata:
languageName: node
linkType: hard

"@algolia/autocomplete-shared@npm:1.17.0":
version: 1.17.0
resolution: "@algolia/autocomplete-shared@npm:1.17.0"
peerDependencies:
"@algolia/client-search": ">= 4.9.1 < 6"
algoliasearch: ">= 4.9.1 < 6"
checksum: 19d2937ece343c2ad99bb362a27ded5c08bde4b8b5eadc04d3de1371cb2bcee377f29f841abce9d4578160cb9e9406f6216cc06dad0128bff9d4b7115cffab9e
languageName: node
linkType: hard

"@algolia/autocomplete-shared@npm:1.9.3":
version: 1.9.3
resolution: "@algolia/autocomplete-shared@npm:1.9.3"
Expand All @@ -48,6 +107,13 @@ __metadata:
languageName: node
linkType: hard

"@algolia/autocomplete-theme-classic@npm:^1.8.2":
version: 1.17.0
resolution: "@algolia/autocomplete-theme-classic@npm:1.17.0"
checksum: 17f9617d7cb9587d668f17991c9749ec04fa561891181e64613805b9528c37309ddad3192fced2763284a80df960b85c4fe17d8ff42cbab88f6e555050f8a859
languageName: node
linkType: hard

"@algolia/cache-browser-local-storage@npm:4.23.2":
version: 4.23.2
resolution: "@algolia/cache-browser-local-storage@npm:4.23.2"
Expand Down Expand Up @@ -117,7 +183,7 @@ __metadata:
languageName: node
linkType: hard

"@algolia/client-search@npm:4.23.2":
"@algolia/client-search@npm:4.23.2, @algolia/client-search@npm:^4.12.0":
version: 4.23.2
resolution: "@algolia/client-search@npm:4.23.2"
dependencies:
Expand Down Expand Up @@ -2033,6 +2099,28 @@ __metadata:
languageName: node
linkType: hard

"@cmfcmf/docusaurus-search-local@npm:1.1.0":
version: 1.1.0
resolution: "@cmfcmf/docusaurus-search-local@npm:1.1.0"
dependencies:
"@algolia/autocomplete-js": "npm:^1.8.2"
"@algolia/autocomplete-theme-classic": "npm:^1.8.2"
"@algolia/client-search": "npm:^4.12.0"
algoliasearch: "npm:^4.12.0"
cheerio: "npm:^1.0.0-rc.9"
clsx: "npm:^1.1.1"
lunr-languages: "npm:^1.4.0"
mark.js: "npm:^8.11.1"
peerDependencies:
"@docusaurus/core": ^2.0.0
nodejieba: ^2.5.0
peerDependenciesMeta:
nodejieba:
optional: true
checksum: 5c5692ab133873930fa1c0db07b09a13dfc4c3d95908e506c3cd72746ceedaf97d6d1328044921abe90d377d6a90cb277328ca8639ef10556b0b58d48681c067
languageName: node
linkType: hard

"@colors/colors@npm:1.5.0":
version: 1.5.0
resolution: "@colors/colors@npm:1.5.0"
Expand Down Expand Up @@ -3914,7 +4002,7 @@ __metadata:
languageName: node
linkType: hard

"algoliasearch@npm:^4.18.0, algoliasearch@npm:^4.19.1":
"algoliasearch@npm:^4.12.0, algoliasearch@npm:^4.18.0, algoliasearch@npm:^4.19.1":
version: 4.23.2
resolution: "algoliasearch@npm:4.23.2"
dependencies:
Expand Down Expand Up @@ -4546,7 +4634,7 @@ __metadata:
languageName: node
linkType: hard

"cheerio@npm:^1.0.0-rc.12":
"cheerio@npm:^1.0.0-rc.12, cheerio@npm:^1.0.0-rc.9":
version: 1.0.0-rc.12
resolution: "cheerio@npm:1.0.0-rc.12"
dependencies:
Expand Down Expand Up @@ -5507,6 +5595,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "docs@workspace:."
dependencies:
"@cmfcmf/docusaurus-search-local": "npm:1.1.0"
"@docusaurus/core": "npm:3.1.1"
"@docusaurus/module-type-aliases": "npm:3.1.1"
"@docusaurus/preset-classic": "npm:3.1.1"
Expand Down Expand Up @@ -6833,6 +6922,13 @@ __metadata:
languageName: node
linkType: hard

"htm@npm:^3.1.1":
version: 3.1.1
resolution: "htm@npm:3.1.1"
checksum: cb862dc5c9eac532937af7a9e26edd1e0e7939fc78a06efde4ae10b3a145f9506e644ff084c871dd808c315342b56fd0baa174a2a2cdf6071a4130ee0abee9e0
languageName: node
linkType: hard

"html-entities@npm:^2.3.2":
version: 2.3.3
resolution: "html-entities@npm:2.3.3"
Expand Down Expand Up @@ -7900,6 +7996,13 @@ __metadata:
languageName: node
linkType: hard

"lunr-languages@npm:^1.4.0":
version: 1.14.0
resolution: "lunr-languages@npm:1.14.0"
checksum: bb17d7e481efcf262de930b2e0980e0b33790c80a0aec1aeb102f4a32ad4418971efeae2bb1b6841825c1b055fca68dea37aea871524e9d84a451a113076d933
languageName: node
linkType: hard

"lunr@npm:^2.3.9":
version: 2.3.9
resolution: "lunr@npm:2.3.9"
Expand Down Expand Up @@ -7931,6 +8034,13 @@ __metadata:
languageName: node
linkType: hard

"mark.js@npm:^8.11.1":
version: 8.11.1
resolution: "mark.js@npm:8.11.1"
checksum: 3b01b9ea4761f2104ab1fbe2cc917c0a9ca580f778f62edde7eb95c6322330cba0ddc45f8aa163ef5b0b3b3eeba20df683b42831fbe5e8429ff3b4b4cecfd28a
languageName: node
linkType: hard

"markdown-extensions@npm:^2.0.0":
version: 2.0.0
resolution: "markdown-extensions@npm:2.0.0"
Expand Down Expand Up @@ -10117,6 +10227,13 @@ __metadata:
languageName: node
linkType: hard

"preact@npm:^10.13.2":
version: 10.20.1
resolution: "preact@npm:10.20.1"
checksum: 894ac14b3ec6f8ca308b53fb14e12e57678248fd1faa24ae857f5e37d9c11b34833e6dd1ba8210a34de4d6d523462923b1f9c93d35ce433874affd056f2d0998
languageName: node
linkType: hard

"pretty-error@npm:^4.0.0":
version: 4.0.0
resolution: "pretty-error@npm:4.0.0"
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"scripts": {
"build": "nx run-many --target=build --nx-ignore-cycles",
"build:size": "cd examples/getstarted && yarn build",
"build:ts": "nx run-many --target=build:ts --nx-ignore-cycles",
"build:watch": "nx watch --all --nx-ignore-cycles -- nx run \\$NX_PROJECT_NAME:build --nx-ignore-cycles",
"clean": "nx run-many --target=clean --nx-ignore-cycles",
"commit": "commit",
"doc:api": "node scripts/open-api/serve.js",
Expand Down Expand Up @@ -70,11 +72,10 @@
"test:ts:packages": "nx run-many --target=test:ts --nx-ignore-cycles",
"test:unit": "jest --config jest.config.js",
"test:unit:all": "nx run-many --target=test:unit --nx-ignore-cycles",
"test:unit:watch": "run test:unit --watch",
"watch": "nx run-many --target=watch --nx-ignore-cycles"
"test:unit:watch": "run test:unit --watch"
},
"resolutions": {
"@strapi/design-system": "1.18.0-typescript.0",
"@strapi/design-system": "1.19.0-typescript.0",
"@types/koa": "2.13.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"@radix-ui/react-context": "1.0.1",
"@radix-ui/react-toolbar": "1.0.4",
"@reduxjs/toolkit": "1.9.7",
"@strapi/design-system": "1.17.0",
"@strapi/icons": "1.16.0",
"@strapi/design-system": "1.18.0",
"@strapi/icons": "1.18.0",
"@strapi/permissions": "5.0.0-beta.3",
"@strapi/provider-audit-logs-local": "5.0.0-beta.3",
"@strapi/types": "5.0.0-beta.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/content-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"@radix-ui/react-toolbar": "1.0.4",
"@reduxjs/toolkit": "1.9.7",
"@sindresorhus/slugify": "1.1.0",
"@strapi/design-system": "1.17.0",
"@strapi/icons": "1.16.0",
"@strapi/design-system": "1.18.0",
"@strapi/icons": "1.18.0",
"@strapi/types": "5.0.0-beta.3",
"@strapi/utils": "5.0.0-beta.3",
"axios": "1.6.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export const CMReleasesContainer = () => {
alignItems="start"
borderWidth="1px"
borderStyle="solid"
borderColor={getReleaseColorVariant(release.action.type, '200')}
borderColor={getReleaseColorVariant(release.actions[0].type, '200')}
overflow="hidden"
hasRadius
>
Expand All @@ -355,21 +355,21 @@ export const CMReleasesContainer = () => {
paddingBottom={3}
paddingLeft={4}
paddingRight={4}
background={getReleaseColorVariant(release.action.type, '100')}
background={getReleaseColorVariant(release.actions[0].type, '100')}
width="100%"
>
<Typography
fontSize={1}
variant="pi"
textColor={getReleaseColorVariant(release.action.type, '600')}
textColor={getReleaseColorVariant(release.actions[0].type, '600')}
>
{formatMessage(
{
id: 'content-releases.content-manager-edit-view.list-releases.title',
defaultMessage:
'{isPublish, select, true {Will be published in} other {Will be unpublished in}}',
},
{ isPublish: release.action.type === 'publish' }
{ isPublish: release.actions[0].type === 'publish' }
)}
</Typography>
</Box>
Expand Down Expand Up @@ -409,7 +409,7 @@ export const CMReleasesContainer = () => {
<ReleaseActionMenu.EditReleaseItem releaseId={release.id} />
<ReleaseActionMenu.DeleteReleaseActionItem
releaseId={release.id}
actionId={release.action.id}
actionId={release.actions[0].id}
/>
</ReleaseActionMenu.Root>
) : null}
Expand Down