@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
@@ -0,0 +1,317 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { useDrop, useDrag } from 'react-dnd';
|
3
|
+
import clone from 'lodash/clone';
|
4
|
+
import toPath from 'lodash/toPath';
|
5
|
+
|
6
|
+
const ItemTypes = {
|
7
|
+
COMPONENT: 'component',
|
8
|
+
EDIT_FIELD: 'editField',
|
9
|
+
FIELD: 'field',
|
10
|
+
DYNAMIC_ZONE: 'dynamicZone',
|
11
|
+
RELATION: 'relation',
|
12
|
+
BLOCKS: 'blocks'
|
13
|
+
};
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Utility hook designed to implement keyboard accessibile drag and drop by
|
17
|
+
* returning an onKeyDown handler to be passed to the drag icon button.
|
18
|
+
*
|
19
|
+
* @internal - You should use `useDragAndDrop` instead.
|
20
|
+
*/ const useKeyboardDragAndDrop = (active, index, { onCancel, onDropItem, onGrabItem, onMoveItem })=>{
|
21
|
+
const [isSelected, setIsSelected] = React.useState(false);
|
22
|
+
const handleMove = (movement)=>{
|
23
|
+
if (!isSelected) {
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
if (typeof index === 'number' && onMoveItem) {
|
27
|
+
if (movement === 'UP') {
|
28
|
+
onMoveItem(index - 1, index);
|
29
|
+
} else if (movement === 'DOWN') {
|
30
|
+
onMoveItem(index + 1, index);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
const handleDragClick = ()=>{
|
35
|
+
if (isSelected) {
|
36
|
+
if (onDropItem) {
|
37
|
+
onDropItem(index);
|
38
|
+
}
|
39
|
+
setIsSelected(false);
|
40
|
+
} else {
|
41
|
+
if (onGrabItem) {
|
42
|
+
onGrabItem(index);
|
43
|
+
}
|
44
|
+
setIsSelected(true);
|
45
|
+
}
|
46
|
+
};
|
47
|
+
const handleCancel = ()=>{
|
48
|
+
if (isSelected) {
|
49
|
+
setIsSelected(false);
|
50
|
+
if (onCancel) {
|
51
|
+
onCancel(index);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
};
|
55
|
+
const handleKeyDown = (e)=>{
|
56
|
+
if (!active) {
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
if (e.key === 'Tab' && !isSelected) {
|
60
|
+
return;
|
61
|
+
}
|
62
|
+
e.preventDefault();
|
63
|
+
switch(e.key){
|
64
|
+
case ' ':
|
65
|
+
case 'Enter':
|
66
|
+
handleDragClick();
|
67
|
+
break;
|
68
|
+
case 'Escape':
|
69
|
+
handleCancel();
|
70
|
+
break;
|
71
|
+
case 'ArrowDown':
|
72
|
+
case 'ArrowRight':
|
73
|
+
handleMove('DOWN');
|
74
|
+
break;
|
75
|
+
case 'ArrowUp':
|
76
|
+
case 'ArrowLeft':
|
77
|
+
handleMove('UP');
|
78
|
+
break;
|
79
|
+
}
|
80
|
+
};
|
81
|
+
return handleKeyDown;
|
82
|
+
};
|
83
|
+
|
84
|
+
const DIRECTIONS = {
|
85
|
+
UPWARD: 'upward',
|
86
|
+
DOWNWARD: 'downward'
|
87
|
+
};
|
88
|
+
const DROP_SENSITIVITY = {
|
89
|
+
REGULAR: 'regular',
|
90
|
+
IMMEDIATE: 'immediate'
|
91
|
+
};
|
92
|
+
/**
|
93
|
+
* A utility hook abstracting the general drag and drop hooks from react-dnd.
|
94
|
+
* Centralising the same behaviours and by default offering keyboard support.
|
95
|
+
*/ const useDragAndDrop = (active, { type = 'STRAPI_DND', index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity = DROP_SENSITIVITY.REGULAR })=>{
|
96
|
+
const objectRef = React.useRef(null);
|
97
|
+
const [{ handlerId, isOver }, dropRef] = useDrop({
|
98
|
+
accept: type,
|
99
|
+
collect (monitor) {
|
100
|
+
return {
|
101
|
+
handlerId: monitor.getHandlerId(),
|
102
|
+
isOver: monitor.isOver({
|
103
|
+
shallow: true
|
104
|
+
})
|
105
|
+
};
|
106
|
+
},
|
107
|
+
drop (item) {
|
108
|
+
const draggedIndex = item.index;
|
109
|
+
const newIndex = index;
|
110
|
+
if (isOver && onDropItem) {
|
111
|
+
onDropItem(draggedIndex, newIndex);
|
112
|
+
}
|
113
|
+
},
|
114
|
+
hover (item, monitor) {
|
115
|
+
if (!objectRef.current || !onMoveItem) {
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
const dragIndex = item.index;
|
119
|
+
const newIndex = index;
|
120
|
+
const hoverBoundingRect = objectRef.current?.getBoundingClientRect();
|
121
|
+
const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
|
122
|
+
const clientOffset = monitor.getClientOffset();
|
123
|
+
if (!clientOffset) return;
|
124
|
+
const hoverClientY = clientOffset && clientOffset.y - hoverBoundingRect.top;
|
125
|
+
if (typeof dragIndex === 'number' && typeof newIndex === 'number') {
|
126
|
+
if (dragIndex === newIndex) {
|
127
|
+
// Don't replace items with themselves
|
128
|
+
return;
|
129
|
+
}
|
130
|
+
if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
|
131
|
+
// Dragging downwards
|
132
|
+
if (dragIndex < newIndex && hoverClientY < hoverMiddleY) {
|
133
|
+
return;
|
134
|
+
}
|
135
|
+
// Dragging upwards
|
136
|
+
if (dragIndex > newIndex && hoverClientY > hoverMiddleY) {
|
137
|
+
return;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
// Time to actually perform the action
|
141
|
+
onMoveItem(newIndex, dragIndex);
|
142
|
+
item.index = newIndex;
|
143
|
+
} else {
|
144
|
+
// Using numbers as indices doesn't work for nested list items with path like [1, 1, 0]
|
145
|
+
if (Array.isArray(dragIndex) && Array.isArray(newIndex)) {
|
146
|
+
// Indices comparison to find item position in nested list
|
147
|
+
const minLength = Math.min(dragIndex.length, newIndex.length);
|
148
|
+
let areEqual = true;
|
149
|
+
let isLessThan = false;
|
150
|
+
let isGreaterThan = false;
|
151
|
+
for(let i = 0; i < minLength; i++){
|
152
|
+
if (dragIndex[i] < newIndex[i]) {
|
153
|
+
isLessThan = true;
|
154
|
+
areEqual = false;
|
155
|
+
break;
|
156
|
+
} else if (dragIndex[i] > newIndex[i]) {
|
157
|
+
isGreaterThan = true;
|
158
|
+
areEqual = false;
|
159
|
+
break;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
// Don't replace items with themselves
|
163
|
+
if (areEqual && dragIndex.length === newIndex.length) {
|
164
|
+
return;
|
165
|
+
}
|
166
|
+
if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {
|
167
|
+
// Dragging downwards
|
168
|
+
if (isLessThan && !isGreaterThan && hoverClientY < hoverMiddleY) {
|
169
|
+
return;
|
170
|
+
}
|
171
|
+
// Dragging upwards
|
172
|
+
if (isGreaterThan && !isLessThan && hoverClientY > hoverMiddleY) {
|
173
|
+
return;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
onMoveItem(newIndex, dragIndex);
|
178
|
+
item.index = newIndex;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
});
|
182
|
+
const getDragDirection = (monitor)=>{
|
183
|
+
if (monitor && monitor.isDragging() && !monitor.didDrop() && monitor.getInitialClientOffset() && monitor.getClientOffset()) {
|
184
|
+
const deltaY = monitor.getInitialClientOffset().y - monitor.getClientOffset().y;
|
185
|
+
if (deltaY > 0) return DIRECTIONS.UPWARD;
|
186
|
+
if (deltaY < 0) return DIRECTIONS.DOWNWARD;
|
187
|
+
return null;
|
188
|
+
}
|
189
|
+
return null;
|
190
|
+
};
|
191
|
+
const [{ isDragging, direction }, dragRef, dragPreviewRef] = useDrag({
|
192
|
+
type,
|
193
|
+
item () {
|
194
|
+
if (onStart) {
|
195
|
+
onStart();
|
196
|
+
}
|
197
|
+
/**
|
198
|
+
* This will be attached and it helps define the preview sizes
|
199
|
+
* when a component is flexy e.g. Relations
|
200
|
+
*/ const { width } = objectRef.current?.getBoundingClientRect() ?? {};
|
201
|
+
return {
|
202
|
+
index,
|
203
|
+
width,
|
204
|
+
...item
|
205
|
+
};
|
206
|
+
},
|
207
|
+
end () {
|
208
|
+
if (onEnd) {
|
209
|
+
onEnd();
|
210
|
+
}
|
211
|
+
},
|
212
|
+
canDrag: active,
|
213
|
+
/**
|
214
|
+
* This is useful when the item is in a virtualized list.
|
215
|
+
* However, if we don't have an ID then we want the libraries
|
216
|
+
* defaults to take care of this.
|
217
|
+
*/ isDragging: item?.id ? (monitor)=>{
|
218
|
+
return item.id === monitor.getItem().id;
|
219
|
+
} : undefined,
|
220
|
+
collect: (monitor)=>({
|
221
|
+
isDragging: monitor.isDragging(),
|
222
|
+
initialOffset: monitor.getInitialClientOffset(),
|
223
|
+
currentOffset: monitor.getClientOffset(),
|
224
|
+
direction: getDragDirection(monitor)
|
225
|
+
})
|
226
|
+
});
|
227
|
+
const handleKeyDown = useKeyboardDragAndDrop(active, index, {
|
228
|
+
onGrabItem,
|
229
|
+
onDropItem,
|
230
|
+
onCancel,
|
231
|
+
onMoveItem
|
232
|
+
});
|
233
|
+
return [
|
234
|
+
{
|
235
|
+
handlerId,
|
236
|
+
isDragging,
|
237
|
+
handleKeyDown,
|
238
|
+
isOverDropTarget: isOver,
|
239
|
+
direction
|
240
|
+
},
|
241
|
+
objectRef,
|
242
|
+
dropRef,
|
243
|
+
dragRef,
|
244
|
+
dragPreviewRef
|
245
|
+
];
|
246
|
+
};
|
247
|
+
|
248
|
+
/**
|
249
|
+
* Deeply get a value from an object via its path.
|
250
|
+
*/ function getIn(obj, key, def, pathStartIndex = 0) {
|
251
|
+
const path = toPath(key);
|
252
|
+
while(obj && pathStartIndex < path.length){
|
253
|
+
obj = obj[path[pathStartIndex++]];
|
254
|
+
}
|
255
|
+
// check if path is not in the end
|
256
|
+
if (pathStartIndex !== path.length && !obj) {
|
257
|
+
return def;
|
258
|
+
}
|
259
|
+
return obj === undefined ? def : obj;
|
260
|
+
}
|
261
|
+
/** @internal is the given object an Object? */ const isObject = (obj)=>obj !== null && typeof obj === 'object' && !Array.isArray(obj);
|
262
|
+
/** @internal is the given object an integer? */ const isInteger = (obj)=>String(Math.floor(Number(obj))) === obj;
|
263
|
+
/**
|
264
|
+
* Deeply set a value from in object via its path. If the value at `path`
|
265
|
+
* has changed, return a shallow copy of obj with `value` set at `path`.
|
266
|
+
* If `value` has not changed, return the original `obj`.
|
267
|
+
*
|
268
|
+
* Existing objects / arrays along `path` are also shallow copied. Sibling
|
269
|
+
* objects along path retain the same internal js reference. Since new
|
270
|
+
* objects / arrays are only created along `path`, we can test if anything
|
271
|
+
* changed in a nested structure by comparing the object's reference in
|
272
|
+
* the old and new object, similar to how russian doll cache invalidation
|
273
|
+
* works.
|
274
|
+
*
|
275
|
+
* In earlier versions of this function, which used cloneDeep, there were
|
276
|
+
* issues whereby settings a nested value would mutate the parent
|
277
|
+
* instead of creating a new object. `clone` avoids that bug making a
|
278
|
+
* shallow copy of the objects along the update path
|
279
|
+
* so no object is mutated in place.
|
280
|
+
*
|
281
|
+
* Before changing this function, please read through the following
|
282
|
+
* discussions.
|
283
|
+
*
|
284
|
+
* @see https://github.com/developit/linkstate
|
285
|
+
* @see https://github.com/jaredpalmer/formik/pull/123
|
286
|
+
*/ function setIn(obj, path, value) {
|
287
|
+
const res = clone(obj); // this keeps inheritance when obj is a class
|
288
|
+
let resVal = res;
|
289
|
+
let i = 0;
|
290
|
+
const pathArray = toPath(path);
|
291
|
+
for(; i < pathArray.length - 1; i++){
|
292
|
+
const currentPath = pathArray[i];
|
293
|
+
const currentObj = getIn(obj, pathArray.slice(0, i + 1));
|
294
|
+
if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) {
|
295
|
+
resVal = resVal[currentPath] = clone(currentObj);
|
296
|
+
} else {
|
297
|
+
const nextPath = pathArray[i + 1];
|
298
|
+
resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};
|
299
|
+
}
|
300
|
+
}
|
301
|
+
// Return original object if new value is the same as current
|
302
|
+
if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {
|
303
|
+
return obj;
|
304
|
+
}
|
305
|
+
{
|
306
|
+
delete resVal[pathArray[i]];
|
307
|
+
}
|
308
|
+
// If the path array has a single element, the loop did not run.
|
309
|
+
// Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.
|
310
|
+
if (i === 0 && value === undefined) {
|
311
|
+
delete res[pathArray[i]];
|
312
|
+
}
|
313
|
+
return res;
|
314
|
+
}
|
315
|
+
|
316
|
+
export { DIRECTIONS as D, ItemTypes as I, DROP_SENSITIVITY as a, getIn as g, setIn as s, useDragAndDrop as u };
|
317
|
+
//# sourceMappingURL=objects-D2z-IJgu.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objects-D2z-IJgu.mjs","sources":["../../../admin/src/constants/dragAndDrop.ts","../../../admin/src/hooks/useKeyboardDragAndDrop.ts","../../../admin/src/hooks/useDragAndDrop.ts","../../../admin/src/utils/objects.ts"],"sourcesContent":["export const ItemTypes = {\n COMPONENT: 'component',\n EDIT_FIELD: 'editField',\n FIELD: 'field',\n DYNAMIC_ZONE: 'dynamicZone',\n RELATION: 'relation',\n BLOCKS: 'blocks',\n} as const;\n","import * as React from 'react';\n\nexport type UseKeyboardDragAndDropCallbacks<TIndex extends number | Array<number> = number> = {\n onCancel?: (index: TIndex) => void;\n onDropItem?: (currentIndex: TIndex, newIndex?: TIndex) => void;\n onGrabItem?: (index: TIndex) => void;\n onMoveItem?: (newIndex: TIndex, currentIndex: TIndex) => void;\n};\n\n/**\n * Utility hook designed to implement keyboard accessibile drag and drop by\n * returning an onKeyDown handler to be passed to the drag icon button.\n *\n * @internal - You should use `useDragAndDrop` instead.\n */\nexport const useKeyboardDragAndDrop = <TIndex extends number | Array<number> = number>(\n active: boolean,\n index: TIndex,\n { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>\n) => {\n const [isSelected, setIsSelected] = React.useState(false);\n\n const handleMove = (movement: 'UP' | 'DOWN') => {\n if (!isSelected) {\n return;\n }\n if (typeof index === 'number' && onMoveItem) {\n if (movement === 'UP') {\n onMoveItem((index - 1) as TIndex, index);\n } else if (movement === 'DOWN') {\n onMoveItem((index + 1) as TIndex, index);\n }\n }\n };\n\n const handleDragClick = () => {\n if (isSelected) {\n if (onDropItem) {\n onDropItem(index);\n }\n setIsSelected(false);\n } else {\n if (onGrabItem) {\n onGrabItem(index);\n }\n setIsSelected(true);\n }\n };\n\n const handleCancel = () => {\n if (isSelected) {\n setIsSelected(false);\n\n if (onCancel) {\n onCancel(index);\n }\n }\n };\n\n const handleKeyDown = <E extends Element>(e: React.KeyboardEvent<E>) => {\n if (!active) {\n return;\n }\n\n if (e.key === 'Tab' && !isSelected) {\n return;\n }\n\n e.preventDefault();\n\n switch (e.key) {\n case ' ':\n case 'Enter':\n handleDragClick();\n break;\n\n case 'Escape':\n handleCancel();\n break;\n\n case 'ArrowDown':\n case 'ArrowRight':\n handleMove('DOWN');\n break;\n\n case 'ArrowUp':\n case 'ArrowLeft':\n handleMove('UP');\n break;\n\n default:\n }\n };\n\n return handleKeyDown;\n};\n","import * as React from 'react';\n\nimport {\n useDrag,\n useDrop,\n type HandlerManager,\n type ConnectDragSource,\n type ConnectDropTarget,\n type ConnectDragPreview,\n type DragSourceMonitor,\n} from 'react-dnd';\n\nimport {\n useKeyboardDragAndDrop,\n type UseKeyboardDragAndDropCallbacks,\n} from './useKeyboardDragAndDrop';\n\nimport type { Data } from '@strapi/types';\n\nconst DIRECTIONS = {\n UPWARD: 'upward',\n DOWNWARD: 'downward',\n} as const;\n\nconst DROP_SENSITIVITY = {\n REGULAR: 'regular',\n IMMEDIATE: 'immediate',\n} as const;\n\ninterface UseDragAndDropOptions<\n TIndex extends number | Array<number> = number,\n TItem extends { index: TIndex } = { index: TIndex },\n> extends UseKeyboardDragAndDropCallbacks<TIndex> {\n type?: string;\n index: TIndex;\n item?: TItem;\n onStart?: () => void;\n onEnd?: () => void;\n dropSensitivity?: (typeof DROP_SENSITIVITY)[keyof typeof DROP_SENSITIVITY];\n}\n\ntype Identifier = ReturnType<HandlerManager['getHandlerId']>;\n\ntype UseDragAndDropReturn<E extends Element = HTMLElement> = [\n props: {\n handlerId: Identifier;\n isDragging: boolean;\n handleKeyDown: <E extends Element>(event: React.KeyboardEvent<E>) => void;\n isOverDropTarget: boolean;\n direction: (typeof DIRECTIONS)[keyof typeof DIRECTIONS] | null;\n },\n objectRef: React.RefObject<E>,\n dropRef: ConnectDropTarget,\n dragRef: ConnectDragSource,\n dragPreviewRef: ConnectDragPreview,\n];\n\ntype DropCollectedProps = {\n handlerId: Identifier;\n isOver: boolean;\n};\n\n/**\n * A utility hook abstracting the general drag and drop hooks from react-dnd.\n * Centralising the same behaviours and by default offering keyboard support.\n */\nconst useDragAndDrop = <\n TIndex extends number | Array<number>,\n TItem extends { index: TIndex; id?: Data.ID; [key: string]: unknown } = {\n index: TIndex;\n [key: string]: unknown;\n },\n E extends Element = HTMLElement,\n>(\n active: boolean,\n {\n type = 'STRAPI_DND',\n index,\n item,\n onStart,\n onEnd,\n onGrabItem,\n onDropItem,\n onCancel,\n onMoveItem,\n dropSensitivity = DROP_SENSITIVITY.REGULAR,\n }: UseDragAndDropOptions<TIndex, TItem>\n): UseDragAndDropReturn<E> => {\n const objectRef = React.useRef<E>(null);\n\n const [{ handlerId, isOver }, dropRef] = useDrop<TItem, void, DropCollectedProps>({\n accept: type,\n collect(monitor) {\n return {\n handlerId: monitor.getHandlerId(),\n isOver: monitor.isOver({ shallow: true }),\n };\n },\n drop(item) {\n const draggedIndex = item.index;\n const newIndex = index;\n\n if (isOver && onDropItem) {\n onDropItem(draggedIndex, newIndex);\n }\n },\n hover(item, monitor) {\n if (!objectRef.current || !onMoveItem) {\n return;\n }\n\n const dragIndex = item.index;\n const newIndex = index;\n\n const hoverBoundingRect = objectRef.current?.getBoundingClientRect();\n const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;\n const clientOffset = monitor.getClientOffset();\n if (!clientOffset) return;\n\n const hoverClientY = clientOffset && clientOffset.y - hoverBoundingRect.top;\n if (typeof dragIndex === 'number' && typeof newIndex === 'number') {\n if (dragIndex === newIndex) {\n // Don't replace items with themselves\n return;\n }\n\n if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {\n // Dragging downwards\n if (dragIndex < newIndex && hoverClientY < hoverMiddleY) {\n return;\n }\n\n // Dragging upwards\n if (dragIndex > newIndex && hoverClientY > hoverMiddleY) {\n return;\n }\n }\n\n // Time to actually perform the action\n onMoveItem(newIndex, dragIndex);\n item.index = newIndex;\n } else {\n // Using numbers as indices doesn't work for nested list items with path like [1, 1, 0]\n if (Array.isArray(dragIndex) && Array.isArray(newIndex)) {\n // Indices comparison to find item position in nested list\n const minLength = Math.min(dragIndex.length, newIndex.length);\n let areEqual = true;\n let isLessThan = false;\n let isGreaterThan = false;\n\n for (let i = 0; i < minLength; i++) {\n if (dragIndex[i] < newIndex[i]) {\n isLessThan = true;\n areEqual = false;\n break;\n } else if (dragIndex[i] > newIndex[i]) {\n isGreaterThan = true;\n areEqual = false;\n break;\n }\n }\n\n // Don't replace items with themselves\n if (areEqual && dragIndex.length === newIndex.length) {\n return;\n }\n\n if (dropSensitivity === DROP_SENSITIVITY.REGULAR) {\n // Dragging downwards\n if (isLessThan && !isGreaterThan && hoverClientY < hoverMiddleY) {\n return;\n }\n\n // Dragging upwards\n if (isGreaterThan && !isLessThan && hoverClientY > hoverMiddleY) {\n return;\n }\n }\n }\n\n onMoveItem(newIndex, dragIndex);\n item.index = newIndex;\n }\n },\n });\n\n const getDragDirection = (monitor: DragSourceMonitor<TItem, void>) => {\n if (\n monitor &&\n monitor.isDragging() &&\n !monitor.didDrop() &&\n monitor.getInitialClientOffset() &&\n monitor.getClientOffset()\n ) {\n const deltaY = monitor.getInitialClientOffset()!.y - monitor.getClientOffset()!.y;\n\n if (deltaY > 0) return DIRECTIONS.UPWARD;\n\n if (deltaY < 0) return DIRECTIONS.DOWNWARD;\n\n return null;\n }\n\n return null;\n };\n\n const [{ isDragging, direction }, dragRef, dragPreviewRef] = useDrag({\n type,\n item() {\n if (onStart) {\n onStart();\n }\n\n /**\n * This will be attached and it helps define the preview sizes\n * when a component is flexy e.g. Relations\n */\n const { width } = objectRef.current?.getBoundingClientRect() ?? {};\n\n return { index, width, ...item };\n },\n end() {\n if (onEnd) {\n onEnd();\n }\n },\n canDrag: active,\n /**\n * This is useful when the item is in a virtualized list.\n * However, if we don't have an ID then we want the libraries\n * defaults to take care of this.\n */\n isDragging: item?.id\n ? (monitor) => {\n return item.id === monitor.getItem().id;\n }\n : undefined,\n collect: (monitor) => ({\n isDragging: monitor.isDragging(),\n initialOffset: monitor.getInitialClientOffset(),\n currentOffset: monitor.getClientOffset(),\n direction: getDragDirection(monitor),\n }),\n });\n\n const handleKeyDown = useKeyboardDragAndDrop(active, index, {\n onGrabItem,\n onDropItem,\n onCancel,\n onMoveItem,\n });\n\n return [\n { handlerId, isDragging, handleKeyDown, isOverDropTarget: isOver, direction },\n objectRef,\n dropRef,\n dragRef,\n dragPreviewRef,\n ];\n};\n\nexport {\n useDragAndDrop,\n UseDragAndDropReturn,\n UseDragAndDropOptions,\n DIRECTIONS,\n DROP_SENSITIVITY,\n};\n","import clone from 'lodash/clone';\nimport toPath from 'lodash/toPath';\n\n/**\n * Deeply get a value from an object via its path.\n */\nexport function getIn(obj: any, key: string | string[], def?: any, pathStartIndex: number = 0) {\n const path = toPath(key);\n while (obj && pathStartIndex < path.length) {\n obj = obj[path[pathStartIndex++]];\n }\n\n // check if path is not in the end\n if (pathStartIndex !== path.length && !obj) {\n return def;\n }\n\n return obj === undefined ? def : obj;\n}\n\n/** @internal is the given object an Object? */\nexport const isObject = (obj: any): obj is object =>\n obj !== null && typeof obj === 'object' && !Array.isArray(obj);\n\n/** @internal is the given object an integer? */\nexport const isInteger = (obj: any): boolean => String(Math.floor(Number(obj))) === obj;\n\n/**\n * Deeply set a value from in object via its path. If the value at `path`\n * has changed, return a shallow copy of obj with `value` set at `path`.\n * If `value` has not changed, return the original `obj`.\n *\n * Existing objects / arrays along `path` are also shallow copied. Sibling\n * objects along path retain the same internal js reference. Since new\n * objects / arrays are only created along `path`, we can test if anything\n * changed in a nested structure by comparing the object's reference in\n * the old and new object, similar to how russian doll cache invalidation\n * works.\n *\n * In earlier versions of this function, which used cloneDeep, there were\n * issues whereby settings a nested value would mutate the parent\n * instead of creating a new object. `clone` avoids that bug making a\n * shallow copy of the objects along the update path\n * so no object is mutated in place.\n *\n * Before changing this function, please read through the following\n * discussions.\n *\n * @see https://github.com/developit/linkstate\n * @see https://github.com/jaredpalmer/formik/pull/123\n */\nexport function setIn(obj: any, path: string, value: any): any {\n const res: any = clone(obj); // this keeps inheritance when obj is a class\n let resVal: any = res;\n let i = 0;\n const pathArray = toPath(path);\n\n for (; i < pathArray.length - 1; i++) {\n const currentPath: string = pathArray[i];\n const currentObj: any = getIn(obj, pathArray.slice(0, i + 1));\n\n if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) {\n resVal = resVal[currentPath] = clone(currentObj);\n } else {\n const nextPath: string = pathArray[i + 1];\n resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};\n }\n }\n\n // Return original object if new value is the same as current\n if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {\n return obj;\n }\n\n if (value === undefined) {\n delete resVal[pathArray[i]];\n } else {\n resVal[pathArray[i]] = value;\n }\n\n // If the path array has a single element, the loop did not run.\n // Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.\n if (i === 0 && value === undefined) {\n delete res[pathArray[i]];\n }\n\n return res;\n}\n"],"names":["ItemTypes","COMPONENT","EDIT_FIELD","FIELD","DYNAMIC_ZONE","RELATION","BLOCKS","useKeyboardDragAndDrop","active","index","onCancel","onDropItem","onGrabItem","onMoveItem","isSelected","setIsSelected","React","useState","handleMove","movement","handleDragClick","handleCancel","handleKeyDown","e","key","preventDefault","DIRECTIONS","UPWARD","DOWNWARD","DROP_SENSITIVITY","REGULAR","IMMEDIATE","useDragAndDrop","type","item","onStart","onEnd","dropSensitivity","objectRef","useRef","handlerId","isOver","dropRef","useDrop","accept","collect","monitor","getHandlerId","shallow","drop","draggedIndex","newIndex","hover","current","dragIndex","hoverBoundingRect","getBoundingClientRect","hoverMiddleY","bottom","top","clientOffset","getClientOffset","hoverClientY","y","Array","isArray","minLength","Math","min","length","areEqual","isLessThan","isGreaterThan","i","getDragDirection","isDragging","didDrop","getInitialClientOffset","deltaY","direction","dragRef","dragPreviewRef","useDrag","width","end","canDrag","id","getItem","undefined","initialOffset","currentOffset","isOverDropTarget","getIn","obj","def","pathStartIndex","path","toPath","isObject","isInteger","String","floor","Number","setIn","value","res","clone","resVal","pathArray","currentPath","currentObj","slice","nextPath"],"mappings":";;;;;MAAaA,SAAY,GAAA;IACvBC,SAAW,EAAA,WAAA;IACXC,UAAY,EAAA,WAAA;IACZC,KAAO,EAAA,OA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,EAAA;AACrEH,YAAAA,MAAAA,GAASA,MAAM,CAACE,WAAY,CAAA,GAAGH,KAAMI,CAAAA,UAAAA,CAAAA;SAChC,MAAA;AACL,YAAA,MAAME,QAAmBJ,GAAAA,SAAS,CAACnC,CAAAA,GAAI,CAAE,CAAA;YACzCkC,MAASA,GAAAA,MAAM,CAACE,WAAAA,CAAY,GAAGV,SAAAA,CAAUa,QAAaV,CAAAA,IAAAA,MAAAA,CAAOU,QAAa,CAAA,IAAA,CAAA,GAAI,EAAE,GAAG,EAAC;AACtF;AACF;;AAGA,IAAA,IAAI,CAACvC,CAAM,KAAA,CAAA,GAAIoB,GAAMc,GAAAA,MAAK,EAAGC,SAAS,CAACnC,CAAE,CAAA,CAAC,KAAK+B,KAAO,EAAA;QACpD,OAAOX,GAAAA;AACT;AAEA,IAAyB;AACvB,QAAA,OAAOc,MAAM,CAACC,SAAS,CAACnC,EAAE,CAAC;;;;IAO7B,IAAIA,CAAAA,KAAM,CAAK+B,IAAAA,KAAAA,KAAUhB,SAAW,EAAA;AAClC,QAAA,OAAOiB,GAAG,CAACG,SAAS,CAACnC,EAAE,CAAC;AAC1B;IAEA,OAAOgC,GAAAA;AACT;;;;"}
|
@@ -0,0 +1,200 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var groups = "Grupy";
|
4
|
+
var models = "Typy Kolekcji";
|
5
|
+
var pageNotFound = "Strona nie znaleziona";
|
6
|
+
var pl = {
|
7
|
+
"App.schemas.data-loaded": "Schematy zostały poprawnie załadowane",
|
8
|
+
"ListViewTable.relation-loaded": "Relacje zostały załadowane",
|
9
|
+
"ListViewTable.relation-loading": "Trwa ładowanie relacji",
|
10
|
+
"ListViewTable.relation-more": "Ta relacja zwiera więcej wartości nież wyświetlana",
|
11
|
+
"EditRelations.title": "Relacje",
|
12
|
+
"HeaderLayout.button.label-add-entry": "Dodaj nowy wpis",
|
13
|
+
"api.id": "API ID",
|
14
|
+
"components.AddFilterCTA.add": "Filtry",
|
15
|
+
"components.AddFilterCTA.hide": "Filtry",
|
16
|
+
"components.DragHandle-label": "Przenieś",
|
17
|
+
"components.DraggableAttr.edit": "Kliknij by edytować",
|
18
|
+
"components.DraggableCard.delete.field": "Usuń {item}",
|
19
|
+
"components.DraggableCard.edit.field": "Edytuj {item}",
|
20
|
+
"components.DraggableCard.move.field": "Przenieś {item}",
|
21
|
+
"components.ListViewTable.row-line": "rząd {number}",
|
22
|
+
"components.DynamicZone.ComponentPicker-label": "Wybierz komponent",
|
23
|
+
"components.DynamicZone.add-component": "Dodaj komponent do {componentName}",
|
24
|
+
"components.DynamicZone.delete-label": "Usuń {name}",
|
25
|
+
"components.DynamicZone.error-message": "Komponent zawiera błąd/błędy",
|
26
|
+
"components.DynamicZone.missing-components": "Brakuje {number, plural, =0 {# komponentów} one {# komponentu} other {# komponentów}}",
|
27
|
+
"components.DynamicZone.move-down-label": "Przesuń niżej",
|
28
|
+
"components.DynamicZone.move-up-label": "Przesuń wyżej",
|
29
|
+
"components.DynamicZone.pick-compo": "Wybierz jeden komponent",
|
30
|
+
"components.DynamicZone.required": "Komponent jest wymagany",
|
31
|
+
"components.EmptyAttributesBlock.button": "Przejdź do ustawień",
|
32
|
+
"components.EmptyAttributesBlock.description": "Możesz zmienić ustawienia",
|
33
|
+
"components.FieldItem.linkToComponentLayout": "Ustaw układ komponentu",
|
34
|
+
"components.FieldSelect.label": "Dodaj pole",
|
35
|
+
"components.FilterOptions.button.apply": "Zastosuj",
|
36
|
+
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Zastosuj",
|
37
|
+
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Wyczyść wszystko",
|
38
|
+
"components.FiltersPickWrapper.PluginHeader.description": "Ustawianie warunków filtrowania elementów.",
|
39
|
+
"components.FiltersPickWrapper.PluginHeader.title.filter": "Filtry",
|
40
|
+
"components.FiltersPickWrapper.hide": "Ukryj",
|
41
|
+
"components.LeftMenu.Search.label": "Szukaj",
|
42
|
+
"components.LeftMenu.collection-types": "Typy kolekcji",
|
43
|
+
"components.LeftMenu.single-types": "Pojedynczy typ",
|
44
|
+
"components.LimitSelect.itemsPerPage": "Elementów na stronę",
|
45
|
+
"components.NotAllowedInput.text": "Brak uprawnień do zobaczenia tego pola",
|
46
|
+
"components.RepeatableComponent.error-message": "Komponent zawiera błąd/błędy",
|
47
|
+
"components.Search.placeholder": "Szukaj elementu...",
|
48
|
+
"components.Select.draft-info-title": "Stan: Szkic",
|
49
|
+
"components.Select.publish-info-title": "Stan: Opublikowany",
|
50
|
+
"components.SettingsViewWrapper.pluginHeader.description.edit-settings": "Dostosuj wygląd widoku edycji.",
|
51
|
+
"components.SettingsViewWrapper.pluginHeader.description.list-settings": "Zdefiniuj ustawienia widoku listy.",
|
52
|
+
"components.SettingsViewWrapper.pluginHeader.title": "Skonfiguruj widok - {name}",
|
53
|
+
"components.TableDelete.delete": "Usuń",
|
54
|
+
"components.TableDelete.deleteSelected": "Usuń zaznaczone",
|
55
|
+
"components.TableDelete.label": "{number, plural, one {# wpis zaznaczony} other {# wpisy zaznaczone}}",
|
56
|
+
"components.TableEmpty.withFilters": "Nie istnieją elementy {contentType} zgodne z zastosowanymi filtrami...",
|
57
|
+
"components.TableEmpty.withSearch": "Nie istnieją elementy {contentType} zgodne z wyszukiwaną frazą ({search})...",
|
58
|
+
"components.TableEmpty.withoutFilter": "Nie istnieją jeszcze elementy związane z {contentType}... Stwórz pierwszy jak najszybciej!",
|
59
|
+
"components.empty-repeatable": "Jeszcze nie ma wpisu. Kliknij przycisk poniżej, aby go dodać.",
|
60
|
+
"components.notification.info.maximum-requirement": "Osiągięto maksymalną liczbę pól",
|
61
|
+
"components.notification.info.minimum-requirement": "Dodano pole spełniające minimalne wymagania",
|
62
|
+
"components.repeatable.reorder.error": "Wystąpił błąd podczas zmiany pozycji komponentu, spróbuj raz jeszcze",
|
63
|
+
"components.reset-entry": "Zresetuj wpis",
|
64
|
+
"components.uid.apply": "zastostuj",
|
65
|
+
"components.uid.available": "Dostępny",
|
66
|
+
"components.uid.regenerate": "Odnów",
|
67
|
+
"components.uid.suggested": "zasugerowany",
|
68
|
+
"components.uid.unavailable": "Niedostępny",
|
69
|
+
"containers.Edit.Link.Layout": "Skonfiguruj układ",
|
70
|
+
"containers.Edit.Link.Model": "Edytuj typ kolekcji",
|
71
|
+
"containers.Edit.addAnItem": "Dodaj element...",
|
72
|
+
"containers.Edit.clickToJump": "Kliknij aby przejść do elementu",
|
73
|
+
"containers.Edit.delete": "Usuń",
|
74
|
+
"containers.Edit.delete-entry": "Usuń ten wpis",
|
75
|
+
"containers.Edit.editing": "Edytowanie...",
|
76
|
+
"containers.Edit.information": "Informacje",
|
77
|
+
"containers.Edit.information.by": "Przez",
|
78
|
+
"containers.Edit.information.created": "Stworzony",
|
79
|
+
"containers.Edit.information.draftVersion": "wersja szkicu",
|
80
|
+
"containers.Edit.information.editing": "Edytowanie",
|
81
|
+
"containers.Edit.information.lastUpdate": "Ostatnia aktualizacja",
|
82
|
+
"containers.Edit.information.publishedVersion": "wersja publikacji",
|
83
|
+
"containers.Edit.pluginHeader.title.new": "Nowy wpis",
|
84
|
+
"containers.Edit.reset": "Wyczyść",
|
85
|
+
"containers.Edit.returnList": "Wróć do listy",
|
86
|
+
"containers.Edit.seeDetails": "Szczegóły",
|
87
|
+
"containers.Edit.submit": "Prześlij",
|
88
|
+
"containers.EditSettingsView.modal-form.edit-field": "Edytuj pole",
|
89
|
+
"containers.EditView.add.new-entry": "Dodaj wpis",
|
90
|
+
"containers.EditView.notification.errors": "Formularz zawiera błędy",
|
91
|
+
"containers.Home.introduction": "Aby edytować wpisy przejdź do odpowiedniego linku w menu po lewej. Ten plugin nie ma odpowiedniego sposobu na edytowanie ustawień i nadal jest w trakcie rozwijania.",
|
92
|
+
"containers.Home.pluginHeaderDescription": "Zarządzaj swoimi danymi za pomocą potężnego i pięknego interfejsu.",
|
93
|
+
"containers.Home.pluginHeaderTitle": "Treści",
|
94
|
+
"containers.List.draft": "Szkic",
|
95
|
+
"containers.List.errorFetchRecords": "Błąd",
|
96
|
+
"containers.List.published": "Opublikowany",
|
97
|
+
"containers.list.displayedFields": "Wyświetlone atrybuty",
|
98
|
+
"containers.list.items": "{number, plural, =0 {items} one {item} other {items}}",
|
99
|
+
"containers.list.table-headers.publishedAt": "Stan",
|
100
|
+
"containers.ListSettingsView.modal-form.edit-label": "Edytuj etykietę",
|
101
|
+
"containers.SettingPage.add.field": "Wstaw inne pole",
|
102
|
+
"containers.SettingPage.attributes": "Pola atrybutów",
|
103
|
+
"containers.SettingPage.attributes.description": "Zdefiniuj kolejność atrybutów",
|
104
|
+
"containers.SettingPage.editSettings.description": "Przeciągnij i upuś pola by zbudować układ",
|
105
|
+
"containers.SettingPage.editSettings.entry.title": "Tytuł wpisu",
|
106
|
+
"containers.SettingPage.editSettings.entry.title.description": "Ustaw wyświetlane pole swojego wpisu",
|
107
|
+
"containers.SettingPage.editSettings.relation-field.description": "Ustaw wyświetlane pole w obydwu widokach listy",
|
108
|
+
"containers.SettingPage.editSettings.title": "Edycja (ustawienia)",
|
109
|
+
"containers.SettingPage.layout": "Układ",
|
110
|
+
"containers.SettingPage.listSettings.description": "Skonfiguruj opcje dla tego modelu",
|
111
|
+
"containers.SettingPage.listSettings.title": "Lista (ustawienia)",
|
112
|
+
"containers.SettingPage.pluginHeaderDescription": "Skonfiguruj konkretne ustawienia tego modelu",
|
113
|
+
"containers.SettingPage.settings": "Ustawienia",
|
114
|
+
"containers.SettingPage.view": "Widok",
|
115
|
+
"containers.SettingViewModel.pluginHeader.title": "Menedżer treści - {name}",
|
116
|
+
"containers.SettingsPage.Block.contentType.description": "Skonfiguruj konkretne ustawienia",
|
117
|
+
"containers.SettingsPage.Block.contentType.title": "Typy Kolekcji",
|
118
|
+
"containers.SettingsPage.Block.generalSettings.description": "Skonfiguruj domyślne opcje dla twoich typów kolekcji",
|
119
|
+
"containers.SettingsPage.Block.generalSettings.title": "Ogólne",
|
120
|
+
"containers.SettingsPage.pluginHeaderDescription": "Skonfiguruj domyślne opcje wszystkich twoich modeli",
|
121
|
+
"containers.SettingsView.list.subtitle": "Skonfiguruj układ i wyświetlanie modeli i grup",
|
122
|
+
"containers.SettingsView.list.title": "Wyświetl ustawienia",
|
123
|
+
"edit-settings-view.link-to-ctb.components": "Edytuj komponent",
|
124
|
+
"edit-settings-view.link-to-ctb.content-types": "Edytuj",
|
125
|
+
"emptyAttributes.button": "Przejdź do konstruktora modeli",
|
126
|
+
"emptyAttributes.description": "Dodaj swoje pierwszy atrybut do modelu",
|
127
|
+
"emptyAttributes.title": "Nie ma jeszcze żadnych atrybutów",
|
128
|
+
"error.attribute.key.taken": "Ta wartość już istnieje",
|
129
|
+
"error.attribute.sameKeyAndName": "Nie mogą być takie same",
|
130
|
+
"error.attribute.taken": "Atrybut o tej nazwie już istnieje",
|
131
|
+
"error.contentTypeName.taken": "Ta nazwa już istnieje",
|
132
|
+
"error.model.fetch": "Wystąpił błąd podczas pobierania konfiguracji modelów.",
|
133
|
+
"error.record.create": "Wystąpił błąd podczas tworzenia rekordu.",
|
134
|
+
"error.record.delete": "Wystąpił błąd podczas usuwania rekordu.",
|
135
|
+
"error.record.fetch": "Wystąpił błąd podczas pobierania rekordu.",
|
136
|
+
"error.record.update": "Wystąpił błąd podczas zmiany rekordu.",
|
137
|
+
"error.records.count": "Wystąpił błąd podczas liczenia rekordów.",
|
138
|
+
"error.records.fetch": "Wystąpił błąd podczas pobierania rekordów.",
|
139
|
+
"error.schema.generation": "Wystąpił błąd podczas generowania schematu.",
|
140
|
+
"error.validation.json": "To nie jest JSON",
|
141
|
+
"error.validation.max": "Wartość jest za wysoka.",
|
142
|
+
"error.validation.maxLength": "Wartość jest za długa.",
|
143
|
+
"error.validation.min": "Wartość jest za niska.",
|
144
|
+
"error.validation.minLength": "Wartość jest za krótka.",
|
145
|
+
"error.validation.minSupMax": "Nie może być większa",
|
146
|
+
"error.validation.regex": "Wartość nie jest zgodna z wymaganym wzorcem.",
|
147
|
+
"error.validation.required": "Wpisanie wartości dla tego atrybutu jest wymagane.",
|
148
|
+
"form.Input.bulkActions": "Włącz akcje masowe",
|
149
|
+
"form.Input.defaultSort": "Domyślny atrybut sortowania",
|
150
|
+
"form.Input.description": "Opis",
|
151
|
+
"form.Input.description.placeholder": "Nazwa wyświetlana",
|
152
|
+
"form.Input.editable": "Edytowalne pole",
|
153
|
+
"form.Input.filters": "Włącz filtry",
|
154
|
+
"form.Input.label": "Etykieta",
|
155
|
+
"form.Input.label.inputDescription": "Ta wartość nadpisuje etykietę wyświetlaną w nagłówku tabeli",
|
156
|
+
"form.Input.pageEntries": "Wpisy na stronę",
|
157
|
+
"form.Input.pageEntries.inputDescription": "Uwaga: Możesz zmienić tę wartość na stronie ustawień modeli.",
|
158
|
+
"form.Input.placeholder": "Placeholder",
|
159
|
+
"form.Input.placeholder.placeholder": "Moja wartość",
|
160
|
+
"form.Input.search": "Włącz wyszukiwanie",
|
161
|
+
"form.Input.search.field": "Włącz wyszukiwanie po tym polu",
|
162
|
+
"form.Input.sort.field": "Włącz sortowanie po tym polu",
|
163
|
+
"form.Input.sort.order": "Domyślne sortowanie",
|
164
|
+
"form.Input.wysiwyg": "Wyświetl jako edytor WYSIWYG",
|
165
|
+
"global.displayedFields": "Wyświetlane pola",
|
166
|
+
groups: groups,
|
167
|
+
"groups.numbered": "Grupy ({number})",
|
168
|
+
"header.name": "Zawartość",
|
169
|
+
"link-to-ctb": "Edytuj model",
|
170
|
+
models: models,
|
171
|
+
"models.numbered": "Modele ({number})",
|
172
|
+
"notification.error.displayedFields": "Co najmniej jedno pole musi być wyświetlane",
|
173
|
+
"notification.error.relationship.fetch": "Wystąpił błąd podczas pobierania relacji.",
|
174
|
+
"notification.info.SettingPage.disableSort": "Co najmniej jeden atrybut musi mieć włączoną możliwość sortowania",
|
175
|
+
"notification.info.minimumFields": "Musisz wyświetlić przynajmniej jedno pole",
|
176
|
+
"notification.upload.error": "Wystąpił bład podczas przesyłania plików",
|
177
|
+
pageNotFound: pageNotFound,
|
178
|
+
"pages.ListView.header-subtitle": "{number, plural, =0 {#} one {# } other {# }} znaleziono",
|
179
|
+
"pages.NoContentType.button": "Stwórz pierszy Content-Type",
|
180
|
+
"pages.NoContentType.text": "Nie masz jeszcze żadnej zawartości. Polecamy stworzyć pierwszy Content-Type.",
|
181
|
+
"permissions.not-allowed.create": "Brak uprawnień do stworzenia dokumentu",
|
182
|
+
"permissions.not-allowed.update": "Brak uprawnień do odczytu dokumentu",
|
183
|
+
"plugin.description.long": "Szybki sposób na przeglądanie, zmianę i usuwanie elementów z twojej bazy danych.",
|
184
|
+
"plugin.description.short": "Szybki sposób na przeglądanie, zmianę i usuwanie elementów z twojej bazy danych.",
|
185
|
+
"popover.display-relations.label": "Wyświetl powiązania",
|
186
|
+
"success.record.delete": "Usunięto",
|
187
|
+
"success.record.publish": "Opublikowano",
|
188
|
+
"success.record.save": "Zapisano",
|
189
|
+
"success.record.unpublish": "Cofnięto publikację",
|
190
|
+
"utils.data-loaded": "Udało się załadować wpis/wpisy.",
|
191
|
+
"apiError.This attribute must be unique": "{field} musi być unikalne",
|
192
|
+
"popUpWarning.warning.publish-question": "Czy nadal chcesz to opublikować?",
|
193
|
+
"popUpwarning.warning.has-draft-relations.button-confirm": "Tak, opublikuj"
|
194
|
+
};
|
195
|
+
|
196
|
+
exports.default = pl;
|
197
|
+
exports.groups = groups;
|
198
|
+
exports.models = models;
|
199
|
+
exports.pageNotFound = pageNotFound;
|
200
|
+
//# sourceMappingURL=pl-DWhGDzmM.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"pl-DWhGDzmM.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|