@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.
Files changed (118) hide show
  1. package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
  2. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
  3. package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
  4. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
  5. package/dist/_chunks/{ComponentConfigurationPage-43KmCNQE.js → ComponentConfigurationPage-DMq0wvcL.js} +3 -3
  6. package/dist/_chunks/{ComponentConfigurationPage-43KmCNQE.js.map → ComponentConfigurationPage-DMq0wvcL.js.map} +1 -1
  7. package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs → ComponentConfigurationPage-uTMkLI60.mjs} +3 -3
  8. package/dist/_chunks/{ComponentConfigurationPage--2aLCv-G.mjs.map → ComponentConfigurationPage-uTMkLI60.mjs.map} +1 -1
  9. package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs → EditConfigurationPage-B2HhCh-b.mjs} +3 -3
  10. package/dist/_chunks/{EditConfigurationPage-CUcGHHvQ.mjs.map → EditConfigurationPage-B2HhCh-b.mjs.map} +1 -1
  11. package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js → EditConfigurationPage-BFpQwwbc.js} +3 -3
  12. package/dist/_chunks/{EditConfigurationPage-BfFzJ4Br.js.map → EditConfigurationPage-BFpQwwbc.js.map} +1 -1
  13. package/dist/_chunks/{EditViewPage-Bm8lgcm6.mjs → EditViewPage-BVIrgjyG.mjs} +4 -4
  14. package/dist/_chunks/EditViewPage-BVIrgjyG.mjs.map +1 -0
  15. package/dist/_chunks/{EditViewPage-CzOT5Kpj.js → EditViewPage-CXXue16T.js} +5 -7
  16. package/dist/_chunks/EditViewPage-CXXue16T.js.map +1 -0
  17. package/dist/_chunks/{Field-Dlh0uGnL.mjs → Field-0_2h1vuK.mjs} +303 -294
  18. package/dist/_chunks/Field-0_2h1vuK.mjs.map +1 -0
  19. package/dist/_chunks/{Field-Caef4JjM.js → Field-ZgzKlgxR.js} +363 -355
  20. package/dist/_chunks/Field-ZgzKlgxR.js.map +1 -0
  21. package/dist/_chunks/{Form-EnaQL_6L.mjs → Form-B7TUnQDd.mjs} +14 -14
  22. package/dist/_chunks/Form-B7TUnQDd.mjs.map +1 -0
  23. package/dist/_chunks/{Form-BzuAjtRq.js → Form-DgTc2qkx.js} +14 -15
  24. package/dist/_chunks/Form-DgTc2qkx.js.map +1 -0
  25. package/dist/_chunks/{History-C17LiyRg.js → History-DtHjQuqM.js} +28 -40
  26. package/dist/_chunks/History-DtHjQuqM.js.map +1 -0
  27. package/dist/_chunks/{History-D6sbCJvo.mjs → History-Dug_4HIA.mjs} +28 -39
  28. package/dist/_chunks/History-Dug_4HIA.mjs.map +1 -0
  29. package/dist/_chunks/{ListConfigurationPage-Dks5SX6f.js → ListConfigurationPage-BuSdTjfa.js} +17 -19
  30. package/dist/_chunks/ListConfigurationPage-BuSdTjfa.js.map +1 -0
  31. package/dist/_chunks/{ListConfigurationPage-Ce4qs7qE.mjs → ListConfigurationPage-CmEeNg6T.mjs} +14 -14
  32. package/dist/_chunks/ListConfigurationPage-CmEeNg6T.mjs.map +1 -0
  33. package/dist/_chunks/{ListViewPage-BwrZrPsh.js → ListViewPage-CExWwa4S.js} +24 -37
  34. package/dist/_chunks/ListViewPage-CExWwa4S.js.map +1 -0
  35. package/dist/_chunks/{ListViewPage-Be7S5aKL.mjs → ListViewPage-Dsoa3wEA.mjs} +21 -33
  36. package/dist/_chunks/ListViewPage-Dsoa3wEA.mjs.map +1 -0
  37. package/dist/_chunks/{NoContentTypePage-Cu5r1-JT.js → NoContentTypePage-DCUL8gVi.js} +5 -5
  38. package/dist/_chunks/NoContentTypePage-DCUL8gVi.js.map +1 -0
  39. package/dist/_chunks/{NoContentTypePage-CIPmYQMm.mjs → NoContentTypePage-Dh38hBXB.mjs} +7 -7
  40. package/dist/_chunks/NoContentTypePage-Dh38hBXB.mjs.map +1 -0
  41. package/dist/_chunks/{NoPermissionsPage-C-j6TEUF.js → NoPermissionsPage-BK-XCpIy.js} +4 -5
  42. package/dist/_chunks/NoPermissionsPage-BK-XCpIy.js.map +1 -0
  43. package/dist/_chunks/{NoPermissionsPage-DhJ7LYrr.mjs → NoPermissionsPage-Dt2O40ey.mjs} +5 -6
  44. package/dist/_chunks/NoPermissionsPage-Dt2O40ey.mjs.map +1 -0
  45. package/dist/_chunks/{Relations-Czs-uZ-s.js → Relations-CNypkp-g.js} +66 -59
  46. package/dist/_chunks/Relations-CNypkp-g.js.map +1 -0
  47. package/dist/_chunks/{Relations-CY7AtkDA.mjs → Relations-DZyjWZHl.mjs} +62 -54
  48. package/dist/_chunks/Relations-DZyjWZHl.mjs.map +1 -0
  49. package/dist/_chunks/{index-DNVx8ssZ.mjs → index-B3c-4it4.mjs} +54 -41
  50. package/dist/_chunks/index-B3c-4it4.mjs.map +1 -0
  51. package/dist/_chunks/{index-X_2tafck.js → index-DFK7LwDW.js} +59 -47
  52. package/dist/_chunks/index-DFK7LwDW.js.map +1 -0
  53. package/dist/_chunks/{layout-Dnh0PNp9.mjs → layout-B5cm7cZj.mjs} +10 -10
  54. package/dist/_chunks/layout-B5cm7cZj.mjs.map +1 -0
  55. package/dist/_chunks/{layout-dBc7wN7L.js → layout-DLih5-_W.js} +11 -13
  56. package/dist/_chunks/layout-DLih5-_W.js.map +1 -0
  57. package/dist/_chunks/{relations-Dx7tMKJN.mjs → relations-BZkrMa2z.mjs} +2 -2
  58. package/dist/_chunks/{relations-Dx7tMKJN.mjs.map → relations-BZkrMa2z.mjs.map} +1 -1
  59. package/dist/_chunks/{relations-4pHtBrHJ.js → relations-CTvkuINQ.js} +2 -2
  60. package/dist/_chunks/{relations-4pHtBrHJ.js.map → relations-CTvkuINQ.js.map} +1 -1
  61. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -1
  62. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -1
  63. package/dist/admin/index.js +1 -1
  64. package/dist/admin/index.mjs +1 -1
  65. package/dist/admin/src/hooks/useDocumentLayout.d.ts +1 -1
  66. package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
  67. package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
  68. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +8 -3
  69. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
  70. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +48 -54
  71. package/dist/admin/src/utils/api.d.ts +6 -7
  72. package/dist/server/index.js +333 -327
  73. package/dist/server/index.js.map +1 -1
  74. package/dist/server/index.mjs +340 -334
  75. package/dist/server/index.mjs.map +1 -1
  76. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  77. package/dist/server/src/controllers/validation/index.d.ts +1 -1
  78. package/dist/server/src/history/services/history.d.ts +2 -4
  79. package/dist/server/src/history/services/history.d.ts.map +1 -1
  80. package/dist/server/src/history/services/index.d.ts +6 -2
  81. package/dist/server/src/history/services/index.d.ts.map +1 -1
  82. package/dist/server/src/history/services/lifecycles.d.ts +9 -0
  83. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -0
  84. package/dist/server/src/history/services/utils.d.ts +41 -9
  85. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  86. package/dist/server/src/history/utils.d.ts +6 -2
  87. package/dist/server/src/history/utils.d.ts.map +1 -1
  88. package/dist/server/src/index.d.ts +11 -11
  89. package/dist/server/src/services/document-manager.d.ts +12 -11
  90. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  91. package/dist/server/src/services/index.d.ts +11 -11
  92. package/dist/shared/contracts/collection-types.d.ts +3 -1
  93. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  94. package/package.json +10 -11
  95. package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
  96. package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
  97. package/dist/_chunks/EditViewPage-Bm8lgcm6.mjs.map +0 -1
  98. package/dist/_chunks/EditViewPage-CzOT5Kpj.js.map +0 -1
  99. package/dist/_chunks/Field-Caef4JjM.js.map +0 -1
  100. package/dist/_chunks/Field-Dlh0uGnL.mjs.map +0 -1
  101. package/dist/_chunks/Form-BzuAjtRq.js.map +0 -1
  102. package/dist/_chunks/Form-EnaQL_6L.mjs.map +0 -1
  103. package/dist/_chunks/History-C17LiyRg.js.map +0 -1
  104. package/dist/_chunks/History-D6sbCJvo.mjs.map +0 -1
  105. package/dist/_chunks/ListConfigurationPage-Ce4qs7qE.mjs.map +0 -1
  106. package/dist/_chunks/ListConfigurationPage-Dks5SX6f.js.map +0 -1
  107. package/dist/_chunks/ListViewPage-Be7S5aKL.mjs.map +0 -1
  108. package/dist/_chunks/ListViewPage-BwrZrPsh.js.map +0 -1
  109. package/dist/_chunks/NoContentTypePage-CIPmYQMm.mjs.map +0 -1
  110. package/dist/_chunks/NoContentTypePage-Cu5r1-JT.js.map +0 -1
  111. package/dist/_chunks/NoPermissionsPage-C-j6TEUF.js.map +0 -1
  112. package/dist/_chunks/NoPermissionsPage-DhJ7LYrr.mjs.map +0 -1
  113. package/dist/_chunks/Relations-CY7AtkDA.mjs.map +0 -1
  114. package/dist/_chunks/Relations-Czs-uZ-s.js.map +0 -1
  115. package/dist/_chunks/index-DNVx8ssZ.mjs.map +0 -1
  116. package/dist/_chunks/index-X_2tafck.js.map +0 -1
  117. package/dist/_chunks/layout-Dnh0PNp9.mjs.map +0 -1
  118. package/dist/_chunks/layout-dBc7wN7L.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { k, J, G, K, f, e } from "../_chunks/index-DNVx8ssZ.mjs";
1
+ import { k, J, G, K, f, e } from "../_chunks/index-B3c-4it4.mjs";
2
2
  import "@strapi/icons";
3
3
  export {
4
4
  k as DocumentRBAC,
@@ -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<Element extends HTMLElement = HTMLElement> = [
26
+ type UseDragAndDropReturn<E extends Element = HTMLElement> = [
27
27
  props: {
28
28
  handlerId: Identifier;
29
29
  isDragging: boolean;
30
- handleKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
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<Element>,
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
- }, Element extends HTMLElement = HTMLElement>(active: boolean, { type, index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity, }: UseDragAndDropOptions<TIndex, TItem>) => UseDragAndDropReturn<Element>;
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.KeyboardEventHandler<HTMLButtonElement>;
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").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
23
- declare const DisconnectButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
24
- declare const LinkEllipsis: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@strapi/design-system").LinkProps & React.RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
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").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "position" | "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "zIndex" | "transition" | "animation" | "textAlign" | "textTransform"> & {
11
- _hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
12
- background?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"colors", "background">;
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").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
3
- export declare const CustomLinkIconButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
4
- export declare const MainButtons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
5
- export declare const MoreButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@strapi/design-system").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
6
- export declare const IconButtonGroupMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
7
- export declare const ExpandButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "position" | "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "zIndex" | "transition" | "animation" | "textAlign" | "textTransform"> & {
8
- _hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
9
- background?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"colors", "background">;
10
- basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
11
- borderColor?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
12
- color?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
13
- flex?: import("csstype").Property.Flex<string | number> | undefined;
14
- fontSize?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
15
- grow?: import("csstype").Property.FlexGrow | undefined;
16
- hasRadius?: boolean | undefined;
17
- hiddenS?: boolean | undefined;
18
- hiddenXS?: boolean | undefined;
19
- padding?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"padding">;
20
- paddingBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
21
- paddingLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
22
- paddingRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
23
- paddingTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
24
- margin?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"margin">;
25
- marginLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
26
- marginBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
27
- marginRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
28
- marginTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
29
- shadow?: keyof import("@strapi/design-system/dist/themes/colors").Shadows | undefined;
30
- shrink?: import("csstype").Property.FlexShrink | undefined;
31
- lineHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
32
- width?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "width">;
33
- minWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
34
- maxWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
35
- height?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "height">;
36
- minHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
37
- maxHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
38
- top?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "top">;
39
- left?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "left">;
40
- bottom?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "bottom">;
41
- right?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "right">;
42
- borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
43
- borderStyle?: import("csstype").Property.BorderStyle | undefined;
44
- borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
45
- children?: import("react").ReactNode;
46
- as?: string | import("react").ComponentType<any> | undefined;
47
- forwardedAs?: string | import("react").ComponentType<any> | undefined;
48
- } & {
49
- alignItems?: import("csstype").Property.AlignItems | undefined;
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?: AxiosRequestConfig['method'];
26
- data?: AxiosRequestConfig['data'];
27
- config?: AxiosRequestConfig;
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 axiosBaseQuery: () => BaseQueryFn<string | QueryArguments, unknown, BaseQueryError>;
35
+ declare const fetchBaseQuery: () => BaseQueryFn<string | QueryArguments, unknown, BaseQueryError>;
37
36
  declare const isBaseQueryError: (error: BaseQueryError | SerializedError) => error is BaseQueryError;
38
- export { axiosBaseQuery, isBaseQueryError, buildValidParams };
37
+ export { fetchBaseQuery, isBaseQueryError, buildValidParams };