@strapi/content-manager 0.0.0-experimental.d042f6a350fa3a48d61e7c56875e2a0a7ba3c8f5 → 0.0.0-experimental.d2a56e52af31fcf0f0c582a5a2e58e310966e96b
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-CGn9IYeg.js +298 -0
- package/dist/admin/chunks/ComponentConfigurationPage-CGn9IYeg.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DgYK4xW6.mjs +276 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DgYK4xW6.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-7w_-4jF4.js +180 -0
- package/dist/admin/chunks/EditConfigurationPage-7w_-4jF4.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-C05SwwH-.mjs +158 -0
- package/dist/admin/chunks/EditConfigurationPage-C05SwwH-.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs +318 -0
- package/dist/admin/chunks/EditViewPage-CVRJBOEv.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-CuQfZJDf.js +341 -0
- package/dist/admin/chunks/EditViewPage-CuQfZJDf.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-BqNYRsCb.js +978 -0
- package/dist/admin/chunks/Form-BqNYRsCb.js.map +1 -0
- package/dist/admin/chunks/Form-DaEnqAeV.mjs +955 -0
- package/dist/admin/chunks/Form-DaEnqAeV.mjs.map +1 -0
- package/dist/admin/chunks/History-B7dGNfmx.mjs +1361 -0
- package/dist/admin/chunks/History-B7dGNfmx.mjs.map +1 -0
- package/dist/admin/chunks/History-CEoOna4w.js +1384 -0
- package/dist/admin/chunks/History-CEoOna4w.js.map +1 -0
- package/dist/admin/chunks/Input-B3QUS9rv.mjs +8473 -0
- package/dist/admin/chunks/Input-B3QUS9rv.mjs.map +1 -0
- package/dist/admin/chunks/Input-B8I0b9aD.js +8507 -0
- package/dist/admin/chunks/Input-B8I0b9aD.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-BbjJweN-.js +818 -0
- package/dist/admin/chunks/ListConfigurationPage-BbjJweN-.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-VtFQ5mOK.mjs +795 -0
- package/dist/admin/chunks/ListConfigurationPage-VtFQ5mOK.mjs.map +1 -0
- package/dist/admin/chunks/ListViewPage-Cg3zbT7Y.mjs +1132 -0
- package/dist/admin/chunks/ListViewPage-Cg3zbT7Y.mjs.map +1 -0
- package/dist/admin/chunks/ListViewPage-CzUm2VJN.js +1154 -0
- package/dist/admin/chunks/ListViewPage-CzUm2VJN.js.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-FcLLn2Wt.js +60 -0
- package/dist/admin/chunks/NoContentTypePage-FcLLn2Wt.js.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-NOf7Aq_E.mjs +58 -0
- package/dist/admin/chunks/NoContentTypePage-NOf7Aq_E.mjs.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-DmeyXtCk.js +39 -0
- package/dist/admin/chunks/NoPermissionsPage-DmeyXtCk.js.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-OVr9KG6L.mjs +37 -0
- package/dist/admin/chunks/NoPermissionsPage-OVr9KG6L.mjs.map +1 -0
- package/dist/admin/chunks/Preview-BH9l1QXk.mjs +593 -0
- package/dist/admin/chunks/Preview-BH9l1QXk.mjs.map +1 -0
- package/dist/admin/chunks/Preview-BYKkpc11.js +615 -0
- package/dist/admin/chunks/Preview-BYKkpc11.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-C2zEwS3-.mjs +313 -0
- package/dist/{_chunks/en-D65uIF6Y.mjs.map → admin/chunks/en-C2zEwS3-.mjs.map} +1 -1
- package/dist/admin/chunks/en-G976DLsg.js +318 -0
- package/dist/{_chunks/en-BR48D_RH.js.map → admin/chunks/en-G976DLsg.js.map} +1 -1
- package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
- package/dist/{_chunks/es-9K52xZIr.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
- package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
- package/dist/{_chunks/ja-BHqhDq4V.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-BE7PI9Wp.mjs +5450 -0
- package/dist/admin/chunks/index-BE7PI9Wp.mjs.map +1 -0
- package/dist/admin/chunks/index-BwIhYBsG.js +5520 -0
- package/dist/admin/chunks/index-BwIhYBsG.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-D34tqjMw.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
- package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
- package/dist/{_chunks/ja-7sfIbjxE.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
- package/dist/admin/chunks/layout-9zlUM9V3.mjs +672 -0
- package/dist/admin/chunks/layout-9zlUM9V3.mjs.map +1 -0
- package/dist/admin/chunks/layout-Cr0HaJVS.js +692 -0
- package/dist/admin/chunks/layout-Cr0HaJVS.js.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-DgZBp9Oo.js +194 -0
- package/dist/admin/chunks/usePrev-DgZBp9Oo.js.map +1 -0
- package/dist/admin/chunks/usePrev-PisKKvhT.mjs +187 -0
- package/dist/admin/chunks/usePrev-PisKKvhT.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 +24 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +17 -13
- 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/features/DocumentContext.d.ts +53 -0
- package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/hooks/useDocument.d.ts +4 -2
- 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/BlocksInput/Blocks/Code.d.ts +49 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +8 -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 +9 -3
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +7 -4
- package/dist/admin/src/preview/index.d.ts +2 -3
- package/dist/admin/src/preview/pages/Preview.d.ts +2 -0
- package/dist/server/index.js +5459 -4387
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +5446 -4372
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.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 +1 -1
- package/dist/server/src/services/utils/populate.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 +0 -1
- package/dist/shared/contracts/init.d.ts +0 -1
- package/dist/shared/contracts/preview.d.ts +0 -1
- 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 +35 -24
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +34 -25
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +16 -13
- 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-9_4yUE9L.mjs +0 -236
- package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +0 -254
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js.map +0 -1
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js +0 -175
- package/dist/_chunks/ComponentIcon-CRbtQEUV.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-Bl_U2JgH.js +0 -150
- package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +0 -1
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +0 -132
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-D4yFJET6.js +0 -209
- package/dist/_chunks/EditViewPage-D4yFJET6.js.map +0 -1
- package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +0 -191
- package/dist/_chunks/EditViewPage-DrmVmYN0.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-C4rSaGsz.js +0 -778
- package/dist/_chunks/Form-C4rSaGsz.js.map +0 -1
- package/dist/_chunks/Form-DamaxNpG.mjs +0 -758
- package/dist/_chunks/Form-DamaxNpG.mjs.map +0 -1
- package/dist/_chunks/History-D1PreDSY.mjs +0 -999
- package/dist/_chunks/History-D1PreDSY.mjs.map +0 -1
- package/dist/_chunks/History-DTm8UCCQ.js +0 -1019
- package/dist/_chunks/History-DTm8UCCQ.js.map +0 -1
- package/dist/_chunks/Input-B7sapvBG.js +0 -5617
- package/dist/_chunks/Input-B7sapvBG.js.map +0 -1
- package/dist/_chunks/Input-CZ1YvjHR.mjs +0 -5585
- package/dist/_chunks/Input-CZ1YvjHR.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +0 -633
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +0 -652
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +0 -1
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +0 -854
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-DTuuxU3n.js +0 -877
- package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +0 -51
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +0 -51
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +0 -23
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js +0 -23
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +0 -1
- package/dist/_chunks/Preview-BNuU0SuQ.mjs +0 -287
- package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +0 -1
- package/dist/_chunks/Preview-Cxq-uI6D.js +0 -305
- package/dist/_chunks/Preview-Cxq-uI6D.js.map +0 -1
- package/dist/_chunks/Relations-C2Ahkrdg.mjs +0 -728
- package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +0 -1
- package/dist/_chunks/Relations-CWS79QQn.js +0 -747
- package/dist/_chunks/Relations-CWS79QQn.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-BR48D_RH.js +0 -312
- package/dist/_chunks/en-D65uIF6Y.mjs +0 -312
- package/dist/_chunks/es-9K52xZIr.js +0 -196
- package/dist/_chunks/es-D34tqjMw.mjs +0 -196
- package/dist/_chunks/eu-CdALomew.mjs +0 -202
- package/dist/_chunks/eu-VDH-3ovk.js +0 -202
- package/dist/_chunks/fr-C43IbhA_.js +0 -219
- package/dist/_chunks/fr-C43IbhA_.js.map +0 -1
- package/dist/_chunks/fr-DBseuRuB.mjs +0 -219
- package/dist/_chunks/fr-DBseuRuB.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-DQsvBb_N.js +0 -4500
- package/dist/_chunks/index-DQsvBb_N.js.map +0 -1
- package/dist/_chunks/index-ZKrsjv-2.mjs +0 -4481
- package/dist/_chunks/index-ZKrsjv-2.mjs.map +0 -1
- package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
- package/dist/_chunks/it-DkBIs7vD.js +0 -162
- package/dist/_chunks/ja-7sfIbjxE.js +0 -196
- package/dist/_chunks/ja-BHqhDq4V.mjs +0 -196
- package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
- package/dist/_chunks/ko-woFZPmLk.js +0 -195
- package/dist/_chunks/layout-Cl0NhlQB.js +0 -488
- package/dist/_chunks/layout-Cl0NhlQB.js.map +0 -1
- package/dist/_chunks/layout-fQk1rMk9.mjs +0 -471
- package/dist/_chunks/layout-fQk1rMk9.mjs.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-BcXOv6_9.js +0 -47
- package/dist/_chunks/objects-BcXOv6_9.js.map +0 -1
- package/dist/_chunks/objects-D6yBsdmx.mjs +0 -45
- package/dist/_chunks/objects-D6yBsdmx.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-BRfBxVbX.js +0 -133
- package/dist/_chunks/relations-BRfBxVbX.js.map +0 -1
- package/dist/_chunks/relations-BakOFl_1.mjs +0 -134
- package/dist/_chunks/relations-BakOFl_1.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/useDragAndDrop-BMtgCYzL.js +0 -245
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +0 -1
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +0 -228
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +0 -1
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs +0 -29
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +0 -1
- package/dist/_chunks/usePrev-D5J_2fEu.js +0 -28
- package/dist/_chunks/usePrev-D5J_2fEu.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
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
- package/dist/admin/src/preview/components/PreviewContent.d.ts +0 -2
@@ -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,7 +1,27 @@
|
|
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-BwIhYBsG.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;
|
6
26
|
exports.DocumentStatus = index.DocumentStatus;
|
7
27
|
exports.buildValidParams = index.buildValidParams;
|
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,14 +1,18 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
import '@strapi/icons';
|
2
|
+
export { i as DocumentRBAC, D as DocumentStatus, k 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-BE7PI9Wp.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';
|
14
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;
|
@@ -57,6 +57,7 @@ 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';
|
@@ -105,6 +106,9 @@ declare class ContentManagerPlugin {
|
|
105
106
|
publishModalAdditionalInfos: never[];
|
106
107
|
unpublishModalAdditionalInfos: never[];
|
107
108
|
};
|
109
|
+
preview: {
|
110
|
+
actions: never[];
|
111
|
+
};
|
108
112
|
};
|
109
113
|
apis: {
|
110
114
|
addBulkAction: {
|
@@ -0,0 +1,53 @@
|
|
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
|
+
documentHistory: DocumentMeta[];
|
31
|
+
setDocumentHistory: React.Dispatch<React.SetStateAction<DocumentMeta[]>>;
|
32
|
+
onPreview?: () => void;
|
33
|
+
}
|
34
|
+
declare const useDocumentContext: <Selected>(consumerName: string, selector: (value: DocumentContextValue) => Selected) => Selected;
|
35
|
+
/**
|
36
|
+
* TODO: Document in contributor docs, Add unit test
|
37
|
+
*
|
38
|
+
* This context provider and its associated hook are used to access a document at its root level
|
39
|
+
* and expose a function to change the current document being viewed to one of the root level docuemnt's relations.
|
40
|
+
*
|
41
|
+
* The useDocumentContext hook exposes:
|
42
|
+
* - meta: information about the currentDocument,
|
43
|
+
* - document: the actual document,
|
44
|
+
* - changeDocument: a function to change the current document to one of its relations.
|
45
|
+
* - rootDocumentMeta: information about the root level document (current page)
|
46
|
+
*/
|
47
|
+
declare const DocumentContextProvider: ({ children, initialDocument, onPreview, }: {
|
48
|
+
children: React.ReactNode | React.ReactNode[];
|
49
|
+
initialDocument: DocumentMeta;
|
50
|
+
onPreview?: () => void;
|
51
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
52
|
+
export { useDocumentContext, DocumentContextProvider };
|
53
|
+
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;
|
@@ -4,12 +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 { Modules } from '@strapi/types';
|
8
7
|
import { type AnyData } from '../pages/EditView/utils/data';
|
9
8
|
import { useGetDocumentQuery } from '../services/documents';
|
10
9
|
import { ComponentsDictionary } from './useContentTypeSchema';
|
11
10
|
import type { FindOne } from '../../../shared/contracts/collection-types';
|
12
11
|
import type { ContentType } from '../../../shared/contracts/content-types';
|
12
|
+
import type { Modules } from '@strapi/types';
|
13
13
|
interface UseDocumentArgs {
|
14
14
|
collectionType: string;
|
15
15
|
model: string;
|
@@ -34,6 +34,7 @@ type UseDocument = (args: UseDocumentArgs, opts?: UseDocumentOpts) => {
|
|
34
34
|
schema?: Schema;
|
35
35
|
schemas?: Schema[];
|
36
36
|
hasError?: boolean;
|
37
|
+
refetch: () => void;
|
37
38
|
validate: (document: Document) => null | FormErrors;
|
38
39
|
/**
|
39
40
|
* Get the document's title
|
@@ -91,6 +92,7 @@ declare const useDoc: () => {
|
|
91
92
|
schema?: ContentType | undefined;
|
92
93
|
schemas?: ContentType[] | undefined;
|
93
94
|
hasError?: boolean | undefined;
|
95
|
+
refetch: () => void;
|
94
96
|
validate: (document: Document) => null | FormErrors;
|
95
97
|
/**
|
96
98
|
* Get the document's title
|
@@ -123,7 +125,7 @@ declare const useContentManagerContext: () => {
|
|
123
125
|
components: ComponentsDictionary;
|
124
126
|
contentType: ContentType | undefined;
|
125
127
|
contentTypes: ContentType[] | undefined;
|
126
|
-
form:
|
128
|
+
form: unknown;
|
127
129
|
layout: {
|
128
130
|
error?: import("@reduxjs/toolkit").SerializedError | import("../utils/api").BaseQueryError | undefined;
|
129
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;
|
@@ -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';
|
@@ -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,7 +1,55 @@
|
|
1
1
|
import { BaseRange, NodeEntry } from 'slate';
|
2
2
|
import { type BlocksStore } from '../BlocksEditor';
|
3
3
|
import 'prismjs/themes/prism-solarizedlight.css';
|
4
|
-
import '
|
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';
|
5
53
|
type BaseRangeCustom = BaseRange & {
|
6
54
|
className: string;
|
7
55
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type DocumentMeta } from '../../../../../features/DocumentContext';
|
2
|
+
interface RelationModalProps {
|
3
|
+
triggerButtonLabel: string;
|
4
|
+
relation: DocumentMeta;
|
5
|
+
}
|
6
|
+
export declare function getCollectionType(url: string): string | undefined;
|
7
|
+
declare const RelationModalForm: ({ relation, triggerButtonLabel }: RelationModalProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export { RelationModalForm };
|
@@ -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,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Grid } from '@strapi/design-system';
|
3
3
|
import { EditLayout } from '../../../hooks/useDocumentLayout';
|
4
|
+
import type { UseDocument } from '../../../hooks/useDocument';
|
4
5
|
export declare const RESPONSIVE_CONTAINER_BREAKPOINTS: {
|
5
6
|
sm: string;
|
6
7
|
};
|
@@ -14,7 +15,7 @@ export declare const ResponsiveGridRoot: import("styled-components").IStyledComp
|
|
14
15
|
}, "ref"> & {
|
15
16
|
ref?: any;
|
16
17
|
}, 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").
|
18
|
+
export declare const ResponsiveGridItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
|
18
19
|
children?: import("react").ReactNode;
|
19
20
|
} & 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
21
|
ref?: any;
|
@@ -25,8 +26,13 @@ export declare const ResponsiveGridItem: import("styled-components").IStyledComp
|
|
25
26
|
m?: number | undefined;
|
26
27
|
}, "ref"> & {
|
27
28
|
ref?: any;
|
28
|
-
},
|
29
|
+
}, {
|
30
|
+
col: number;
|
31
|
+
}>> & Omit<Grid.ItemComponent<"div">, keyof import("react").Component<any, {}, any>>;
|
29
32
|
interface FormLayoutProps extends Pick<EditLayout, 'layout'> {
|
33
|
+
hasBackground?: boolean;
|
34
|
+
model?: string;
|
35
|
+
document: ReturnType<UseDocument>;
|
30
36
|
}
|
31
|
-
declare const FormLayout: ({ layout }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
37
|
+
declare const FormLayout: ({ layout, document, hasBackground }: FormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
32
38
|
export { FormLayout, FormLayoutProps };
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
|
+
import { UseDocument } from '../../../hooks/useDocument';
|
2
3
|
import type { EditFieldLayout } from '../../../hooks/useDocumentLayout';
|
3
4
|
import type { Schema } from '@strapi/types';
|
4
5
|
import type { DistributiveOmit } from 'react-redux';
|
5
|
-
type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'
|
6
|
-
|
7
|
-
|
6
|
+
type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'> & {
|
7
|
+
document: ReturnType<UseDocument>;
|
8
|
+
};
|
9
|
+
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;
|
10
|
+
declare const MemoizedInputRenderer: React.MemoExoticComponent<({ visible, hint: providedHint, document, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
8
11
|
export type { InputRendererProps };
|
9
12
|
export { MemoizedInputRenderer as InputRenderer, useFieldHint };
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
};
|
1
|
+
import type { PluginDefinition } from '@strapi/admin/strapi-admin';
|
2
|
+
declare const previewAdmin: Partial<PluginDefinition>;
|
4
3
|
export { previewAdmin };
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { type UseDocument } from '../../hooks/useDocument';
|
2
|
+
import { type EditLayout } from '../../hooks/useDocumentLayout';
|
2
3
|
interface PreviewContextValue {
|
3
4
|
url: string;
|
4
5
|
title: string;
|
5
6
|
document: NonNullable<ReturnType<UseDocument>['document']>;
|
6
7
|
meta: NonNullable<ReturnType<UseDocument>['meta']>;
|
7
8
|
schema: NonNullable<ReturnType<UseDocument>['schema']>;
|
9
|
+
layout: EditLayout;
|
8
10
|
}
|
9
11
|
declare const usePreviewContext: <Selected>(consumerName: string, selector: (value: PreviewContextValue) => Selected) => Selected;
|
10
12
|
declare const ProtectedPreviewPage: () => import("react/jsx-runtime").JSX.Element;
|