@strapi/admin 4.7.0 → 4.7.2-exp.24dd7d95972fa822bf43e9b095b51027402c229e
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.
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +4 -4
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +2 -2
- package/admin/src/components/GuidedTour/Homepage/index.js +3 -3
- package/admin/src/components/GuidedTour/Modal/components/Content.js +35 -23
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +6 -4
- package/admin/src/components/LeftMenu/index.js +3 -3
- package/admin/src/components/Notifications/index.js +6 -4
- package/admin/src/components/UpgradePlanModal/index.js +6 -7
- package/admin/src/content-manager/components/ComponentInitializer/index.js +3 -3
- package/admin/src/content-manager/components/DragLayer/RelationDragPreview.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +3 -11
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +3 -11
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +4 -4
- package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +3 -4
- package/admin/src/content-manager/components/DynamicZone/index.js +3 -3
- package/admin/src/content-manager/components/FieldComponent/index.js +3 -3
- package/admin/src/content-manager/components/NonRepeatableComponent/index.js +3 -3
- package/admin/src/content-manager/components/RelationInput/components/Relation.js +9 -3
- package/admin/src/content-manager/components/RelationInput/components/RelationItem.js +4 -4
- package/admin/src/content-manager/components/RepeatableComponent/components/Component.js +12 -6
- package/admin/src/content-manager/components/Wysiwyg/Editor.js +2 -2
- package/admin/src/content-manager/components/Wysiwyg/index.js +5 -5
- package/admin/src/content-manager/components/Wysiwyg/utils/continueList.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/DynamicZoneList.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/index.js +3 -3
- package/admin/src/content-manager/pages/EditView/Header/index.js +6 -7
- package/admin/src/content-manager/pages/EditView/Information/index.js +9 -9
- package/admin/src/content-manager/pages/EditView/index.js +9 -9
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +5 -5
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +3 -11
- package/admin/src/pages/Admin/Onboarding/index.js +11 -5
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +3 -3
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +3 -12
- package/admin/src/pages/AuthPage/components/Register/index.js +2 -3
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +3 -3
- package/admin/src/pages/HomePage/ContentBlocks.js +3 -3
- package/admin/src/pages/HomePage/HomeHeader.js +3 -7
- package/admin/src/pages/HomePage/SocialLinks.js +5 -5
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +3 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +3 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +3 -3
- package/admin/src/pages/ProfilePage/index.js +11 -11
- package/admin/src/pages/SettingsPage/components/Tokens/FormHead/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +2 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +7 -6
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +4 -6
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +7 -7
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +9 -9
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +7 -7
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +158 -165
- package/admin/src/pages/UseCasePage/index.js +2 -3
- package/admin/src/translations/zh-Hans.json +31 -1
- package/build/{4849.7abafe52.chunk.js → 3094.1cac9087.chunk.js} +2 -2
- package/build/{4049.16583eee.chunk.js → 4049.64715f20.chunk.js} +1 -1
- package/build/4649.daa290f6.chunk.js +30 -0
- package/build/{6487.83e219bf.chunk.js → 6891.ef7464be.chunk.js} +6 -6
- package/build/7259.63e91b59.chunk.js +1 -0
- package/build/Admin-authenticatedApp.884faefa.chunk.js +79 -0
- package/build/Admin_homePage.1411fb7c.chunk.js +68 -0
- package/build/{Admin_marketplace.a8ea585f.chunk.js → Admin_marketplace.0f6c8ee2.chunk.js} +4 -4
- package/build/Admin_profilePage.d2a8f9ab.chunk.js +15 -0
- package/build/{Admin_settingsPage.f6d02df6.chunk.js → Admin_settingsPage.6814a96e.chunk.js} +17 -18
- package/build/admin-app.d9d96db4.chunk.js +112 -0
- package/build/admin-edit-roles-page.bf130aaf.chunk.js +1 -0
- package/build/{admin-edit-users.f06c4a53.chunk.js → admin-edit-users.48031e30.chunk.js} +2 -2
- package/build/admin-users.77b4188a.chunk.js +11 -0
- package/build/{content-manager.6ed87531.chunk.js → content-manager.d792c194.chunk.js} +40 -40
- package/build/{content-type-builder-list-view.c2f917b6.chunk.js → content-type-builder-list-view.cf38fe2f.chunk.js} +9 -9
- package/build/content-type-builder-translation-zh-Hans-json.415577fb.chunk.js +1 -0
- package/build/content-type-builder.cdd117c3.chunk.js +126 -0
- package/build/email-settings-page.4bdbef9a.chunk.js +3 -0
- package/build/{i18n-settings-page.c7bc29fc.chunk.js → i18n-settings-page.2bb5be96.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.64fe0c37.js +3928 -0
- package/build/{runtime~main.bc7de2d8.js → runtime~main.684b5fed.js} +1 -1
- package/build/sso-settings-page.5a8588ef.chunk.js +1 -0
- package/build/upload-settings.0200561d.chunk.js +1 -0
- package/build/upload-translation-zh-Hans-json.db163b6b.chunk.js +1 -0
- package/build/upload.c7da1611.chunk.js +13 -0
- package/build/{users-advanced-settings-page.677e1973.chunk.js → users-advanced-settings-page.c0cae03a.chunk.js} +1 -1
- package/build/users-providers-settings-page.5f86e45c.chunk.js +1 -0
- package/build/users-roles-settings-page.b02986df.chunk.js +30 -0
- package/build/webhook-edit-page.a2a2b7bb.chunk.js +23 -0
- package/build/webhook-list-page.029957a4.chunk.js +1 -0
- package/build/zh-Hans-json.993d085f.chunk.js +1 -0
- package/ee/admin/hooks/useLicenseLimitNotification/index.js +2 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -3
- package/ee/admin/pages/AuthPage/components/Providers/index.js +3 -3
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +3 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +6 -7
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +11 -3
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +5 -4
- package/ee/server/controllers/admin.js +4 -3
- package/ee/server/controllers/user.js +2 -2
- package/ee/server/services/seat-enforcement.js +2 -2
- package/package.json +13 -12
- package/server/content-types/User.js +4 -0
- package/server/content-types/api-token.js +1 -0
- package/server/controllers/user.js +7 -1
- package/server/services/permission/permissions-manager/index.js +9 -5
- package/server/services/permission/permissions-manager/sanitize.js +101 -4
- package/build/4649.ffa2f59a.chunk.js +0 -30
- package/build/7259.cd2f7bad.chunk.js +0 -1
- package/build/Admin-authenticatedApp.bce108cd.chunk.js +0 -79
- package/build/Admin_homePage.cec3f510.chunk.js +0 -70
- package/build/Admin_profilePage.b27e40f6.chunk.js +0 -15
- package/build/admin-app.d3b3237b.chunk.js +0 -112
- package/build/admin-edit-roles-page.fd041d89.chunk.js +0 -1
- package/build/admin-users.8c9bfda4.chunk.js +0 -11
- package/build/content-type-builder-translation-zh-Hans-json.52a30266.chunk.js +0 -1
- package/build/content-type-builder.b7fb1e65.chunk.js +0 -126
- package/build/email-settings-page.884cfb8b.chunk.js +0 -3
- package/build/main.8009bfe8.js +0 -3930
- package/build/sso-settings-page.82d84043.chunk.js +0 -1
- package/build/upload-settings.c18b010f.chunk.js +0 -1
- package/build/upload-translation-zh-Hans-json.3da5cf56.chunk.js +0 -1
- package/build/upload.0876ab69.chunk.js +0 -13
- package/build/users-providers-settings-page.87a9c77d.chunk.js +0 -1
- package/build/users-roles-settings-page.79c19845.chunk.js +0 -30
- package/build/webhook-edit-page.cfbdd3fd.chunk.js +0 -23
- package/build/webhook-list-page.3daa4fe2.chunk.js +0 -1
- package/build/zh-Hans-json.6e26e359.chunk.js +0 -1
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
AccordionContent,
|
|
15
15
|
Grid,
|
|
16
16
|
GridItem,
|
|
17
|
-
|
|
17
|
+
Flex,
|
|
18
18
|
Box,
|
|
19
19
|
IconButton,
|
|
20
20
|
} from '@strapi/design-system';
|
|
@@ -49,7 +49,7 @@ const CustomIconButton = styled(IconButton)`
|
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
51
51
|
|
|
52
|
-
const
|
|
52
|
+
const ActionsFlex = styled(Flex)`
|
|
53
53
|
& .drag-handle {
|
|
54
54
|
background: unset;
|
|
55
55
|
|
|
@@ -138,7 +138,7 @@ const DraggedItem = ({
|
|
|
138
138
|
<AccordionToggle
|
|
139
139
|
action={
|
|
140
140
|
isReadOnly ? null : (
|
|
141
|
-
<
|
|
141
|
+
<ActionsFlex gap={0} expanded={isOpen}>
|
|
142
142
|
<CustomIconButton
|
|
143
143
|
expanded={isOpen}
|
|
144
144
|
noBorder
|
|
@@ -169,14 +169,20 @@ const DraggedItem = ({
|
|
|
169
169
|
>
|
|
170
170
|
<Drag />
|
|
171
171
|
</IconButton>
|
|
172
|
-
</
|
|
172
|
+
</ActionsFlex>
|
|
173
173
|
)
|
|
174
174
|
}
|
|
175
175
|
title={displayedValue}
|
|
176
176
|
togglePosition="left"
|
|
177
177
|
/>
|
|
178
178
|
<AccordionContent>
|
|
179
|
-
<
|
|
179
|
+
<Flex
|
|
180
|
+
direction="column"
|
|
181
|
+
alignItems="stretch"
|
|
182
|
+
background="neutral100"
|
|
183
|
+
padding={6}
|
|
184
|
+
gap={6}
|
|
185
|
+
>
|
|
180
186
|
{fields.map((fieldRow, key) => {
|
|
181
187
|
return (
|
|
182
188
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -224,7 +230,7 @@ const DraggedItem = ({
|
|
|
224
230
|
</Grid>
|
|
225
231
|
);
|
|
226
232
|
})}
|
|
227
|
-
</
|
|
233
|
+
</Flex>
|
|
228
234
|
</AccordionContent>
|
|
229
235
|
</Accordion>
|
|
230
236
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import CodeMirror from '
|
|
4
|
-
import '
|
|
3
|
+
import CodeMirror from 'codemirror5';
|
|
4
|
+
import 'codemirror5/addon/display/placeholder';
|
|
5
5
|
import PreviewWysiwyg from '../PreviewWysiwyg';
|
|
6
6
|
import { EditorStylesContainer } from './EditorStylesContainer';
|
|
7
7
|
import { EditorAndPreviewWrapper } from './WysiwygStyles';
|
|
@@ -2,7 +2,7 @@ import React, { useRef, useState } 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, Box,
|
|
5
|
+
import { Typography, Box, Flex } from '@strapi/design-system';
|
|
6
6
|
import { prefixFileUrlWithBackendUrl, useLibrary } from '@strapi/helper-plugin';
|
|
7
7
|
import Editor from './Editor';
|
|
8
8
|
import WysiwygNav from './WysiwygNav';
|
|
@@ -125,14 +125,14 @@ const Wysiwyg = ({
|
|
|
125
125
|
|
|
126
126
|
return (
|
|
127
127
|
<>
|
|
128
|
-
<
|
|
129
|
-
<
|
|
128
|
+
<Flex direction="column" alignItems="stretch" gap={1}>
|
|
129
|
+
<Flex gap={1}>
|
|
130
130
|
<Typography variant="pi" fontWeight="bold" textColor="neutral800">
|
|
131
131
|
{label}
|
|
132
132
|
{required && <TypographyAsterisk textColor="danger600">*</TypographyAsterisk>}
|
|
133
133
|
</Typography>
|
|
134
134
|
{labelAction && <LabelAction paddingLeft={1}>{labelAction}</LabelAction>}
|
|
135
|
-
</
|
|
135
|
+
</Flex>
|
|
136
136
|
|
|
137
137
|
<EditorLayout
|
|
138
138
|
isExpandMode={isExpandMode}
|
|
@@ -166,7 +166,7 @@ const Wysiwyg = ({
|
|
|
166
166
|
{!isExpandMode && <WysiwygFooter onToggleExpand={handleToggleExpand} />}
|
|
167
167
|
</EditorLayout>
|
|
168
168
|
<Hint hint={hint} name={name} error={error} />
|
|
169
|
-
</
|
|
169
|
+
</Flex>
|
|
170
170
|
|
|
171
171
|
{error && (
|
|
172
172
|
<Box paddingTop={1}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CodeMirror from '
|
|
1
|
+
import CodeMirror from 'codemirror5';
|
|
2
2
|
|
|
3
3
|
// Disabling eslint on purpose
|
|
4
4
|
/* eslint-disable */
|
|
@@ -7,9 +7,9 @@ var listRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,
|
|
|
7
7
|
emptyListRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,
|
|
8
8
|
unorderedListRE = /[*+-]\s/;
|
|
9
9
|
|
|
10
|
-
/*
|
|
10
|
+
/*
|
|
11
11
|
functions coming from CodeMirror addons continuelist.js
|
|
12
|
-
===> https://github.com/codemirror/CodeMirror/blob/master/addon/edit/continuelist.js
|
|
12
|
+
===> https://github.com/codemirror/CodeMirror/blob/master/addon/edit/continuelist.js
|
|
13
13
|
|
|
14
14
|
we imported it because the way the addon ask to use markdown mode
|
|
15
15
|
since we have our own markdown preview system we couldn't use it directly
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Button, Box, Typography,
|
|
4
|
+
import { Button, Box, Typography, Flex, SimpleMenu, MenuItem } from '@strapi/design-system';
|
|
5
5
|
import { Plus } from '@strapi/icons';
|
|
6
6
|
import { getTrad } from '../../../utils';
|
|
7
7
|
import RowsLayout from './RowsLayout';
|
|
@@ -11,7 +11,7 @@ const DisplayedFields = ({ editLayout, fields, onRemoveField, onAddField }) => {
|
|
|
11
11
|
const { formatMessage } = useIntl();
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<
|
|
14
|
+
<Flex direction="column" alignItems="stretch" gap={4}>
|
|
15
15
|
<Flex justifyContent="space-between">
|
|
16
16
|
<div>
|
|
17
17
|
<Box>
|
|
@@ -34,7 +34,7 @@ const DisplayedFields = ({ editLayout, fields, onRemoveField, onAddField }) => {
|
|
|
34
34
|
<LinkToCTB />
|
|
35
35
|
</Flex>
|
|
36
36
|
<Box padding={4} hasRadius borderStyle="dashed" borderWidth="1px" borderColor="neutral300">
|
|
37
|
-
<
|
|
37
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
38
38
|
{editLayout.map((row, index) => (
|
|
39
39
|
<RowsLayout key={row.rowId} row={row} rowIndex={index} onRemoveField={onRemoveField} />
|
|
40
40
|
))}
|
|
@@ -58,9 +58,9 @@ const DisplayedFields = ({ editLayout, fields, onRemoveField, onAddField }) => {
|
|
|
58
58
|
</MenuItem>
|
|
59
59
|
))}
|
|
60
60
|
</SimpleMenu>
|
|
61
|
-
</
|
|
61
|
+
</Flex>
|
|
62
62
|
</Box>
|
|
63
|
-
</
|
|
63
|
+
</Flex>
|
|
64
64
|
);
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { Box, Flex, Typography
|
|
5
|
+
import { Box, Flex, Typography } from '@strapi/design-system';
|
|
6
6
|
|
|
7
7
|
import { ComponentIcon } from '../../../components/ComponentIcon';
|
|
8
8
|
import useLayoutDnd from '../../../hooks/useLayoutDnd';
|
|
@@ -33,7 +33,7 @@ const DynamicZoneList = ({ components }) => {
|
|
|
33
33
|
const { componentLayouts } = useLayoutDnd();
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
|
-
<
|
|
36
|
+
<Flex gap={2} overflow="scroll hidden" padding={3}>
|
|
37
37
|
{components.map((componentUid) => (
|
|
38
38
|
<CustomLink
|
|
39
39
|
hasRadius
|
|
@@ -58,7 +58,7 @@ const DynamicZoneList = ({ components }) => {
|
|
|
58
58
|
</Box>
|
|
59
59
|
</CustomLink>
|
|
60
60
|
))}
|
|
61
|
-
</
|
|
61
|
+
</Flex>
|
|
62
62
|
);
|
|
63
63
|
};
|
|
64
64
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
GridItem,
|
|
23
23
|
Select,
|
|
24
24
|
Option,
|
|
25
|
-
|
|
25
|
+
Flex,
|
|
26
26
|
Divider,
|
|
27
27
|
} from '@strapi/design-system';
|
|
28
28
|
import { ArrowLeft, Check } from '@strapi/icons';
|
|
@@ -264,7 +264,7 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
|
|
|
264
264
|
paddingLeft={7}
|
|
265
265
|
paddingRight={7}
|
|
266
266
|
>
|
|
267
|
-
<
|
|
267
|
+
<Flex direction="column" alignItems="stretch" gap={4}>
|
|
268
268
|
<Typography variant="delta" as="h2">
|
|
269
269
|
{formatMessage({
|
|
270
270
|
id: getTrad('containers.SettingPage.settings'),
|
|
@@ -328,7 +328,7 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd
|
|
|
328
328
|
});
|
|
329
329
|
}}
|
|
330
330
|
/>
|
|
331
|
-
</
|
|
331
|
+
</Flex>
|
|
332
332
|
</Box>
|
|
333
333
|
</ContentLayout>
|
|
334
334
|
<ConfirmDialog
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
DialogFooter,
|
|
18
18
|
Flex,
|
|
19
19
|
Typography,
|
|
20
|
-
Stack,
|
|
21
20
|
} from '@strapi/design-system';
|
|
22
21
|
import styled from 'styled-components';
|
|
23
22
|
import { getTrad } from '../../../utils';
|
|
@@ -70,7 +69,7 @@ const Header = ({
|
|
|
70
69
|
|
|
71
70
|
if (isCreatingEntry && canCreate) {
|
|
72
71
|
primaryAction = (
|
|
73
|
-
<
|
|
72
|
+
<Flex gap={2}>
|
|
74
73
|
{hasDraftAndPublish && (
|
|
75
74
|
<Button disabled startIcon={<Check />} variant="secondary">
|
|
76
75
|
{formatMessage({ id: 'app.utils.publish', defaultMessage: 'Publish' })}
|
|
@@ -82,7 +81,7 @@ const Header = ({
|
|
|
82
81
|
defaultMessage: 'Save',
|
|
83
82
|
})}
|
|
84
83
|
</Button>
|
|
85
|
-
</
|
|
84
|
+
</Flex>
|
|
86
85
|
);
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -168,7 +167,7 @@ const Header = ({
|
|
|
168
167
|
isOpen={showWarningUnpublish}
|
|
169
168
|
>
|
|
170
169
|
<DialogBody icon={<ExclamationMarkCircle />}>
|
|
171
|
-
<
|
|
170
|
+
<Flex direction="column" alignItems="stretch" spacing={2}>
|
|
172
171
|
<Flex justifyContent="center" style={{ textAlign: 'center' }}>
|
|
173
172
|
<Typography id="confirm-description">
|
|
174
173
|
{formatMessage(
|
|
@@ -191,7 +190,7 @@ const Header = ({
|
|
|
191
190
|
})}
|
|
192
191
|
</Typography>
|
|
193
192
|
</Flex>
|
|
194
|
-
</
|
|
193
|
+
</Flex>
|
|
195
194
|
</DialogBody>
|
|
196
195
|
<DialogFooter
|
|
197
196
|
startAction={
|
|
@@ -223,7 +222,7 @@ const Header = ({
|
|
|
223
222
|
isOpen={showPublishConfirmation}
|
|
224
223
|
>
|
|
225
224
|
<DialogBody icon={<ExclamationMarkCircle />}>
|
|
226
|
-
<
|
|
225
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
227
226
|
<FlexTextAlign justifyContent="center">
|
|
228
227
|
<Typography id="confirm-description">
|
|
229
228
|
{draftCount}
|
|
@@ -248,7 +247,7 @@ const Header = ({
|
|
|
248
247
|
})}
|
|
249
248
|
</Typography>
|
|
250
249
|
</FlexTextAlign>
|
|
251
|
-
</
|
|
250
|
+
</Flex>
|
|
252
251
|
</DialogBody>
|
|
253
252
|
<DialogFooter
|
|
254
253
|
startAction={
|
|
@@ -2,7 +2,7 @@ import React, { useRef } from 'react';
|
|
|
2
2
|
import propTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { useCMEditViewDataManager } from '@strapi/helper-plugin';
|
|
5
|
-
import { Box, Divider, Flex,
|
|
5
|
+
import { Box, Divider, Flex, Typography } from '@strapi/design-system';
|
|
6
6
|
|
|
7
7
|
import { getTrad } from '../../../utils';
|
|
8
8
|
import getUnits from './utils/getUnits';
|
|
@@ -49,7 +49,7 @@ const Information = () => {
|
|
|
49
49
|
const created = getFieldInfo('createdAt', 'createdBy');
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
|
-
<
|
|
52
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
53
53
|
<Typography variant="sigma" textColor="neutral600" id="additional-information">
|
|
54
54
|
{formatMessage({
|
|
55
55
|
id: getTrad('containers.Edit.information'),
|
|
@@ -61,8 +61,8 @@ const Information = () => {
|
|
|
61
61
|
<Divider />
|
|
62
62
|
</Box>
|
|
63
63
|
|
|
64
|
-
<
|
|
65
|
-
<
|
|
64
|
+
<Flex direction="column" alignItems="stretch" gap={4}>
|
|
65
|
+
<Flex direction="column" alignItems="stretch" gap={2} as="dl">
|
|
66
66
|
<KeyValuePair
|
|
67
67
|
label={formatMessage({
|
|
68
68
|
id: getTrad('containers.Edit.information.created'),
|
|
@@ -78,9 +78,9 @@ const Information = () => {
|
|
|
78
78
|
})}
|
|
79
79
|
value={created.by}
|
|
80
80
|
/>
|
|
81
|
-
</
|
|
81
|
+
</Flex>
|
|
82
82
|
|
|
83
|
-
<
|
|
83
|
+
<Flex direction="column" alignItems="stretch" gap={2} as="dl">
|
|
84
84
|
<KeyValuePair
|
|
85
85
|
label={formatMessage({
|
|
86
86
|
id: getTrad('containers.Edit.information.lastUpdate'),
|
|
@@ -96,9 +96,9 @@ const Information = () => {
|
|
|
96
96
|
})}
|
|
97
97
|
value={updated.by}
|
|
98
98
|
/>
|
|
99
|
-
</
|
|
100
|
-
</
|
|
101
|
-
</
|
|
99
|
+
</Flex>
|
|
100
|
+
</Flex>
|
|
101
|
+
</Flex>
|
|
102
102
|
);
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
LoadingIndicatorPage,
|
|
9
9
|
} from '@strapi/helper-plugin';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
|
-
import { ContentLayout, Box, Grid, GridItem, Main,
|
|
11
|
+
import { ContentLayout, Box, Grid, GridItem, Main, Flex } from '@strapi/design-system';
|
|
12
12
|
import { Pencil, Layer } from '@strapi/icons';
|
|
13
13
|
import { InjectionZone } from '../../../shared/components';
|
|
14
14
|
import permissions from '../../../permissions';
|
|
@@ -114,7 +114,7 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
114
114
|
<ContentLayout>
|
|
115
115
|
<Grid gap={4}>
|
|
116
116
|
<GridItem col={9} s={12}>
|
|
117
|
-
<
|
|
117
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
118
118
|
{formattedContentTypeLayout.map((row, index) => {
|
|
119
119
|
if (isDynamicZone(row)) {
|
|
120
120
|
const {
|
|
@@ -151,7 +151,7 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
151
151
|
paddingBottom={6}
|
|
152
152
|
borderColor="neutral150"
|
|
153
153
|
>
|
|
154
|
-
<
|
|
154
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
155
155
|
{row.map((grid, gridRowIndex) => (
|
|
156
156
|
<GridRow
|
|
157
157
|
columns={grid}
|
|
@@ -159,14 +159,14 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
159
159
|
key={gridRowIndex}
|
|
160
160
|
/>
|
|
161
161
|
))}
|
|
162
|
-
</
|
|
162
|
+
</Flex>
|
|
163
163
|
</Box>
|
|
164
164
|
);
|
|
165
165
|
})}
|
|
166
|
-
</
|
|
166
|
+
</Flex>
|
|
167
167
|
</GridItem>
|
|
168
168
|
<GridItem col={3} s={12}>
|
|
169
|
-
<
|
|
169
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
170
170
|
<DraftAndPublishBadge />
|
|
171
171
|
<Box
|
|
172
172
|
as="aside"
|
|
@@ -184,7 +184,7 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
184
184
|
<InjectionZone area="contentManager.editView.informations" />
|
|
185
185
|
</Box>
|
|
186
186
|
<Box as="aside" aria-labelledby="links">
|
|
187
|
-
<
|
|
187
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
188
188
|
<InjectionZone area="contentManager.editView.right-links" slug={slug} />
|
|
189
189
|
{slug !== 'strapi::administrator' && (
|
|
190
190
|
<CheckPermissions permissions={ctbPermissions}>
|
|
@@ -228,9 +228,9 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
228
228
|
onDeleteSucceeded={onDeleteSucceeded}
|
|
229
229
|
/>
|
|
230
230
|
)}
|
|
231
|
-
</
|
|
231
|
+
</Flex>
|
|
232
232
|
</Box>
|
|
233
|
-
</
|
|
233
|
+
</Flex>
|
|
234
234
|
</GridItem>
|
|
235
235
|
</Grid>
|
|
236
236
|
</ContentLayout>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Flex, Typography
|
|
4
|
+
import { Flex, Typography } from '@strapi/design-system';
|
|
5
5
|
import { Pencil, Cross, Drag } from '@strapi/icons';
|
|
6
6
|
import ellipsisCardTitle from '../utils/ellipsisCardTitle';
|
|
7
7
|
|
|
@@ -62,12 +62,12 @@ const CardPreview = ({ labelField, transparent, isSibling }) => {
|
|
|
62
62
|
transparent={transparent}
|
|
63
63
|
isSibling={isSibling}
|
|
64
64
|
>
|
|
65
|
-
<
|
|
65
|
+
<Flex gap={3}>
|
|
66
66
|
<DragButton alignItems="center">
|
|
67
67
|
<Drag />
|
|
68
68
|
</DragButton>
|
|
69
69
|
<Typography fontWeight="bold">{cardEllipsisTitle}</Typography>
|
|
70
|
-
</
|
|
70
|
+
</Flex>
|
|
71
71
|
<Flex paddingLeft={3}>
|
|
72
72
|
<ActionBox alignItems="center">
|
|
73
73
|
<Pencil />
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { useDrag, useDrop } from 'react-dnd';
|
|
5
5
|
import { getEmptyImage } from 'react-dnd-html5-backend';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { Flex, Box, Typography
|
|
7
|
+
import { Flex, Box, Typography } from '@strapi/design-system';
|
|
8
8
|
import { Pencil, Cross, Drag } from '@strapi/icons';
|
|
9
9
|
import CardPreview from './CardPreview';
|
|
10
10
|
import ellipsisCardTitle from '../utils/ellipsisCardTitle';
|
|
@@ -188,7 +188,7 @@ const DraggableCard = ({
|
|
|
188
188
|
onClick={handleClickEditRow}
|
|
189
189
|
isDragging={isDragging}
|
|
190
190
|
>
|
|
191
|
-
<
|
|
191
|
+
<Flex gap={3}>
|
|
192
192
|
<DragButton
|
|
193
193
|
as="span"
|
|
194
194
|
aria-label={formatMessage(
|
|
@@ -205,7 +205,7 @@ const DraggableCard = ({
|
|
|
205
205
|
<Drag />
|
|
206
206
|
</DragButton>
|
|
207
207
|
<Typography fontWeight="bold">{cardEllipsisTitle}</Typography>
|
|
208
|
-
</
|
|
208
|
+
</Flex>
|
|
209
209
|
<Flex paddingLeft={3}>
|
|
210
210
|
<ActionButton
|
|
211
211
|
ref={editButtonRef}
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
Select,
|
|
9
9
|
Option,
|
|
10
10
|
ToggleInput,
|
|
11
|
-
Stack,
|
|
12
11
|
Typography,
|
|
12
|
+
Flex,
|
|
13
13
|
} from '@strapi/design-system';
|
|
14
14
|
import { getTrad } from '../../../utils';
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ const Settings = ({ modifiedData, onChange, sortOptions }) => {
|
|
|
18
18
|
const { settings, metadatas } = modifiedData;
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<
|
|
21
|
+
<Flex direction="column" alignItems="stretch" gap={4}>
|
|
22
22
|
<Typography variant="delta" as="h2">
|
|
23
23
|
{formatMessage({
|
|
24
24
|
id: getTrad('containers.SettingPage.settings'),
|
|
@@ -26,7 +26,7 @@ const Settings = ({ modifiedData, onChange, sortOptions }) => {
|
|
|
26
26
|
})}
|
|
27
27
|
</Typography>
|
|
28
28
|
|
|
29
|
-
<
|
|
29
|
+
<Flex justifyContent="space-between" gap={4}>
|
|
30
30
|
<Box width="100%">
|
|
31
31
|
<ToggleInput
|
|
32
32
|
label={formatMessage({
|
|
@@ -92,7 +92,7 @@ const Settings = ({ modifiedData, onChange, sortOptions }) => {
|
|
|
92
92
|
checked={settings.bulkable}
|
|
93
93
|
/>
|
|
94
94
|
</Box>
|
|
95
|
-
</
|
|
95
|
+
</Flex>
|
|
96
96
|
|
|
97
97
|
<Grid gap={4}>
|
|
98
98
|
<GridItem s={12} col={6}>
|
|
@@ -152,7 +152,7 @@ const Settings = ({ modifiedData, onChange, sortOptions }) => {
|
|
|
152
152
|
</Select>
|
|
153
153
|
</GridItem>
|
|
154
154
|
</Grid>
|
|
155
|
-
</
|
|
155
|
+
</Flex>
|
|
156
156
|
);
|
|
157
157
|
};
|
|
158
158
|
|
|
@@ -2,15 +2,7 @@ import React, { useState, useRef, useEffect } 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 {
|
|
6
|
-
Box,
|
|
7
|
-
Flex,
|
|
8
|
-
Stack,
|
|
9
|
-
Typography,
|
|
10
|
-
SimpleMenu,
|
|
11
|
-
MenuItem,
|
|
12
|
-
IconButton,
|
|
13
|
-
} from '@strapi/design-system';
|
|
5
|
+
import { Box, Flex, Typography, SimpleMenu, MenuItem, IconButton } from '@strapi/design-system';
|
|
14
6
|
import { Plus } from '@strapi/icons';
|
|
15
7
|
import DraggableCard from './DraggableCard';
|
|
16
8
|
import { getTrad } from '../../../utils';
|
|
@@ -78,7 +70,7 @@ const SortDisplayedFields = ({
|
|
|
78
70
|
hasRadius
|
|
79
71
|
>
|
|
80
72
|
<ScrollableContainer size="1" paddingBottom={4} ref={scrollableContainerRef}>
|
|
81
|
-
<
|
|
73
|
+
<Flex gap={3}>
|
|
82
74
|
{displayedFields.map((field, index) => (
|
|
83
75
|
<DraggableCard
|
|
84
76
|
key={field}
|
|
@@ -92,7 +84,7 @@ const SortDisplayedFields = ({
|
|
|
92
84
|
setIsDraggingSibling={setIsDraggingSibling}
|
|
93
85
|
/>
|
|
94
86
|
))}
|
|
95
|
-
</
|
|
87
|
+
</Flex>
|
|
96
88
|
</ScrollableContainer>
|
|
97
89
|
<SelectContainer size="auto" paddingBottom={4}>
|
|
98
90
|
<SimpleMenu
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
Icon,
|
|
12
12
|
Portal,
|
|
13
13
|
PopoverPrimitives,
|
|
14
|
-
Stack,
|
|
15
14
|
Typography,
|
|
16
15
|
VisuallyHidden,
|
|
17
16
|
} from '@strapi/design-system';
|
|
@@ -192,9 +191,16 @@ const Onboarding = () => {
|
|
|
192
191
|
</Flex>
|
|
193
192
|
</VideoLinkWrapper>
|
|
194
193
|
))}
|
|
195
|
-
<
|
|
194
|
+
<Flex
|
|
195
|
+
direction="column"
|
|
196
|
+
alignItems="stretch"
|
|
197
|
+
gap={2}
|
|
198
|
+
paddingLeft={5}
|
|
199
|
+
paddingTop={2}
|
|
200
|
+
paddingBottom={5}
|
|
201
|
+
>
|
|
196
202
|
{docLinks.map(({ label, href, icon }) => (
|
|
197
|
-
<
|
|
203
|
+
<Flex gap={3} key={href}>
|
|
198
204
|
<Icon as={icon} color="primary600" />
|
|
199
205
|
<TextLink
|
|
200
206
|
as="a"
|
|
@@ -206,9 +212,9 @@ const Onboarding = () => {
|
|
|
206
212
|
>
|
|
207
213
|
{formatMessage(label)}
|
|
208
214
|
</TextLink>
|
|
209
|
-
</
|
|
215
|
+
</Flex>
|
|
210
216
|
))}
|
|
211
|
-
</
|
|
217
|
+
</Flex>
|
|
212
218
|
</FocusTrap>
|
|
213
219
|
</PopoverPrimitives.Content>
|
|
214
220
|
</Portal>
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Form, Link } from '@strapi/helper-plugin';
|
|
5
|
-
import { Box,
|
|
5
|
+
import { Box, Flex, Main, Button, TextInput, Typography } from '@strapi/design-system';
|
|
6
6
|
import { Formik } from 'formik';
|
|
7
7
|
import UnauthenticatedLayout, {
|
|
8
8
|
Column,
|
|
@@ -53,7 +53,7 @@ const ForgotPassword = ({ onSubmit, schema }) => {
|
|
|
53
53
|
)}
|
|
54
54
|
</Column>
|
|
55
55
|
|
|
56
|
-
<
|
|
56
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
57
57
|
<TextInput
|
|
58
58
|
error={
|
|
59
59
|
errors.email
|
|
@@ -79,7 +79,7 @@ const ForgotPassword = ({ onSubmit, schema }) => {
|
|
|
79
79
|
defaultMessage: 'Send Email',
|
|
80
80
|
})}
|
|
81
81
|
</Button>
|
|
82
|
-
</
|
|
82
|
+
</Flex>
|
|
83
83
|
</Form>
|
|
84
84
|
)}
|
|
85
85
|
</Formik>
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Form, Link } from '@strapi/helper-plugin';
|
|
3
3
|
import { EyeStriked, Eye } from '@strapi/icons';
|
|
4
|
-
import {
|
|
5
|
-
Box,
|
|
6
|
-
Stack,
|
|
7
|
-
Main,
|
|
8
|
-
Flex,
|
|
9
|
-
Button,
|
|
10
|
-
TextInput,
|
|
11
|
-
Checkbox,
|
|
12
|
-
Typography,
|
|
13
|
-
} from '@strapi/design-system';
|
|
4
|
+
import { Box, Main, Flex, Button, TextInput, Checkbox, Typography } from '@strapi/design-system';
|
|
14
5
|
import PropTypes from 'prop-types';
|
|
15
6
|
import { useIntl } from 'react-intl';
|
|
16
7
|
import styled from 'styled-components';
|
|
@@ -75,7 +66,7 @@ const Login = ({ onSubmit, schema, children }) => {
|
|
|
75
66
|
)}
|
|
76
67
|
</Column>
|
|
77
68
|
|
|
78
|
-
<
|
|
69
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
79
70
|
<TextInput
|
|
80
71
|
error={
|
|
81
72
|
errors.email
|
|
@@ -151,7 +142,7 @@ const Login = ({ onSubmit, schema, children }) => {
|
|
|
151
142
|
<Button fullWidth type="submit">
|
|
152
143
|
{formatMessage({ id: 'Auth.form.button.login', defaultMessage: 'Login' })}
|
|
153
144
|
</Button>
|
|
154
|
-
</
|
|
145
|
+
</Flex>
|
|
155
146
|
</Form>
|
|
156
147
|
)}
|
|
157
148
|
</Formik>
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
} from '@strapi/helper-plugin';
|
|
18
18
|
import {
|
|
19
19
|
Box,
|
|
20
|
-
Stack,
|
|
21
20
|
Main,
|
|
22
21
|
Flex,
|
|
23
22
|
Button,
|
|
@@ -159,7 +158,7 @@ const Register = ({ authType, fieldsToDisable, noSignin, onSubmit, schema }) =>
|
|
|
159
158
|
</Typography>
|
|
160
159
|
</CenteredBox>
|
|
161
160
|
</Column>
|
|
162
|
-
<
|
|
161
|
+
<Flex direction="column" alignItems="stretch" spacing={6}>
|
|
163
162
|
<Grid gap={4}>
|
|
164
163
|
<GridItem col={6}>
|
|
165
164
|
<TextInput
|
|
@@ -314,7 +313,7 @@ const Register = ({ authType, fieldsToDisable, noSignin, onSubmit, schema }) =>
|
|
|
314
313
|
defaultMessage: "Let's start",
|
|
315
314
|
})}
|
|
316
315
|
</Button>
|
|
317
|
-
</
|
|
316
|
+
</Flex>
|
|
318
317
|
</Main>
|
|
319
318
|
</Form>
|
|
320
319
|
);
|