@strapi/upload 5.34.0 → 5.36.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 +6 -11
- package/dist/admin/future/App.js.map +1 -1
- package/dist/admin/future/App.mjs +6 -11
- package/dist/admin/future/App.mjs.map +1 -1
- package/dist/admin/future/enums.js +12 -0
- package/dist/admin/future/enums.js.map +1 -0
- package/dist/admin/future/enums.mjs +10 -0
- package/dist/admin/future/enums.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/AssetsPage.js +342 -0
- package/dist/admin/future/pages/Assets/AssetsPage.js.map +1 -0
- package/dist/admin/future/pages/Assets/AssetsPage.mjs +321 -0
- package/dist/admin/future/pages/Assets/AssetsPage.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/components/AssetsGrid.js +164 -0
- package/dist/admin/future/pages/Assets/components/AssetsGrid.js.map +1 -0
- package/dist/admin/future/pages/Assets/components/AssetsGrid.mjs +162 -0
- package/dist/admin/future/pages/Assets/components/AssetsGrid.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/components/AssetsTable.js +198 -0
- package/dist/admin/future/pages/Assets/components/AssetsTable.js.map +1 -0
- package/dist/admin/future/pages/Assets/components/AssetsTable.mjs +196 -0
- package/dist/admin/future/pages/Assets/components/AssetsTable.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/components/DropZone/DropZoneWithOverlay.js +33 -0
- package/dist/admin/future/pages/Assets/components/DropZone/DropZoneWithOverlay.js.map +1 -0
- package/dist/admin/future/pages/Assets/components/DropZone/DropZoneWithOverlay.mjs +31 -0
- package/dist/admin/future/pages/Assets/components/DropZone/DropZoneWithOverlay.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/components/DropZone/UploadDropZoneContext.js +107 -0
- package/dist/admin/future/pages/Assets/components/DropZone/UploadDropZoneContext.js.map +1 -0
- package/dist/admin/future/pages/Assets/components/DropZone/UploadDropZoneContext.mjs +104 -0
- package/dist/admin/future/pages/Assets/components/DropZone/UploadDropZoneContext.mjs.map +1 -0
- package/dist/admin/future/pages/Assets/constants.js +54 -0
- package/dist/admin/future/pages/Assets/constants.js.map +1 -0
- package/dist/admin/future/pages/Assets/constants.mjs +50 -0
- package/dist/admin/future/pages/Assets/constants.mjs.map +1 -0
- 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/services/assets.js +37 -0
- package/dist/admin/future/services/assets.js.map +1 -0
- package/dist/admin/future/services/assets.mjs +35 -0
- package/dist/admin/future/services/assets.mjs.map +1 -0
- package/dist/admin/future/utils/files.js +23 -0
- package/dist/admin/future/utils/files.js.map +1 -0
- package/dist/admin/future/utils/files.mjs +19 -0
- package/dist/admin/future/utils/files.mjs.map +1 -0
- package/dist/admin/future/utils/getAssetIcon.js +28 -0
- package/dist/admin/future/utils/getAssetIcon.js.map +1 -0
- package/dist/admin/future/utils/getAssetIcon.mjs +26 -0
- package/dist/admin/future/utils/getAssetIcon.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 +7 -6
- package/dist/admin/package.json.js.map +1 -1
- package/dist/admin/package.json.mjs +7 -6
- package/dist/admin/package.json.mjs.map +1 -1
- 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/enums.d.ts +6 -0
- package/dist/admin/src/future/pages/Assets/AssetsPage.d.ts +1 -0
- package/dist/admin/src/future/pages/Assets/components/AssetsGrid.d.ts +6 -0
- package/dist/admin/src/future/pages/Assets/components/AssetsTable.d.ts +6 -0
- package/dist/admin/src/future/pages/Assets/components/DropZone/DropZoneWithOverlay.d.ts +4 -0
- package/dist/admin/src/future/pages/Assets/components/DropZone/UploadDropZoneContext.d.ts +11 -0
- package/dist/admin/src/future/pages/Assets/constants.d.ts +17 -0
- package/dist/admin/src/future/services/api.d.ts +5 -1
- package/dist/admin/src/future/services/assets.d.ts +13 -0
- package/dist/admin/src/future/utils/files.d.ts +3 -0
- package/dist/admin/src/future/utils/getAssetIcon.d.ts +12 -0
- package/dist/admin/src/future/utils/translations.d.ts +1 -0
- package/dist/admin/translations/en.json.js +11 -0
- package/dist/admin/translations/en.json.js.map +1 -1
- package/dist/admin/translations/en.json.mjs +11 -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 +7 -6
- package/dist/admin/future/pages/MediaLibraryPage.js +0 -55
- package/dist/admin/future/pages/MediaLibraryPage.js.map +0 -1
- package/dist/admin/future/pages/MediaLibraryPage.mjs +0 -53
- package/dist/admin/future/pages/MediaLibraryPage.mjs.map +0 -1
- package/dist/admin/src/future/pages/MediaLibraryPage.d.ts +0 -1
|
@@ -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,EAAE,MAAM,CAAC;KAC9B,KACA,QAAQ,KAAK,cAAc,EAAE,WAAW,CAAC,CAAC;+
|
|
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,iBAA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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;CACnB,CAAC;AAEF,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IA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,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,MAAM,CAAC,cAAc,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -39,11 +39,16 @@ type FileFormat = {
|
|
|
39
39
|
sizeInBytes: number;
|
|
40
40
|
url: string;
|
|
41
41
|
};
|
|
42
|
+
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.36.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": {
|
|
@@ -61,12 +61,13 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@mux/mux-player-react": "3.1.0",
|
|
64
|
+
"@radix-ui/react-toggle-group": "1.1.11",
|
|
64
65
|
"@reduxjs/toolkit": "1.9.7",
|
|
65
|
-
"@strapi/database": "5.
|
|
66
|
+
"@strapi/database": "5.36.0",
|
|
66
67
|
"@strapi/design-system": "2.1.2",
|
|
67
68
|
"@strapi/icons": "2.1.2",
|
|
68
|
-
"@strapi/provider-upload-local": "5.
|
|
69
|
-
"@strapi/utils": "5.
|
|
69
|
+
"@strapi/provider-upload-local": "5.36.0",
|
|
70
|
+
"@strapi/utils": "5.36.0",
|
|
70
71
|
"byte-size": "8.1.1",
|
|
71
72
|
"cropperjs": "1.6.1",
|
|
72
73
|
"date-fns": "2.30.0",
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
"zod": "3.25.67"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
|
-
"@strapi/admin": "5.
|
|
94
|
-
"@strapi/types": "5.
|
|
94
|
+
"@strapi/admin": "5.36.0",
|
|
95
|
+
"@strapi/types": "5.36.0",
|
|
95
96
|
"@testing-library/dom": "10.4.1",
|
|
96
97
|
"@testing-library/react": "16.3.0",
|
|
97
98
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
require('react');
|
|
5
|
-
var strapiAdmin = require('@strapi/admin/strapi-admin');
|
|
6
|
-
var designSystem = require('@strapi/design-system');
|
|
7
|
-
var reactIntl = require('react-intl');
|
|
8
|
-
require('byte-size');
|
|
9
|
-
require('date-fns');
|
|
10
|
-
var getTrad = require('../../utils/getTrad.js');
|
|
11
|
-
require('qs');
|
|
12
|
-
require('../../utils/typeFromMime.js');
|
|
13
|
-
require('../../utils/urlYupSchema.js');
|
|
14
|
-
|
|
15
|
-
const MediaLibraryPage = ()=>{
|
|
16
|
-
const { formatMessage } = reactIntl.useIntl();
|
|
17
|
-
return(/**
|
|
18
|
-
* NOTE:
|
|
19
|
-
*
|
|
20
|
-
* The design differs from our current Layouts component.
|
|
21
|
-
* Either we find a way to make it work with our current Layouts component
|
|
22
|
-
* or we will have to write our own custom layout.
|
|
23
|
-
*/ /*#__PURE__*/ jsxRuntime.jsxs(strapiAdmin.Layouts.Root, {
|
|
24
|
-
children: [
|
|
25
|
-
/*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Layouts.Header, {
|
|
26
|
-
navigationAction: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
|
|
27
|
-
children: "TODO: Breadcrumbs"
|
|
28
|
-
}),
|
|
29
|
-
title: "TODO: Folder location",
|
|
30
|
-
primaryAction: /*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
|
|
31
|
-
gap: 2,
|
|
32
|
-
children: [
|
|
33
|
-
/*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.SearchInput, {
|
|
34
|
-
label: formatMessage({
|
|
35
|
-
id: getTrad.getTrad('search.label'),
|
|
36
|
-
defaultMessage: 'Search for an asset'
|
|
37
|
-
}),
|
|
38
|
-
trackedEvent: "didSearchMediaLibraryElements",
|
|
39
|
-
trackedEventDetails: {
|
|
40
|
-
location: 'upload'
|
|
41
|
-
}
|
|
42
|
-
}),
|
|
43
|
-
"TODO: Toolbar"
|
|
44
|
-
]
|
|
45
|
-
})
|
|
46
|
-
}),
|
|
47
|
-
/*#__PURE__*/ jsxRuntime.jsx(strapiAdmin.Layouts.Content, {
|
|
48
|
-
children: "TODO: List/Grid views"
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
}));
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
exports.MediaLibraryPage = MediaLibraryPage;
|
|
55
|
-
//# sourceMappingURL=MediaLibraryPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaLibraryPage.js","sources":["../../../../admin/src/future/pages/MediaLibraryPage.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Layouts, SearchInput } from '@strapi/admin/strapi-admin';\nimport { Box, Flex } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../../utils';\n\nexport const MediaLibraryPage = () => {\n const { formatMessage } = useIntl();\n\n return (\n /**\n * NOTE:\n *\n * The design differs from our current Layouts component.\n * Either we find a way to make it work with our current Layouts component\n * or we will have to write our own custom layout.\n */\n <Layouts.Root>\n <Layouts.Header\n navigationAction={<Box>TODO: Breadcrumbs</Box>}\n title=\"TODO: Folder location\"\n primaryAction={\n <Flex gap={2}>\n <SearchInput\n label={formatMessage({\n id: getTrad('search.label'),\n defaultMessage: 'Search for an asset',\n })}\n trackedEvent=\"didSearchMediaLibraryElements\"\n trackedEventDetails={{ location: 'upload' }}\n />\n TODO: Toolbar\n </Flex>\n }\n />\n\n <Layouts.Content>TODO: List/Grid views</Layouts.Content>\n </Layouts.Root>\n );\n};\n"],"names":["MediaLibraryPage","formatMessage","useIntl","_jsxs","Layouts","Root","_jsx","Header","navigationAction","Box","title","primaryAction","Flex","gap","SearchInput","label","id","getTrad","defaultMessage","trackedEvent","trackedEventDetails","location","Content"],"mappings":";;;;;;;;;;;;;;MAQaA,gBAAmB,GAAA,IAAA;IAC9B,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;IAE1B;;;;;;sBAQEC,eAAA,CAACC,oBAAQC,IAAI,EAAA;;AACX,0BAAAC,cAAA,CAACF,oBAAQG,MAAM,EAAA;AACbC,gBAAAA,gBAAAA,gBAAkBF,cAACG,CAAAA,gBAAAA,EAAAA;AAAI,oBAAA,QAAA,EAAA;;gBACvBC,KAAM,EAAA,uBAAA;AACNC,gBAAAA,aAAAA,gBACER,eAACS,CAAAA,iBAAAA,EAAAA;oBAAKC,GAAK,EAAA,CAAA;;sCACTP,cAACQ,CAAAA,uBAAAA,EAAAA;AACCC,4BAAAA,KAAAA,EAAOd,aAAc,CAAA;AACnBe,gCAAAA,EAAAA,EAAIC,eAAQ,CAAA,cAAA,CAAA;gCACZC,cAAgB,EAAA;AAClB,6BAAA,CAAA;4BACAC,YAAa,EAAA,+BAAA;4BACbC,mBAAqB,EAAA;gCAAEC,QAAU,EAAA;AAAS;;AAC1C,wBAAA;;;;AAMR,0BAAAf,cAAA,CAACF,oBAAQkB,OAAO,EAAA;AAAC,gBAAA,QAAA,EAAA;;;;AAGvB;;;;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import 'react';
|
|
3
|
-
import { Layouts, SearchInput } from '@strapi/admin/strapi-admin';
|
|
4
|
-
import { Box, Flex } from '@strapi/design-system';
|
|
5
|
-
import { useIntl } from 'react-intl';
|
|
6
|
-
import 'byte-size';
|
|
7
|
-
import 'date-fns';
|
|
8
|
-
import { getTrad } from '../../utils/getTrad.mjs';
|
|
9
|
-
import 'qs';
|
|
10
|
-
import '../../utils/typeFromMime.mjs';
|
|
11
|
-
import '../../utils/urlYupSchema.mjs';
|
|
12
|
-
|
|
13
|
-
const MediaLibraryPage = ()=>{
|
|
14
|
-
const { formatMessage } = useIntl();
|
|
15
|
-
return(/**
|
|
16
|
-
* NOTE:
|
|
17
|
-
*
|
|
18
|
-
* The design differs from our current Layouts component.
|
|
19
|
-
* Either we find a way to make it work with our current Layouts component
|
|
20
|
-
* or we will have to write our own custom layout.
|
|
21
|
-
*/ /*#__PURE__*/ jsxs(Layouts.Root, {
|
|
22
|
-
children: [
|
|
23
|
-
/*#__PURE__*/ jsx(Layouts.Header, {
|
|
24
|
-
navigationAction: /*#__PURE__*/ jsx(Box, {
|
|
25
|
-
children: "TODO: Breadcrumbs"
|
|
26
|
-
}),
|
|
27
|
-
title: "TODO: Folder location",
|
|
28
|
-
primaryAction: /*#__PURE__*/ jsxs(Flex, {
|
|
29
|
-
gap: 2,
|
|
30
|
-
children: [
|
|
31
|
-
/*#__PURE__*/ jsx(SearchInput, {
|
|
32
|
-
label: formatMessage({
|
|
33
|
-
id: getTrad('search.label'),
|
|
34
|
-
defaultMessage: 'Search for an asset'
|
|
35
|
-
}),
|
|
36
|
-
trackedEvent: "didSearchMediaLibraryElements",
|
|
37
|
-
trackedEventDetails: {
|
|
38
|
-
location: 'upload'
|
|
39
|
-
}
|
|
40
|
-
}),
|
|
41
|
-
"TODO: Toolbar"
|
|
42
|
-
]
|
|
43
|
-
})
|
|
44
|
-
}),
|
|
45
|
-
/*#__PURE__*/ jsx(Layouts.Content, {
|
|
46
|
-
children: "TODO: List/Grid views"
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { MediaLibraryPage };
|
|
53
|
-
//# sourceMappingURL=MediaLibraryPage.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaLibraryPage.mjs","sources":["../../../../admin/src/future/pages/MediaLibraryPage.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Layouts, SearchInput } from '@strapi/admin/strapi-admin';\nimport { Box, Flex } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../../utils';\n\nexport const MediaLibraryPage = () => {\n const { formatMessage } = useIntl();\n\n return (\n /**\n * NOTE:\n *\n * The design differs from our current Layouts component.\n * Either we find a way to make it work with our current Layouts component\n * or we will have to write our own custom layout.\n */\n <Layouts.Root>\n <Layouts.Header\n navigationAction={<Box>TODO: Breadcrumbs</Box>}\n title=\"TODO: Folder location\"\n primaryAction={\n <Flex gap={2}>\n <SearchInput\n label={formatMessage({\n id: getTrad('search.label'),\n defaultMessage: 'Search for an asset',\n })}\n trackedEvent=\"didSearchMediaLibraryElements\"\n trackedEventDetails={{ location: 'upload' }}\n />\n TODO: Toolbar\n </Flex>\n }\n />\n\n <Layouts.Content>TODO: List/Grid views</Layouts.Content>\n </Layouts.Root>\n );\n};\n"],"names":["MediaLibraryPage","formatMessage","useIntl","_jsxs","Layouts","Root","_jsx","Header","navigationAction","Box","title","primaryAction","Flex","gap","SearchInput","label","id","getTrad","defaultMessage","trackedEvent","trackedEventDetails","location","Content"],"mappings":";;;;;;;;;;;;MAQaA,gBAAmB,GAAA,IAAA;IAC9B,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;IAE1B;;;;;;sBAQEC,IAAA,CAACC,QAAQC,IAAI,EAAA;;AACX,0BAAAC,GAAA,CAACF,QAAQG,MAAM,EAAA;AACbC,gBAAAA,gBAAAA,gBAAkBF,GAACG,CAAAA,GAAAA,EAAAA;AAAI,oBAAA,QAAA,EAAA;;gBACvBC,KAAM,EAAA,uBAAA;AACNC,gBAAAA,aAAAA,gBACER,IAACS,CAAAA,IAAAA,EAAAA;oBAAKC,GAAK,EAAA,CAAA;;sCACTP,GAACQ,CAAAA,WAAAA,EAAAA;AACCC,4BAAAA,KAAAA,EAAOd,aAAc,CAAA;AACnBe,gCAAAA,EAAAA,EAAIC,OAAQ,CAAA,cAAA,CAAA;gCACZC,cAAgB,EAAA;AAClB,6BAAA,CAAA;4BACAC,YAAa,EAAA,+BAAA;4BACbC,mBAAqB,EAAA;gCAAEC,QAAU,EAAA;AAAS;;AAC1C,wBAAA;;;;AAMR,0BAAAf,GAAA,CAACF,QAAQkB,OAAO,EAAA;AAAC,gBAAA,QAAA,EAAA;;;;AAGvB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MediaLibraryPage: () => import("react/jsx-runtime").JSX.Element;
|