@strapi/admin 4.1.4-alpha.3 → 4.1.6-alpha.0
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/content-manager/components/ComponentInitializer/index.js +9 -4
- package/admin/src/content-manager/components/RepeatableComponent/AccordionGroupCustom/index.js +3 -1
- package/admin/src/pages/AuthPage/index.js +8 -3
- package/admin/src/pages/HomePage/SocialLinks.js +1 -7
- package/build/{4362.d13f7b42.chunk.js → 4362.cf5b578d.chunk.js} +1 -1
- package/build/849.98171304.chunk.js +1 -0
- package/build/{Admin-authenticatedApp.13923a1f.chunk.js → Admin-authenticatedApp.f7f4f112.chunk.js} +1 -1
- package/build/{Admin_homePage.86604515.chunk.js → Admin_homePage.fea90263.chunk.js} +1 -1
- package/build/content-manager.94860c70.chunk.js +1 -0
- package/build/content-type-builder-translation-cs-json.b593aef5.chunk.js +1 -0
- package/build/content-type-builder-translation-de-json.bf808f88.chunk.js +1 -0
- package/build/content-type-builder-translation-dk-json.28ed91d2.chunk.js +1 -0
- package/build/content-type-builder-translation-en-json.f19ac2e9.chunk.js +1 -0
- package/build/content-type-builder-translation-es-json.e42614fd.chunk.js +1 -0
- package/build/content-type-builder-translation-id-json.dc5ea5d6.chunk.js +1 -0
- package/build/content-type-builder-translation-it-json.3c8ca035.chunk.js +1 -0
- package/build/content-type-builder-translation-ko-json.48ee9cec.chunk.js +1 -0
- package/build/content-type-builder-translation-ms-json.3dd46b39.chunk.js +1 -0
- package/build/content-type-builder-translation-nl-json.877dff80.chunk.js +1 -0
- package/build/content-type-builder-translation-pl-json.95b2b33d.chunk.js +1 -0
- package/build/content-type-builder-translation-ru-json.b76aa5ab.chunk.js +1 -0
- package/build/content-type-builder-translation-sk-json.eb4930b0.chunk.js +1 -0
- package/build/content-type-builder-translation-th-json.23555d01.chunk.js +1 -0
- package/build/content-type-builder-translation-uk-json.ff0523b6.chunk.js +1 -0
- package/build/content-type-builder-translation-zh-Hans-json.c70a6a4a.chunk.js +1 -0
- package/build/content-type-builder-translation-zh-json.6fe1861a.chunk.js +1 -0
- package/build/content-type-builder.a963330a.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/{main.34dad327.js → main.a8c2970b.js} +2 -2
- package/build/{main.34dad327.js.LICENSE.txt → main.a8c2970b.js.LICENSE.txt} +0 -0
- package/build/{runtime~main.c594c062.js → runtime~main.4dafb29d.js} +1 -1
- package/package.json +5 -5
- package/server/bootstrap.js +6 -6
- package/build/849.17f011e8.chunk.js +0 -1
- package/build/content-manager.31be1448.chunk.js +0 -1
- package/build/content-type-builder-translation-cs-json.89f7272e.chunk.js +0 -1
- package/build/content-type-builder-translation-de-json.0205697c.chunk.js +0 -1
- package/build/content-type-builder-translation-dk-json.235ff56e.chunk.js +0 -1
- package/build/content-type-builder-translation-en-json.8034dab6.chunk.js +0 -1
- package/build/content-type-builder-translation-es-json.13b2e2aa.chunk.js +0 -1
- package/build/content-type-builder-translation-id-json.2fbf4f8c.chunk.js +0 -1
- package/build/content-type-builder-translation-it-json.a1afd7a9.chunk.js +0 -1
- package/build/content-type-builder-translation-ko-json.d2080111.chunk.js +0 -1
- package/build/content-type-builder-translation-ms-json.048122eb.chunk.js +0 -1
- package/build/content-type-builder-translation-nl-json.8d59e86b.chunk.js +0 -1
- package/build/content-type-builder-translation-pl-json.01dc068c.chunk.js +0 -1
- package/build/content-type-builder-translation-ru-json.1285874d.chunk.js +0 -1
- package/build/content-type-builder-translation-sk-json.0064156b.chunk.js +0 -1
- package/build/content-type-builder-translation-th-json.5f690524.chunk.js +0 -1
- package/build/content-type-builder-translation-uk-json.87496bf9.chunk.js +0 -1
- package/build/content-type-builder-translation-zh-Hans-json.283c640e.chunk.js +0 -1
- package/build/content-type-builder-translation-zh-json.77aa2275.chunk.js +0 -1
- package/build/content-type-builder.de5d18ad.chunk.js +0 -1
|
@@ -57,10 +57,13 @@ const ComponentInitializer = ({ error, isReadOnly, onClick }) => {
|
|
|
57
57
|
</Box>
|
|
58
58
|
{error?.id && (
|
|
59
59
|
<Typography textColor="danger600" variant="pi">
|
|
60
|
-
{formatMessage(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
{formatMessage(
|
|
61
|
+
{
|
|
62
|
+
id: error.id,
|
|
63
|
+
defaultMessage: error.id,
|
|
64
|
+
},
|
|
65
|
+
{ ...error.values }
|
|
66
|
+
)}
|
|
64
67
|
</Typography>
|
|
65
68
|
)}
|
|
66
69
|
</>
|
|
@@ -75,6 +78,8 @@ ComponentInitializer.defaultProps = {
|
|
|
75
78
|
ComponentInitializer.propTypes = {
|
|
76
79
|
error: PropTypes.shape({
|
|
77
80
|
id: PropTypes.string.isRequired,
|
|
81
|
+
defaultMessage: PropTypes.string.isRequired,
|
|
82
|
+
values: PropTypes.object,
|
|
78
83
|
}),
|
|
79
84
|
isReadOnly: PropTypes.bool,
|
|
80
85
|
onClick: PropTypes.func.isRequired,
|
package/admin/src/content-manager/components/RepeatableComponent/AccordionGroupCustom/index.js
CHANGED
|
@@ -92,7 +92,7 @@ const AccordionGroupCustom = ({ children, footer, label, labelAction, error }) =
|
|
|
92
92
|
{error && (
|
|
93
93
|
<Box paddingTop={1}>
|
|
94
94
|
<Typography variant="pi" textColor="danger600">
|
|
95
|
-
{formatMessage({ id: error.id, defaultMessage: error.id })}
|
|
95
|
+
{formatMessage({ id: error.id, defaultMessage: error.id }, { ...error.values })}
|
|
96
96
|
</Typography>
|
|
97
97
|
</Box>
|
|
98
98
|
)}
|
|
@@ -111,6 +111,8 @@ AccordionGroupCustom.propTypes = {
|
|
|
111
111
|
children: PropTypes.node.isRequired,
|
|
112
112
|
error: PropTypes.shape({
|
|
113
113
|
id: PropTypes.string.isRequired,
|
|
114
|
+
defaultMessage: PropTypes.string.isRequired,
|
|
115
|
+
values: PropTypes.object,
|
|
114
116
|
}),
|
|
115
117
|
footer: PropTypes.node,
|
|
116
118
|
label: PropTypes.string,
|
|
@@ -242,9 +242,14 @@ const AuthPage = ({ hasAdmin, setHasAdmin }) => {
|
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
const redirectToPreviousLocation = () => {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
if (authType === 'login') {
|
|
246
|
+
const redirectTo = query.get('redirectTo');
|
|
247
|
+
const redirectUrl = redirectTo ? decodeURIComponent(redirectTo) : '/';
|
|
248
|
+
|
|
249
|
+
push(redirectUrl);
|
|
250
|
+
} else {
|
|
251
|
+
push('/');
|
|
252
|
+
}
|
|
248
253
|
};
|
|
249
254
|
|
|
250
255
|
// Redirect the user to the login page if
|
|
@@ -30,9 +30,6 @@ const StyledReddit = styled(Reddit)`
|
|
|
30
30
|
> path:first-child {
|
|
31
31
|
fill: #ff4500;
|
|
32
32
|
}
|
|
33
|
-
> path:last-child {
|
|
34
|
-
fill: ${({ theme }) => theme.colors.neutral0};
|
|
35
|
-
}
|
|
36
33
|
`;
|
|
37
34
|
const StyledStrapi = styled(Strapi)`
|
|
38
35
|
> path:first-child {
|
|
@@ -170,10 +167,7 @@ const SocialLinks = () => {
|
|
|
170
167
|
})}
|
|
171
168
|
</Typography>
|
|
172
169
|
</Stack>
|
|
173
|
-
<Link
|
|
174
|
-
href="https://portal.productboard.com/strapi/1-roadmap/tabs/2-under-consideration"
|
|
175
|
-
endIcon={<ExternalLink />}
|
|
176
|
-
>
|
|
170
|
+
<Link href="https://feedback.strapi.io/" endIcon={<ExternalLink />}>
|
|
177
171
|
{formatMessage({
|
|
178
172
|
id: 'app.components.HomePage.roadmap',
|
|
179
173
|
defaultMessage: 'See our road map',
|