@strapi/content-manager 0.0.0-experimental.cffeb3f30bb8beaa0d2a247ba56da461781c6690 → 0.0.0-experimental.d1602f22dc638a4c3c5084965fd6126fff5e9d4f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js → ComponentConfigurationPage-DXwOtpq1.js} +3 -3
  2. package/dist/admin/chunks/{ComponentConfigurationPage-CM3vQxyp.js.map → ComponentConfigurationPage-DXwOtpq1.js.map} +1 -1
  3. package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js → ComponentConfigurationPage-DhYZp4nN.js} +3 -3
  4. package/dist/admin/chunks/{ComponentConfigurationPage-BqW-t7Lr.js.map → ComponentConfigurationPage-DhYZp4nN.js.map} +1 -1
  5. package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js → EditConfigurationPage-D0Ng758X.js} +3 -3
  6. package/dist/admin/chunks/{EditConfigurationPage-CIKO27N8.js.map → EditConfigurationPage-D0Ng758X.js.map} +1 -1
  7. package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js → EditConfigurationPage-DDuPch5d.js} +3 -3
  8. package/dist/admin/chunks/{EditConfigurationPage-CYQ6mJWy.js.map → EditConfigurationPage-DDuPch5d.js.map} +1 -1
  9. package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js → EditViewPage-jCZnUuCR.js} +6 -55
  10. package/dist/admin/chunks/{EditViewPage-DaY9aMeu.js.map → EditViewPage-jCZnUuCR.js.map} +1 -1
  11. package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js → EditViewPage-zSnDwLz3.js} +6 -55
  12. package/dist/admin/chunks/{EditViewPage-CRu2G4OS.js.map → EditViewPage-zSnDwLz3.js.map} +1 -1
  13. package/dist/admin/chunks/{Form--7s-Wsw1.js → Form-BEqiuSvQ.js} +2 -2
  14. package/dist/admin/chunks/{Form--7s-Wsw1.js.map → Form-BEqiuSvQ.js.map} +1 -1
  15. package/dist/admin/chunks/{Form-CX_f1AUZ.js → Form-CZmB6JIg.js} +2 -2
  16. package/dist/admin/chunks/{Form-CX_f1AUZ.js.map → Form-CZmB6JIg.js.map} +1 -1
  17. package/dist/admin/chunks/{History-SRih7tGq.js → History-BlLKDZSw.js} +6 -55
  18. package/dist/admin/chunks/{History-SRih7tGq.js.map → History-BlLKDZSw.js.map} +1 -1
  19. package/dist/admin/chunks/{History-VVVFEAnd.js → History-CPYXgxkS.js} +6 -55
  20. package/dist/admin/chunks/{History-VVVFEAnd.js.map → History-CPYXgxkS.js.map} +1 -1
  21. package/dist/admin/chunks/{Input-B3wbR0pJ.js → Input-CLX3C5DI.js} +10 -53
  22. package/dist/admin/chunks/Input-CLX3C5DI.js.map +1 -0
  23. package/dist/admin/chunks/{Input-BIRb1gP2.js → Input-DiR2Xfa7.js} +11 -54
  24. package/dist/admin/chunks/Input-DiR2Xfa7.js.map +1 -0
  25. package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js → ListConfigurationPage-CNvotSqe.js} +2 -2
  26. package/dist/admin/chunks/{ListConfigurationPage-BMBxgLtZ.js.map → ListConfigurationPage-CNvotSqe.js.map} +1 -1
  27. package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js → ListConfigurationPage-DdTp-HxB.js} +2 -2
  28. package/dist/admin/chunks/{ListConfigurationPage-DBWZlkHs.js.map → ListConfigurationPage-DdTp-HxB.js.map} +1 -1
  29. package/dist/admin/chunks/{ListViewPage-9jad22KO.js → ListViewPage-BtXYjEYz.js} +5 -5
  30. package/dist/admin/chunks/{ListViewPage-9jad22KO.js.map → ListViewPage-BtXYjEYz.js.map} +1 -1
  31. package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js → ListViewPage-MJNfQTp-.js} +4 -4
  32. package/dist/admin/chunks/{ListViewPage-Dq2zuPYL.js.map → ListViewPage-MJNfQTp-.js.map} +1 -1
  33. package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js → NoContentTypePage-BJrZvYPY.js} +2 -2
  34. package/dist/admin/chunks/{NoContentTypePage-BtpSxTZs.js.map → NoContentTypePage-BJrZvYPY.js.map} +1 -1
  35. package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js → NoContentTypePage-CVvVpwj4.js} +2 -2
  36. package/dist/admin/chunks/{NoContentTypePage-B5xX6Br5.js.map → NoContentTypePage-CVvVpwj4.js.map} +1 -1
  37. package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js → NoPermissionsPage-BulvG4hB.js} +2 -2
  38. package/dist/admin/chunks/{NoPermissionsPage-HnOCsRtG.js.map → NoPermissionsPage-BulvG4hB.js.map} +1 -1
  39. package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js → NoPermissionsPage-C5yWg70d.js} +2 -2
  40. package/dist/admin/chunks/{NoPermissionsPage-CRS0hARz.js.map → NoPermissionsPage-C5yWg70d.js.map} +1 -1
  41. package/dist/admin/chunks/{Preview-BcggSPwn.js → Preview-DEuQgQg2.js} +111 -64
  42. package/dist/admin/chunks/Preview-DEuQgQg2.js.map +1 -0
  43. package/dist/admin/chunks/{Preview-DRtWRrYn.js → Preview-H74FQ9Cq.js} +109 -62
  44. package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +1 -0
  45. package/dist/admin/chunks/{Relations-B1i77Jba.js → Relations-C8jbZPVK.js} +6 -5
  46. package/dist/admin/chunks/Relations-C8jbZPVK.js.map +1 -0
  47. package/dist/admin/chunks/{Relations-BDe2e0a7.js → Relations-mxOUS7TJ.js} +6 -5
  48. package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +1 -0
  49. package/dist/admin/chunks/{en-1xHet_GV.js → en-C1CjdAtC.js} +2 -1
  50. package/dist/admin/chunks/{en-1xHet_GV.js.map → en-C1CjdAtC.js.map} +1 -1
  51. package/dist/admin/chunks/{en-DB7sPJVj.js → en-LfhocNG2.js} +2 -1
  52. package/dist/admin/chunks/{en-DB7sPJVj.js.map → en-LfhocNG2.js.map} +1 -1
  53. package/dist/admin/chunks/{fr-Dm1xiZI5.js → fr-CFdRaRVj.js} +4 -1
  54. package/dist/admin/chunks/{fr-Dm1xiZI5.js.map → fr-CFdRaRVj.js.map} +1 -1
  55. package/dist/admin/chunks/{fr-CqAyDOmo.js → fr-gQSilC7w.js} +4 -1
  56. package/dist/admin/chunks/{fr-CqAyDOmo.js.map → fr-gQSilC7w.js.map} +1 -1
  57. package/dist/admin/chunks/{index-DfEfFmQC.js → index-BRlRBRLb.js} +130 -53
  58. package/dist/admin/chunks/index-BRlRBRLb.js.map +1 -0
  59. package/dist/admin/chunks/{index-CKZHZ3ir.js → index-ZIwOPk6p.js} +128 -51
  60. package/dist/admin/chunks/index-ZIwOPk6p.js.map +1 -0
  61. package/dist/admin/chunks/{layout-BN6DSZ4t.js → layout-B3-guCPG.js} +4 -4
  62. package/dist/admin/chunks/{layout-BN6DSZ4t.js.map → layout-B3-guCPG.js.map} +1 -1
  63. package/dist/admin/chunks/{layout-CX-A0s3P.js → layout-ameRNiAM.js} +4 -4
  64. package/dist/admin/chunks/{layout-CX-A0s3P.js.map → layout-ameRNiAM.js.map} +1 -1
  65. package/dist/admin/chunks/{relations-CuPmv-zR.js → relations-CmoFVrKj.js} +20 -2
  66. package/dist/admin/chunks/relations-CmoFVrKj.js.map +1 -0
  67. package/dist/admin/chunks/{relations-xwSNlsdc.js → relations-DYQAaXwZ.js} +20 -3
  68. package/dist/admin/chunks/relations-DYQAaXwZ.js.map +1 -0
  69. package/dist/admin/chunks/usePrev-Bjw2dhmq.js +18 -0
  70. package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +1 -0
  71. package/dist/admin/chunks/{usePrev-CwGzb4ed.js → usePrev-DIYl-IAL.js} +1 -18
  72. package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
  73. package/dist/admin/index.js +1 -1
  74. package/dist/admin/index.mjs +1 -1
  75. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +0 -1
  76. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
  77. package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -1
  78. package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -1
  79. package/package.json +5 -5
  80. package/dist/admin/chunks/Input-B3wbR0pJ.js.map +0 -1
  81. package/dist/admin/chunks/Input-BIRb1gP2.js.map +0 -1
  82. package/dist/admin/chunks/Preview-BcggSPwn.js.map +0 -1
  83. package/dist/admin/chunks/Preview-DRtWRrYn.js.map +0 -1
  84. package/dist/admin/chunks/Relations-B1i77Jba.js.map +0 -1
  85. package/dist/admin/chunks/Relations-BDe2e0a7.js.map +0 -1
  86. package/dist/admin/chunks/index-CKZHZ3ir.js.map +0 -1
  87. package/dist/admin/chunks/index-DfEfFmQC.js.map +0 -1
  88. package/dist/admin/chunks/relations-CuPmv-zR.js.map +0 -1
  89. package/dist/admin/chunks/relations-xwSNlsdc.js.map +0 -1
  90. package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +0 -1
  91. package/dist/admin/chunks/usePrev-tlgK0qPG.js +0 -34
  92. package/dist/admin/chunks/usePrev-tlgK0qPG.js.map +0 -1
@@ -1,76 +1,27 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { useNotification, useClipboard, useQueryParams, useHistory, createContext, useRBAC, Page } from '@strapi/admin/strapi-admin';
4
- import { Box, Typography, Tabs, Grid, IconButton, Portal, FocusTrap, Flex } from '@strapi/design-system';
4
+ import { Flex, Box, Typography, Tabs, IconButton, Grid, Portal, FocusTrap } from '@strapi/design-system';
5
5
  import { useIntl } from 'react-intl';
6
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-DfEfFmQC.js';
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-BRlRBRLb.js';
8
8
  import { Link, Cross } from '@strapi/icons';
9
9
  import { stringify } from 'qs';
10
10
  import { styled } from 'styled-components';
11
- import { getDocumentStatus } from './EditViewPage-DaY9aMeu.js';
11
+ import { getDocumentStatus } from './EditViewPage-jCZnUuCR.js';
12
12
  import 'lodash/fp/mapValues';
13
13
  import 'yup';
14
14
  import 'fractional-indexing';
15
15
  import 'lodash/fp/pipe';
16
16
  import 'date-fns';
17
17
  import '@reduxjs/toolkit';
18
- import './Input-B3wbR0pJ.js';
18
+ import './Input-CLX3C5DI.js';
19
19
  import 'slate';
20
20
  import 'slate-history';
21
21
  import 'slate-react';
22
22
  import 'prismjs';
23
23
  import 'prismjs/themes/prism-solarizedlight.css';
24
- import 'prismjs/components/prism-asmatmel';
25
- import 'prismjs/components/prism-bash';
26
- import 'prismjs/components/prism-basic';
27
- import 'prismjs/components/prism-c';
28
- import 'prismjs/components/prism-clojure';
29
- import 'prismjs/components/prism-cobol';
30
- import 'prismjs/components/prism-cpp';
31
- import 'prismjs/components/prism-csharp';
32
- import 'prismjs/components/prism-dart';
33
- import 'prismjs/components/prism-docker';
34
- import 'prismjs/components/prism-elixir';
35
- import 'prismjs/components/prism-erlang';
36
- import 'prismjs/components/prism-fortran';
37
- import 'prismjs/components/prism-fsharp';
38
- import 'prismjs/components/prism-go';
39
- import 'prismjs/components/prism-graphql';
40
- import 'prismjs/components/prism-groovy';
41
- import 'prismjs/components/prism-haskell';
42
- import 'prismjs/components/prism-haxe';
43
- import 'prismjs/components/prism-ini';
44
- import 'prismjs/components/prism-java';
45
- import 'prismjs/components/prism-javascript';
46
- import 'prismjs/components/prism-jsx';
47
- import 'prismjs/components/prism-json';
48
- import 'prismjs/components/prism-julia';
49
- import 'prismjs/components/prism-kotlin';
50
- import 'prismjs/components/prism-latex';
51
- import 'prismjs/components/prism-lua';
52
- import 'prismjs/components/prism-markdown';
53
- import 'prismjs/components/prism-matlab';
54
- import 'prismjs/components/prism-makefile';
55
- import 'prismjs/components/prism-objectivec';
56
- import 'prismjs/components/prism-perl';
57
- import 'prismjs/components/prism-php';
58
- import 'prismjs/components/prism-powershell';
59
- import 'prismjs/components/prism-python';
60
- import 'prismjs/components/prism-r';
61
- import 'prismjs/components/prism-ruby';
62
- import 'prismjs/components/prism-rust';
63
- import 'prismjs/components/prism-sas';
64
- import 'prismjs/components/prism-scala';
65
- import 'prismjs/components/prism-scheme';
66
- import 'prismjs/components/prism-sql';
67
- import 'prismjs/components/prism-stata';
68
- import 'prismjs/components/prism-swift';
69
- import 'prismjs/components/prism-typescript';
70
- import 'prismjs/components/prism-tsx';
71
- import 'prismjs/components/prism-vbnet';
72
- import 'prismjs/components/prism-yaml';
73
- import './usePrev-tlgK0qPG.js';
24
+ import './usePrev-Bjw2dhmq.js';
74
25
  import './useDragAndDrop-HYwNDExe.js';
75
26
  import 'react-dnd';
76
27
  import '@radix-ui/react-toolbar';
@@ -78,9 +29,9 @@ import 'react-dnd-html5-backend';
78
29
  import './objects-wl73iEma.js';
79
30
  import 'lodash/clone';
80
31
  import 'lodash/toPath';
81
- import './Relations-B1i77Jba.js';
32
+ import './Relations-C8jbZPVK.js';
82
33
  import 'react-window';
83
- import './relations-xwSNlsdc.js';
34
+ import './relations-DYQAaXwZ.js';
84
35
  import './ComponentIcon-BZcTc4rj.js';
85
36
  import '@strapi/icons/symbols';
86
37
  import 'codemirror5';
@@ -99,6 +50,30 @@ import 'markdown-it-sup';
99
50
  import 'highlight.js/styles/solarized-dark.css';
100
51
  import 'codemirror5/addon/display/placeholder';
101
52
 
53
+ const UnstablePreviewContent = ()=>{
54
+ const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
55
+ const { formatMessage } = useIntl();
56
+ return /*#__PURE__*/ jsxs(Flex, {
57
+ height: "100%",
58
+ children: [
59
+ /*#__PURE__*/ jsx(Box, {
60
+ flex: 1,
61
+ children: "TODO: Side editor"
62
+ }),
63
+ /*#__PURE__*/ jsx(Box, {
64
+ src: previewUrl,
65
+ title: formatMessage({
66
+ id: 'content-manager.preview.panel.title',
67
+ defaultMessage: 'Preview'
68
+ }),
69
+ flex: 1,
70
+ height: "100%",
71
+ borderWidth: 0,
72
+ tag: "iframe"
73
+ }, previewUrl)
74
+ ]
75
+ });
76
+ };
102
77
  const PreviewContent = ()=>{
103
78
  const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
104
79
  const { formatMessage } = useIntl();
@@ -146,6 +121,7 @@ const PreviewContent = ()=>{
146
121
  // here in order to get the relative="path" functionality from the Link component.
147
122
  };
148
123
  return /*#__PURE__*/ jsx(IconButton, {
124
+ variant: "ghost",
149
125
  tag: Link$1,
150
126
  relative: "path",
151
127
  to: toWithFallback,
@@ -227,7 +203,68 @@ const PreviewTabs = ()=>{
227
203
  };
228
204
  /* -------------------------------------------------------------------------------------------------
229
205
  * PreviewHeader
230
- * -----------------------------------------------------------------------------------------------*/ const PreviewHeader = ()=>{
206
+ * -----------------------------------------------------------------------------------------------*/ const UnstablePreviewHeader = ()=>{
207
+ // Get the document title
208
+ const title = usePreviewContext('PreviewHeader', (state)=>state.title);
209
+ const { formatMessage } = useIntl();
210
+ const { toggleNotification } = useNotification();
211
+ const { copy } = useClipboard();
212
+ const handleCopyLink = ()=>{
213
+ copy(window.location.href);
214
+ toggleNotification({
215
+ message: formatMessage({
216
+ id: 'content-manager.preview.copy.success',
217
+ defaultMessage: 'Copied preview link'
218
+ }),
219
+ type: 'success'
220
+ });
221
+ };
222
+ return /*#__PURE__*/ jsxs(Flex, {
223
+ gap: 4,
224
+ background: "neutral0",
225
+ borderColor: "neutral150",
226
+ tag: "header",
227
+ children: [
228
+ /*#__PURE__*/ jsxs(TitleContainer, {
229
+ height: "100%",
230
+ paddingLeft: 2,
231
+ paddingRight: 4,
232
+ children: [
233
+ /*#__PURE__*/ jsx(ClosePreviewButton, {}),
234
+ /*#__PURE__*/ jsx(PreviewTitle, {
235
+ tag: "h1",
236
+ title: title,
237
+ maxWidth: "200px",
238
+ fontSize: 2,
239
+ paddingLeft: 2,
240
+ paddingRight: 3,
241
+ fontWeight: 600,
242
+ children: title
243
+ }),
244
+ /*#__PURE__*/ jsx(Status, {})
245
+ ]
246
+ }),
247
+ /*#__PURE__*/ jsxs(Flex, {
248
+ flex: 1,
249
+ paddingRight: 2,
250
+ justifyContent: "space-between",
251
+ children: [
252
+ /*#__PURE__*/ jsx(PreviewTabs, {}),
253
+ /*#__PURE__*/ jsx(IconButton, {
254
+ type: "button",
255
+ label: formatMessage({
256
+ id: 'preview.copy.label',
257
+ defaultMessage: 'Copy preview link'
258
+ }),
259
+ onClick: handleCopyLink,
260
+ children: /*#__PURE__*/ jsx(Link, {})
261
+ })
262
+ ]
263
+ })
264
+ ]
265
+ });
266
+ };
267
+ const PreviewHeader = ()=>{
231
268
  // Get the document title
232
269
  const title = usePreviewContext('PreviewHeader', (state)=>state.title);
233
270
  const { formatMessage } = useIntl();
@@ -303,6 +340,9 @@ const PreviewTitle = styled(Typography)`
303
340
  const StatusTab = styled(Tabs.Trigger)`
304
341
  text-transform: uppercase;
305
342
  `;
343
+ const TitleContainer = styled(Flex)`
344
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
345
+ `;
306
346
 
307
347
  const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
308
348
  /* -------------------------------------------------------------------------------------------------
@@ -368,14 +408,21 @@ const [PreviewProvider, usePreviewContext] = createContext('PreviewPage');
368
408
  title: documentTitle,
369
409
  meta: documentResponse.meta,
370
410
  schema: documentResponse.schema,
371
- children: /*#__PURE__*/ jsxs(Flex, {
411
+ children: /*#__PURE__*/ jsx(Flex, {
372
412
  direction: "column",
373
413
  height: "100%",
374
414
  alignItems: "stretch",
375
- children: [
376
- /*#__PURE__*/ jsx(PreviewHeader, {}),
377
- /*#__PURE__*/ jsx(PreviewContent, {})
378
- ]
415
+ children: window.strapi.future.isEnabled('unstablePreviewSideEditor') ? /*#__PURE__*/ jsxs(Fragment, {
416
+ children: [
417
+ /*#__PURE__*/ jsx(UnstablePreviewHeader, {}),
418
+ /*#__PURE__*/ jsx(UnstablePreviewContent, {})
419
+ ]
420
+ }) : /*#__PURE__*/ jsxs(Fragment, {
421
+ children: [
422
+ /*#__PURE__*/ jsx(PreviewHeader, {}),
423
+ /*#__PURE__*/ jsx(PreviewContent, {})
424
+ ]
425
+ })
379
426
  })
380
427
  })
381
428
  ]
@@ -432,4 +479,4 @@ const ProtectedPreviewPage = ()=>{
432
479
  };
433
480
 
434
481
  export { ProtectedPreviewPage, usePreviewContext };
435
- //# sourceMappingURL=Preview-BcggSPwn.js.map
482
+ //# sourceMappingURL=Preview-DEuQgQg2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preview-DEuQgQg2.js","sources":["../../../admin/src/preview/components/PreviewContent.tsx","../../../admin/src/preview/components/PreviewHeader.tsx","../../../admin/src/preview/pages/Preview.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Box, Flex } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { usePreviewContext } from '../pages/Preview';\n\nconst UnstablePreviewContent = () => {\n const previewUrl = usePreviewContext('PreviewContent', (state) => state.url);\n\n const { formatMessage } = useIntl();\n\n return (\n <Flex height=\"100%\">\n <Box flex={1}>TODO: Side editor</Box>\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 flex={1}\n height=\"100%\"\n borderWidth={0}\n tag=\"iframe\"\n />\n </Flex>\n );\n};\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, UnstablePreviewContent };\n","import * as React from 'react';\n\nimport {\n useClipboard,\n useHistory,\n useNotification,\n useQueryParams,\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 { DocumentStatus } from '../../pages/EditView/components/DocumentStatus';\nimport { getDocumentStatus } from '../../pages/EditView/EditViewPage';\nimport { usePreviewContext } from '../pages/Preview';\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 <>\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/* -------------------------------------------------------------------------------------------------\n * PreviewHeader\n * -----------------------------------------------------------------------------------------------*/\n\nconst UnstablePreviewHeader = () => {\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 <Flex 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 flex={1} paddingRight={2} justifyContent=\"space-between\">\n <PreviewTabs />\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 </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 { Page, useQueryParams, useRBAC, createContext } from '@strapi/admin/strapi-admin';\nimport { Box, Flex, FocusTrap, Portal } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\nimport { useParams } from 'react-router-dom';\n\nimport { GetPreviewUrl } from '../../../../shared/contracts/preview';\nimport { COLLECTION_TYPES } from '../../constants/collections';\nimport { DocumentRBAC } from '../../features/DocumentRBAC';\nimport { type UseDocument, useDocument } from '../../hooks/useDocument';\nimport { useDocumentLayout } from '../../hooks/useDocumentLayout';\nimport { buildValidParams } from '../../utils/api';\nimport { PreviewContent, UnstablePreviewContent } 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}\n\nconst [PreviewProvider, usePreviewContext] = createContext<PreviewContextValue>('PreviewPage');\n\n/* -------------------------------------------------------------------------------------------------\n * PreviewPage\n * -----------------------------------------------------------------------------------------------*/\n\nconst PreviewPage = () => {\n const { formatMessage } = useIntl();\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 }>();\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\n const documentResponse = useDocument({\n model,\n collectionType,\n documentId,\n params,\n });\n\n const documentLayoutResponse = useDocumentLayout(model);\n\n if (\n documentResponse.isLoading ||\n previewUrlResponse.isLoading ||\n documentLayoutResponse.isLoading\n ) {\n return <Page.Loading />;\n }\n\n if (\n previewUrlResponse.error ||\n documentLayoutResponse.error ||\n !documentResponse.document ||\n !documentResponse.meta ||\n !documentResponse.schema\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 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 <PreviewProvider\n url={previewUrlResponse.data.data.url}\n document={documentResponse.document}\n title={documentTitle}\n meta={documentResponse.meta}\n schema={documentResponse.schema}\n >\n <Flex direction=\"column\" height=\"100%\" alignItems=\"stretch\">\n {window.strapi.future.isEnabled('unstablePreviewSideEditor') ? (\n <>\n <UnstablePreviewHeader />\n <UnstablePreviewContent />\n </>\n ) : (\n <>\n <PreviewHeader />\n <PreviewContent />\n </>\n )}\n </Flex>\n </PreviewProvider>\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([{ action: 'plugin::content-manager.explorer.read', subject: model }]);\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 permissions={permissions}>\n {({ permissions }) => (\n <DocumentRBAC permissions={permissions}>\n <PreviewPage />\n </DocumentRBAC>\n )}\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":["UnstablePreviewContent","previewUrl","usePreviewContext","state","url","formatMessage","useIntl","_jsxs","Flex","height","_jsx","Box","flex","src","title","id","defaultMessage","borderWidth","tag","PreviewContent","width","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","_Fragment","Tabs","Root","value","onValueChange","List","aria-label","StatusTab","disabled","UnstablePreviewHeader","toggleNotification","useNotification","copy","useClipboard","handleCopyLink","window","location","href","message","type","gap","background","borderColor","TitleContainer","paddingLeft","paddingRight","PreviewTitle","maxWidth","fontSize","fontWeight","justifyContent","LinkIcon","PreviewHeader","Grid","gridCols","Item","xs","paddingTop","paddingBottom","marginBottom","alignItems","margin","styled","Typography","Trigger","theme","colors","neutral150","PreviewProvider","createContext","PreviewPage","slug","model","documentId","collectionType","useParams","params","React","useMemo","buildValidParams","Error","COLLECTION_TYPES","previewUrlResponse","useGetPreviewUrlQuery","contentType","locale","documentResponse","useDocument","documentLayoutResponse","useDocumentLayout","isLoading","Page","Loading","error","data","NoData","documentTitle","getTitle","edit","settings","mainField","Title","direction","strapi","future","isEnabled","ProtectedPreviewPageImpl","permissions","useRBAC","action","subject","position","top","left","zIndex","Protect","DocumentRBAC","ProtectedPreviewPage","Portal","FocusTrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,sBAAyB,GAAA,IAAA;AAC7B,IAAA,MAAMC,aAAaC,iBAAkB,CAAA,gBAAA,EAAkB,CAACC,KAAAA,GAAUA,MAAMC,GAAG,CAAA;IAE3E,MAAM,EAAEC,aAAa,EAAE,GAAGC,O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,KAAM,EAAA,OAAA;QACNyI,QAAS,EAAA,OAAA;QACTC,GAAK,EAAA,CAAA;QACLC,IAAM,EAAA,CAAA;QACNC,MAAQ,EAAA,CAAA;QACRzE,UAAW,EAAA,UAAA;gCAEX7E,GAAA,CAAC+H,KAAKwB,OAAO,EAAA;YAACR,WAAaA,EAAAA,WAAAA;AACxB,YAAA,QAAA,EAAA,CAAC,EAAEA,WAAW,EAAE,iBACf/I,GAACwJ,CAAAA,YAAAA,EAAAA;oBAAaT,WAAaA,EAAAA,WAAAA;AACzB,oBAAA,QAAA,gBAAA/I,GAAC0G,CAAAA,WAAAA,EAAAA,EAAAA;;;;AAMb,CAAA;AAEA,MAAM+C,oBAAuB,GAAA,IAAA;AAC3B,IAAA,qBACEzJ,GAAC0J,CAAAA,MAAAA,EAAAA;AACC,QAAA,QAAA,gBAAA1J,GAAC2J,CAAAA,SAAAA,EAAAA;AACC,YAAA,QAAA,gBAAA3J,GAAC8I,CAAAA,wBAAAA,EAAAA,EAAAA;;;AAIT;;;;"}
@@ -6,73 +6,24 @@ var strapiAdmin = require('@strapi/admin/strapi-admin');
6
6
  var designSystem = require('@strapi/design-system');
7
7
  var reactIntl = require('react-intl');
8
8
  var reactRouterDom = require('react-router-dom');
9
- var index = require('./index-CKZHZ3ir.js');
9
+ var index = require('./index-ZIwOPk6p.js');
10
10
  var Icons = require('@strapi/icons');
11
11
  var qs = require('qs');
12
12
  var styledComponents = require('styled-components');
13
- var EditViewPage = require('./EditViewPage-CRu2G4OS.js');
13
+ var EditViewPage = require('./EditViewPage-zSnDwLz3.js');
14
14
  require('lodash/fp/mapValues');
15
15
  require('yup');
16
16
  require('fractional-indexing');
17
17
  require('lodash/fp/pipe');
18
18
  require('date-fns');
19
19
  require('@reduxjs/toolkit');
20
- require('./Input-BIRb1gP2.js');
20
+ require('./Input-DiR2Xfa7.js');
21
21
  require('slate');
22
22
  require('slate-history');
23
23
  require('slate-react');
24
24
  require('prismjs');
25
25
  require('prismjs/themes/prism-solarizedlight.css');
26
- require('prismjs/components/prism-asmatmel');
27
- require('prismjs/components/prism-bash');
28
- require('prismjs/components/prism-basic');
29
- require('prismjs/components/prism-c');
30
- require('prismjs/components/prism-clojure');
31
- require('prismjs/components/prism-cobol');
32
- require('prismjs/components/prism-cpp');
33
- require('prismjs/components/prism-csharp');
34
- require('prismjs/components/prism-dart');
35
- require('prismjs/components/prism-docker');
36
- require('prismjs/components/prism-elixir');
37
- require('prismjs/components/prism-erlang');
38
- require('prismjs/components/prism-fortran');
39
- require('prismjs/components/prism-fsharp');
40
- require('prismjs/components/prism-go');
41
- require('prismjs/components/prism-graphql');
42
- require('prismjs/components/prism-groovy');
43
- require('prismjs/components/prism-haskell');
44
- require('prismjs/components/prism-haxe');
45
- require('prismjs/components/prism-ini');
46
- require('prismjs/components/prism-java');
47
- require('prismjs/components/prism-javascript');
48
- require('prismjs/components/prism-jsx');
49
- require('prismjs/components/prism-json');
50
- require('prismjs/components/prism-julia');
51
- require('prismjs/components/prism-kotlin');
52
- require('prismjs/components/prism-latex');
53
- require('prismjs/components/prism-lua');
54
- require('prismjs/components/prism-markdown');
55
- require('prismjs/components/prism-matlab');
56
- require('prismjs/components/prism-makefile');
57
- require('prismjs/components/prism-objectivec');
58
- require('prismjs/components/prism-perl');
59
- require('prismjs/components/prism-php');
60
- require('prismjs/components/prism-powershell');
61
- require('prismjs/components/prism-python');
62
- require('prismjs/components/prism-r');
63
- require('prismjs/components/prism-ruby');
64
- require('prismjs/components/prism-rust');
65
- require('prismjs/components/prism-sas');
66
- require('prismjs/components/prism-scala');
67
- require('prismjs/components/prism-scheme');
68
- require('prismjs/components/prism-sql');
69
- require('prismjs/components/prism-stata');
70
- require('prismjs/components/prism-swift');
71
- require('prismjs/components/prism-typescript');
72
- require('prismjs/components/prism-tsx');
73
- require('prismjs/components/prism-vbnet');
74
- require('prismjs/components/prism-yaml');
75
- require('./usePrev-CwGzb4ed.js');
26
+ require('./usePrev-DIYl-IAL.js');
76
27
  require('./useDragAndDrop-gcqEJMnO.js');
77
28
  require('react-dnd');
78
29
  require('@radix-ui/react-toolbar');
@@ -80,9 +31,9 @@ require('react-dnd-html5-backend');
80
31
  require('./objects-C3EebVVe.js');
81
32
  require('lodash/clone');
82
33
  require('lodash/toPath');
83
- require('./Relations-BDe2e0a7.js');
34
+ require('./Relations-mxOUS7TJ.js');
84
35
  require('react-window');
85
- require('./relations-CuPmv-zR.js');
36
+ require('./relations-CmoFVrKj.js');
86
37
  require('./ComponentIcon-C-EjOUPA.js');
87
38
  require('@strapi/icons/symbols');
88
39
  require('codemirror5');
@@ -120,6 +71,30 @@ function _interopNamespaceDefault(e) {
120
71
 
121
72
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
122
73
 
74
+ const UnstablePreviewContent = ()=>{
75
+ const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
76
+ const { formatMessage } = reactIntl.useIntl();
77
+ return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
78
+ height: "100%",
79
+ children: [
80
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
81
+ flex: 1,
82
+ children: "TODO: Side editor"
83
+ }),
84
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
85
+ src: previewUrl,
86
+ title: formatMessage({
87
+ id: 'content-manager.preview.panel.title',
88
+ defaultMessage: 'Preview'
89
+ }),
90
+ flex: 1,
91
+ height: "100%",
92
+ borderWidth: 0,
93
+ tag: "iframe"
94
+ }, previewUrl)
95
+ ]
96
+ });
97
+ };
123
98
  const PreviewContent = ()=>{
124
99
  const previewUrl = usePreviewContext('PreviewContent', (state)=>state.url);
125
100
  const { formatMessage } = reactIntl.useIntl();
@@ -167,6 +142,7 @@ const PreviewContent = ()=>{
167
142
  // here in order to get the relative="path" functionality from the Link component.
168
143
  };
169
144
  return /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
145
+ variant: "ghost",
170
146
  tag: reactRouterDom.Link,
171
147
  relative: "path",
172
148
  to: toWithFallback,
@@ -248,7 +224,68 @@ const PreviewTabs = ()=>{
248
224
  };
249
225
  /* -------------------------------------------------------------------------------------------------
250
226
  * PreviewHeader
251
- * -----------------------------------------------------------------------------------------------*/ const PreviewHeader = ()=>{
227
+ * -----------------------------------------------------------------------------------------------*/ const UnstablePreviewHeader = ()=>{
228
+ // Get the document title
229
+ const title = usePreviewContext('PreviewHeader', (state)=>state.title);
230
+ const { formatMessage } = reactIntl.useIntl();
231
+ const { toggleNotification } = strapiAdmin.useNotification();
232
+ const { copy } = strapiAdmin.useClipboard();
233
+ const handleCopyLink = ()=>{
234
+ copy(window.location.href);
235
+ toggleNotification({
236
+ message: formatMessage({
237
+ id: 'content-manager.preview.copy.success',
238
+ defaultMessage: 'Copied preview link'
239
+ }),
240
+ type: 'success'
241
+ });
242
+ };
243
+ return /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
244
+ gap: 4,
245
+ background: "neutral0",
246
+ borderColor: "neutral150",
247
+ tag: "header",
248
+ children: [
249
+ /*#__PURE__*/ jsxRuntime.jsxs(TitleContainer, {
250
+ height: "100%",
251
+ paddingLeft: 2,
252
+ paddingRight: 4,
253
+ children: [
254
+ /*#__PURE__*/ jsxRuntime.jsx(ClosePreviewButton, {}),
255
+ /*#__PURE__*/ jsxRuntime.jsx(PreviewTitle, {
256
+ tag: "h1",
257
+ title: title,
258
+ maxWidth: "200px",
259
+ fontSize: 2,
260
+ paddingLeft: 2,
261
+ paddingRight: 3,
262
+ fontWeight: 600,
263
+ children: title
264
+ }),
265
+ /*#__PURE__*/ jsxRuntime.jsx(Status, {})
266
+ ]
267
+ }),
268
+ /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
269
+ flex: 1,
270
+ paddingRight: 2,
271
+ justifyContent: "space-between",
272
+ children: [
273
+ /*#__PURE__*/ jsxRuntime.jsx(PreviewTabs, {}),
274
+ /*#__PURE__*/ jsxRuntime.jsx(designSystem.IconButton, {
275
+ type: "button",
276
+ label: formatMessage({
277
+ id: 'preview.copy.label',
278
+ defaultMessage: 'Copy preview link'
279
+ }),
280
+ onClick: handleCopyLink,
281
+ children: /*#__PURE__*/ jsxRuntime.jsx(Icons.Link, {})
282
+ })
283
+ ]
284
+ })
285
+ ]
286
+ });
287
+ };
288
+ const PreviewHeader = ()=>{
252
289
  // Get the document title
253
290
  const title = usePreviewContext('PreviewHeader', (state)=>state.title);
254
291
  const { formatMessage } = reactIntl.useIntl();
@@ -324,6 +361,9 @@ const PreviewTitle = styledComponents.styled(designSystem.Typography)`
324
361
  const StatusTab = styledComponents.styled(designSystem.Tabs.Trigger)`
325
362
  text-transform: uppercase;
326
363
  `;
364
+ const TitleContainer = styledComponents.styled(designSystem.Flex)`
365
+ border-right: 1px solid ${({ theme })=>theme.colors.neutral150};
366
+ `;
327
367
 
328
368
  const [PreviewProvider, usePreviewContext] = strapiAdmin.createContext('PreviewPage');
329
369
  /* -------------------------------------------------------------------------------------------------
@@ -389,14 +429,21 @@ const [PreviewProvider, usePreviewContext] = strapiAdmin.createContext('PreviewP
389
429
  title: documentTitle,
390
430
  meta: documentResponse.meta,
391
431
  schema: documentResponse.schema,
392
- children: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
432
+ children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Flex, {
393
433
  direction: "column",
394
434
  height: "100%",
395
435
  alignItems: "stretch",
396
- children: [
397
- /*#__PURE__*/ jsxRuntime.jsx(PreviewHeader, {}),
398
- /*#__PURE__*/ jsxRuntime.jsx(PreviewContent, {})
399
- ]
436
+ children: window.strapi.future.isEnabled('unstablePreviewSideEditor') ? /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
437
+ children: [
438
+ /*#__PURE__*/ jsxRuntime.jsx(UnstablePreviewHeader, {}),
439
+ /*#__PURE__*/ jsxRuntime.jsx(UnstablePreviewContent, {})
440
+ ]
441
+ }) : /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
442
+ children: [
443
+ /*#__PURE__*/ jsxRuntime.jsx(PreviewHeader, {}),
444
+ /*#__PURE__*/ jsxRuntime.jsx(PreviewContent, {})
445
+ ]
446
+ })
400
447
  })
401
448
  })
402
449
  ]
@@ -454,4 +501,4 @@ const ProtectedPreviewPage = ()=>{
454
501
 
455
502
  exports.ProtectedPreviewPage = ProtectedPreviewPage;
456
503
  exports.usePreviewContext = usePreviewContext;
457
- //# sourceMappingURL=Preview-DRtWRrYn.js.map
504
+ //# sourceMappingURL=Preview-H74FQ9Cq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preview-H74FQ9Cq.js","sources":["../../../admin/src/preview/components/PreviewContent.tsx","../../../admin/src/preview/components/PreviewHeader.tsx","../../../admin/src/preview/pages/Preview.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Box, Flex } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { usePreviewContext } from '../pages/Preview';\n\nconst UnstablePreviewContent = () => {\n const previewUrl = usePreviewContext('PreviewContent', (state) => state.url);\n\n const { formatMessage } = useIntl();\n\n return (\n <Flex height=\"100%\">\n <Box flex={1}>TODO: Side editor</Box>\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 flex={1}\n height=\"100%\"\n borderWidth={0}\n tag=\"iframe\"\n />\n </Flex>\n );\n};\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, UnstablePreviewContent };\n","import * as React from 'react';\n\nimport {\n useClipboard,\n useHistory,\n useNotification,\n useQueryParams,\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 { DocumentStatus } from '../../pages/EditView/components/DocumentStatus';\nimport { getDocumentStatus } from '../../pages/EditView/EditViewPage';\nimport { usePreviewContext } from '../pages/Preview';\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 <>\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/* -------------------------------------------------------------------------------------------------\n * PreviewHeader\n * -----------------------------------------------------------------------------------------------*/\n\nconst UnstablePreviewHeader = () => {\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 <Flex 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 flex={1} paddingRight={2} justifyContent=\"space-between\">\n <PreviewTabs />\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 </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 { Page, useQueryParams, useRBAC, createContext } from '@strapi/admin/strapi-admin';\nimport { Box, Flex, FocusTrap, Portal } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\nimport { useParams } from 'react-router-dom';\n\nimport { GetPreviewUrl } from '../../../../shared/contracts/preview';\nimport { COLLECTION_TYPES } from '../../constants/collections';\nimport { DocumentRBAC } from '../../features/DocumentRBAC';\nimport { type UseDocument, useDocument } from '../../hooks/useDocument';\nimport { useDocumentLayout } from '../../hooks/useDocumentLayout';\nimport { buildValidParams } from '../../utils/api';\nimport { PreviewContent, UnstablePreviewContent } 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}\n\nconst [PreviewProvider, usePreviewContext] = createContext<PreviewContextValue>('PreviewPage');\n\n/* -------------------------------------------------------------------------------------------------\n * PreviewPage\n * -----------------------------------------------------------------------------------------------*/\n\nconst PreviewPage = () => {\n const { formatMessage } = useIntl();\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 }>();\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\n const documentResponse = useDocument({\n model,\n collectionType,\n documentId,\n params,\n });\n\n const documentLayoutResponse = useDocumentLayout(model);\n\n if (\n documentResponse.isLoading ||\n previewUrlResponse.isLoading ||\n documentLayoutResponse.isLoading\n ) {\n return <Page.Loading />;\n }\n\n if (\n previewUrlResponse.error ||\n documentLayoutResponse.error ||\n !documentResponse.document ||\n !documentResponse.meta ||\n !documentResponse.schema\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 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 <PreviewProvider\n url={previewUrlResponse.data.data.url}\n document={documentResponse.document}\n title={documentTitle}\n meta={documentResponse.meta}\n schema={documentResponse.schema}\n >\n <Flex direction=\"column\" height=\"100%\" alignItems=\"stretch\">\n {window.strapi.future.isEnabled('unstablePreviewSideEditor') ? (\n <>\n <UnstablePreviewHeader />\n <UnstablePreviewContent />\n </>\n ) : (\n <>\n <PreviewHeader />\n <PreviewContent />\n </>\n )}\n </Flex>\n </PreviewProvider>\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([{ action: 'plugin::content-manager.explorer.read', subject: model }]);\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 permissions={permissions}>\n {({ permissions }) => (\n <DocumentRBAC permissions={permissions}>\n <PreviewPage />\n </DocumentRBAC>\n )}\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":["UnstablePreviewContent","previewUrl","usePreviewContext","state","url","formatMessage","useIntl","_jsxs","Flex","height","_jsx","Box","flex","src","title","id","defaultMessage","borderWidth","tag","PreviewContent","width","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","_Fragment","Tabs","Root","value","onValueChange","List","aria-label","StatusTab","disabled","UnstablePreviewHeader","toggleNotification","useNotification","copy","useClipboard","handleCopyLink","window","location","href","message","type","gap","background","borderColor","TitleContainer","paddingLeft","paddingRight","PreviewTitle","maxWidth","fontSize","fontWeight","justifyContent","LinkIcon","PreviewHeader","Grid","gridCols","Item","xs","paddingTop","paddingBottom","marginBottom","alignItems","margin","styled","Typography","Trigger","theme","colors","neutral150","PreviewProvider","createContext","PreviewPage","slug","model","documentId","collectionType","useParams","params","React","useMemo","buildValidParams","Error","COLLECTION_TYPES","previewUrlResponse","useGetPreviewUrlQuery","contentType","locale","documentResponse","useDocument","documentLayoutResponse","useDocumentLayout","isLoading","Page","Loading","error","data","NoData","documentTitle","getTitle","edit","settings","mainField","Title","direction","strapi","future","isEnabled","ProtectedPreviewPageImpl","permissions","useRBAC","action","subject","position","top","left","zIndex","Protect","DocumentRBAC","ProtectedPreviewPage","Portal","FocusTrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,sBAAyB,GAAA,IAAA;AAC7B,IAAA,MAAMC,aAAaC,iBAAkB,CAAA,gBAAA,EAAkB,CAACC,KAAAA,GAAUA,MAAMC,GAAG,CAAA;IAE3E,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAE1B,IAAA,qBACEC,eAACC,CAAAA,iBAAAA,EAAAA;QAAKC,MAAO,EAAA,MAAA;;0BACXC,cAACC,CAAAA,gBAAAA,EAAAA;gBAAIC,IAAM,EAAA,CAAA;AAAG,gBAAA,QAAA,EAAA;;0BAC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