@strapi/content-manager 5.0.0-beta.7 → 5.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ComponentConfigurationPage-uTMkLI60.mjs → ComponentConfigurationPage-BMajAl1u.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-uTMkLI60.mjs.map → ComponentConfigurationPage-BMajAl1u.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-DMq0wvcL.js → ComponentConfigurationPage-y_7iLdmB.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DMq0wvcL.js.map → ComponentConfigurationPage-y_7iLdmB.js.map} +1 -1
- package/dist/_chunks/{ComponentIcon-BBQsYCVn.js → ComponentIcon-BXdiCGQp.js} +8 -2
- package/dist/_chunks/ComponentIcon-BXdiCGQp.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-BFpQwwbc.js → EditConfigurationPage-CPVB8Uqc.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BFpQwwbc.js.map → EditConfigurationPage-CPVB8Uqc.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-B2HhCh-b.mjs → EditConfigurationPage-CcOoD26O.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-B2HhCh-b.mjs.map → EditConfigurationPage-CcOoD26O.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-CXXue16T.js → EditViewPage-CTTDHKkQ.js} +5 -5
- package/dist/_chunks/{EditViewPage-CXXue16T.js.map → EditViewPage-CTTDHKkQ.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-BVIrgjyG.mjs → EditViewPage-DWb0DE7R.mjs} +5 -5
- package/dist/_chunks/{EditViewPage-BVIrgjyG.mjs.map → EditViewPage-DWb0DE7R.mjs.map} +1 -1
- package/dist/_chunks/{Field-ZgzKlgxR.js → Field-C5Z1Ivdv.js} +240 -357
- package/dist/_chunks/Field-C5Z1Ivdv.js.map +1 -0
- package/dist/_chunks/{Field-0_2h1vuK.mjs → Field-DnStdvQw.mjs} +240 -357
- package/dist/_chunks/Field-DnStdvQw.mjs.map +1 -0
- package/dist/_chunks/{Form-DgTc2qkx.js → Form-B81OtW-k.js} +9 -6
- package/dist/_chunks/Form-B81OtW-k.js.map +1 -0
- package/dist/_chunks/{Form-B7TUnQDd.mjs → Form-DqGgE55Q.mjs} +9 -6
- package/dist/_chunks/Form-DqGgE55Q.mjs.map +1 -0
- package/dist/_chunks/{History-DtHjQuqM.js → History-4NbOq2dX.js} +97 -15
- package/dist/_chunks/History-4NbOq2dX.js.map +1 -0
- package/dist/_chunks/{History-Dug_4HIA.mjs → History-DS6-HCYX.mjs} +97 -15
- package/dist/_chunks/History-DS6-HCYX.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-BuSdTjfa.js → ListConfigurationPage-CpfstlYY.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-BuSdTjfa.js.map → ListConfigurationPage-CpfstlYY.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CmEeNg6T.mjs → ListConfigurationPage-DQJJltko.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CmEeNg6T.mjs.map → ListConfigurationPage-DQJJltko.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-CExWwa4S.js → ListViewPage-CA3I75m5.js} +23 -18
- package/dist/_chunks/ListViewPage-CA3I75m5.js.map +1 -0
- package/dist/_chunks/{ListViewPage-Dsoa3wEA.mjs → ListViewPage-nQrOQuVo.mjs} +21 -17
- package/dist/_chunks/ListViewPage-nQrOQuVo.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-Dh38hBXB.mjs → NoContentTypePage-DbnHE22g.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-Dh38hBXB.mjs.map → NoContentTypePage-DbnHE22g.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DCUL8gVi.js → NoContentTypePage-Dldu-_Mx.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-DCUL8gVi.js.map → NoContentTypePage-Dldu-_Mx.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BK-XCpIy.js → NoPermissionsPage-CO2MK200.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BK-XCpIy.js.map → NoPermissionsPage-CO2MK200.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-Dt2O40ey.mjs → NoPermissionsPage-fOIkQM0v.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dt2O40ey.mjs.map → NoPermissionsPage-fOIkQM0v.mjs.map} +1 -1
- package/dist/_chunks/{Relations-DZyjWZHl.mjs → Relations-BDRl99Ux.mjs} +8 -6
- package/dist/_chunks/{Relations-DZyjWZHl.mjs.map → Relations-BDRl99Ux.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CNypkp-g.js → Relations-DG2jnOcr.js} +8 -6
- package/dist/_chunks/{Relations-CNypkp-g.js.map → Relations-DG2jnOcr.js.map} +1 -1
- package/dist/_chunks/{en-MBPul9Su.mjs → en-Ux26r5pl.mjs} +7 -1
- package/dist/_chunks/{en-MBPul9Su.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
- package/dist/_chunks/{en-C-V1_90f.js → en-fbKQxLGn.js} +7 -1
- package/dist/_chunks/{en-C-V1_90f.js.map → en-fbKQxLGn.js.map} +1 -1
- package/dist/_chunks/{index-DFK7LwDW.js → index-BZoNZMXL.js} +1528 -779
- package/dist/_chunks/index-BZoNZMXL.js.map +1 -0
- package/dist/_chunks/{index-B3c-4it4.mjs → index-Drt2DN7v.mjs} +1552 -803
- package/dist/_chunks/index-Drt2DN7v.mjs.map +1 -0
- package/dist/_chunks/{layout-B5cm7cZj.mjs → layout-BzAbmoO6.mjs} +20 -15
- package/dist/_chunks/layout-BzAbmoO6.mjs.map +1 -0
- package/dist/_chunks/{layout-DLih5-_W.js → layout-DEYBqgF1.js} +20 -15
- package/dist/_chunks/layout-DEYBqgF1.js.map +1 -0
- package/dist/_chunks/{relations-CTvkuINQ.js → relations-D0eZ4VWw.js} +2 -2
- package/dist/_chunks/{relations-CTvkuINQ.js.map → relations-D0eZ4VWw.js.map} +1 -1
- package/dist/_chunks/{relations-BZkrMa2z.mjs → relations-D26zVRdi.mjs} +2 -2
- package/dist/_chunks/{relations-BZkrMa2z.mjs.map → relations-D26zVRdi.mjs.map} +1 -1
- package/dist/_chunks/usePrev-B9w_-eYc.js +15 -0
- package/dist/_chunks/usePrev-B9w_-eYc.js.map +1 -0
- package/dist/_chunks/usePrev-DH6iah0A.mjs +16 -0
- package/dist/_chunks/usePrev-DH6iah0A.mjs.map +1 -0
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +8 -7
- package/dist/admin/src/components/ComponentIcon.d.ts +6 -3
- package/dist/admin/src/content-manager.d.ts +3 -3
- package/dist/admin/src/exports.d.ts +1 -0
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/hooks/useDocument.d.ts +5 -8
- package/dist/admin/src/hooks/useDocumentActions.d.ts +24 -3
- package/dist/admin/src/hooks/useDocumentLayout.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +3 -3
- 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 +2 -15
- package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +56 -35
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +2 -10
- package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +9 -26
- 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 +29 -17
- 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 -17
- package/dist/admin/src/utils/validation.d.ts +1 -6
- package/dist/server/index.js +247 -127
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +249 -129
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/controllers/single-types.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +8 -0
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts +9 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -0
- 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/index.d.ts +12 -33
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts +6 -6
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +8 -29
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +12 -33
- package/dist/server/src/services/index.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/shared/contracts/collection-types.d.ts +11 -5
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/dist/shared/contracts/relations.d.ts +2 -2
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/package.json +11 -11
- package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +0 -1
- package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +0 -1
- package/dist/_chunks/Field-0_2h1vuK.mjs.map +0 -1
- package/dist/_chunks/Field-ZgzKlgxR.js.map +0 -1
- package/dist/_chunks/Form-B7TUnQDd.mjs.map +0 -1
- package/dist/_chunks/Form-DgTc2qkx.js.map +0 -1
- package/dist/_chunks/History-DtHjQuqM.js.map +0 -1
- package/dist/_chunks/History-Dug_4HIA.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CExWwa4S.js.map +0 -1
- package/dist/_chunks/ListViewPage-Dsoa3wEA.mjs.map +0 -1
- package/dist/_chunks/index-B3c-4it4.mjs.map +0 -1
- package/dist/_chunks/index-DFK7LwDW.js.map +0 -1
- package/dist/_chunks/layout-B5cm7cZj.mjs.map +0 -1
- package/dist/_chunks/layout-DLih5-_W.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/server/src/controllers/utils/dimensions.d.ts +0 -5
- package/dist/server/src/controllers/utils/dimensions.d.ts.map +0 -1
@@ -14,6 +14,6 @@ type VersionInputRendererProps = DistributiveOmit<EditFieldLayout, 'size'> & {
|
|
14
14
|
* to be used on the History page in the content-manager. It understands how to render specific
|
15
15
|
* inputs within the context of a history version (i.e. relations, media, ignored RBAC, etc...)
|
16
16
|
*/
|
17
|
-
declare const VersionInputRenderer: ({ visible, hint: providedHint, shouldIgnoreRBAC, ...props }: VersionInputRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
17
|
+
declare const VersionInputRenderer: ({ visible, hint: providedHint, shouldIgnoreRBAC, labelAction, ...props }: VersionInputRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
18
18
|
export type { VersionInputRendererProps };
|
19
19
|
export { VersionInputRenderer };
|
@@ -8,5 +8,5 @@ declare const useGetHistoryVersionsQuery: import("@reduxjs/toolkit/dist/query/re
|
|
8
8
|
contentType: import("@strapi/types/dist/uid").ContentType;
|
9
9
|
documentId?: Data.ID | undefined;
|
10
10
|
locale?: string | undefined;
|
11
|
-
} & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("
|
11
|
+
} & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", GetHistoryVersions.Response, "adminApi">>, useRestoreVersionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<RestoreVersion, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", RestoreHistoryVersion.Response, "adminApi">>;
|
12
12
|
export { useGetHistoryVersionsQuery, useRestoreVersionMutation };
|
@@ -3,11 +3,12 @@
|
|
3
3
|
* this sounds expensive but actually, it's really not. Because we have redux-toolkit-query
|
4
4
|
* being a cache layer so if nothing invalidates the cache, we don't fetch again.
|
5
5
|
*/
|
6
|
+
import { FormErrors } from '@strapi/admin/strapi-admin';
|
7
|
+
import { Modules } from '@strapi/types';
|
6
8
|
import { useGetDocumentQuery } from '../services/documents';
|
7
9
|
import { ComponentsDictionary } from './useContentTypeSchema';
|
8
10
|
import type { FindOne } from '../../../shared/contracts/collection-types';
|
9
11
|
import type { ContentType } from '../../../shared/contracts/content-types';
|
10
|
-
import type { MessageDescriptor, PrimitiveType } from 'react-intl';
|
11
12
|
interface UseDocumentArgs {
|
12
13
|
collectionType: string;
|
13
14
|
model: string;
|
@@ -30,9 +31,7 @@ type UseDocument = (args: UseDocumentArgs, opts?: UseDocumentOpts) => {
|
|
30
31
|
* This is the schema of the content type, it is not the same as the layout.
|
31
32
|
*/
|
32
33
|
schema?: Schema;
|
33
|
-
validate: (document: Document) => null |
|
34
|
-
values?: Record<string, PrimitiveType>;
|
35
|
-
}>;
|
34
|
+
validate: (document: Document) => null | FormErrors;
|
36
35
|
};
|
37
36
|
/**
|
38
37
|
* @alpha
|
@@ -72,16 +71,14 @@ declare const useDoc: () => {
|
|
72
71
|
* by their uid.
|
73
72
|
*/
|
74
73
|
components: ComponentsDictionary;
|
75
|
-
document?:
|
74
|
+
document?: Modules.Documents.AnyDocument | undefined;
|
76
75
|
meta?: import("../../../shared/contracts/collection-types").DocumentMetadata | undefined;
|
77
76
|
isLoading: boolean;
|
78
77
|
/**
|
79
78
|
* This is the schema of the content type, it is not the same as the layout.
|
80
79
|
*/
|
81
80
|
schema?: ContentType | undefined;
|
82
|
-
validate: (document: Document) => null |
|
83
|
-
values?: Record<string, PrimitiveType>;
|
84
|
-
}>;
|
81
|
+
validate: (document: Document) => null | FormErrors;
|
85
82
|
collectionType: string;
|
86
83
|
model: string;
|
87
84
|
id: string | undefined;
|
@@ -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
|
@@ -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,
|
@@ -44,7 +44,9 @@ interface NotificationOptions {
|
|
44
44
|
interface ModalOptions {
|
45
45
|
type: 'modal';
|
46
46
|
title: string;
|
47
|
-
content: React.
|
47
|
+
content: React.ComponentType<{
|
48
|
+
onClose: () => void;
|
49
|
+
}> | React.ReactNode;
|
48
50
|
footer: React.ComponentType<{
|
49
51
|
onClose: () => void;
|
50
52
|
}> | React.ReactNode;
|
@@ -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 };
|
@@ -6,20 +6,6 @@ interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
|
6
6
|
type: 'relation';
|
7
7
|
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
|
8
8
|
}
|
9
|
-
/**
|
10
|
-
* TODO: we get a rather ugly flash when we remove a single relation from the list leaving
|
11
|
-
* no other relations when we press save. The initial relation re-renders, probably because
|
12
|
-
* of the lag in the Form cleaning it's "disconnect" array, whilst our data has not been invalidated.
|
13
|
-
*
|
14
|
-
* Could we invalidate relation data on the document actions? Should we?
|
15
|
-
*/
|
16
|
-
/**
|
17
|
-
* @internal
|
18
|
-
* @description The relations field holds a lot of domain logic for handling relations which is rather complicated
|
19
|
-
* At present we do not expose this to plugin developers, however, they are able to overwrite it themselves should
|
20
|
-
* they wish to do so.
|
21
|
-
*/
|
22
|
-
declare const RelationsField: React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>;
|
23
9
|
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"> & {
|
24
10
|
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
25
11
|
}, never>> & Omit<FlexComponent, keyof React.Component<any, {}, any>>;
|
@@ -27,5 +13,6 @@ declare const DisconnectButton: import("styled-components").IStyledComponent<"we
|
|
27
13
|
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"> & {
|
28
14
|
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
29
15
|
}, 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>>;
|
30
|
-
|
16
|
+
declare const MemoizedRelationsField: React.MemoExoticComponent<React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>>;
|
17
|
+
export { MemoizedRelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
|
31
18
|
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 };
|
@@ -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,44 +1,65 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
ref?: ((instance:
|
21
|
-
}
|
22
|
-
|
23
|
-
}
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
2
|
+
import { IconButtonComponent } from '@strapi/design-system';
|
3
|
+
export declare const CustomIconButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
4
|
+
children?: import("react").ReactNode;
|
5
|
+
} & 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> & {
|
6
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
7
|
+
} & import("@strapi/design-system").TransientFlexProps & {
|
8
|
+
disabled?: boolean | undefined;
|
9
|
+
} & {
|
10
|
+
children: import("react").ReactNode;
|
11
|
+
label: string;
|
12
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
13
|
+
size?: "S" | "M" | "L" | undefined;
|
14
|
+
variant?: "secondary" | "tertiary" | undefined;
|
15
|
+
withTooltip?: boolean | undefined;
|
16
|
+
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
17
|
+
export declare const CustomLinkIconButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
18
|
+
children?: import("react").ReactNode;
|
19
|
+
} & 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> & {
|
20
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
21
|
+
} & import("@strapi/design-system").TransientFlexProps & {
|
22
|
+
disabled?: boolean | undefined;
|
23
|
+
} & {
|
24
|
+
children: import("react").ReactNode;
|
25
|
+
label: string;
|
26
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
27
|
+
size?: "S" | "M" | "L" | undefined;
|
28
|
+
variant?: "secondary" | "tertiary" | undefined;
|
29
|
+
withTooltip?: boolean | undefined;
|
30
|
+
}, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
31
|
+
children?: import("react").ReactNode;
|
32
|
+
} & 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> & {
|
33
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
34
|
+
} & import("@strapi/design-system").TransientFlexProps & {
|
35
|
+
disabled?: boolean | undefined;
|
36
|
+
} & {
|
37
|
+
children: import("react").ReactNode;
|
38
|
+
label: string;
|
39
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
40
|
+
size?: "S" | "M" | "L" | undefined;
|
41
|
+
variant?: "secondary" | "tertiary" | undefined;
|
42
|
+
withTooltip?: boolean | undefined;
|
43
|
+
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
28
44
|
export declare const MainButtons: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
29
45
|
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
30
46
|
}, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
31
47
|
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
32
48
|
}, never>> & Omit<import("@strapi/design-system").FlexComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
33
|
-
export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").
|
34
|
-
|
35
|
-
}
|
36
|
-
ref?: ((instance:
|
37
|
-
}
|
38
|
-
|
39
|
-
}
|
40
|
-
|
41
|
-
|
49
|
+
export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
50
|
+
children?: import("react").ReactNode;
|
51
|
+
} & 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> & {
|
52
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
53
|
+
} & import("@strapi/design-system").TransientFlexProps & {
|
54
|
+
disabled?: boolean | undefined;
|
55
|
+
} & {
|
56
|
+
children: import("react").ReactNode;
|
57
|
+
label: string;
|
58
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
59
|
+
size?: "S" | "M" | "L" | undefined;
|
60
|
+
variant?: "secondary" | "tertiary" | undefined;
|
61
|
+
withTooltip?: boolean | undefined;
|
62
|
+
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
42
63
|
export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
43
64
|
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
44
65
|
}, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
@@ -3,15 +3,7 @@ import type { EditFieldLayout } from '../../../hooks/useDocumentLayout';
|
|
3
3
|
import type { Schema } from '@strapi/types';
|
4
4
|
import type { DistributiveOmit } from 'react-redux';
|
5
5
|
type InputRendererProps = DistributiveOmit<EditFieldLayout, 'size'>;
|
6
|
-
/**
|
7
|
-
* @internal
|
8
|
-
*
|
9
|
-
* @description An abstraction around the regular form input renderer designed
|
10
|
-
* specifically to be used in the EditView of the content-manager this understands
|
11
|
-
* the complete EditFieldLayout and will handle RBAC conditions and rendering CM specific
|
12
|
-
* components such as Blocks / Relations.
|
13
|
-
*/
|
14
|
-
declare const InputRenderer: ({ visible, hint: providedHint, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
15
6
|
declare const useFieldHint: (hint: ReactNode, attribute: Schema.Attribute.AnyAttribute) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | (string | import("react/jsx-runtime").JSX.Element | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal)[] | null | undefined;
|
7
|
+
declare const MemoizedInputRenderer: import("react").MemoExoticComponent<({ visible, hint: providedHint, ...props }: InputRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
16
8
|
export type { InputRendererProps };
|
17
|
-
export { InputRenderer, useFieldHint };
|
9
|
+
export { MemoizedInputRenderer as InputRenderer, useFieldHint };
|
@@ -1,31 +1,14 @@
|
|
1
|
-
import
|
2
|
-
import { MessageDescriptor } from 'react-intl';
|
3
|
-
import { Document } from '../../../../hooks/useDocument';
|
1
|
+
import { ConfirmDialogPublishAllProps } from './ConfirmBulkActionDialog';
|
4
2
|
import type { BulkActionComponent } from '../../../../content-manager';
|
5
|
-
import type {
|
6
|
-
interface
|
7
|
-
validationErrors?: Record<string, MessageDescriptor>;
|
8
|
-
isPublished?: boolean;
|
3
|
+
import type { Document } from '../../../../hooks/useDocument';
|
4
|
+
interface TableRow extends Document {
|
9
5
|
}
|
10
|
-
interface
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
6
|
+
interface SelectedEntriesModalContentProps {
|
7
|
+
listViewSelectedEntries: TableRow[];
|
8
|
+
toggleModal: ConfirmDialogPublishAllProps['onToggleDialog'];
|
9
|
+
setListViewSelectedDocuments: (documents: TableRow[]) => void;
|
10
|
+
model: string;
|
15
11
|
}
|
16
|
-
|
17
|
-
isDialogOpen: boolean;
|
18
|
-
setIsDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
19
|
-
refetchList: () => void;
|
20
|
-
setSelectedListViewEntries: React.Dispatch<React.SetStateAction<Document['id'][]>>;
|
21
|
-
setEntriesToFetch: React.Dispatch<React.SetStateAction<Document['id'][]>>;
|
22
|
-
validationErrors: Record<string, EntryValidationTextProps['validationErrors']>;
|
23
|
-
setIsPublishModalBtnDisabled: React.Dispatch<React.SetStateAction<boolean>>;
|
24
|
-
}
|
25
|
-
interface TableRow {
|
26
|
-
id: Data.ID;
|
27
|
-
publishedAt: string | null;
|
28
|
-
}
|
29
|
-
declare const SelectedEntriesModalContent: ({ validationErrors, }: SelectedEntriesModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
declare const SelectedEntriesModalContent: ({ listViewSelectedEntries, toggleModal, setListViewSelectedDocuments, model, }: SelectedEntriesModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
30
13
|
declare const PublishAction: BulkActionComponent;
|
31
14
|
export { PublishAction, SelectedEntriesModalContent };
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export { contentManagerApi, type UnknownApiError };
|
1
|
+
declare const contentManagerApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, import("@reduxjs/toolkit/dist/query/endpointDefinitions").UpdateDefinitions<{}, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", never>, "adminApi", "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
2
|
+
export { contentManagerApi };
|
@@ -1,5 +1,5 @@
|
|
1
|
-
declare const useGetComponentConfigurationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("
|
1
|
+
declare const useGetComponentConfigurationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", {
|
2
2
|
component: import("../../../shared/contracts/components").ComponentConfiguration;
|
3
3
|
components: Record<string, import("../../../shared/contracts/components").ComponentConfiguration>;
|
4
|
-
}, "
|
4
|
+
}, "adminApi">>, useUpdateComponentConfigurationMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", import("../../../shared/contracts/components").ComponentConfiguration, "adminApi">>;
|
5
5
|
export { useGetComponentConfigurationQuery, useUpdateComponentConfigurationMutation };
|
@@ -1,17 +1,17 @@
|
|
1
|
-
declare const useGetContentTypeConfigurationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("
|
1
|
+
declare const useGetContentTypeConfigurationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", {
|
2
2
|
contentType: import("../../../shared/contracts/content-types").Configuration;
|
3
3
|
components: Record<string, import("../../../shared/contracts/components").ComponentConfiguration>;
|
4
|
-
}, "
|
4
|
+
}, "adminApi">>, useGetAllContentTypeSettingsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", {
|
5
5
|
uid: string;
|
6
6
|
settings: import("../../../shared/contracts/content-types").Settings;
|
7
|
-
}[], "
|
7
|
+
}[], "adminApi">>, useUpdateContentTypeConfigurationMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
|
8
8
|
layouts: import("../../../shared/contracts/content-types").Layouts;
|
9
9
|
metadatas: import("../../../shared/contracts/content-types").Metadatas;
|
10
10
|
settings: import("../../../shared/contracts/content-types").Settings;
|
11
11
|
} & {
|
12
12
|
uid: string;
|
13
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("
|
13
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", {
|
14
14
|
contentType: import("../../../shared/contracts/content-types").Configuration;
|
15
15
|
components: Record<string, import("../../../shared/contracts/components").ComponentConfiguration>;
|
16
|
-
}, "
|
16
|
+
}, "adminApi">>;
|
17
17
|
export { useGetContentTypeConfigurationQuery, useGetAllContentTypeSettingsQuery, useUpdateContentTypeConfigurationMutation, };
|