soames-gatsby-theme 0.1.2 → 0.1.3
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.
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const SoamesVideo = ({ attributes }) => {
|
|
5
5
|
const { link, title } = attributes;
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "soames-video-container", children: (0, jsx_runtime_1.jsx)("figure", { className: "soames-figure align-center container", children: (0, jsx_runtime_1.jsx)("div", { className: "video-block", children: (0, jsx_runtime_1.jsx)("div", { className: "video-wrapper", children: (0, jsx_runtime_1.jsx)("iframe", { height: "580", width: "360", src: link, title: title ?? "Embedded video", frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", allowFullScreen: true }) }) }) }) }));
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "soames-video-container", children: (0, jsx_runtime_1.jsx)("figure", { className: "soames-figure align-center container", children: (0, jsx_runtime_1.jsx)("div", { className: "video-block", children: (0, jsx_runtime_1.jsx)("div", { className: "video-wrapper", children: (0, jsx_runtime_1.jsx)("iframe", { height: "580", width: "360", src: link, title: title ?? "Embedded video", frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", referrerPolicy: "strict-origin-when-cross-origin", allowFullScreen: true }) }) }) }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.default = SoamesVideo;
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ const SoamesVideo: React.FC<SoamesVideoProps> = ({ attributes }) => {
|
|
|
22
22
|
title={title ?? "Embedded video"}
|
|
23
23
|
frameBorder="0"
|
|
24
24
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
25
|
+
referrerPolicy="strict-origin-when-cross-origin"
|
|
25
26
|
allowFullScreen
|
|
26
27
|
></iframe>
|
|
27
28
|
</div>
|
package/dist/gatsby-node.js
DELETED
package/dist/src/pages/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const Layout_1 = __importDefault(require("../components/Layout"));
|
|
8
|
-
const Home = () => ((0, jsx_runtime_1.jsx)(Layout_1.default, { children: (0, jsx_runtime_1.jsx)("p", { children: "Welcome to the TypeScript version of Soames Gatsby Theme!" }) }));
|
|
9
|
-
exports.default = Home;
|