@panneau/medias 4.0.72 → 4.0.74
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/index.d.ts +78 -90
- package/dist/index.js +0 -3
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -118,22 +118,24 @@ interface UseMediasOpts {
|
|
|
118
118
|
[key: string]: unknown;
|
|
119
119
|
}
|
|
120
120
|
declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMediasOpts): {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
isLoading: boolean;
|
|
122
|
+
isFetching: boolean;
|
|
123
|
+
isRefetching: boolean;
|
|
124
|
+
isFetched: boolean;
|
|
125
|
+
pages: {};
|
|
126
|
+
allItems: any;
|
|
127
|
+
loading: boolean;
|
|
128
|
+
loaded: boolean;
|
|
129
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
130
|
+
updateItem: (item: any) => void;
|
|
123
131
|
pagination: {
|
|
124
132
|
page: number;
|
|
125
133
|
lastPage: number;
|
|
126
134
|
total: number;
|
|
127
|
-
}
|
|
128
|
-
loading: boolean;
|
|
129
|
-
loaded: boolean;
|
|
130
|
-
reload: () => void;
|
|
131
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
132
|
-
data: _panneau_data.UseItemsResponse<_panneau_core.Media>;
|
|
135
|
+
};
|
|
133
136
|
error: Error;
|
|
134
137
|
isError: true;
|
|
135
138
|
isPending: false;
|
|
136
|
-
isLoading: false;
|
|
137
139
|
isLoadingError: false;
|
|
138
140
|
isRefetchError: true;
|
|
139
141
|
isSuccess: false;
|
|
@@ -144,35 +146,33 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
144
146
|
failureCount: number;
|
|
145
147
|
failureReason: Error;
|
|
146
148
|
errorUpdateCount: number;
|
|
147
|
-
isFetched: boolean;
|
|
148
149
|
isFetchedAfterMount: boolean;
|
|
149
|
-
isFetching: boolean;
|
|
150
150
|
isInitialLoading: boolean;
|
|
151
151
|
isPaused: boolean;
|
|
152
|
-
isRefetching: boolean;
|
|
153
152
|
isStale: boolean;
|
|
154
153
|
isEnabled: boolean;
|
|
155
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
156
154
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
157
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
158
|
-
items:
|
|
155
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
156
|
+
items: any;
|
|
159
157
|
} | {
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
isLoading: boolean;
|
|
159
|
+
isFetching: boolean;
|
|
160
|
+
isRefetching: boolean;
|
|
161
|
+
isFetched: boolean;
|
|
162
|
+
pages: {};
|
|
163
|
+
allItems: any;
|
|
164
|
+
loading: boolean;
|
|
165
|
+
loaded: boolean;
|
|
166
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
167
|
+
updateItem: (item: any) => void;
|
|
162
168
|
pagination: {
|
|
163
169
|
page: number;
|
|
164
170
|
lastPage: number;
|
|
165
171
|
total: number;
|
|
166
|
-
}
|
|
167
|
-
loading: boolean;
|
|
168
|
-
loaded: boolean;
|
|
169
|
-
reload: () => void;
|
|
170
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
171
|
-
data: _panneau_data.UseItemsResponse<_panneau_core.Media>;
|
|
172
|
+
};
|
|
172
173
|
error: null;
|
|
173
174
|
isError: false;
|
|
174
175
|
isPending: false;
|
|
175
|
-
isLoading: false;
|
|
176
176
|
isLoadingError: false;
|
|
177
177
|
isRefetchError: false;
|
|
178
178
|
isSuccess: true;
|
|
@@ -183,35 +183,33 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
183
183
|
failureCount: number;
|
|
184
184
|
failureReason: Error;
|
|
185
185
|
errorUpdateCount: number;
|
|
186
|
-
isFetched: boolean;
|
|
187
186
|
isFetchedAfterMount: boolean;
|
|
188
|
-
isFetching: boolean;
|
|
189
187
|
isInitialLoading: boolean;
|
|
190
188
|
isPaused: boolean;
|
|
191
|
-
isRefetching: boolean;
|
|
192
189
|
isStale: boolean;
|
|
193
190
|
isEnabled: boolean;
|
|
194
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
195
191
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
196
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
197
|
-
items:
|
|
192
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
193
|
+
items: any;
|
|
198
194
|
} | {
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
isLoading: boolean;
|
|
196
|
+
isFetching: boolean;
|
|
197
|
+
isRefetching: boolean;
|
|
198
|
+
isFetched: boolean;
|
|
199
|
+
pages: {};
|
|
200
|
+
allItems: any;
|
|
201
|
+
loading: boolean;
|
|
202
|
+
loaded: boolean;
|
|
203
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
204
|
+
updateItem: (item: any) => void;
|
|
201
205
|
pagination: {
|
|
202
206
|
page: number;
|
|
203
207
|
lastPage: number;
|
|
204
208
|
total: number;
|
|
205
|
-
}
|
|
206
|
-
loading: boolean;
|
|
207
|
-
loaded: boolean;
|
|
208
|
-
reload: () => void;
|
|
209
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
210
|
-
data: undefined;
|
|
209
|
+
};
|
|
211
210
|
error: Error;
|
|
212
211
|
isError: true;
|
|
213
212
|
isPending: false;
|
|
214
|
-
isLoading: false;
|
|
215
213
|
isLoadingError: true;
|
|
216
214
|
isRefetchError: false;
|
|
217
215
|
isSuccess: false;
|
|
@@ -222,35 +220,33 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
222
220
|
failureCount: number;
|
|
223
221
|
failureReason: Error;
|
|
224
222
|
errorUpdateCount: number;
|
|
225
|
-
isFetched: boolean;
|
|
226
223
|
isFetchedAfterMount: boolean;
|
|
227
|
-
isFetching: boolean;
|
|
228
224
|
isInitialLoading: boolean;
|
|
229
225
|
isPaused: boolean;
|
|
230
|
-
isRefetching: boolean;
|
|
231
226
|
isStale: boolean;
|
|
232
227
|
isEnabled: boolean;
|
|
233
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
234
228
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
235
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
236
|
-
items:
|
|
229
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
230
|
+
items: any;
|
|
237
231
|
} | {
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
isLoading: boolean;
|
|
233
|
+
isFetching: boolean;
|
|
234
|
+
isRefetching: boolean;
|
|
235
|
+
isFetched: boolean;
|
|
236
|
+
pages: {};
|
|
237
|
+
allItems: any;
|
|
238
|
+
loading: boolean;
|
|
239
|
+
loaded: boolean;
|
|
240
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
241
|
+
updateItem: (item: any) => void;
|
|
240
242
|
pagination: {
|
|
241
243
|
page: number;
|
|
242
244
|
lastPage: number;
|
|
243
245
|
total: number;
|
|
244
|
-
}
|
|
245
|
-
loading: boolean;
|
|
246
|
-
loaded: boolean;
|
|
247
|
-
reload: () => void;
|
|
248
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
249
|
-
data: undefined;
|
|
246
|
+
};
|
|
250
247
|
error: null;
|
|
251
248
|
isError: false;
|
|
252
249
|
isPending: true;
|
|
253
|
-
isLoading: true;
|
|
254
250
|
isLoadingError: false;
|
|
255
251
|
isRefetchError: false;
|
|
256
252
|
isSuccess: false;
|
|
@@ -261,31 +257,30 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
261
257
|
failureCount: number;
|
|
262
258
|
failureReason: Error;
|
|
263
259
|
errorUpdateCount: number;
|
|
264
|
-
isFetched: boolean;
|
|
265
260
|
isFetchedAfterMount: boolean;
|
|
266
|
-
isFetching: boolean;
|
|
267
261
|
isInitialLoading: boolean;
|
|
268
262
|
isPaused: boolean;
|
|
269
|
-
isRefetching: boolean;
|
|
270
263
|
isStale: boolean;
|
|
271
264
|
isEnabled: boolean;
|
|
272
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
273
265
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
274
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
275
|
-
items:
|
|
266
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
267
|
+
items: any;
|
|
276
268
|
} | {
|
|
277
|
-
|
|
278
|
-
|
|
269
|
+
isLoading: boolean;
|
|
270
|
+
isFetching: boolean;
|
|
271
|
+
isRefetching: boolean;
|
|
272
|
+
isFetched: boolean;
|
|
273
|
+
pages: {};
|
|
274
|
+
allItems: any;
|
|
275
|
+
loading: boolean;
|
|
276
|
+
loaded: boolean;
|
|
277
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
278
|
+
updateItem: (item: any) => void;
|
|
279
279
|
pagination: {
|
|
280
280
|
page: number;
|
|
281
281
|
lastPage: number;
|
|
282
282
|
total: number;
|
|
283
|
-
}
|
|
284
|
-
loading: boolean;
|
|
285
|
-
loaded: boolean;
|
|
286
|
-
reload: () => void;
|
|
287
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
288
|
-
data: undefined;
|
|
283
|
+
};
|
|
289
284
|
error: null;
|
|
290
285
|
isError: false;
|
|
291
286
|
isPending: true;
|
|
@@ -299,36 +294,33 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
299
294
|
failureCount: number;
|
|
300
295
|
failureReason: Error;
|
|
301
296
|
errorUpdateCount: number;
|
|
302
|
-
isFetched: boolean;
|
|
303
297
|
isFetchedAfterMount: boolean;
|
|
304
|
-
isFetching: boolean;
|
|
305
|
-
isLoading: boolean;
|
|
306
298
|
isInitialLoading: boolean;
|
|
307
299
|
isPaused: boolean;
|
|
308
|
-
isRefetching: boolean;
|
|
309
300
|
isStale: boolean;
|
|
310
301
|
isEnabled: boolean;
|
|
311
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
312
302
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
313
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
314
|
-
items:
|
|
303
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
304
|
+
items: any;
|
|
315
305
|
} | {
|
|
316
|
-
|
|
317
|
-
|
|
306
|
+
isLoading: boolean;
|
|
307
|
+
isFetching: boolean;
|
|
308
|
+
isRefetching: boolean;
|
|
309
|
+
isFetched: boolean;
|
|
310
|
+
pages: {};
|
|
311
|
+
allItems: any;
|
|
312
|
+
loading: boolean;
|
|
313
|
+
loaded: boolean;
|
|
314
|
+
reload: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>, Error>>;
|
|
315
|
+
updateItem: (item: any) => void;
|
|
318
316
|
pagination: {
|
|
319
317
|
page: number;
|
|
320
318
|
lastPage: number;
|
|
321
319
|
total: number;
|
|
322
|
-
}
|
|
323
|
-
loading: boolean;
|
|
324
|
-
loaded: boolean;
|
|
325
|
-
reload: () => void;
|
|
326
|
-
updateItem: (item: _panneau_core.Media) => void;
|
|
327
|
-
data: _panneau_data.UseItemsResponse<_panneau_core.Media>;
|
|
320
|
+
};
|
|
328
321
|
isError: false;
|
|
329
322
|
error: null;
|
|
330
323
|
isPending: false;
|
|
331
|
-
isLoading: false;
|
|
332
324
|
isLoadingError: false;
|
|
333
325
|
isRefetchError: false;
|
|
334
326
|
isSuccess: true;
|
|
@@ -339,18 +331,14 @@ declare function useMedias(query?: any, page?: any, count?: any, opts?: UseMedia
|
|
|
339
331
|
failureCount: number;
|
|
340
332
|
failureReason: Error;
|
|
341
333
|
errorUpdateCount: number;
|
|
342
|
-
isFetched: boolean;
|
|
343
334
|
isFetchedAfterMount: boolean;
|
|
344
|
-
isFetching: boolean;
|
|
345
335
|
isInitialLoading: boolean;
|
|
346
336
|
isPaused: boolean;
|
|
347
|
-
isRefetching: boolean;
|
|
348
337
|
isStale: boolean;
|
|
349
338
|
isEnabled: boolean;
|
|
350
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_panneau_data.UseItemsResponse<_panneau_core.Media>, Error>>;
|
|
351
339
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
352
|
-
promise: Promise<_panneau_data.UseItemsResponse<_panneau_core.Media
|
|
353
|
-
items:
|
|
340
|
+
promise: Promise<NoInfer<_panneau_data.UseItemsResponse<_panneau_core.Media>>>;
|
|
341
|
+
items: any;
|
|
354
342
|
};
|
|
355
343
|
|
|
356
344
|
declare function useMedia(id: string, opts: any): {
|
package/dist/index.js
CHANGED
|
@@ -1769,7 +1769,6 @@ function MediasBrowser(t0) {
|
|
|
1769
1769
|
acc.push({
|
|
1770
1770
|
id: "restore",
|
|
1771
1771
|
component: "restore",
|
|
1772
|
-
withConfirmation: true,
|
|
1773
1772
|
action: ids => mediaRestore(ids[0]).then(reload)
|
|
1774
1773
|
});
|
|
1775
1774
|
}
|
|
@@ -1955,8 +1954,6 @@ function MediasBrowser(t0) {
|
|
|
1955
1954
|
loaded: loaded,
|
|
1956
1955
|
actionsProps: {
|
|
1957
1956
|
getDeletePropsFromValue: () => ({
|
|
1958
|
-
href: null,
|
|
1959
|
-
withConfirmation: true,
|
|
1960
1957
|
disabled: destroying,
|
|
1961
1958
|
icon: showTrashed ? "trash-fill" : "trash",
|
|
1962
1959
|
action: ids_0 => onTrashMedia(ids_0[0])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/medias",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.74",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/runtime": "^7.28.6",
|
|
54
|
-
"@panneau/core": "^4.0.
|
|
55
|
-
"@panneau/data": "^4.0.
|
|
56
|
-
"@panneau/display-image": "^4.0.
|
|
57
|
-
"@panneau/element-button": "^4.0.
|
|
58
|
-
"@panneau/element-buttons": "^4.0.
|
|
59
|
-
"@panneau/element-form": "^4.0.
|
|
60
|
-
"@panneau/element-form-status": "^4.0.
|
|
61
|
-
"@panneau/element-grid": "^4.0.
|
|
62
|
-
"@panneau/element-icon": "^4.0.
|
|
63
|
-
"@panneau/element-media-card": "^4.0.
|
|
64
|
-
"@panneau/element-media-player": "^4.0.
|
|
65
|
-
"@panneau/element-pagination": "^4.0.
|
|
66
|
-
"@panneau/field-upload": "^4.0.
|
|
67
|
-
"@panneau/filter-filters": "^4.0.
|
|
68
|
-
"@panneau/list-table": "^4.0.
|
|
54
|
+
"@panneau/core": "^4.0.74",
|
|
55
|
+
"@panneau/data": "^4.0.74",
|
|
56
|
+
"@panneau/display-image": "^4.0.74",
|
|
57
|
+
"@panneau/element-button": "^4.0.74",
|
|
58
|
+
"@panneau/element-buttons": "^4.0.74",
|
|
59
|
+
"@panneau/element-form": "^4.0.74",
|
|
60
|
+
"@panneau/element-form-status": "^4.0.74",
|
|
61
|
+
"@panneau/element-grid": "^4.0.74",
|
|
62
|
+
"@panneau/element-icon": "^4.0.74",
|
|
63
|
+
"@panneau/element-media-card": "^4.0.74",
|
|
64
|
+
"@panneau/element-media-player": "^4.0.74",
|
|
65
|
+
"@panneau/element-pagination": "^4.0.74",
|
|
66
|
+
"@panneau/field-upload": "^4.0.74",
|
|
67
|
+
"@panneau/filter-filters": "^4.0.74",
|
|
68
|
+
"@panneau/list-table": "^4.0.74",
|
|
69
69
|
"classnames": "^2.5.1",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
71
71
|
"react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "122cadcf8ea5faacc035e7fe911fbdfb9fb87d26"
|
|
85
85
|
}
|