@micromag/media-gallery 0.4.97 → 0.4.100
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.js +4 -4
- package/package.json +22 -19
package/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _isArray from 'lodash/isArray';
|
|
2
1
|
import { c } from 'react/compiler-runtime';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import isArray from 'lodash-es/isArray';
|
|
4
|
+
import isObject from 'lodash-es/isObject';
|
|
5
|
+
import isString from 'lodash-es/isString';
|
|
6
6
|
import { MediasPickerContainer, MediasBrowserContainer } from '@panneau/medias';
|
|
7
7
|
import { useStory } from '@micromag/core/contexts';
|
|
8
8
|
import { useApi, useMediaCreate } from '@micromag/data';
|
|
@@ -770,7 +770,7 @@ function MediaGallery(t0) {
|
|
|
770
770
|
if ($[25] !== multiple || $[26] !== onChange) {
|
|
771
771
|
t27 = newValue => {
|
|
772
772
|
if (onChange !== null) {
|
|
773
|
-
onChange(!multiple &&
|
|
773
|
+
onChange(!multiple && isArray(newValue) ? newValue?.[0] ?? null : newValue);
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
$[25] = multiple;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.100",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/urbania-media/micromag-js.git"
|
|
13
13
|
},
|
|
14
|
+
"license": "ISC",
|
|
14
15
|
"author": {
|
|
15
16
|
"name": "Folklore",
|
|
16
17
|
"email": "info@folklore.email"
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
"email": "jc@folklore.email"
|
|
30
31
|
}
|
|
31
32
|
],
|
|
32
|
-
"
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css"
|
|
35
|
+
],
|
|
33
36
|
"type": "module",
|
|
34
|
-
"module": "es/index.js",
|
|
35
|
-
"style": "./assets/css/styles.css",
|
|
36
37
|
"exports": {
|
|
37
38
|
".": {
|
|
38
39
|
"types": "./es/index.d.ts",
|
|
@@ -42,23 +43,18 @@
|
|
|
42
43
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
43
44
|
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
44
45
|
},
|
|
46
|
+
"module": "es/index.js",
|
|
47
|
+
"types": "es/index.d.ts",
|
|
48
|
+
"style": "./assets/css/styles.css",
|
|
45
49
|
"files": [
|
|
46
50
|
"lib",
|
|
47
51
|
"es",
|
|
48
52
|
"assets"
|
|
49
53
|
],
|
|
50
54
|
"scripts": {
|
|
55
|
+
"build": "../../scripts/prepare-package.sh --types",
|
|
51
56
|
"clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf styles",
|
|
52
|
-
"prepublishOnly": "npm run build"
|
|
53
|
-
"build": "../../scripts/prepare-package.sh --types"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"react": "^19.0.0",
|
|
57
|
-
"react-dom": "^19.0.0"
|
|
58
|
-
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"react": "^19.0.0",
|
|
61
|
-
"react-dom": "^19.0.0"
|
|
57
|
+
"prepublishOnly": "npm run build"
|
|
62
58
|
},
|
|
63
59
|
"dependencies": {
|
|
64
60
|
"@babel/runtime": "^7.28.6",
|
|
@@ -66,20 +62,27 @@
|
|
|
66
62
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
67
63
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
68
64
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
69
|
-
"@micromag/core": "^0.4.
|
|
70
|
-
"@micromag/data": "^0.4.
|
|
65
|
+
"@micromag/core": "^0.4.100",
|
|
66
|
+
"@micromag/data": "^0.4.100",
|
|
71
67
|
"@panneau/medias": "^4.0.55",
|
|
72
68
|
"bootstrap": "^5.3.8",
|
|
73
69
|
"classnames": "^2.2.6",
|
|
74
|
-
"lodash": "^4.17.23",
|
|
70
|
+
"lodash-es": "^4.17.23",
|
|
75
71
|
"pretty-bytes": "^6.1.1",
|
|
76
72
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
77
73
|
"wouter": "^3.0.0"
|
|
78
74
|
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"react": "^19.0.0",
|
|
77
|
+
"react-dom": "^19.0.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"react": "^19.0.0",
|
|
81
|
+
"react-dom": "^19.0.0"
|
|
82
|
+
},
|
|
79
83
|
"publishConfig": {
|
|
80
84
|
"access": "public",
|
|
81
85
|
"registry": "https://registry.npmjs.org/"
|
|
82
86
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
-
"types": "es/index.d.ts"
|
|
87
|
+
"gitHead": "724328f428f29f4950850cf34adb68ef5f46669a"
|
|
85
88
|
}
|