@ludo.ninja/components 2.3.70 → 2.3.72
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.
|
@@ -4,15 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const env_1 = require("../../../store/env");
|
|
8
|
+
const google_1 = require("@next/third-parties/google");
|
|
7
9
|
const head_1 = __importDefault(require("next/head"));
|
|
8
|
-
const PageHead = ({ title, description, url, children, isoTimestamp, displayTimestamp, checksum }) => {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const PageHead = ({ title, description, url, children, isoTimestamp, displayTimestamp, checksum, }) => {
|
|
11
|
+
const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
|
|
12
|
+
const image = "https://static.ludo.com/og/social-preview.jpg";
|
|
13
|
+
const defaultTags = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("title", { children: title }, "title"), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: description }, "description"), (0, jsx_runtime_1.jsx)("meta", { property: "og:title", content: title }, "og:title"), (0, jsx_runtime_1.jsx)("meta", { property: "og:description", content: description }, "og:description"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image", content: image }, "og:image"), (0, jsx_runtime_1.jsx)("meta", { property: "og:type", content: "website" }, "og:type"), (0, jsx_runtime_1.jsx)("meta", { property: "og:url", content: url }, "og:url"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:width", content: "1280" }, "og:image:width"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:height", content: "720" }, "og:image:height"), (0, jsx_runtime_1.jsx)("meta", { property: "og:site_name", content: "Ludo" }, "og:site_name"), (0, jsx_runtime_1.jsx)("meta", { property: "og:locale", content: "en_US" }, "og:locale"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:card", content: "summary_large_image" }, "twitter:card"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:title", content: title }, "twitter:title"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:description", content: description }, "twitter:description"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:image", content: image }, "twitter:image"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:url", content: url }, "twitter:url")] }));
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(head_1.default, { children: [defaultTags, children] }), NEXT_PUBLIC_ENV_VALUE !== "development" && (0, jsx_runtime_1.jsx)(google_1.GoogleTagManager, { gtmId: "G-0KVY73JDT1" }), (0, jsx_runtime_1.jsxs)("div", { id: "page-updated", className: "page-timestamp", style: {
|
|
15
|
+
position: "absolute",
|
|
16
|
+
left: "-9999px",
|
|
17
|
+
width: "1px",
|
|
18
|
+
height: "1px",
|
|
16
19
|
}, itemScope: true, itemType: "https://schema.org/WebPage", children: [(0, jsx_runtime_1.jsxs)("time", { id: "page-update-timestamp", className: "page-timestamp-time", dateTime: isoTimestamp, itemProp: "dateModified", children: ["Page last updated: ", displayTimestamp] }), (0, jsx_runtime_1.jsxs)("div", { className: "page-checksum", children: ["Page checksum: ", checksum] })] })] }));
|
|
17
20
|
};
|
|
18
21
|
exports.default = PageHead;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludo.ninja/components",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.72",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ludo.ninja/api": "^3.2.6",
|
|
27
|
+
"@next/third-parties": "^15.3.4",
|
|
27
28
|
"@react-three/drei": "^9.68.3",
|
|
28
29
|
"@react-three/fiber": "^8.13.0",
|
|
29
30
|
"chart.js": "^4.4.3",
|
|
@@ -52,11 +53,11 @@
|
|
|
52
53
|
"react-hyphen": "^1.4.0",
|
|
53
54
|
"react-loading-skeleton": "^3.1.1",
|
|
54
55
|
"react-player": "^2.12.0",
|
|
55
|
-
"sanitize-html": "^2.14.0",
|
|
56
56
|
"react-select": "^5.7.2",
|
|
57
57
|
"react-share": "^4.4.1",
|
|
58
58
|
"react-slick": "^0.29.0",
|
|
59
59
|
"react-virtuoso": "^4.6.3",
|
|
60
|
+
"sanitize-html": "^2.14.0",
|
|
60
61
|
"screenfull": "^5.2.0",
|
|
61
62
|
"slick-carousel": "^1.8.1",
|
|
62
63
|
"styled-components": "^5.3.6",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
88
89
|
"@types/react-window": "^1.8.5",
|
|
89
90
|
"@types/react-window-infinite-loader": "^1.0.6",
|
|
91
|
+
"@types/sanitize-html": "^2.13.0",
|
|
90
92
|
"@types/styled-components": "^5.1.26",
|
|
91
93
|
"@types/styled-system": "^5.1.16",
|
|
92
|
-
"@types/sanitize-html": "^2.13.0",
|
|
93
94
|
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
94
95
|
"cross-env": "^7.0.3",
|
|
95
96
|
"eslint": "8.31.0",
|