@ndla/ui 3.3.8 → 3.3.9

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,14 @@
1
1
  import PropTypes from 'prop-types';
2
+ export var movieShape = PropTypes.shape({
3
+ id: PropTypes.string.isRequired,
4
+ metaDescription: PropTypes.string.isRequired,
5
+ title: PropTypes.string.isRequired,
6
+ metaImage: PropTypes.shape({
7
+ url: PropTypes.string.isRequired,
8
+ alt: PropTypes.string.isRequired
9
+ }),
10
+ path: PropTypes.string.isRequired
11
+ });
2
12
  export var topicShape = PropTypes.shape({
3
13
  id: PropTypes.string,
4
14
  name: PropTypes.string
@@ -1,4 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
+ export declare const movieShape: PropTypes.Requireable<PropTypes.InferProps<{
3
+ id: PropTypes.Validator<string>;
4
+ metaDescription: PropTypes.Validator<string>;
5
+ title: PropTypes.Validator<string>;
6
+ metaImage: PropTypes.Requireable<PropTypes.InferProps<{
7
+ url: PropTypes.Validator<string>;
8
+ alt: PropTypes.Validator<string>;
9
+ }>>;
10
+ path: PropTypes.Validator<string>;
11
+ }>>;
2
12
  export declare const topicShape: PropTypes.Requireable<PropTypes.InferProps<{
3
13
  id: PropTypes.Requireable<string>;
4
14
  name: PropTypes.Requireable<string>;
@@ -3,12 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.topicShape = void 0;
6
+ exports.topicShape = exports.movieShape = void 0;
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
+ var movieShape = _propTypes["default"].shape({
13
+ id: _propTypes["default"].string.isRequired,
14
+ metaDescription: _propTypes["default"].string.isRequired,
15
+ title: _propTypes["default"].string.isRequired,
16
+ metaImage: _propTypes["default"].shape({
17
+ url: _propTypes["default"].string.isRequired,
18
+ alt: _propTypes["default"].string.isRequired
19
+ }),
20
+ path: _propTypes["default"].string.isRequired
21
+ });
22
+
23
+ exports.movieShape = movieShape;
24
+
12
25
  var topicShape = _propTypes["default"].shape({
13
26
  id: _propTypes["default"].string,
14
27
  name: _propTypes["default"].string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -92,5 +92,5 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "gitHead": "5c0c46da877836c5e8dbaf52979a8965a41ca0ec"
95
+ "gitHead": "071dad15f339c129f987b9eb42af04eb22e76079"
96
96
  }
@@ -1,5 +1,16 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
+ export const movieShape = PropTypes.shape({
4
+ id: PropTypes.string.isRequired,
5
+ metaDescription: PropTypes.string.isRequired,
6
+ title: PropTypes.string.isRequired,
7
+ metaImage: PropTypes.shape({
8
+ url: PropTypes.string.isRequired,
9
+ alt: PropTypes.string.isRequired,
10
+ }),
11
+ path: PropTypes.string.isRequired,
12
+ });
13
+
3
14
  export const topicShape = PropTypes.shape({
4
15
  id: PropTypes.string,
5
16
  name: PropTypes.string,