@ndla/ui 56.0.88-alpha.0 → 56.0.89-alpha.0
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/Embed/GlossEmbed.js
CHANGED
|
@@ -57,7 +57,9 @@ export const GlossEmbed = _ref => {
|
|
|
57
57
|
children: /*#__PURE__*/_jsx(Gloss, {
|
|
58
58
|
glossData: concept.glossData,
|
|
59
59
|
title: concept.title,
|
|
60
|
-
audio: audio
|
|
60
|
+
audio: audio,
|
|
61
|
+
exampleIds: embed.embedData.exampleIds,
|
|
62
|
+
exampleLangs: embed.embedData.exampleLangs
|
|
61
63
|
})
|
|
62
64
|
})
|
|
63
65
|
})
|
|
@@ -70,6 +72,8 @@ export const GlossEmbed = _ref => {
|
|
|
70
72
|
glossData: concept.glossData,
|
|
71
73
|
title: concept.title,
|
|
72
74
|
audio: audio,
|
|
75
|
+
exampleIds: embed.embedData.exampleIds,
|
|
76
|
+
exampleLangs: embed.embedData.exampleLangs,
|
|
73
77
|
variant: "bordered"
|
|
74
78
|
})
|
|
75
79
|
});
|
package/lib/Embed/GlossEmbed.js
CHANGED
|
@@ -64,7 +64,9 @@ const GlossEmbed = _ref => {
|
|
|
64
64
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gloss.Gloss, {
|
|
65
65
|
glossData: concept.glossData,
|
|
66
66
|
title: concept.title,
|
|
67
|
-
audio: audio
|
|
67
|
+
audio: audio,
|
|
68
|
+
exampleIds: embed.embedData.exampleIds,
|
|
69
|
+
exampleLangs: embed.embedData.exampleLangs
|
|
68
70
|
})
|
|
69
71
|
})
|
|
70
72
|
})
|
|
@@ -77,6 +79,8 @@ const GlossEmbed = _ref => {
|
|
|
77
79
|
glossData: concept.glossData,
|
|
78
80
|
title: concept.title,
|
|
79
81
|
audio: audio,
|
|
82
|
+
exampleIds: embed.embedData.exampleIds,
|
|
83
|
+
exampleLangs: embed.embedData.exampleLangs,
|
|
80
84
|
variant: "bordered"
|
|
81
85
|
})
|
|
82
86
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.89-alpha.0",
|
|
4
4
|
"description": "UI component library for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a6b92c306c7340d6ed121afd3e6f5878deba51d9"
|
|
62
62
|
}
|
package/src/Embed/GlossEmbed.tsx
CHANGED
|
@@ -53,7 +53,13 @@ export const GlossEmbed = ({ embed }: Props) => {
|
|
|
53
53
|
<Portal>
|
|
54
54
|
<StyledPopoverContent ref={contentRef}>
|
|
55
55
|
<Figure>
|
|
56
|
-
<Gloss
|
|
56
|
+
<Gloss
|
|
57
|
+
glossData={concept.glossData}
|
|
58
|
+
title={concept.title}
|
|
59
|
+
audio={audio}
|
|
60
|
+
exampleIds={embed.embedData.exampleIds}
|
|
61
|
+
exampleLangs={embed.embedData.exampleLangs}
|
|
62
|
+
/>
|
|
57
63
|
</Figure>
|
|
58
64
|
</StyledPopoverContent>
|
|
59
65
|
</Portal>
|
|
@@ -63,7 +69,14 @@ export const GlossEmbed = ({ embed }: Props) => {
|
|
|
63
69
|
|
|
64
70
|
return (
|
|
65
71
|
<Figure data-embed-type="gloss">
|
|
66
|
-
<Gloss
|
|
72
|
+
<Gloss
|
|
73
|
+
glossData={concept.glossData}
|
|
74
|
+
title={concept.title}
|
|
75
|
+
audio={audio}
|
|
76
|
+
exampleIds={embed.embedData.exampleIds}
|
|
77
|
+
exampleLangs={embed.embedData.exampleLangs}
|
|
78
|
+
variant="bordered"
|
|
79
|
+
/>
|
|
67
80
|
</Figure>
|
|
68
81
|
);
|
|
69
82
|
};
|