@blaze-cms/plugin-media-ui 0.146.0-node18-core-styles-tooltips.58 → 0.146.0-node18-tooltips.45
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/CHANGELOG.md +29 -88
- package/lib/components/CardMedia/CardMedia.js +107 -50
- package/lib/components/CardMedia/CardMedia.js.map +1 -1
- package/lib/components/EditMediaFile/EditMediaFile.js +31 -45
- package/lib/components/EditMediaFile/EditMediaFile.js.map +1 -1
- package/lib/components/EditMediaFile/EditMediaFilePage.js +18 -9
- package/lib/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
- package/lib/components/FileList/useGetFiles/getFiles.js +13 -12
- package/lib/components/FileList/useGetFiles/getFiles.js.map +1 -1
- package/lib/components/FileList/useGetFiles/useGetFiles.js +8 -4
- package/lib/components/FileList/useGetFiles/useGetFiles.js.map +1 -1
- package/lib/components/FileList/useGetFilesList/getCounters.js +1 -1
- package/lib/components/FileList/useGetFilesList/getCounters.js.map +1 -1
- package/lib/components/FileList/useGetFilesList/useGetFilesList.js +4 -2
- package/lib/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
- package/lib/components/FilePreview/Actions/index.js +1 -1
- package/lib/components/FilePreview/Actions/index.js.map +1 -1
- package/lib/components/FilePreview/Image/Image.js.map +1 -1
- package/lib/components/FilePreview/Image/imageSchema.js +8 -4
- package/lib/components/FilePreview/Image/imageSchema.js.map +1 -1
- package/lib/components/FilePreview/PDF/PDF.js.map +1 -1
- package/lib/components/FilePreview/PDF/schema.js +2 -1
- package/lib/components/FilePreview/PDF/schema.js.map +1 -1
- package/lib/components/FilePreview/index.js +51 -9
- package/lib/components/FilePreview/index.js.map +1 -1
- package/lib/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
- package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js +2 -1
- package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js.map +1 -1
- package/lib/components/FilePreviewReadOnly/FilePreviewList.js +0 -1
- package/lib/components/FilePreviewReadOnly/FilePreviewList.js.map +1 -1
- package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js +3 -3
- package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +1 -1
- package/lib/components/FileUploadAdapter/FileList.js +1 -1
- package/lib/components/FileUploadAdapter/FileList.js.map +1 -1
- package/lib/components/FileUploadAdapter/FilePreviewList.js +0 -1
- package/lib/components/FileUploadAdapter/FilePreviewList.js.map +1 -1
- package/lib/components/FileUploadAdapter/FileReorderList.js.map +1 -1
- package/lib/components/FileUploadAdapter/FileUploadAdapter.js +50 -36
- package/lib/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
- package/lib/components/FileUploadModal/FileUploadModal.js +3 -3
- package/lib/components/FileUploadModal/FileUploadModal.js.map +1 -1
- package/lib/components/FilterPanel/FilterPanel.js +42 -141
- package/lib/components/FilterPanel/FilterPanel.js.map +1 -1
- package/lib/components/FilterPanel/MediaSearchFilter.js +40 -0
- package/lib/components/FilterPanel/MediaSearchFilter.js.map +1 -0
- package/lib/components/ListingContainer/Listing/Listing.js.map +1 -1
- package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +6 -5
- package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
- package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js +1 -1
- package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js.map +1 -1
- package/lib/components/ListingContainer/ListingContainer.js +5 -2
- package/lib/components/ListingContainer/ListingContainer.js.map +1 -1
- package/lib/components/MediaListing.js +1 -1
- package/lib/components/MediaListing.js.map +1 -1
- package/lib/constants.js +2 -1
- package/lib/constants.js.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/utils/bustUrl.js +1 -0
- package/lib/utils/bustUrl.js.map +1 -1
- package/lib-es/components/CardMedia/CardMedia.js +97 -54
- package/lib-es/components/CardMedia/CardMedia.js.map +1 -1
- package/lib-es/components/EditMediaFile/EditMediaFile.js +26 -42
- package/lib-es/components/EditMediaFile/EditMediaFile.js.map +1 -1
- package/lib-es/components/EditMediaFile/EditMediaFilePage.js +15 -8
- package/lib-es/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
- package/lib-es/components/FileList/useGetFiles/getFiles.js +6 -3
- package/lib-es/components/FileList/useGetFiles/getFiles.js.map +1 -1
- package/lib-es/components/FileList/useGetFiles/useGetFiles.js +7 -2
- package/lib-es/components/FileList/useGetFiles/useGetFiles.js.map +1 -1
- package/lib-es/components/FileList/useGetFilesList/useGetFilesList.js +4 -1
- package/lib-es/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
- package/lib-es/components/FilePreview/Actions/index.js.map +1 -1
- package/lib-es/components/FilePreview/Image/imageSchema.js +8 -4
- package/lib-es/components/FilePreview/Image/imageSchema.js.map +1 -1
- package/lib-es/components/FilePreview/PDF/PDF.js.map +1 -1
- package/lib-es/components/FilePreview/PDF/schema.js +2 -1
- package/lib-es/components/FilePreview/PDF/schema.js.map +1 -1
- package/lib-es/components/FilePreview/index.js +47 -3
- package/lib-es/components/FilePreview/index.js.map +1 -1
- package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
- package/lib-es/components/FilePreview/previewDefault/previewDefaultSchema.js +2 -1
- package/lib-es/components/FilePreview/previewDefault/previewDefaultSchema.js.map +1 -1
- package/lib-es/components/FileUploadAdapter/FileList.js.map +1 -1
- package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js +34 -23
- package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
- package/lib-es/components/FileUploadAdapter/mappers/get-button-text.js.map +1 -1
- package/lib-es/components/FileUploadModal/FileUploadModal.js.map +1 -1
- package/lib-es/components/FilterPanel/FilterPanel.js +43 -123
- package/lib-es/components/FilterPanel/FilterPanel.js.map +1 -1
- package/lib-es/components/FilterPanel/MediaSearchFilter.js +34 -0
- package/lib-es/components/FilterPanel/MediaSearchFilter.js.map +1 -0
- package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +5 -4
- package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
- package/lib-es/components/ListingContainer/ListingContainer.js +4 -1
- package/lib-es/components/ListingContainer/ListingContainer.js.map +1 -1
- package/lib-es/constants.js +2 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/index.js +3 -3
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/bustUrl.js.map +1 -1
- package/package.json +8 -8
- package/src/components/CardMedia/CardMedia.js +120 -90
- package/src/components/EditMediaFile/EditMediaFile.js +28 -27
- package/src/components/EditMediaFile/EditMediaFilePage.js +12 -7
- package/src/components/FileList/useGetFiles/getFiles.js +12 -4
- package/src/components/FileList/useGetFiles/useGetFiles.js +3 -4
- package/src/components/FileList/useGetFilesList/useGetFilesList.js +2 -1
- package/src/components/FilePreview/Image/imageSchema.js +8 -4
- package/src/components/FilePreview/PDF/schema.js +2 -1
- package/src/components/FilePreview/index.js +36 -2
- package/src/components/FilePreview/previewDefault/previewDefaultSchema.js +2 -1
- package/src/components/FileUploadAdapter/FileUploadAdapter.js +24 -14
- package/src/components/FilterPanel/FilterPanel.js +44 -129
- package/src/components/FilterPanel/MediaSearchFilter.js +32 -0
- package/src/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +5 -2
- package/src/components/ListingContainer/ListingContainer.js +4 -1
- package/src/constants.js +15 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,34 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.146.0-node18-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# [0.146.0-node18-core-styles-tooltips.56](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.55...v0.146.0-node18-core-styles-tooltips.56) (2026-03-27)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# [0.146.0-node18-core-styles-tooltips.55](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.54...v0.146.0-node18-core-styles-tooltips.55) (2026-03-10)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# [0.146.0-node18-core-styles-tooltips.54](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.53...v0.146.0-node18-core-styles-tooltips.54) (2026-03-02)
|
|
6
|
+
# [0.146.0-node18-tooltips.45](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.44...v0.146.0-node18-tooltips.45) (2026-05-13)
|
|
34
7
|
|
|
35
8
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
36
9
|
|
|
@@ -38,26 +11,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
38
11
|
|
|
39
12
|
|
|
40
13
|
|
|
41
|
-
# [0.146.0-node18-
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
# [0.146.0-node18-tooltips.44](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.43...v0.146.0-node18-tooltips.44) (2026-05-13)
|
|
46
15
|
|
|
47
16
|
|
|
17
|
+
### Bug Fixes
|
|
48
18
|
|
|
49
|
-
|
|
19
|
+
* fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
|
|
50
20
|
|
|
51
21
|
|
|
52
22
|
### Features
|
|
53
23
|
|
|
54
|
-
*
|
|
24
|
+
* update media listing to use schema based search filters ([#4873](https://github.com/thebyte9/blaze/issues/4873)) ([c3f3d03](https://github.com/thebyte9/blaze/commit/c3f3d032062e76a5496e5c7b2c22bcb8af63a3ae))
|
|
55
25
|
|
|
56
26
|
|
|
57
27
|
|
|
58
28
|
|
|
59
29
|
|
|
60
|
-
# [0.146.0-node18-
|
|
30
|
+
# [0.146.0-node18-tooltips.42](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.41...v0.146.0-node18-tooltips.42) (2026-03-24)
|
|
61
31
|
|
|
62
32
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
63
33
|
|
|
@@ -65,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
65
35
|
|
|
66
36
|
|
|
67
37
|
|
|
68
|
-
# [0.146.0-node18-
|
|
38
|
+
# [0.146.0-node18-tooltips.41](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.40...v0.146.0-node18-tooltips.41) (2026-03-03)
|
|
69
39
|
|
|
70
40
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
71
41
|
|
|
@@ -73,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
73
43
|
|
|
74
44
|
|
|
75
45
|
|
|
76
|
-
# [0.146.0-node18-
|
|
46
|
+
# [0.146.0-node18-tooltips.40](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.39...v0.146.0-node18-tooltips.40) (2026-01-29)
|
|
77
47
|
|
|
78
48
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
79
49
|
|
|
@@ -81,23 +51,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
81
51
|
|
|
82
52
|
|
|
83
53
|
|
|
84
|
-
# [0.146.0-node18-
|
|
85
|
-
|
|
86
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
54
|
+
# [0.146.0-node18-tooltips.38](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.37...v0.146.0-node18-tooltips.38) (2026-01-27)
|
|
90
55
|
|
|
91
56
|
|
|
92
|
-
|
|
57
|
+
### Features
|
|
93
58
|
|
|
94
|
-
|
|
59
|
+
* add superscript and subscript formatting options to DraftJS texteditor ([#5057](https://github.com/thebyte9/blaze/issues/5057)) ([1e898c7](https://github.com/thebyte9/blaze/commit/1e898c72a350b925d98d7ef0be0d11648dc2718d))
|
|
95
60
|
|
|
96
61
|
|
|
97
62
|
|
|
98
63
|
|
|
99
64
|
|
|
100
|
-
# [0.146.0-node18-
|
|
65
|
+
# [0.146.0-node18-tooltips.37](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.36...v0.146.0-node18-tooltips.37) (2026-01-08)
|
|
101
66
|
|
|
102
67
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
103
68
|
|
|
@@ -105,7 +70,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
105
70
|
|
|
106
71
|
|
|
107
72
|
|
|
108
|
-
# [0.146.0-node18-
|
|
73
|
+
# [0.146.0-node18-tooltips.34](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.33...v0.146.0-node18-tooltips.34) (2025-12-17)
|
|
109
74
|
|
|
110
75
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
111
76
|
|
|
@@ -113,7 +78,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
113
78
|
|
|
114
79
|
|
|
115
80
|
|
|
116
|
-
# [0.146.0-node18-
|
|
81
|
+
# [0.146.0-node18-tooltips.33](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.32...v0.146.0-node18-tooltips.33) (2025-12-15)
|
|
117
82
|
|
|
118
83
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
119
84
|
|
|
@@ -121,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
121
86
|
|
|
122
87
|
|
|
123
88
|
|
|
124
|
-
# [0.146.0-node18-
|
|
89
|
+
# [0.146.0-node18-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.31...v0.146.0-node18-tooltips.32) (2025-12-15)
|
|
125
90
|
|
|
126
91
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
127
92
|
|
|
@@ -129,7 +94,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
129
94
|
|
|
130
95
|
|
|
131
96
|
|
|
132
|
-
# [0.146.0-node18-
|
|
97
|
+
# [0.146.0-node18-tooltips.31](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.30...v0.146.0-node18-tooltips.31) (2025-11-18)
|
|
133
98
|
|
|
134
99
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
135
100
|
|
|
@@ -137,7 +102,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
137
102
|
|
|
138
103
|
|
|
139
104
|
|
|
140
|
-
# [0.146.0-node18-
|
|
105
|
+
# [0.146.0-node18-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.29...v0.146.0-node18-tooltips.30) (2025-11-17)
|
|
141
106
|
|
|
142
107
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
143
108
|
|
|
@@ -145,7 +110,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
145
110
|
|
|
146
111
|
|
|
147
112
|
|
|
148
|
-
# [0.146.0-node18-
|
|
113
|
+
# [0.146.0-node18-tooltips.28](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.27...v0.146.0-node18-tooltips.28) (2025-11-10)
|
|
149
114
|
|
|
150
115
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
151
116
|
|
|
@@ -153,7 +118,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
153
118
|
|
|
154
119
|
|
|
155
120
|
|
|
156
|
-
# [0.146.0-node18-
|
|
121
|
+
# [0.146.0-node18-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.26...v0.146.0-node18-tooltips.27) (2025-11-06)
|
|
157
122
|
|
|
158
123
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
159
124
|
|
|
@@ -161,7 +126,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
161
126
|
|
|
162
127
|
|
|
163
128
|
|
|
164
|
-
# [0.146.0-node18-
|
|
129
|
+
# [0.146.0-node18-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.25...v0.146.0-node18-tooltips.26) (2025-10-29)
|
|
165
130
|
|
|
166
131
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
167
132
|
|
|
@@ -169,7 +134,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
169
134
|
|
|
170
135
|
|
|
171
136
|
|
|
172
|
-
# [0.146.0-node18-
|
|
137
|
+
# [0.146.0-node18-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.21...v0.146.0-node18-tooltips.22) (2025-10-17)
|
|
173
138
|
|
|
174
139
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
175
140
|
|
|
@@ -177,25 +142,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
177
142
|
|
|
178
143
|
|
|
179
144
|
|
|
180
|
-
# [0.146.0-node18-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
### Bug Fixes
|
|
184
|
-
|
|
185
|
-
* fixes pagination issues in fileuploadadapter ([fb31a56](https://github.com/thebyte9/blaze/commit/fb31a563c6bf7560fe6e83d3ff567193ed0259cb))
|
|
186
|
-
* fixes pagination issues in fileuploadadapter ([4f8b786](https://github.com/thebyte9/blaze/commit/4f8b786b3e8e015a8775f9a9147efa4016147cdf))
|
|
187
|
-
* fixes pagination issues in fileuploadadapter ([b1d7740](https://github.com/thebyte9/blaze/commit/b1d7740b841bd151e96b4c8046c6b9c736b5d109))
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
### Features
|
|
191
|
-
|
|
192
|
-
* limit store type on using schema properties ([#4855](https://github.com/thebyte9/blaze/issues/4855)) ([d0ca5af](https://github.com/thebyte9/blaze/commit/d0ca5afd11b8b1803d5feed6656dfb3ba3a151a2))
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
# [0.146.0-node18-core-styles-tooltips.10](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.9...v0.146.0-node18-core-styles-tooltips.10) (2025-08-05)
|
|
145
|
+
# [0.146.0-node18-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.10...v0.146.0-node18-tooltips.11) (2025-10-01)
|
|
199
146
|
|
|
200
147
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
201
148
|
|
|
@@ -203,7 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
203
150
|
|
|
204
151
|
|
|
205
152
|
|
|
206
|
-
# [0.146.0-node18-
|
|
153
|
+
# [0.146.0-node18-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.3...v0.146.0-node18-tooltips.4) (2025-09-22)
|
|
207
154
|
|
|
208
155
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
209
156
|
|
|
@@ -211,18 +158,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
211
158
|
|
|
212
159
|
|
|
213
160
|
|
|
214
|
-
# [0.146.0-node18-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Features
|
|
218
|
-
|
|
219
|
-
* show change file button modal using React context ([#4816](https://github.com/thebyte9/blaze/issues/4816)) ([040089a](https://github.com/thebyte9/blaze/commit/040089a55a74f522e2bfd66870c3a1e703a081fa))
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
# [0.146.0-node18-core-styles-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-core-styles-tooltips.0) (2025-06-18)
|
|
161
|
+
# [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-09-09)
|
|
226
162
|
|
|
227
163
|
|
|
228
164
|
### Bug Fixes
|
|
@@ -232,6 +168,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
232
168
|
* fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
|
|
233
169
|
* fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
|
|
234
170
|
* fixed remaining failing tests ([8a5963f](https://github.com/thebyte9/blaze/commit/8a5963ff8a0bf615a2ced9fb77b8986a9b05d80c))
|
|
171
|
+
* fixes pagination issues in fileuploadadapter ([fb31a56](https://github.com/thebyte9/blaze/commit/fb31a563c6bf7560fe6e83d3ff567193ed0259cb))
|
|
172
|
+
* fixes pagination issues in fileuploadadapter ([4f8b786](https://github.com/thebyte9/blaze/commit/4f8b786b3e8e015a8775f9a9147efa4016147cdf))
|
|
173
|
+
* fixes pagination issues in fileuploadadapter ([b1d7740](https://github.com/thebyte9/blaze/commit/b1d7740b841bd151e96b4c8046c6b9c736b5d109))
|
|
235
174
|
* linting fixed automatically ([73135b9](https://github.com/thebyte9/blaze/commit/73135b9b8b0d5407e2e1dfba42ab2381f290607f))
|
|
236
175
|
* more test fixes ([a2a2f7a](https://github.com/thebyte9/blaze/commit/a2a2f7a650bb2c995660ba8e88e2d8f1c54586d7))
|
|
237
176
|
* removed unused var in test ([0143cb8](https://github.com/thebyte9/blaze/commit/0143cb80a591d7cdf894e7d74f5087dad5ff4a18))
|
|
@@ -247,7 +186,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
247
186
|
### Features
|
|
248
187
|
|
|
249
188
|
* add read only file viewer component ([#4527](https://github.com/thebyte9/blaze/issues/4527)) ([0bc416f](https://github.com/thebyte9/blaze/commit/0bc416f4cbdccaaa24e2e780b17636e84e4f8ffe))
|
|
189
|
+
* limit store type on using schema properties ([#4855](https://github.com/thebyte9/blaze/issues/4855)) ([d0ca5af](https://github.com/thebyte9/blaze/commit/d0ca5afd11b8b1803d5feed6656dfb3ba3a151a2))
|
|
250
190
|
* preserving filename on file update ([9a3a415](https://github.com/thebyte9/blaze/commit/9a3a4157db99820dae08130da47f6fe8f5f3f9e9))
|
|
191
|
+
* show change file button modal using React context ([#4816](https://github.com/thebyte9/blaze/issues/4816)) ([040089a](https://github.com/thebyte9/blaze/commit/040089a55a74f522e2bfd66870c3a1e703a081fa))
|
|
251
192
|
* simplify modal layout ([#4504](https://github.com/thebyte9/blaze/issues/4504)) ([fb513ff](https://github.com/thebyte9/blaze/commit/fb513ffd898d7b2b039469c0f76b7b21f54bf833))
|
|
252
193
|
* updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
|
|
253
194
|
|
|
@@ -14,26 +14,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
14
14
|
});
|
|
15
15
|
exports["default"] = void 0;
|
|
16
16
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
17
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
17
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
19
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
20
19
|
require("core-js/modules/es.function.name.js");
|
|
21
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
22
|
-
var _more = _interopRequireDefault(require("@blaze-react/more"));
|
|
23
|
-
var _button = _interopRequireDefault(require("@blaze-react/button"));
|
|
24
21
|
var _admin = require("@blaze-cms/admin");
|
|
25
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
26
23
|
var _adminUiUtils = require("@blaze-cms/admin-ui-utils");
|
|
27
24
|
var _client = require("@apollo/client");
|
|
28
|
-
var
|
|
25
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
26
|
var _toaster = require("@blaze-react/toaster");
|
|
30
27
|
var _modal = _interopRequireDefault(require("@blaze-react/modal"));
|
|
31
28
|
var _reactDom = require("react-dom");
|
|
32
29
|
var _reactRouterDom = require("react-router-dom");
|
|
30
|
+
var _pluginPageBuilderUi = require("@blaze-cms/plugin-page-builder-ui");
|
|
33
31
|
var _EditMediaFile = _interopRequireDefault(require("../EditMediaFile"));
|
|
34
32
|
var _bustUrl = _interopRequireDefault(require("../../utils/bustUrl"));
|
|
35
33
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
36
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
34
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
37
35
|
var CardMedia = function CardMedia(_ref) {
|
|
38
36
|
var onSelected = _ref.onSelected,
|
|
39
37
|
name = _ref.name,
|
|
@@ -75,8 +73,20 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
75
73
|
type = _mimetype$split2[0],
|
|
76
74
|
extension = _mimetype$split2[1];
|
|
77
75
|
var client = (0, _client.useApolloClient)();
|
|
76
|
+
var _useQuery = (0, _client.useQuery)((0, _adminUiUtils.getQuery)('GET_ENTITY_SCHEMA'), {
|
|
77
|
+
variables: {
|
|
78
|
+
identifier: 'file'
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
_useQuery$data = _useQuery.data,
|
|
82
|
+
_useQuery$data2 = _useQuery$data === void 0 ? {} : _useQuery$data,
|
|
83
|
+
_useQuery$data2$getEn = _useQuery$data2.getEntitySchemas,
|
|
84
|
+
_useQuery$data2$getEn2 = _useQuery$data2$getEn === void 0 ? [] : _useQuery$data2$getEn,
|
|
85
|
+
_useQuery$data2$getEn3 = (0, _slicedToArray2["default"])(_useQuery$data2$getEn2, 1),
|
|
86
|
+
schemaData = _useQuery$data2$getEn3[0],
|
|
87
|
+
schemaLoading = _useQuery.loading;
|
|
78
88
|
var deleteFileById = /*#__PURE__*/function () {
|
|
79
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
89
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
80
90
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
81
91
|
while (1) switch (_context.prev = _context.next) {
|
|
82
92
|
case 0:
|
|
@@ -117,22 +127,38 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
117
127
|
return _ref2.apply(this, arguments);
|
|
118
128
|
};
|
|
119
129
|
}();
|
|
120
|
-
var
|
|
130
|
+
var handleRowClick = function handleRowClick() {
|
|
131
|
+
return onSelected({
|
|
132
|
+
id: id,
|
|
133
|
+
url: url,
|
|
134
|
+
name: name,
|
|
135
|
+
data: data
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
var handleCheckboxToggle = (0, _react.useCallback)(function (e) {
|
|
139
|
+
e.preventDefault();
|
|
140
|
+
e.stopPropagation();
|
|
121
141
|
onSelected({
|
|
122
142
|
id: id,
|
|
123
143
|
url: url,
|
|
124
144
|
name: name,
|
|
125
145
|
data: data
|
|
126
146
|
});
|
|
147
|
+
}, [id, url, name, data, onSelected]);
|
|
148
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
149
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
150
|
+
e.preventDefault();
|
|
151
|
+
handleRowClick();
|
|
152
|
+
}
|
|
127
153
|
};
|
|
128
|
-
var cardMediaClassNames = (0,
|
|
154
|
+
var cardMediaClassNames = (0, _classnames["default"])('card card--media-list card--media-list-row', "card--media-".concat(displayLayout), {
|
|
129
155
|
'card--media-list--selected': selected
|
|
130
|
-
}
|
|
156
|
+
});
|
|
131
157
|
var handleCloseModal = function handleCloseModal() {
|
|
132
|
-
setDisplayEditModal(false);
|
|
158
|
+
return setDisplayEditModal(false);
|
|
133
159
|
};
|
|
134
160
|
var handleSaveButtonStatus = function handleSaveButtonStatus(state) {
|
|
135
|
-
setEnableSaveButton(state);
|
|
161
|
+
return setEnableSaveButton(state);
|
|
136
162
|
};
|
|
137
163
|
var modalActions = [{
|
|
138
164
|
textButton: 'Cancel',
|
|
@@ -146,10 +172,13 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
146
172
|
modifiers: enableSaveButton ? [] : ['disabled']
|
|
147
173
|
}];
|
|
148
174
|
var handleFileChange = function handleFileChange(file) {
|
|
149
|
-
setFileData(file);
|
|
175
|
+
return setFileData(file);
|
|
176
|
+
};
|
|
177
|
+
var handleStopPropagation = function handleStopPropagation(e) {
|
|
178
|
+
return e.stopPropagation();
|
|
150
179
|
};
|
|
151
180
|
var handleFormSave = /*#__PURE__*/function () {
|
|
152
|
-
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
181
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
153
182
|
var _yield$client$mutate, updatedFile;
|
|
154
183
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
155
184
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -159,7 +188,7 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
159
188
|
return client.mutate({
|
|
160
189
|
mutation: (0, _adminUiUtils.getMutation)('UPDATE_FILE'),
|
|
161
190
|
variables: {
|
|
162
|
-
input: fileData
|
|
191
|
+
input: fileData.formData
|
|
163
192
|
},
|
|
164
193
|
update: function update(cache, _ref4) {
|
|
165
194
|
var fileUpdated = _ref4.data.updateFile;
|
|
@@ -208,7 +237,8 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
208
237
|
return _ref3.apply(this, arguments);
|
|
209
238
|
};
|
|
210
239
|
}();
|
|
211
|
-
|
|
240
|
+
if (schemaLoading) return null;
|
|
241
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, displayEditModal && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(_modal["default"], {
|
|
212
242
|
title: "Edit",
|
|
213
243
|
actions: modalActions,
|
|
214
244
|
onClose: handleCloseModal
|
|
@@ -217,12 +247,9 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
217
247
|
fileId: id,
|
|
218
248
|
handleSaveButtonStatus: handleSaveButtonStatus,
|
|
219
249
|
handleFormSave: handleFormSave,
|
|
220
|
-
enableSaveButton: enableSaveButton
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
role: "button",
|
|
224
|
-
onClick: handleClick
|
|
225
|
-
}, displayDeleteModal && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement(_admin.DeleteAction, {
|
|
250
|
+
enableSaveButton: enableSaveButton,
|
|
251
|
+
schemaData: schemaData
|
|
252
|
+
})), modalTargetRef.current), displayDeleteModal && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(_admin.DeleteAction, {
|
|
226
253
|
onClose: function onClose() {
|
|
227
254
|
return setDisplayDeleteModal(false);
|
|
228
255
|
},
|
|
@@ -230,7 +257,22 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
230
257
|
return deleteFileById();
|
|
231
258
|
},
|
|
232
259
|
itemName: name
|
|
233
|
-
}), modalTargetRef.current),
|
|
260
|
+
}), modalTargetRef.current), /*#__PURE__*/_react["default"].createElement("div", {
|
|
261
|
+
className: cardMediaClassNames,
|
|
262
|
+
role: "option",
|
|
263
|
+
"aria-selected": selected,
|
|
264
|
+
tabIndex: 0,
|
|
265
|
+
onClick: handleRowClick,
|
|
266
|
+
onKeyDown: handleKeyDown
|
|
267
|
+
}, openEditInModal && /*#__PURE__*/_react["default"].createElement("div", {
|
|
268
|
+
className: "card__select"
|
|
269
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
270
|
+
type: "checkbox",
|
|
271
|
+
"aria-label": "Select ".concat(name),
|
|
272
|
+
checked: !!selected,
|
|
273
|
+
onChange: handleCheckboxToggle,
|
|
274
|
+
onClick: handleStopPropagation
|
|
275
|
+
})), type === 'image' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
276
|
className: "card__image card__image--media-".concat(displayLayout)
|
|
235
277
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
236
278
|
src: (0, _bustUrl["default"])(url, updated),
|
|
@@ -241,7 +283,8 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
241
283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
284
|
width: "100",
|
|
243
285
|
height: "100",
|
|
244
|
-
viewBox: "0 0 8 8"
|
|
286
|
+
viewBox: "0 0 8 8",
|
|
287
|
+
"aria-hidden": "true"
|
|
245
288
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
246
289
|
d: "M0 0v8h7v-4h-4v-4h-3zm4 0v3h3l-3-3zm-3 2h1v1h-1v-1zm0 2h1v1h-1v-1zm0 2h4v1h-4v-1z"
|
|
247
290
|
}))), /*#__PURE__*/_react["default"].createElement("footer", {
|
|
@@ -250,36 +293,50 @@ var CardMedia = function CardMedia(_ref) {
|
|
|
250
293
|
className: "card__details card__details--media-".concat(displayLayout)
|
|
251
294
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
252
295
|
className: "card__title card__title--media-".concat(displayLayout)
|
|
253
|
-
}, /*#__PURE__*/_react["default"].createElement("h2",
|
|
254
|
-
className: "
|
|
255
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
256
|
-
className: "
|
|
257
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
258
|
-
|
|
259
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
event.preventDefault();
|
|
268
|
-
event.stopPropagation();
|
|
296
|
+
}, /*#__PURE__*/_react["default"].createElement("h2", {
|
|
297
|
+
className: "card__file-name"
|
|
298
|
+
}, name)), /*#__PURE__*/_react["default"].createElement("p", {
|
|
299
|
+
className: "card__meta"
|
|
300
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Format: ", extension))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
301
|
+
className: "card__menu card__menu--icons card__menu--".concat(displayLayout)
|
|
302
|
+
}, openEditInModal ? /*#__PURE__*/_react["default"].createElement("button", {
|
|
303
|
+
type: "button",
|
|
304
|
+
className: "card__icon-btn",
|
|
305
|
+
title: "Edit",
|
|
306
|
+
"aria-label": "Edit",
|
|
307
|
+
onClick: function onClick(e) {
|
|
308
|
+
e.preventDefault();
|
|
309
|
+
e.stopPropagation();
|
|
269
310
|
setDisplayEditModal(true);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
311
|
+
}
|
|
312
|
+
}, /*#__PURE__*/_react["default"].createElement(_pluginPageBuilderUi.EditIcon, {
|
|
313
|
+
width: "20px",
|
|
314
|
+
height: "20px"
|
|
315
|
+
})) : /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Link, {
|
|
273
316
|
to: "/media/edit/".concat(id),
|
|
274
|
-
className: "
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
317
|
+
className: "card__icon-btn",
|
|
318
|
+
title: "Edit",
|
|
319
|
+
"aria-label": "Edit",
|
|
320
|
+
onClick: function onClick(e) {
|
|
321
|
+
return e.stopPropagation();
|
|
322
|
+
}
|
|
323
|
+
}, /*#__PURE__*/_react["default"].createElement(_pluginPageBuilderUi.EditIcon, {
|
|
324
|
+
width: "20px",
|
|
325
|
+
height: "20px"
|
|
326
|
+
})), /*#__PURE__*/_react["default"].createElement("button", {
|
|
327
|
+
type: "button",
|
|
328
|
+
className: "card__icon-btn",
|
|
329
|
+
title: "Delete",
|
|
330
|
+
"aria-label": "Delete",
|
|
331
|
+
onClick: function onClick(e) {
|
|
332
|
+
e.preventDefault();
|
|
333
|
+
e.stopPropagation();
|
|
279
334
|
setDisplayDeleteModal(true);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
335
|
+
}
|
|
336
|
+
}, /*#__PURE__*/_react["default"].createElement(_pluginPageBuilderUi.DeleteIcon, {
|
|
337
|
+
width: "18px",
|
|
338
|
+
height: "18px"
|
|
339
|
+
}))))));
|
|
283
340
|
};
|
|
284
341
|
CardMedia.propTypes = {
|
|
285
342
|
name: _propTypes["default"].string.isRequired,
|