@strapi/admin 4.7.1 → 4.7.2-exp.175f7ac70ee76d6c825e4429e15fc85ee78d23bb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +4 -4
  2. package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +2 -2
  3. package/admin/src/components/GuidedTour/Homepage/index.js +3 -3
  4. package/admin/src/components/GuidedTour/Modal/components/Content.js +35 -23
  5. package/admin/src/components/GuidedTour/Modal/components/Modal.js +6 -4
  6. package/admin/src/components/LeftMenu/index.js +3 -3
  7. package/admin/src/components/Notifications/index.js +6 -4
  8. package/admin/src/components/UpgradePlanModal/index.js +6 -7
  9. package/admin/src/content-manager/components/ComponentInitializer/index.js +3 -3
  10. package/admin/src/content-manager/components/DragLayer/RelationDragPreview.js +3 -3
  11. package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +3 -11
  12. package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +3 -11
  13. package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +4 -4
  14. package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +3 -4
  15. package/admin/src/content-manager/components/DynamicZone/index.js +3 -3
  16. package/admin/src/content-manager/components/FieldComponent/index.js +3 -3
  17. package/admin/src/content-manager/components/NonRepeatableComponent/index.js +3 -3
  18. package/admin/src/content-manager/components/RelationInput/components/Relation.js +9 -3
  19. package/admin/src/content-manager/components/RelationInput/components/RelationItem.js +4 -4
  20. package/admin/src/content-manager/components/RepeatableComponent/components/Component.js +12 -6
  21. package/admin/src/content-manager/components/Wysiwyg/Editor.js +2 -2
  22. package/admin/src/content-manager/components/Wysiwyg/index.js +5 -5
  23. package/admin/src/content-manager/components/Wysiwyg/utils/continueList.js +3 -3
  24. package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +5 -5
  25. package/admin/src/content-manager/pages/EditSettingsView/components/DynamicZoneList.js +3 -3
  26. package/admin/src/content-manager/pages/EditSettingsView/index.js +3 -3
  27. package/admin/src/content-manager/pages/EditView/Header/index.js +6 -7
  28. package/admin/src/content-manager/pages/EditView/Information/index.js +9 -9
  29. package/admin/src/content-manager/pages/EditView/index.js +9 -9
  30. package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +3 -3
  31. package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +3 -3
  32. package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +5 -5
  33. package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +3 -11
  34. package/admin/src/pages/Admin/Onboarding/index.js +11 -5
  35. package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +3 -3
  36. package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +3 -12
  37. package/admin/src/pages/AuthPage/components/Register/index.js +2 -3
  38. package/admin/src/pages/AuthPage/components/ResetPassword/index.js +3 -3
  39. package/admin/src/pages/HomePage/ContentBlocks.js +3 -3
  40. package/admin/src/pages/HomePage/HomeHeader.js +3 -7
  41. package/admin/src/pages/HomePage/SocialLinks.js +5 -5
  42. package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +3 -3
  43. package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +3 -3
  44. package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +3 -3
  45. package/admin/src/pages/ProfilePage/index.js +11 -11
  46. package/admin/src/pages/SettingsPage/components/Tokens/FormHead/index.js +3 -3
  47. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +5 -5
  48. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +5 -5
  49. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +3 -3
  50. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +3 -3
  51. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +3 -3
  52. package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +2 -3
  53. package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +7 -6
  54. package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +4 -6
  55. package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +2 -3
  56. package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +5 -5
  57. package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +3 -3
  58. package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +3 -3
  59. package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +7 -7
  60. package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +5 -5
  61. package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +3 -3
  62. package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +2 -3
  63. package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +9 -9
  64. package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +7 -7
  65. package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +158 -165
  66. package/admin/src/pages/UseCasePage/index.js +2 -3
  67. package/admin/src/translations/zh-Hans.json +31 -1
  68. package/build/{8252.ad0478da.chunk.js → 3094.1cac9087.chunk.js} +1 -1
  69. package/build/{4049.16583eee.chunk.js → 4049.64715f20.chunk.js} +1 -1
  70. package/build/4649.daa290f6.chunk.js +30 -0
  71. package/build/7259.63e91b59.chunk.js +1 -0
  72. package/build/Admin-authenticatedApp.25bdcdc0.chunk.js +79 -0
  73. package/build/Admin_homePage.1411fb7c.chunk.js +68 -0
  74. package/build/{Admin_marketplace.a8ea585f.chunk.js → Admin_marketplace.0f6c8ee2.chunk.js} +4 -4
  75. package/build/Admin_profilePage.d2a8f9ab.chunk.js +15 -0
  76. package/build/{Admin_settingsPage.f6d02df6.chunk.js → Admin_settingsPage.6814a96e.chunk.js} +17 -18
  77. package/build/admin-app.d9d96db4.chunk.js +112 -0
  78. package/build/admin-edit-roles-page.bf130aaf.chunk.js +1 -0
  79. package/build/{admin-edit-users.f06c4a53.chunk.js → admin-edit-users.48031e30.chunk.js} +2 -2
  80. package/build/{admin-users.085fd03f.chunk.js → admin-users.77b4188a.chunk.js} +3 -3
  81. package/build/{content-manager.6ed87531.chunk.js → content-manager.d792c194.chunk.js} +40 -40
  82. package/build/{content-type-builder-list-view.c2f917b6.chunk.js → content-type-builder-list-view.cf38fe2f.chunk.js} +9 -9
  83. package/build/content-type-builder-translation-zh-Hans-json.415577fb.chunk.js +1 -0
  84. package/build/content-type-builder.cdd117c3.chunk.js +126 -0
  85. package/build/email-settings-page.4bdbef9a.chunk.js +3 -0
  86. package/build/{i18n-settings-page.c7bc29fc.chunk.js → i18n-settings-page.2bb5be96.chunk.js} +1 -1
  87. package/build/index.html +1 -1
  88. package/build/main.64fe0c37.js +3928 -0
  89. package/build/{runtime~main.f7bcdaa0.js → runtime~main.122b5a09.js} +1 -1
  90. package/build/sso-settings-page.5a8588ef.chunk.js +1 -0
  91. package/build/upload-settings.0200561d.chunk.js +1 -0
  92. package/build/upload-translation-zh-Hans-json.db163b6b.chunk.js +1 -0
  93. package/build/upload.c7da1611.chunk.js +13 -0
  94. package/build/{users-advanced-settings-page.677e1973.chunk.js → users-advanced-settings-page.c0cae03a.chunk.js} +1 -1
  95. package/build/users-providers-settings-page.5f86e45c.chunk.js +1 -0
  96. package/build/users-roles-settings-page.b02986df.chunk.js +30 -0
  97. package/build/webhook-edit-page.a2a2b7bb.chunk.js +23 -0
  98. package/build/webhook-list-page.029957a4.chunk.js +1 -0
  99. package/build/zh-Hans-json.993d085f.chunk.js +1 -0
  100. package/ee/admin/pages/AuthPage/components/Login/index.js +3 -3
  101. package/ee/admin/pages/AuthPage/components/Providers/index.js +3 -3
  102. package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +3 -3
  103. package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +6 -7
  104. package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +11 -3
  105. package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +3 -3
  106. package/package.json +13 -12
  107. package/server/content-types/User.js +4 -0
  108. package/server/content-types/api-token.js +1 -0
  109. package/server/controllers/user.js +7 -1
  110. package/server/services/permission/permissions-manager/index.js +9 -5
  111. package/server/services/permission/permissions-manager/sanitize.js +101 -4
  112. package/build/4649.ffa2f59a.chunk.js +0 -30
  113. package/build/7259.cd2f7bad.chunk.js +0 -1
  114. package/build/Admin-authenticatedApp.09978a81.chunk.js +0 -79
  115. package/build/Admin_homePage.cec3f510.chunk.js +0 -70
  116. package/build/Admin_profilePage.b27e40f6.chunk.js +0 -15
  117. package/build/admin-app.fdab907e.chunk.js +0 -112
  118. package/build/admin-edit-roles-page.fd041d89.chunk.js +0 -1
  119. package/build/content-type-builder-translation-zh-Hans-json.52a30266.chunk.js +0 -1
  120. package/build/content-type-builder.b7fb1e65.chunk.js +0 -126
  121. package/build/email-settings-page.884cfb8b.chunk.js +0 -3
  122. package/build/main.3d8a17d5.js +0 -3930
  123. package/build/sso-settings-page.82d84043.chunk.js +0 -1
  124. package/build/upload-settings.c18b010f.chunk.js +0 -1
  125. package/build/upload-translation-zh-Hans-json.3da5cf56.chunk.js +0 -1
  126. package/build/upload.0876ab69.chunk.js +0 -13
  127. package/build/users-providers-settings-page.87a9c77d.chunk.js +0 -1
  128. package/build/users-roles-settings-page.79c19845.chunk.js +0 -30
  129. package/build/webhook-edit-page.cfbdd3fd.chunk.js +0 -23
  130. package/build/webhook-list-page.3daa4fe2.chunk.js +0 -1
  131. package/build/zh-Hans-json.6e26e359.chunk.js +0 -1
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import styled from 'styled-components';
5
5
  import { Formik } from 'formik';
6
6
  import { Form, Link } from '@strapi/helper-plugin';
7
- import { Box, Stack, Main, Flex, Button, TextInput, Typography } from '@strapi/design-system';
7
+ import { Box, Main, Flex, Button, TextInput, Typography } from '@strapi/design-system';
8
8
  import { EyeStriked, Eye } from '@strapi/icons';
9
9
  import UnauthenticatedLayout, {
10
10
  Column,
@@ -65,7 +65,7 @@ const ForgotPassword = ({ onSubmit, schema }) => {
65
65
  )}
66
66
  </Column>
67
67
 
68
- <Stack spacing={6}>
68
+ <Flex direction="column" alignItems="stretch" gap={6}>
69
69
  <PasswordInput
70
70
  name="password"
71
71
  onChange={handleChange}
@@ -157,7 +157,7 @@ const ForgotPassword = ({ onSubmit, schema }) => {
157
157
  defaultMessage: 'Change password',
158
158
  })}
159
159
  </Button>
160
- </Stack>
160
+ </Flex>
161
161
  </Form>
162
162
  )}
163
163
  </Formik>
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import styled from 'styled-components';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { ContentBox, useTracking } from '@strapi/helper-plugin';
5
- import { Stack } from '@strapi/design-system';
5
+ import { Flex } from '@strapi/design-system';
6
6
  import { InformationSquare, CodeSquare, PlaySquare, FeatherSquare } from '@strapi/icons';
7
7
  import CloudBox from './CloudBox';
8
8
 
@@ -19,7 +19,7 @@ const ContentBlocks = () => {
19
19
  };
20
20
 
21
21
  return (
22
- <Stack spacing={5}>
22
+ <Flex direction="column" alignItems="stretch" gap={5}>
23
23
  <CloudBox />
24
24
  <BlockLink
25
25
  href="https://strapi.io/resource-center"
@@ -97,7 +97,7 @@ const ContentBlocks = () => {
97
97
  iconBackground="alternative100"
98
98
  />
99
99
  </BlockLink>
100
- </Stack>
100
+ </Flex>
101
101
  );
102
102
  };
103
103
 
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import styled from 'styled-components';
3
3
  import PropTypes from 'prop-types';
4
4
  import { useIntl } from 'react-intl';
5
- import { Typography, Stack, Box, Button } from '@strapi/design-system';
5
+ import { Typography, Box, Button, Flex } from '@strapi/design-system';
6
6
  import { Link } from '@strapi/design-system/v2';
7
7
  import { ArrowRight } from '@strapi/icons';
8
8
 
@@ -10,17 +10,13 @@ const WordWrap = styled(Typography)`
10
10
  word-break: break-word;
11
11
  `;
12
12
 
13
- const StackCustom = styled(Stack)`
14
- align-items: flex-start;
15
- `;
16
-
17
13
  const HomeHeader = ({ hasCreatedContentType, onCreateCT }) => {
18
14
  const { formatMessage } = useIntl();
19
15
 
20
16
  return (
21
17
  <div>
22
18
  <Box paddingLeft={6} paddingBottom={10}>
23
- <StackCustom spacing={5}>
19
+ <Flex direction="column" alignItems="flex-start" gap={5}>
24
20
  <Typography as="h1" variant="alpha">
25
21
  {hasCreatedContentType
26
22
  ? formatMessage({
@@ -60,7 +56,7 @@ const HomeHeader = ({ hasCreatedContentType, onCreateCT }) => {
60
56
  })}
61
57
  </Button>
62
58
  )}
63
- </StackCustom>
59
+ </Flex>
64
60
  </Box>
65
61
  </div>
66
62
  );
@@ -7,7 +7,7 @@ import React from 'react';
7
7
  import styled from 'styled-components';
8
8
  import { useIntl } from 'react-intl';
9
9
  import { useAppInfos } from '@strapi/helper-plugin';
10
- import { Typography, Box, Stack, Grid, GridItem } from '@strapi/design-system';
10
+ import { Typography, Box, Flex, Grid, GridItem } from '@strapi/design-system';
11
11
  import { Link, LinkButton } from '@strapi/design-system/v2';
12
12
  import { ExternalLink, Github, Discord, Reddit, Strapi, Twitter, Discourse } from '@strapi/icons';
13
13
 
@@ -160,8 +160,8 @@ const SocialLinks = () => {
160
160
  shadow="tableShadow"
161
161
  >
162
162
  <Box paddingBottom={7}>
163
- <Stack spacing={5}>
164
- <Stack spacing={3}>
163
+ <Flex direction="column" alignItems="stretch" gap={5}>
164
+ <Flex direction="column" alignItems="stretch" gap={3}>
165
165
  <Typography variant="delta" as="h2" id="join-the-community">
166
166
  {formatMessage({
167
167
  id: 'app.components.HomePage.community',
@@ -175,14 +175,14 @@ const SocialLinks = () => {
175
175
  'Discuss with team members, contributors and developers on different channels',
176
176
  })}
177
177
  </Typography>
178
- </Stack>
178
+ </Flex>
179
179
  <Link href="https://feedback.strapi.io/" isExternal endIcon={<ExternalLink />}>
180
180
  {formatMessage({
181
181
  id: 'app.components.HomePage.roadmap',
182
182
  defaultMessage: 'See our road map',
183
183
  })}
184
184
  </Link>
185
- </Stack>
185
+ </Flex>
186
186
  </Box>
187
187
  <GridGap>
188
188
  {socialLinksExtended.map(({ icon, link, name }) => {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import styled from 'styled-components';
4
4
  import { useIntl } from 'react-intl';
5
- import { Typography, Icon, Divider, Stack } from '@strapi/design-system';
5
+ import { Typography, Icon, Divider, Flex } from '@strapi/design-system';
6
6
  import { Github, Download, Star } from '@strapi/icons';
7
7
  import { pxToRem } from '@strapi/helper-plugin';
8
8
 
@@ -15,7 +15,7 @@ const PackageStats = ({ githubStars, npmDownloads, npmPackageType }) => {
15
15
  const { formatMessage } = useIntl();
16
16
 
17
17
  return (
18
- <Stack horizontal spacing={1}>
18
+ <Flex gap={1}>
19
19
  {!!githubStars && (
20
20
  <>
21
21
  <Icon as={Github} height={pxToRem(12)} width={pxToRem(12)} aria-hidden />
@@ -56,7 +56,7 @@ const PackageStats = ({ githubStars, npmDownloads, npmPackageType }) => {
56
56
  {npmDownloads}
57
57
  </Typography>
58
58
  </p>
59
- </Stack>
59
+ </Flex>
60
60
  );
61
61
  };
62
62
 
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { useIntl } from 'react-intl';
4
4
  import styled from 'styled-components';
5
5
  import pluralize from 'pluralize';
6
- import { Box, Stack, Typography, Flex, Icon, Tooltip } from '@strapi/design-system';
6
+ import { Box, Typography, Flex, Icon, Tooltip } from '@strapi/design-system';
7
7
  import { LinkButton } from '@strapi/design-system/v2';
8
8
  import { ExternalLink, CheckCircle } from '@strapi/icons';
9
9
  import { useTracking } from '@strapi/helper-plugin';
@@ -117,7 +117,7 @@ const NpmPackageCard = ({
117
117
  </Box>
118
118
  </Box>
119
119
 
120
- <Stack horizontal spacing={2} style={{ alignSelf: 'flex-end' }} paddingTop={6}>
120
+ <Flex gap={2} style={{ alignSelf: 'flex-end' }} paddingTop={6}>
121
121
  <LinkButton
122
122
  size="S"
123
123
  href={npmPackageHref}
@@ -146,7 +146,7 @@ const NpmPackageCard = ({
146
146
  strapiPeerDepVersion={attributes.strapiVersion}
147
147
  pluginName={attributes.name}
148
148
  />
149
- </Stack>
149
+ </Flex>
150
150
  </Flex>
151
151
  );
152
152
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Box, Popover, Stack, FocusTrap } from '@strapi/design-system';
3
+ import { Box, Popover, Flex, FocusTrap } from '@strapi/design-system';
4
4
  import { useIntl } from 'react-intl';
5
5
  import FilterSelect from './FilterSelect';
6
6
 
@@ -19,7 +19,7 @@ const FiltersPopover = ({
19
19
  return (
20
20
  <Popover source={source} padding={3} spacing={4} onBlur={() => {}}>
21
21
  <FocusTrap onEscape={onToggle}>
22
- <Stack spacing={1}>
22
+ <Flex direction="column" alignItems="stretch" gap={1}>
23
23
  <Box>
24
24
  <FilterSelect
25
25
  message={formatMessage({
@@ -73,7 +73,7 @@ const FiltersPopover = ({
73
73
  />
74
74
  </Box>
75
75
  )}
76
- </Stack>
76
+ </Flex>
77
77
  </FocusTrap>
78
78
  </Popover>
79
79
  );
@@ -26,7 +26,7 @@ import {
26
26
  Button,
27
27
  Grid,
28
28
  GridItem,
29
- Stack,
29
+ Flex,
30
30
  useNotifyAT,
31
31
  Select,
32
32
  Option,
@@ -208,7 +208,7 @@ const ProfilePage = () => {
208
208
  />
209
209
  <Box paddingBottom={10}>
210
210
  <ContentLayout>
211
- <Stack spacing={6}>
211
+ <Flex direction="column" alignItems="stretch" gap={6}>
212
212
  <Box
213
213
  background="neutral0"
214
214
  hasRadius
@@ -218,7 +218,7 @@ const ProfilePage = () => {
218
218
  paddingLeft={7}
219
219
  paddingRight={7}
220
220
  >
221
- <Stack spacing={4}>
221
+ <Flex direction="column" alignItems="stretch" gap={4}>
222
222
  <Typography variant="delta" as="h2">
223
223
  {formatMessage({
224
224
  id: 'global.profile',
@@ -278,7 +278,7 @@ const ProfilePage = () => {
278
278
  />
279
279
  </GridItem>
280
280
  </Grid>
281
- </Stack>
281
+ </Flex>
282
282
  </Box>
283
283
  <Box
284
284
  background="neutral0"
@@ -289,7 +289,7 @@ const ProfilePage = () => {
289
289
  paddingLeft={7}
290
290
  paddingRight={7}
291
291
  >
292
- <Stack spacing={4}>
292
+ <Flex direction="column" alignItems="stretch" gap={4}>
293
293
  <Typography variant="delta" as="h2">
294
294
  {formatMessage({
295
295
  id: 'global.change-password',
@@ -427,7 +427,7 @@ const ProfilePage = () => {
427
427
  />
428
428
  </GridItem>
429
429
  </Grid>
430
- </Stack>
430
+ </Flex>
431
431
  </Box>
432
432
  <Box
433
433
  background="neutral0"
@@ -438,8 +438,8 @@ const ProfilePage = () => {
438
438
  paddingLeft={7}
439
439
  paddingRight={7}
440
440
  >
441
- <Stack spacing={4}>
442
- <Stack spacing={1}>
441
+ <Flex direction="column" alignItems="stretch" gap={4}>
442
+ <Flex direction="column" alignItems="stretch" gap={1}>
443
443
  <Typography variant="delta" as="h2">
444
444
  {formatMessage({
445
445
  id: 'Settings.profile.form.section.experience.title',
@@ -469,7 +469,7 @@ const ProfilePage = () => {
469
469
  }
470
470
  )}
471
471
  </Typography>
472
- </Stack>
472
+ </Flex>
473
473
  <Grid gap={5}>
474
474
  <GridItem s={12} col={6}>
475
475
  <Select
@@ -553,9 +553,9 @@ const ProfilePage = () => {
553
553
  </Select>
554
554
  </GridItem>
555
555
  </Grid>
556
- </Stack>
556
+ </Flex>
557
557
  </Box>
558
- </Stack>
558
+ </Flex>
559
559
  </ContentLayout>
560
560
  </Box>
561
561
  </Form>
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
3
3
  import PropTypes from 'prop-types';
4
4
  import { Link } from '@strapi/helper-plugin';
5
5
  import { ArrowLeft, Check } from '@strapi/icons';
6
- import { Button, HeaderLayout, Stack } from '@strapi/design-system';
6
+ import { Button, HeaderLayout, Flex } from '@strapi/design-system';
7
7
  import Regenerate from '../Regenerate';
8
8
 
9
9
  const FormHead = ({
@@ -29,7 +29,7 @@ const FormHead = ({
29
29
  title={token?.name || formatMessage(title)}
30
30
  primaryAction={
31
31
  canEditInputs ? (
32
- <Stack horizontal spacing={2}>
32
+ <Flex gap={2}>
33
33
  {canRegenerate && token?.id && (
34
34
  <Regenerate
35
35
  backUrl={regenerateUrl}
@@ -49,7 +49,7 @@ const FormHead = ({
49
49
  defaultMessage: 'Save',
50
50
  })}
51
51
  </Button>
52
- </Stack>
52
+ </Flex>
53
53
  ) : (
54
54
  canRegenerate &&
55
55
  token?.id && (
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { Typography, Stack, GridItem } from '@strapi/design-system';
3
+ import { Typography, Flex, GridItem } from '@strapi/design-system';
4
4
  import BoundRoute from '../BoundRoute';
5
5
  import { useApiTokenPermissionsContext } from '../../../../../../../contexts/ApiTokenPermissions';
6
6
 
@@ -22,16 +22,16 @@ const ActionBoundRoutes = () => {
22
22
  style={{ minHeight: '100%' }}
23
23
  >
24
24
  {selectedAction ? (
25
- <Stack spacing={2}>
25
+ <Flex direction="column" alignItems="stretch" gap={2}>
26
26
  {routes[actionSection]?.map((route) => {
27
27
  return route.config.auth?.scope?.includes(selectedAction) ||
28
28
  route.handler === selectedAction ? (
29
29
  <BoundRoute key={route.handler} route={route} />
30
30
  ) : null;
31
31
  })}
32
- </Stack>
32
+ </Flex>
33
33
  ) : (
34
- <Stack spacing={2}>
34
+ <Flex direction="column" alignItems="stretch" gap={2}>
35
35
  <Typography variant="delta" as="h3">
36
36
  {formatMessage({
37
37
  id: 'Settings.apiTokens.createPage.permissions.header.title',
@@ -45,7 +45,7 @@ const ActionBoundRoutes = () => {
45
45
  "Select the application's actions or the plugin's actions and click on the cog icon to display the bound route",
46
46
  })}
47
47
  </Typography>
48
- </Stack>
48
+ </Flex>
49
49
  )}
50
50
  </GridItem>
51
51
  );
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { Stack, Box, Typography } from '@strapi/design-system';
3
+ import { Flex, Box, Typography } from '@strapi/design-system';
4
4
  import map from 'lodash/map';
5
5
  import tail from 'lodash/tail';
6
6
  import { useIntl } from 'react-intl';
@@ -21,7 +21,7 @@ function BoundRoute({ route }) {
21
21
  const colors = getMethodColor(route.method);
22
22
 
23
23
  return (
24
- <Stack spacing={2}>
24
+ <Flex direction="column" alignItems="stretch" gap={2}>
25
25
  <Typography variant="delta" as="h3">
26
26
  {formatMessage({
27
27
  id: 'Settings.apiTokens.createPage.BoundRoute.title',
@@ -33,7 +33,7 @@ function BoundRoute({ route }) {
33
33
  .{action}
34
34
  </Typography>
35
35
  </Typography>
36
- <Stack horizontal hasRadius background="neutral0" borderColor="neutral200" spacing={0}>
36
+ <Flex hasRadius background="neutral0" borderColor="neutral200" gap={0}>
37
37
  <MethodBox background={colors.background} borderColor={colors.border} padding={2}>
38
38
  <Typography fontWeight="bold" textColor={colors.text}>
39
39
  {method}
@@ -46,8 +46,8 @@ function BoundRoute({ route }) {
46
46
  </Typography>
47
47
  ))}
48
48
  </Box>
49
- </Stack>
50
- </Stack>
49
+ </Flex>
50
+ </Flex>
51
51
  );
52
52
  }
53
53
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
3
  import PropTypes from 'prop-types';
4
- import { Box, Grid, GridItem, Stack, Typography } from '@strapi/design-system';
4
+ import { Box, Grid, GridItem, Flex, Typography } from '@strapi/design-system';
5
5
  import LifeSpanInput from '../../../../../components/Tokens/LifeSpanInput';
6
6
  import TokenName from '../../../../../components/Tokens/TokenName';
7
7
  import TokenDescription from '../../../../../components/Tokens/TokenDescription';
@@ -68,7 +68,7 @@ const FormApiTokenContainer = ({
68
68
  paddingLeft={7}
69
69
  paddingRight={7}
70
70
  >
71
- <Stack spacing={4}>
71
+ <Flex direction="column" alignItems="stretch" gap={4}>
72
72
  <Typography variant="delta" as="h2">
73
73
  {formatMessage({
74
74
  id: 'global.details',
@@ -119,7 +119,7 @@ const FormApiTokenContainer = ({
119
119
  />
120
120
  </GridItem>
121
121
  </Grid>
122
- </Stack>
122
+ </Flex>
123
123
  </Box>
124
124
  );
125
125
  };
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { Typography, Stack, Grid, GridItem } from '@strapi/design-system';
3
+ import { Typography, Flex, Grid, GridItem } from '@strapi/design-system';
4
4
  import ContentTypesSection from '../ContenTypesSection';
5
5
  import ActionBoundRoutes from '../ActionBoundRoutes';
6
6
  import { useApiTokenPermissionsContext } from '../../../../../../../contexts/ApiTokenPermissions';
@@ -14,7 +14,7 @@ const Permissions = ({ ...props }) => {
14
14
  return (
15
15
  <Grid gap={0} shadow="filterShadow" hasRadius background="neutral0">
16
16
  <GridItem col={7} paddingTop={6} paddingBottom={6} paddingLeft={7} paddingRight={7}>
17
- <Stack spacing={2}>
17
+ <Flex direction="column" alignItems="stretch" gap={2}>
18
18
  <Typography variant="delta" as="h2">
19
19
  {formatMessage({
20
20
  id: 'Settings.apiTokens.createPage.permissions.title',
@@ -27,7 +27,7 @@ const Permissions = ({ ...props }) => {
27
27
  defaultMessage: 'Only actions bound by a route are listed below.',
28
28
  })}
29
29
  </Typography>
30
- </Stack>
30
+ </Flex>
31
31
  {data?.permissions && <ContentTypesSection section={data?.permissions} {...props} />}
32
32
  </GridItem>
33
33
  <ActionBoundRoutes />
@@ -11,7 +11,7 @@ import {
11
11
  useRBAC,
12
12
  useFetchClient,
13
13
  } from '@strapi/helper-plugin';
14
- import { Main, ContentLayout, Stack } from '@strapi/design-system';
14
+ import { Main, ContentLayout, Flex } from '@strapi/design-system';
15
15
  import { Formik } from 'formik';
16
16
  import { useRouteMatch, useHistory } from 'react-router-dom';
17
17
  import { useQuery } from 'react-query';
@@ -302,7 +302,7 @@ const ApiTokenCreateView = () => {
302
302
  />
303
303
 
304
304
  <ContentLayout>
305
- <Stack spacing={6}>
305
+ <Flex direction="column" alignItems="stretch" gap={6}>
306
306
  {Boolean(apiToken?.name) && (
307
307
  <TokenBox token={apiToken?.accessKey} tokenType={API_TOKEN_TYPE} />
308
308
  )}
@@ -323,7 +323,7 @@ const ApiTokenCreateView = () => {
323
323
  values?.type === 'full-access'
324
324
  }
325
325
  />
326
- </Stack>
326
+ </Flex>
327
327
  </ContentLayout>
328
328
  </Form>
329
329
  );
@@ -4,7 +4,6 @@ import { useIntl } from 'react-intl';
4
4
  import styled from 'styled-components';
5
5
  import {
6
6
  Box,
7
- Stack,
8
7
  Flex,
9
8
  Icon,
10
9
  Typography,
@@ -81,7 +80,7 @@ const FromComputerForm = ({ setLocalImage, goTo, next, onClose }) => {
81
80
  <Box paddingLeft={8} paddingRight={8} paddingTop={6} paddingBottom={6}>
82
81
  <Field name="logo-upload" error={fileError}>
83
82
  <label htmlFor="logo-upload">
84
- <Stack spacing={2}>
83
+ <Flex direction="column" alignItems="stretch" gap={2}>
85
84
  <Flex
86
85
  paddingTop={9}
87
86
  paddingBottom={7}
@@ -147,7 +146,7 @@ const FromComputerForm = ({ setLocalImage, goTo, next, onClose }) => {
147
146
  </Box>
148
147
  </Flex>
149
148
  <FieldError />
150
- </Stack>
149
+ </Flex>
151
150
  </label>
152
151
  </Field>
153
152
  </Box>
@@ -19,7 +19,6 @@ import {
19
19
  Layout,
20
20
  Link,
21
21
  Main,
22
- Stack,
23
22
  Typography,
24
23
  } from '@strapi/design-system';
25
24
  import { ExternalLink, Check } from '@strapi/icons';
@@ -114,9 +113,11 @@ const ApplicationInfosPage = () => {
114
113
  }
115
114
  />
116
115
  <ContentLayout>
117
- <Stack spacing={6}>
118
- <Stack
119
- spacing={4}
116
+ <Flex direction="column" alignItems="stretch" gap={6}>
117
+ <Flex
118
+ direction="column"
119
+ alignItems="stretch"
120
+ gap={4}
120
121
  hasRadius
121
122
  background="neutral0"
122
123
  shadow="tableShadow"
@@ -198,7 +199,7 @@ const ApplicationInfosPage = () => {
198
199
  </GridItem>
199
200
  <AdminSeatInfo />
200
201
  </Grid>
201
- </Stack>
202
+ </Flex>
202
203
  {canRead && data && (
203
204
  <CustomizationInfos
204
205
  canUpdate={canUpdate}
@@ -206,7 +207,7 @@ const ApplicationInfosPage = () => {
206
207
  projectSettingsStored={data}
207
208
  />
208
209
  )}
209
- </Stack>
210
+ </Flex>
210
211
  </ContentLayout>
211
212
  </form>
212
213
  </Main>
@@ -1,6 +1,6 @@
1
1
  import React, { memo, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { BaseCheckbox, Box, Stack, Typography } from '@strapi/design-system';
3
+ import { BaseCheckbox, Box, Flex, Typography } from '@strapi/design-system';
4
4
  import styled from 'styled-components';
5
5
  import get from 'lodash/get';
6
6
  import IS_DISABLED from 'ee_else_ce/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/utils/constants';
@@ -9,9 +9,7 @@ import { usePermissionsDataManager } from '../../../../../../../hooks';
9
9
  import { cellWidth, firstRowWidth } from '../Permissions/utils/constants';
10
10
  import { findDisplayedActions, getCheckboxesState } from './utils';
11
11
 
12
- const CenteredStack = styled(Stack)`
13
- align-items: center;
14
- justify-content: center;
12
+ const CenteredStack = styled(Flex)`
15
13
  width: ${cellWidth};
16
14
  flex-shrink: 0;
17
15
  `;
@@ -30,7 +28,7 @@ const GlobalActions = ({ actions, isFormDisabled, kind }) => {
30
28
 
31
29
  return (
32
30
  <Box paddingBottom={4} paddingTop={6} style={{ paddingLeft: firstRowWidth }}>
33
- <Stack horizontal spacing={0}>
31
+ <Flex alignItems="center" justifyContent="center" gap={0}>
34
32
  {displayedActions.map(({ label, actionId }) => {
35
33
  return (
36
34
  <CenteredStack key={actionId} spacing={3}>
@@ -64,7 +62,7 @@ const GlobalActions = ({ actions, isFormDisabled, kind }) => {
64
62
  </CenteredStack>
65
63
  );
66
64
  })}
67
- </Stack>
65
+ </Flex>
68
66
  </Box>
69
67
  );
70
68
  };
@@ -4,7 +4,6 @@ import {
4
4
  Grid,
5
5
  GridItem,
6
6
  Flex,
7
- Stack,
8
7
  Typography,
9
8
  Textarea,
10
9
  TextInput,
@@ -18,7 +17,7 @@ const RoleForm = ({ disabled, role, values, errors, onChange, onBlur }) => {
18
17
 
19
18
  return (
20
19
  <Box background="neutral0" padding={6} shadow="filterShadow" hasRadius>
21
- <Stack spacing={4}>
20
+ <Flex direction="column" alignItems="stretch" gap={4}>
22
21
  <Flex justifyContent="space-between">
23
22
  <Box>
24
23
  <Box>
@@ -84,7 +83,7 @@ const RoleForm = ({ disabled, role, values, errors, onChange, onBlur }) => {
84
83
  </Textarea>
85
84
  </GridItem>
86
85
  </Grid>
87
- </Stack>
86
+ </Flex>
88
87
  </Box>
89
88
  );
90
89
  };
@@ -8,7 +8,7 @@ import {
8
8
  SettingsPageTitle,
9
9
  Link,
10
10
  } from '@strapi/helper-plugin';
11
- import { Box, Button, ContentLayout, HeaderLayout, Main, Stack } from '@strapi/design-system';
11
+ import { Box, Button, ContentLayout, HeaderLayout, Main, Flex } from '@strapi/design-system';
12
12
  import { Formik } from 'formik';
13
13
  import { ArrowLeft } from '@strapi/icons';
14
14
  import get from 'lodash/get';
@@ -104,7 +104,7 @@ const EditPage = () => {
104
104
  <form onSubmit={handleSubmit}>
105
105
  <HeaderLayout
106
106
  primaryAction={
107
- <Stack horizontal spacing={2}>
107
+ <Flex gap={2}>
108
108
  <Button
109
109
  disabled={role.code === 'strapi-super-admin'}
110
110
  onClick={handleSubmit}
@@ -116,7 +116,7 @@ const EditPage = () => {
116
116
  defaultMessage: 'Save',
117
117
  })}
118
118
  </Button>
119
- </Stack>
119
+ </Flex>
120
120
  }
121
121
  title={formatMessage({
122
122
  id: 'Settings.roles.edit.title',
@@ -136,7 +136,7 @@ const EditPage = () => {
136
136
  }
137
137
  />
138
138
  <ContentLayout>
139
- <Stack spacing={6}>
139
+ <Flex direction="column" alignItems="stretch" gap={6}>
140
140
  <RoleForm
141
141
  isLoading={isRoleLoading}
142
142
  disabled={isFormDisabled}
@@ -160,7 +160,7 @@ const EditPage = () => {
160
160
  <LoadingIndicatorPage />
161
161
  </Box>
162
162
  )}
163
- </Stack>
163
+ </Flex>
164
164
  </ContentLayout>
165
165
  </form>
166
166
  )}