@webbio/strapi-plugin-page-builder 0.8.5-platform → 0.9.1-platform
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/admin/src/components/PlatformFilteredSelectField/Multi/index.tsx +19 -7
- package/admin/src/components/PlatformFilteredSelectField/hooks/useRelationLoad.tsx +4 -2
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/RelationInput.tsx +689 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/RelationInputDataManager.tsx +6 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/useRelation.ts +170 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/utils/getRelationLink.ts +5 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/utils/normalizeRelations.ts +52 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/constants/attributes.ts +3 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/useDragAndDrop.ts +253 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/useKeyboardDragAndDrop.ts +96 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/usePrev.ts +11 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/dragAndDrop.ts +8 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/paths.ts +29 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/refs.ts +19 -0
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/translations.ts +3 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/collection-types.ts +300 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/components.ts +72 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/content-types.ts +116 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/index.ts +8 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/init.ts +22 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/relations.ts +80 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/review-workflows.ts +88 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/single-types.ts +112 -0
- package/admin/src/components/StrapiCore/content-manager/shared/contracts/uid.ts +48 -0
- package/admin/src/components/StrapiCore/content-manager/shared/index.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.server.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EntityService, Common } from '@strapi/types';
|
|
2
|
+
|
|
3
|
+
import { errors } from '@strapi/utils';
|
|
4
|
+
|
|
5
|
+
type Entity = EntityService.Result<Common.UID.Schema>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* GET /single-types/:model
|
|
9
|
+
*/
|
|
10
|
+
export declare namespace Find {
|
|
11
|
+
export interface Request {
|
|
12
|
+
body: {};
|
|
13
|
+
query: {
|
|
14
|
+
locale: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface Params {
|
|
19
|
+
model: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface Response {
|
|
23
|
+
data: Entity;
|
|
24
|
+
error?: errors.ApplicationError;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* PUT /single-types/:model
|
|
30
|
+
*/
|
|
31
|
+
export declare namespace CreateOrUpdate {
|
|
32
|
+
export interface Request {
|
|
33
|
+
body: Entity;
|
|
34
|
+
query: {
|
|
35
|
+
plugins: {
|
|
36
|
+
i18n: {
|
|
37
|
+
locale: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface Response {
|
|
44
|
+
data: Entity;
|
|
45
|
+
error?: errors.ApplicationError;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* DELETE /single-types/:model
|
|
51
|
+
*/
|
|
52
|
+
export declare namespace Delete {
|
|
53
|
+
export interface Request {
|
|
54
|
+
body: {};
|
|
55
|
+
query: {
|
|
56
|
+
locale: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface Response {
|
|
61
|
+
data: Entity;
|
|
62
|
+
error?: errors.ApplicationError;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* POST /single-types/:model/actions/publish
|
|
68
|
+
*/
|
|
69
|
+
export declare namespace Publish {
|
|
70
|
+
export interface Request {
|
|
71
|
+
body: {};
|
|
72
|
+
query: {
|
|
73
|
+
locale: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface Response {
|
|
78
|
+
data: Entity;
|
|
79
|
+
error?: errors.ApplicationError;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* POST /single-types/:model/actions/unpublish
|
|
85
|
+
*/
|
|
86
|
+
export declare namespace UnPublish {
|
|
87
|
+
export interface Request {
|
|
88
|
+
body: {};
|
|
89
|
+
query: {
|
|
90
|
+
locale: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface Response {
|
|
94
|
+
data: Entity;
|
|
95
|
+
error?: errors.ApplicationError;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* GET /single-types/:model/actions/countDraftRelations
|
|
101
|
+
*/
|
|
102
|
+
export declare namespace CountDraftRelations {
|
|
103
|
+
export interface Request {
|
|
104
|
+
body: {};
|
|
105
|
+
query: {};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface Response {
|
|
109
|
+
data: number;
|
|
110
|
+
error?: errors.ApplicationError;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EntityService, Common } from '@strapi/types';
|
|
2
|
+
|
|
3
|
+
import { errors } from '@strapi/utils';
|
|
4
|
+
|
|
5
|
+
type Entity = EntityService.Result<Common.UID.Schema>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* POST /uid/generate
|
|
9
|
+
*/
|
|
10
|
+
export declare namespace GenerateUID {
|
|
11
|
+
export interface Request {
|
|
12
|
+
body: {
|
|
13
|
+
contentTypeUID: string;
|
|
14
|
+
data: Entity;
|
|
15
|
+
field: string;
|
|
16
|
+
};
|
|
17
|
+
query: {};
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
data: string;
|
|
21
|
+
error?: errors.ApplicationError | errors.YupValidationError;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* POST /uid/check-availability
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace CheckUIDAvailability {
|
|
29
|
+
export interface Request {
|
|
30
|
+
body: {
|
|
31
|
+
contentTypeUID: string;
|
|
32
|
+
field: string;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
query: {};
|
|
36
|
+
}
|
|
37
|
+
export type Response =
|
|
38
|
+
| {
|
|
39
|
+
isAvailable: boolean;
|
|
40
|
+
suggestion: string | null;
|
|
41
|
+
error?: never;
|
|
42
|
+
}
|
|
43
|
+
| {
|
|
44
|
+
isAvailable?: never;
|
|
45
|
+
suggesiton?: never;
|
|
46
|
+
error?: errors.ApplicationError | errors.YupValidationError;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Contracts from './contracts';
|