@ndla/ui 56.0.84-alpha.0 → 56.0.85-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.
@@ -49,7 +49,7 @@ const ExternalEmbed = _ref => {
49
49
  } = embed;
50
50
  if (embedData.type === "fullscreen") {
51
51
  const image = {
52
- src: data.iframeImage?.image.imageUrl ?? "",
52
+ src: data.iframeImage?.image.imageUrl,
53
53
  alt: embedData.alt !== undefined ? embedData.alt : data.iframeImage?.alttext?.alttext ?? ""
54
54
  };
55
55
  return /*#__PURE__*/_jsx(Figure, {
@@ -49,7 +49,7 @@ const IframeEmbed = _ref => {
49
49
  const iframeImage = embed.status === "success" ? data.iframeImage : undefined;
50
50
  const alt = embedData.alt !== undefined ? embedData.alt : iframeImage?.alttext.alttext;
51
51
  const image = {
52
- src: iframeImage?.image.imageUrl ?? "",
52
+ src: iframeImage?.image.imageUrl,
53
53
  alt: alt ?? ""
54
54
  };
55
55
  return /*#__PURE__*/_jsx(Figure, {
@@ -56,7 +56,7 @@ const ExternalEmbed = _ref => {
56
56
  } = embed;
57
57
  if (embedData.type === "fullscreen") {
58
58
  const image = {
59
- src: data.iframeImage?.image.imageUrl ?? "",
59
+ src: data.iframeImage?.image.imageUrl,
60
60
  alt: embedData.alt !== undefined ? embedData.alt : data.iframeImage?.alttext?.alttext ?? ""
61
61
  };
62
62
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Figure, {
@@ -56,7 +56,7 @@ const IframeEmbed = _ref => {
56
56
  const iframeImage = embed.status === "success" ? data.iframeImage : undefined;
57
57
  const alt = embedData.alt !== undefined ? embedData.alt : iframeImage?.alttext.alttext;
58
58
  const image = {
59
- src: iframeImage?.image.imageUrl ?? "",
59
+ src: iframeImage?.image.imageUrl,
60
60
  alt: alt ?? ""
61
61
  };
62
62
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Figure, {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  interface ImageMeta {
9
- src: string;
9
+ src: string | undefined;
10
10
  alt: string;
11
11
  }
12
12
  interface Props {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.84-alpha.0",
3
+ "version": "56.0.85-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@ndla/core": "^5.0.3",
36
- "@ndla/icons": "^8.0.48-alpha.0",
36
+ "@ndla/icons": "^8.0.49-alpha.0",
37
37
  "@ndla/licenses": "^8.0.6-alpha.0",
38
- "@ndla/primitives": "^1.0.67-alpha.0",
39
- "@ndla/safelink": "^7.0.68-alpha.0",
40
- "@ndla/styled-system": "^0.0.29",
38
+ "@ndla/primitives": "^1.0.68-alpha.0",
39
+ "@ndla/safelink": "^7.0.69-alpha.0",
40
+ "@ndla/styled-system": "^0.0.30",
41
41
  "@ndla/util": "^5.0.5-alpha.0",
42
42
  "html-react-parser": "^5.1.19",
43
43
  "i18next-browser-languagedetector": "^7.1.0"
@@ -50,7 +50,7 @@
50
50
  "react-router-dom": "> 6.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@ndla/preset-panda": "^0.0.48",
53
+ "@ndla/preset-panda": "^0.0.49",
54
54
  "@ndla/types-backend": "^1.0.1",
55
55
  "@ndla/types-embed": "^5.0.6-alpha.0",
56
56
  "@pandacss/dev": "^0.48.0"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "14e44312c9dd32cc892dac71c60b3569c2b3dfc8"
61
+ "gitHead": "7960790a61f90467f2c0b0919201967eac276662"
62
62
  }
@@ -49,7 +49,7 @@ const ExternalEmbed = ({ embed }: Props) => {
49
49
 
50
50
  if (embedData.type === "fullscreen") {
51
51
  const image = {
52
- src: data.iframeImage?.image.imageUrl ?? "",
52
+ src: data.iframeImage?.image.imageUrl,
53
53
  alt: embedData.alt !== undefined ? embedData.alt : (data.iframeImage?.alttext?.alttext ?? ""),
54
54
  };
55
55
  return (
@@ -48,7 +48,7 @@ const IframeEmbed = ({ embed }: Props) => {
48
48
  if (embedData.type === "fullscreen") {
49
49
  const iframeImage = embed.status === "success" ? data.iframeImage : undefined;
50
50
  const alt = embedData.alt !== undefined ? embedData.alt : iframeImage?.alttext.alttext;
51
- const image = { src: iframeImage?.image.imageUrl ?? "", alt: alt ?? "" };
51
+ const image = { src: iframeImage?.image.imageUrl, alt: alt ?? "" };
52
52
  return (
53
53
  <Figure data-embed-type="iframe">
54
54
  <ResourceBox
@@ -66,7 +66,7 @@ const StyledText = styled(Text, {
66
66
  });
67
67
 
68
68
  interface ImageMeta {
69
- src: string;
69
+ src: string | undefined;
70
70
  alt: string;
71
71
  }
72
72