@nkhang1902/strapi-plugin-export-import-clsx 1.1.152 → 1.1.153

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.
@@ -101,6 +101,31 @@ const ExportImportButtons = (props) => {
101
101
  return filters;
102
102
  };
103
103
 
104
+ function showLongNotification(toggle, {
105
+ title,
106
+ message,
107
+ type = 'warning',
108
+ duration = 15000, // 15 seconds
109
+ }) {
110
+ toggle({
111
+ type,
112
+ title,
113
+ message: (
114
+ <div style={{
115
+ maxHeight: '260px',
116
+ overflowY: 'auto',
117
+ whiteSpace: 'pre-wrap',
118
+ fontSize: 13,
119
+ lineHeight: 1.5,
120
+ paddingRight: 4,
121
+ }}>
122
+ {message}
123
+ </div>
124
+ ),
125
+ timeout: duration,
126
+ });
127
+ }
128
+
104
129
  const handleExport = async () => {
105
130
  const contentType = getContentType();
106
131
  if (!contentType) {
@@ -201,6 +226,11 @@ const ExportImportButtons = (props) => {
201
226
  if (errorList.length > 0) {
202
227
  setImportErrors(errorList);
203
228
  setShowErrorModal(true);
229
+ showLongNotification(toggleNotification, {
230
+ title: "Import errors",
231
+ message: errorList.join("\n"),
232
+ type: "danger",
233
+ })
204
234
  } else if (total > 0) {
205
235
  toggleNotification({
206
236
  type: "success",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.1.152",
3
+ "version": "1.1.153",
4
4
  "description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
5
5
  "main": "./strapi-server.js",
6
6
  "scripts": {