@strapi/content-manager 0.0.0-experimental.25e22c6cc9bc6b35392bb55d09f641a0a65e7403 → 0.0.0-experimental.4ddd402c7194d1a969a797313bf007c93148d59a
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-WRPUXGd6.js → ComponentConfigurationPage-BZIaEffq.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-WRPUXGd6.js.map → ComponentConfigurationPage-BZIaEffq.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs → ComponentConfigurationPage-Cxz51Sve.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs.map → ComponentConfigurationPage-Cxz51Sve.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js → EditConfigurationPage-CM62NN0L.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js.map → EditConfigurationPage-CM62NN0L.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs → EditConfigurationPage-CZLbgfIp.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs.map → EditConfigurationPage-CZLbgfIp.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DbcGfyqK.js → EditViewPage-CU7724gt.js} +45 -45
- package/dist/_chunks/EditViewPage-CU7724gt.js.map +1 -0
- package/dist/_chunks/{EditViewPage-0MiFkXa8.mjs → EditViewPage-CzuJgWWp.mjs} +46 -46
- package/dist/_chunks/EditViewPage-CzuJgWWp.mjs.map +1 -0
- package/dist/_chunks/{Field-BG1xu38N.js → Field-Dh1yZyqy.js} +115 -103
- package/dist/_chunks/Field-Dh1yZyqy.js.map +1 -0
- package/dist/_chunks/{Field-BDMSCcy5.mjs → Field-QtUSh5mU.mjs} +116 -104
- package/dist/_chunks/Field-QtUSh5mU.mjs.map +1 -0
- package/dist/_chunks/{Form-9BnFyUjy.js → Form-BOR8NOe1.js} +25 -21
- package/dist/_chunks/Form-BOR8NOe1.js.map +1 -0
- package/dist/_chunks/{Form-CPVWavB8.mjs → Form-COLpvlnv.mjs} +27 -23
- package/dist/_chunks/Form-COLpvlnv.mjs.map +1 -0
- package/dist/_chunks/{History-BVpd8LP3.mjs → History-Bu53Yfw-.mjs} +22 -101
- package/dist/_chunks/History-Bu53Yfw-.mjs.map +1 -0
- package/dist/_chunks/{History-BWWxLt2Z.js → History-CW2akQ6h.js} +21 -100
- package/dist/_chunks/History-CW2akQ6h.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DozVMKcR.mjs → ListConfigurationPage-TqrmwjPN.mjs} +45 -43
- package/dist/_chunks/ListConfigurationPage-TqrmwjPN.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-6swzjdAZ.js → ListConfigurationPage-jzdhEk_u.js} +43 -42
- package/dist/_chunks/ListConfigurationPage-jzdhEk_u.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BlzfjS2Q.js → ListViewPage-B3bMOrMv.js} +64 -47
- package/dist/_chunks/ListViewPage-B3bMOrMv.js.map +1 -0
- package/dist/_chunks/{ListViewPage-Ds0ulgfG.mjs → ListViewPage-BO_mOXIl.mjs} +65 -48
- package/dist/_chunks/ListViewPage-BO_mOXIl.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js → NoContentTypePage-D77xsNHj.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js.map → NoContentTypePage-D77xsNHj.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs → NoContentTypePage-DqB0QV0k.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs.map → NoContentTypePage-DqB0QV0k.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js → NoPermissionsPage-C6qTGogm.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js.map → NoPermissionsPage-C6qTGogm.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs → NoPermissionsPage-DTXi042N.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs.map → NoPermissionsPage-DTXi042N.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CcgFTcWo.js → Relations-B6fb2POW.js} +3 -3
- package/dist/_chunks/{Relations-CcgFTcWo.js.map → Relations-B6fb2POW.js.map} +1 -1
- package/dist/_chunks/{Relations-Dnag3fhV.mjs → Relations-CJ4qdkRo.mjs} +3 -3
- package/dist/_chunks/{Relations-Dnag3fhV.mjs.map → Relations-CJ4qdkRo.mjs.map} +1 -1
- package/dist/_chunks/{en-Ux26r5pl.mjs → en-9GwRW_ku.mjs} +1 -3
- package/dist/_chunks/{en-Ux26r5pl.mjs.map → en-9GwRW_ku.mjs.map} +1 -1
- package/dist/_chunks/{en-fbKQxLGn.js → en-DZXjRiWA.js} +1 -3
- package/dist/_chunks/{en-fbKQxLGn.js.map → en-DZXjRiWA.js.map} +1 -1
- package/dist/_chunks/{index-JNNNKUHs.mjs → index-Dahjdw4h.mjs} +266 -88
- package/dist/_chunks/index-Dahjdw4h.mjs.map +1 -0
- package/dist/_chunks/{index-CWpLBSt0.js → index-DcUu-_72.js} +265 -87
- package/dist/_chunks/index-DcUu-_72.js.map +1 -0
- package/dist/_chunks/{layout--iHdZzRk.js → layout-jcY4dyUG.js} +3 -3
- package/dist/_chunks/{layout--iHdZzRk.js.map → layout-jcY4dyUG.js.map} +1 -1
- package/dist/_chunks/{layout-DC503LnF.mjs → layout-omucV6TV.mjs} +3 -3
- package/dist/_chunks/{layout-DC503LnF.mjs.map → layout-omucV6TV.mjs.map} +1 -1
- package/dist/_chunks/{relations-CTje5t-a.mjs → relations-CN0-aw6p.mjs} +2 -2
- package/dist/_chunks/{relations-CTje5t-a.mjs.map → relations-CN0-aw6p.mjs.map} +1 -1
- package/dist/_chunks/{relations-BbHizA5K.js → relations-DGzD7ORa.js} +2 -2
- package/dist/_chunks/{relations-BbHizA5K.js.map → relations-DGzD7ORa.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -7
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -2
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +30 -3
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/server/index.js +0 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +0 -3
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +0 -1
- package/dist/_chunks/Field-BDMSCcy5.mjs.map +0 -1
- package/dist/_chunks/Field-BG1xu38N.js.map +0 -1
- package/dist/_chunks/Form-9BnFyUjy.js.map +0 -1
- package/dist/_chunks/Form-CPVWavB8.mjs.map +0 -1
- package/dist/_chunks/History-BVpd8LP3.mjs.map +0 -1
- package/dist/_chunks/History-BWWxLt2Z.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +0 -1
- package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +0 -1
- package/dist/_chunks/index-CWpLBSt0.js.map +0 -1
- package/dist/_chunks/index-JNNNKUHs.mjs.map +0 -1
@@ -41,7 +41,11 @@ export declare const CustomLinkIconButton: import("styled-components").IStyledCo
|
|
41
41
|
variant?: "secondary" | "tertiary" | undefined;
|
42
42
|
withTooltip?: boolean | undefined;
|
43
43
|
}, 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<
|
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"> & {
|
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>>;
|
45
49
|
export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("@strapi/design-system").TransientBoxProps & {
|
46
50
|
children?: import("react").ReactNode;
|
47
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> & {
|
@@ -56,7 +60,11 @@ export declare const MoreButton: import("styled-components").IStyledComponent<"w
|
|
56
60
|
variant?: "secondary" | "tertiary" | undefined;
|
57
61
|
withTooltip?: boolean | undefined;
|
58
62
|
}, never>> & Omit<IconButtonComponent, keyof import("react").Component<any, {}, any>>;
|
59
|
-
export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
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"> & {
|
64
|
+
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
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>>;
|
60
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"> & {
|
61
69
|
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
62
70
|
}, never>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: import("react").PropsWithoutRef<import("@strapi/design-system").BaseButtonProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import { DialogOptions, ModalOptions, NotificationOptions } from '../../../EditView/components/DocumentActions';
|
2
|
+
import { NotificationConfig } from '@strapi/admin/strapi-admin';
|
4
3
|
import type { BulkActionComponent } from '../../../../content-manager';
|
5
4
|
interface BulkActionDescription {
|
6
5
|
dialog?: DialogOptions | NotificationOptions | ModalOptions;
|
@@ -15,7 +14,35 @@ interface BulkActionDescription {
|
|
15
14
|
/**
|
16
15
|
* @default 'secondary'
|
17
16
|
*/
|
18
|
-
variant?:
|
17
|
+
variant?: 'default' | 'secondary' | 'tertiary' | 'danger-light' | 'success';
|
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;
|
19
46
|
}
|
20
47
|
declare const BulkActionsRenderer: () => import("react/jsx-runtime").JSX.Element;
|
21
48
|
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
|
+
import { DialogFooterProps } from '@strapi/design-system';
|
3
|
+
interface ConfirmBulkActionDialogProps extends Pick<DialogFooterProps, 'endAction'> {
|
4
4
|
onToggleDialog: () => void;
|
5
5
|
isOpen?: boolean;
|
6
6
|
dialogBody: React.ReactNode;
|
package/dist/server/index.js
CHANGED
@@ -510,9 +510,6 @@ const createLifecyclesService = ({ strapi: strapi2 }) => {
|
|
510
510
|
if (context.action !== "create" && context.action !== "update" && context.action !== "clone" && context.action !== "publish" && context.action !== "unpublish" && context.action !== "discardDraft") {
|
511
511
|
return next();
|
512
512
|
}
|
513
|
-
if (context.action === "update" && strapi2.requestContext.get()?.request.url.endsWith("/actions/publish")) {
|
514
|
-
return next();
|
515
|
-
}
|
516
513
|
const contentTypeUid = context.contentType.uid;
|
517
514
|
if (!contentTypeUid.startsWith("api::")) {
|
518
515
|
return next();
|