@strapi/content-type-builder 5.46.0 → 5.46.1

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.
@@ -2,12 +2,20 @@
2
2
  /**
3
3
  * Translates and fades in from a specified direction.
4
4
  */
5
- export declare const AnimatedBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
5
+ export declare const AnimatedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
6
6
  children?: import("react").ReactNode;
7
7
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
8
8
  ref?: any;
9
9
  }, "ref"> & {
10
10
  ref?: any;
11
- }, {
11
+ }, "$direction"> & {
12
12
  $direction?: "left" | "up" | undefined;
13
- }>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
13
+ }, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
14
+ children?: import("react").ReactNode;
15
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
16
+ ref?: any;
17
+ }, "ref"> & {
18
+ ref?: any;
19
+ }, "$direction"> & {
20
+ $direction?: "left" | "up" | undefined;
21
+ }, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
@@ -26,13 +26,19 @@ interface ContentProps extends React.ComponentPropsWithoutRef<typeof Box> {
26
26
  export declare const Input: {
27
27
  Root: ({ children, isLoading, ...props }: InputRootProps) => import("react/jsx-runtime").JSX.Element;
28
28
  Header: ({ children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
29
- HeaderItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
29
+ HeaderItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
30
30
  children?: import("react").ReactNode;
31
31
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
32
32
  ref?: any;
33
33
  }, "ref"> & {
34
34
  ref?: any;
35
- }, never>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
35
+ }, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
36
+ children?: import("react").ReactNode;
37
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
38
+ ref?: any;
39
+ }, "ref"> & {
40
+ ref?: any;
41
+ }, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
36
42
  Attachments: ({ children, gap, ...props }: InputAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
37
43
  Content: ({ children, disclaimer, error, ...props }: ContentProps) => import("react/jsx-runtime").JSX.Element;
38
44
  Actions: ({ children }: {
@@ -1,8 +1,14 @@
1
1
  /// <reference types="react" />
2
- export declare const OptionBoxWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
2
+ export declare const OptionBoxWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
3
3
  children?: import("react").ReactNode;
4
4
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
5
5
  ref?: any;
6
6
  }, "ref"> & {
7
7
  ref?: any;
8
- }, never>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
8
+ }, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
9
+ children?: import("react").ReactNode;
10
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
11
+ ref?: any;
12
+ }, "ref"> & {
13
+ ref?: any;
14
+ }, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
@@ -2,12 +2,17 @@
2
2
  import type { AnyAttribute, Component, ContentType } from '../types';
3
3
  import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
4
4
  import type { UID } from '@strapi/types';
5
- export declare const GridWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
5
+ export declare const GridWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
6
6
  ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
7
- }, {
7
+ }, "$isOverlay" | "$isDragging"> & {
8
8
  $isOverlay?: boolean | undefined;
9
9
  $isDragging?: boolean | undefined;
10
- }>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: import("react").PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
10
+ }, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
11
+ ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
12
+ }, "$isOverlay" | "$isDragging"> & {
13
+ $isOverlay?: boolean | undefined;
14
+ $isDragging?: boolean | undefined;
15
+ }, never>>> & string & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: import("react").PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
11
16
  export type AttributeRowProps = {
12
17
  item: {
13
18
  id: string;
@@ -1,11 +1,20 @@
1
1
  /// <reference types="react" />
2
- export declare const ComponentRow: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
2
+ export declare const ComponentRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
3
3
  children?: import("react").ReactNode;
4
4
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
5
5
  ref?: any;
6
6
  }, "ref"> & {
7
7
  ref?: any;
8
- }, {
8
+ }, "$isFromDynamicZone" | "$isChildOfDynamicZone"> & {
9
9
  $isFromDynamicZone?: boolean | undefined;
10
10
  $isChildOfDynamicZone?: boolean | undefined;
11
- }>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
11
+ }, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
12
+ children?: import("react").ReactNode;
13
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
14
+ ref?: any;
15
+ }, "ref"> & {
16
+ ref?: any;
17
+ }, "$isFromDynamicZone" | "$isChildOfDynamicZone"> & {
18
+ $isFromDynamicZone?: boolean | undefined;
19
+ $isChildOfDynamicZone?: boolean | undefined;
20
+ }, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
2
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
3
3
  ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
4
- }, never>> & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: import("react").PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
4
+ }, never> & Partial<Pick<Omit<Omit<import("@strapi/design-system").FlexProps<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
+ }, never>>> & string & Omit<(<C extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: import("react").PropsWithoutRef<import("@strapi/design-system").FlexProps<C>> & import("react").RefAttributes<unknown>) => import("react").ReactNode), keyof import("react").Component<any, {}, any>>;
5
7
  export { Wrapper };
@@ -1,13 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import type { Component, ContentType } from '../types';
3
3
  import type { UID } from '@strapi/types';
4
- export declare const ListGrid: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
4
+ export declare const ListGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
5
5
  children?: import("react").ReactNode;
6
6
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
7
7
  ref?: any;
8
8
  }, "ref"> & {
9
9
  ref?: any;
10
- }, never>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
10
+ }, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
11
+ children?: import("react").ReactNode;
12
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
13
+ ref?: any;
14
+ }, "ref"> & {
15
+ ref?: any;
16
+ }, never>>> & string & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof import("react").Component<any, {}, any>>;
11
17
  type ListProps = {
12
18
  addComponentToDZ?: () => void;
13
19
  firstLoopComponentUid?: UID.Component | null;
@@ -1,22 +1,38 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxComponent, FlexComponent } from '@strapi/design-system';
3
- declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
3
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
4
4
  children?: import("react").ReactNode;
5
5
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
6
6
  ref?: any;
7
7
  }, "ref"> & {
8
8
  ref?: any;
9
- }, never>> & Omit<BoxComponent, keyof import("react").Component<any, {}, any>>;
10
- declare const IconWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("@strapi/design-system").TransientBoxProps & {
9
+ }, never> & Partial<Pick<Omit<import("@strapi/design-system").TransientBoxProps & {
11
10
  children?: import("react").ReactNode;
12
11
  } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
13
12
  ref?: any;
14
13
  }, "ref"> & {
15
14
  ref?: any;
16
- }, {
15
+ }, never>>> & string & Omit<BoxComponent, keyof import("react").Component<any, {}, any>>;
16
+ declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
17
+ children?: import("react").ReactNode;
18
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
19
+ ref?: any;
20
+ }, "ref"> & {
21
+ ref?: any;
22
+ }, "$isSelected"> & {
23
+ $isSelected: boolean;
24
+ }, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
25
+ children?: import("react").ReactNode;
26
+ } & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
27
+ ref?: any;
28
+ }, "ref"> & {
29
+ ref?: any;
30
+ }, "$isSelected"> & {
17
31
  $isSelected: boolean;
18
- }>> & Omit<BoxComponent<"button">, keyof import("react").Component<any, {}, any>>;
19
- declare const InfosWrapper: 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"> & {
32
+ }, never>>> & string & Omit<BoxComponent<"button">, keyof import("react").Component<any, {}, any>>;
33
+ declare const InfosWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
34
+ ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
35
+ }, never> & Partial<Pick<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
20
36
  ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
21
- }, never>> & Omit<FlexComponent, keyof import("react").Component<any, {}, any>>;
37
+ }, never>>> & string & Omit<FlexComponent, keyof import("react").Component<any, {}, any>>;
22
38
  export { IconWrapper, InfosWrapper, Wrapper };
@@ -11,7 +11,7 @@ export declare const formatCondition: (condition: any, availableFields: Array<{
11
11
  }>, attributeName: string) => string;
12
12
  export declare const getAvailableConditionFields: (attributes: AnyAttribute[], currentFieldName: string) => {
13
13
  name: string;
14
- type: "string" | "boolean" | "time" | "media" | "text" | "date" | "email" | "password" | "decimal" | "component" | "relation" | "biginteger" | "blocks" | "datetime" | "dynamiczone" | "enumeration" | "float" | "integer" | "json" | "richtext" | "timestamp" | "uid";
14
+ type: "string" | "boolean" | "time" | "text" | "media" | "date" | "email" | "password" | "decimal" | "component" | "relation" | "biginteger" | "blocks" | "datetime" | "dynamiczone" | "enumeration" | "float" | "integer" | "json" | "richtext" | "timestamp" | "uid";
15
15
  enum: string[] | undefined;
16
16
  }[];
17
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/content-type-builder",
3
- "version": "5.46.0",
3
+ "version": "5.46.1",
4
4
  "description": "Create and manage content types",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -73,9 +73,9 @@
73
73
  "@reduxjs/toolkit": "1.9.7",
74
74
  "@sindresorhus/slugify": "1.1.0",
75
75
  "@strapi/design-system": "2.2.0",
76
- "@strapi/generators": "5.46.0",
76
+ "@strapi/generators": "5.46.1",
77
77
  "@strapi/icons": "2.2.0",
78
- "@strapi/utils": "5.46.0",
78
+ "@strapi/utils": "5.46.1",
79
79
  "ai": "5.0.52",
80
80
  "date-fns": "2.30.0",
81
81
  "fs-extra": "11.3.4",
@@ -93,8 +93,8 @@
93
93
  "zod": "3.25.67"
94
94
  },
95
95
  "devDependencies": {
96
- "@strapi/admin": "5.46.0",
97
- "@strapi/types": "5.46.0",
96
+ "@strapi/admin": "5.46.1",
97
+ "@strapi/types": "5.46.1",
98
98
  "@testing-library/dom": "10.4.1",
99
99
  "@testing-library/react": "16.3.0",
100
100
  "@testing-library/user-event": "14.6.1",
@@ -107,7 +107,7 @@
107
107
  "react-dom": "18.3.1",
108
108
  "react-query": "3.39.3",
109
109
  "react-router-dom": "6.30.3",
110
- "styled-components": "6.1.8"
110
+ "styled-components": "6.4.1"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@strapi/admin": "^5.0.0",