@codecademy/brand 5.14.5 → 5.14.6-alpha.23b31c8b8.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.
@@ -1,4 +1,5 @@
1
1
  import { Anchor, Box, Card, FlexBox, Markdown, Text } from '@codecademy/gamut';
2
+ import { Iframe, MarkdownVideo } from '@codecademy/gamut/Video';
2
3
  import { pxRem } from '@codecademy/gamut-styles';
3
4
  import * as React from 'react';
4
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -44,6 +45,12 @@ const Subtitle = ({
44
45
  const Body = ({
45
46
  text
46
47
  }) => /*#__PURE__*/_jsx(Markdown, {
48
+ iframeOverride: {
49
+ component: Iframe
50
+ },
51
+ videoOverride: {
52
+ component: MarkdownVideo
53
+ },
47
54
  text: text,
48
55
  overrides: {
49
56
  p: {
@@ -1,4 +1,5 @@
1
1
  import { Box, Markdown } from '@codecademy/gamut';
2
+ import { Iframe, MarkdownVideo } from '@codecademy/gamut/Video';
2
3
  import * as React from 'react';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
4
5
  export const Description = ({
@@ -8,6 +9,12 @@ export const Description = ({
8
9
  maxWidth: "38rem",
9
10
  mt: 16,
10
11
  children: /*#__PURE__*/_jsx(Markdown, {
12
+ iframeOverride: {
13
+ component: Iframe
14
+ },
15
+ videoOverride: {
16
+ component: MarkdownVideo
17
+ },
11
18
  text: text,
12
19
  onAnchorClick: onAnchorClick
13
20
  })
@@ -1,4 +1,5 @@
1
1
  import { Anchor, FlexBox, GridBox, Markdown, Text } from '@codecademy/gamut';
2
+ import { Iframe, MarkdownVideo } from '@codecademy/gamut/Video';
2
3
  import { CheckFilledIcon, DeleteFilledIcon } from '@codecademy/gamut-icons';
3
4
  import { pxRem } from '@codecademy/gamut-styles';
4
5
  import { createResumeUrlPath } from './helpers';
@@ -47,6 +48,12 @@ export const renderSubScores = ({
47
48
  screenreader: true,
48
49
  children: colorfulIcons ? `${subContentPercentCorrect >= PASSING_SCORE ? 'passed' : 'failed'}: ` : ''
49
50
  }), isChallenge ? /*#__PURE__*/_jsx(Markdown, {
51
+ iframeOverride: {
52
+ component: Iframe
53
+ },
54
+ videoOverride: {
55
+ component: MarkdownVideo
56
+ },
50
57
  inline: true,
51
58
  spacing: "none",
52
59
  text: subContentTitle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
- "version": "5.14.5",
3
+ "version": "5.14.6-alpha.23b31c8b8.0",
4
4
  "description": "Brand component library for Codecademy",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:codecademy-engineering/mono.git",