@strapi/content-manager 5.0.0-beta.6 → 5.0.0-beta.7
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/{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-43KmCNQE.js → ComponentConfigurationPage-DMq0wvcL.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-43KmCNQE.js.map → ComponentConfigurationPage-DMq0wvcL.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs → ComponentConfigurationPage-uTMkLI60.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs.map → ComponentConfigurationPage-uTMkLI60.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs → EditConfigurationPage-B2HhCh-b.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs.map → EditConfigurationPage-B2HhCh-b.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js → EditConfigurationPage-BFpQwwbc.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js.map → EditConfigurationPage-BFpQwwbc.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-Bm8lgcm6.mjs → EditViewPage-BVIrgjyG.mjs} +4 -4
- package/dist/_chunks/EditViewPage-BVIrgjyG.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-CzOT5Kpj.js → EditViewPage-CXXue16T.js} +5 -7
- package/dist/_chunks/EditViewPage-CXXue16T.js.map +1 -0
- package/dist/_chunks/{Field-Dlh0uGnL.mjs → Field-0_2h1vuK.mjs} +303 -294
- package/dist/_chunks/Field-0_2h1vuK.mjs.map +1 -0
- package/dist/_chunks/{Field-Caef4JjM.js → Field-ZgzKlgxR.js} +363 -355
- package/dist/_chunks/Field-ZgzKlgxR.js.map +1 -0
- package/dist/_chunks/{Form-EnaQL_6L.mjs → Form-B7TUnQDd.mjs} +14 -14
- package/dist/_chunks/Form-B7TUnQDd.mjs.map +1 -0
- package/dist/_chunks/{Form-BzuAjtRq.js → Form-DgTc2qkx.js} +14 -15
- package/dist/_chunks/Form-DgTc2qkx.js.map +1 -0
- package/dist/_chunks/{History-C17LiyRg.js → History-DtHjQuqM.js} +28 -40
- package/dist/_chunks/History-DtHjQuqM.js.map +1 -0
- package/dist/_chunks/{History-D6sbCJvo.mjs → History-Dug_4HIA.mjs} +28 -39
- package/dist/_chunks/History-Dug_4HIA.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-Dks5SX6f.js → ListConfigurationPage-BuSdTjfa.js} +17 -19
- package/dist/_chunks/ListConfigurationPage-BuSdTjfa.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-Ce4qs7qE.mjs → ListConfigurationPage-CmEeNg6T.mjs} +14 -14
- package/dist/_chunks/ListConfigurationPage-CmEeNg6T.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-BwrZrPsh.js → ListViewPage-CExWwa4S.js} +24 -37
- package/dist/_chunks/ListViewPage-CExWwa4S.js.map +1 -0
- package/dist/_chunks/{ListViewPage-Be7S5aKL.mjs → ListViewPage-Dsoa3wEA.mjs} +21 -33
- package/dist/_chunks/ListViewPage-Dsoa3wEA.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-Cu5r1-JT.js → NoContentTypePage-DCUL8gVi.js} +5 -5
- package/dist/_chunks/NoContentTypePage-DCUL8gVi.js.map +1 -0
- package/dist/_chunks/{NoContentTypePage-CIPmYQMm.mjs → NoContentTypePage-Dh38hBXB.mjs} +7 -7
- package/dist/_chunks/NoContentTypePage-Dh38hBXB.mjs.map +1 -0
- package/dist/_chunks/{NoPermissionsPage-C-j6TEUF.js → NoPermissionsPage-BK-XCpIy.js} +4 -5
- package/dist/_chunks/NoPermissionsPage-BK-XCpIy.js.map +1 -0
- package/dist/_chunks/{NoPermissionsPage-DhJ7LYrr.mjs → NoPermissionsPage-Dt2O40ey.mjs} +5 -6
- package/dist/_chunks/NoPermissionsPage-Dt2O40ey.mjs.map +1 -0
- package/dist/_chunks/{Relations-Czs-uZ-s.js → Relations-CNypkp-g.js} +66 -59
- package/dist/_chunks/Relations-CNypkp-g.js.map +1 -0
- package/dist/_chunks/{Relations-CY7AtkDA.mjs → Relations-DZyjWZHl.mjs} +62 -54
- package/dist/_chunks/Relations-DZyjWZHl.mjs.map +1 -0
- package/dist/_chunks/{index-DNVx8ssZ.mjs → index-B3c-4it4.mjs} +54 -41
- package/dist/_chunks/index-B3c-4it4.mjs.map +1 -0
- package/dist/_chunks/{index-X_2tafck.js → index-DFK7LwDW.js} +59 -47
- package/dist/_chunks/index-DFK7LwDW.js.map +1 -0
- package/dist/_chunks/{layout-Dnh0PNp9.mjs → layout-B5cm7cZj.mjs} +10 -10
- package/dist/_chunks/layout-B5cm7cZj.mjs.map +1 -0
- package/dist/_chunks/{layout-dBc7wN7L.js → layout-DLih5-_W.js} +11 -13
- package/dist/_chunks/layout-DLih5-_W.js.map +1 -0
- package/dist/_chunks/{relations-Dx7tMKJN.mjs → relations-BZkrMa2z.mjs} +2 -2
- package/dist/_chunks/{relations-Dx7tMKJN.mjs.map → relations-BZkrMa2z.mjs.map} +1 -1
- package/dist/_chunks/{relations-4pHtBrHJ.js → relations-CTvkuINQ.js} +2 -2
- package/dist/_chunks/{relations-4pHtBrHJ.js.map → relations-CTvkuINQ.js.map} +1 -1
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -1
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/hooks/useDocumentLayout.d.ts +1 -1
- package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
- package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +8 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +48 -54
- package/dist/admin/src/utils/api.d.ts +6 -7
- package/dist/server/index.js +333 -327
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +340 -334
- 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/validation/index.d.ts +1 -1
- package/dist/server/src/history/services/history.d.ts +2 -4
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/index.d.ts +6 -2
- package/dist/server/src/history/services/index.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts +9 -0
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -0
- package/dist/server/src/history/services/utils.d.ts +41 -9
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/history/utils.d.ts +6 -2
- package/dist/server/src/history/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +11 -11
- package/dist/server/src/services/document-manager.d.ts +12 -11
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +11 -11
- package/dist/shared/contracts/collection-types.d.ts +3 -1
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/package.json +10 -11
- package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
- package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-Bm8lgcm6.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-CzOT5Kpj.js.map +0 -1
- package/dist/_chunks/Field-Caef4JjM.js.map +0 -1
- package/dist/_chunks/Field-Dlh0uGnL.mjs.map +0 -1
- package/dist/_chunks/Form-BzuAjtRq.js.map +0 -1
- package/dist/_chunks/Form-EnaQL_6L.mjs.map +0 -1
- package/dist/_chunks/History-C17LiyRg.js.map +0 -1
- package/dist/_chunks/History-D6sbCJvo.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Ce4qs7qE.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Dks5SX6f.js.map +0 -1
- package/dist/_chunks/ListViewPage-Be7S5aKL.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BwrZrPsh.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-CIPmYQMm.mjs.map +0 -1
- package/dist/_chunks/NoContentTypePage-Cu5r1-JT.js.map +0 -1
- package/dist/_chunks/NoPermissionsPage-C-j6TEUF.js.map +0 -1
- package/dist/_chunks/NoPermissionsPage-DhJ7LYrr.mjs.map +0 -1
- package/dist/_chunks/Relations-CY7AtkDA.mjs.map +0 -1
- package/dist/_chunks/Relations-Czs-uZ-s.js.map +0 -1
- package/dist/_chunks/index-DNVx8ssZ.mjs.map +0 -1
- package/dist/_chunks/index-X_2tafck.js.map +0 -1
- package/dist/_chunks/layout-Dnh0PNp9.mjs.map +0 -1
- package/dist/_chunks/layout-dBc7wN7L.js.map +0 -1
package/dist/admin/index.mjs
CHANGED
@@ -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
|
*/
|
@@ -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,5 +1,6 @@
|
|
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';
|
4
5
|
interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
5
6
|
type: 'relation';
|
@@ -19,8 +20,12 @@ interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
|
|
19
20
|
* they wish to do so.
|
20
21
|
*/
|
21
22
|
declare const RelationsField: React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>;
|
22
|
-
declare const FlexWrapper: import("styled-components").
|
23
|
-
|
24
|
-
|
23
|
+
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
|
+
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
25
|
+
}, never>> & Omit<FlexComponent, keyof React.Component<any, {}, any>>;
|
26
|
+
declare const DisconnectButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
27
|
+
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
|
+
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
29
|
+
}, 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>>;
|
25
30
|
export { RelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
|
26
31
|
export type { RelationsFieldProps };
|
@@ -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").BaseButtonProps<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").BaseButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof React.Component<any, {}, any>>;
|
59
13
|
export { EditorLayout, ExpandButton };
|
60
14
|
export type { EditorLayoutProps };
|
@@ -1,55 +1,49 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
export declare const CustomIconButton: import("styled-components").
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
direction?: import("csstype").Property.FlexDirection | undefined;
|
51
|
-
gap?: any;
|
52
|
-
inline?: boolean | undefined;
|
53
|
-
justifyContent?: import("csstype").Property.JustifyContent | undefined;
|
54
|
-
wrap?: import("csstype").Property.FlexWrap | undefined;
|
55
|
-
} & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
2
|
+
export declare const CustomIconButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<(Omit<Omit<import("@strapi/design-system").ChildrenWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
3
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
4
|
+
}) | (Omit<Omit<import("@strapi/design-system").ChildrenWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
5
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
6
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
7
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
8
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
9
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
10
|
+
}), import("styled-components/dist/types").BaseObject>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: (import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithAriaLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithAriaLabel<C>>) & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
|
11
|
+
export declare const CustomLinkIconButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<(Omit<Omit<import("@strapi/design-system").ChildrenWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
12
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
13
|
+
}) | (Omit<Omit<import("@strapi/design-system").ChildrenWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
14
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
15
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
16
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
17
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
18
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
19
|
+
}), import("styled-components/dist/types").BaseObject>, import("styled-components/dist/types").BaseObject>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<(Omit<Omit<import("@strapi/design-system").ChildrenWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
20
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
21
|
+
}) | (Omit<Omit<import("@strapi/design-system").ChildrenWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
22
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
23
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
24
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
25
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
26
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
27
|
+
}), import("styled-components/dist/types").BaseObject>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: (import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithAriaLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithAriaLabel<C>>) & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
28
|
+
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
|
+
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
30
|
+
}, 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
|
+
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
32
|
+
}, 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").Substitute<(Omit<Omit<import("@strapi/design-system").ChildrenWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
34
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
35
|
+
}) | (Omit<Omit<import("@strapi/design-system").ChildrenWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
36
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
37
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
38
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
39
|
+
}) | (Omit<Omit<import("@strapi/design-system").IconWithAriaLabel<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
|
40
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
41
|
+
}), import("styled-components/dist/types").BaseObject>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">(props: (import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").ChildrenWithAriaLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithLabel<C>> | import("react").PropsWithoutRef<import("@strapi/design-system").IconWithAriaLabel<C>>) & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
|
42
|
+
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
|
+
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
44
|
+
}, 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"> & {
|
45
|
+
ref?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
46
|
+
}, never>> & Omit<import("@strapi/design-system").FlexComponent, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
|
47
|
+
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"> & {
|
48
|
+
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
49
|
+
}, 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,7 +1,6 @@
|
|
1
1
|
import { SerializedError } from '@reduxjs/toolkit';
|
2
2
|
import { BaseQueryFn } from '@reduxjs/toolkit/query';
|
3
|
-
import { ApiError } from '@strapi/admin/strapi-admin';
|
4
|
-
import { type AxiosRequestConfig } from 'axios';
|
3
|
+
import { ApiError, type FetchOptions } from '@strapi/admin/strapi-admin';
|
5
4
|
interface Query {
|
6
5
|
plugins?: Record<string, unknown>;
|
7
6
|
_q?: string;
|
@@ -22,9 +21,9 @@ type TransformedQuery<TQuery extends Query> = Omit<TQuery, 'plugins'> & {
|
|
22
21
|
declare const buildValidParams: <TQuery extends Query>(query: TQuery) => TransformedQuery<TQuery>;
|
23
22
|
export interface QueryArguments {
|
24
23
|
url: string;
|
25
|
-
method?:
|
26
|
-
data?:
|
27
|
-
config?:
|
24
|
+
method?: string;
|
25
|
+
data?: unknown;
|
26
|
+
config?: FetchOptions;
|
28
27
|
}
|
29
28
|
export interface UnknownApiError {
|
30
29
|
name: 'UnknownError';
|
@@ -33,6 +32,6 @@ export interface UnknownApiError {
|
|
33
32
|
status?: number;
|
34
33
|
}
|
35
34
|
export type BaseQueryError = ApiError | UnknownApiError;
|
36
|
-
declare const
|
35
|
+
declare const fetchBaseQuery: () => BaseQueryFn<string | QueryArguments, unknown, BaseQueryError>;
|
37
36
|
declare const isBaseQueryError: (error: BaseQueryError | SerializedError) => error is BaseQueryError;
|
38
|
-
export {
|
37
|
+
export { fetchBaseQuery, isBaseQueryError, buildValidParams };
|