@strapi/upload 5.34.0 → 5.35.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/admin/components/EditAssetDialog/EditAssetContent.js +32 -3
- package/dist/admin/components/EditAssetDialog/EditAssetContent.js.map +1 -1
- package/dist/admin/components/EditAssetDialog/EditAssetContent.mjs +32 -3
- package/dist/admin/components/EditAssetDialog/EditAssetContent.mjs.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/AssetPreview.js.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/AssetPreview.mjs.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/FocalPointActions.js +57 -0
- package/dist/admin/components/EditAssetDialog/PreviewBox/FocalPointActions.js.map +1 -0
- package/dist/admin/components/EditAssetDialog/PreviewBox/FocalPointActions.mjs +55 -0
- package/dist/admin/components/EditAssetDialog/PreviewBox/FocalPointActions.mjs.map +1 -0
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewBox.js +96 -20
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewBox.js.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewBox.mjs +98 -22
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewBox.mjs.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewComponents.js +47 -0
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewComponents.js.map +1 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewComponents.mjs +44 -1
- package/dist/admin/components/EditAssetDialog/PreviewBox/PreviewComponents.mjs.map +1 -1
- package/dist/admin/future/App.js +2 -2
- package/dist/admin/future/App.js.map +1 -1
- package/dist/admin/future/App.mjs +2 -2
- package/dist/admin/future/App.mjs.map +1 -1
- package/dist/admin/future/pages/MediaLibraryPage.js +97 -33
- package/dist/admin/future/pages/MediaLibraryPage.js.map +1 -1
- package/dist/admin/future/pages/MediaLibraryPage.mjs +80 -35
- package/dist/admin/future/pages/MediaLibraryPage.mjs.map +1 -1
- package/dist/admin/future/services/api.js +28 -0
- package/dist/admin/future/services/api.js.map +1 -0
- package/dist/admin/future/services/api.mjs +25 -0
- package/dist/admin/future/services/api.mjs.map +1 -0
- package/dist/admin/future/utils/translations.js +8 -0
- package/dist/admin/future/utils/translations.js.map +1 -0
- package/dist/admin/future/utils/translations.mjs +6 -0
- package/dist/admin/future/utils/translations.mjs.map +1 -0
- package/dist/admin/hooks/useEditAsset.js +1 -0
- package/dist/admin/hooks/useEditAsset.js.map +1 -1
- package/dist/admin/hooks/useEditAsset.mjs +1 -0
- package/dist/admin/hooks/useEditAsset.mjs.map +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/package.json.js +5 -5
- package/dist/admin/package.json.mjs +5 -5
- package/dist/admin/src/components/EditAssetDialog/PreviewBox/AssetPreview.d.ts +1 -2
- package/dist/admin/src/components/EditAssetDialog/PreviewBox/FocalPointActions.d.ts +7 -0
- package/dist/admin/src/components/EditAssetDialog/PreviewBox/PreviewBox.d.ts +6 -2
- package/dist/admin/src/components/EditAssetDialog/PreviewBox/PreviewComponents.d.ts +13 -0
- package/dist/admin/src/future/App.d.ts +1 -1
- package/dist/admin/src/future/services/api.d.ts +5 -1
- package/dist/admin/src/future/utils/translations.d.ts +1 -0
- package/dist/admin/translations/en.json.js +8 -0
- package/dist/admin/translations/en.json.js.map +1 -1
- package/dist/admin/translations/en.json.mjs +8 -0
- package/dist/admin/translations/en.json.mjs.map +1 -1
- package/dist/server/content-types/file.js +4 -0
- package/dist/server/content-types/file.js.map +1 -1
- package/dist/server/content-types/file.mjs +4 -0
- package/dist/server/content-types/file.mjs.map +1 -1
- package/dist/server/controllers/validation/admin/upload.js +5 -0
- package/dist/server/controllers/validation/admin/upload.js.map +1 -1
- package/dist/server/controllers/validation/admin/upload.mjs +5 -0
- package/dist/server/controllers/validation/admin/upload.mjs.map +1 -1
- package/dist/server/controllers/validation/content-api/upload.js +6 -1
- package/dist/server/controllers/validation/content-api/upload.js.map +1 -1
- package/dist/server/controllers/validation/content-api/upload.mjs +6 -1
- package/dist/server/controllers/validation/content-api/upload.mjs.map +1 -1
- package/dist/server/services/upload.js +3 -1
- package/dist/server/services/upload.js.map +1 -1
- package/dist/server/services/upload.mjs +3 -1
- package/dist/server/services/upload.mjs.map +1 -1
- package/dist/server/src/content-types/file.d.ts +4 -0
- package/dist/server/src/content-types/file.d.ts.map +1 -1
- package/dist/server/src/content-types/index.d.ts +4 -0
- package/dist/server/src/content-types/index.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/admin/upload.d.ts +240 -0
- package/dist/server/src/controllers/validation/admin/upload.d.ts.map +1 -1
- package/dist/server/src/controllers/validation/content-api/upload.d.ts +180 -0
- package/dist/server/src/controllers/validation/content-api/upload.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +5 -1
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +1 -1
- package/dist/server/src/services/upload.d.ts +1 -1
- package/dist/server/src/services/upload.d.ts.map +1 -1
- package/dist/server/src/types.d.ts +6 -0
- package/dist/server/src/types.d.ts.map +1 -1
- package/dist/shared/contracts/files.d.ts +6 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../server/src/controllers/validation/admin/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../server/src/controllers/validation/admin/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AA+BvD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEhB,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAErB,CAAC;AAEH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIvB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,MAAM,MAAM,UAAU,GAClB,GAAG,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,GAClC,GAAG,CAAC,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAe5C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC"}
|
|
@@ -4,20 +4,60 @@ declare const uploadSchema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
4
4
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
5
5
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
6
6
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
7
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
8
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
9
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
10
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
11
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
12
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
13
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
14
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
15
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
16
|
+
}> | null>;
|
|
7
17
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
8
18
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
9
19
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
10
20
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
21
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
22
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
23
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
24
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
25
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
26
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
27
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
28
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
29
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
30
|
+
}> | null>;
|
|
11
31
|
}>>;
|
|
12
32
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
13
33
|
fileInfo: import("yup/lib/object").OptionalObjectSchema<{
|
|
14
34
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
15
35
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
16
36
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
37
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
38
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
39
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
40
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
41
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
42
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
43
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
44
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
45
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
46
|
+
}> | null>;
|
|
17
47
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
18
48
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
19
49
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
20
50
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
51
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
52
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
53
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
54
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
55
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
56
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
57
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
58
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
59
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
60
|
+
}> | null>;
|
|
21
61
|
}>>;
|
|
22
62
|
}>>;
|
|
23
63
|
declare const multiUploadSchema: import("yup/lib/object").OptionalObjectSchema<{
|
|
@@ -25,36 +65,116 @@ declare const multiUploadSchema: import("yup/lib/object").OptionalObjectSchema<{
|
|
|
25
65
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
26
66
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
27
67
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
68
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
69
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
70
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
71
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
72
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
73
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
74
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
75
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
76
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
77
|
+
}> | null>;
|
|
28
78
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
29
79
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
30
80
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
31
81
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
82
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
83
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
84
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
85
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
86
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
87
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
88
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
89
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
90
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
91
|
+
}> | null>;
|
|
32
92
|
}>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
|
|
33
93
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
34
94
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
35
95
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
96
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
97
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
98
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
99
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
100
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
101
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
102
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
103
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
104
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
105
|
+
}> | null>;
|
|
36
106
|
}>[] | undefined, import("yup/lib/object").AssertsShape<{
|
|
37
107
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
38
108
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
39
109
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
110
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
111
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
112
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
113
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
114
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
115
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
116
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
117
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
118
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
119
|
+
}> | null>;
|
|
40
120
|
}>[] | undefined>;
|
|
41
121
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
42
122
|
fileInfo: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
|
|
43
123
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
44
124
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
45
125
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
126
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
127
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
128
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
129
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
130
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
131
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
132
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
133
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
134
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
135
|
+
}> | null>;
|
|
46
136
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
47
137
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
48
138
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
49
139
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
140
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
141
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
142
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
143
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
144
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
145
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
146
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
147
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
148
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
149
|
+
}> | null>;
|
|
50
150
|
}>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
|
|
51
151
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
52
152
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
53
153
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
154
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
155
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
156
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
157
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
158
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
159
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
160
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
161
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
162
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
163
|
+
}> | null>;
|
|
54
164
|
}>[] | undefined, import("yup/lib/object").AssertsShape<{
|
|
55
165
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
56
166
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
57
167
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
168
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
169
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
170
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
171
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
172
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
173
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
174
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
175
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
176
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
177
|
+
}> | null>;
|
|
58
178
|
}>[] | undefined>;
|
|
59
179
|
}>>;
|
|
60
180
|
declare const validateUploadBody: (data?: {}, isMulti?: boolean) => Promise<import("yup/lib/object").AssertsShape<{
|
|
@@ -62,28 +182,88 @@ declare const validateUploadBody: (data?: {}, isMulti?: boolean) => Promise<impo
|
|
|
62
182
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
63
183
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
64
184
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
185
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
186
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
187
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
188
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
189
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
190
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
191
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
192
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
193
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
194
|
+
}> | null>;
|
|
65
195
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
66
196
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
67
197
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
68
198
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
199
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
200
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
201
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
202
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
203
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
204
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
205
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
206
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
207
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
208
|
+
}> | null>;
|
|
69
209
|
}>>;
|
|
70
210
|
}> | import("yup/lib/object").AssertsShape<{
|
|
71
211
|
fileInfo: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
|
|
72
212
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
73
213
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
74
214
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
215
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
216
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
217
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
218
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
219
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
220
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
221
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
222
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
223
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
224
|
+
}> | null>;
|
|
75
225
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
76
226
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
77
227
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
78
228
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
229
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
230
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
231
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
232
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
233
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
234
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
235
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
236
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
237
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
238
|
+
}> | null>;
|
|
79
239
|
}>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
|
|
80
240
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
81
241
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
82
242
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
243
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
244
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
245
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
246
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
247
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
248
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
249
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
250
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
251
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
252
|
+
}> | null>;
|
|
83
253
|
}>[] | undefined, import("yup/lib/object").AssertsShape<{
|
|
84
254
|
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
85
255
|
alternativeText: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
86
256
|
caption: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
|
257
|
+
focalPoint: import("yup").ObjectSchema<{
|
|
258
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
259
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
260
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
261
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
262
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
263
|
+
}> | null, import("yup/lib/object").AssertsShape<{
|
|
264
|
+
x: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
265
|
+
y: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
|
|
266
|
+
}> | null>;
|
|
87
267
|
}>[] | undefined>;
|
|
88
268
|
}>>;
|
|
89
269
|
export { validateUploadBody };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../server/src/controllers/validation/content-api/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../server/src/controllers/validation/content-api/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AAmBvD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEhB,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAErB,CAAC;AAEH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIvB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,MAAM,MAAM,UAAU,GAClB,GAAG,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,GAClC,GAAG,CAAC,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -139,6 +139,10 @@ declare const _default: () => {
|
|
|
139
139
|
type: "text";
|
|
140
140
|
configurable: false;
|
|
141
141
|
};
|
|
142
|
+
focalPoint: {
|
|
143
|
+
type: "json";
|
|
144
|
+
configurable: false;
|
|
145
|
+
};
|
|
142
146
|
width: {
|
|
143
147
|
type: "integer";
|
|
144
148
|
configurable: false;
|
|
@@ -304,7 +308,7 @@ declare const _default: () => {
|
|
|
304
308
|
id: string | number;
|
|
305
309
|
} | undefined;
|
|
306
310
|
} | undefined) => Promise<any[]>;
|
|
307
|
-
updateFileInfo: (id: string | number, { name, alternativeText, caption, folder }: import("./types").FileInfo, opts?: {
|
|
311
|
+
updateFileInfo: (id: string | number, { name, alternativeText, caption, focalPoint, folder }: import("./types").FileInfo, opts?: {
|
|
308
312
|
user?: {
|
|
309
313
|
id: string | number;
|
|
310
314
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOxC,wBAQG"}
|
|
@@ -27,7 +27,7 @@ export declare const services: {
|
|
|
27
27
|
id: string | number;
|
|
28
28
|
} | undefined;
|
|
29
29
|
} | undefined) => Promise<any[]>;
|
|
30
|
-
updateFileInfo: (id: string | number, { name, alternativeText, caption, folder }: import("../types").FileInfo, opts?: {
|
|
30
|
+
updateFileInfo: (id: string | number, { name, alternativeText, caption, focalPoint, folder }: import("../types").FileInfo, opts?: {
|
|
31
31
|
user?: {
|
|
32
32
|
id: string | number;
|
|
33
33
|
} | undefined;
|
|
@@ -27,7 +27,7 @@ declare const _default: ({ strapi }: {
|
|
|
27
27
|
data: Record<string, unknown>;
|
|
28
28
|
files: InputFile[];
|
|
29
29
|
}, opts?: CommonOptions) => Promise<any[]>;
|
|
30
|
-
updateFileInfo: (id: ID, { name, alternativeText, caption, folder }: FileInfo, opts?: CommonOptions) => Promise<any>;
|
|
30
|
+
updateFileInfo: (id: ID, { name, alternativeText, caption, focalPoint, folder }: FileInfo, opts?: CommonOptions) => Promise<any>;
|
|
31
31
|
replace: (id: ID, { data, file }: {
|
|
32
32
|
data: {
|
|
33
33
|
fileInfo: FileInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../server/src/services/upload.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,eAAe,CAAC;AAK/C,OAAO,KAAK,EAAU,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAEzE,KAAK,IAAI,GAAG;IACV,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1B,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;qCAgB0B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;+CAsErB;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,aAChE,QAAQ,QAAQ,CAAC,UACpB;QACL,KAAK,CAAC,EAAE,EAAE,CAAC;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,mBAAmB,CAAC,EA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,EAAE;YAAE,QAAQ,EAAE,QAAQ,CAAA;SAAE,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,SAC1D,aAAa;kBAkGK,EAAE;uBAgBE,GAAG,KAAQ,QAAQ,IAAI,EAAE,CAAC;uBAS1B,GAAG;;;;;;;;;mBAgBN,IAAI;;;;;;;yBAiCE,QAAQ;;;;;8BAoBT,iBAAiB;IAoBhD;;;OAGG;6BAlUgC,cAAc;;AAzNrD,wBA8hBE"}
|
|
@@ -7,11 +7,16 @@ export type InputFile = FormidableFile & {
|
|
|
7
7
|
tmpWorkingDirectory?: string;
|
|
8
8
|
provider?: string;
|
|
9
9
|
};
|
|
10
|
+
export interface FocalPoint {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}
|
|
10
14
|
export interface File {
|
|
11
15
|
id: number;
|
|
12
16
|
name: string;
|
|
13
17
|
alternativeText?: string | null;
|
|
14
18
|
caption?: string | null;
|
|
19
|
+
focalPoint?: FocalPoint | null;
|
|
15
20
|
width?: number;
|
|
16
21
|
height?: number;
|
|
17
22
|
formats?: Record<string, unknown>;
|
|
@@ -72,6 +77,7 @@ export type FileInfo = {
|
|
|
72
77
|
name?: string | null;
|
|
73
78
|
alternativeText?: string | null;
|
|
74
79
|
caption?: string | null;
|
|
80
|
+
focalPoint?: FocalPoint | null;
|
|
75
81
|
folder?: number;
|
|
76
82
|
};
|
|
77
83
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../server/src/types.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACn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export interface FocalPoint {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}
|
|
42
46
|
export interface File {
|
|
43
47
|
id: number;
|
|
44
48
|
name: string;
|
|
45
49
|
alternativeText?: string | null;
|
|
46
50
|
caption?: string | null;
|
|
51
|
+
focalPoint?: FocalPoint | null;
|
|
47
52
|
width?: number | null;
|
|
48
53
|
height?: number | null;
|
|
49
54
|
formats?: Record<string, FileFormat> | {
|
|
@@ -220,6 +225,7 @@ export declare namespace BulkUpdateFiles {
|
|
|
220
225
|
name?: string;
|
|
221
226
|
alternativeText?: string | null;
|
|
222
227
|
caption?: string | null;
|
|
228
|
+
focalPoint?: FocalPoint | null;
|
|
223
229
|
folder?: number | null;
|
|
224
230
|
};
|
|
225
231
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/upload",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.35.0",
|
|
4
4
|
"description": "Makes it easy to upload images and files to your Strapi Application.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@strapi/database": "5.33.3",
|
|
66
66
|
"@strapi/design-system": "2.1.2",
|
|
67
67
|
"@strapi/icons": "2.1.2",
|
|
68
|
-
"@strapi/provider-upload-local": "5.
|
|
69
|
-
"@strapi/utils": "5.
|
|
68
|
+
"@strapi/provider-upload-local": "5.35.0",
|
|
69
|
+
"@strapi/utils": "5.35.0",
|
|
70
70
|
"byte-size": "8.1.1",
|
|
71
71
|
"cropperjs": "1.6.1",
|
|
72
72
|
"date-fns": "2.30.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"zod": "3.25.67"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@strapi/admin": "5.
|
|
94
|
-
"@strapi/types": "5.
|
|
93
|
+
"@strapi/admin": "5.35.0",
|
|
94
|
+
"@strapi/types": "5.35.0",
|
|
95
95
|
"@testing-library/dom": "10.4.1",
|
|
96
96
|
"@testing-library/react": "16.3.0",
|
|
97
97
|
"@testing-library/user-event": "14.6.1",
|