@ndla/ui 33.1.0 → 33.1.2
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.
|
@@ -28,9 +28,9 @@ var ArticleContent = function ArticleContent(_ref) {
|
|
|
28
28
|
removeEventListenerForResize();
|
|
29
29
|
initArticleScripts();
|
|
30
30
|
initAudioPlayers(locale);
|
|
31
|
-
initCopyParagraphButtons();
|
|
32
31
|
initTooltips();
|
|
33
32
|
initPopovers();
|
|
33
|
+
initCopyParagraphButtons();
|
|
34
34
|
return function () {
|
|
35
35
|
removeEventListenerForResize();
|
|
36
36
|
};
|
|
@@ -27,9 +27,9 @@ var ArticleContent = function ArticleContent(_ref) {
|
|
|
27
27
|
(0, _articleScripts.removeEventListenerForResize)();
|
|
28
28
|
(0, _articleScripts.initArticleScripts)();
|
|
29
29
|
(0, _AudioPlayer.initAudioPlayers)(locale);
|
|
30
|
-
(0, _CopyParagraphButton.initCopyParagraphButtons)();
|
|
31
30
|
(0, _tooltip.initTooltips)();
|
|
32
31
|
(0, _tooltip.initPopovers)();
|
|
32
|
+
(0, _CopyParagraphButton.initCopyParagraphButtons)();
|
|
33
33
|
return function () {
|
|
34
34
|
(0, _articleScripts.removeEventListenerForResize)();
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "33.1.
|
|
3
|
+
"version": "33.1.2",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@ndla/icons": "^2.1.0",
|
|
41
41
|
"@ndla/licenses": "^6.1.2",
|
|
42
42
|
"@ndla/modal": "^2.2.1",
|
|
43
|
-
"@ndla/notion": "^4.1.
|
|
43
|
+
"@ndla/notion": "^4.1.6",
|
|
44
44
|
"@ndla/safelink": "^3.1.4",
|
|
45
45
|
"@ndla/switch": "^1.0.3",
|
|
46
46
|
"@ndla/tabs": "^2.1.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "2ea351643dcc11f09332fd4a09916a73fd7eb18e"
|
|
87
87
|
}
|
|
@@ -26,9 +26,9 @@ const ArticleContent = ({ content, locale, ...rest }: Props) => {
|
|
|
26
26
|
removeEventListenerForResize();
|
|
27
27
|
initArticleScripts();
|
|
28
28
|
initAudioPlayers(locale);
|
|
29
|
-
initCopyParagraphButtons();
|
|
30
29
|
initTooltips();
|
|
31
30
|
initPopovers();
|
|
31
|
+
initCopyParagraphButtons();
|
|
32
32
|
return () => {
|
|
33
33
|
removeEventListenerForResize();
|
|
34
34
|
};
|
|
@@ -20,7 +20,7 @@ const initCopyParagraphButtons = () => {
|
|
|
20
20
|
forEachElement('[data-header-copy-container]', (el: HTMLElement) => {
|
|
21
21
|
const title = el.getAttribute('data-title');
|
|
22
22
|
|
|
23
|
-
ReactDOM.hydrate(<CopyParagraphButton title={title} content={title} hydrate
|
|
23
|
+
ReactDOM.hydrate(<CopyParagraphButton title={title} content={title} hydrate />, el);
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
|