@strapi/content-manager 0.0.0-experimental.e0df4d50334a17a1beb3d203bff414fbbff62f7b → 0.0.0-experimental.e12978dcee698470990e9c5c63384faf2c307443
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/dist/admin/chunks/{ComponentConfigurationPage-C5H-5L1u.js → ComponentConfigurationPage-Ci3dN40b.js} +5 -6
- package/dist/admin/chunks/{ComponentConfigurationPage-C5H-5L1u.js.map → ComponentConfigurationPage-Ci3dN40b.js.map} +1 -1
- package/dist/admin/chunks/{ComponentConfigurationPage-BN2kOtDm.mjs → ComponentConfigurationPage-DFPdl9pm.mjs} +5 -6
- package/dist/admin/chunks/{ComponentConfigurationPage-BN2kOtDm.mjs.map → ComponentConfigurationPage-DFPdl9pm.mjs.map} +1 -1
- package/dist/admin/chunks/{EditConfigurationPage-BExtZuB7.js → EditConfigurationPage-7xe8u-Pp.js} +5 -6
- package/dist/admin/chunks/{EditConfigurationPage-BExtZuB7.js.map → EditConfigurationPage-7xe8u-Pp.js.map} +1 -1
- package/dist/admin/chunks/{EditConfigurationPage-tMgOELQG.mjs → EditConfigurationPage-BFse-urJ.mjs} +5 -6
- package/dist/admin/chunks/{EditConfigurationPage-tMgOELQG.mjs.map → EditConfigurationPage-BFse-urJ.mjs.map} +1 -1
- package/dist/admin/chunks/{EditViewPage-CYe7wAXF.mjs → EditViewPage-BNpRr7fZ.mjs} +99 -98
- package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs.map +1 -0
- package/dist/admin/chunks/{EditViewPage-DFkloeMZ.js → EditViewPage-CwYSs8Cq.js} +99 -98
- package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js.map +1 -0
- package/dist/admin/chunks/{Form-DTO0ZIaB.mjs → Form-D9Ee-exF.mjs} +3 -3
- package/dist/admin/chunks/{Form-DTO0ZIaB.mjs.map → Form-D9Ee-exF.mjs.map} +1 -1
- package/dist/admin/chunks/{Form-DGUP3zQO.js → Form-DDbxreII.js} +5 -5
- package/dist/admin/chunks/{Form-DGUP3zQO.js.map → Form-DDbxreII.js.map} +1 -1
- package/dist/admin/chunks/{History-CQznK1pG.js → History-D5joC76n.js} +17 -13
- package/dist/admin/chunks/History-D5joC76n.js.map +1 -0
- package/dist/admin/chunks/{History-C333pgXF.mjs → History-FuD7Tp5I.mjs} +16 -12
- package/dist/admin/chunks/History-FuD7Tp5I.mjs.map +1 -0
- package/dist/admin/chunks/{Input-BexkC_pp.mjs → Input-BHucdqva.mjs} +1108 -47
- package/dist/admin/chunks/Input-BHucdqva.mjs.map +1 -0
- package/dist/admin/chunks/{Input-DLJZHw9Y.js → Input-BJCenRYN.js} +1121 -57
- package/dist/admin/chunks/Input-BJCenRYN.js.map +1 -0
- package/dist/admin/chunks/{ListConfigurationPage-BX2WR7MI.mjs → ListConfigurationPage-3kSfz9xV.mjs} +4 -5
- package/dist/admin/chunks/{ListConfigurationPage-BX2WR7MI.mjs.map → ListConfigurationPage-3kSfz9xV.mjs.map} +1 -1
- package/dist/admin/chunks/{ListConfigurationPage-71I_stAM.js → ListConfigurationPage-CgJEcEkD.js} +6 -7
- package/dist/admin/chunks/{ListConfigurationPage-71I_stAM.js.map → ListConfigurationPage-CgJEcEkD.js.map} +1 -1
- package/dist/admin/chunks/{ListViewPage-DV3heO4F.js → ListViewPage-CvQ1w8IW.js} +7 -8
- package/dist/admin/chunks/{ListViewPage-DV3heO4F.js.map → ListViewPage-CvQ1w8IW.js.map} +1 -1
- package/dist/admin/chunks/{ListViewPage-BDeT3Dkk.mjs → ListViewPage-DPUYRHss.mjs} +3 -4
- package/dist/admin/chunks/{ListViewPage-BDeT3Dkk.mjs.map → ListViewPage-DPUYRHss.mjs.map} +1 -1
- package/dist/admin/chunks/{NoContentTypePage-9JHYpYVX.mjs → NoContentTypePage-BRLLtjLb.mjs} +2 -2
- package/dist/admin/chunks/{NoContentTypePage-9JHYpYVX.mjs.map → NoContentTypePage-BRLLtjLb.mjs.map} +1 -1
- package/dist/admin/chunks/{NoContentTypePage-COih9y2J.js → NoContentTypePage-C5Vut1Af.js} +2 -2
- package/dist/admin/chunks/{NoContentTypePage-COih9y2J.js.map → NoContentTypePage-C5Vut1Af.js.map} +1 -1
- package/dist/admin/chunks/{NoPermissionsPage-DTe9I47q.mjs → NoPermissionsPage-B5HJbcjm.mjs} +2 -2
- package/dist/admin/chunks/{NoPermissionsPage-DTe9I47q.mjs.map → NoPermissionsPage-B5HJbcjm.mjs.map} +1 -1
- package/dist/admin/chunks/{NoPermissionsPage-DGAwRIlN.js → NoPermissionsPage-BBXnpc7M.js} +2 -2
- package/dist/admin/chunks/{NoPermissionsPage-DGAwRIlN.js.map → NoPermissionsPage-BBXnpc7M.js.map} +1 -1
- package/dist/admin/chunks/{Preview-BEq0FXda.mjs → Preview-C3lnOgQx.mjs} +244 -116
- package/dist/admin/chunks/Preview-C3lnOgQx.mjs.map +1 -0
- package/dist/admin/chunks/{Preview-CXtc9yEV.js → Preview-DB7ZGawL.js} +240 -112
- package/dist/admin/chunks/Preview-DB7ZGawL.js.map +1 -0
- package/dist/admin/chunks/{en-C1CjdAtC.js → en-CH__IC8g.js} +4 -1
- package/dist/admin/chunks/{en-C1CjdAtC.js.map → en-CH__IC8g.js.map} +1 -1
- package/dist/admin/chunks/{en-LfhocNG2.mjs → en-DBP0Gaid.mjs} +4 -1
- package/dist/admin/chunks/{en-LfhocNG2.mjs.map → en-DBP0Gaid.mjs.map} +1 -1
- package/dist/admin/chunks/{index-Cs6qwFQu.mjs → index-DYrCidCq.mjs} +225 -140
- package/dist/admin/chunks/index-DYrCidCq.mjs.map +1 -0
- package/dist/admin/chunks/{index-BHimg6jW.js → index-DoUQnFTk.js} +227 -138
- package/dist/admin/chunks/index-DoUQnFTk.js.map +1 -0
- package/dist/admin/chunks/{layout-Dtahn4Ue.js → layout-CqndYVtU.js} +86 -13
- package/dist/admin/chunks/layout-CqndYVtU.js.map +1 -0
- package/dist/admin/chunks/{layout-DStNia_P.mjs → layout-D2NJmgCw.mjs} +78 -5
- package/dist/admin/chunks/layout-D2NJmgCw.mjs.map +1 -0
- package/dist/admin/chunks/{useDragAndDrop-gcqEJMnO.js → objects-BJTP843m.js} +73 -1
- package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
- package/dist/admin/chunks/{useDragAndDrop-HYwNDExe.mjs → objects-D2z-IJgu.mjs} +72 -2
- package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
- package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
- package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
- package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
- package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
- package/dist/admin/chunks/{relations-XOYEEqMz.js → usePrev-Cm_0-qRC.js} +18 -2
- package/dist/admin/chunks/usePrev-Cm_0-qRC.js.map +1 -0
- package/dist/admin/chunks/{relations-Cq8NRUto.mjs → usePrev-DinC2aha.mjs} +18 -4
- package/dist/admin/chunks/usePrev-DinC2aha.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/InjectionZone.d.ts +7 -1
- package/dist/admin/src/content-manager.d.ts +4 -0
- package/dist/admin/src/features/DocumentContext.d.ts +48 -0
- package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
- package/dist/admin/src/hooks/useDocument.d.ts +2 -0
- package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +2 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +9 -4
- package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +5 -2
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +3 -3
- package/dist/admin/src/preview/components/PreviewContent.d.ts +1 -2
- package/dist/admin/src/preview/pages/Preview.d.ts +2 -0
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/admin/chunks/EditViewPage-CYe7wAXF.mjs.map +0 -1
- package/dist/admin/chunks/EditViewPage-DFkloeMZ.js.map +0 -1
- package/dist/admin/chunks/History-C333pgXF.mjs.map +0 -1
- package/dist/admin/chunks/History-CQznK1pG.js.map +0 -1
- package/dist/admin/chunks/Input-BexkC_pp.mjs.map +0 -1
- package/dist/admin/chunks/Input-DLJZHw9Y.js.map +0 -1
- package/dist/admin/chunks/Preview-BEq0FXda.mjs.map +0 -1
- package/dist/admin/chunks/Preview-CXtc9yEV.js.map +0 -1
- package/dist/admin/chunks/Relations-o7_hVGyK.js +0 -1318
- package/dist/admin/chunks/Relations-o7_hVGyK.js.map +0 -1
- package/dist/admin/chunks/Relations-qeZyLDgQ.mjs +0 -1291
- package/dist/admin/chunks/Relations-qeZyLDgQ.mjs.map +0 -1
- package/dist/admin/chunks/index-BHimg6jW.js.map +0 -1
- package/dist/admin/chunks/index-Cs6qwFQu.mjs.map +0 -1
- package/dist/admin/chunks/layout-DStNia_P.mjs.map +0 -1
- package/dist/admin/chunks/layout-Dtahn4Ue.js.map +0 -1
- package/dist/admin/chunks/objects-C3EebVVe.js +0 -76
- package/dist/admin/chunks/objects-C3EebVVe.js.map +0 -1
- package/dist/admin/chunks/objects-wl73iEma.mjs +0 -73
- package/dist/admin/chunks/objects-wl73iEma.mjs.map +0 -1
- package/dist/admin/chunks/relations-Cq8NRUto.mjs.map +0 -1
- package/dist/admin/chunks/relations-XOYEEqMz.js.map +0 -1
- package/dist/admin/chunks/uk-B24MoTVg.js +0 -145
- package/dist/admin/chunks/uk-B24MoTVg.js.map +0 -1
- package/dist/admin/chunks/uk-Cpgmm7gE.mjs +0 -140
- package/dist/admin/chunks/uk-Cpgmm7gE.mjs.map +0 -1
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs.map +0 -1
- package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +0 -1
- package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs +0 -18
- package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs.map +0 -1
- package/dist/admin/chunks/usePrev-DIYl-IAL.js +0 -21
- package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +0 -1
@@ -1,15 +1,15 @@
|
|
1
|
-
import {
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
2
2
|
import * as React from 'react';
|
3
|
-
import { useNotification, useClipboard,
|
4
|
-
import {
|
3
|
+
import { useStrapiApp, useQueryParams, useNotification, useClipboard, DescriptionComponentRenderer, useHistory, createContext, useRBAC, Page, Form } from '@strapi/admin/strapi-admin';
|
4
|
+
import { Box, Typography, Tabs, Flex, IconButton, Grid, Portal, FocusTrap } from '@strapi/design-system';
|
5
|
+
import { Link, Cross, ArrowLineLeft } from '@strapi/icons';
|
5
6
|
import { useIntl } from 'react-intl';
|
6
|
-
import { Link as Link$1, useParams } from 'react-router-dom';
|
7
|
-
import { D as DocumentStatus, l as DocumentRBAC, d as buildValidParams, C as COLLECTION_TYPES, N as useGetPreviewUrlQuery, M as useDocument, h as useDocumentLayout } from './index-Cs6qwFQu.mjs';
|
8
|
-
import { F as FormLayout } from './Input-BexkC_pp.mjs';
|
9
|
-
import { Link, Cross } from '@strapi/icons';
|
10
|
-
import { stringify } from 'qs';
|
7
|
+
import { Link as Link$1, useParams, useLocation } from 'react-router-dom';
|
11
8
|
import { styled } from 'styled-components';
|
12
|
-
import {
|
9
|
+
import { I as InjectionZone, i as DocumentActionButton, D as DocumentStatus, f as DocumentRBAC, j as buildValidParams, C as COLLECTION_TYPES, V as useGetPreviewUrlQuery, U as useDocument, d as useDocumentLayout, q as DocumentContextProvider, h as createYupSchema } from './index-DYrCidCq.mjs';
|
10
|
+
import { a as FormLayout } from './Input-BHucdqva.mjs';
|
11
|
+
import { stringify } from 'qs';
|
12
|
+
import { getDocumentStatus } from './EditViewPage-BNpRr7fZ.mjs';
|
13
13
|
import 'lodash/fp/mapValues';
|
14
14
|
import 'yup';
|
15
15
|
import 'fractional-indexing';
|
@@ -70,19 +70,16 @@ import 'prismjs/components/prism-typescript';
|
|
70
70
|
import 'prismjs/components/prism-tsx';
|
71
71
|
import 'prismjs/components/prism-vbnet';
|
72
72
|
import 'prismjs/components/prism-yaml';
|
73
|
-
import './usePrev-
|
74
|
-
import './
|
73
|
+
import './usePrev-DinC2aha.mjs';
|
74
|
+
import './objects-D2z-IJgu.mjs';
|
75
75
|
import 'react-dnd';
|
76
|
-
import '@radix-ui/react-toolbar';
|
77
|
-
import 'react-dnd-html5-backend';
|
78
|
-
import './objects-wl73iEma.mjs';
|
79
76
|
import 'lodash/clone';
|
80
77
|
import 'lodash/toPath';
|
81
|
-
import '
|
82
|
-
import 'react-
|
83
|
-
import './relations-Cq8NRUto.mjs';
|
78
|
+
import '@radix-ui/react-toolbar';
|
79
|
+
import 'react-dnd-html5-backend';
|
84
80
|
import './ComponentIcon-BZcTc4rj.mjs';
|
85
81
|
import '@strapi/icons/symbols';
|
82
|
+
import 'react-window';
|
86
83
|
import 'codemirror5';
|
87
84
|
import 'sanitize-html';
|
88
85
|
import 'highlight.js';
|
@@ -99,40 +96,6 @@ import 'markdown-it-sup';
|
|
99
96
|
import 'highlight.js/styles/solarized-dark.css';
|
100
97
|
import 'codemirror5/addon/display/placeholder';
|
101
98
|
|
102
|
-
const UnstablePreviewContent = ()=>{
|
103
|
-
const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
|
104
|
-
const layout = usePreviewContext('PreviewContent', (state)=>state.layout);
|
105
|
-
const { formatMessage } = useIntl();
|
106
|
-
return /*#__PURE__*/ jsxs(Flex, {
|
107
|
-
flex: 1,
|
108
|
-
overflow: "auto",
|
109
|
-
alignItems: "stretch",
|
110
|
-
children: [
|
111
|
-
/*#__PURE__*/ jsx(Box, {
|
112
|
-
overflow: "auto",
|
113
|
-
flex: 1,
|
114
|
-
borderWidth: "0 1px 0 0",
|
115
|
-
borderColor: "neutral150",
|
116
|
-
padding: 6,
|
117
|
-
children: /*#__PURE__*/ jsx(FormLayout, {
|
118
|
-
layout: layout.layout,
|
119
|
-
hasBackground: true
|
120
|
-
})
|
121
|
-
}),
|
122
|
-
/*#__PURE__*/ jsx(Box, {
|
123
|
-
src: previewUrl,
|
124
|
-
title: formatMessage({
|
125
|
-
id: 'content-manager.preview.panel.title',
|
126
|
-
defaultMessage: 'Preview'
|
127
|
-
}),
|
128
|
-
flex: 1,
|
129
|
-
height: "100%",
|
130
|
-
borderWidth: 0,
|
131
|
-
tag: "iframe"
|
132
|
-
}, previewUrl)
|
133
|
-
]
|
134
|
-
});
|
135
|
-
};
|
136
99
|
const PreviewContent = ()=>{
|
137
100
|
const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
|
138
101
|
const { formatMessage } = useIntl();
|
@@ -229,42 +192,45 @@ const PreviewTabs = ()=>{
|
|
229
192
|
if (!hasDraftAndPublish) {
|
230
193
|
return null;
|
231
194
|
}
|
232
|
-
return /*#__PURE__*/ jsx(
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
195
|
+
return /*#__PURE__*/ jsx(Tabs.Root, {
|
196
|
+
variant: "simple",
|
197
|
+
value: query.status || 'draft',
|
198
|
+
onValueChange: handleTabChange,
|
199
|
+
children: /*#__PURE__*/ jsxs(Tabs.List, {
|
200
|
+
"aria-label": formatMessage({
|
201
|
+
id: 'preview.tabs.label',
|
202
|
+
defaultMessage: 'Document status'
|
203
|
+
}),
|
204
|
+
children: [
|
205
|
+
/*#__PURE__*/ jsx(StatusTab, {
|
206
|
+
value: "draft",
|
207
|
+
children: formatMessage({
|
208
|
+
id: 'content-manager.containers.List.draft',
|
209
|
+
defaultMessage: 'draft'
|
210
|
+
})
|
241
211
|
}),
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
})
|
249
|
-
}),
|
250
|
-
/*#__PURE__*/ jsx(StatusTab, {
|
251
|
-
value: "published",
|
252
|
-
disabled: documentStatus === 'draft',
|
253
|
-
children: formatMessage({
|
254
|
-
id: 'content-manager.containers.List.published',
|
255
|
-
defaultMessage: 'published'
|
256
|
-
})
|
212
|
+
/*#__PURE__*/ jsx(StatusTab, {
|
213
|
+
value: "published",
|
214
|
+
disabled: documentStatus === 'draft',
|
215
|
+
children: formatMessage({
|
216
|
+
id: 'content-manager.containers.List.published',
|
217
|
+
defaultMessage: 'published'
|
257
218
|
})
|
258
|
-
|
259
|
-
|
219
|
+
})
|
220
|
+
]
|
260
221
|
})
|
261
222
|
});
|
262
223
|
};
|
263
224
|
/* -------------------------------------------------------------------------------------------------
|
264
225
|
* PreviewHeader
|
265
226
|
* -----------------------------------------------------------------------------------------------*/ const UnstablePreviewHeader = ()=>{
|
266
|
-
// Get the document title
|
267
227
|
const title = usePreviewContext('PreviewHeader', (state)=>state.title);
|
228
|
+
const document = usePreviewContext('PreviewHeader', (state)=>state.document);
|
229
|
+
const schema = usePreviewContext('PreviewHeader', (state)=>state.schema);
|
230
|
+
const meta = usePreviewContext('PreviewHeader', (state)=>state.meta);
|
231
|
+
const plugins = useStrapiApp('PreviewHeader', (state)=>state.plugins);
|
232
|
+
const iframeRef = usePreviewContext('PreviewHeader', (state)=>state.iframeRef);
|
233
|
+
const [{ query }] = useQueryParams();
|
268
234
|
const { formatMessage } = useIntl();
|
269
235
|
const { toggleNotification } = useNotification();
|
270
236
|
const { copy } = useClipboard();
|
@@ -278,7 +244,23 @@ const PreviewTabs = ()=>{
|
|
278
244
|
type: 'success'
|
279
245
|
});
|
280
246
|
};
|
247
|
+
const hasDraftAndPublish = schema.options?.draftAndPublish ?? false;
|
248
|
+
const documentActionProps = {
|
249
|
+
activeTab: query.status ?? null,
|
250
|
+
collectionType: schema.kind === 'collectionType' ? 'collection-types' : 'single-types',
|
251
|
+
model: schema.uid,
|
252
|
+
documentId: document.documentId,
|
253
|
+
document,
|
254
|
+
meta,
|
255
|
+
onPreview: ()=>{
|
256
|
+
iframeRef?.current?.contentWindow?.postMessage({
|
257
|
+
type: 'strapiUpdate'
|
258
|
+
}, // The iframe origin is safe to use since it must be provided through the allowedOrigins config
|
259
|
+
new URL(iframeRef.current.src).origin);
|
260
|
+
}
|
261
|
+
};
|
281
262
|
return /*#__PURE__*/ jsxs(Flex, {
|
263
|
+
height: "48px",
|
282
264
|
gap: 4,
|
283
265
|
background: "neutral0",
|
284
266
|
borderColor: "neutral150",
|
@@ -306,17 +288,60 @@ const PreviewTabs = ()=>{
|
|
306
288
|
/*#__PURE__*/ jsxs(Flex, {
|
307
289
|
flex: 1,
|
308
290
|
paddingRight: 2,
|
309
|
-
|
291
|
+
gap: 2,
|
292
|
+
justifyContent: hasDraftAndPublish ? 'space-between' : 'flex-end',
|
310
293
|
children: [
|
311
|
-
/*#__PURE__*/ jsx(
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
294
|
+
/*#__PURE__*/ jsx(Flex, {
|
295
|
+
flex: "1 1 70%",
|
296
|
+
children: /*#__PURE__*/ jsx(PreviewTabs, {})
|
297
|
+
}),
|
298
|
+
/*#__PURE__*/ jsxs(Flex, {
|
299
|
+
gap: 2,
|
300
|
+
children: [
|
301
|
+
/*#__PURE__*/ jsx(IconButton, {
|
302
|
+
type: "button",
|
303
|
+
label: formatMessage({
|
304
|
+
id: 'preview.copy.label',
|
305
|
+
defaultMessage: 'Copy preview link'
|
306
|
+
}),
|
307
|
+
onClick: handleCopyLink,
|
308
|
+
children: /*#__PURE__*/ jsx(Link, {})
|
309
|
+
}),
|
310
|
+
/*#__PURE__*/ jsx(InjectionZone, {
|
311
|
+
area: "preview.actions"
|
312
|
+
}),
|
313
|
+
/*#__PURE__*/ jsx(DescriptionComponentRenderer, {
|
314
|
+
props: documentActionProps,
|
315
|
+
descriptions: plugins['content-manager'].apis.getDocumentActions('preview'),
|
316
|
+
children: (actions)=>{
|
317
|
+
const filteredActions = actions.filter((action)=>[
|
318
|
+
action.position
|
319
|
+
].flat().includes('preview'));
|
320
|
+
const [primaryAction, secondaryAction] = filteredActions;
|
321
|
+
if (!primaryAction && !secondaryAction) return null;
|
322
|
+
// Both actions are available when draft and publish enabled
|
323
|
+
if (primaryAction && secondaryAction) {
|
324
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
325
|
+
children: [
|
326
|
+
/*#__PURE__*/ jsx(DocumentActionButton, {
|
327
|
+
...secondaryAction,
|
328
|
+
variant: secondaryAction.variant || 'secondary'
|
329
|
+
}),
|
330
|
+
/*#__PURE__*/ jsx(DocumentActionButton, {
|
331
|
+
...primaryAction,
|
332
|
+
variant: primaryAction.variant || 'default'
|
333
|
+
})
|
334
|
+
]
|
335
|
+
});
|
336
|
+
}
|
337
|
+
// Otherwise we just have the save action
|
338
|
+
return /*#__PURE__*/ jsx(DocumentActionButton, {
|
339
|
+
...primaryAction,
|
340
|
+
variant: primaryAction.variant || 'secondary'
|
341
|
+
});
|
342
|
+
}
|
343
|
+
})
|
344
|
+
]
|
320
345
|
})
|
321
346
|
]
|
322
347
|
})
|
@@ -406,8 +431,16 @@ const TitleContainer = styled(Flex)`
|
|
406
431
|
const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
|
407
432
|
/* -------------------------------------------------------------------------------------------------
|
408
433
|
* PreviewPage
|
409
|
-
* -----------------------------------------------------------------------------------------------*/ const
|
434
|
+
* -----------------------------------------------------------------------------------------------*/ const AnimatedArrow = styled(ArrowLineLeft)`
|
435
|
+
will-change: transform;
|
436
|
+
rotate: ${(props)=>props.isSideEditorOpen ? '0deg' : '180deg'};
|
437
|
+
transition: rotate 0.2s ease-in-out;
|
438
|
+
`;
|
439
|
+
const PreviewPage = ()=>{
|
440
|
+
const location = useLocation();
|
410
441
|
const { formatMessage } = useIntl();
|
442
|
+
const iframeRef = React.useRef(null);
|
443
|
+
const [isSideEditorOpen, setIsSideEditorOpen] = React.useState(true);
|
411
444
|
// Read all the necessary data from the URL to find the right preview URL
|
412
445
|
const { slug: model, id: documentId, collectionType } = useParams();
|
413
446
|
const [{ query }] = useQueryParams();
|
@@ -441,16 +474,28 @@ const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
|
|
441
474
|
params
|
442
475
|
});
|
443
476
|
const documentLayoutResponse = useDocumentLayout(model);
|
444
|
-
|
477
|
+
const isLoading = previewUrlResponse.isLoading || documentLayoutResponse.isLoading || documentResponse.isLoading;
|
478
|
+
if (isLoading && !documentResponse.document?.documentId) {
|
445
479
|
return /*#__PURE__*/ jsx(Page.Loading, {});
|
446
480
|
}
|
447
|
-
|
481
|
+
const initialValues = documentResponse.getInitialFormValues();
|
482
|
+
if (previewUrlResponse.error || documentLayoutResponse.error || !documentResponse.document || !documentResponse.meta || !documentResponse.schema || !initialValues) {
|
448
483
|
return /*#__PURE__*/ jsx(Page.Error, {});
|
449
484
|
}
|
450
485
|
if (!previewUrlResponse.data?.data?.url) {
|
451
486
|
return /*#__PURE__*/ jsx(Page.NoData, {});
|
452
487
|
}
|
453
488
|
const documentTitle = documentResponse.getTitle(documentLayoutResponse.edit.settings.mainField);
|
489
|
+
const validateSync = (values, options)=>{
|
490
|
+
const yupSchema = createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
|
491
|
+
status: documentResponse.document?.status,
|
492
|
+
...options
|
493
|
+
});
|
494
|
+
return yupSchema.validateSync(values, {
|
495
|
+
abortEarly: false
|
496
|
+
});
|
497
|
+
};
|
498
|
+
const previewUrl = previewUrlResponse.data.data.url;
|
454
499
|
return /*#__PURE__*/ jsxs(Fragment, {
|
455
500
|
children: [
|
456
501
|
/*#__PURE__*/ jsx(Page.Title, {
|
@@ -461,31 +506,110 @@ const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
|
|
461
506
|
contentType: documentTitle
|
462
507
|
})
|
463
508
|
}),
|
464
|
-
/*#__PURE__*/ jsx(
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
509
|
+
/*#__PURE__*/ jsx(DocumentContextProvider, {
|
510
|
+
initialDocument: {
|
511
|
+
documentId: documentId || '',
|
512
|
+
model,
|
513
|
+
collectionType
|
514
|
+
},
|
515
|
+
children: /*#__PURE__*/ jsx(PreviewProvider, {
|
516
|
+
url: previewUrl,
|
517
|
+
document: documentResponse.document,
|
518
|
+
title: documentTitle,
|
519
|
+
meta: documentResponse.meta,
|
520
|
+
schema: documentResponse.schema,
|
521
|
+
layout: documentLayoutResponse.edit,
|
522
|
+
iframeRef: iframeRef,
|
523
|
+
children: /*#__PURE__*/ jsx(Form, {
|
524
|
+
method: "PUT",
|
525
|
+
disabled: query.status === 'published' && documentResponse && documentResponse.document.status === 'published',
|
526
|
+
initialValues: documentResponse.getInitialFormValues(),
|
527
|
+
initialErrors: location?.state?.forceValidation ? validateSync(initialValues, {}) : {},
|
477
528
|
height: "100%",
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
529
|
+
validate: (values, options)=>{
|
530
|
+
const yupSchema = createYupSchema(documentResponse.schema?.attributes, documentResponse.components, {
|
531
|
+
status: documentResponse.document?.status,
|
532
|
+
...options
|
533
|
+
});
|
534
|
+
return yupSchema.validate(values, {
|
535
|
+
abortEarly: false
|
536
|
+
});
|
537
|
+
},
|
538
|
+
children: /*#__PURE__*/ jsx(Flex, {
|
539
|
+
direction: "column",
|
540
|
+
height: "100%",
|
541
|
+
alignItems: "stretch",
|
542
|
+
children: window.strapi.future.isEnabled('unstablePreviewSideEditor') ? /*#__PURE__*/ jsxs(Fragment, {
|
543
|
+
children: [
|
544
|
+
/*#__PURE__*/ jsx(UnstablePreviewHeader, {}),
|
545
|
+
/*#__PURE__*/ jsxs(Flex, {
|
546
|
+
flex: 1,
|
547
|
+
overflow: "auto",
|
548
|
+
alignItems: "stretch",
|
549
|
+
children: [
|
550
|
+
/*#__PURE__*/ jsx(Box, {
|
551
|
+
overflow: "auto",
|
552
|
+
width: isSideEditorOpen ? '50%' : 0,
|
553
|
+
borderWidth: "0 1px 0 0",
|
554
|
+
borderColor: "neutral150",
|
555
|
+
paddingTop: 6,
|
556
|
+
paddingBottom: 6,
|
557
|
+
// Remove horizontal padding when the editor is closed or it won't fully disappear
|
558
|
+
paddingLeft: isSideEditorOpen ? 6 : 0,
|
559
|
+
paddingRight: isSideEditorOpen ? 6 : 0,
|
560
|
+
transition: "all 0.2s ease-in-out",
|
561
|
+
children: /*#__PURE__*/ jsx(FormLayout, {
|
562
|
+
layout: documentLayoutResponse.edit.layout,
|
563
|
+
hasBackground: true
|
564
|
+
})
|
565
|
+
}),
|
566
|
+
/*#__PURE__*/ jsxs(Box, {
|
567
|
+
position: "relative",
|
568
|
+
flex: 1,
|
569
|
+
height: "100%",
|
570
|
+
overflow: "hidden",
|
571
|
+
children: [
|
572
|
+
/*#__PURE__*/ jsx(Box, {
|
573
|
+
"data-testid": "preview-iframe",
|
574
|
+
ref: iframeRef,
|
575
|
+
src: previewUrl,
|
576
|
+
title: formatMessage({
|
577
|
+
id: 'content-manager.preview.panel.title',
|
578
|
+
defaultMessage: 'Preview'
|
579
|
+
}),
|
580
|
+
width: "100%",
|
581
|
+
height: "100%",
|
582
|
+
borderWidth: 0,
|
583
|
+
tag: "iframe"
|
584
|
+
}, previewUrl),
|
585
|
+
/*#__PURE__*/ jsx(IconButton, {
|
586
|
+
variant: "tertiary",
|
587
|
+
label: formatMessage(isSideEditorOpen ? {
|
588
|
+
id: 'content-manager.preview.content.close-editor',
|
589
|
+
defaultMessage: 'Close editor'
|
590
|
+
} : {
|
591
|
+
id: 'content-manager.preview.content.open-editor',
|
592
|
+
defaultMessage: 'Open editor'
|
593
|
+
}),
|
594
|
+
onClick: ()=>setIsSideEditorOpen((prev)=>!prev),
|
595
|
+
position: "absolute",
|
596
|
+
top: 2,
|
597
|
+
left: 2,
|
598
|
+
children: /*#__PURE__*/ jsx(AnimatedArrow, {
|
599
|
+
isSideEditorOpen: isSideEditorOpen
|
600
|
+
})
|
601
|
+
})
|
602
|
+
]
|
603
|
+
})
|
604
|
+
]
|
605
|
+
})
|
606
|
+
]
|
607
|
+
}) : /*#__PURE__*/ jsxs(Fragment, {
|
608
|
+
children: [
|
609
|
+
/*#__PURE__*/ jsx(PreviewHeader, {}),
|
610
|
+
/*#__PURE__*/ jsx(PreviewContent, {})
|
611
|
+
]
|
612
|
+
})
|
489
613
|
})
|
490
614
|
})
|
491
615
|
})
|
@@ -505,6 +629,10 @@ const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
|
|
505
629
|
{
|
506
630
|
action: 'plugin::content-manager.explorer.update',
|
507
631
|
subject: model
|
632
|
+
},
|
633
|
+
{
|
634
|
+
action: 'plugin::content-manager.explorer.publish',
|
635
|
+
subject: model
|
508
636
|
}
|
509
637
|
]);
|
510
638
|
if (isLoading) {
|
@@ -548,4 +676,4 @@ const ProtectedPreviewPage = ()=>{
|
|
548
676
|
};
|
549
677
|
|
550
678
|
export { ProtectedPreviewPage, usePreviewContext };
|
551
|
-
//# sourceMappingURL=Preview-
|
679
|
+
//# sourceMappingURL=Preview-C3lnOgQx.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Preview-C3lnOgQx.mjs","sources":["../../../admin/src/preview/components/PreviewContent.tsx","../../../admin/src/preview/components/PreviewHeader.tsx","../../../admin/src/preview/pages/Preview.tsx"],"sourcesContent":["import { Box } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { usePreviewContext } from '../pages/Preview';\n\nconst PreviewContent = () => {\n const previewUrl = usePreviewContext('PreviewContent', (state) => state.url);\n\n const { formatMessage } = useIntl();\n\n return (\n <Box\n src={previewUrl}\n /**\n * For some reason, changing an iframe's src tag causes the browser to add a new item in the\n * history stack. This is an issue for us as it means clicking the back button will not let us\n * go back to the edit view. To fix it, we need to trick the browser into thinking this is a\n * different iframe when the preview URL changes. So we set a key prop to force React\n * to mount a different node when the src changes.\n */\n key={previewUrl}\n title={formatMessage({\n id: 'content-manager.preview.panel.title',\n defaultMessage: 'Preview',\n })}\n width=\"100%\"\n height=\"100%\"\n borderWidth={0}\n tag=\"iframe\"\n />\n );\n};\n\nexport { PreviewContent };\n","import * as React from 'react';\n\nimport {\n DescriptionComponentRenderer,\n useClipboard,\n useHistory,\n useNotification,\n useQueryParams,\n useStrapiApp,\n} from '@strapi/admin/strapi-admin';\nimport { IconButton, Tabs, Typography, Grid, Flex } from '@strapi/design-system';\nimport { Cross, Link as LinkIcon } from '@strapi/icons';\nimport { stringify } from 'qs';\nimport { useIntl } from 'react-intl';\nimport { Link, type To } from 'react-router-dom';\nimport { styled } from 'styled-components';\n\nimport { InjectionZone } from '../../components/InjectionZone';\nimport { DocumentActionButton } from '../../pages/EditView/components/DocumentActions';\nimport { DocumentStatus } from '../../pages/EditView/components/DocumentStatus';\nimport { getDocumentStatus } from '../../pages/EditView/EditViewPage';\nimport { usePreviewContext } from '../pages/Preview';\n\nimport type { ContentManagerPlugin, DocumentActionProps } from '../../content-manager';\n\n/* -------------------------------------------------------------------------------------------------\n * ClosePreviewButton\n * -----------------------------------------------------------------------------------------------*/\n\nconst ClosePreviewButton = () => {\n const [{ query }] = useQueryParams<{\n plugins?: Record<string, unknown>;\n }>();\n const { formatMessage } = useIntl();\n\n const canGoBack = useHistory('BackButton', (state) => state.canGoBack);\n const goBack = useHistory('BackButton', (state) => state.goBack);\n const history = useHistory('BackButton', (state) => state.history);\n const locationIndex = useHistory('BackButton', (state) => state.currentLocationIndex);\n\n /**\n * Get the link destination from the history.\n * Rely on a fallback (the parent edit view page) if there's no page to go back .\n */\n const historyTo = canGoBack ? history.at(locationIndex - 2) : undefined;\n const fallback = {\n pathname: '..',\n search: stringify(query, { encode: false }),\n } satisfies To;\n const toWithFallback = historyTo ?? fallback;\n\n const handleClick = (e: React.MouseEvent) => {\n if (canGoBack) {\n // Prevent normal link behavior, go back in the history stack instead\n e.preventDefault();\n goBack();\n return;\n }\n\n // Otherwise rely on native link behavior to go back to the edit view. We don't use navigate()\n // here in order to get the relative=\"path\" functionality from the Link component.\n };\n\n return (\n <IconButton\n variant=\"ghost\"\n tag={Link}\n relative=\"path\"\n to={toWithFallback}\n onClick={handleClick}\n label={formatMessage({\n id: 'content-manager.preview.header.close',\n defaultMessage: 'Close preview',\n })}\n >\n <Cross />\n </IconButton>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Status\n * -----------------------------------------------------------------------------------------------*/\n\nconst Status = () => {\n // Get status\n const document = usePreviewContext('PreviewHeader', (state) => state.document);\n const schema = usePreviewContext('PreviewHeader', (state) => state.schema);\n const meta = usePreviewContext('PreviewHeader', (state) => state.meta);\n const hasDraftAndPublished = schema?.options?.draftAndPublish ?? false;\n\n if (!hasDraftAndPublished) {\n return null;\n }\n\n const status = getDocumentStatus(document, meta);\n\n return <DocumentStatus status={status} size=\"XS\" />;\n};\n\nconst PreviewTabs = () => {\n const { formatMessage } = useIntl();\n\n // URL query params\n const [{ query }, setQuery] = useQueryParams<{ status: 'draft' | 'published' }>();\n\n // Get status\n const document = usePreviewContext('PreviewHeader', (state) => state.document);\n const schema = usePreviewContext('PreviewHeader', (state) => state.schema);\n const meta = usePreviewContext('PreviewHeader', (state) => state.meta);\n const hasDraftAndPublish = schema?.options?.draftAndPublish ?? false;\n const documentStatus = getDocumentStatus(document, meta);\n\n const handleTabChange = (status: string) => {\n if (status === 'published' || status === 'draft') {\n setQuery({ status }, 'push', true);\n }\n };\n\n if (!hasDraftAndPublish) {\n return null;\n }\n\n return (\n <Tabs.Root variant=\"simple\" value={query.status || 'draft'} onValueChange={handleTabChange}>\n <Tabs.List\n aria-label={formatMessage({\n id: 'preview.tabs.label',\n defaultMessage: 'Document status',\n })}\n >\n <StatusTab value=\"draft\">\n {formatMessage({\n id: 'content-manager.containers.List.draft',\n defaultMessage: 'draft',\n })}\n </StatusTab>\n <StatusTab value=\"published\" disabled={documentStatus === 'draft'}>\n {formatMessage({\n id: 'content-manager.containers.List.published',\n defaultMessage: 'published',\n })}\n </StatusTab>\n </Tabs.List>\n </Tabs.Root>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * PreviewHeader\n * -----------------------------------------------------------------------------------------------*/\n\nconst UnstablePreviewHeader = () => {\n const title = usePreviewContext('PreviewHeader', (state) => state.title);\n const document = usePreviewContext('PreviewHeader', (state) => state.document);\n const schema = usePreviewContext('PreviewHeader', (state) => state.schema);\n const meta = usePreviewContext('PreviewHeader', (state) => state.meta);\n const plugins = useStrapiApp('PreviewHeader', (state) => state.plugins);\n const iframeRef = usePreviewContext('PreviewHeader', (state) => state.iframeRef);\n\n const [{ query }] = useQueryParams<{\n status?: 'draft' | 'published';\n }>();\n const { formatMessage } = useIntl();\n const { toggleNotification } = useNotification();\n const { copy } = useClipboard();\n\n const handleCopyLink = () => {\n copy(window.location.href);\n toggleNotification({\n message: formatMessage({\n id: 'content-manager.preview.copy.success',\n defaultMessage: 'Copied preview link',\n }),\n type: 'success',\n });\n };\n\n const hasDraftAndPublish = schema.options?.draftAndPublish ?? false;\n const documentActionProps = {\n activeTab: query.status ?? null,\n collectionType: schema.kind === 'collectionType' ? 'collection-types' : 'single-types',\n model: schema.uid,\n documentId: document.documentId,\n document,\n meta,\n onPreview: () => {\n iframeRef?.current?.contentWindow?.postMessage(\n { type: 'strapiUpdate' },\n // The iframe origin is safe to use since it must be provided through the allowedOrigins config\n new URL(iframeRef.current.src).origin\n );\n },\n } satisfies DocumentActionProps;\n\n return (\n <Flex height=\"48px\" gap={4} background=\"neutral0\" borderColor=\"neutral150\" tag=\"header\">\n {/* Title and status */}\n <TitleContainer height=\"100%\" paddingLeft={2} paddingRight={4}>\n <ClosePreviewButton />\n <PreviewTitle\n tag=\"h1\"\n title={title}\n maxWidth=\"200px\"\n fontSize={2}\n paddingLeft={2}\n paddingRight={3}\n fontWeight={600}\n >\n {title}\n </PreviewTitle>\n <Status />\n </TitleContainer>\n\n {/* Tabs and actions */}\n <Flex\n flex={1}\n paddingRight={2}\n gap={2}\n justifyContent={hasDraftAndPublish ? 'space-between' : 'flex-end'}\n >\n <Flex flex=\"1 1 70%\">\n <PreviewTabs />\n </Flex>\n <Flex gap={2}>\n <IconButton\n type=\"button\"\n label={formatMessage({\n id: 'preview.copy.label',\n defaultMessage: 'Copy preview link',\n })}\n onClick={handleCopyLink}\n >\n <LinkIcon />\n </IconButton>\n <InjectionZone area=\"preview.actions\" />\n <DescriptionComponentRenderer\n props={documentActionProps}\n descriptions={(\n plugins['content-manager'].apis as ContentManagerPlugin['config']['apis']\n ).getDocumentActions('preview')}\n >\n {(actions) => {\n const filteredActions = actions.filter((action) =>\n [action.position].flat().includes('preview')\n );\n const [primaryAction, secondaryAction] = filteredActions;\n\n if (!primaryAction && !secondaryAction) return null;\n\n // Both actions are available when draft and publish enabled\n if (primaryAction && secondaryAction) {\n return (\n <>\n {/* Save */}\n <DocumentActionButton\n {...secondaryAction}\n variant={secondaryAction.variant || 'secondary'}\n />\n {/* Publish */}\n <DocumentActionButton\n {...primaryAction}\n variant={primaryAction.variant || 'default'}\n />\n </>\n );\n }\n\n // Otherwise we just have the save action\n return (\n <DocumentActionButton\n {...primaryAction}\n variant={primaryAction.variant || 'secondary'}\n />\n );\n }}\n </DescriptionComponentRenderer>\n </Flex>\n </Flex>\n </Flex>\n );\n};\n\nconst PreviewHeader = () => {\n // Get the document title\n const title = usePreviewContext('PreviewHeader', (state) => state.title);\n\n const { formatMessage } = useIntl();\n const { toggleNotification } = useNotification();\n const { copy } = useClipboard();\n\n const handleCopyLink = () => {\n copy(window.location.href);\n toggleNotification({\n message: formatMessage({\n id: 'content-manager.preview.copy.success',\n defaultMessage: 'Copied preview link',\n }),\n type: 'success',\n });\n };\n\n return (\n <Grid.Root\n gap={3}\n gridCols={3}\n paddingLeft={2}\n paddingRight={2}\n background=\"neutral0\"\n borderColor=\"neutral150\"\n tag=\"header\"\n >\n {/* Title and status */}\n <Grid.Item xs={1} paddingTop={2} paddingBottom={2} gap={3}>\n <ClosePreviewButton />\n <PreviewTitle tag=\"h1\" fontWeight={600} fontSize={2} maxWidth=\"200px\" title={title}>\n {title}\n </PreviewTitle>\n <Status />\n </Grid.Item>\n {/* Tabs */}\n <Grid.Item xs={1} marginBottom=\"-1px\" alignItems=\"end\" margin=\"auto\">\n <PreviewTabs />\n </Grid.Item>\n {/* Copy link */}\n <Grid.Item xs={1} justifyContent=\"end\" paddingTop={2} paddingBottom={2}>\n <IconButton\n type=\"button\"\n label={formatMessage({\n id: 'preview.copy.label',\n defaultMessage: 'Copy preview link',\n })}\n onClick={handleCopyLink}\n >\n <LinkIcon />\n </IconButton>\n </Grid.Item>\n </Grid.Root>\n );\n};\n\nconst PreviewTitle = styled(Typography)`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n\nconst StatusTab = styled(Tabs.Trigger)`\n text-transform: uppercase;\n`;\n\nconst TitleContainer = styled(Flex)`\n border-right: 1px solid ${({ theme }) => theme.colors.neutral150};\n`;\n\nexport { PreviewHeader, UnstablePreviewHeader };\n","import * as React from 'react';\n\nimport {\n Page,\n useQueryParams,\n useRBAC,\n createContext,\n Form as FormContext,\n} from '@strapi/admin/strapi-admin';\nimport { Box, Flex, FocusTrap, IconButton, Portal } from '@strapi/design-system';\nimport { ArrowLineLeft } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { styled } from 'styled-components';\n\nimport { GetPreviewUrl } from '../../../../shared/contracts/preview';\nimport { COLLECTION_TYPES } from '../../constants/collections';\nimport { DocumentContextProvider } from '../../features/DocumentContext';\nimport { DocumentRBAC } from '../../features/DocumentRBAC';\nimport { type UseDocument, useDocument } from '../../hooks/useDocument';\nimport { type EditLayout, useDocumentLayout } from '../../hooks/useDocumentLayout';\nimport { FormLayout } from '../../pages/EditView/components/FormLayout';\nimport { buildValidParams } from '../../utils/api';\nimport { createYupSchema } from '../../utils/validation';\nimport { PreviewContent } from '../components/PreviewContent';\nimport { PreviewHeader, UnstablePreviewHeader } from '../components/PreviewHeader';\nimport { useGetPreviewUrlQuery } from '../services/preview';\n\nimport type { UID } from '@strapi/types';\n\n/* -------------------------------------------------------------------------------------------------\n * PreviewProvider\n * -----------------------------------------------------------------------------------------------*/\n\ninterface PreviewContextValue {\n url: string;\n title: string;\n document: NonNullable<ReturnType<UseDocument>['document']>;\n meta: NonNullable<ReturnType<UseDocument>['meta']>;\n schema: NonNullable<ReturnType<UseDocument>['schema']>;\n layout: EditLayout;\n iframeRef?: React.RefObject<HTMLIFrameElement>;\n}\n\nconst [PreviewProvider, usePreviewContext] = createContext<PreviewContextValue>('PreviewPage');\n\n/* -------------------------------------------------------------------------------------------------\n * PreviewPage\n * -----------------------------------------------------------------------------------------------*/\n\nconst AnimatedArrow = styled(ArrowLineLeft)<{ isSideEditorOpen: boolean }>`\n will-change: transform;\n rotate: ${(props) => (props.isSideEditorOpen ? '0deg' : '180deg')};\n transition: rotate 0.2s ease-in-out;\n`;\n\nconst PreviewPage = () => {\n const location = useLocation();\n const { formatMessage } = useIntl();\n\n const iframeRef = React.useRef<HTMLIFrameElement>(null);\n const [isSideEditorOpen, setIsSideEditorOpen] = React.useState(true);\n\n // Read all the necessary data from the URL to find the right preview URL\n const {\n slug: model,\n id: documentId,\n collectionType,\n } = useParams<{\n slug: UID.ContentType;\n id: string;\n collectionType: string;\n }>();\n const [{ query }] = useQueryParams<{\n plugins?: Record<string, unknown>;\n status?: string;\n }>();\n\n const params = React.useMemo(() => buildValidParams(query), [query]);\n\n if (!collectionType) {\n throw new Error('Could not find collectionType in url params');\n }\n\n if (!model) {\n throw new Error('Could not find model in url params');\n }\n\n // Only collection types must have a documentId\n if (collectionType === COLLECTION_TYPES && !documentId) {\n throw new Error('Could not find documentId in url params');\n }\n\n const previewUrlResponse = useGetPreviewUrlQuery({\n params: {\n contentType: model,\n },\n query: {\n documentId,\n locale: params.locale,\n status: params.status as GetPreviewUrl.Request['query']['status'],\n },\n });\n const documentResponse = useDocument({\n model,\n collectionType,\n documentId,\n params,\n });\n const documentLayoutResponse = useDocumentLayout(model);\n\n const isLoading =\n previewUrlResponse.isLoading || documentLayoutResponse.isLoading || documentResponse.isLoading;\n if (isLoading && !documentResponse.document?.documentId) {\n return <Page.Loading />;\n }\n\n const initialValues = documentResponse.getInitialFormValues();\n\n if (\n previewUrlResponse.error ||\n documentLayoutResponse.error ||\n !documentResponse.document ||\n !documentResponse.meta ||\n !documentResponse.schema ||\n !initialValues\n ) {\n return <Page.Error />;\n }\n\n if (!previewUrlResponse.data?.data?.url) {\n return <Page.NoData />;\n }\n\n const documentTitle = documentResponse.getTitle(documentLayoutResponse.edit.settings.mainField);\n\n const validateSync = (values: Record<string, unknown>, options: Record<string, string>) => {\n const yupSchema = createYupSchema(\n documentResponse.schema?.attributes,\n documentResponse.components,\n {\n status: documentResponse.document?.status,\n ...options,\n }\n );\n\n return yupSchema.validateSync(values, { abortEarly: false });\n };\n\n const previewUrl = previewUrlResponse.data.data.url;\n\n return (\n <>\n <Page.Title>\n {formatMessage(\n {\n id: 'content-manager.preview.page-title',\n defaultMessage: '{contentType} preview',\n },\n {\n contentType: documentTitle,\n }\n )}\n </Page.Title>\n <DocumentContextProvider\n initialDocument={{\n documentId: documentId || '',\n model,\n collectionType,\n }}\n >\n <PreviewProvider\n url={previewUrl}\n document={documentResponse.document}\n title={documentTitle}\n meta={documentResponse.meta}\n schema={documentResponse.schema}\n layout={documentLayoutResponse.edit}\n iframeRef={iframeRef}\n >\n <FormContext\n method=\"PUT\"\n disabled={\n query.status === 'published' &&\n documentResponse &&\n documentResponse.document.status === 'published'\n }\n initialValues={documentResponse.getInitialFormValues()}\n initialErrors={location?.state?.forceValidation ? validateSync(initialValues, {}) : {}}\n height=\"100%\"\n validate={(values: Record<string, unknown>, options: Record<string, string>) => {\n const yupSchema = createYupSchema(\n documentResponse.schema?.attributes,\n documentResponse.components,\n {\n status: documentResponse.document?.status,\n ...options,\n }\n );\n\n return yupSchema.validate(values, { abortEarly: false });\n }}\n >\n <Flex direction=\"column\" height=\"100%\" alignItems=\"stretch\">\n {window.strapi.future.isEnabled('unstablePreviewSideEditor') ? (\n <>\n <UnstablePreviewHeader />\n <Flex flex={1} overflow=\"auto\" alignItems=\"stretch\">\n <Box\n overflow=\"auto\"\n width={isSideEditorOpen ? '50%' : 0}\n borderWidth=\"0 1px 0 0\"\n borderColor=\"neutral150\"\n paddingTop={6}\n paddingBottom={6}\n // Remove horizontal padding when the editor is closed or it won't fully disappear\n paddingLeft={isSideEditorOpen ? 6 : 0}\n paddingRight={isSideEditorOpen ? 6 : 0}\n transition=\"all 0.2s ease-in-out\"\n >\n <FormLayout layout={documentLayoutResponse.edit.layout} hasBackground />\n </Box>\n <Box position=\"relative\" flex={1} height=\"100%\" overflow=\"hidden\">\n <Box\n data-testid=\"preview-iframe\"\n ref={iframeRef}\n src={previewUrl}\n /**\n * For some reason, changing an iframe's src tag causes the browser to add a new item in the\n * history stack. This is an issue for us as it means clicking the back button will not let us\n * go back to the edit view. To fix it, we need to trick the browser into thinking this is a\n * different iframe when the preview URL changes. So we set a key prop to force React\n * to mount a different node when the src changes.\n */\n key={previewUrl}\n title={formatMessage({\n id: 'content-manager.preview.panel.title',\n defaultMessage: 'Preview',\n })}\n width=\"100%\"\n height=\"100%\"\n borderWidth={0}\n tag=\"iframe\"\n />\n <IconButton\n variant=\"tertiary\"\n label={formatMessage(\n isSideEditorOpen\n ? {\n id: 'content-manager.preview.content.close-editor',\n defaultMessage: 'Close editor',\n }\n : {\n id: 'content-manager.preview.content.open-editor',\n defaultMessage: 'Open editor',\n }\n )}\n onClick={() => setIsSideEditorOpen((prev) => !prev)}\n position=\"absolute\"\n top={2}\n left={2}\n >\n <AnimatedArrow isSideEditorOpen={isSideEditorOpen} />\n </IconButton>\n </Box>\n </Flex>\n </>\n ) : (\n <>\n <PreviewHeader />\n <PreviewContent />\n </>\n )}\n </Flex>\n </FormContext>\n </PreviewProvider>\n </DocumentContextProvider>\n </>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * ProtectedPreviewPage\n * -----------------------------------------------------------------------------------------------*/\n\nconst ProtectedPreviewPageImpl = () => {\n const { slug: model } = useParams<{\n slug: string;\n }>();\n const {\n permissions = [],\n isLoading,\n error,\n } = useRBAC([\n { action: 'plugin::content-manager.explorer.read', subject: model },\n { action: 'plugin::content-manager.explorer.update', subject: model },\n { action: 'plugin::content-manager.explorer.publish', subject: model },\n ]);\n\n if (isLoading) {\n return <Page.Loading />;\n }\n\n if (error || !model) {\n return (\n <Box\n height=\"100vh\"\n width=\"100vw\"\n position=\"fixed\"\n top={0}\n left={0}\n zIndex={2}\n background=\"neutral0\"\n >\n <Page.Error />\n </Box>\n );\n }\n\n return (\n <Box\n height=\"100vh\"\n width=\"100vw\"\n position=\"fixed\"\n top={0}\n left={0}\n zIndex={2}\n background=\"neutral0\"\n >\n <Page.Protect\n permissions={permissions.filter((permission) =>\n permission.action.includes('explorer.read')\n )}\n >\n <DocumentRBAC permissions={permissions}>\n <PreviewPage />\n </DocumentRBAC>\n </Page.Protect>\n </Box>\n );\n};\n\nconst ProtectedPreviewPage = () => {\n return (\n <Portal>\n <FocusTrap>\n <ProtectedPreviewPageImpl />\n </FocusTrap>\n </Portal>\n );\n};\n\nexport { ProtectedPreviewPage, usePreviewContext };\n"],"names":["PreviewContent","previewUrl","usePreviewContext","state","url","formatMessage","useIntl","_jsx","Box","src","title","id","defaultMessage","width","height","borderWidth","tag","ClosePreviewButton","query","useQueryParams","canGoBack","useHistory","goBack","history","locationIndex","currentLocationIndex","historyTo","at","undefined","fallback","pathname","search","stringify","encode","toWithFallback","handleClick","e","preventDefault","IconButton","variant","Link","relative","to","onClick","label","Cross","Status","document","schema","meta","hasDraftAndPublished","options","draftAndPublish","status","getDocumentStatus","DocumentStatus","size","PreviewTabs","setQuery","hasDraftAndPublish","documentStatus","handleTabChange","Tabs","Root","value","onValueChange","_jsxs","List","aria-label","StatusTab","disabled","UnstablePreviewHeader","plugins","useStrapiApp","iframeRef","toggleNotification","useNotification","copy","useClipboard","handleCopyLink","window","location","href","message","type","documentActionProps","activeTab","collectionType","kind","model","uid","documentId","onPreview","current","contentWindow","postMessage","URL","origin","Flex","gap","background","borderColor","TitleContainer","paddingLeft","paddingRight","PreviewTitle","maxWidth","fontSize","fontWeight","flex","justifyContent","LinkIcon","InjectionZone","area","DescriptionComponentRenderer","props","descriptions","apis","getDocumentActions","actions","filteredActions","filter","action","position","flat","includes","primaryAction","secondaryAction","_Fragment","DocumentActionButton","PreviewHeader","Grid","gridCols","Item","xs","paddingTop","paddingBottom","marginBottom","alignItems","margin","styled","Typography","Trigger","theme","colors","neutral150","PreviewProvider","createContext","AnimatedArrow","ArrowLineLeft","isSideEditorOpen","PreviewPage","useLocation","React","useRef","setIsSideEditorOpen","useState","slug","useParams","params","useMemo","buildValidParams","Error","COLLECTION_TYPES","previewUrlResponse","useGetPreviewUrlQuery","contentType","locale","documentResponse","useDocument","documentLayoutResponse","useDocumentLayout","isLoading","Page","Loading","initialValues","getInitialFormValues","error","data","NoData","documentTitle","getTitle","edit","settings","mainField","validateSync","values","yupSchema","createYupSchema","attributes","components","abortEarly","Title","DocumentContextProvider","initialDocument","layout","FormContext","method","initialErrors","forceValidation","validate","direction","strapi","future","isEnabled","overflow","transition","FormLayout","hasBackground","data-testid","ref","prev","top","left","ProtectedPreviewPageImpl","permissions","useRBAC","subject","zIndex","Protect","permission","DocumentRBAC","ProtectedPreviewPage","Portal","FocusTrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,cAAiB,GAAA,IAAA;A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