Skip to content

Commit 2ad3594

Browse files
chore(release): 1.5.1 [skip ci]
## [1.5.1](v1.5.0...v1.5.1) (2023-04-14) ### Bug Fixes * rename to YouTubeVideo ([7b3ed3f](7b3ed3f))
1 parent 8ddc4c8 commit 2ad3594

File tree

9 files changed

+93
-9
lines changed

9 files changed

+93
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.5.1](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.5.0...v1.5.1) (2023-04-14)
2+
3+
4+
### Bug Fixes
5+
6+
* rename to YouTubeVideo ([7b3ed3f](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/7b3ed3f2e89ca5b4782221f4da2ad593b13c3251))
7+
18
# [1.5.0](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.4.0...v1.5.0) (2023-04-13)
29

310

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import { BoxProps } from '@mui/material';
3+
export interface YouTubeVideoProps extends Omit<BoxProps, 'component'> {
4+
src: string;
5+
}
6+
declare const YouTubeVideo: React.FC<YouTubeVideoProps>;
7+
export default YouTubeVideo;

lib/cjs/components/YouTubeVideo.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"use strict";
2+
var __assign = (this && this.__assign) || function () {
3+
__assign = Object.assign || function(t) {
4+
for (var s, i = 1, n = arguments.length; i < n; i++) {
5+
s = arguments[i];
6+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7+
t[p] = s[p];
8+
}
9+
return t;
10+
};
11+
return __assign.apply(this, arguments);
12+
};
13+
var __rest = (this && this.__rest) || function (s, e) {
14+
var t = {};
15+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16+
t[p] = s[p];
17+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
18+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20+
t[p[i]] = s[p[i]];
21+
}
22+
return t;
23+
};
24+
var __importDefault = (this && this.__importDefault) || function (mod) {
25+
return (mod && mod.__esModule) ? mod : { "default": mod };
26+
};
27+
Object.defineProperty(exports, "__esModule", { value: true });
28+
var react_1 = __importDefault(require("react"));
29+
var material_1 = require("@mui/material");
30+
var YouTubeVideo = function (_a) {
31+
var src = _a.src, _b = _a.style, style = _b === void 0 ? {} : _b, otherProps = __rest(_a, ["src", "style"]);
32+
return (react_1.default.createElement(material_1.Box, __assign({ component: 'iframe', width: '100%', src: src, title: 'YouTube video player', allow: 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen', style: __assign({ border: '0px', aspectRatio: '1 / 0.5625' }, style) }, otherProps)));
33+
};
34+
exports.default = YouTubeVideo;

lib/cjs/components/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import ElevatedAppBar, { ElevatedAppBarProps } from './ElevatedAppBar';
22
import Image, { ImageProps } from './Image';
33
import ItemizedList, { ItemizedListProps } from './ItemizedList';
44
import OrderedGrid, { OrderedGridProps } from './OrderedGrid';
5-
import YouTubeVideoPlayer, { YouTubeVideoPlayerProps } from './YouTubeVideoPlayer';
6-
export { ElevatedAppBar, type ElevatedAppBarProps, Image, type ImageProps, ItemizedList, type ItemizedListProps, OrderedGrid, type OrderedGridProps, YouTubeVideoPlayer, type YouTubeVideoPlayerProps };
5+
import YouTubeVideo, { YouTubeVideoProps } from './YouTubeVideo';
6+
export { ElevatedAppBar, type ElevatedAppBarProps, Image, type ImageProps, ItemizedList, type ItemizedListProps, OrderedGrid, type OrderedGridProps, YouTubeVideo, type YouTubeVideoProps };

lib/cjs/components/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
return (mod && mod.__esModule) ? mod : { "default": mod };
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
6-
exports.YouTubeVideoPlayer = exports.OrderedGrid = exports.ItemizedList = exports.Image = exports.ElevatedAppBar = void 0;
6+
exports.YouTubeVideo = exports.OrderedGrid = exports.ItemizedList = exports.Image = exports.ElevatedAppBar = void 0;
77
var ElevatedAppBar_1 = __importDefault(require("./ElevatedAppBar"));
88
exports.ElevatedAppBar = ElevatedAppBar_1.default;
99
var Image_1 = __importDefault(require("./Image"));
@@ -12,5 +12,5 @@ var ItemizedList_1 = __importDefault(require("./ItemizedList"));
1212
exports.ItemizedList = ItemizedList_1.default;
1313
var OrderedGrid_1 = __importDefault(require("./OrderedGrid"));
1414
exports.OrderedGrid = OrderedGrid_1.default;
15-
var YouTubeVideoPlayer_1 = __importDefault(require("./YouTubeVideoPlayer"));
16-
exports.YouTubeVideoPlayer = YouTubeVideoPlayer_1.default;
15+
var YouTubeVideo_1 = __importDefault(require("./YouTubeVideo"));
16+
exports.YouTubeVideo = YouTubeVideo_1.default;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import { BoxProps } from '@mui/material';
3+
export interface YouTubeVideoProps extends Omit<BoxProps, 'component'> {
4+
src: string;
5+
}
6+
declare const YouTubeVideo: React.FC<YouTubeVideoProps>;
7+
export default YouTubeVideo;

lib/esm/components/YouTubeVideo.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
var __assign = (this && this.__assign) || function () {
2+
__assign = Object.assign || function(t) {
3+
for (var s, i = 1, n = arguments.length; i < n; i++) {
4+
s = arguments[i];
5+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6+
t[p] = s[p];
7+
}
8+
return t;
9+
};
10+
return __assign.apply(this, arguments);
11+
};
12+
var __rest = (this && this.__rest) || function (s, e) {
13+
var t = {};
14+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15+
t[p] = s[p];
16+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
17+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19+
t[p[i]] = s[p[i]];
20+
}
21+
return t;
22+
};
23+
import React from 'react';
24+
import { Box } from '@mui/material';
25+
var YouTubeVideo = function (_a) {
26+
var src = _a.src, _b = _a.style, style = _b === void 0 ? {} : _b, otherProps = __rest(_a, ["src", "style"]);
27+
return (React.createElement(Box, __assign({ component: 'iframe', width: '100%', src: src, title: 'YouTube video player', allow: 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen', style: __assign({ border: '0px', aspectRatio: '1 / 0.5625' }, style) }, otherProps)));
28+
};
29+
export default YouTubeVideo;

lib/esm/components/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import ElevatedAppBar, { ElevatedAppBarProps } from './ElevatedAppBar';
22
import Image, { ImageProps } from './Image';
33
import ItemizedList, { ItemizedListProps } from './ItemizedList';
44
import OrderedGrid, { OrderedGridProps } from './OrderedGrid';
5-
import YouTubeVideoPlayer, { YouTubeVideoPlayerProps } from './YouTubeVideoPlayer';
6-
export { ElevatedAppBar, type ElevatedAppBarProps, Image, type ImageProps, ItemizedList, type ItemizedListProps, OrderedGrid, type OrderedGridProps, YouTubeVideoPlayer, type YouTubeVideoPlayerProps };
5+
import YouTubeVideo, { YouTubeVideoProps } from './YouTubeVideo';
6+
export { ElevatedAppBar, type ElevatedAppBarProps, Image, type ImageProps, ItemizedList, type ItemizedListProps, OrderedGrid, type OrderedGridProps, YouTubeVideo, type YouTubeVideoProps };

lib/esm/components/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import ElevatedAppBar from './ElevatedAppBar';
22
import Image from './Image';
33
import ItemizedList from './ItemizedList';
44
import OrderedGrid from './OrderedGrid';
5-
import YouTubeVideoPlayer from './YouTubeVideoPlayer';
6-
export { ElevatedAppBar, Image, ItemizedList, OrderedGrid, YouTubeVideoPlayer };
5+
import YouTubeVideo from './YouTubeVideo';
6+
export { ElevatedAppBar, Image, ItemizedList, OrderedGrid, YouTubeVideo };

0 commit comments

Comments
 (0)