@strapi/content-type-builder 5.1.0 → 5.2.0
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/{ListView-Dndxuk13.mjs → ListView-C_cgtZD7.mjs} +2 -2
- package/dist/_chunks/{ListView-Dndxuk13.mjs.map → ListView-C_cgtZD7.mjs.map} +1 -1
- package/dist/_chunks/{ListView-D5LU5Y7e.js → ListView-wnjJ3mXF.js} +2 -2
- package/dist/_chunks/{ListView-D5LU5Y7e.js.map → ListView-wnjJ3mXF.js.map} +1 -1
- package/dist/_chunks/{index-DzOmixPm.mjs → index-BV3CkEAi.mjs} +3 -3
- package/dist/_chunks/{index-DzOmixPm.mjs.map → index-BV3CkEAi.mjs.map} +1 -1
- package/dist/_chunks/{index-BPHnVIJQ.js → index-Bu22n5tv.js} +3 -3
- package/dist/_chunks/{index-BPHnVIJQ.js.map → index-Bu22n5tv.js.map} +1 -1
- package/dist/_chunks/{index-BOhrbpg6.mjs → index-CKPaBrjj.mjs} +4 -4
- package/dist/_chunks/{index-BOhrbpg6.mjs.map → index-CKPaBrjj.mjs.map} +1 -1
- package/dist/_chunks/{index-99gVn7P1.js → index-p_pT4i0d.js} +4 -4
- package/dist/_chunks/{index-99gVn7P1.js.map → index-p_pT4i0d.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/src/utils/attributes.d.ts +30 -0
- package/dist/server/src/utils/attributes.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/admin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("../_chunks/index-
|
|
3
|
+
const index = require("../_chunks/index-Bu22n5tv.js");
|
|
4
4
|
require("@strapi/icons");
|
|
5
5
|
exports.default = index.index;
|
|
6
6
|
exports.private_AutoReloadOverlayBlockerProvider = index.AutoReloadOverlayBlockerProvider;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
12
12
|
type: "biginteger";
|
|
13
13
|
pluginOptions?: object | undefined;
|
|
14
14
|
searchable?: boolean | undefined;
|
|
15
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
15
16
|
configurable?: boolean | undefined;
|
|
16
17
|
default?: string | (() => string) | undefined;
|
|
17
18
|
min?: string | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
25
26
|
type: "boolean";
|
|
26
27
|
pluginOptions?: object | undefined;
|
|
27
28
|
searchable?: boolean | undefined;
|
|
29
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
28
30
|
configurable?: boolean | undefined;
|
|
29
31
|
default?: boolean | (() => boolean) | undefined;
|
|
30
32
|
private?: boolean | undefined;
|
|
@@ -35,6 +37,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
35
37
|
type: "blocks";
|
|
36
38
|
pluginOptions?: object | undefined;
|
|
37
39
|
searchable?: boolean | undefined;
|
|
40
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
38
41
|
configurable?: boolean | undefined;
|
|
39
42
|
private?: boolean | undefined;
|
|
40
43
|
required?: boolean | undefined;
|
|
@@ -44,6 +47,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
44
47
|
type: "component";
|
|
45
48
|
pluginOptions?: object | undefined;
|
|
46
49
|
searchable?: boolean | undefined;
|
|
50
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
47
51
|
component: `${string}.${string}`;
|
|
48
52
|
repeatable?: boolean | undefined;
|
|
49
53
|
configurable?: boolean | undefined;
|
|
@@ -57,6 +61,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
57
61
|
type: "datetime";
|
|
58
62
|
pluginOptions?: object | undefined;
|
|
59
63
|
searchable?: boolean | undefined;
|
|
64
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
60
65
|
configurable?: boolean | undefined;
|
|
61
66
|
default?: Schema.Attribute.DateTimeValue | (() => Schema.Attribute.DateTimeValue) | undefined;
|
|
62
67
|
private?: boolean | undefined;
|
|
@@ -68,6 +73,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
68
73
|
type: "date";
|
|
69
74
|
pluginOptions?: object | undefined;
|
|
70
75
|
searchable?: boolean | undefined;
|
|
76
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
71
77
|
configurable?: boolean | undefined;
|
|
72
78
|
default?: Schema.Attribute.DateValue | (() => Schema.Attribute.DateValue) | undefined;
|
|
73
79
|
private?: boolean | undefined;
|
|
@@ -79,6 +85,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
79
85
|
type: "decimal";
|
|
80
86
|
pluginOptions?: object | undefined;
|
|
81
87
|
searchable?: boolean | undefined;
|
|
88
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
82
89
|
configurable?: boolean | undefined;
|
|
83
90
|
default?: number | (() => number) | undefined;
|
|
84
91
|
min?: number | undefined;
|
|
@@ -92,6 +99,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
92
99
|
type: "dynamiczone";
|
|
93
100
|
pluginOptions?: object | undefined;
|
|
94
101
|
searchable?: boolean | undefined;
|
|
102
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
95
103
|
components: `${string}.${string}`[];
|
|
96
104
|
configurable?: boolean | undefined;
|
|
97
105
|
min?: number | undefined;
|
|
@@ -103,6 +111,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
103
111
|
type: "email";
|
|
104
112
|
pluginOptions?: object | undefined;
|
|
105
113
|
searchable?: boolean | undefined;
|
|
114
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
106
115
|
configurable?: boolean | undefined;
|
|
107
116
|
default?: string | (() => string) | undefined;
|
|
108
117
|
minLength?: number | undefined;
|
|
@@ -116,6 +125,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
116
125
|
type: "enumeration";
|
|
117
126
|
pluginOptions?: object | undefined;
|
|
118
127
|
searchable?: boolean | undefined;
|
|
128
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
119
129
|
enum: string[];
|
|
120
130
|
enumName?: string | undefined;
|
|
121
131
|
configurable?: boolean | undefined;
|
|
@@ -128,6 +138,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
128
138
|
type: "float";
|
|
129
139
|
pluginOptions?: object | undefined;
|
|
130
140
|
searchable?: boolean | undefined;
|
|
141
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
131
142
|
configurable?: boolean | undefined;
|
|
132
143
|
default?: number | (() => number) | undefined;
|
|
133
144
|
min?: number | undefined;
|
|
@@ -141,6 +152,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
141
152
|
type: "integer";
|
|
142
153
|
pluginOptions?: object | undefined;
|
|
143
154
|
searchable?: boolean | undefined;
|
|
155
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
144
156
|
configurable?: boolean | undefined;
|
|
145
157
|
default?: number | (() => number) | undefined;
|
|
146
158
|
min?: number | undefined;
|
|
@@ -154,6 +166,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
154
166
|
type: "json";
|
|
155
167
|
pluginOptions?: object | undefined;
|
|
156
168
|
searchable?: boolean | undefined;
|
|
169
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
157
170
|
configurable?: boolean | undefined;
|
|
158
171
|
required?: boolean | undefined;
|
|
159
172
|
private?: boolean | undefined;
|
|
@@ -164,6 +177,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
164
177
|
type: "password";
|
|
165
178
|
pluginOptions?: object | undefined;
|
|
166
179
|
searchable?: boolean | undefined;
|
|
180
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
167
181
|
configurable?: boolean | undefined;
|
|
168
182
|
default?: string | (() => string) | undefined;
|
|
169
183
|
minLength?: number | undefined;
|
|
@@ -176,6 +190,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
176
190
|
type: "richtext";
|
|
177
191
|
pluginOptions?: object | undefined;
|
|
178
192
|
searchable?: boolean | undefined;
|
|
193
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
179
194
|
configurable?: boolean | undefined;
|
|
180
195
|
default?: string | (() => string) | undefined;
|
|
181
196
|
minLength?: number | undefined;
|
|
@@ -188,6 +203,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
188
203
|
type: "string";
|
|
189
204
|
pluginOptions?: object | undefined;
|
|
190
205
|
searchable?: boolean | undefined;
|
|
206
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
191
207
|
regex?: RegExp | undefined;
|
|
192
208
|
configurable?: boolean | undefined;
|
|
193
209
|
default?: string | (() => string) | undefined;
|
|
@@ -202,6 +218,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
202
218
|
type: "text";
|
|
203
219
|
pluginOptions?: object | undefined;
|
|
204
220
|
searchable?: boolean | undefined;
|
|
221
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
205
222
|
regex?: RegExp | undefined;
|
|
206
223
|
configurable?: boolean | undefined;
|
|
207
224
|
default?: string | (() => string) | undefined;
|
|
@@ -216,6 +233,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
216
233
|
type: "time";
|
|
217
234
|
pluginOptions?: object | undefined;
|
|
218
235
|
searchable?: boolean | undefined;
|
|
236
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
219
237
|
configurable?: boolean | undefined;
|
|
220
238
|
default?: Schema.Attribute.TimeValue | (() => Schema.Attribute.TimeValue) | undefined;
|
|
221
239
|
private?: boolean | undefined;
|
|
@@ -227,6 +245,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
227
245
|
type: "timestamp";
|
|
228
246
|
pluginOptions?: object | undefined;
|
|
229
247
|
searchable?: boolean | undefined;
|
|
248
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
230
249
|
configurable?: boolean | undefined;
|
|
231
250
|
default?: Schema.Attribute.TimestampValue | (() => Schema.Attribute.TimestampValue) | undefined;
|
|
232
251
|
private?: boolean | undefined;
|
|
@@ -238,6 +257,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
238
257
|
type: "uid";
|
|
239
258
|
pluginOptions?: object | undefined;
|
|
240
259
|
searchable?: boolean | undefined;
|
|
260
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
241
261
|
targetField?: string | undefined;
|
|
242
262
|
options?: Schema.Attribute.UIDOptions | undefined;
|
|
243
263
|
configurable?: boolean | undefined;
|
|
@@ -265,6 +285,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
265
285
|
pluginOptions: object | undefined;
|
|
266
286
|
autoPopulate: any;
|
|
267
287
|
searchable?: boolean | undefined;
|
|
288
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
268
289
|
writable?: boolean | undefined;
|
|
269
290
|
visible?: boolean | undefined;
|
|
270
291
|
required?: boolean | undefined;
|
|
@@ -281,6 +302,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
281
302
|
pluginOptions: object | undefined;
|
|
282
303
|
autoPopulate: any;
|
|
283
304
|
searchable?: boolean | undefined;
|
|
305
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
284
306
|
writable?: boolean | undefined;
|
|
285
307
|
visible?: boolean | undefined;
|
|
286
308
|
required?: boolean | undefined;
|
|
@@ -297,6 +319,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
297
319
|
pluginOptions: object | undefined;
|
|
298
320
|
autoPopulate: any;
|
|
299
321
|
searchable?: boolean | undefined;
|
|
322
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
300
323
|
inversedBy?: string | undefined;
|
|
301
324
|
mappedBy?: string | undefined;
|
|
302
325
|
writable?: boolean | undefined;
|
|
@@ -315,6 +338,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
315
338
|
pluginOptions: object | undefined;
|
|
316
339
|
autoPopulate: any;
|
|
317
340
|
searchable?: boolean | undefined;
|
|
341
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
318
342
|
inversedBy?: string | undefined;
|
|
319
343
|
mappedBy?: string | undefined;
|
|
320
344
|
writable?: boolean | undefined;
|
|
@@ -333,6 +357,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
333
357
|
pluginOptions: object | undefined;
|
|
334
358
|
autoPopulate: any;
|
|
335
359
|
searchable?: boolean | undefined;
|
|
360
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
336
361
|
inversedBy?: string | undefined;
|
|
337
362
|
mappedBy?: string | undefined;
|
|
338
363
|
writable?: boolean | undefined;
|
|
@@ -351,6 +376,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
351
376
|
pluginOptions: object | undefined;
|
|
352
377
|
autoPopulate: any;
|
|
353
378
|
searchable?: boolean | undefined;
|
|
379
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
354
380
|
inversedBy?: string | undefined;
|
|
355
381
|
mappedBy?: string | undefined;
|
|
356
382
|
writable?: boolean | undefined;
|
|
@@ -369,6 +395,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
369
395
|
pluginOptions: object | undefined;
|
|
370
396
|
autoPopulate: any;
|
|
371
397
|
searchable?: boolean | undefined;
|
|
398
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
372
399
|
writable?: boolean | undefined;
|
|
373
400
|
visible?: boolean | undefined;
|
|
374
401
|
required?: boolean | undefined;
|
|
@@ -385,6 +412,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
385
412
|
pluginOptions: object | undefined;
|
|
386
413
|
autoPopulate: any;
|
|
387
414
|
searchable?: boolean | undefined;
|
|
415
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
388
416
|
writable?: boolean | undefined;
|
|
389
417
|
visible?: boolean | undefined;
|
|
390
418
|
required?: boolean | undefined;
|
|
@@ -401,6 +429,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
401
429
|
pluginOptions: object | undefined;
|
|
402
430
|
autoPopulate: any;
|
|
403
431
|
searchable?: boolean | undefined;
|
|
432
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
404
433
|
morphBy?: string | undefined;
|
|
405
434
|
writable?: boolean | undefined;
|
|
406
435
|
visible?: boolean | undefined;
|
|
@@ -418,6 +447,7 @@ export declare const formatAttribute: (attribute: Schema.Attribute.AnyAttribute
|
|
|
418
447
|
pluginOptions: object | undefined;
|
|
419
448
|
autoPopulate: any;
|
|
420
449
|
searchable?: boolean | undefined;
|
|
450
|
+
column?: Partial<Schema.Attribute.Column> | undefined;
|
|
421
451
|
morphBy?: string | undefined;
|
|
422
452
|
writable?: boolean | undefined;
|
|
423
453
|
visible?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/attributes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,eAAO,MAAM,cAAc,cAAe,OAAO,SAAS,CAAC,YAA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;;CA8B7F,CAAC;AAGF,eAAO,MAAM,oBAAoB,WAAY,GAAG,cAAc,GAAG,QA4ChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/content-type-builder",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Create and manage content types",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@reduxjs/toolkit": "1.9.7",
|
|
60
60
|
"@sindresorhus/slugify": "1.1.0",
|
|
61
61
|
"@strapi/design-system": "2.0.0-rc.11",
|
|
62
|
-
"@strapi/generators": "5.
|
|
62
|
+
"@strapi/generators": "5.2.0",
|
|
63
63
|
"@strapi/icons": "2.0.0-rc.11",
|
|
64
|
-
"@strapi/utils": "5.
|
|
64
|
+
"@strapi/utils": "5.2.0",
|
|
65
65
|
"date-fns": "2.30.0",
|
|
66
66
|
"fs-extra": "11.2.0",
|
|
67
67
|
"immer": "9.0.21",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"yup": "0.32.9"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@strapi/admin": "5.
|
|
76
|
+
"@strapi/admin": "5.2.0",
|
|
77
77
|
"@strapi/pack-up": "5.0.0",
|
|
78
|
-
"@strapi/types": "5.
|
|
78
|
+
"@strapi/types": "5.2.0",
|
|
79
79
|
"@testing-library/dom": "10.1.0",
|
|
80
80
|
"@testing-library/react": "15.0.7",
|
|
81
81
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"kind": "plugin",
|
|
108
108
|
"required": true
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "c3b3af2ac546ef6c4dab905d9094a12a02060327"
|
|
111
111
|
}
|