@strapi/content-manager 0.0.0 → 5.0.0-beta.6
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/README.md +9 -1
- package/dist/_chunks/CardDragPreview-DSVYodBX.js +73 -0
- package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +1 -0
- package/dist/_chunks/CardDragPreview-ikSG4M46.mjs +72 -0
- package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +1 -0
- package/dist/_chunks/ComponentConfigurationPage--2aLCv-G.mjs +236 -0
- package/dist/_chunks/ComponentConfigurationPage--2aLCv-G.mjs.map +1 -0
- package/dist/_chunks/ComponentConfigurationPage-43KmCNQE.js +255 -0
- package/dist/_chunks/ComponentConfigurationPage-43KmCNQE.js.map +1 -0
- package/dist/_chunks/ComponentIcon-BBQsYCVn.js +170 -0
- package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +1 -0
- package/dist/_chunks/ComponentIcon-BOFnK76n.mjs +151 -0
- package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +1 -0
- package/dist/_chunks/EditConfigurationPage-BfFzJ4Br.js +151 -0
- package/dist/_chunks/EditConfigurationPage-BfFzJ4Br.js.map +1 -0
- package/dist/_chunks/EditConfigurationPage-CUcGHHvQ.mjs +132 -0
- package/dist/_chunks/EditConfigurationPage-CUcGHHvQ.mjs.map +1 -0
- package/dist/_chunks/EditViewPage-Bm8lgcm6.mjs +203 -0
- package/dist/_chunks/EditViewPage-Bm8lgcm6.mjs.map +1 -0
- package/dist/_chunks/EditViewPage-CzOT5Kpj.js +224 -0
- package/dist/_chunks/EditViewPage-CzOT5Kpj.js.map +1 -0
- package/dist/_chunks/Field-Caef4JjM.js +5352 -0
- package/dist/_chunks/Field-Caef4JjM.js.map +1 -0
- package/dist/_chunks/Field-Dlh0uGnL.mjs +5319 -0
- package/dist/_chunks/Field-Dlh0uGnL.mjs.map +1 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +50 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -0
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +49 -0
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -0
- package/dist/_chunks/Form-BzuAjtRq.js +759 -0
- package/dist/_chunks/Form-BzuAjtRq.js.map +1 -0
- package/dist/_chunks/Form-EnaQL_6L.mjs +737 -0
- package/dist/_chunks/Form-EnaQL_6L.mjs.map +1 -0
- package/dist/_chunks/History-C17LiyRg.js +960 -0
- package/dist/_chunks/History-C17LiyRg.js.map +1 -0
- package/dist/_chunks/History-D6sbCJvo.mjs +938 -0
- package/dist/_chunks/History-D6sbCJvo.mjs.map +1 -0
- package/dist/_chunks/ListConfigurationPage-Ce4qs7qE.mjs +622 -0
- package/dist/_chunks/ListConfigurationPage-Ce4qs7qE.mjs.map +1 -0
- package/dist/_chunks/ListConfigurationPage-Dks5SX6f.js +643 -0
- package/dist/_chunks/ListConfigurationPage-Dks5SX6f.js.map +1 -0
- package/dist/_chunks/ListViewPage-Be7S5aKL.mjs +835 -0
- package/dist/_chunks/ListViewPage-Be7S5aKL.mjs.map +1 -0
- package/dist/_chunks/ListViewPage-BwrZrPsh.js +859 -0
- package/dist/_chunks/ListViewPage-BwrZrPsh.js.map +1 -0
- package/dist/_chunks/NoContentTypePage-CIPmYQMm.mjs +51 -0
- package/dist/_chunks/NoContentTypePage-CIPmYQMm.mjs.map +1 -0
- package/dist/_chunks/NoContentTypePage-Cu5r1-JT.js +51 -0
- package/dist/_chunks/NoContentTypePage-Cu5r1-JT.js.map +1 -0
- package/dist/_chunks/NoPermissionsPage-C-j6TEUF.js +24 -0
- package/dist/_chunks/NoPermissionsPage-C-j6TEUF.js.map +1 -0
- package/dist/_chunks/NoPermissionsPage-DhJ7LYrr.mjs +24 -0
- package/dist/_chunks/NoPermissionsPage-DhJ7LYrr.mjs.map +1 -0
- package/dist/_chunks/Relations-CY7AtkDA.mjs +684 -0
- package/dist/_chunks/Relations-CY7AtkDA.mjs.map +1 -0
- package/dist/_chunks/Relations-Czs-uZ-s.js +705 -0
- package/dist/_chunks/Relations-Czs-uZ-s.js.map +1 -0
- package/dist/_chunks/ar-BUUWXIYu.js +226 -0
- package/dist/_chunks/ar-BUUWXIYu.js.map +1 -0
- package/dist/_chunks/ar-CCEVvqGG.mjs +226 -0
- package/dist/_chunks/ar-CCEVvqGG.mjs.map +1 -0
- package/dist/_chunks/ca-5U32ON2v.mjs +201 -0
- package/dist/_chunks/ca-5U32ON2v.mjs.map +1 -0
- package/dist/_chunks/ca-Cmk45QO6.js +201 -0
- package/dist/_chunks/ca-Cmk45QO6.js.map +1 -0
- package/dist/_chunks/cs-CM2aBUar.mjs +125 -0
- package/dist/_chunks/cs-CM2aBUar.mjs.map +1 -0
- package/dist/_chunks/cs-CkJy6B2v.js +125 -0
- package/dist/_chunks/cs-CkJy6B2v.js.map +1 -0
- package/dist/_chunks/de-C72KDNOl.mjs +199 -0
- package/dist/_chunks/de-C72KDNOl.mjs.map +1 -0
- package/dist/_chunks/de-CCEmbAah.js +199 -0
- package/dist/_chunks/de-CCEmbAah.js.map +1 -0
- package/dist/_chunks/en-C-V1_90f.js +285 -0
- package/dist/_chunks/en-C-V1_90f.js.map +1 -0
- package/dist/_chunks/en-MBPul9Su.mjs +285 -0
- package/dist/_chunks/en-MBPul9Su.mjs.map +1 -0
- package/dist/_chunks/es-CeXiYflN.mjs +196 -0
- package/dist/_chunks/es-CeXiYflN.mjs.map +1 -0
- package/dist/_chunks/es-EUonQTon.js +196 -0
- package/dist/_chunks/es-EUonQTon.js.map +1 -0
- package/dist/_chunks/eu-CdALomew.mjs +202 -0
- package/dist/_chunks/eu-CdALomew.mjs.map +1 -0
- package/dist/_chunks/eu-VDH-3ovk.js +202 -0
- package/dist/_chunks/eu-VDH-3ovk.js.map +1 -0
- package/dist/_chunks/fr-B7kGGg3E.js +206 -0
- package/dist/_chunks/fr-B7kGGg3E.js.map +1 -0
- package/dist/_chunks/fr-CD9VFbPM.mjs +206 -0
- package/dist/_chunks/fr-CD9VFbPM.mjs.map +1 -0
- package/dist/_chunks/gu-BRmF601H.js +200 -0
- package/dist/_chunks/gu-BRmF601H.js.map +1 -0
- package/dist/_chunks/gu-CNpaMDpH.mjs +200 -0
- package/dist/_chunks/gu-CNpaMDpH.mjs.map +1 -0
- package/dist/_chunks/hi-CCJBptSq.js +200 -0
- package/dist/_chunks/hi-CCJBptSq.js.map +1 -0
- package/dist/_chunks/hi-Dwvd04m3.mjs +200 -0
- package/dist/_chunks/hi-Dwvd04m3.mjs.map +1 -0
- package/dist/_chunks/hooks-BAaaKPS_.js +7 -0
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -0
- package/dist/_chunks/hooks-E5u1mcgM.mjs +8 -0
- package/dist/_chunks/hooks-E5u1mcgM.mjs.map +1 -0
- package/dist/_chunks/hu-CeYvaaO0.mjs +202 -0
- package/dist/_chunks/hu-CeYvaaO0.mjs.map +1 -0
- package/dist/_chunks/hu-sNV_yLYy.js +202 -0
- package/dist/_chunks/hu-sNV_yLYy.js.map +1 -0
- package/dist/_chunks/id-B5Ser98A.js +160 -0
- package/dist/_chunks/id-B5Ser98A.js.map +1 -0
- package/dist/_chunks/id-BtwA9WJT.mjs +160 -0
- package/dist/_chunks/id-BtwA9WJT.mjs.map +1 -0
- package/dist/_chunks/index-DNVx8ssZ.mjs +3175 -0
- package/dist/_chunks/index-DNVx8ssZ.mjs.map +1 -0
- package/dist/_chunks/index-X_2tafck.js +3195 -0
- package/dist/_chunks/index-X_2tafck.js.map +1 -0
- package/dist/_chunks/it-BrVPqaf1.mjs +162 -0
- package/dist/_chunks/it-BrVPqaf1.mjs.map +1 -0
- package/dist/_chunks/it-DkBIs7vD.js +162 -0
- package/dist/_chunks/it-DkBIs7vD.js.map +1 -0
- package/dist/_chunks/ja-CcFe8diO.js +196 -0
- package/dist/_chunks/ja-CcFe8diO.js.map +1 -0
- package/dist/_chunks/ja-CtsUxOvk.mjs +196 -0
- package/dist/_chunks/ja-CtsUxOvk.mjs.map +1 -0
- package/dist/_chunks/ko-HVQRlfUI.mjs +195 -0
- package/dist/_chunks/ko-HVQRlfUI.mjs.map +1 -0
- package/dist/_chunks/ko-woFZPmLk.js +195 -0
- package/dist/_chunks/ko-woFZPmLk.js.map +1 -0
- package/dist/_chunks/layout-Dnh0PNp9.mjs +453 -0
- package/dist/_chunks/layout-Dnh0PNp9.mjs.map +1 -0
- package/dist/_chunks/layout-dBc7wN7L.js +473 -0
- package/dist/_chunks/layout-dBc7wN7L.js.map +1 -0
- package/dist/_chunks/ml-BihZwQit.mjs +200 -0
- package/dist/_chunks/ml-BihZwQit.mjs.map +1 -0
- package/dist/_chunks/ml-C2W8N8k1.js +200 -0
- package/dist/_chunks/ml-C2W8N8k1.js.map +1 -0
- package/dist/_chunks/ms-BuFotyP_.js +144 -0
- package/dist/_chunks/ms-BuFotyP_.js.map +1 -0
- package/dist/_chunks/ms-m_WjyWx7.mjs +144 -0
- package/dist/_chunks/ms-m_WjyWx7.mjs.map +1 -0
- package/dist/_chunks/nl-D4R9gHx5.mjs +202 -0
- package/dist/_chunks/nl-D4R9gHx5.mjs.map +1 -0
- package/dist/_chunks/nl-bbEOHChV.js +202 -0
- package/dist/_chunks/nl-bbEOHChV.js.map +1 -0
- package/dist/_chunks/objects-gigeqt7s.js +49 -0
- package/dist/_chunks/objects-gigeqt7s.js.map +1 -0
- package/dist/_chunks/objects-mKMAmfec.mjs +47 -0
- package/dist/_chunks/objects-mKMAmfec.mjs.map +1 -0
- package/dist/_chunks/pl-sbx9mSt_.mjs +199 -0
- package/dist/_chunks/pl-sbx9mSt_.mjs.map +1 -0
- package/dist/_chunks/pl-uzwG-hk7.js +199 -0
- package/dist/_chunks/pl-uzwG-hk7.js.map +1 -0
- package/dist/_chunks/pt-BR-BiOz37D9.js +201 -0
- package/dist/_chunks/pt-BR-BiOz37D9.js.map +1 -0
- package/dist/_chunks/pt-BR-C71iDxnh.mjs +201 -0
- package/dist/_chunks/pt-BR-C71iDxnh.mjs.map +1 -0
- package/dist/_chunks/pt-BsaFvS8-.mjs +95 -0
- package/dist/_chunks/pt-BsaFvS8-.mjs.map +1 -0
- package/dist/_chunks/pt-CeXQuq50.js +95 -0
- package/dist/_chunks/pt-CeXQuq50.js.map +1 -0
- package/dist/_chunks/relations-4pHtBrHJ.js +134 -0
- package/dist/_chunks/relations-4pHtBrHJ.js.map +1 -0
- package/dist/_chunks/relations-Dx7tMKJN.mjs +135 -0
- package/dist/_chunks/relations-Dx7tMKJN.mjs.map +1 -0
- package/dist/_chunks/ru-BE6A4Exp.mjs +231 -0
- package/dist/_chunks/ru-BE6A4Exp.mjs.map +1 -0
- package/dist/_chunks/ru-BT3ybNny.js +231 -0
- package/dist/_chunks/ru-BT3ybNny.js.map +1 -0
- package/dist/_chunks/sa-CcvkYInH.js +200 -0
- package/dist/_chunks/sa-CcvkYInH.js.map +1 -0
- package/dist/_chunks/sa-Dag0k-Z8.mjs +200 -0
- package/dist/_chunks/sa-Dag0k-Z8.mjs.map +1 -0
- package/dist/_chunks/sk-BFg-R8qJ.mjs +202 -0
- package/dist/_chunks/sk-BFg-R8qJ.mjs.map +1 -0
- package/dist/_chunks/sk-CvY09Xjv.js +202 -0
- package/dist/_chunks/sk-CvY09Xjv.js.map +1 -0
- package/dist/_chunks/sv-CUnfWGsh.mjs +202 -0
- package/dist/_chunks/sv-CUnfWGsh.mjs.map +1 -0
- package/dist/_chunks/sv-MYDuzgvT.js +202 -0
- package/dist/_chunks/sv-MYDuzgvT.js.map +1 -0
- package/dist/_chunks/th-BqbI8lIT.mjs +148 -0
- package/dist/_chunks/th-BqbI8lIT.mjs.map +1 -0
- package/dist/_chunks/th-D9_GfAjc.js +148 -0
- package/dist/_chunks/th-D9_GfAjc.js.map +1 -0
- package/dist/_chunks/tr-CgeK3wJM.mjs +199 -0
- package/dist/_chunks/tr-CgeK3wJM.mjs.map +1 -0
- package/dist/_chunks/tr-D9UH-O_R.js +199 -0
- package/dist/_chunks/tr-D9UH-O_R.js.map +1 -0
- package/dist/_chunks/uk-C8EiqJY7.js +144 -0
- package/dist/_chunks/uk-C8EiqJY7.js.map +1 -0
- package/dist/_chunks/uk-CR-zDhAY.mjs +144 -0
- package/dist/_chunks/uk-CR-zDhAY.mjs.map +1 -0
- package/dist/_chunks/urls-CbOsUOoW.mjs +7 -0
- package/dist/_chunks/urls-CbOsUOoW.mjs.map +1 -0
- package/dist/_chunks/urls-DzZya_gm.js +6 -0
- package/dist/_chunks/urls-DzZya_gm.js.map +1 -0
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +231 -0
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -0
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +249 -0
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -0
- package/dist/_chunks/vi-CJlYDheJ.js +111 -0
- package/dist/_chunks/vi-CJlYDheJ.js.map +1 -0
- package/dist/_chunks/vi-DUXIk_fw.mjs +111 -0
- package/dist/_chunks/vi-DUXIk_fw.mjs.map +1 -0
- package/dist/_chunks/zh-BWZspA60.mjs +209 -0
- package/dist/_chunks/zh-BWZspA60.mjs.map +1 -0
- package/dist/_chunks/zh-CQQfszqR.js +209 -0
- package/dist/_chunks/zh-CQQfszqR.js.map +1 -0
- package/dist/_chunks/zh-Hans-9kOncHGw.js +952 -0
- package/dist/_chunks/zh-Hans-9kOncHGw.js.map +1 -0
- package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +952 -0
- package/dist/_chunks/zh-Hans-BPQcRIyH.mjs.map +1 -0
- package/dist/admin/index.js +11 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +11 -0
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/components/ComponentIcon.d.ts +8 -0
- package/dist/admin/src/components/ConfigurationForm/EditFieldForm.d.ts +9 -0
- package/dist/admin/src/components/ConfigurationForm/Fields.d.ts +21 -0
- package/dist/admin/src/components/ConfigurationForm/Form.d.ts +32 -0
- package/dist/admin/src/components/DragLayer.d.ts +13 -0
- package/dist/admin/src/components/DragPreviews/CardDragPreview.d.ts +7 -0
- package/dist/admin/src/components/DragPreviews/ComponentDragPreview.d.ts +6 -0
- package/dist/admin/src/components/DragPreviews/RelationDragPreview.d.ts +11 -0
- package/dist/admin/src/components/FieldTypeIcon.d.ts +9 -0
- package/dist/admin/src/components/InjectionZone.d.ts +45 -0
- package/dist/admin/src/components/LeftMenu.d.ts +2 -0
- package/dist/admin/src/components/RelativeTime.d.ts +28 -0
- package/dist/admin/src/constants/attributes.d.ts +14 -0
- package/dist/admin/src/constants/collections.d.ts +3 -0
- package/dist/admin/src/constants/dragAndDrop.d.ts +8 -0
- package/dist/admin/src/constants/hooks.d.ts +26 -0
- package/dist/admin/src/constants/plugin.d.ts +3 -0
- package/dist/admin/src/content-manager.d.ts +133 -0
- package/dist/admin/src/exports.d.ts +11 -0
- package/dist/admin/src/features/DocumentRBAC.d.ts +36 -0
- package/dist/admin/src/history/components/HistoryAction.d.ts +3 -0
- package/dist/admin/src/history/components/VersionContent.d.ts +17 -0
- package/dist/admin/src/history/components/VersionHeader.d.ts +5 -0
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +19 -0
- package/dist/admin/src/history/components/VersionsList.d.ts +2 -0
- package/dist/admin/src/history/pages/History.d.ts +27 -0
- package/dist/admin/src/history/routes.d.ts +6 -0
- package/dist/admin/src/history/services/historyVersion.d.ts +12 -0
- package/dist/admin/src/hooks/useContentManagerInitData.d.ts +15 -0
- package/dist/admin/src/hooks/useContentTypeSchema.d.ts +25 -0
- package/dist/admin/src/hooks/useDebounce.d.ts +1 -0
- package/dist/admin/src/hooks/useDocument.d.ts +90 -0
- package/dist/admin/src/hooks/useDocumentActions.d.ts +102 -0
- package/dist/admin/src/hooks/useDocumentLayout.d.ts +137 -0
- package/dist/admin/src/hooks/useDragAndDrop.d.ts +51 -0
- package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +14 -0
- package/dist/admin/src/hooks/useLazyComponents.d.ts +13 -0
- package/dist/admin/src/hooks/useOnce.d.ts +2 -0
- package/dist/admin/src/hooks/usePrev.d.ts +1 -0
- package/dist/admin/src/index.d.ts +16 -0
- package/dist/admin/src/layout.d.ts +2 -0
- package/dist/admin/src/modules/app.d.ts +20 -0
- package/dist/admin/src/modules/hooks.d.ts +10 -0
- package/dist/admin/src/modules/reducers.d.ts +6 -0
- package/dist/admin/src/pages/ComponentConfigurationPage.d.ts +3 -0
- package/dist/admin/src/pages/EditConfigurationPage.d.ts +3 -0
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +69 -0
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +16 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Heading.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Image.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Link.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/List.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Paragraph.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Quote.d.ts +3 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksContent.d.ts +6 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.d.ts +61 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.d.ts +10 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/EditorLayout.d.ts +10 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Modifiers.d.ts +16 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withImages.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withLinks.d.ts +9 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withStrapiSchema.d.ts +8 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/conversions.d.ts +13 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/enterKey.d.ts +6 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/links.d.ts +10 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/types.d.ts +10 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/Initializer.d.ts +9 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/Input.d.ts +18 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/NonRepeatable.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/Repeatable.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/ComponentContext.d.ts +42 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/AddComponentButton.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCard.d.ts +9 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts +17 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentPicker.d.ts +9 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +14 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicZoneLabel.d.ts +12 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +14 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/NotAllowed.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +26 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +9 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Editor.d.ts +17 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +60 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/PreviewWysiwyg.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +17 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +55 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/utils/continueList.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/utils/mdRenderer.d.ts +4 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/utils/utils.d.ts +16 -0
- package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/Header.d.ts +35 -0
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +17 -0
- package/dist/admin/src/pages/EditView/components/Panels.d.ts +10 -0
- package/dist/admin/src/pages/EditView/utils/data.d.ts +33 -0
- package/dist/admin/src/pages/EditView/utils/forms.d.ts +9 -0
- package/dist/admin/src/pages/ListConfiguration/ListConfigurationPage.d.ts +10 -0
- package/dist/admin/src/pages/ListConfiguration/components/DraggableCard.d.ts +12 -0
- package/dist/admin/src/pages/ListConfiguration/components/EditFieldForm.d.ts +8 -0
- package/dist/admin/src/pages/ListConfiguration/components/Header.d.ts +8 -0
- package/dist/admin/src/pages/ListConfiguration/components/Settings.d.ts +19 -0
- package/dist/admin/src/pages/ListConfiguration/components/SortDisplayedFields.d.ts +6 -0
- package/dist/admin/src/pages/ListView/ListViewPage.d.ts +3 -0
- package/dist/admin/src/pages/ListView/components/AutoCloneFailureModal.d.ts +7 -0
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +51 -0
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +15 -0
- package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +31 -0
- package/dist/admin/src/pages/ListView/components/Filters.d.ts +8 -0
- package/dist/admin/src/pages/ListView/components/TableActions.d.ts +8 -0
- package/dist/admin/src/pages/ListView/components/TableCells/CellContent.d.ts +9 -0
- package/dist/admin/src/pages/ListView/components/TableCells/CellValue.d.ts +8 -0
- package/dist/admin/src/pages/ListView/components/TableCells/Components.d.ts +12 -0
- package/dist/admin/src/pages/ListView/components/TableCells/Media.d.ts +23 -0
- package/dist/admin/src/pages/ListView/components/TableCells/Relations.d.ts +12 -0
- package/dist/admin/src/pages/ListView/components/ViewSettingsMenu.d.ts +10 -0
- package/dist/admin/src/pages/NoContentTypePage.d.ts +2 -0
- package/dist/admin/src/pages/NoPermissionsPage.d.ts +2 -0
- package/dist/admin/src/router.d.ts +5 -0
- package/dist/admin/src/services/api.d.ts +3 -0
- package/dist/admin/src/services/components.d.ts +5 -0
- package/dist/admin/src/services/contentTypes.d.ts +17 -0
- package/dist/admin/src/services/documents.d.ts +89 -0
- package/dist/admin/src/services/init.d.ts +9 -0
- package/dist/admin/src/services/relations.d.ts +49 -0
- package/dist/admin/src/services/uid.d.ts +32 -0
- package/dist/admin/src/utils/api.d.ts +38 -0
- package/dist/admin/src/utils/attributes.d.ts +19 -0
- package/dist/admin/src/utils/objects.d.ts +33 -0
- package/dist/admin/src/utils/relations.d.ts +12 -0
- package/dist/admin/src/utils/strings.d.ts +2 -0
- package/dist/admin/src/utils/translations.d.ts +4 -0
- package/dist/admin/src/utils/urls.d.ts +2 -0
- package/dist/admin/src/utils/users.d.ts +6 -0
- package/dist/admin/src/utils/validation.d.ts +12 -0
- package/dist/server/index.js +4238 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +4214 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/bootstrap.d.ts +3 -0
- package/dist/server/src/bootstrap.d.ts.map +1 -0
- package/dist/server/src/config.d.ts +6 -0
- package/dist/server/src/config.d.ts.map +1 -0
- package/dist/server/src/constants/index.d.ts +6 -0
- package/dist/server/src/constants/index.d.ts.map +1 -0
- package/dist/server/src/controllers/collection-types.d.ts +23 -0
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -0
- package/dist/server/src/controllers/components.d.ts +7 -0
- package/dist/server/src/controllers/components.d.ts.map +1 -0
- package/dist/server/src/controllers/content-types.d.ts +8 -0
- package/dist/server/src/controllers/content-types.d.ts.map +1 -0
- package/dist/server/src/controllers/index.d.ts +53 -0
- package/dist/server/src/controllers/index.d.ts.map +1 -0
- package/dist/server/src/controllers/init.d.ts +5 -0
- package/dist/server/src/controllers/init.d.ts.map +1 -0
- package/dist/server/src/controllers/relations.d.ts +13 -0
- package/dist/server/src/controllers/relations.d.ts.map +1 -0
- package/dist/server/src/controllers/single-types.d.ts +11 -0
- package/dist/server/src/controllers/single-types.d.ts.map +1 -0
- package/dist/server/src/controllers/uid.d.ts +6 -0
- package/dist/server/src/controllers/uid.d.ts.map +1 -0
- package/dist/server/src/controllers/utils/clone.d.ts +12 -0
- package/dist/server/src/controllers/utils/clone.d.ts.map +1 -0
- package/dist/server/src/controllers/utils/dimensions.d.ts +5 -0
- package/dist/server/src/controllers/utils/dimensions.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/index.d.ts +20 -0
- package/dist/server/src/controllers/validation/index.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/model-configuration.d.ts +22 -0
- package/dist/server/src/controllers/validation/model-configuration.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/relations.d.ts +4 -0
- package/dist/server/src/controllers/validation/relations.d.ts.map +1 -0
- package/dist/server/src/destroy.d.ts +4 -0
- package/dist/server/src/destroy.d.ts.map +1 -0
- package/dist/server/src/history/constants.d.ts +3 -0
- package/dist/server/src/history/constants.d.ts.map +1 -0
- package/dist/server/src/history/controllers/history-version.d.ts +19 -0
- package/dist/server/src/history/controllers/history-version.d.ts.map +1 -0
- package/dist/server/src/history/controllers/index.d.ts +2 -0
- package/dist/server/src/history/controllers/index.d.ts.map +1 -0
- package/dist/server/src/history/controllers/validation/history-version.d.ts +2 -0
- package/dist/server/src/history/controllers/validation/history-version.d.ts.map +1 -0
- package/dist/server/src/history/index.d.ts +4 -0
- package/dist/server/src/history/index.d.ts.map +1 -0
- package/dist/server/src/history/models/history-version.d.ts +4 -0
- package/dist/server/src/history/models/history-version.d.ts.map +1 -0
- package/dist/server/src/history/routes/history-version.d.ts +4 -0
- package/dist/server/src/history/routes/history-version.d.ts.map +1 -0
- package/dist/server/src/history/routes/index.d.ts +8 -0
- package/dist/server/src/history/routes/index.d.ts.map +1 -0
- package/dist/server/src/history/services/history.d.ts +18 -0
- package/dist/server/src/history/services/history.d.ts.map +1 -0
- package/dist/server/src/history/services/index.d.ts +15 -0
- package/dist/server/src/history/services/index.d.ts.map +1 -0
- package/dist/server/src/history/services/utils.d.ts +12 -0
- package/dist/server/src/history/services/utils.d.ts.map +1 -0
- package/dist/server/src/history/utils.d.ts +18 -0
- package/dist/server/src/history/utils.d.ts.map +1 -0
- package/dist/server/src/index.d.ts +374 -0
- package/dist/server/src/index.d.ts.map +1 -0
- package/dist/server/src/middlewares/index.d.ts +3 -0
- package/dist/server/src/middlewares/index.d.ts.map +1 -0
- package/dist/server/src/middlewares/routing.d.ts +4 -0
- package/dist/server/src/middlewares/routing.d.ts.map +1 -0
- package/dist/server/src/policies/hasPermissions.d.ts +7 -0
- package/dist/server/src/policies/hasPermissions.d.ts.map +1 -0
- package/dist/server/src/policies/index.d.ts +9 -0
- package/dist/server/src/policies/index.d.ts.map +1 -0
- package/dist/server/src/register.d.ts +4 -0
- package/dist/server/src/register.d.ts.map +1 -0
- package/dist/server/src/routes/admin.d.ts +41 -0
- package/dist/server/src/routes/admin.d.ts.map +1 -0
- package/dist/server/src/routes/index.d.ts +43 -0
- package/dist/server/src/routes/index.d.ts.map +1 -0
- package/dist/server/src/services/components.d.ts +32 -0
- package/dist/server/src/services/components.d.ts.map +1 -0
- package/dist/server/src/services/configuration.d.ts +20 -0
- package/dist/server/src/services/configuration.d.ts.map +1 -0
- package/dist/server/src/services/content-types.d.ts +18 -0
- package/dist/server/src/services/content-types.d.ts.map +1 -0
- package/dist/server/src/services/data-mapper.d.ts +20 -0
- package/dist/server/src/services/data-mapper.d.ts.map +1 -0
- package/dist/server/src/services/document-manager.d.ts +47 -0
- package/dist/server/src/services/document-manager.d.ts.map +1 -0
- package/dist/server/src/services/document-metadata.d.ts +88 -0
- package/dist/server/src/services/document-metadata.d.ts.map +1 -0
- package/dist/server/src/services/field-sizes.d.ts +19 -0
- package/dist/server/src/services/field-sizes.d.ts.map +1 -0
- package/dist/server/src/services/index.d.ts +266 -0
- package/dist/server/src/services/index.d.ts.map +1 -0
- package/dist/server/src/services/metrics.d.ts +9 -0
- package/dist/server/src/services/metrics.d.ts.map +1 -0
- package/dist/server/src/services/permission-checker.d.ts +54 -0
- package/dist/server/src/services/permission-checker.d.ts.map +1 -0
- package/dist/server/src/services/permission.d.ts +12 -0
- package/dist/server/src/services/permission.d.ts.map +1 -0
- package/dist/server/src/services/populate-builder.d.ts +30 -0
- package/dist/server/src/services/populate-builder.d.ts.map +1 -0
- package/dist/server/src/services/uid.d.ts +25 -0
- package/dist/server/src/services/uid.d.ts.map +1 -0
- package/dist/server/src/services/utils/configuration/attributes.d.ts +17 -0
- package/dist/server/src/services/utils/configuration/attributes.d.ts.map +1 -0
- package/dist/server/src/services/utils/configuration/index.d.ts +21 -0
- package/dist/server/src/services/utils/configuration/index.d.ts.map +1 -0
- package/dist/server/src/services/utils/configuration/layouts.d.ts +14 -0
- package/dist/server/src/services/utils/configuration/layouts.d.ts.map +1 -0
- package/dist/server/src/services/utils/configuration/metadatas.d.ts +5 -0
- package/dist/server/src/services/utils/configuration/metadatas.d.ts.map +1 -0
- package/dist/server/src/services/utils/configuration/settings.d.ts +5 -0
- package/dist/server/src/services/utils/configuration/settings.d.ts.map +1 -0
- package/dist/server/src/services/utils/count.d.ts +5 -0
- package/dist/server/src/services/utils/count.d.ts.map +1 -0
- package/dist/server/src/services/utils/draft.d.ts +11 -0
- package/dist/server/src/services/utils/draft.d.ts.map +1 -0
- package/dist/server/src/services/utils/populate.d.ts +35 -0
- package/dist/server/src/services/utils/populate.d.ts.map +1 -0
- package/dist/server/src/services/utils/store.d.ts +16 -0
- package/dist/server/src/services/utils/store.d.ts.map +1 -0
- package/dist/server/src/utils/index.d.ts +9 -0
- package/dist/server/src/utils/index.d.ts.map +1 -0
- package/dist/server/src/validation/policies/hasPermissions.d.ts +2 -0
- package/dist/server/src/validation/policies/hasPermissions.d.ts.map +1 -0
- package/dist/shared/contracts/collection-types.d.ts +328 -0
- package/dist/shared/contracts/collection-types.d.ts.map +1 -0
- package/dist/shared/contracts/components.d.ts +65 -0
- package/dist/shared/contracts/components.d.ts.map +1 -0
- package/dist/shared/contracts/content-types.d.ts +113 -0
- package/dist/shared/contracts/content-types.d.ts.map +1 -0
- package/dist/shared/contracts/history-versions.d.ts +92 -0
- package/dist/shared/contracts/history-versions.d.ts.map +1 -0
- package/dist/shared/contracts/index.d.ts +10 -0
- package/dist/shared/contracts/index.d.ts.map +1 -0
- package/dist/shared/contracts/init.d.ts +24 -0
- package/dist/shared/contracts/init.d.ts.map +1 -0
- package/dist/shared/contracts/relations.d.ts +70 -0
- package/dist/shared/contracts/relations.d.ts.map +1 -0
- package/dist/shared/contracts/review-workflows.d.ts +78 -0
- package/dist/shared/contracts/review-workflows.d.ts.map +1 -0
- package/dist/shared/contracts/single-types.d.ts +113 -0
- package/dist/shared/contracts/single-types.d.ts.map +1 -0
- package/dist/shared/contracts/uid.d.ts +48 -0
- package/dist/shared/contracts/uid.d.ts.map +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +43 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/index.mjs +43 -0
- package/dist/shared/index.mjs.map +1 -0
- package/package.json +114 -2
- package/strapi-server.js +3 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type FieldValue } from '@strapi/admin/strapi-admin';
|
3
|
+
import { MessageDescriptor } from 'react-intl';
|
4
|
+
import { Editor } from 'slate';
|
5
|
+
import { type RenderElementProps } from 'slate-react';
|
6
|
+
import { type CSSProperties } from 'styled-components';
|
7
|
+
import { type BlocksContentProps } from './BlocksContent';
|
8
|
+
import { type ModifiersStore } from './Modifiers';
|
9
|
+
import type { Schema } from '@strapi/types';
|
10
|
+
interface BaseBlock {
|
11
|
+
renderElement: (props: RenderElementProps) => React.JSX.Element;
|
12
|
+
matchNode: (node: Schema.Attribute.BlocksNode) => boolean;
|
13
|
+
handleConvert?: (editor: Editor) => void | (() => React.JSX.Element);
|
14
|
+
handleEnterKey?: (editor: Editor) => void;
|
15
|
+
handleBackspaceKey?: (editor: Editor, event: React.KeyboardEvent<HTMLElement>) => void;
|
16
|
+
handleTab?: (editor: Editor) => void;
|
17
|
+
snippets?: string[];
|
18
|
+
dragHandleTopMargin?: CSSProperties['marginTop'];
|
19
|
+
}
|
20
|
+
interface NonSelectorBlock extends BaseBlock {
|
21
|
+
isInBlocksSelector: false;
|
22
|
+
}
|
23
|
+
interface SelectorBlock extends BaseBlock {
|
24
|
+
isInBlocksSelector: true;
|
25
|
+
icon: React.ComponentType;
|
26
|
+
label: MessageDescriptor;
|
27
|
+
}
|
28
|
+
type NonSelectorBlockKey = 'list-item' | 'link';
|
29
|
+
declare const selectorBlockKeys: readonly ["paragraph", "heading-one", "heading-two", "heading-three", "heading-four", "heading-five", "heading-six", "list-ordered", "list-unordered", "image", "quote", "code"];
|
30
|
+
type SelectorBlockKey = (typeof selectorBlockKeys)[number];
|
31
|
+
declare const isSelectorBlockKey: (key: unknown) => key is "code" | "image" | "paragraph" | "quote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "list-ordered" | "list-unordered";
|
32
|
+
type BlocksStore = {
|
33
|
+
[K in SelectorBlockKey]: SelectorBlock;
|
34
|
+
} & {
|
35
|
+
[K in NonSelectorBlockKey]: NonSelectorBlock;
|
36
|
+
};
|
37
|
+
interface BlocksEditorContextValue {
|
38
|
+
blocks: BlocksStore;
|
39
|
+
modifiers: ModifiersStore;
|
40
|
+
disabled: boolean;
|
41
|
+
name: string;
|
42
|
+
setLiveText: (text: string) => void;
|
43
|
+
isExpandedMode: boolean;
|
44
|
+
}
|
45
|
+
declare const BlocksEditorProvider: {
|
46
|
+
(props: BlocksEditorContextValue & {
|
47
|
+
children: React.ReactNode;
|
48
|
+
}): import("react/jsx-runtime").JSX.Element;
|
49
|
+
displayName: string;
|
50
|
+
};
|
51
|
+
declare function useBlocksEditorContext(consumerName: string): BlocksEditorContextValue & {
|
52
|
+
editor: Editor;
|
53
|
+
};
|
54
|
+
interface BlocksEditorProps extends Pick<FieldValue<Schema.Attribute.BlocksValue>, 'onChange' | 'value' | 'error'>, BlocksContentProps {
|
55
|
+
disabled?: boolean;
|
56
|
+
name: string;
|
57
|
+
}
|
58
|
+
declare const BlocksEditor: React.ForwardRefExoticComponent<BlocksEditorProps & React.RefAttributes<{
|
59
|
+
focus: () => void;
|
60
|
+
}>>;
|
61
|
+
export { type BlocksStore, type SelectorBlockKey, BlocksEditor, BlocksEditorProvider, useBlocksEditorContext, isSelectorBlockKey, };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import type { Schema } from '@strapi/types';
|
4
|
+
interface BlocksInputProps extends Omit<InputProps, 'type'> {
|
5
|
+
labelAction?: React.ReactNode;
|
6
|
+
type: Schema.Attribute.Blocks['type'];
|
7
|
+
}
|
8
|
+
declare const BlocksInput: React.ForwardRefExoticComponent<BlocksInputProps & React.RefAttributes<{
|
9
|
+
focus: () => void;
|
10
|
+
}>>;
|
11
|
+
export { BlocksInput };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
/**
|
3
|
+
* Handles the modal component that may be returned by a block when converting it
|
4
|
+
*/
|
5
|
+
declare function useConversionModal(): {
|
6
|
+
modalElement: React.JSX.Element | null;
|
7
|
+
handleConversionResult: (renderModal: void | (() => React.JSX.Element) | undefined) => void;
|
8
|
+
};
|
9
|
+
declare const BlocksToolbar: () => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export { BlocksToolbar, useConversionModal };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface EditorLayoutProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
error?: string;
|
5
|
+
onCollapse: () => void;
|
6
|
+
disabled: boolean;
|
7
|
+
ariaDescriptionId: string;
|
8
|
+
}
|
9
|
+
declare const EditorLayout: ({ children, error, disabled, onCollapse, ariaDescriptionId, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export { EditorLayout };
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
3
|
+
import { Editor, Text } from 'slate';
|
4
|
+
type ModifierKey = Exclude<keyof Text, 'type' | 'text'>;
|
5
|
+
type ModifiersStore = {
|
6
|
+
[K in ModifierKey]: {
|
7
|
+
icon: React.ComponentType;
|
8
|
+
isValidEventKey: (event: React.KeyboardEvent<HTMLElement>) => boolean;
|
9
|
+
label: MessageDescriptor;
|
10
|
+
checkIsActive: (editor: Editor) => boolean;
|
11
|
+
handleToggle: (editor: Editor) => void;
|
12
|
+
renderLeaf: (children: React.JSX.Element | string) => React.JSX.Element;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
declare const modifiers: ModifiersStore;
|
16
|
+
export { type ModifiersStore, modifiers };
|
package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withImages.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type Editor } from 'slate';
|
2
|
+
/**
|
3
|
+
* Images are void elements. They handle the rendering of their children instead of Slate.
|
4
|
+
* See the Slate documentation for more information:
|
5
|
+
* - https://docs.slatejs.org/api/nodes/element#void-vs-not-void
|
6
|
+
* - https://docs.slatejs.org/api/nodes/element#rendering-void-elements
|
7
|
+
*/
|
8
|
+
declare const withImages: (editor: Editor) => Omit<import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor & import("./withLinks").LinkEditor, "children"> & {
|
9
|
+
children: import("@strapi/types/dist/schema/attribute").BlocksValue;
|
10
|
+
};
|
11
|
+
export { withImages };
|
package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withLinks.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type BaseEditor, Path, Editor } from 'slate';
|
2
|
+
interface LinkEditor extends BaseEditor {
|
3
|
+
lastInsertedLinkPath: Path | null;
|
4
|
+
shouldSaveLinkPath: boolean;
|
5
|
+
}
|
6
|
+
declare const withLinks: (editor: Editor) => Omit<BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor & LinkEditor, "children"> & {
|
7
|
+
children: import("@strapi/types/dist/schema/attribute").BlocksValue;
|
8
|
+
};
|
9
|
+
export { withLinks, type LinkEditor };
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Editor } from 'slate';
|
2
|
+
/**
|
3
|
+
* This plugin is used to normalize the Slate document to match the Strapi schema.
|
4
|
+
*/
|
5
|
+
declare const withStrapiSchema: (editor: Editor) => Omit<import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor & import("./withLinks").LinkEditor, "children"> & {
|
6
|
+
children: import("@strapi/types/dist/schema/attribute").BlocksValue;
|
7
|
+
};
|
8
|
+
export { withStrapiSchema };
|
package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/conversions.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type Element, type Path, Editor } from 'slate';
|
2
|
+
/**
|
3
|
+
* Extracts some logic that is common to most blocks' handleConvert functions.
|
4
|
+
* @returns The path of the converted block
|
5
|
+
*/
|
6
|
+
declare const baseHandleConvert: <T extends import("@strapi/types/dist/schema/attribute").BlocksNode>(editor: Editor, attributesToSet: Partial<T> & {
|
7
|
+
type: T['type'];
|
8
|
+
}) => void | Path;
|
9
|
+
/**
|
10
|
+
* Set all attributes except type and children to null so that Slate deletes them
|
11
|
+
*/
|
12
|
+
declare const getAttributesToClear: (element: Element) => Record<string, null>;
|
13
|
+
export { baseHandleConvert, getAttributesToClear };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Editor } from 'slate';
|
2
|
+
declare const removeLink: (editor: Editor) => void;
|
3
|
+
declare const insertLink: (editor: Editor, { url }: {
|
4
|
+
url: string;
|
5
|
+
}) => void;
|
6
|
+
declare const editLink: (editor: Editor, link: {
|
7
|
+
url: string;
|
8
|
+
text: string;
|
9
|
+
}) => void;
|
10
|
+
export { insertLink, editLink, removeLink };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Schema } from '@strapi/types';
|
2
|
+
import type { Element, Node } from 'slate';
|
3
|
+
type Block<T extends Element['type']> = Extract<Node, {
|
4
|
+
type: T;
|
5
|
+
}>;
|
6
|
+
declare const getEntries: <T extends object>(object: T) => [keyof T, T[keyof T]][];
|
7
|
+
declare const getKeys: <T extends object>(object: T) => (keyof T)[];
|
8
|
+
declare const isLinkNode: (element: Element) => element is Schema.Attribute.LinkInlineNode;
|
9
|
+
declare const isListNode: (element: Element) => element is Schema.Attribute.ListBlockNode;
|
10
|
+
export { type Block, getEntries, getKeys, isLinkNode, isListNode };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface InitializerProps {
|
3
|
+
disabled?: boolean;
|
4
|
+
name: string;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
6
|
+
}
|
7
|
+
declare const Initializer: ({ disabled, name, onClick }: InitializerProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export { Initializer };
|
9
|
+
export type { InitializerProps };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import { EditFieldLayout } from '../../../../../hooks/useDocumentLayout';
|
4
|
+
import { type InputRendererProps } from '../../InputRenderer';
|
5
|
+
interface ComponentInputProps extends Omit<Extract<EditFieldLayout, {
|
6
|
+
type: 'component';
|
7
|
+
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
|
8
|
+
labelAction?: React.ReactNode;
|
9
|
+
children: (props: InputRendererProps) => React.ReactNode;
|
10
|
+
/**
|
11
|
+
* We need layout to come from the props, and not via a hook, because Content History needs
|
12
|
+
* a way to modify the normal component layout to add hidden fields.
|
13
|
+
*/
|
14
|
+
layout: EditFieldLayout[][];
|
15
|
+
}
|
16
|
+
declare const ComponentInput: ({ label, required, name, attribute, disabled, labelAction, ...props }: ComponentInputProps) => import("react/jsx-runtime").JSX.Element;
|
17
|
+
export { ComponentInput };
|
18
|
+
export type { ComponentInputProps };
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { ComponentInputProps } from './Input';
|
2
|
+
type NonRepeatableComponentProps = Omit<ComponentInputProps, 'required' | 'label'>;
|
3
|
+
declare const NonRepeatableComponent: ({ attribute, name, children, layout, }: NonRepeatableComponentProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export { NonRepeatableComponent };
|
5
|
+
export type { NonRepeatableComponentProps };
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { ComponentInputProps } from './Input';
|
2
|
+
type RepeatableComponentProps = Omit<ComponentInputProps, 'required' | 'label'>;
|
3
|
+
declare const RepeatableComponent: ({ attribute, disabled, name, mainField, children, layout, }: RepeatableComponentProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export { RepeatableComponent };
|
5
|
+
export type { RepeatableComponentProps };
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface ComponentContextValue {
|
3
|
+
/**
|
4
|
+
* The id of the component. It will be undefined if the component
|
5
|
+
* has not been created in the database yet. This could be on a new
|
6
|
+
* or existing entry.
|
7
|
+
*/
|
8
|
+
id?: number;
|
9
|
+
/**
|
10
|
+
* The level of the component. This is used to determine the nesting
|
11
|
+
* of the component. The default is set to -1 so that the base level is 0
|
12
|
+
* for the top level component, and increases by 1 for each level of nesting.
|
13
|
+
*/
|
14
|
+
level: number;
|
15
|
+
/**
|
16
|
+
* The uid of the component. This is used to determine the type of the
|
17
|
+
* component. Within an attribute, it is normally the `component` value.
|
18
|
+
* It will be undefined if the hook is not called within the confines
|
19
|
+
* of a provider.
|
20
|
+
*/
|
21
|
+
uid?: string;
|
22
|
+
/**
|
23
|
+
* The type of component parent. It will be undefined if the hook
|
24
|
+
* is not called within the confines of a provider.
|
25
|
+
*/
|
26
|
+
type?: 'dynamiczone' | 'repeatable' | 'component';
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* We use this component to wrap any individual component field in the Edit View,
|
30
|
+
* this could be a component field in a dynamic zone, a component within a repeatable space,
|
31
|
+
* or even nested components.
|
32
|
+
*
|
33
|
+
* We primarily need this to provide the component id to the components so that they can
|
34
|
+
* correctly fetch their relations.
|
35
|
+
*/
|
36
|
+
declare const ComponentProvider: {
|
37
|
+
(props: ComponentContextValue & {
|
38
|
+
children: import("react").ReactNode;
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
40
|
+
displayName: string;
|
41
|
+
}, useComponent: <Selected>(consumerName: string, selector: (value: ComponentContextValue) => Selected) => Selected;
|
42
|
+
export { ComponentProvider, useComponent };
|
package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/AddComponentButton.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface AddComponentButtonProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
hasError?: boolean;
|
5
|
+
isDisabled?: boolean;
|
6
|
+
isOpen?: boolean;
|
7
|
+
onClick: React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
8
|
+
}
|
9
|
+
declare const AddComponentButton: ({ hasError, isDisabled, isOpen, children, onClick, }: AddComponentButtonProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export { AddComponentButton };
|
11
|
+
export type { AddComponentButtonProps };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { ComponentIconProps } from '../../../../../components/ComponentIcon';
|
3
|
+
interface ComponentCardProps extends Pick<ComponentIconProps, 'icon'> {
|
4
|
+
children: React.ReactNode;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
6
|
+
}
|
7
|
+
declare const ComponentCard: ({ children, onClick, icon }: ComponentCardProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export { ComponentCard };
|
9
|
+
export type { ComponentCardProps };
|
package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { AccordionVariant } from '@strapi/design-system';
|
3
|
+
interface ComponentCategoryProps {
|
4
|
+
category: string;
|
5
|
+
components?: Array<{
|
6
|
+
uid: string;
|
7
|
+
displayName: string;
|
8
|
+
icon?: string;
|
9
|
+
}>;
|
10
|
+
isOpen?: boolean;
|
11
|
+
onAddComponent: (componentUid: string) => React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
12
|
+
onToggle: (category: string) => void;
|
13
|
+
variant?: AccordionVariant;
|
14
|
+
}
|
15
|
+
declare const ComponentCategory: ({ category, components, variant, isOpen, onAddComponent, onToggle, }: ComponentCategoryProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export { ComponentCategory };
|
17
|
+
export type { ComponentCategoryProps };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ComponentCategoryProps } from './ComponentCategory';
|
2
|
+
interface ComponentPickerProps {
|
3
|
+
dynamicComponentsByCategory?: Record<string, NonNullable<ComponentCategoryProps['components']>>;
|
4
|
+
isOpen?: boolean;
|
5
|
+
onClickAddComponent: (componentUid: string) => void;
|
6
|
+
}
|
7
|
+
declare const ComponentPicker: ({ dynamicComponentsByCategory, isOpen, onClickAddComponent, }: ComponentPickerProps) => import("react/jsx-runtime").JSX.Element | null;
|
8
|
+
export { ComponentPicker };
|
9
|
+
export type { ComponentPickerProps };
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type UseDragAndDropOptions } from '../../../../../hooks/useDragAndDrop';
|
2
|
+
import type { ComponentPickerProps } from './ComponentPicker';
|
3
|
+
interface DynamicComponentProps extends Pick<UseDragAndDropOptions, 'onGrabItem' | 'onDropItem' | 'onCancel'>, Pick<ComponentPickerProps, 'dynamicComponentsByCategory'> {
|
4
|
+
componentUid: string;
|
5
|
+
disabled?: boolean;
|
6
|
+
index: number;
|
7
|
+
name: string;
|
8
|
+
onAddComponent: (componentUid: string, index: number) => void;
|
9
|
+
onRemoveComponentClick: () => void;
|
10
|
+
onMoveComponent: (dragIndex: number, hoverIndex: number) => void;
|
11
|
+
}
|
12
|
+
declare const DynamicComponent: ({ componentUid, disabled, index, name, onRemoveComponentClick, onMoveComponent, onGrabItem, onDropItem, onCancel, dynamicComponentsByCategory, onAddComponent, }: DynamicComponentProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export { DynamicComponent };
|
14
|
+
export type { DynamicComponentProps };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface DynamicZoneLabelProps {
|
3
|
+
label?: React.ReactNode;
|
4
|
+
labelAction?: React.ReactNode;
|
5
|
+
name: string;
|
6
|
+
numberOfComponents?: number;
|
7
|
+
required?: boolean;
|
8
|
+
hint?: React.ReactNode;
|
9
|
+
}
|
10
|
+
declare const DynamicZoneLabel: ({ hint, label, labelAction, name, numberOfComponents, required, }: DynamicZoneLabelProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export { DynamicZoneLabel };
|
12
|
+
export type { DynamicZoneLabelProps };
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { InputProps } from '@strapi/admin/strapi-admin';
|
2
|
+
import { type EditFieldLayout } from '../../../../../hooks/useDocumentLayout';
|
3
|
+
import { DynamicZoneLabelProps } from './DynamicZoneLabel';
|
4
|
+
interface DynamicZoneContextValue {
|
5
|
+
isInDynamicZone: boolean;
|
6
|
+
}
|
7
|
+
declare const useDynamicZone: <Selected>(consumerName: string, selector: (value: DynamicZoneContextValue) => Selected) => Selected;
|
8
|
+
interface DynamicZoneProps extends Omit<Extract<EditFieldLayout, {
|
9
|
+
type: 'dynamiczone';
|
10
|
+
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'>, Pick<DynamicZoneLabelProps, 'labelAction'> {
|
11
|
+
}
|
12
|
+
declare const DynamicZone: ({ attribute, disabled, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export { DynamicZone, useDynamicZone };
|
14
|
+
export type { DynamicZoneProps };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { InputProps } from '@strapi/admin/strapi-admin';
|
2
|
+
import type { Schema } from '@strapi/types';
|
3
|
+
interface NotAllowedInputProps extends Omit<InputProps, 'type'> {
|
4
|
+
type: Schema.Attribute.Kind;
|
5
|
+
}
|
6
|
+
declare const NotAllowedInput: ({ hint, label, required, name }: NotAllowedInputProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export { NotAllowedInput };
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import { type EditFieldLayout } from '../../../../hooks/useDocumentLayout';
|
4
|
+
interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
5
|
+
type: 'relation';
|
6
|
+
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* TODO: we get a rather ugly flash when we remove a single relation from the list leaving
|
10
|
+
* no other relations when we press save. The initial relation re-renders, probably because
|
11
|
+
* of the lag in the Form cleaning it's "disconnect" array, whilst our data has not been invalidated.
|
12
|
+
*
|
13
|
+
* Could we invalidate relation data on the document actions? Should we?
|
14
|
+
*/
|
15
|
+
/**
|
16
|
+
* @internal
|
17
|
+
* @description The relations field holds a lot of domain logic for handling relations which is rather complicated
|
18
|
+
* At present we do not expose this to plugin developers, however, they are able to overwrite it themselves should
|
19
|
+
* they wish to do so.
|
20
|
+
*/
|
21
|
+
declare const RelationsField: React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>;
|
22
|
+
declare const FlexWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
|
23
|
+
declare const DisconnectButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
24
|
+
declare const LinkEllipsis: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@strapi/design-system").LinkProps & React.RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
|
25
|
+
export { RelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
|
26
|
+
export type { RelationsFieldProps };
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import type { Schema } from '@strapi/types';
|
4
|
+
interface UIDInputProps extends Omit<InputProps, 'type'> {
|
5
|
+
type: Schema.Attribute.TypeOf<Schema.Attribute.UID>;
|
6
|
+
}
|
7
|
+
declare const UIDInput: React.ForwardRefExoticComponent<UIDInputProps & React.RefAttributes<any>>;
|
8
|
+
export { UIDInput };
|
9
|
+
export type { UIDInputProps };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { EditorFromTextArea } from 'codemirror5';
|
3
|
+
import type { FieldValue, InputProps } from '@strapi/admin/strapi-admin';
|
4
|
+
import 'codemirror5/addon/display/placeholder';
|
5
|
+
interface EditorApi {
|
6
|
+
focus: () => void;
|
7
|
+
scrollIntoView: (args?: Parameters<HTMLElement['scrollIntoView']>[0]) => void;
|
8
|
+
}
|
9
|
+
interface EditorProps extends Omit<FieldValue, 'initialValue'>, Omit<InputProps, 'type' | 'label'> {
|
10
|
+
editorRef: React.MutableRefObject<EditorFromTextArea>;
|
11
|
+
isPreviewMode?: boolean;
|
12
|
+
isExpandMode?: boolean;
|
13
|
+
textareaRef: React.RefObject<HTMLTextAreaElement>;
|
14
|
+
}
|
15
|
+
declare const Editor: React.ForwardRefExoticComponent<EditorProps & React.RefAttributes<EditorApi>>;
|
16
|
+
export { Editor };
|
17
|
+
export type { EditorProps, EditorApi };
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface EditorLayoutProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
isExpandMode: boolean;
|
5
|
+
error?: string;
|
6
|
+
previewContent?: string;
|
7
|
+
onCollapse: () => void;
|
8
|
+
}
|
9
|
+
declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
declare const ExpandButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "position" | "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "zIndex" | "transition" | "animation" | "textAlign" | "textTransform"> & {
|
11
|
+
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
12
|
+
background?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"colors", "background">;
|
13
|
+
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
14
|
+
borderColor?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
|
15
|
+
color?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
|
16
|
+
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
17
|
+
fontSize?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
18
|
+
grow?: import("csstype").Property.FlexGrow | undefined;
|
19
|
+
hasRadius?: boolean | undefined;
|
20
|
+
hiddenS?: boolean | undefined;
|
21
|
+
hiddenXS?: boolean | undefined;
|
22
|
+
padding?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
23
|
+
paddingBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
24
|
+
paddingLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
25
|
+
paddingRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
26
|
+
paddingTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
27
|
+
margin?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"margin">;
|
28
|
+
marginLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
29
|
+
marginBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
30
|
+
marginRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
31
|
+
marginTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
32
|
+
shadow?: keyof import("@strapi/design-system/dist/themes/colors").Shadows | undefined;
|
33
|
+
shrink?: import("csstype").Property.FlexShrink | undefined;
|
34
|
+
lineHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
35
|
+
width?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "width">;
|
36
|
+
minWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
37
|
+
maxWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
38
|
+
height?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "height">;
|
39
|
+
minHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
40
|
+
maxHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
41
|
+
top?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "top">;
|
42
|
+
left?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "left">;
|
43
|
+
bottom?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
44
|
+
right?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "right">;
|
45
|
+
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
46
|
+
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
47
|
+
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
48
|
+
children?: React.ReactNode;
|
49
|
+
as?: string | React.ComponentType<any> | undefined;
|
50
|
+
forwardedAs?: string | React.ComponentType<any> | undefined;
|
51
|
+
} & {
|
52
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
53
|
+
direction?: import("csstype").Property.FlexDirection | undefined;
|
54
|
+
gap?: any;
|
55
|
+
inline?: boolean | undefined;
|
56
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
57
|
+
wrap?: import("csstype").Property.FlexWrap | undefined;
|
58
|
+
} & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
59
|
+
export { EditorLayout, ExpandButton };
|
60
|
+
export type { EditorLayoutProps };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import { EditorApi } from './Editor';
|
4
|
+
import type { Schema } from '@strapi/types';
|
5
|
+
interface WysiwygProps extends Omit<InputProps, 'type'> {
|
6
|
+
labelAction?: React.ReactNode;
|
7
|
+
type: Schema.Attribute.RichText['type'];
|
8
|
+
}
|
9
|
+
declare const Wysiwyg: React.ForwardRefExoticComponent<WysiwygProps & React.RefAttributes<EditorApi>>;
|
10
|
+
export { Wysiwyg };
|
11
|
+
export type { WysiwygProps };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { BaseButtonProps } from '@strapi/design-system';
|
2
|
+
interface WysiwygFooterProps {
|
3
|
+
onToggleExpand: BaseButtonProps['onClick'];
|
4
|
+
}
|
5
|
+
declare const WysiwygFooter: ({ onToggleExpand }: WysiwygFooterProps) => import("react/jsx-runtime").JSX.Element;
|
6
|
+
export { WysiwygFooter };
|
7
|
+
export type { WysiwygFooterProps };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { EditorFromTextArea } from 'codemirror5';
|
3
|
+
interface WysiwygNavProps {
|
4
|
+
disabled?: boolean;
|
5
|
+
editorRef: React.MutableRefObject<EditorFromTextArea>;
|
6
|
+
isExpandMode?: boolean;
|
7
|
+
isPreviewMode?: boolean;
|
8
|
+
onActionClick: (action: string, editorRef: React.MutableRefObject<EditorFromTextArea>, callback?: () => void) => void;
|
9
|
+
onToggleMediaLib: () => void;
|
10
|
+
onTogglePreviewMode?: () => void;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* TODO: refactor this mess.
|
14
|
+
*/
|
15
|
+
declare const WysiwygNav: ({ disabled, editorRef, isExpandMode, isPreviewMode, onActionClick, onToggleMediaLib, onTogglePreviewMode, }: WysiwygNavProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export { WysiwygNav };
|
17
|
+
export type { WysiwygNavProps };
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const CustomIconButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const CustomLinkIconButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const MainButtons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
|
5
|
+
export declare const MoreButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
6
|
+
export declare const IconButtonGroupMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
|
7
|
+
export declare const ExpandButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "position" | "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "zIndex" | "transition" | "animation" | "textAlign" | "textTransform"> & {
|
8
|
+
_hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
|
9
|
+
background?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"colors", "background">;
|
10
|
+
basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
|
11
|
+
borderColor?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
|
12
|
+
color?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
|
13
|
+
flex?: import("csstype").Property.Flex<string | number> | undefined;
|
14
|
+
fontSize?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
|
15
|
+
grow?: import("csstype").Property.FlexGrow | undefined;
|
16
|
+
hasRadius?: boolean | undefined;
|
17
|
+
hiddenS?: boolean | undefined;
|
18
|
+
hiddenXS?: boolean | undefined;
|
19
|
+
padding?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"padding">;
|
20
|
+
paddingBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
|
21
|
+
paddingLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
|
22
|
+
paddingRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
|
23
|
+
paddingTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
|
24
|
+
margin?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"margin">;
|
25
|
+
marginLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
|
26
|
+
marginBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
|
27
|
+
marginRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
|
28
|
+
marginTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
|
29
|
+
shadow?: keyof import("@strapi/design-system/dist/themes/colors").Shadows | undefined;
|
30
|
+
shrink?: import("csstype").Property.FlexShrink | undefined;
|
31
|
+
lineHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
|
32
|
+
width?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "width">;
|
33
|
+
minWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
|
34
|
+
maxWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
|
35
|
+
height?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "height">;
|
36
|
+
minHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
|
37
|
+
maxHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
|
38
|
+
top?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "top">;
|
39
|
+
left?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "left">;
|
40
|
+
bottom?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "bottom">;
|
41
|
+
right?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "right">;
|
42
|
+
borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
|
43
|
+
borderStyle?: import("csstype").Property.BorderStyle | undefined;
|
44
|
+
borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
|
45
|
+
children?: import("react").ReactNode;
|
46
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
47
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
48
|
+
} & {
|
49
|
+
alignItems?: import("csstype").Property.AlignItems | undefined;
|
50
|
+
direction?: import("csstype").Property.FlexDirection | undefined;
|
51
|
+
gap?: any;
|
52
|
+
inline?: boolean | undefined;
|
53
|
+
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
54
|
+
wrap?: import("csstype").Property.FlexWrap | undefined;
|
55
|
+
} & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|