@ndla/image-search 2.0.34 → 2.0.37
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/ImageSearchResult.js +2 -1
- package/es/PreviewImage.js +2 -1
- package/lib/ImageSearchResult.js +2 -1
- package/lib/PreviewImage.js +2 -1
- package/package.json +6 -8
package/es/ImageSearchResult.js
CHANGED
package/es/PreviewImage.js
CHANGED
|
@@ -50,7 +50,8 @@ var PreviewImage = function PreviewImage(_ref) {
|
|
|
50
50
|
alt: "presentation",
|
|
51
51
|
srcSet: getSrcSets(image.imageUrl),
|
|
52
52
|
sizes: "(min-width: 800px) 360px, (min-width: 400px) 300px, 100vw",
|
|
53
|
-
src: image.imageUrl
|
|
53
|
+
src: image.imageUrl,
|
|
54
|
+
"aria-label": title
|
|
54
55
|
})), ___EmotionJSX("div", {
|
|
55
56
|
className: "information"
|
|
56
57
|
}, ___EmotionJSX("h2", {
|
package/lib/ImageSearchResult.js
CHANGED
package/lib/PreviewImage.js
CHANGED
|
@@ -62,7 +62,8 @@ var PreviewImage = function PreviewImage(_ref) {
|
|
|
62
62
|
alt: "presentation",
|
|
63
63
|
srcSet: (0, _imageUtil.getSrcSets)(image.imageUrl),
|
|
64
64
|
sizes: "(min-width: 800px) 360px, (min-width: 400px) 300px, 100vw",
|
|
65
|
-
src: image.imageUrl
|
|
65
|
+
src: image.imageUrl,
|
|
66
|
+
"aria-label": title
|
|
66
67
|
})), (0, _core.jsx)("div", {
|
|
67
68
|
className: "information"
|
|
68
69
|
}, (0, _core.jsx)("h2", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/image-search",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.37",
|
|
4
4
|
"description": "A simple library for searching images from NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -26,12 +26,11 @@
|
|
|
26
26
|
"es"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ndla/button": "^1.1.
|
|
29
|
+
"@ndla/button": "^1.1.10",
|
|
30
30
|
"@ndla/core": "^0.7.3",
|
|
31
|
-
"@ndla/forms": "^1.0.
|
|
31
|
+
"@ndla/forms": "^1.0.71",
|
|
32
32
|
"@ndla/icons": "^1.5.0",
|
|
33
|
-
"@ndla/
|
|
34
|
-
"@ndla/pager": "^1.0.18",
|
|
33
|
+
"@ndla/pager": "^1.0.19",
|
|
35
34
|
"@ndla/util": "^2.0.2"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
@@ -40,11 +39,10 @@
|
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"@emotion/core": "^10.0.9",
|
|
42
41
|
"@emotion/styled": "^10.0.9",
|
|
43
|
-
"react": "^16.0.0"
|
|
44
|
-
"react-prop-types": "0.4.0"
|
|
42
|
+
"react": "^16.0.0"
|
|
45
43
|
},
|
|
46
44
|
"publishConfig": {
|
|
47
45
|
"access": "public"
|
|
48
46
|
},
|
|
49
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ce4b624d37b5e9b472943c2fb9210e47c9cf4230"
|
|
50
48
|
}
|