@strapi/content-manager 0.0.0-experimental.f75e3c6d67cc47c64ab37479efdbb7b43be50b78 → 0.0.0-experimental.fb442e5e12dd3f611303691bf85a249520ba348b
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/{ComponentConfigurationPage-CuWgXugY.mjs → ComponentConfigurationPage-B3yDbeU1.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CuWgXugY.mjs.map → ComponentConfigurationPage-B3yDbeU1.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-by0e_kNd.js → ComponentConfigurationPage-KXSuLnQD.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-by0e_kNd.js.map → ComponentConfigurationPage-KXSuLnQD.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CqBeCPGH.js → EditConfigurationPage-BQ17--5R.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CqBeCPGH.js.map → EditConfigurationPage-BQ17--5R.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DbI4KMyz.mjs → EditConfigurationPage-D7PrLO8j.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-DbI4KMyz.mjs.map → EditConfigurationPage-D7PrLO8j.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-dFPBya9U.mjs → EditViewPage-B7VgwJaG.mjs} +57 -46
- package/dist/_chunks/EditViewPage-B7VgwJaG.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-ChgloMyO.js → EditViewPage-BgjdnGz2.js} +56 -45
- package/dist/_chunks/EditViewPage-BgjdnGz2.js.map +1 -0
- package/dist/_chunks/{Field-dLk-vgLL.js → Field-CdK7ZLmv.js} +504 -165
- package/dist/_chunks/Field-CdK7ZLmv.js.map +1 -0
- package/dist/_chunks/{Field-C1nUKcdS.mjs → Field-tHCw4lGA.mjs} +505 -166
- package/dist/_chunks/Field-tHCw4lGA.mjs.map +1 -0
- package/dist/_chunks/{Form-DOlpi7Js.mjs → Form-BJxdTv3Q.mjs} +40 -30
- package/dist/_chunks/Form-BJxdTv3Q.mjs.map +1 -0
- package/dist/_chunks/{Form-CbXtmHC_.js → Form-C_0KTVvV.js} +38 -28
- package/dist/_chunks/Form-C_0KTVvV.js.map +1 -0
- package/dist/_chunks/{History-BFNUAiGc.mjs → History-DR2txJLE.mjs} +142 -37
- package/dist/_chunks/History-DR2txJLE.mjs.map +1 -0
- package/dist/_chunks/{History-BjDfohBr.js → History-nuEzM5qm.js} +141 -36
- package/dist/_chunks/History-nuEzM5qm.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-IQBgWTaa.js → ListConfigurationPage-CnB86Psm.js} +57 -46
- package/dist/_chunks/ListConfigurationPage-CnB86Psm.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DDi0KqFm.mjs → ListConfigurationPage-voFVtXu6.mjs} +58 -48
- package/dist/_chunks/ListConfigurationPage-voFVtXu6.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-BPjljUsH.mjs → ListViewPage-B_GaWgRH.mjs} +80 -71
- package/dist/_chunks/ListViewPage-B_GaWgRH.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-CZYGqlvF.js → ListViewPage-SXIXm-RM.js} +78 -69
- package/dist/_chunks/ListViewPage-SXIXm-RM.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-BOAI6VZ1.js → NoContentTypePage-BzsQ3hLZ.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-BOAI6VZ1.js.map → NoContentTypePage-BzsQ3hLZ.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-DaWw67K-.mjs → NoContentTypePage-CYiGpsbj.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DaWw67K-.mjs.map → NoContentTypePage-CYiGpsbj.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CZrJH00p.mjs → NoPermissionsPage-B5baIHal.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CZrJH00p.mjs.map → NoPermissionsPage-B5baIHal.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-cYEtLc_e.js → NoPermissionsPage-IGkId4C5.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-cYEtLc_e.js.map → NoPermissionsPage-IGkId4C5.js.map} +1 -1
- package/dist/_chunks/{Relations-DTowyge2.mjs → Relations-CIYDdKU-.mjs} +5 -5
- package/dist/_chunks/Relations-CIYDdKU-.mjs.map +1 -0
- package/dist/_chunks/{Relations-DU6B7irU.js → Relations-Dhuurpx2.js} +5 -5
- package/dist/_chunks/Relations-Dhuurpx2.js.map +1 -0
- package/dist/_chunks/{en-GCOTL6jR.mjs → en-BrCTWlZv.mjs} +9 -4
- package/dist/_chunks/{en-GCOTL6jR.mjs.map → en-BrCTWlZv.mjs.map} +1 -1
- package/dist/_chunks/{en-DTULi5-d.js → en-uOUIxfcQ.js} +9 -4
- package/dist/_chunks/{en-DTULi5-d.js.map → en-uOUIxfcQ.js.map} +1 -1
- package/dist/_chunks/{index-BaGHmIir.mjs → index-C9TJPyni.mjs} +1542 -1063
- package/dist/_chunks/index-C9TJPyni.mjs.map +1 -0
- package/dist/_chunks/{index-CCJeB7Rw.js → index-CdT0kHZ8.js} +1510 -1031
- package/dist/_chunks/index-CdT0kHZ8.js.map +1 -0
- package/dist/_chunks/{layout-BinjszSQ.mjs → layout-BNqvLR_b.mjs} +39 -22
- package/dist/_chunks/layout-BNqvLR_b.mjs.map +1 -0
- package/dist/_chunks/{layout-ni_L9kT1.js → layout-C6dxWYT7.js} +37 -20
- package/dist/_chunks/layout-C6dxWYT7.js.map +1 -0
- package/dist/_chunks/{relations-c91ji5eR.mjs → relations-CkKqKw65.mjs} +2 -2
- package/dist/_chunks/{relations-c91ji5eR.mjs.map → relations-CkKqKw65.mjs.map} +1 -1
- package/dist/_chunks/{relations-CeJAJc5I.js → relations-DtFaDnP1.js} +2 -2
- package/dist/_chunks/{relations-CeJAJc5I.js.map → relations-DtFaDnP1.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +8 -8
- 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/hooks/useDocumentActions.d.ts +1 -1
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +8 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +4 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +20 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.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 +12 -32
- 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 +14 -0
- package/dist/server/index.js +147 -93
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +148 -94
- 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/uid.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/dimensions.d.ts +4 -2
- package/dist/server/src/controllers/validation/dimensions.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 +1 -1
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-ChgloMyO.js.map +0 -1
- package/dist/_chunks/EditViewPage-dFPBya9U.mjs.map +0 -1
- package/dist/_chunks/Field-C1nUKcdS.mjs.map +0 -1
- package/dist/_chunks/Field-dLk-vgLL.js.map +0 -1
- package/dist/_chunks/Form-CbXtmHC_.js.map +0 -1
- package/dist/_chunks/Form-DOlpi7Js.mjs.map +0 -1
- package/dist/_chunks/History-BFNUAiGc.mjs.map +0 -1
- package/dist/_chunks/History-BjDfohBr.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DDi0KqFm.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-IQBgWTaa.js.map +0 -1
- package/dist/_chunks/ListViewPage-BPjljUsH.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CZYGqlvF.js.map +0 -1
- package/dist/_chunks/Relations-DTowyge2.mjs.map +0 -1
- package/dist/_chunks/Relations-DU6B7irU.js.map +0 -1
- package/dist/_chunks/index-BaGHmIir.mjs.map +0 -1
- package/dist/_chunks/index-CCJeB7Rw.js.map +0 -1
- package/dist/_chunks/layout-BinjszSQ.mjs.map +0 -1
- package/dist/_chunks/layout-ni_L9kT1.js.map +0 -1
package/dist/admin/index.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { l, d, J, G, K, h, f } from "../_chunks/index-C9TJPyni.mjs";
|
2
2
|
import "@strapi/icons";
|
3
3
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
l as DocumentRBAC,
|
5
|
+
d as buildValidParams,
|
6
|
+
J as default,
|
7
|
+
G as unstable_useDocument,
|
8
|
+
K as unstable_useDocumentActions,
|
9
|
+
h as unstable_useDocumentLayout,
|
10
|
+
f as useDocumentRBAC
|
11
11
|
};
|
12
12
|
//# sourceMappingURL=index.mjs.map
|
@@ -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 };
|
@@ -2,7 +2,7 @@ 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, BulkDelete, Discard, FindOne, Publish, Update, Unpublish,
|
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
8
|
meta?: any;
|
@@ -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
|
}
|
@@ -47,7 +49,7 @@ interface ModalOptions {
|
|
47
49
|
content: React.ComponentType<{
|
48
50
|
onClose: () => void;
|
49
51
|
}> | React.ReactNode;
|
50
|
-
footer
|
52
|
+
footer?: React.ComponentType<{
|
51
53
|
onClose: () => void;
|
52
54
|
}> | React.ReactNode;
|
53
55
|
onClose?: () => void;
|
@@ -59,6 +61,9 @@ interface DocumentActionsProps {
|
|
59
61
|
actions: Action[];
|
60
62
|
}
|
61
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;
|
62
67
|
interface DocumentActionsMenuProps {
|
63
68
|
actions: Action[];
|
64
69
|
children?: React.ReactNode;
|
@@ -67,5 +72,5 @@ interface DocumentActionsMenuProps {
|
|
67
72
|
}
|
68
73
|
declare const DocumentActionsMenu: ({ actions, children, label, variant, }: DocumentActionsMenuProps) => import("react/jsx-runtime").JSX.Element;
|
69
74
|
declare const DEFAULT_ACTIONS: DocumentActionComponent[];
|
70
|
-
export { DocumentActions, DocumentActionsMenu, DEFAULT_ACTIONS };
|
75
|
+
export { DocumentActions, DocumentActionsMenu, DocumentActionButton, DEFAULT_ACTIONS };
|
71
76
|
export type { DocumentActionDescription, DialogOptions, NotificationOptions, ModalOptions };
|
@@ -2,10 +2,30 @@ import * as React from 'react';
|
|
2
2
|
import { type InputProps } from '@strapi/admin/strapi-admin';
|
3
3
|
import { FlexComponent } from '@strapi/design-system';
|
4
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
|
+
}
|
5
21
|
interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
6
22
|
type: 'relation';
|
7
23
|
}>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
|
8
24
|
}
|
25
|
+
export interface RelationsFormValue {
|
26
|
+
connect?: Relation[];
|
27
|
+
disconnect?: Pick<Relation, 'id'>[];
|
28
|
+
}
|
9
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"> & {
|
10
30
|
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
11
31
|
}, never>> & Omit<FlexComponent, keyof React.Component<any, {}, any>>;
|
@@ -7,8 +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").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").
|
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
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").
|
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>>;
|
13
13
|
export { EditorLayout, ExpandButton };
|
14
14
|
export type { EditorLayoutProps };
|
@@ -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 };
|
@@ -4,67 +4,47 @@ export declare const CustomIconButton: import("styled-components").IStyledCompon
|
|
4
4
|
children?: import("react").ReactNode;
|
5
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
6
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
7
|
-
} & import("@strapi/design-system").TransientFlexProps & {
|
8
|
-
disabled?: boolean | undefined;
|
9
|
-
} & {
|
7
|
+
} & import("@strapi/design-system").TransientFlexProps & Pick<import("@strapi/design-system").ButtonProps, "size" | "variant"> & {
|
10
8
|
children: import("react").ReactNode;
|
9
|
+
disabled?: boolean | undefined;
|
11
10
|
label: string;
|
12
11
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
13
|
-
size?: "S" | "M" | "L" | undefined;
|
14
|
-
variant?: "secondary" | "tertiary" | undefined;
|
15
12
|
withTooltip?: boolean | undefined;
|
16
13
|
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
17
14
|
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
15
|
children?: import("react").ReactNode;
|
19
16
|
} & 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
17
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
21
|
-
} & import("@strapi/design-system").TransientFlexProps & {
|
22
|
-
disabled?: boolean | undefined;
|
23
|
-
} & {
|
18
|
+
} & import("@strapi/design-system").TransientFlexProps & Pick<import("@strapi/design-system").ButtonProps, "size" | "variant"> & {
|
24
19
|
children: import("react").ReactNode;
|
20
|
+
disabled?: boolean | undefined;
|
25
21
|
label: string;
|
26
22
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
27
|
-
size?: "S" | "M" | "L" | undefined;
|
28
|
-
variant?: "secondary" | "tertiary" | undefined;
|
29
23
|
withTooltip?: boolean | undefined;
|
30
24
|
}, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
31
25
|
children?: import("react").ReactNode;
|
32
26
|
} & 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
27
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
34
|
-
} & import("@strapi/design-system").TransientFlexProps & {
|
35
|
-
disabled?: boolean | undefined;
|
36
|
-
} & {
|
28
|
+
} & import("@strapi/design-system").TransientFlexProps & Pick<import("@strapi/design-system").ButtonProps, "size" | "variant"> & {
|
37
29
|
children: import("react").ReactNode;
|
30
|
+
disabled?: boolean | undefined;
|
38
31
|
label: string;
|
39
32
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
40
|
-
size?: "S" | "M" | "L" | undefined;
|
41
|
-
variant?: "secondary" | "tertiary" | undefined;
|
42
33
|
withTooltip?: boolean | undefined;
|
43
34
|
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
44
|
-
export declare const MainButtons: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components
|
45
|
-
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
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"> & {
|
47
|
-
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
48
|
-
}, never>> & Omit<import("@strapi/design-system").FlexComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
35
|
+
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>>);
|
49
36
|
export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
50
37
|
children?: import("react").ReactNode;
|
51
38
|
} & 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
39
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
53
|
-
} & import("@strapi/design-system").TransientFlexProps & {
|
54
|
-
disabled?: boolean | undefined;
|
55
|
-
} & {
|
40
|
+
} & import("@strapi/design-system").TransientFlexProps & Pick<import("@strapi/design-system").ButtonProps, "size" | "variant"> & {
|
56
41
|
children: import("react").ReactNode;
|
42
|
+
disabled?: boolean | undefined;
|
57
43
|
label: string;
|
58
44
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
59
|
-
size?: "S" | "M" | "L" | undefined;
|
60
|
-
variant?: "secondary" | "tertiary" | undefined;
|
61
45
|
withTooltip?: boolean | undefined;
|
62
46
|
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
63
|
-
export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components
|
64
|
-
|
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"> & {
|
66
|
-
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
67
|
-
}, never>> & Omit<import("@strapi/design-system").FlexComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
68
|
-
export declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").BaseButtonProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
47
|
+
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>>);
|
48
|
+
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"> & {
|
69
49
|
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
70
|
-
}, never>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: import("react").PropsWithoutRef<import("@strapi/design-system").
|
50
|
+
}, 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>>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
2
|
+
import { ButtonProps } from '@strapi/design-system';
|
3
|
+
import { DialogOptions, ModalOptions, NotificationOptions } from '../../../EditView/components/DocumentActions';
|
3
4
|
import type { BulkActionComponent } from '../../../../content-manager';
|
4
5
|
interface BulkActionDescription {
|
5
6
|
dialog?: DialogOptions | NotificationOptions | ModalOptions;
|
@@ -14,35 +15,7 @@ interface BulkActionDescription {
|
|
14
15
|
/**
|
15
16
|
* @default 'secondary'
|
16
17
|
*/
|
17
|
-
variant?: '
|
18
|
-
}
|
19
|
-
interface DialogOptions {
|
20
|
-
type: 'dialog';
|
21
|
-
title: string;
|
22
|
-
content?: React.ReactNode;
|
23
|
-
onConfirm?: () => void | Promise<void>;
|
24
|
-
onCancel?: () => void | Promise<void>;
|
25
|
-
}
|
26
|
-
interface NotificationOptions {
|
27
|
-
type: 'notification';
|
28
|
-
title: string;
|
29
|
-
link?: {
|
30
|
-
label: string;
|
31
|
-
url: string;
|
32
|
-
target?: string;
|
33
|
-
};
|
34
|
-
content?: string;
|
35
|
-
onClose?: () => void;
|
36
|
-
status?: NotificationConfig['type'];
|
37
|
-
timeout?: number;
|
38
|
-
}
|
39
|
-
interface ModalOptions {
|
40
|
-
type: 'modal';
|
41
|
-
title: string;
|
42
|
-
content: React.ComponentType<{
|
43
|
-
onClose: () => void;
|
44
|
-
}>;
|
45
|
-
onClose?: () => void;
|
18
|
+
variant?: ButtonProps['variant'];
|
46
19
|
}
|
47
20
|
declare const BulkActionsRenderer: () => import("react/jsx-runtime").JSX.Element;
|
48
21
|
declare const Emphasis: (chunks: React.ReactNode) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
3
|
-
|
2
|
+
interface ConfirmBulkActionDialogProps {
|
3
|
+
endAction: React.ReactNode;
|
4
4
|
onToggleDialog: () => void;
|
5
5
|
isOpen?: boolean;
|
6
6
|
dialogBody: React.ReactNode;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ConfirmDialogPublishAllProps } from './ConfirmBulkActionDialog';
|
2
|
+
import type { BulkActionComponent } from '../../../../content-manager';
|
3
|
+
import type { Document } from '../../../../hooks/useDocument';
|
4
|
+
interface TableRow extends Document {
|
5
|
+
}
|
6
|
+
interface SelectedEntriesModalContentProps {
|
7
|
+
listViewSelectedEntries: TableRow[];
|
8
|
+
toggleModal: ConfirmDialogPublishAllProps['onToggleDialog'];
|
9
|
+
setListViewSelectedDocuments: (documents: TableRow[]) => void;
|
10
|
+
model: string;
|
11
|
+
}
|
12
|
+
declare const SelectedEntriesModalContent: ({ listViewSelectedEntries, toggleModal, setListViewSelectedDocuments, model, }: SelectedEntriesModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
declare const PublishAction: BulkActionComponent;
|
14
|
+
export { PublishAction, SelectedEntriesModalContent };
|