@ndla/article-converter 6.0.3 → 6.0.5
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.
|
@@ -18,9 +18,11 @@ export var contactBlockEmbedPlugin = function contactBlockEmbedPlugin(element, _
|
|
|
18
18
|
description = _embedData$embedData.description,
|
|
19
19
|
blob = _embedData$embedData.blob,
|
|
20
20
|
blobColor = _embedData$embedData.blobColor,
|
|
21
|
-
jobTitle = _embedData$embedData.jobTitle
|
|
21
|
+
jobTitle = _embedData$embedData.jobTitle,
|
|
22
|
+
alt = _embedData$embedData.alt;
|
|
22
23
|
return _jsx(ContactBlock, {
|
|
23
24
|
image: embedData.status === 'success' ? embedData.data.image : undefined,
|
|
25
|
+
embedAlt: alt,
|
|
24
26
|
description: description,
|
|
25
27
|
email: email,
|
|
26
28
|
blobColor: blobColor,
|
|
@@ -24,9 +24,11 @@ var contactBlockEmbedPlugin = function contactBlockEmbedPlugin(element, _, opts)
|
|
|
24
24
|
description = _embedData$embedData.description,
|
|
25
25
|
blob = _embedData$embedData.blob,
|
|
26
26
|
blobColor = _embedData$embedData.blobColor,
|
|
27
|
-
jobTitle = _embedData$embedData.jobTitle
|
|
27
|
+
jobTitle = _embedData$embedData.jobTitle,
|
|
28
|
+
alt = _embedData$embedData.alt;
|
|
28
29
|
return (0, _jsxRuntime.jsx)(_ui.ContactBlock, {
|
|
29
30
|
image: embedData.status === 'success' ? embedData.data.image : undefined,
|
|
31
|
+
embedAlt: alt,
|
|
30
32
|
description: description,
|
|
31
33
|
email: email,
|
|
32
34
|
blobColor: blobColor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/article-converter",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Transforms NDLA articles into extended html versions",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@ndla/types-embed": "^4.0.
|
|
30
|
+
"@ndla/types-embed": "^4.0.7"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ndla/code": "^5.0.
|
|
34
|
-
"@ndla/ui": "^49.0.
|
|
33
|
+
"@ndla/code": "^5.0.12",
|
|
34
|
+
"@ndla/ui": "^49.0.6",
|
|
35
35
|
"html-react-parser": "^4.2.2",
|
|
36
36
|
"lodash": "^4.17.20"
|
|
37
37
|
},
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "780199a967ead3bcb024102e21fea869e3aec2ba"
|
|
48
48
|
}
|
|
@@ -14,10 +14,11 @@ import { PluginType } from '../types';
|
|
|
14
14
|
export const contactBlockEmbedPlugin: PluginType = (element, _, opts) => {
|
|
15
15
|
const props = attributesToProps(element.attribs);
|
|
16
16
|
const embedData = JSON.parse(props['data-json']) as ContactBlockMetaData;
|
|
17
|
-
const { name, email, description, blob, blobColor, jobTitle } = embedData.embedData;
|
|
17
|
+
const { name, email, description, blob, blobColor, jobTitle, alt } = embedData.embedData;
|
|
18
18
|
return (
|
|
19
19
|
<ContactBlock
|
|
20
20
|
image={embedData.status === 'success' ? embedData.data.image : undefined}
|
|
21
|
+
embedAlt={alt}
|
|
21
22
|
description={description}
|
|
22
23
|
email={email}
|
|
23
24
|
blobColor={blobColor}
|