@ndla/article-converter 2.5.4 → 2.5.6

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.
@@ -17,6 +17,7 @@ export var imageEmbedPlugin = function imageEmbedPlugin(element, _, opts) {
17
17
  return _jsx(ImageEmbed, {
18
18
  inGrid: inGrid,
19
19
  embed: data,
20
+ path: opts.path,
20
21
  previewAlt: opts.previewAlt,
21
22
  heartButton: (_opts$components = opts.components) === null || _opts$components === void 0 ? void 0 : _opts$components.heartButton
22
23
  });
@@ -23,6 +23,7 @@ var imageEmbedPlugin = function imageEmbedPlugin(element, _, opts) {
23
23
  return (0, _jsxRuntime.jsx)(_ui.ImageEmbed, {
24
24
  inGrid: inGrid,
25
25
  embed: data,
26
+ path: opts.path,
26
27
  previewAlt: opts.previewAlt,
27
28
  heartButton: (_opts$components = opts.components) === null || _opts$components === void 0 ? void 0 : _opts$components.heartButton
28
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/article-converter",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Transforms NDLA articles into extended html versions",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ndla/code": "^2.2.23",
34
- "@ndla/ui": "^44.0.4",
34
+ "@ndla/ui": "^44.0.6",
35
35
  "html-react-parser": "^3.0.8",
36
36
  "lodash": "^4.17.20"
37
37
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "f6fe1cacc3f1faf1baf412dabb65cd6e64cbf0e9"
47
+ "gitHead": "cc15b9073ceecea8f53124fd1f3d01443623bf0f"
48
48
  }
@@ -17,6 +17,12 @@ export const imageEmbedPlugin: PluginType = (element, _, opts) => {
17
17
  const inGrid = (element.parentNode?.parentNode as Element)?.attribs?.['data-type'] === 'grid';
18
18
 
19
19
  return (
20
- <ImageEmbed inGrid={inGrid} embed={data} previewAlt={opts.previewAlt} heartButton={opts.components?.heartButton} />
20
+ <ImageEmbed
21
+ inGrid={inGrid}
22
+ embed={data}
23
+ path={opts.path}
24
+ previewAlt={opts.previewAlt}
25
+ heartButton={opts.components?.heartButton}
26
+ />
21
27
  );
22
28
  };