payload 3.0.0-beta.50 → 3.0.0-beta.52
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/collections/config/client.d.ts +29 -29
- package/dist/collections/config/defaults.d.ts +5 -5
- package/dist/fields/config/client.d.ts +190 -190
- package/dist/fields/validations.d.ts +4 -4
- package/dist/index.d.ts +121 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +148 -0
- package/dist/index.js.map +1 -1
- package/dist/utilities/dependencies/getDependencies.d.ts +9 -0
- package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -0
- package/dist/utilities/dependencies/getDependencies.js +54 -0
- package/dist/utilities/dependencies/getDependencies.js.map +1 -0
- package/dist/utilities/dependencies/isError.d.ts +5 -0
- package/dist/utilities/dependencies/isError.d.ts.map +1 -0
- package/dist/utilities/dependencies/isError.js +19 -0
- package/dist/utilities/dependencies/isError.js.map +1 -0
- package/dist/utilities/dependencies/realPath.d.ts +4 -0
- package/dist/utilities/dependencies/realPath.d.ts.map +1 -0
- package/dist/utilities/dependencies/realPath.js +23 -0
- package/dist/utilities/dependencies/realPath.js.map +1 -0
- package/dist/utilities/dependencies/resolveFrom.d.ts +2 -0
- package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -0
- package/dist/utilities/dependencies/resolveFrom.js +58 -0
- package/dist/utilities/dependencies/resolveFrom.js.map +1 -0
- package/package.json +7 -7
- package/dist/exports/index.d.ts +0 -122
- package/dist/exports/index.d.ts.map +0 -1
- package/dist/exports/index.js +0 -103
- package/dist/exports/index.js.map +0 -1
|
@@ -15,10 +15,10 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
15
15
|
collection: SanitizedCollectionConfig;
|
|
16
16
|
t: TFunction;
|
|
17
17
|
}) => {
|
|
18
|
-
auth: import("../../
|
|
18
|
+
auth: import("../../index.js").Auth;
|
|
19
19
|
endpoints: false | import("../../config/types.js").Endpoint[];
|
|
20
|
-
fields: import("../../
|
|
21
|
-
upload: import("../../
|
|
20
|
+
fields: import("../../index.js").Field[];
|
|
21
|
+
upload: import("../../index.js").SanitizedUploadConfig;
|
|
22
22
|
versions: import("../../versions/types.js").SanitizedCollectionVersions;
|
|
23
23
|
admin: {
|
|
24
24
|
components: {
|
|
@@ -28,21 +28,21 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
28
28
|
BeforeListTable: import("../../config/types.js").CustomComponent[];
|
|
29
29
|
edit: {
|
|
30
30
|
Description: import("../../config/types.js").EntityDescriptionComponent;
|
|
31
|
-
PreviewButton: import("../../
|
|
32
|
-
PublishButton: import("../../
|
|
33
|
-
SaveButton: import("../../
|
|
34
|
-
SaveDraftButton: import("../../
|
|
31
|
+
PreviewButton: import("../../index.js").CustomPreviewButton;
|
|
32
|
+
PublishButton: import("../../index.js").CustomPublishButton;
|
|
33
|
+
SaveButton: import("../../index.js").CustomSaveButton;
|
|
34
|
+
SaveDraftButton: import("../../index.js").CustomSaveDraftButton;
|
|
35
35
|
};
|
|
36
36
|
views: {
|
|
37
37
|
Edit: import("../../config/types.js").EditViewComponent | {
|
|
38
38
|
API: import("../../config/types.js").EditViewComponent | {
|
|
39
|
-
Tab: import("../../
|
|
39
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
40
40
|
Pill: import("react").ComponentType<{}>;
|
|
41
|
-
condition: import("../../
|
|
41
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
42
42
|
href: string | ((args: {
|
|
43
43
|
apiURL: string;
|
|
44
44
|
collection: SanitizedCollectionConfig;
|
|
45
|
-
global: import("../../
|
|
45
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
46
46
|
id?: string;
|
|
47
47
|
routes: {
|
|
48
48
|
admin: string;
|
|
@@ -67,13 +67,13 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
67
67
|
actions: import("../../config/types.js").CustomComponent<any>[];
|
|
68
68
|
};
|
|
69
69
|
Default: import("../../config/types.js").EditViewComponent | {
|
|
70
|
-
Tab: import("../../
|
|
70
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
71
71
|
Pill: import("react").ComponentType<{}>;
|
|
72
|
-
condition: import("../../
|
|
72
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
73
73
|
href: string | ((args: {
|
|
74
74
|
apiURL: string;
|
|
75
75
|
collection: SanitizedCollectionConfig;
|
|
76
|
-
global: import("../../
|
|
76
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
77
77
|
id?: string;
|
|
78
78
|
routes: {
|
|
79
79
|
admin: string;
|
|
@@ -98,13 +98,13 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
98
98
|
actions: import("../../config/types.js").CustomComponent<any>[];
|
|
99
99
|
};
|
|
100
100
|
LivePreview: import("../../config/types.js").EditViewComponent | {
|
|
101
|
-
Tab: import("../../
|
|
101
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
102
102
|
Pill: import("react").ComponentType<{}>;
|
|
103
|
-
condition: import("../../
|
|
103
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
104
104
|
href: string | ((args: {
|
|
105
105
|
apiURL: string;
|
|
106
106
|
collection: SanitizedCollectionConfig;
|
|
107
|
-
global: import("../../
|
|
107
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
108
108
|
id?: string;
|
|
109
109
|
routes: {
|
|
110
110
|
admin: string;
|
|
@@ -129,13 +129,13 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
129
129
|
actions: import("../../config/types.js").CustomComponent<any>[];
|
|
130
130
|
};
|
|
131
131
|
Version: import("../../config/types.js").EditViewComponent | {
|
|
132
|
-
Tab: import("../../
|
|
132
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
133
133
|
Pill: import("react").ComponentType<{}>;
|
|
134
|
-
condition: import("../../
|
|
134
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
135
135
|
href: string | ((args: {
|
|
136
136
|
apiURL: string;
|
|
137
137
|
collection: SanitizedCollectionConfig;
|
|
138
|
-
global: import("../../
|
|
138
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
139
139
|
id?: string;
|
|
140
140
|
routes: {
|
|
141
141
|
admin: string;
|
|
@@ -160,13 +160,13 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
160
160
|
actions: import("../../config/types.js").CustomComponent<any>[];
|
|
161
161
|
};
|
|
162
162
|
Versions: import("../../config/types.js").EditViewComponent | {
|
|
163
|
-
Tab: import("../../
|
|
163
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
164
164
|
Pill: import("react").ComponentType<{}>;
|
|
165
|
-
condition: import("../../
|
|
165
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
166
166
|
href: string | ((args: {
|
|
167
167
|
apiURL: string;
|
|
168
168
|
collection: SanitizedCollectionConfig;
|
|
169
|
-
global: import("../../
|
|
169
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
170
170
|
id?: string;
|
|
171
171
|
routes: {
|
|
172
172
|
admin: string;
|
|
@@ -192,13 +192,13 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
192
192
|
};
|
|
193
193
|
} | {
|
|
194
194
|
[x: string]: {
|
|
195
|
-
Tab: import("../../
|
|
195
|
+
Tab: import("../../index.js").DocumentTabComponent | {
|
|
196
196
|
Pill: import("react").ComponentType<{}>;
|
|
197
|
-
condition: import("../../
|
|
197
|
+
condition: import("../../index.js").DocumentTabCondition;
|
|
198
198
|
href: string | ((args: {
|
|
199
199
|
apiURL: string;
|
|
200
200
|
collection: SanitizedCollectionConfig;
|
|
201
|
-
global: import("../../
|
|
201
|
+
global: import("../../index.js").SanitizedGlobalConfig;
|
|
202
202
|
id?: string;
|
|
203
203
|
routes: {
|
|
204
204
|
admin: string;
|
|
@@ -242,7 +242,7 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
242
242
|
[x: string]: string;
|
|
243
243
|
};
|
|
244
244
|
hidden: boolean | ((args: {
|
|
245
|
-
user: import("../../
|
|
245
|
+
user: import("../../index.js").ClientUser;
|
|
246
246
|
}) => boolean);
|
|
247
247
|
hideAPIURL: boolean;
|
|
248
248
|
listSearchableFields: string[];
|
|
@@ -256,7 +256,7 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
256
256
|
url: string | ((args: {
|
|
257
257
|
collectionConfig?: SanitizedCollectionConfig;
|
|
258
258
|
data: Record<string, any>;
|
|
259
|
-
globalConfig?: import("../../
|
|
259
|
+
globalConfig?: import("../../index.js").SanitizedGlobalConfig;
|
|
260
260
|
locale: import("../../config/types.js").Locale;
|
|
261
261
|
payload: import("../../index.js").Payload;
|
|
262
262
|
}) => string | Promise<string>);
|
|
@@ -319,7 +319,7 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
319
319
|
};
|
|
320
320
|
access: {
|
|
321
321
|
admin: ({ req }: {
|
|
322
|
-
req: import("../../
|
|
322
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
323
323
|
}) => boolean | Promise<boolean>;
|
|
324
324
|
create: import("../../config/types.js").Access;
|
|
325
325
|
delete: import("../../config/types.js").Access;
|
|
@@ -328,7 +328,7 @@ export declare const createClientCollectionConfig: ({ collection, t, }: {
|
|
|
328
328
|
unlock: import("../../config/types.js").Access;
|
|
329
329
|
update: import("../../config/types.js").Access;
|
|
330
330
|
};
|
|
331
|
-
dbName: import("../../
|
|
331
|
+
dbName: import("../../index.js").DBIdentifierName;
|
|
332
332
|
defaultSort: string;
|
|
333
333
|
disableDuplicate: boolean;
|
|
334
334
|
labels: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const defaults: {
|
|
2
2
|
access: {
|
|
3
3
|
create: ({ req: { user } }: {
|
|
4
|
-
req: import("../../
|
|
4
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
5
5
|
}) => boolean;
|
|
6
6
|
delete: ({ req: { user } }: {
|
|
7
|
-
req: import("../../
|
|
7
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
8
8
|
}) => boolean;
|
|
9
9
|
read: ({ req: { user } }: {
|
|
10
|
-
req: import("../../
|
|
10
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
11
11
|
}) => boolean;
|
|
12
12
|
unlock: ({ req: { user } }: {
|
|
13
|
-
req: import("../../
|
|
13
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
14
14
|
}) => boolean;
|
|
15
15
|
update: ({ req: { user } }: {
|
|
16
|
-
req: import("../../
|
|
16
|
+
req: import("../../index.js").PayloadRequestWithData;
|
|
17
17
|
}) => boolean;
|
|
18
18
|
};
|
|
19
19
|
admin: {
|