@micromag/media-gallery 0.4.84 → 0.4.86
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/es/index.d.ts +1 -3
- package/es/index.js +2 -1
- package/package.json +4 -4
package/es/index.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Media } from '@micromag/core';
|
|
3
3
|
|
|
4
4
|
interface MediaGalleryProps {
|
|
5
|
-
value?:
|
|
6
|
-
id?: string | number;
|
|
7
|
-
} | null;
|
|
5
|
+
value?: Media | Media[] | null;
|
|
8
6
|
types?: string | unknown[] | null;
|
|
9
7
|
source?: string;
|
|
10
8
|
filters?: {
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import isArray from 'lodash/isArray';
|
|
3
|
+
import isObject from 'lodash/isObject';
|
|
3
4
|
import { useMemo, useCallback } from 'react';
|
|
4
5
|
import { MediasPickerContainer, MediasBrowserContainer } from '@panneau/medias';
|
|
5
6
|
import { useStory } from '@micromag/core/contexts';
|
|
@@ -443,7 +444,7 @@ function MediaGallery({
|
|
|
443
444
|
children: isPicker ? /*#__PURE__*/jsx(MediasPickerContainer, {
|
|
444
445
|
className: styles.browser,
|
|
445
446
|
api: mediasApi,
|
|
446
|
-
value: value,
|
|
447
|
+
value: isObject(value) ? [value] : value,
|
|
447
448
|
theme: "dark",
|
|
448
449
|
types: finalTypes_0,
|
|
449
450
|
query: finalQuery,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.86",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
67
67
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
68
68
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
69
|
-
"@micromag/core": "^0.4.
|
|
70
|
-
"@micromag/data": "^0.4.
|
|
69
|
+
"@micromag/core": "^0.4.86",
|
|
70
|
+
"@micromag/data": "^0.4.86",
|
|
71
71
|
"@panneau/medias": "^4.0.42",
|
|
72
72
|
"bootstrap": "^5.3.8",
|
|
73
73
|
"classnames": "^2.2.6",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"access": "public",
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "24785d81e840b81c58dc101ba7305d088e61f0e0",
|
|
84
84
|
"types": "es/index.d.ts"
|
|
85
85
|
}
|