@strapi/content-manager 0.0.0-experimental.e9144fc8a193f9875a2c0832d689c14001c79f00 → 0.0.0-experimental.eb2d102c03f0984bece7258f6e0e8ab9ee39c82d
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/{CardDragPreview-DwuraT0K.js → CardDragPreview-DwuraT0K.mjs} +1 -1
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
- package/dist/admin/chunks/{ComponentConfigurationPage-DLYW6wzP.js → ComponentConfigurationPage-BGBNQxFJ.js} +4 -3
- package/dist/admin/chunks/{ComponentConfigurationPage-DLYW6wzP.js.map → ComponentConfigurationPage-BGBNQxFJ.js.map} +1 -1
- package/dist/admin/chunks/{ComponentConfigurationPage-BnZmgOiE.js → ComponentConfigurationPage-DKtL-tec.mjs} +9 -8
- package/dist/admin/chunks/ComponentConfigurationPage-DKtL-tec.mjs.map +1 -0
- package/dist/admin/chunks/{ComponentIcon-BZcTc4rj.js → ComponentIcon-BZcTc4rj.mjs} +1 -1
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
- package/dist/admin/chunks/{EditConfigurationPage-D343zenK.js → EditConfigurationPage-KDwSFRyn.mjs} +9 -8
- package/dist/admin/chunks/EditConfigurationPage-KDwSFRyn.mjs.map +1 -0
- package/dist/admin/chunks/{EditConfigurationPage-D6MAzDx9.js → EditConfigurationPage-yliOxLUv.js} +4 -3
- package/dist/admin/chunks/{EditConfigurationPage-D343zenK.js.map → EditConfigurationPage-yliOxLUv.js.map} +1 -1
- package/dist/admin/chunks/{EditViewPage-CAgp5yFQ.js → EditViewPage-BAI2r49P.mjs} +11 -14
- package/dist/admin/chunks/EditViewPage-BAI2r49P.mjs.map +1 -0
- package/dist/admin/chunks/{EditViewPage-BEiXdIh3.js → EditViewPage-DpvonssD.js} +7 -10
- package/dist/admin/chunks/EditViewPage-DpvonssD.js.map +1 -0
- package/dist/admin/chunks/{FieldTypeIcon-BY6MrVF4.js → FieldTypeIcon-BY6MrVF4.mjs} +1 -1
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
- package/dist/admin/chunks/{Form-DnpEddIm.js → Form-BrzQyDxU.mjs} +5 -5
- package/dist/admin/chunks/Form-BrzQyDxU.mjs.map +1 -0
- package/dist/admin/chunks/{Form-DT-mJpeC.js → Form-XD_sf25E.js} +2 -2
- package/dist/admin/chunks/{Form-DT-mJpeC.js.map → Form-XD_sf25E.js.map} +1 -1
- package/dist/admin/chunks/{History-DcmMS40h.js → History-C-_o7tz8.js} +6 -6
- package/dist/admin/chunks/{History-DcmMS40h.js.map → History-C-_o7tz8.js.map} +1 -1
- package/dist/admin/chunks/{History-CAcsKxvW.js → History-DClLuGIg.mjs} +11 -11
- package/dist/admin/chunks/History-DClLuGIg.mjs.map +1 -0
- package/dist/admin/chunks/{Input-Bn_9U9AX.js → Input-BMLRZBE3.mjs} +756 -321
- package/dist/admin/chunks/Input-BMLRZBE3.mjs.map +1 -0
- package/dist/admin/chunks/{Input-DKc071zK.js → Input-Bv-rqfYH.js} +751 -315
- package/dist/admin/chunks/Input-Bv-rqfYH.js.map +1 -0
- package/dist/admin/chunks/{ListConfigurationPage-9g-kIzuq.js → ListConfigurationPage-D66hgG4-.js} +3 -2
- package/dist/admin/chunks/{ListConfigurationPage-CCkKvrdu.js.map → ListConfigurationPage-D66hgG4-.js.map} +1 -1
- package/dist/admin/chunks/{ListConfigurationPage-CCkKvrdu.js → ListConfigurationPage-Do3UDres.mjs} +8 -7
- package/dist/admin/chunks/ListConfigurationPage-Do3UDres.mjs.map +1 -0
- package/dist/admin/chunks/{ListViewPage-CkbK_jTo.js → ListViewPage-DNvysJaJ.js} +4 -3
- package/dist/admin/chunks/{ListViewPage-C4RIOx9_.js.map → ListViewPage-DNvysJaJ.js.map} +1 -1
- package/dist/admin/chunks/{ListViewPage-C4RIOx9_.js → ListViewPage-Q0auz5lE.mjs} +6 -5
- package/dist/admin/chunks/ListViewPage-Q0auz5lE.mjs.map +1 -0
- package/dist/admin/chunks/{NoContentTypePage-B37btBcO.js → NoContentTypePage-B_oOeOQb.mjs} +3 -2
- package/dist/admin/chunks/NoContentTypePage-B_oOeOQb.mjs.map +1 -0
- package/dist/admin/chunks/{NoContentTypePage-B2sy8eF1.js → NoContentTypePage-C5qFFfgn.js} +3 -2
- package/dist/admin/chunks/{NoContentTypePage-B2sy8eF1.js.map → NoContentTypePage-C5qFFfgn.js.map} +1 -1
- package/dist/admin/chunks/{NoPermissionsPage-CGuHcAGX.js → NoPermissionsPage-BAW7WY-M.mjs} +3 -2
- package/dist/admin/chunks/NoPermissionsPage-BAW7WY-M.mjs.map +1 -0
- package/dist/admin/chunks/{NoPermissionsPage-BZp87Adj.js → NoPermissionsPage-C9sDJXRu.js} +3 -2
- package/dist/admin/chunks/{NoPermissionsPage-BZp87Adj.js.map → NoPermissionsPage-C9sDJXRu.js.map} +1 -1
- package/dist/admin/chunks/{Preview-D1A984oV.js → Preview-05BZGpV2.mjs} +244 -100
- package/dist/admin/chunks/Preview-05BZGpV2.mjs.map +1 -0
- package/dist/admin/chunks/{Preview-C7doSaZl.js → Preview-B6ThL2SA.js} +236 -92
- package/dist/admin/chunks/Preview-B6ThL2SA.js.map +1 -0
- package/dist/admin/chunks/{Relations-DFmdcIeQ.js → Relations-CJ0GWuqq.js} +469 -4
- package/dist/admin/chunks/Relations-CJ0GWuqq.js.map +1 -0
- package/dist/admin/chunks/{Relations-B9xxwrI5.js → Relations-CiOfFNxW.mjs} +471 -7
- package/dist/admin/chunks/Relations-CiOfFNxW.mjs.map +1 -0
- package/dist/admin/chunks/{ar-DckYq_WK.js → ar-DckYq_WK.mjs} +1 -1
- package/dist/admin/chunks/ar-DckYq_WK.mjs.map +1 -0
- package/dist/admin/chunks/{ca-DviY7mRj.js → ca-DviY7mRj.mjs} +1 -1
- package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
- package/dist/admin/chunks/{cs-C7OSYFQ7.js → cs-C7OSYFQ7.mjs} +1 -1
- package/dist/admin/chunks/cs-C7OSYFQ7.mjs.map +1 -0
- package/dist/admin/chunks/{de-5QRlDHyR.js → de-5QRlDHyR.mjs} +1 -1
- package/dist/admin/chunks/de-5QRlDHyR.mjs.map +1 -0
- package/dist/admin/chunks/{en-LfhocNG2.js → en-CImiNxXE.mjs} +3 -1
- package/dist/admin/chunks/en-CImiNxXE.mjs.map +1 -0
- package/dist/admin/chunks/{en-C1CjdAtC.js → en-CLf4SuMQ.js} +3 -1
- package/dist/admin/chunks/{en-LfhocNG2.js.map → en-CLf4SuMQ.js.map} +1 -1
- package/dist/admin/chunks/{es-DkoWSExG.js → es-DkoWSExG.mjs} +1 -1
- package/dist/admin/chunks/es-DkoWSExG.mjs.map +1 -0
- package/dist/admin/chunks/{eu-BG1xX7HK.js → eu-BG1xX7HK.mjs} +1 -1
- package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
- package/dist/admin/chunks/{fr-CFdRaRVj.js → fr-CFdRaRVj.mjs} +1 -1
- package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
- package/dist/admin/chunks/{gu-D5MMMXRs.js → gu-D5MMMXRs.mjs} +1 -1
- package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
- package/dist/admin/chunks/{hi-lp17SCjr.js → hi-lp17SCjr.mjs} +1 -1
- package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
- package/dist/admin/chunks/{hooks-DMvik5y_.js → hooks-DMvik5y_.mjs} +1 -1
- package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
- package/dist/admin/chunks/{hu-CLka1U2C.js → hu-CLka1U2C.mjs} +1 -1
- package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
- package/dist/admin/chunks/{id-USfY9m1g.js → id-USfY9m1g.mjs} +1 -1
- package/dist/admin/chunks/id-USfY9m1g.mjs.map +1 -0
- package/dist/admin/chunks/{index-Cj2lSt7S.js → index-CcJLBLNf.mjs} +122 -73
- package/dist/admin/chunks/index-CcJLBLNf.mjs.map +1 -0
- package/dist/admin/chunks/{index-OSrndyon.js → index-SQ88CePz.js} +93 -43
- package/dist/admin/chunks/index-SQ88CePz.js.map +1 -0
- package/dist/admin/chunks/{it-BAHrwmYS.js → it-BAHrwmYS.mjs} +1 -1
- package/dist/admin/chunks/it-BAHrwmYS.mjs.map +1 -0
- package/dist/admin/chunks/{ja-BWKmBJFT.js → ja-BWKmBJFT.mjs} +1 -1
- package/dist/admin/chunks/ja-BWKmBJFT.mjs.map +1 -0
- package/dist/admin/chunks/{ko-CgADGBNt.js → ko-CgADGBNt.mjs} +1 -1
- package/dist/admin/chunks/ko-CgADGBNt.mjs.map +1 -0
- package/dist/admin/chunks/{layout-DZO1GLQr.js → layout-4nCaNnTs.mjs} +8 -7
- package/dist/admin/chunks/layout-4nCaNnTs.mjs.map +1 -0
- package/dist/admin/chunks/{layout-ixNm7FpJ.js → layout-xxDnIsHG.js} +5 -4
- package/dist/admin/chunks/{layout-DZO1GLQr.js.map → layout-xxDnIsHG.js.map} +1 -1
- package/dist/admin/chunks/{ml-CnhCfOn_.js → ml-CnhCfOn_.mjs} +1 -1
- package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
- package/dist/admin/chunks/{ms-Bh09NFff.js → ms-Bh09NFff.mjs} +1 -1
- package/dist/admin/chunks/ms-Bh09NFff.mjs.map +1 -0
- package/dist/admin/chunks/{nl-C8HYflTc.js → nl-C8HYflTc.mjs} +1 -1
- package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
- package/dist/admin/chunks/{objects-wl73iEma.js → objects-wl73iEma.mjs} +1 -1
- package/dist/admin/chunks/objects-wl73iEma.mjs.map +1 -0
- package/dist/admin/chunks/{pl-MFCZJZuZ.js → pl-MFCZJZuZ.mjs} +1 -1
- package/dist/admin/chunks/pl-MFCZJZuZ.mjs.map +1 -0
- package/dist/admin/chunks/{pt-BR-CcotyBGJ.js → pt-BR-CcotyBGJ.mjs} +1 -1
- package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs.map +1 -0
- package/dist/admin/chunks/{pt-HbmgeiYO.js → pt-HbmgeiYO.mjs} +1 -1
- package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
- package/dist/admin/chunks/{relations-Cdrtwdwh.js → relations-D1R7vM_e.mjs} +2 -2
- package/dist/admin/chunks/relations-D1R7vM_e.mjs.map +1 -0
- package/dist/admin/chunks/{relations-CQOKwshG.js → relations-VlsO9KQZ.js} +2 -2
- package/dist/admin/chunks/{relations-CQOKwshG.js.map → relations-VlsO9KQZ.js.map} +1 -1
- package/dist/admin/chunks/{ru-CB4BUyQp.js → ru-CB4BUyQp.mjs} +1 -1
- package/dist/admin/chunks/{ru-CB4BUyQp.js.map → ru-CB4BUyQp.mjs.map} +1 -1
- package/dist/admin/chunks/{sa-n_aPA-pU.js → sa-n_aPA-pU.mjs} +1 -1
- package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
- package/dist/admin/chunks/{sk-tn_BDjE2.js → sk-tn_BDjE2.mjs} +1 -1
- package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
- package/dist/admin/chunks/{sv-cq4ZrQRd.js → sv-cq4ZrQRd.mjs} +1 -1
- package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
- package/dist/admin/chunks/{th-mUH7hEtc.js → th-mUH7hEtc.mjs} +1 -1
- package/dist/admin/chunks/th-mUH7hEtc.mjs.map +1 -0
- package/dist/admin/chunks/{tr-Yt38daxh.js → tr-Yt38daxh.mjs} +1 -1
- package/dist/admin/chunks/tr-Yt38daxh.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/{en-C1CjdAtC.js.map → uk-DB6OgySY.js.map} +1 -1
- package/dist/admin/chunks/{useDragAndDrop-HYwNDExe.js → useDragAndDrop-HYwNDExe.mjs} +1 -1
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.mjs.map +1 -0
- package/dist/admin/chunks/{usePrev-Bjw2dhmq.js → usePrev-Bjw2dhmq.mjs} +1 -1
- package/dist/admin/chunks/usePrev-Bjw2dhmq.mjs.map +1 -0
- package/dist/admin/chunks/{vi-CvBGlTjr.js → vi-CvBGlTjr.mjs} +1 -1
- package/dist/admin/chunks/vi-CvBGlTjr.mjs.map +1 -0
- package/dist/admin/chunks/{zh-BmF-sHaT.js → zh-BmF-sHaT.mjs} +1 -1
- package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
- package/dist/admin/chunks/{zh-Hans-CI0HKio3.js → zh-Hans-CI0HKio3.mjs} +1 -1
- package/dist/admin/chunks/{zh-Hans-CI0HKio3.js.map → zh-Hans-CI0HKio3.mjs.map} +1 -1
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/index.mjs.map +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/hooks/useDocument.d.ts +2 -0
- package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +2 -1
- package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +2 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
- package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +2 -1
- package/dist/admin/src/preview/components/PreviewContent.d.ts +1 -2
- package/dist/admin/src/preview/pages/Preview.d.ts +4 -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/CardDragPreview-DwuraT0K.js.map +0 -1
- package/dist/admin/chunks/ComponentConfigurationPage-BnZmgOiE.js.map +0 -1
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.map +0 -1
- package/dist/admin/chunks/EditConfigurationPage-D6MAzDx9.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-BEiXdIh3.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-CAgp5yFQ.js.map +0 -1
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.map +0 -1
- package/dist/admin/chunks/Form-DnpEddIm.js.map +0 -1
- package/dist/admin/chunks/History-CAcsKxvW.js.map +0 -1
- package/dist/admin/chunks/Input-Bn_9U9AX.js.map +0 -1
- package/dist/admin/chunks/Input-DKc071zK.js.map +0 -1
- package/dist/admin/chunks/ListConfigurationPage-9g-kIzuq.js.map +0 -1
- package/dist/admin/chunks/ListViewPage-CkbK_jTo.js.map +0 -1
- package/dist/admin/chunks/NoContentTypePage-B37btBcO.js.map +0 -1
- package/dist/admin/chunks/NoPermissionsPage-CGuHcAGX.js.map +0 -1
- package/dist/admin/chunks/Preview-C7doSaZl.js.map +0 -1
- package/dist/admin/chunks/Preview-D1A984oV.js.map +0 -1
- package/dist/admin/chunks/Relations-B9xxwrI5.js.map +0 -1
- package/dist/admin/chunks/Relations-DFmdcIeQ.js.map +0 -1
- package/dist/admin/chunks/ar-DckYq_WK.js.map +0 -1
- package/dist/admin/chunks/ca-DviY7mRj.js.map +0 -1
- package/dist/admin/chunks/cs-C7OSYFQ7.js.map +0 -1
- package/dist/admin/chunks/de-5QRlDHyR.js.map +0 -1
- package/dist/admin/chunks/es-DkoWSExG.js.map +0 -1
- package/dist/admin/chunks/eu-BG1xX7HK.js.map +0 -1
- package/dist/admin/chunks/fr-CFdRaRVj.js.map +0 -1
- package/dist/admin/chunks/gu-D5MMMXRs.js.map +0 -1
- package/dist/admin/chunks/hi-lp17SCjr.js.map +0 -1
- package/dist/admin/chunks/hooks-DMvik5y_.js.map +0 -1
- package/dist/admin/chunks/hu-CLka1U2C.js.map +0 -1
- package/dist/admin/chunks/id-USfY9m1g.js.map +0 -1
- package/dist/admin/chunks/index-Cj2lSt7S.js.map +0 -1
- package/dist/admin/chunks/index-OSrndyon.js.map +0 -1
- package/dist/admin/chunks/it-BAHrwmYS.js.map +0 -1
- package/dist/admin/chunks/ja-BWKmBJFT.js.map +0 -1
- package/dist/admin/chunks/ko-CgADGBNt.js.map +0 -1
- package/dist/admin/chunks/layout-ixNm7FpJ.js.map +0 -1
- package/dist/admin/chunks/ml-CnhCfOn_.js.map +0 -1
- package/dist/admin/chunks/ms-Bh09NFff.js.map +0 -1
- package/dist/admin/chunks/nl-C8HYflTc.js.map +0 -1
- package/dist/admin/chunks/objects-wl73iEma.js.map +0 -1
- package/dist/admin/chunks/pl-MFCZJZuZ.js.map +0 -1
- package/dist/admin/chunks/pt-BR-CcotyBGJ.js.map +0 -1
- package/dist/admin/chunks/pt-HbmgeiYO.js.map +0 -1
- package/dist/admin/chunks/relations-Cdrtwdwh.js.map +0 -1
- package/dist/admin/chunks/sa-n_aPA-pU.js.map +0 -1
- package/dist/admin/chunks/sk-tn_BDjE2.js.map +0 -1
- package/dist/admin/chunks/sv-cq4ZrQRd.js.map +0 -1
- package/dist/admin/chunks/th-mUH7hEtc.js.map +0 -1
- package/dist/admin/chunks/tr-Yt38daxh.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.js +0 -140
- package/dist/admin/chunks/uk-Cpgmm7gE.js.map +0 -1
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +0 -1
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +0 -1
- package/dist/admin/chunks/vi-CvBGlTjr.js.map +0 -1
- package/dist/admin/chunks/zh-BmF-sHaT.js.map +0 -1
@@ -5,13 +5,12 @@ interface WysiwygNavProps {
|
|
5
5
|
editorRef: React.MutableRefObject<EditorFromTextArea>;
|
6
6
|
isExpandMode?: boolean;
|
7
7
|
isPreviewMode?: boolean;
|
8
|
-
onActionClick: (action: string, editorRef: React.MutableRefObject<EditorFromTextArea>, callback?: () => void) => void;
|
9
8
|
onToggleMediaLib: () => void;
|
10
9
|
onTogglePreviewMode?: () => void;
|
11
10
|
}
|
12
11
|
/**
|
13
12
|
* TODO: refactor this mess.
|
14
13
|
*/
|
15
|
-
declare const WysiwygNav: ({ disabled, editorRef,
|
14
|
+
declare const WysiwygNav: ({ disabled, editorRef, isPreviewMode, onToggleMediaLib, onTogglePreviewMode, }: WysiwygNavProps) => import("react/jsx-runtime").JSX.Element;
|
16
15
|
export { WysiwygNav };
|
17
16
|
export type { WysiwygNavProps };
|
@@ -27,6 +27,7 @@ export declare const ResponsiveGridItem: import("styled-components").IStyledComp
|
|
27
27
|
ref?: any;
|
28
28
|
}, never>> & Omit<Grid.ItemComponent<"div">, keyof import("react").Component<any, {}, any>>;
|
29
29
|
interface FormLayoutProps extends Pick<EditLayout, 'layout'> {
|
30
|
+
hasBackground?: boolean;
|
30
31
|
}
|
31
|
-
declare const FormLayout: ({ layout }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
32
|
+
declare const FormLayout: ({ layout, hasBackground }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
32
33
|
export { FormLayout, FormLayoutProps };
|
@@ -1,10 +1,14 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { type UseDocument } from '../../hooks/useDocument';
|
3
|
+
import { type EditLayout } from '../../hooks/useDocumentLayout';
|
2
4
|
interface PreviewContextValue {
|
3
5
|
url: string;
|
4
6
|
title: string;
|
5
7
|
document: NonNullable<ReturnType<UseDocument>['document']>;
|
6
8
|
meta: NonNullable<ReturnType<UseDocument>['meta']>;
|
7
9
|
schema: NonNullable<ReturnType<UseDocument>['schema']>;
|
10
|
+
layout: EditLayout;
|
11
|
+
iframeRef?: React.RefObject<HTMLIFrameElement>;
|
8
12
|
}
|
9
13
|
declare const usePreviewContext: <Selected>(consumerName: string, selector: (value: PreviewContextValue) => Selected) => Selected;
|
10
14
|
declare const ProtectedPreviewPage: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/server/index.js
CHANGED
@@ -2694,7 +2694,7 @@ var collectionTypes = {
|
|
2694
2694
|
const isUpdate = !isCreate;
|
2695
2695
|
if (isUpdate) {
|
2696
2696
|
// check if the document exists
|
2697
|
-
const documentExists = documentManager.exists(model, id);
|
2697
|
+
const documentExists = await documentManager.exists(model, id);
|
2698
2698
|
if (!documentExists) {
|
2699
2699
|
throw new strapiUtils.errors.NotFoundError('Document not found');
|
2700
2700
|
}
|