@strapi/content-manager 0.0.0-experimental.e60ec1829240dae21c1e1d29076681c322288813 → 0.0.0-experimental.e8d8fc824d0f6a695b2a9ebaa4680ed21c3645ca
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/LICENSE +18 -3
- package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
- package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
- package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js → ComponentConfigurationPage-BlzvDpbX.js} +5 -6
- package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js.map → ComponentConfigurationPage-BlzvDpbX.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs → ComponentConfigurationPage-DaPOlQaD.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs.map → ComponentConfigurationPage-DaPOlQaD.mjs.map} +1 -1
- package/dist/_chunks/{ComponentIcon-BBQsYCVn.js → ComponentIcon-CRbtQEUV.js} +9 -4
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +1 -0
- package/dist/_chunks/{ComponentIcon-BOFnK76n.mjs → ComponentIcon-u4bIXTFY.mjs} +9 -3
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
- package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs → EditConfigurationPage-BZPXItXo.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs.map → EditConfigurationPage-BZPXItXo.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js → EditConfigurationPage-uy-v43AR.js} +5 -6
- package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js.map → EditConfigurationPage-uy-v43AR.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-DvNpQkam.js → EditViewPage-DT6A4ayX.js} +102 -54
- package/dist/_chunks/EditViewPage-DT6A4ayX.js.map +1 -0
- package/dist/_chunks/EditViewPage-oOLeTySr.mjs +254 -0
- package/dist/_chunks/EditViewPage-oOLeTySr.mjs.map +1 -0
- package/dist/_chunks/{Field-6gvGdPBV.mjs → Field-D7dv2aUX.mjs} +1192 -896
- package/dist/_chunks/Field-D7dv2aUX.mjs.map +1 -0
- package/dist/_chunks/{Field-DmVKIAOo.js → Field-kYFVIGiP.js} +1238 -943
- package/dist/_chunks/Field-kYFVIGiP.js.map +1 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -1
- package/dist/_chunks/{Form-DW6K1IH-.mjs → Form-BxR6sc29.mjs} +67 -46
- package/dist/_chunks/Form-BxR6sc29.mjs.map +1 -0
- package/dist/_chunks/{Form-CPZC9vWa.js → Form-CCijSg3V.js} +68 -49
- package/dist/_chunks/Form-CCijSg3V.js.map +1 -0
- package/dist/_chunks/{History-DeAPlvtv.js → History-BMndx49M.js} +182 -147
- package/dist/_chunks/History-BMndx49M.js.map +1 -0
- package/dist/_chunks/{History-Dmr9fmUA.mjs → History-D8F7aYQU.mjs} +181 -144
- package/dist/_chunks/History-D8F7aYQU.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DPCwW5Vr.js → ListConfigurationPage-DouY1EWM.js} +72 -63
- package/dist/_chunks/ListConfigurationPage-DouY1EWM.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DhwvYcNv.mjs → ListConfigurationPage-DqAdSPwC.mjs} +68 -57
- package/dist/_chunks/ListConfigurationPage-DqAdSPwC.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-5ySZ-VUs.js → ListViewPage-BPVmh9pq.js} +179 -164
- package/dist/_chunks/ListViewPage-BPVmh9pq.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BtAwuYLE.mjs → ListViewPage-C73F0jPh.mjs} +175 -159
- package/dist/_chunks/ListViewPage-C73F0jPh.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DSPxnxxp.mjs → NoContentTypePage-B5w7iJOF.mjs} +3 -3
- package/dist/_chunks/NoContentTypePage-B5w7iJOF.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DOC_yWOf.js → NoContentTypePage-BwcL--4H.js} +3 -3
- package/dist/_chunks/NoContentTypePage-BwcL--4H.js.map +1 -0
- package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js → NoPermissionsPage-BMFKVcwJ.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js.map → NoPermissionsPage-BMFKVcwJ.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs → NoPermissionsPage-UnEgMGK4.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs.map → NoPermissionsPage-UnEgMGK4.mjs.map} +1 -1
- package/dist/_chunks/Preview-B7PR3Ok_.js +312 -0
- package/dist/_chunks/Preview-B7PR3Ok_.js.map +1 -0
- package/dist/_chunks/Preview-DECOhK0D.mjs +294 -0
- package/dist/_chunks/Preview-DECOhK0D.mjs.map +1 -0
- package/dist/_chunks/{Relations-J8cscLlR.mjs → Relations-DinMQJ4B.mjs} +138 -94
- package/dist/_chunks/Relations-DinMQJ4B.mjs.map +1 -0
- package/dist/_chunks/{Relations-CgWtgnPe.js → Relations-lndx3aQk.js} +142 -100
- package/dist/_chunks/Relations-lndx3aQk.js.map +1 -0
- package/dist/_chunks/{en-C-V1_90f.js → en-BK8Xyl5I.js} +38 -18
- package/dist/_chunks/{en-C-V1_90f.js.map → en-BK8Xyl5I.js.map} +1 -1
- package/dist/_chunks/{en-MBPul9Su.mjs → en-Dtk_ot79.mjs} +38 -18
- package/dist/_chunks/{en-MBPul9Su.mjs.map → en-Dtk_ot79.mjs.map} +1 -1
- package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
- package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
- package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
- package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
- package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
- package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
- package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
- package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -1
- package/dist/_chunks/{index-CwRRo1V9.mjs → index-C2SagWVW.mjs} +2070 -988
- package/dist/_chunks/index-C2SagWVW.mjs.map +1 -0
- package/dist/_chunks/{index-C6AH2hEl.js → index-Cnw4gqee.js} +2047 -966
- package/dist/_chunks/index-Cnw4gqee.js.map +1 -0
- package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
- package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
- package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
- package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
- package/dist/_chunks/{layout-jIDzX0Fp.mjs → layout-DY_D9MGA.mjs} +46 -28
- package/dist/_chunks/layout-DY_D9MGA.mjs.map +1 -0
- package/dist/_chunks/{layout-B_SXLhqf.js → layout-ivwIVPnV.js} +47 -32
- package/dist/_chunks/layout-ivwIVPnV.js.map +1 -0
- package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
- package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
- package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
- package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
- package/dist/_chunks/{relations-iBMa_OFG.js → relations-B7C7O_Pv.js} +6 -7
- package/dist/_chunks/relations-B7C7O_Pv.js.map +1 -0
- package/dist/_chunks/{relations-CuvIgCqI.mjs → relations-Boc5Y9kX.mjs} +6 -7
- package/dist/_chunks/relations-Boc5Y9kX.mjs.map +1 -0
- package/dist/_chunks/useDebounce-CtcjDB3L.js +28 -0
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js → useDragAndDrop-BMtgCYzL.js} +5 -9
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +1 -0
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs → useDragAndDrop-DJ6jqvZN.mjs} +4 -7
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +1 -0
- package/dist/admin/index.js +3 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +9 -7
- package/dist/admin/src/components/ComponentIcon.d.ts +6 -3
- package/dist/admin/src/content-manager.d.ts +6 -5
- package/dist/admin/src/exports.d.ts +2 -1
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/history/index.d.ts +3 -0
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/hooks/useDocument.d.ts +37 -9
- package/dist/admin/src/hooks/useDocumentActions.d.ts +24 -3
- package/dist/admin/src/hooks/useDocumentLayout.d.ts +2 -2
- package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
- package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
- 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 +12 -5
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +3 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/Input.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts +3 -5
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +30 -18
- package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +16 -53
- package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +2 -10
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +9 -26
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +11 -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 +2 -3
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +5 -5
- package/dist/admin/src/services/documents.d.ts +31 -20
- package/dist/admin/src/services/init.d.ts +2 -2
- package/dist/admin/src/services/relations.d.ts +3 -3
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/admin/src/utils/api.d.ts +4 -18
- package/dist/admin/src/utils/validation.d.ts +5 -7
- package/dist/server/index.js +886 -480
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +892 -485
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/collection-types.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/single-types.d.ts.map +1 -1
- package/dist/server/src/controllers/uid.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +23 -0
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts +11 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/index.d.ts +1 -1
- 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 +4 -4
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +22 -42
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/policies/hasPermissions.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 +13 -12
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +16 -35
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +22 -42
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/permission-checker.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts +8 -1
- 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 +17 -7
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/preview.d.ts +27 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/contracts/relations.d.ts +2 -2
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +22 -21
- package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
- package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
- package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +0 -1
- package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DDS6H9HO.mjs +0 -203
- package/dist/_chunks/EditViewPage-DDS6H9HO.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DvNpQkam.js.map +0 -1
- package/dist/_chunks/Field-6gvGdPBV.mjs.map +0 -1
- package/dist/_chunks/Field-DmVKIAOo.js.map +0 -1
- package/dist/_chunks/Form-CPZC9vWa.js.map +0 -1
- package/dist/_chunks/Form-DW6K1IH-.mjs.map +0 -1
- package/dist/_chunks/History-DeAPlvtv.js.map +0 -1
- package/dist/_chunks/History-Dmr9fmUA.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DPCwW5Vr.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DhwvYcNv.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-5ySZ-VUs.js.map +0 -1
- package/dist/_chunks/ListViewPage-BtAwuYLE.mjs.map +0 -1
- package/dist/_chunks/NoContentTypePage-DOC_yWOf.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DSPxnxxp.mjs.map +0 -1
- package/dist/_chunks/Relations-CgWtgnPe.js.map +0 -1
- package/dist/_chunks/Relations-J8cscLlR.mjs.map +0 -1
- package/dist/_chunks/index-C6AH2hEl.js.map +0 -1
- package/dist/_chunks/index-CwRRo1V9.mjs.map +0 -1
- package/dist/_chunks/layout-B_SXLhqf.js.map +0 -1
- package/dist/_chunks/layout-jIDzX0Fp.mjs.map +0 -1
- package/dist/_chunks/relations-CuvIgCqI.mjs.map +0 -1
- package/dist/_chunks/relations-iBMa_OFG.js.map +0 -1
- package/dist/_chunks/urls-CbOsUOoW.mjs +0 -7
- package/dist/_chunks/urls-CbOsUOoW.mjs.map +0 -1
- package/dist/_chunks/urls-DzZya_gm.js +0 -6
- package/dist/_chunks/urls-DzZya_gm.js.map +0 -1
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
- package/dist/server/src/controllers/utils/dimensions.d.ts +0 -5
- package/dist/server/src/controllers/utils/dimensions.d.ts.map +0 -1
- package/strapi-server.js +0 -3
@@ -2,12 +2,18 @@ import { SerializedError } from '@reduxjs/toolkit';
|
|
2
2
|
import { type TrackingEvent } from '@strapi/admin/strapi-admin';
|
3
3
|
import { BaseQueryError } from '../utils/api';
|
4
4
|
import type { Document } from './useDocument';
|
5
|
-
import type { AutoClone, Clone, Create, Delete, Discard, FindOne, Publish, Update, Unpublish } from '../../../shared/contracts/collection-types';
|
5
|
+
import type { AutoClone, Clone, Create, Delete, BulkDelete, Discard, FindOne, Publish, BulkPublish, Update, Unpublish, BulkUnpublish } from '../../../shared/contracts/collection-types';
|
6
6
|
type OperationResponse<TResponse extends {
|
7
7
|
data: any;
|
8
|
-
meta
|
8
|
+
meta?: any;
|
9
9
|
error?: any;
|
10
|
-
}> = Pick<TResponse, 'data' | 'meta'> | {
|
10
|
+
}> = Pick<TResponse, 'data'> | Pick<TResponse, 'data' | 'meta'> | {
|
11
|
+
error: BaseQueryError | SerializedError;
|
12
|
+
};
|
13
|
+
type BulkOperationResponse<TResponse extends {
|
14
|
+
data: any;
|
15
|
+
error?: any;
|
16
|
+
}> = Pick<TResponse, 'data'> | {
|
11
17
|
error: BaseQueryError | SerializedError;
|
12
18
|
};
|
13
19
|
type UseDocumentActions = () => {
|
@@ -41,6 +47,11 @@ type UseDocumentActions = () => {
|
|
41
47
|
}, trackerProperty?: Extract<TrackingEvent, {
|
42
48
|
name: 'willDeleteEntry' | 'didDeleteEntry' | 'didNotDeleteEntry';
|
43
49
|
}>['properties']) => Promise<OperationResponse<Delete.Response>>;
|
50
|
+
deleteMany: (args: {
|
51
|
+
model: string;
|
52
|
+
documentIds: string[];
|
53
|
+
params?: object;
|
54
|
+
}) => Promise<BulkOperationResponse<BulkDelete.Response>>;
|
44
55
|
discard: (args: {
|
45
56
|
collectionType: string;
|
46
57
|
model: string;
|
@@ -59,6 +70,11 @@ type UseDocumentActions = () => {
|
|
59
70
|
documentId?: string;
|
60
71
|
params?: object;
|
61
72
|
}, document: Partial<Document>) => Promise<OperationResponse<Publish.Response>>;
|
73
|
+
publishMany: (args: {
|
74
|
+
model: string;
|
75
|
+
documentIds: string[];
|
76
|
+
params?: object;
|
77
|
+
}) => Promise<BulkOperationResponse<BulkPublish.Response>>;
|
62
78
|
update: (args: {
|
63
79
|
collectionType: string;
|
64
80
|
model: string;
|
@@ -73,6 +89,11 @@ type UseDocumentActions = () => {
|
|
73
89
|
documentId?: string;
|
74
90
|
params?: object;
|
75
91
|
}, discardDraft?: boolean) => Promise<OperationResponse<Unpublish.Response>>;
|
92
|
+
unpublishMany: (args: {
|
93
|
+
model: string;
|
94
|
+
documentIds: string[];
|
95
|
+
params?: object;
|
96
|
+
}) => Promise<BulkOperationResponse<BulkUnpublish.Response>>;
|
76
97
|
};
|
77
98
|
/**
|
78
99
|
* @alpha
|
@@ -93,7 +93,7 @@ declare const DEFAULT_SETTINGS: {
|
|
93
93
|
* const { model } = useParams<{ model: string }>();
|
94
94
|
* const { edit: { schema: layout } } = useDocumentLayout(model);
|
95
95
|
*
|
96
|
-
* return layout.map(panel => panel.map(row => row.map(field => <Field {...field} />)))
|
96
|
+
* return layout.map(panel => panel.map(row => row.map(field => <Field.Root {...field} />)))
|
97
97
|
* ```
|
98
98
|
*
|
99
99
|
*/
|
@@ -103,7 +103,7 @@ declare const useDocumentLayout: UseDocumentLayout;
|
|
103
103
|
* content-manager because it won't work as intended.
|
104
104
|
*/
|
105
105
|
declare const useDocLayout: () => {
|
106
|
-
error?:
|
106
|
+
error?: SerializedError | BaseQueryError | undefined;
|
107
107
|
isLoading: boolean;
|
108
108
|
/**
|
109
109
|
* This is the layout for the edit view,
|
@@ -23,15 +23,15 @@ interface UseDragAndDropOptions<TIndex extends number | Array<number> = number,
|
|
23
23
|
dropSensitivity?: (typeof DROP_SENSITIVITY)[keyof typeof DROP_SENSITIVITY];
|
24
24
|
}
|
25
25
|
type Identifier = ReturnType<HandlerManager['getHandlerId']>;
|
26
|
-
type UseDragAndDropReturn<
|
26
|
+
type UseDragAndDropReturn<E extends Element = HTMLElement> = [
|
27
27
|
props: {
|
28
28
|
handlerId: Identifier;
|
29
29
|
isDragging: boolean;
|
30
|
-
handleKeyDown: (event: React.KeyboardEvent<
|
30
|
+
handleKeyDown: <E extends Element>(event: React.KeyboardEvent<E>) => void;
|
31
31
|
isOverDropTarget: boolean;
|
32
32
|
direction: (typeof DIRECTIONS)[keyof typeof DIRECTIONS] | null;
|
33
33
|
},
|
34
|
-
objectRef: React.RefObject<
|
34
|
+
objectRef: React.RefObject<E>,
|
35
35
|
dropRef: ConnectDropTarget,
|
36
36
|
dragRef: ConnectDragSource,
|
37
37
|
dragPreviewRef: ConnectDragPreview
|
@@ -47,5 +47,5 @@ declare const useDragAndDrop: <TIndex extends number | number[], TItem extends {
|
|
47
47
|
} = {
|
48
48
|
[key: string]: unknown;
|
49
49
|
index: TIndex;
|
50
|
-
},
|
50
|
+
}, E extends Element = HTMLElement>(active: boolean, { type, index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity, }: UseDragAndDropOptions<TIndex, TItem>) => UseDragAndDropReturn<E>;
|
51
51
|
export { useDragAndDrop, UseDragAndDropReturn, UseDragAndDropOptions, DIRECTIONS, DROP_SENSITIVITY, };
|
@@ -11,4 +11,4 @@ export type UseKeyboardDragAndDropCallbacks<TIndex extends number | Array<number
|
|
11
11
|
*
|
12
12
|
* @internal - You should use `useDragAndDrop` instead.
|
13
13
|
*/
|
14
|
-
export declare const useKeyboardDragAndDrop: <TIndex extends number | number[] = number>(active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>) => React.
|
14
|
+
export declare const useKeyboardDragAndDrop: <TIndex extends number | number[] = number>(active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>) => <E extends Element>(e: React.KeyboardEvent<E>) => void;
|
@@ -1,3 +1,11 @@
|
|
1
|
+
import { type UseDocument } from '../../hooks/useDocument';
|
1
2
|
declare const EditViewPage: () => import("react/jsx-runtime").JSX.Element;
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
* @description Returns the status of the document where its latest state takes priority,
|
6
|
+
* this typically will be "published" unless a user has edited their draft in which we should
|
7
|
+
* display "modified".
|
8
|
+
*/
|
9
|
+
declare const getDocumentStatus: (document: ReturnType<UseDocument>['document'], meta: ReturnType<UseDocument>['meta']) => 'draft' | 'published' | 'modified';
|
2
10
|
declare const ProtectedEditViewPage: () => import("react/jsx-runtime").JSX.Element;
|
3
|
-
export { EditViewPage, ProtectedEditViewPage };
|
11
|
+
export { EditViewPage, ProtectedEditViewPage, getDocumentStatus };
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { NotificationConfig } from '@strapi/admin/strapi-admin';
|
3
|
+
import { ButtonProps } from '@strapi/design-system';
|
3
4
|
import type { DocumentActionComponent } from '../../../content-manager';
|
4
5
|
type DocumentActionPosition = 'panel' | 'header' | 'table-row';
|
5
6
|
interface DocumentActionDescription {
|
@@ -19,12 +20,13 @@ interface DocumentActionDescription {
|
|
19
20
|
/**
|
20
21
|
* @default 'secondary'
|
21
22
|
*/
|
22
|
-
variant?: '
|
23
|
+
variant?: ButtonProps['variant'];
|
23
24
|
}
|
24
25
|
interface DialogOptions {
|
25
26
|
type: 'dialog';
|
26
27
|
title: string;
|
27
28
|
content?: React.ReactNode;
|
29
|
+
variant?: ButtonProps['variant'];
|
28
30
|
onConfirm?: () => void | Promise<void>;
|
29
31
|
onCancel?: () => void | Promise<void>;
|
30
32
|
}
|
@@ -44,8 +46,10 @@ interface NotificationOptions {
|
|
44
46
|
interface ModalOptions {
|
45
47
|
type: 'modal';
|
46
48
|
title: string;
|
47
|
-
content: React.
|
48
|
-
|
49
|
+
content: React.ComponentType<{
|
50
|
+
onClose: () => void;
|
51
|
+
}> | React.ReactNode;
|
52
|
+
footer?: React.ComponentType<{
|
49
53
|
onClose: () => void;
|
50
54
|
}> | React.ReactNode;
|
51
55
|
onClose?: () => void;
|
@@ -57,6 +61,9 @@ interface DocumentActionsProps {
|
|
57
61
|
actions: Action[];
|
58
62
|
}
|
59
63
|
declare const DocumentActions: ({ actions }: DocumentActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
64
|
+
interface DocumentActionButtonProps extends Action {
|
65
|
+
}
|
66
|
+
declare const DocumentActionButton: (action: DocumentActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
60
67
|
interface DocumentActionsMenuProps {
|
61
68
|
actions: Action[];
|
62
69
|
children?: React.ReactNode;
|
@@ -65,5 +72,5 @@ interface DocumentActionsMenuProps {
|
|
65
72
|
}
|
66
73
|
declare const DocumentActionsMenu: ({ actions, children, label, variant, }: DocumentActionsMenuProps) => import("react/jsx-runtime").JSX.Element;
|
67
74
|
declare const DEFAULT_ACTIONS: DocumentActionComponent[];
|
68
|
-
export { DocumentActions, DocumentActionsMenu, DEFAULT_ACTIONS };
|
69
|
-
export type { DocumentActionDescription, DialogOptions, NotificationOptions, ModalOptions };
|
75
|
+
export { DocumentActions, DocumentActionsMenu, DocumentActionButton, DEFAULT_ACTIONS };
|
76
|
+
export type { DocumentActionDescription, DocumentActionPosition, DialogOptions, NotificationOptions, ModalOptions, };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { StatusProps } from '@strapi/design-system';
|
2
|
-
interface DocumentStatusProps extends Omit<StatusProps, 'children' | '
|
2
|
+
interface DocumentStatusProps extends Omit<StatusProps, 'children' | 'variant'> {
|
3
3
|
/**
|
4
4
|
* The status of the document (draft, published, etc.)
|
5
5
|
* @default 'draft'
|
@@ -11,6 +11,6 @@ interface DocumentStatusProps extends Omit<StatusProps, 'children' | 'showBullet
|
|
11
11
|
* @description Displays the status of a document (draft, published, etc.)
|
12
12
|
* and automatically calculates the appropriate variant for the status.
|
13
13
|
*/
|
14
|
-
declare const DocumentStatus: ({ status, ...restProps }: DocumentStatusProps) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
declare const DocumentStatus: ({ status, size, ...restProps }: DocumentStatusProps) => import("react/jsx-runtime").JSX.Element;
|
15
15
|
export { DocumentStatus };
|
16
16
|
export type { DocumentStatusProps };
|
@@ -1,3 +1,10 @@
|
|
1
|
+
import { BaseRange, NodeEntry } from 'slate';
|
1
2
|
import { type BlocksStore } from '../BlocksEditor';
|
3
|
+
import 'prismjs/themes/prism-solarizedlight.css';
|
4
|
+
import './utils/prismLanguages';
|
5
|
+
type BaseRangeCustom = BaseRange & {
|
6
|
+
className: string;
|
7
|
+
};
|
8
|
+
export declare const decorateCode: ([node, path]: NodeEntry) => BaseRangeCustom[];
|
2
9
|
declare const codeBlocks: Pick<BlocksStore, 'code'>;
|
3
10
|
export { codeBlocks };
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import 'prismjs/components/prism-asmatmel';
|
2
|
+
import 'prismjs/components/prism-bash';
|
3
|
+
import 'prismjs/components/prism-basic';
|
4
|
+
import 'prismjs/components/prism-c';
|
5
|
+
import 'prismjs/components/prism-clojure';
|
6
|
+
import 'prismjs/components/prism-cobol';
|
7
|
+
import 'prismjs/components/prism-cpp';
|
8
|
+
import 'prismjs/components/prism-csharp';
|
9
|
+
import 'prismjs/components/prism-dart';
|
10
|
+
import 'prismjs/components/prism-docker';
|
11
|
+
import 'prismjs/components/prism-elixir';
|
12
|
+
import 'prismjs/components/prism-erlang';
|
13
|
+
import 'prismjs/components/prism-fortran';
|
14
|
+
import 'prismjs/components/prism-fsharp';
|
15
|
+
import 'prismjs/components/prism-go';
|
16
|
+
import 'prismjs/components/prism-graphql';
|
17
|
+
import 'prismjs/components/prism-groovy';
|
18
|
+
import 'prismjs/components/prism-haskell';
|
19
|
+
import 'prismjs/components/prism-haxe';
|
20
|
+
import 'prismjs/components/prism-ini';
|
21
|
+
import 'prismjs/components/prism-java';
|
22
|
+
import 'prismjs/components/prism-javascript';
|
23
|
+
import 'prismjs/components/prism-jsx';
|
24
|
+
import 'prismjs/components/prism-json';
|
25
|
+
import 'prismjs/components/prism-julia';
|
26
|
+
import 'prismjs/components/prism-kotlin';
|
27
|
+
import 'prismjs/components/prism-latex';
|
28
|
+
import 'prismjs/components/prism-lua';
|
29
|
+
import 'prismjs/components/prism-markdown';
|
30
|
+
import 'prismjs/components/prism-matlab';
|
31
|
+
import 'prismjs/components/prism-makefile';
|
32
|
+
import 'prismjs/components/prism-objectivec';
|
33
|
+
import 'prismjs/components/prism-perl';
|
34
|
+
import 'prismjs/components/prism-php';
|
35
|
+
import 'prismjs/components/prism-powershell';
|
36
|
+
import 'prismjs/components/prism-python';
|
37
|
+
import 'prismjs/components/prism-r';
|
38
|
+
import 'prismjs/components/prism-ruby';
|
39
|
+
import 'prismjs/components/prism-rust';
|
40
|
+
import 'prismjs/components/prism-sas';
|
41
|
+
import 'prismjs/components/prism-scala';
|
42
|
+
import 'prismjs/components/prism-scheme';
|
43
|
+
import 'prismjs/components/prism-sql';
|
44
|
+
import 'prismjs/components/prism-stata';
|
45
|
+
import 'prismjs/components/prism-swift';
|
46
|
+
import 'prismjs/components/prism-typescript';
|
47
|
+
import 'prismjs/components/prism-tsx';
|
48
|
+
import 'prismjs/components/prism-vbnet';
|
49
|
+
import 'prismjs/components/prism-yaml';
|
@@ -5,7 +5,7 @@ interface BlocksInputProps extends Omit<InputProps, 'type'> {
|
|
5
5
|
labelAction?: React.ReactNode;
|
6
6
|
type: Schema.Attribute.Blocks['type'];
|
7
7
|
}
|
8
|
-
declare const
|
8
|
+
declare const MemoizedBlocksInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<BlocksInputProps & React.RefAttributes<{
|
9
9
|
focus: () => void;
|
10
|
-
}
|
11
|
-
export { BlocksInput };
|
10
|
+
}>>>;
|
11
|
+
export { MemoizedBlocksInput as BlocksInput };
|
@@ -13,6 +13,6 @@ interface ComponentInputProps extends Omit<Extract<EditFieldLayout, {
|
|
13
13
|
*/
|
14
14
|
layout: EditFieldLayout[][];
|
15
15
|
}
|
16
|
-
declare const
|
17
|
-
export { ComponentInput };
|
16
|
+
declare const MemoizedComponentInput: React.MemoExoticComponent<({ label, required, name, attribute, disabled, labelAction, ...props }: ComponentInputProps) => import("react/jsx-runtime").JSX.Element>;
|
17
|
+
export { MemoizedComponentInput as ComponentInput };
|
18
18
|
export type { ComponentInputProps };
|
package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
2
|
+
import { Accordion } from '@strapi/design-system';
|
3
3
|
interface ComponentCategoryProps {
|
4
4
|
category: string;
|
5
5
|
components?: Array<{
|
@@ -7,11 +7,9 @@ interface ComponentCategoryProps {
|
|
7
7
|
displayName: string;
|
8
8
|
icon?: string;
|
9
9
|
}>;
|
10
|
-
isOpen?: boolean;
|
11
10
|
onAddComponent: (componentUid: string) => React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
|
12
|
-
|
13
|
-
variant?: AccordionVariant;
|
11
|
+
variant?: Accordion.Variant;
|
14
12
|
}
|
15
|
-
declare const ComponentCategory: ({ category, components, variant,
|
13
|
+
declare const ComponentCategory: ({ category, components, variant, onAddComponent, }: ComponentCategoryProps) => import("react/jsx-runtime").JSX.Element;
|
16
14
|
export { ComponentCategory };
|
17
15
|
export type { ComponentCategoryProps };
|
@@ -9,6 +9,6 @@ interface DynamicZoneProps extends Omit<Extract<EditFieldLayout, {
|
|
9
9
|
type: 'dynamiczone';
|
10
10
|
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'>, Pick<DynamicZoneLabelProps, 'labelAction'> {
|
11
11
|
}
|
12
|
-
declare const DynamicZone: ({ attribute, disabled, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
declare const DynamicZone: ({ attribute, disabled: disabledProp, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
|
13
13
|
export { DynamicZone, useDynamicZone };
|
14
14
|
export type { DynamicZoneProps };
|
@@ -1,26 +1,38 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
|
+
import { FlexComponent } from '@strapi/design-system';
|
3
4
|
import { type EditFieldLayout } from '../../../../hooks/useDocumentLayout';
|
5
|
+
import { RelationResult } from '../../../../services/relations';
|
6
|
+
type RelationPosition = (Pick<RelationResult, 'status' | 'locale'> & {
|
7
|
+
before: string;
|
8
|
+
end?: never;
|
9
|
+
}) | {
|
10
|
+
end: boolean;
|
11
|
+
before?: never;
|
12
|
+
status?: never;
|
13
|
+
locale?: never;
|
14
|
+
};
|
15
|
+
interface Relation extends Pick<RelationResult, 'documentId' | 'id' | 'locale' | 'status'> {
|
16
|
+
href: string;
|
17
|
+
label: string;
|
18
|
+
position?: RelationPosition;
|
19
|
+
__temp_key__: string;
|
20
|
+
}
|
4
21
|
interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
5
22
|
type: 'relation';
|
6
23
|
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
|
7
24
|
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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 };
|
25
|
+
export interface RelationsFormValue {
|
26
|
+
connect?: Relation[];
|
27
|
+
disconnect?: Pick<Relation, 'id'>[];
|
28
|
+
}
|
29
|
+
declare const FlexWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & React.RefAttributes<unknown>, "ref"> & {
|
30
|
+
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
31
|
+
}, never>> & Omit<FlexComponent, keyof React.Component<any, {}, any>>;
|
32
|
+
declare const DisconnectButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
33
|
+
declare const LinkEllipsis: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").LinkProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>, "ref"> & {
|
34
|
+
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
35
|
+
}, never>> & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "a">(props: React.PropsWithoutRef<import("@strapi/design-system").LinkProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof React.Component<any, {}, any>>;
|
36
|
+
declare const MemoizedRelationsField: React.MemoExoticComponent<React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>>;
|
37
|
+
export { MemoizedRelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
|
26
38
|
export type { RelationsFieldProps };
|
@@ -4,6 +4,6 @@ import type { Schema } from '@strapi/types';
|
|
4
4
|
interface UIDInputProps extends Omit<InputProps, 'type'> {
|
5
5
|
type: Schema.Attribute.TypeOf<Schema.Attribute.UID>;
|
6
6
|
}
|
7
|
-
declare const
|
8
|
-
export { UIDInput };
|
7
|
+
declare const MemoizedUIDInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<UIDInputProps & React.RefAttributes<any>>>;
|
8
|
+
export { MemoizedUIDInput as UIDInput };
|
9
9
|
export type { UIDInputProps };
|
@@ -7,54 +7,8 @@ interface EditorLayoutProps {
|
|
7
7
|
onCollapse: () => void;
|
8
8
|
}
|
9
9
|
declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
-
declare const ExpandButton: import("styled-components").
|
11
|
-
|
12
|
-
|
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>;
|
10
|
+
declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>, "ref"> & {
|
11
|
+
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
12
|
+
}, never>> & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("@strapi/design-system").ButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof React.Component<any, {}, any>>;
|
59
13
|
export { EditorLayout, ExpandButton };
|
60
14
|
export type { EditorLayoutProps };
|
@@ -6,6 +6,6 @@ interface WysiwygProps extends Omit<InputProps, 'type'> {
|
|
6
6
|
labelAction?: React.ReactNode;
|
7
7
|
type: Schema.Attribute.RichText['type'];
|
8
8
|
}
|
9
|
-
declare const
|
10
|
-
export { Wysiwyg };
|
9
|
+
declare const MemoizedWysiwyg: React.MemoExoticComponent<React.ForwardRefExoticComponent<WysiwygProps & React.RefAttributes<EditorApi>>>;
|
10
|
+
export { MemoizedWysiwyg as Wysiwyg };
|
11
11
|
export type { WysiwygProps };
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { ButtonProps } from '@strapi/design-system';
|
2
2
|
interface WysiwygFooterProps {
|
3
|
-
onToggleExpand:
|
3
|
+
onToggleExpand: ButtonProps['onClick'];
|
4
4
|
}
|
5
5
|
declare const WysiwygFooter: ({ onToggleExpand }: WysiwygFooterProps) => import("react/jsx-runtime").JSX.Element;
|
6
6
|
export { WysiwygFooter };
|
@@ -1,55 +1,18 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
3
|
-
export declare const
|
4
|
-
export declare const
|
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;
|
2
|
+
import { IconButtonComponent } from '@strapi/design-system';
|
3
|
+
export declare const MainButtons: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
|
4
|
+
export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
45
5
|
children?: import("react").ReactNode;
|
46
|
-
|
47
|
-
|
48
|
-
} & {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
6
|
+
} & import("@strapi/design-system/dist/types").AsProp<"button"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
7
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
8
|
+
} & import("@strapi/design-system").TransientFlexProps & Pick<import("@strapi/design-system").ButtonProps, "size" | "variant"> & {
|
9
|
+
children: import("react").ReactNode;
|
10
|
+
disabled?: boolean | undefined;
|
11
|
+
label: string;
|
12
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
13
|
+
withTooltip?: boolean | undefined;
|
14
|
+
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
15
|
+
export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
|
16
|
+
export declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").ButtonProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
17
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
18
|
+
}, never>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: import("react").PropsWithoutRef<import("@strapi/design-system").ButtonProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
|
@@ -6,20 +6,20 @@ interface HeaderProps {
|
|
6
6
|
title?: string;
|
7
7
|
}
|
8
8
|
declare const Header: ({ isCreating, status, title: documentTitle }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
-
interface
|
9
|
+
interface DialogOptions {
|
10
|
+
type: 'dialog';
|
11
|
+
title: string;
|
12
|
+
content?: React.ReactNode;
|
13
|
+
footer?: React.ReactNode;
|
14
|
+
}
|
15
|
+
interface HeaderActionDescription {
|
10
16
|
disabled?: boolean;
|
11
17
|
label: string;
|
12
18
|
icon?: React.ReactNode;
|
13
|
-
/**
|
14
|
-
* @default 'default'
|
15
|
-
*/
|
16
19
|
type?: 'icon' | 'default';
|
17
|
-
onClick?: (event: React.SyntheticEvent) => void;
|
18
|
-
|
19
|
-
|
20
|
-
disabled?: boolean;
|
21
|
-
label: string;
|
22
|
-
options: Array<{
|
20
|
+
onClick?: (event: React.SyntheticEvent) => Promise<boolean | void> | boolean | void;
|
21
|
+
dialog?: DialogOptions;
|
22
|
+
options?: Array<{
|
23
23
|
disabled?: boolean;
|
24
24
|
label: string;
|
25
25
|
startIcon?: React.ReactNode;
|
@@ -28,8 +28,8 @@ interface HeaderSelectAction {
|
|
28
28
|
}>;
|
29
29
|
onSelect?: (value: string) => void;
|
30
30
|
value?: string;
|
31
|
+
customizeContent?: (value: string) => React.ReactNode;
|
31
32
|
}
|
32
|
-
type HeaderActionDescription = HeaderButtonAction | HeaderSelectAction;
|
33
33
|
declare const DEFAULT_HEADER_ACTIONS: DocumentActionComponent[];
|
34
34
|
export { Header, DEFAULT_HEADER_ACTIONS };
|
35
35
|
export type { HeaderProps, HeaderActionDescription };
|