@strapi/content-manager 0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d → 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/CardDragPreview-DwuraT0K.mjs +80 -0
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js +298 -0
- package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs +276 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs.map +1 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs +153 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js +180 -0
- package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs +158 -0
- package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs +315 -0
- package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js +338 -0
- package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js.map +1 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs +56 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
- package/dist/admin/chunks/Form-D9Ee-exF.mjs +955 -0
- package/dist/admin/chunks/Form-D9Ee-exF.mjs.map +1 -0
- package/dist/admin/chunks/Form-DDbxreII.js +978 -0
- package/dist/admin/chunks/Form-DDbxreII.js.map +1 -0
- package/dist/admin/chunks/History-D5joC76n.js +1384 -0
- package/dist/admin/chunks/History-D5joC76n.js.map +1 -0
- package/dist/admin/chunks/History-FuD7Tp5I.mjs +1361 -0
- package/dist/admin/chunks/History-FuD7Tp5I.mjs.map +1 -0
- package/dist/admin/chunks/Input-BHucdqva.mjs +8251 -0
- package/dist/admin/chunks/Input-BHucdqva.mjs.map +1 -0
- package/dist/admin/chunks/Input-BJCenRYN.js +8285 -0
- package/dist/admin/chunks/Input-BJCenRYN.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs +795 -0
- package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js +818 -0
- package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js +1154 -0
- package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs +1132 -0
- package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs +58 -0
- package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js +60 -0
- package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs +37 -0
- package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js +39 -0
- package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js.map +1 -0
- package/dist/admin/chunks/Preview-C3lnOgQx.mjs +679 -0
- package/dist/admin/chunks/Preview-C3lnOgQx.mjs.map +1 -0
- package/dist/admin/chunks/Preview-DB7ZGawL.js +701 -0
- package/dist/admin/chunks/Preview-DB7ZGawL.js.map +1 -0
- package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
- package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
- package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
- package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
- package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
- package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
- package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
- package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
- package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
- package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
- package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
- package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
- package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
- package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
- package/dist/admin/chunks/de-CbImAUA5.js +200 -0
- package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
- package/dist/admin/chunks/en-CH__IC8g.js +316 -0
- package/dist/{_chunks/en-Bm0D0IWz.js.map → admin/chunks/en-CH__IC8g.js.map} +1 -1
- package/dist/admin/chunks/en-DBP0Gaid.mjs +311 -0
- package/dist/{_chunks/en-DKV44jRb.mjs.map → admin/chunks/en-DBP0Gaid.mjs.map} +1 -1
- package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
- package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
- package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
- package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
- package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
- package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
- package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
- package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
- package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
- package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
- package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
- package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
- package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
- package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
- package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
- package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
- package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
- package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
- package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
- package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
- package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
- package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
- package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
- package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
- package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
- package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
- package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
- package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
- package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
- package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
- package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
- package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
- package/dist/admin/chunks/index-DYrCidCq.mjs +5436 -0
- package/dist/admin/chunks/index-DYrCidCq.mjs.map +1 -0
- package/dist/admin/chunks/index-DoUQnFTk.js +5506 -0
- package/dist/admin/chunks/index-DoUQnFTk.js.map +1 -0
- package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
- package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
- package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
- package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
- package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
- package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
- package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
- package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
- package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
- package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
- package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
- package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
- package/dist/admin/chunks/layout-CqndYVtU.js +692 -0
- package/dist/admin/chunks/layout-CqndYVtU.js.map +1 -0
- package/dist/admin/chunks/layout-D2NJmgCw.mjs +672 -0
- package/dist/admin/chunks/layout-D2NJmgCw.mjs.map +1 -0
- package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
- package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
- package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
- package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
- package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
- package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
- package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
- package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
- package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
- package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
- package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
- package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
- package/dist/admin/chunks/objects-BJTP843m.js +343 -0
- package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
- package/dist/admin/chunks/objects-D2z-IJgu.mjs +317 -0
- package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
- package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
- package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
- package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
- package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
- package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
- package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
- package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
- package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
- package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
- package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
- package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
- package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
- package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
- package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
- package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
- package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
- package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
- package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
- package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
- package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
- package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
- package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
- package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
- package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
- package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
- package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
- package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
- package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
- package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
- package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
- package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
- package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
- package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
- package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
- package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
- 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/usePrev-Cm_0-qRC.js +194 -0
- package/dist/admin/chunks/usePrev-Cm_0-qRC.js.map +1 -0
- package/dist/admin/chunks/usePrev-DinC2aha.mjs +187 -0
- package/dist/admin/chunks/usePrev-DinC2aha.mjs.map +1 -0
- package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
- package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
- package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
- package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
- package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
- package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
- package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
- package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
- package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
- package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
- package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
- package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
- package/dist/admin/index.js +25 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +17 -12
- 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 +7 -2
- package/dist/admin/src/exports.d.ts +1 -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/history/services/historyVersion.d.ts +2 -2
- package/dist/admin/src/hooks/useDocument.d.ts +23 -4
- 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/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -2
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
- package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -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} +8 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
- package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +32 -1
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +3 -3
- package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/index.d.ts +3 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/admin/src/services/api.d.ts +1 -1
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +3 -3
- package/dist/admin/src/services/documents.d.ts +16 -19
- package/dist/admin/src/services/init.d.ts +1 -1
- package/dist/admin/src/services/relations.d.ts +2 -2
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/server/index.js +5472 -4157
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +5457 -4139
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/history/controllers/history-version.d.ts +1 -1
- package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
- package/dist/server/src/history/services/history.d.ts +3 -3
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +6 -11
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +7 -6
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/preview/controllers/index.d.ts +2 -0
- package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/preview.d.ts +13 -0
- package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
- package/dist/server/src/preview/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/index.d.ts +8 -0
- package/dist/server/src/preview/routes/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/preview.d.ts +4 -0
- package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
- package/dist/server/src/preview/services/index.d.ts +16 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +32 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview.d.ts +12 -0
- package/dist/server/src/preview/services/preview.d.ts.map +1 -0
- package/dist/server/src/preview/utils.d.ts +19 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +12 -10
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +7 -6
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/count.d.ts +1 -1
- package/dist/server/src/services/utils/count.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts +3 -3
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/collection-types.d.ts +0 -1
- package/dist/shared/contracts/components.d.ts +0 -1
- package/dist/shared/contracts/content-types.d.ts +0 -1
- package/dist/shared/contracts/history-versions.d.ts +0 -1
- package/dist/shared/contracts/index.d.ts +1 -1
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/init.d.ts +0 -1
- package/dist/shared/contracts/preview.d.ts +26 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/contracts/relations.d.ts +1 -2
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/dist/shared/contracts/review-workflows.d.ts +0 -1
- package/dist/shared/contracts/single-types.d.ts +0 -1
- package/dist/shared/contracts/uid.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/index.js +37 -22
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +36 -23
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +21 -17
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs +0 -236
- package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js +0 -255
- package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js.map +0 -1
- package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
- package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
- package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js +0 -151
- package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js.map +0 -1
- package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs +0 -132
- package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs +0 -224
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DlxEHhUt.js +0 -243
- package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
- package/dist/_chunks/Field-COL25JiC.js +0 -5595
- package/dist/_chunks/Field-COL25JiC.js.map +0 -1
- package/dist/_chunks/Field-DufHXW17.mjs +0 -5563
- package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
- package/dist/_chunks/Form-BssUwrTO.js +0 -779
- package/dist/_chunks/Form-BssUwrTO.js.map +0 -1
- package/dist/_chunks/Form-u_kAOhwB.mjs +0 -758
- package/dist/_chunks/Form-u_kAOhwB.mjs.map +0 -1
- package/dist/_chunks/History-C9t9UqpO.js +0 -1066
- package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
- package/dist/_chunks/History-DRwA3oMM.mjs +0 -1045
- package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BXYPohh-.js +0 -652
- package/dist/_chunks/ListConfigurationPage-BXYPohh-.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs +0 -632
- package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CELx2ysp.mjs +0 -828
- package/dist/_chunks/ListViewPage-CELx2ysp.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-D2VD8Szg.js +0 -852
- package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-BV9IjJSM.js +0 -51
- package/dist/_chunks/NoContentTypePage-BV9IjJSM.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs +0 -51
- package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs +0 -23
- package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js +0 -23
- package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js.map +0 -1
- package/dist/_chunks/Relations-BTcf5xaw.mjs +0 -703
- package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
- package/dist/_chunks/Relations-DR7EUgyC.js +0 -723
- package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
- package/dist/_chunks/ar-BUUWXIYu.js +0 -226
- package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
- package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
- package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
- package/dist/_chunks/ca-Cmk45QO6.js +0 -201
- package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
- package/dist/_chunks/cs-CkJy6B2v.js +0 -125
- package/dist/_chunks/de-C72KDNOl.mjs +0 -199
- package/dist/_chunks/de-CCEmbAah.js +0 -199
- package/dist/_chunks/en-Bm0D0IWz.js +0 -293
- package/dist/_chunks/en-DKV44jRb.mjs +0 -293
- package/dist/_chunks/es-CeXiYflN.mjs +0 -196
- package/dist/_chunks/es-EUonQTon.js +0 -196
- package/dist/_chunks/eu-CdALomew.mjs +0 -202
- package/dist/_chunks/eu-VDH-3ovk.js +0 -202
- package/dist/_chunks/fr-B7kGGg3E.js +0 -206
- package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
- package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
- package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
- package/dist/_chunks/gu-BRmF601H.js +0 -200
- package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
- package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
- package/dist/_chunks/hi-CCJBptSq.js +0 -200
- package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
- package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
- package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
- package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
- package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
- package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
- package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
- package/dist/_chunks/hu-sNV_yLYy.js +0 -202
- package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
- package/dist/_chunks/id-B5Ser98A.js +0 -160
- package/dist/_chunks/id-B5Ser98A.js.map +0 -1
- package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
- package/dist/_chunks/index-BdMf2lfT.js +0 -4109
- package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
- package/dist/_chunks/index-wnqzm4Q8.mjs +0 -4090
- package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
- package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
- package/dist/_chunks/it-DkBIs7vD.js +0 -162
- package/dist/_chunks/ja-CcFe8diO.js +0 -196
- package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
- package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
- package/dist/_chunks/ko-woFZPmLk.js +0 -195
- package/dist/_chunks/layout-2CfjL0T9.mjs +0 -471
- package/dist/_chunks/layout-2CfjL0T9.mjs.map +0 -1
- package/dist/_chunks/layout-B2MyZU-_.js +0 -489
- package/dist/_chunks/layout-B2MyZU-_.js.map +0 -1
- package/dist/_chunks/ml-BihZwQit.mjs +0 -200
- package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
- package/dist/_chunks/ml-C2W8N8k1.js +0 -200
- package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
- package/dist/_chunks/ms-BuFotyP_.js +0 -144
- package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
- package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
- package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
- package/dist/_chunks/nl-bbEOHChV.js +0 -202
- package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
- package/dist/_chunks/objects-gigeqt7s.js +0 -49
- package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
- package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
- package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
- package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
- package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
- package/dist/_chunks/pl-uzwG-hk7.js +0 -199
- package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
- package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
- package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
- package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
- package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
- package/dist/_chunks/pt-CeXQuq50.js +0 -95
- package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
- package/dist/_chunks/relations-BH7JJGGe.js +0 -134
- package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
- package/dist/_chunks/relations-C0w0GcXi.mjs +0 -135
- package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
- package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
- package/dist/_chunks/ru-BT3ybNny.js +0 -231
- package/dist/_chunks/sa-CcvkYInH.js +0 -200
- package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
- package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
- package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
- package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
- package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
- package/dist/_chunks/sk-CvY09Xjv.js +0 -202
- package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
- package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
- package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
- package/dist/_chunks/sv-MYDuzgvT.js +0 -202
- package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
- package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
- package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
- package/dist/_chunks/th-D9_GfAjc.js +0 -148
- package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
- package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
- package/dist/_chunks/tr-D9UH-O_R.js +0 -199
- package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
- package/dist/_chunks/uk-C8EiqJY7.js +0 -144
- package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
- package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
- package/dist/_chunks/useDebounce-CtcjDB3L.js +0 -28
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs +0 -29
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
- package/dist/_chunks/vi-CJlYDheJ.js +0 -111
- package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
- package/dist/_chunks/zh-BWZspA60.mjs +0 -209
- package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
- package/dist/_chunks/zh-CQQfszqR.js +0 -209
- package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
- package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
- package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zh-Hans-
|
1
|
+
{"version":3,"file":"zh-Hans-JVK9x7xr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/admin/index.js
CHANGED
@@ -1,8 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
require('@strapi/icons');
|
6
|
+
var index = require('./chunks/index-DoUQnFTk.js');
|
7
|
+
require('prismjs');
|
8
|
+
require('react/jsx-runtime');
|
9
|
+
require('@strapi/admin/strapi-admin');
|
10
|
+
require('react');
|
11
|
+
require('@strapi/design-system');
|
12
|
+
require('lodash/fp/mapValues');
|
13
|
+
require('react-intl');
|
14
|
+
require('react-router-dom');
|
15
|
+
require('styled-components');
|
16
|
+
require('yup');
|
17
|
+
require('fractional-indexing');
|
18
|
+
require('lodash/fp/pipe');
|
19
|
+
require('qs');
|
20
|
+
require('date-fns');
|
21
|
+
require('@reduxjs/toolkit');
|
22
|
+
|
23
|
+
|
24
|
+
|
5
25
|
exports.DocumentRBAC = index.DocumentRBAC;
|
26
|
+
exports.DocumentStatus = index.DocumentStatus;
|
6
27
|
exports.buildValidParams = index.buildValidParams;
|
7
28
|
exports.default = index.index;
|
8
29
|
exports.unstable_useContentManagerContext = index.useContentManagerContext;
|
package/dist/admin/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/admin/index.mjs
CHANGED
@@ -1,13 +1,18 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import '@strapi/icons';
|
2
|
+
export { f as DocumentRBAC, D as DocumentStatus, j as buildValidParams, W as default, X as unstable_useContentManagerContext, U as unstable_useDocument, Y as unstable_useDocumentActions, d as unstable_useDocumentLayout, o as useDocumentRBAC } from './chunks/index-DYrCidCq.mjs';
|
3
|
+
import 'prismjs';
|
4
|
+
import 'react/jsx-runtime';
|
5
|
+
import '@strapi/admin/strapi-admin';
|
6
|
+
import 'react';
|
7
|
+
import '@strapi/design-system';
|
8
|
+
import 'lodash/fp/mapValues';
|
9
|
+
import 'react-intl';
|
10
|
+
import 'react-router-dom';
|
11
|
+
import 'styled-components';
|
12
|
+
import 'yup';
|
13
|
+
import 'fractional-indexing';
|
14
|
+
import 'lodash/fp/pipe';
|
15
|
+
import 'qs';
|
16
|
+
import 'date-fns';
|
17
|
+
import '@reduxjs/toolkit';
|
13
18
|
//# sourceMappingURL=index.mjs.map
|
package/dist/admin/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
@@ -11,6 +11,9 @@ declare const INJECTION_ZONES: {
|
|
11
11
|
publishModalAdditionalInfos: never[];
|
12
12
|
unpublishModalAdditionalInfos: never[];
|
13
13
|
};
|
14
|
+
preview: {
|
15
|
+
actions: never[];
|
16
|
+
};
|
14
17
|
};
|
15
18
|
interface InjectionZones {
|
16
19
|
editView: {
|
@@ -23,8 +26,11 @@ interface InjectionZones {
|
|
23
26
|
publishModalAdditionalInfos: InjectionZoneComponent[];
|
24
27
|
unpublishModalAdditionalInfos: InjectionZoneComponent[];
|
25
28
|
};
|
29
|
+
preview: {
|
30
|
+
actions: InjectionZoneComponent[];
|
31
|
+
};
|
26
32
|
}
|
27
|
-
type InjectionZoneArea = 'editView.informations' | 'editView.right-links' | 'listView.actions' | 'listView.unpublishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos' | 'listView.publishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos';
|
33
|
+
type InjectionZoneArea = 'editView.informations' | 'editView.right-links' | 'listView.actions' | 'listView.unpublishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos' | 'listView.publishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos' | 'preview.actions';
|
28
34
|
type InjectionZoneModule = InjectionZoneArea extends `${infer Word}.${string}` ? Word : never;
|
29
35
|
type InjectionZoneContainer = InjectionZoneArea extends `${string}.${infer Word}.${string}` ? Word : never;
|
30
36
|
type InjectionZoneBlock = InjectionZoneArea extends `${string}.${string}.${infer Word}` ? Word : never;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type DocumentActionDescription } from './pages/EditView/components/DocumentActions';
|
1
|
+
import { type DocumentActionPosition, type DocumentActionDescription } from './pages/EditView/components/DocumentActions';
|
2
2
|
import { type HeaderActionDescription } from './pages/EditView/components/Header';
|
3
3
|
import { type PanelDescription } from './pages/EditView/components/Panels';
|
4
4
|
import { type BulkActionDescription } from './pages/ListView/components/BulkActions/Actions';
|
@@ -57,9 +57,11 @@ interface PanelComponent extends DescriptionComponent<PanelComponentProps, Panel
|
|
57
57
|
type?: 'actions' | 'releases';
|
58
58
|
}
|
59
59
|
interface DocumentActionProps extends EditViewContext {
|
60
|
+
onPreview?: () => void;
|
60
61
|
}
|
61
62
|
interface DocumentActionComponent extends DescriptionComponent<DocumentActionProps, DocumentActionDescription> {
|
62
63
|
type?: 'clone' | 'configure-the-view' | 'delete' | 'discard' | 'edit' | 'edit-the-model' | 'history' | 'publish' | 'unpublish' | 'update';
|
64
|
+
position?: DocumentActionDescription['position'];
|
63
65
|
}
|
64
66
|
interface HeaderActionProps extends EditViewContext {
|
65
67
|
}
|
@@ -104,6 +106,9 @@ declare class ContentManagerPlugin {
|
|
104
106
|
publishModalAdditionalInfos: never[];
|
105
107
|
unpublishModalAdditionalInfos: never[];
|
106
108
|
};
|
109
|
+
preview: {
|
110
|
+
actions: never[];
|
111
|
+
};
|
107
112
|
};
|
108
113
|
apis: {
|
109
114
|
addBulkAction: {
|
@@ -123,7 +128,7 @@ declare class ContentManagerPlugin {
|
|
123
128
|
(panels: PanelComponent[]): void;
|
124
129
|
};
|
125
130
|
getBulkActions: () => BulkActionComponent[];
|
126
|
-
getDocumentActions: () => DocumentActionComponent[];
|
131
|
+
getDocumentActions: (position?: DocumentActionPosition) => DocumentActionComponent[];
|
127
132
|
getEditViewSidePanels: () => PanelComponent[];
|
128
133
|
getHeaderActions: () => HeaderActionComponent[];
|
129
134
|
};
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* but should still export the same things.
|
5
5
|
*/
|
6
6
|
export { buildValidParams } from './utils/api';
|
7
|
+
export { DocumentStatus } from './pages/EditView/components/DocumentStatus';
|
7
8
|
export { useDocument as unstable_useDocument, useContentManagerContext as unstable_useContentManagerContext, } from './hooks/useDocument';
|
8
9
|
export { useDocumentActions as unstable_useDocumentActions } from './hooks/useDocumentActions';
|
9
10
|
export { useDocumentLayout as unstable_useDocumentLayout } from './hooks/useDocumentLayout';
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type UseDocument } from '../hooks/useDocument';
|
3
|
+
interface DocumentMeta {
|
4
|
+
/**
|
5
|
+
* The equivalent of the ":id" url param value
|
6
|
+
* i.e. gus5a67jcboa3o2zjnz39mb1
|
7
|
+
*/
|
8
|
+
documentId: string;
|
9
|
+
/**
|
10
|
+
* The equivalent of the url ":slug" param value
|
11
|
+
* i.e. api::articles.article
|
12
|
+
*/
|
13
|
+
model: string;
|
14
|
+
/**
|
15
|
+
* The equivalent of the url ":collectionType" param value
|
16
|
+
* i.e. collection-types or single-types
|
17
|
+
*/
|
18
|
+
collectionType: string;
|
19
|
+
/**
|
20
|
+
* Query params object
|
21
|
+
* i.e. { locale: 'fr' }
|
22
|
+
*/
|
23
|
+
params?: Record<string, string | string[] | null>;
|
24
|
+
}
|
25
|
+
interface DocumentContextValue {
|
26
|
+
rootDocumentMeta: DocumentMeta;
|
27
|
+
document: ReturnType<UseDocument>;
|
28
|
+
meta: DocumentMeta;
|
29
|
+
changeDocument: (newRelation: DocumentMeta) => void;
|
30
|
+
}
|
31
|
+
declare const useDocumentContext: <Selected>(consumerName: string, selector: (value: DocumentContextValue) => Selected) => Selected;
|
32
|
+
/**
|
33
|
+
* TODO: Document in contributor docs, Add unit test
|
34
|
+
*
|
35
|
+
* This context provider and its associated hook are used to access a document at its root level
|
36
|
+
* and expose a function to change the current document being viewed to one of the root level docuemnt's relations.
|
37
|
+
*
|
38
|
+
* The useDocumentContext hook exposes:
|
39
|
+
* - meta: information about the currentDocument,
|
40
|
+
* - document: the actual document,
|
41
|
+
* - changeDocument: a function to change the current document to one of its relations.
|
42
|
+
*/
|
43
|
+
declare const DocumentContextProvider: ({ children, initialDocument, }: {
|
44
|
+
children: React.ReactNode | React.ReactNode[];
|
45
|
+
initialDocument: DocumentMeta;
|
46
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
47
|
+
export { DocumentContextProvider, useDocumentContext };
|
48
|
+
export type { DocumentMeta };
|
@@ -23,14 +23,15 @@ declare const useDocumentRBAC: <Selected>(consumerName: string, selector: (value
|
|
23
23
|
interface DocumentRBACProps {
|
24
24
|
children: React.ReactNode;
|
25
25
|
permissions: Permission[] | null;
|
26
|
+
model?: string;
|
26
27
|
}
|
27
28
|
/**
|
28
29
|
* @internal This component is not meant to be used outside of the Content Manager plugin.
|
29
|
-
* It depends on knowing the slug/model of the content-type using the params of the URL.
|
30
|
+
* It depends on knowing the slug/model of the content-type using the params of the URL or the model if it is passed as arg.
|
30
31
|
* If you do use the hook outside of the context, we default to `false` for all actions.
|
31
32
|
*
|
32
33
|
* It then creates an list of `can{Action}` that are passed to the context for consumption
|
33
34
|
* within the app to enforce RBAC.
|
34
35
|
*/
|
35
|
-
declare const DocumentRBAC: ({ children, permissions }: DocumentRBACProps) => import("react/jsx-runtime").JSX.Element;
|
36
|
+
declare const DocumentRBAC: ({ children, permissions, model }: DocumentRBACProps) => import("react/jsx-runtime").JSX.Element;
|
36
37
|
export { DocumentRBAC, useDocumentRBAC, DocumentRBACContextValue, DocumentRBACProps };
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Data } from '@strapi/types';
|
2
1
|
import { GetHistoryVersions, RestoreHistoryVersion } from '../../../../shared/contracts/history-versions';
|
2
|
+
import type { Data } from '@strapi/types';
|
3
3
|
interface RestoreVersion extends RestoreHistoryVersion.Request {
|
4
4
|
documentId: Data.ID;
|
5
5
|
collectionType?: string;
|
@@ -8,5 +8,5 @@ declare const useGetHistoryVersionsQuery: import("@reduxjs/toolkit/dist/query/re
|
|
8
8
|
contentType: import("@strapi/types/dist/uid").ContentType;
|
9
9
|
documentId?: Data.ID | undefined;
|
10
10
|
locale?: string | undefined;
|
11
|
-
} & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations" | "UidAvailability", GetHistoryVersions.Response, "adminApi">>, useRestoreVersionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<RestoreVersion, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations" | "UidAvailability", RestoreHistoryVersion.Response, "adminApi">>;
|
11
|
+
} & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations" | "UidAvailability" | "RecentDocumentList", GetHistoryVersions.Response, "adminApi">>, useRestoreVersionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<RestoreVersion, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations" | "UidAvailability" | "RecentDocumentList", RestoreHistoryVersion.Response, "adminApi">>;
|
12
12
|
export { useGetHistoryVersionsQuery, useRestoreVersionMutation };
|
@@ -4,11 +4,12 @@
|
|
4
4
|
* being a cache layer so if nothing invalidates the cache, we don't fetch again.
|
5
5
|
*/
|
6
6
|
import { FormErrors } from '@strapi/admin/strapi-admin';
|
7
|
-
import {
|
7
|
+
import { type AnyData } from '../pages/EditView/utils/data';
|
8
8
|
import { useGetDocumentQuery } from '../services/documents';
|
9
9
|
import { ComponentsDictionary } from './useContentTypeSchema';
|
10
10
|
import type { FindOne } from '../../../shared/contracts/collection-types';
|
11
11
|
import type { ContentType } from '../../../shared/contracts/content-types';
|
12
|
+
import type { Modules } from '@strapi/types';
|
12
13
|
interface UseDocumentArgs {
|
13
14
|
collectionType: string;
|
14
15
|
model: string;
|
@@ -32,8 +33,17 @@ type UseDocument = (args: UseDocumentArgs, opts?: UseDocumentOpts) => {
|
|
32
33
|
*/
|
33
34
|
schema?: Schema;
|
34
35
|
schemas?: Schema[];
|
35
|
-
validate: (document: Document) => null | FormErrors;
|
36
36
|
hasError?: boolean;
|
37
|
+
refetch: () => void;
|
38
|
+
validate: (document: Document) => null | FormErrors;
|
39
|
+
/**
|
40
|
+
* Get the document's title
|
41
|
+
*/
|
42
|
+
getTitle: (mainField: string) => string;
|
43
|
+
/**
|
44
|
+
* Get the initial form values for the document
|
45
|
+
*/
|
46
|
+
getInitialFormValues: (isCreatingDocument?: boolean) => AnyData | undefined;
|
37
47
|
};
|
38
48
|
/**
|
39
49
|
* @alpha
|
@@ -81,8 +91,17 @@ declare const useDoc: () => {
|
|
81
91
|
*/
|
82
92
|
schema?: ContentType | undefined;
|
83
93
|
schemas?: ContentType[] | undefined;
|
84
|
-
validate: (document: Document) => null | FormErrors;
|
85
94
|
hasError?: boolean | undefined;
|
95
|
+
refetch: () => void;
|
96
|
+
validate: (document: Document) => null | FormErrors;
|
97
|
+
/**
|
98
|
+
* Get the document's title
|
99
|
+
*/
|
100
|
+
getTitle: (mainField: string) => string;
|
101
|
+
/**
|
102
|
+
* Get the initial form values for the document
|
103
|
+
*/
|
104
|
+
getInitialFormValues: (isCreatingDocument?: boolean) => AnyData | undefined;
|
86
105
|
collectionType: string;
|
87
106
|
model: string;
|
88
107
|
id: string | undefined;
|
@@ -106,7 +125,7 @@ declare const useContentManagerContext: () => {
|
|
106
125
|
components: ComponentsDictionary;
|
107
126
|
contentType: ContentType | undefined;
|
108
127
|
contentTypes: ContentType[] | undefined;
|
109
|
-
form:
|
128
|
+
form: unknown;
|
110
129
|
layout: {
|
111
130
|
error?: import("@reduxjs/toolkit").SerializedError | import("../utils/api").BaseQueryError | undefined;
|
112
131
|
isLoading: boolean;
|
@@ -22,6 +22,7 @@ type UseDocumentActions = () => {
|
|
22
22
|
* This will return a list of the fields as an error if it's unable to clone.
|
23
23
|
* You most likely want to use the `clone` action instead.
|
24
24
|
*/
|
25
|
+
isLoading: boolean;
|
25
26
|
autoClone: (args: {
|
26
27
|
model: string;
|
27
28
|
sourceId: string;
|
@@ -1,3 +1,11 @@
|
|
1
|
+
import { type UseDocument } from '../../hooks/useDocument';
|
1
2
|
declare const EditViewPage: () => import("react/jsx-runtime").JSX.Element;
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
* @description Returns the status of the document where its latest state takes priority,
|
6
|
+
* this typically will be "published" unless a user has edited their draft in which we should
|
7
|
+
* display "modified".
|
8
|
+
*/
|
9
|
+
declare const getDocumentStatus: (document: ReturnType<UseDocument>['document'], meta: ReturnType<UseDocument>['meta']) => 'draft' | 'published' | 'modified';
|
2
10
|
declare const ProtectedEditViewPage: () => import("react/jsx-runtime").JSX.Element;
|
3
|
-
export { EditViewPage, ProtectedEditViewPage };
|
11
|
+
export { EditViewPage, ProtectedEditViewPage, getDocumentStatus };
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import { NotificationConfig } from '@strapi/admin/strapi-admin';
|
3
3
|
import { ButtonProps } from '@strapi/design-system';
|
4
4
|
import type { DocumentActionComponent } from '../../../content-manager';
|
5
|
-
type DocumentActionPosition = 'panel' | 'header' | 'table-row';
|
5
|
+
type DocumentActionPosition = 'panel' | 'header' | 'table-row' | 'preview' | 'relation-modal';
|
6
6
|
interface DocumentActionDescription {
|
7
7
|
label: string;
|
8
8
|
onClick?: (event: React.SyntheticEvent) => Promise<boolean | void> | boolean | void;
|
@@ -21,6 +21,7 @@ interface DocumentActionDescription {
|
|
21
21
|
* @default 'secondary'
|
22
22
|
*/
|
23
23
|
variant?: ButtonProps['variant'];
|
24
|
+
loading?: ButtonProps['loading'];
|
24
25
|
}
|
25
26
|
interface DialogOptions {
|
26
27
|
type: 'dialog';
|
@@ -73,4 +74,4 @@ interface DocumentActionsMenuProps {
|
|
73
74
|
declare const DocumentActionsMenu: ({ actions, children, label, variant, }: DocumentActionsMenuProps) => import("react/jsx-runtime").JSX.Element;
|
74
75
|
declare const DEFAULT_ACTIONS: DocumentActionComponent[];
|
75
76
|
export { DocumentActions, DocumentActionsMenu, DocumentActionButton, DEFAULT_ACTIONS };
|
76
|
-
export type { DocumentActionDescription, DialogOptions, NotificationOptions, ModalOptions };
|
77
|
+
export type { DocumentActionDescription, DocumentActionPosition, DialogOptions, NotificationOptions, ModalOptions, };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { StatusProps } from '@strapi/design-system';
|
2
|
-
interface DocumentStatusProps extends Omit<StatusProps, 'children' | '
|
2
|
+
interface DocumentStatusProps extends Omit<StatusProps, 'children' | 'variant'> {
|
3
3
|
/**
|
4
4
|
* The status of the document (draft, published, etc.)
|
5
5
|
* @default 'draft'
|
@@ -7,10 +7,10 @@ interface DocumentStatusProps extends Omit<StatusProps, 'children' | 'showBullet
|
|
7
7
|
status?: string;
|
8
8
|
}
|
9
9
|
/**
|
10
|
-
* @
|
10
|
+
* @public
|
11
11
|
* @description Displays the status of a document (draft, published, etc.)
|
12
12
|
* and automatically calculates the appropriate variant for the status.
|
13
13
|
*/
|
14
|
-
declare const DocumentStatus: ({ status, ...restProps }: DocumentStatusProps) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
declare const DocumentStatus: ({ status, size, ...restProps }: DocumentStatusProps) => import("react/jsx-runtime").JSX.Element;
|
15
15
|
export { DocumentStatus };
|
16
16
|
export type { DocumentStatusProps };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Menu } from '@strapi/design-system';
|
3
|
+
export interface ObservedComponent {
|
4
|
+
toolbar: React.ReactNode;
|
5
|
+
menu: React.ReactNode;
|
6
|
+
key: string;
|
7
|
+
}
|
8
|
+
export declare const EditorToolbarObserver: ({ observedComponents, menuTriggerVariant, }: {
|
9
|
+
observedComponents: ObservedComponent[];
|
10
|
+
menuTriggerVariant?: Menu.TriggerProps['variant'];
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element[];
|
@@ -1,3 +1,58 @@
|
|
1
|
+
import { BaseRange, NodeEntry } from 'slate';
|
1
2
|
import { type BlocksStore } from '../BlocksEditor';
|
3
|
+
import 'prismjs/themes/prism-solarizedlight.css';
|
4
|
+
import 'prismjs/components/prism-asmatmel';
|
5
|
+
import 'prismjs/components/prism-bash';
|
6
|
+
import 'prismjs/components/prism-basic';
|
7
|
+
import 'prismjs/components/prism-c';
|
8
|
+
import 'prismjs/components/prism-clojure';
|
9
|
+
import 'prismjs/components/prism-cobol';
|
10
|
+
import 'prismjs/components/prism-cpp';
|
11
|
+
import 'prismjs/components/prism-csharp';
|
12
|
+
import 'prismjs/components/prism-dart';
|
13
|
+
import 'prismjs/components/prism-docker';
|
14
|
+
import 'prismjs/components/prism-elixir';
|
15
|
+
import 'prismjs/components/prism-erlang';
|
16
|
+
import 'prismjs/components/prism-fortran';
|
17
|
+
import 'prismjs/components/prism-fsharp';
|
18
|
+
import 'prismjs/components/prism-go';
|
19
|
+
import 'prismjs/components/prism-graphql';
|
20
|
+
import 'prismjs/components/prism-groovy';
|
21
|
+
import 'prismjs/components/prism-haskell';
|
22
|
+
import 'prismjs/components/prism-haxe';
|
23
|
+
import 'prismjs/components/prism-ini';
|
24
|
+
import 'prismjs/components/prism-java';
|
25
|
+
import 'prismjs/components/prism-javascript';
|
26
|
+
import 'prismjs/components/prism-jsx';
|
27
|
+
import 'prismjs/components/prism-json';
|
28
|
+
import 'prismjs/components/prism-julia';
|
29
|
+
import 'prismjs/components/prism-kotlin';
|
30
|
+
import 'prismjs/components/prism-latex';
|
31
|
+
import 'prismjs/components/prism-lua';
|
32
|
+
import 'prismjs/components/prism-markdown';
|
33
|
+
import 'prismjs/components/prism-matlab';
|
34
|
+
import 'prismjs/components/prism-makefile';
|
35
|
+
import 'prismjs/components/prism-objectivec';
|
36
|
+
import 'prismjs/components/prism-perl';
|
37
|
+
import 'prismjs/components/prism-php';
|
38
|
+
import 'prismjs/components/prism-powershell';
|
39
|
+
import 'prismjs/components/prism-python';
|
40
|
+
import 'prismjs/components/prism-r';
|
41
|
+
import 'prismjs/components/prism-ruby';
|
42
|
+
import 'prismjs/components/prism-rust';
|
43
|
+
import 'prismjs/components/prism-sas';
|
44
|
+
import 'prismjs/components/prism-scala';
|
45
|
+
import 'prismjs/components/prism-scheme';
|
46
|
+
import 'prismjs/components/prism-sql';
|
47
|
+
import 'prismjs/components/prism-stata';
|
48
|
+
import 'prismjs/components/prism-swift';
|
49
|
+
import 'prismjs/components/prism-typescript';
|
50
|
+
import 'prismjs/components/prism-tsx';
|
51
|
+
import 'prismjs/components/prism-vbnet';
|
52
|
+
import 'prismjs/components/prism-yaml';
|
53
|
+
type BaseRangeCustom = BaseRange & {
|
54
|
+
className: string;
|
55
|
+
};
|
56
|
+
export declare const decorateCode: ([node, path]: NodeEntry) => BaseRangeCustom[];
|
2
57
|
declare const codeBlocks: Pick<BlocksStore, 'code'>;
|
3
58
|
export { codeBlocks };
|
package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { type UseDragAndDropOptions } from '../../../../../hooks/useDragAndDrop';
|
3
|
+
import { type InputRendererProps } from '../../InputRenderer';
|
2
4
|
import type { ComponentPickerProps } from './ComponentPicker';
|
3
5
|
interface DynamicComponentProps extends Pick<UseDragAndDropOptions, 'onGrabItem' | 'onDropItem' | 'onCancel'>, Pick<ComponentPickerProps, 'dynamicComponentsByCategory'> {
|
4
6
|
componentUid: string;
|
@@ -8,7 +10,8 @@ interface DynamicComponentProps extends Pick<UseDragAndDropOptions, 'onGrabItem'
|
|
8
10
|
onAddComponent: (componentUid: string, index: number) => void;
|
9
11
|
onRemoveComponentClick: () => void;
|
10
12
|
onMoveComponent: (dragIndex: number, hoverIndex: number) => void;
|
13
|
+
children?: (props: InputRendererProps) => React.ReactNode;
|
11
14
|
}
|
12
|
-
declare const DynamicComponent: ({ componentUid, disabled, index, name, onRemoveComponentClick, onMoveComponent, onGrabItem, onDropItem, onCancel, dynamicComponentsByCategory, onAddComponent, }: DynamicComponentProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
declare const DynamicComponent: ({ componentUid, disabled, index, name, onRemoveComponentClick, onMoveComponent, onGrabItem, onDropItem, onCancel, dynamicComponentsByCategory, onAddComponent, children, }: DynamicComponentProps) => import("react/jsx-runtime").JSX.Element;
|
13
16
|
export { DynamicComponent };
|
14
17
|
export type { DynamicComponentProps };
|
@@ -1,6 +1,8 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { InputProps } from '@strapi/admin/strapi-admin';
|
2
3
|
import { type EditFieldLayout } from '../../../../../hooks/useDocumentLayout';
|
3
4
|
import { DynamicZoneLabelProps } from './DynamicZoneLabel';
|
5
|
+
import type { InputRendererProps } from '../../InputRenderer';
|
4
6
|
interface DynamicZoneContextValue {
|
5
7
|
isInDynamicZone: boolean;
|
6
8
|
}
|
@@ -8,7 +10,8 @@ declare const useDynamicZone: <Selected>(consumerName: string, selector: (value:
|
|
8
10
|
interface DynamicZoneProps extends Omit<Extract<EditFieldLayout, {
|
9
11
|
type: 'dynamiczone';
|
10
12
|
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'>, Pick<DynamicZoneLabelProps, 'labelAction'> {
|
13
|
+
children?: (props: InputRendererProps) => React.ReactNode;
|
11
14
|
}
|
12
|
-
declare const DynamicZone: ({ attribute, disabled: disabledProp, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
declare const DynamicZone: ({ attribute, disabled: disabledProp, hint, label, labelAction, name, required, children, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
|
13
16
|
export { DynamicZone, useDynamicZone };
|
14
17
|
export type { DynamicZoneProps };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
interface RelationModalProps {
|
2
|
+
open: boolean;
|
3
|
+
onToggle: () => void;
|
4
|
+
}
|
5
|
+
export declare function getCollectionType(url: string): string | undefined;
|
6
|
+
declare const RelationModal: ({ open, onToggle }: RelationModalProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export { RelationModal };
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
3
|
import { FlexComponent } from '@strapi/design-system';
|
4
|
-
import { type EditFieldLayout } from '
|
5
|
-
import { RelationResult } from '
|
4
|
+
import { type EditFieldLayout } from '../../../../../hooks/useDocumentLayout';
|
5
|
+
import { RelationResult } from '../../../../../services/relations';
|
6
6
|
type RelationPosition = (Pick<RelationResult, 'status' | 'locale'> & {
|
7
7
|
before: string;
|
8
8
|
end?: never;
|
@@ -17,6 +17,12 @@ interface Relation extends Pick<RelationResult, 'documentId' | 'id' | 'locale' |
|
|
17
17
|
label: string;
|
18
18
|
position?: RelationPosition;
|
19
19
|
__temp_key__: string;
|
20
|
+
apiData?: {
|
21
|
+
documentId: RelationResult['documentId'];
|
22
|
+
id: RelationResult['id'];
|
23
|
+
locale?: RelationResult['locale'];
|
24
|
+
position: RelationPosition;
|
25
|
+
};
|
20
26
|
}
|
21
27
|
interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
22
28
|
type: 'relation';
|
@@ -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 };
|
@@ -1,5 +1,36 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Grid } from '@strapi/design-system';
|
1
3
|
import { EditLayout } from '../../../hooks/useDocumentLayout';
|
4
|
+
export declare const RESPONSIVE_CONTAINER_BREAKPOINTS: {
|
5
|
+
sm: string;
|
6
|
+
};
|
7
|
+
export declare const ResponsiveGridRoot: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
8
|
+
children?: import("react").ReactNode;
|
9
|
+
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
10
|
+
ref?: any;
|
11
|
+
} & {
|
12
|
+
gridCols?: number | undefined;
|
13
|
+
gap?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveProperty<import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "gap">>;
|
14
|
+
}, "ref"> & {
|
15
|
+
ref?: any;
|
16
|
+
}, never>> & Omit<Grid.Component<"div">, keyof import("react").Component<any, {}, any>>;
|
17
|
+
export declare const ResponsiveGridItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
|
18
|
+
children?: import("react").ReactNode;
|
19
|
+
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
20
|
+
ref?: any;
|
21
|
+
} & import("@strapi/design-system").TransientFlexProps & {
|
22
|
+
col?: number | undefined;
|
23
|
+
s?: number | undefined;
|
24
|
+
xs?: number | undefined;
|
25
|
+
m?: number | undefined;
|
26
|
+
}, "ref"> & {
|
27
|
+
ref?: any;
|
28
|
+
}, {
|
29
|
+
col: number;
|
30
|
+
}>> & Omit<Grid.ItemComponent<"div">, keyof import("react").Component<any, {}, any>>;
|
2
31
|
interface FormLayoutProps extends Pick<EditLayout, 'layout'> {
|
32
|
+
hasBackground?: boolean;
|
33
|
+
model?: string;
|
3
34
|
}
|
4
|
-
declare const FormLayout: ({ layout }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
35
|
+
declare const FormLayout: ({ layout, hasBackground }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
5
36
|
export { FormLayout, FormLayoutProps };
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
import type { EditFieldLayout } from '../../../hooks/useDocumentLayout';
|
3
3
|
import type { Schema } from '@strapi/types';
|
4
4
|
import type { DistributiveOmit } from 'react-redux';
|
5
5
|
type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'>;
|
6
|
-
declare const useFieldHint: (hint: ReactNode, attribute: Schema.Attribute.AnyAttribute) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | (string | import("react/jsx-runtime").JSX.Element |
|
7
|
-
declare const MemoizedInputRenderer:
|
6
|
+
declare const useFieldHint: (hint: React.ReactNode, attribute: Schema.Attribute.AnyAttribute) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | (string | import("react/jsx-runtime").JSX.Element | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[] | null | undefined;
|
7
|
+
declare const MemoizedInputRenderer: React.MemoExoticComponent<({ visible, hint: providedHint, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
8
8
|
export type { InputRendererProps };
|
9
9
|
export { MemoizedInputRenderer as InputRenderer, useFieldHint };
|
@@ -31,3 +31,4 @@ declare const removeFieldsThatDontExistOnSchema: (schema: PartialSchema) => (dat
|
|
31
31
|
*/
|
32
32
|
declare const transformDocument: (schema: PartialSchema, components?: ComponentsDictionary) => (document: AnyData) => AnyData;
|
33
33
|
export { removeProhibitedFields, prepareRelations, prepareTempKeys, removeFieldsThatDontExistOnSchema, transformDocument, };
|
34
|
+
export type { AnyData };
|