@ludo.ninja/components 2.1.71 → 2.1.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.
- package/build/dto/common/Media/Audio/index.d.ts +3 -0
- package/build/dto/common/Media/Audio/index.js +3 -0
- package/build/dto/common/Media/Image/index.d.ts +3 -0
- package/build/dto/common/Media/Image/index.js +3 -0
- package/build/dto/common/Media/Object/index.d.ts +3 -0
- package/build/dto/common/Media/Object/index.js +3 -0
- package/build/dto/common/Media/Other/index.d.ts +3 -0
- package/build/dto/common/Media/Other/index.js +3 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +3 -0
- package/build/dto/common/Media/Screenshot/index.js +3 -0
- package/build/dto/common/Media/Video/index.d.ts +3 -0
- package/build/dto/common/Media/Video/index.js +3 -0
- package/build/dto/common/Media/index.d.ts +3 -0
- package/build/dto/common/Media/interface.d.ts +3 -0
- package/package.json +1 -1
|
@@ -41,5 +41,8 @@ class Image extends Media_1.default {
|
|
|
41
41
|
displayMiniature() {
|
|
42
42
|
return (0, jsx_runtime_1.jsx)("div", { children: "its miniature image" });
|
|
43
43
|
}
|
|
44
|
+
displayOpenGraphMeta({ title }) {
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("meta", { property: "og:image", content: "https://510.ludo.ninja/assets/images/db1e0d05de5c9d5cd08ad5f54e6c38e3.webp" }), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:alt", content: title }), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:image", content: 'https://510.ludo.ninja/assets/images/db1e0d05de5c9d5cd08ad5f54e6c38e3.webp' }), (0, jsx_runtime_1.jsx)("meta", { property: "twitter:image:alt", content: title })] }));
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
48
|
exports.default = Image;
|
|
@@ -41,5 +41,8 @@ class Screenshot extends Media_1.default {
|
|
|
41
41
|
displayMiniature() {
|
|
42
42
|
return (0, jsx_runtime_1.jsx)("div", { children: "its miniature screenshot" });
|
|
43
43
|
}
|
|
44
|
+
displayOpenGraphMeta({ title }) {
|
|
45
|
+
return (0, jsx_runtime_1.jsx)("div", { children: title });
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
48
|
exports.default = Screenshot;
|
|
@@ -21,5 +21,8 @@ declare abstract class Media implements IMedia {
|
|
|
21
21
|
abstract displayLinkedMedia(): JSX.Element;
|
|
22
22
|
abstract displayMultipleMedia(): JSX.Element;
|
|
23
23
|
abstract displayMiniature(): JSX.Element;
|
|
24
|
+
abstract displayOpenGraphMeta({ title }: {
|
|
25
|
+
title: string;
|
|
26
|
+
}): JSX.Element;
|
|
24
27
|
}
|
|
25
28
|
export default Media;
|
|
@@ -15,6 +15,9 @@ export interface IMedia {
|
|
|
15
15
|
displayLinkedMedia(arg?: ICreationEntity): JSX.Element;
|
|
16
16
|
displayMultipleMedia(arg?: ICreationEntity): JSX.Element;
|
|
17
17
|
displayMiniature(arg?: ICreationEntity): JSX.Element;
|
|
18
|
+
displayOpenGraphMeta({ title }: {
|
|
19
|
+
title: string;
|
|
20
|
+
}): JSX.Element;
|
|
18
21
|
}
|
|
19
22
|
export type BasicMediaType = {
|
|
20
23
|
media: null | string;
|