@comet/site-react 9.0.0-canary-20251113142723 → 9.0.0-canary-20251124092450

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.
@@ -15,9 +15,10 @@ interface BlockMeta {
15
15
  fields: BlockMetaField[];
16
16
  inputFields: BlockMetaField[];
17
17
  }
18
- export type BlockLoader<BlockData = any> = (options: {
18
+ export type BlockLoader<BlockData = any> = (options: BlockLoaderOptions<BlockData>) => Promise<any> | any;
19
+ export type BlockLoaderOptions<BlockData = any> = {
19
20
  blockData: BlockData;
20
- } & BlockLoaderDependencies) => Promise<any> | any;
21
+ } & BlockLoaderDependencies;
21
22
  export interface BlockLoaderDependencies {
22
23
  graphQLFetch: GraphQLFetch;
23
24
  fetch: typeof fetch;
@@ -1 +1 @@
1
- {"version":3,"file":"blockLoader.d.ts","sourceRoot":"","sources":["../../src/blockLoader/blockLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,KAAK,cAAc,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,cAAc,EAAE,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,WAAW,EAAE,cAAc,EAAE,CAAC;CACjC;AA+CD,MAAM,MAAM,WAAW,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,GAAG,uBAAuB,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GAAG,GAAG,IAAI;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,GAAG,uBAAuB,CAAC;AAErG,MAAM,WAAW,uBAAuB;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,OAAO,KAAK,CAAC;CACvB;AAED,wBAAsB,wBAAwB,CAAC,EAC3C,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,EACP,GAAG,YAAY,EAClB,EAAE;IACC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACxC,GAAG,uBAAuB,gBAyD1B"}
@@ -0,0 +1,15 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { DamVideoBlockData } from '../blocks.generated';
3
+ import { VideoPreviewImageProps } from './helpers/VideoPreviewImage';
4
+ import { PropsWithData } from './PropsWithData';
5
+ interface DamVideoBlockProps extends PropsWithData<DamVideoBlockData> {
6
+ aspectRatio?: string;
7
+ previewImageSizes?: string;
8
+ renderPreviewImage: (props: VideoPreviewImageProps) => ReactElement;
9
+ fill?: boolean;
10
+ previewImageIcon?: ReactNode;
11
+ playButtonAriaLabel?: string;
12
+ }
13
+ export declare const DamVideoBlock: ({ ...componentProps }: import('../iframebridge/withPreview').WithPreviewProps & DamVideoBlockProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=DamVideoBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DamVideoBlock.d.ts","sourceRoot":"","sources":["../../src/blocks/DamVideoBlock.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,UAAU,kBAAmB,SAAQ,aAAa,CAAC,iBAAiB,CAAC;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,YAAY,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,iJA8DzB,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
+ import clsx from "clsx";
4
+ import { useState, useRef } from "react";
5
+ import { withPreview } from "../iframebridge/withPreview.js";
6
+ import { PreviewSkeleton } from "../previewskeleton/PreviewSkeleton.js";
7
+ import styles from "./DamVideoBlock.module.scss.js";
8
+ import { useIsElementInViewport } from "./helpers/useIsElementInViewport.js";
9
+ const DamVideoBlock = withPreview(
10
+ ({
11
+ data: { damFile, autoplay, loop, showControls, previewImage },
12
+ aspectRatio = "16x9",
13
+ previewImageSizes,
14
+ renderPreviewImage,
15
+ fill,
16
+ previewImageIcon,
17
+ playButtonAriaLabel
18
+ }) => {
19
+ var _a;
20
+ if (damFile === void 0) {
21
+ return /* @__PURE__ */ jsx(PreviewSkeleton, { type: "media", hasContent: false, aspectRatio });
22
+ }
23
+ const [showPreviewImage, setShowPreviewImage] = useState(true);
24
+ const hasPreviewImage = Boolean(previewImage && previewImage.damFile);
25
+ const videoRef = useRef(null);
26
+ useIsElementInViewport(videoRef, (inView) => {
27
+ if (autoplay && videoRef.current) {
28
+ if (inView) {
29
+ videoRef.current.play();
30
+ } else {
31
+ videoRef.current.pause();
32
+ }
33
+ }
34
+ });
35
+ return /* @__PURE__ */ jsx(Fragment, { children: hasPreviewImage && showPreviewImage ? renderPreviewImage({
36
+ onPlay: () => setShowPreviewImage(false),
37
+ image: previewImage,
38
+ aspectRatio,
39
+ sizes: previewImageSizes,
40
+ fill,
41
+ icon: previewImageIcon,
42
+ playButtonAriaLabel
43
+ }) : /* @__PURE__ */ jsxs(
44
+ "video",
45
+ {
46
+ autoPlay: autoplay || hasPreviewImage && !showPreviewImage,
47
+ controls: showControls,
48
+ loop,
49
+ playsInline: true,
50
+ muted: autoplay,
51
+ ref: videoRef,
52
+ className: clsx(styles.video, fill && styles.fill),
53
+ style: !fill ? { "--aspect-ratio": aspectRatio.replace("x", " / ") } : void 0,
54
+ children: [
55
+ (_a = damFile.captions) == null ? void 0 : _a.map((caption) => {
56
+ return /* @__PURE__ */ jsx("track", { src: caption.fileUrl, kind: "captions", srcLang: caption.language }, caption.id);
57
+ }),
58
+ /* @__PURE__ */ jsx("source", { src: damFile.fileUrl, type: damFile.mimetype })
59
+ ]
60
+ }
61
+ ) });
62
+ },
63
+ { label: "Video" }
64
+ );
65
+ export {
66
+ DamVideoBlock
67
+ };
@@ -0,0 +1,11 @@
1
+ const video = "_video_17b8y_1";
2
+ const fill = "_fill_17b8y_7";
3
+ const styles = {
4
+ video,
5
+ fill
6
+ };
7
+ export {
8
+ styles as default,
9
+ fill,
10
+ video
11
+ };
@@ -0,0 +1,15 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { VimeoVideoBlockData } from '../blocks.generated';
3
+ import { VideoPreviewImageProps } from './helpers/VideoPreviewImage';
4
+ import { PropsWithData } from './PropsWithData';
5
+ interface VimeoVideoBlockProps extends PropsWithData<VimeoVideoBlockData> {
6
+ aspectRatio?: string;
7
+ previewImageSizes?: string;
8
+ renderPreviewImage: (props: VideoPreviewImageProps) => ReactElement;
9
+ fill?: boolean;
10
+ previewImageIcon?: ReactNode;
11
+ playButtonAriaLabel?: string;
12
+ }
13
+ export declare const VimeoVideoBlock: ({ ...componentProps }: import('../iframebridge/withPreview').WithPreviewProps & VimeoVideoBlockProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=VimeoVideoBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VimeoVideoBlock.d.ts","sourceRoot":"","sources":["../../src/blocks/VimeoVideoBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBrD,UAAU,oBAAqB,SAAQ,aAAa,CAAC,mBAAmB,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,YAAY,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,eAAe,mJAqE3B,CAAC"}
@@ -0,0 +1,78 @@
1
+ "use client";
2
+ import { jsx, Fragment } from "react/jsx-runtime";
3
+ import clsx from "clsx";
4
+ import { useState, useRef } from "react";
5
+ import { withPreview } from "../iframebridge/withPreview.js";
6
+ import { PreviewSkeleton } from "../previewskeleton/PreviewSkeleton.js";
7
+ import { useIsElementInViewport } from "./helpers/useIsElementInViewport.js";
8
+ import styles from "./VimeoVideoBlock.module.scss.js";
9
+ function parseVimeoIdentifier(vimeoIdentifier) {
10
+ const urlRegEx = /^(https?:\/\/)?((www\.|player\.)?vimeo\.com\/?(showcase\/)*([0-9a-z]*\/)*([0-9]{6,11})[?]?.*)$/;
11
+ const idRegEx = /^([0-9]{6,11})$/;
12
+ const urlRegExMatch = vimeoIdentifier.match(urlRegEx);
13
+ const idRegExMatch = vimeoIdentifier.match(idRegEx);
14
+ if (!urlRegExMatch && !idRegExMatch) return void 0;
15
+ if (urlRegExMatch) {
16
+ return urlRegExMatch[6];
17
+ } else if (idRegExMatch) {
18
+ return idRegExMatch[1];
19
+ }
20
+ }
21
+ const VimeoVideoBlock = withPreview(
22
+ ({
23
+ data: { vimeoIdentifier, autoplay, loop, showControls, previewImage },
24
+ aspectRatio = "16x9",
25
+ previewImageSizes,
26
+ renderPreviewImage,
27
+ fill,
28
+ previewImageIcon,
29
+ playButtonAriaLabel
30
+ }) => {
31
+ const [showPreviewImage, setShowPreviewImage] = useState(true);
32
+ const hasPreviewImage = !!(previewImage && previewImage.damFile);
33
+ const inViewRef = useRef(null);
34
+ const iframeRef = useRef(null);
35
+ const handleVisibilityChange = (isVisible) => {
36
+ var _a, _b;
37
+ (_b = (_a = iframeRef.current) == null ? void 0 : _a.contentWindow) == null ? void 0 : _b.postMessage(
38
+ JSON.stringify({ method: isVisible && autoplay ? "play" : "pause" }),
39
+ "https://player.vimeo.com"
40
+ );
41
+ };
42
+ useIsElementInViewport(inViewRef, handleVisibilityChange);
43
+ if (!vimeoIdentifier) {
44
+ return /* @__PURE__ */ jsx(PreviewSkeleton, { type: "media", hasContent: false, aspectRatio });
45
+ }
46
+ const identifier = parseVimeoIdentifier(vimeoIdentifier);
47
+ const searchParams = new URLSearchParams();
48
+ if (hasPreviewImage && !showPreviewImage) searchParams.append("autoplay", "1");
49
+ if (autoplay) searchParams.append("muted", "1");
50
+ if (loop !== void 0) searchParams.append("loop", Number(loop).toString());
51
+ if (showControls !== void 0) searchParams.append("controls", Number(showControls).toString());
52
+ searchParams.append("dnt", "1");
53
+ const vimeoBaseUrl = "https://player.vimeo.com/video/";
54
+ const vimeoUrl = new URL(`${vimeoBaseUrl}${identifier ?? ""}`);
55
+ vimeoUrl.search = searchParams.toString();
56
+ return /* @__PURE__ */ jsx(Fragment, { children: hasPreviewImage && showPreviewImage ? renderPreviewImage({
57
+ onPlay: () => setShowPreviewImage(false),
58
+ image: previewImage,
59
+ aspectRatio,
60
+ sizes: previewImageSizes,
61
+ fill,
62
+ icon: previewImageIcon,
63
+ playButtonAriaLabel
64
+ }) : /* @__PURE__ */ jsx(
65
+ "div",
66
+ {
67
+ ref: inViewRef,
68
+ className: clsx(styles.videoContainer, fill && styles.fill),
69
+ style: !fill ? { "--aspect-ratio": aspectRatio.replace("x", "/") } : void 0,
70
+ children: /* @__PURE__ */ jsx("iframe", { ref: iframeRef, className: styles.vimeoContainer, src: vimeoUrl.toString(), allow: "autoplay", allowFullScreen: true })
71
+ }
72
+ ) });
73
+ },
74
+ { label: "Video" }
75
+ );
76
+ export {
77
+ VimeoVideoBlock
78
+ };
@@ -0,0 +1,14 @@
1
+ const videoContainer = "_videoContainer_1flq1_1";
2
+ const fill = "_fill_1flq1_7";
3
+ const vimeoContainer = "_vimeoContainer_1flq1_12";
4
+ const styles = {
5
+ videoContainer,
6
+ fill,
7
+ vimeoContainer
8
+ };
9
+ export {
10
+ styles as default,
11
+ fill,
12
+ videoContainer,
13
+ vimeoContainer
14
+ };
@@ -0,0 +1,15 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { YouTubeVideoBlockData } from '../blocks.generated';
3
+ import { VideoPreviewImageProps } from './helpers/VideoPreviewImage';
4
+ import { PropsWithData } from './PropsWithData';
5
+ interface YouTubeVideoBlockProps extends PropsWithData<YouTubeVideoBlockData> {
6
+ aspectRatio?: string;
7
+ previewImageSizes?: string;
8
+ renderPreviewImage: (props: VideoPreviewImageProps) => ReactElement;
9
+ fill?: boolean;
10
+ previewImageIcon?: ReactNode;
11
+ playButtonAriaLabel?: string;
12
+ }
13
+ export declare const YouTubeVideoBlock: ({ ...componentProps }: import('../iframebridge/withPreview').WithPreviewProps & YouTubeVideoBlockProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=YouTubeVideoBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YouTubeVideoBlock.d.ts","sourceRoot":"","sources":["../../src/blocks/YouTubeVideoBlock.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIjE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAcrD,UAAU,sBAAuB,SAAQ,aAAa,CAAC,qBAAqB,CAAC;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,YAAY,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,iBAAiB,qJAwF7B,CAAC"}
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import { jsx, Fragment } from "react/jsx-runtime";
3
+ import clsx from "clsx";
4
+ import { useState, useRef } from "react";
5
+ import { withPreview } from "../iframebridge/withPreview.js";
6
+ import { PreviewSkeleton } from "../previewskeleton/PreviewSkeleton.js";
7
+ import { useIsElementInViewport } from "./helpers/useIsElementInViewport.js";
8
+ import styles from "./YouTubeVideoBlock.module.scss.js";
9
+ const EXPECTED_YT_ID_LENGTH = 11;
10
+ const parseYoutubeIdentifier = (value) => {
11
+ const regExp = /(https?:\/\/)?(((m|www)\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)([_0-9a-zA-Z-]+)/;
12
+ const match = value.match(regExp);
13
+ const youtubeId = value.length === EXPECTED_YT_ID_LENGTH ? value : match && match[8].length === EXPECTED_YT_ID_LENGTH ? match[8] : null;
14
+ return youtubeId ?? void 0;
15
+ };
16
+ const YouTubeVideoBlock = withPreview(
17
+ ({
18
+ data: { youtubeIdentifier, autoplay, loop, showControls, previewImage },
19
+ aspectRatio = "16x9",
20
+ previewImageSizes,
21
+ renderPreviewImage,
22
+ fill,
23
+ previewImageIcon,
24
+ playButtonAriaLabel
25
+ }) => {
26
+ const [showPreviewImage, setShowPreviewImage] = useState(true);
27
+ const hasPreviewImage = !!(previewImage && previewImage.damFile);
28
+ const iframeRef = useRef(null);
29
+ const inViewRef = useRef(null);
30
+ const pauseYouTubeVideo = () => {
31
+ var _a, _b;
32
+ (_b = (_a = iframeRef.current) == null ? void 0 : _a.contentWindow) == null ? void 0 : _b.postMessage(`{"event":"command","func":"pauseVideo","args":""}`, "https://www.youtube-nocookie.com");
33
+ };
34
+ const playYouTubeVideo = () => {
35
+ var _a, _b;
36
+ (_b = (_a = iframeRef.current) == null ? void 0 : _a.contentWindow) == null ? void 0 : _b.postMessage(`{"event":"command","func":"playVideo","args":""}`, "https://www.youtube-nocookie.com");
37
+ };
38
+ useIsElementInViewport(inViewRef, (inView) => {
39
+ if (autoplay) {
40
+ if (inView) {
41
+ playYouTubeVideo();
42
+ } else {
43
+ pauseYouTubeVideo();
44
+ }
45
+ }
46
+ });
47
+ if (!youtubeIdentifier) {
48
+ return /* @__PURE__ */ jsx(PreviewSkeleton, { type: "media", hasContent: false, aspectRatio });
49
+ }
50
+ const identifier = parseYoutubeIdentifier(youtubeIdentifier);
51
+ const searchParams = new URLSearchParams();
52
+ searchParams.append("modestbranding", "1");
53
+ searchParams.append("rel", "0");
54
+ searchParams.append("enablejsapi", "1");
55
+ if (hasPreviewImage && !showPreviewImage) searchParams.append("autoplay", "1");
56
+ if (autoplay) searchParams.append("mute", "1");
57
+ if (showControls !== void 0) searchParams.append("controls", Number(showControls).toString());
58
+ if (loop !== void 0) searchParams.append("loop", Number(loop).toString());
59
+ if (loop && identifier) searchParams.append("playlist", identifier);
60
+ const youtubeBaseUrl = "https://www.youtube-nocookie.com/embed/";
61
+ const youtubeUrl = new URL(`${youtubeBaseUrl}${identifier ?? ""}`);
62
+ youtubeUrl.search = searchParams.toString();
63
+ return /* @__PURE__ */ jsx(Fragment, { children: hasPreviewImage && showPreviewImage ? renderPreviewImage({
64
+ onPlay: () => setShowPreviewImage(false),
65
+ image: previewImage,
66
+ aspectRatio,
67
+ sizes: previewImageSizes,
68
+ fill,
69
+ icon: previewImageIcon,
70
+ playButtonAriaLabel
71
+ }) : /* @__PURE__ */ jsx(
72
+ "div",
73
+ {
74
+ ref: inViewRef,
75
+ className: clsx(styles.videoContainer, fill && styles.fill),
76
+ style: !fill ? { "--aspect-ratio": aspectRatio.replace("x", "/") } : void 0,
77
+ children: /* @__PURE__ */ jsx(
78
+ "iframe",
79
+ {
80
+ ref: iframeRef,
81
+ className: styles.youtubeContainer,
82
+ allow: "autoplay",
83
+ referrerPolicy: "strict-origin-when-cross-origin",
84
+ src: youtubeUrl.toString()
85
+ }
86
+ )
87
+ }
88
+ ) });
89
+ },
90
+ { label: "Video" }
91
+ );
92
+ export {
93
+ YouTubeVideoBlock
94
+ };
@@ -0,0 +1,14 @@
1
+ const videoContainer = "_videoContainer_bhmhr_1";
2
+ const fill = "_fill_bhmhr_7";
3
+ const youtubeContainer = "_youtubeContainer_bhmhr_12";
4
+ const styles = {
5
+ videoContainer,
6
+ fill,
7
+ youtubeContainer
8
+ };
9
+ export {
10
+ styles as default,
11
+ fill,
12
+ videoContainer,
13
+ youtubeContainer
14
+ };
@@ -0,0 +1,21 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { PixelImageBlockData } from '../../blocks.generated';
3
+ export interface VideoPreviewImageProps {
4
+ onPlay: () => void;
5
+ image: PixelImageBlockData;
6
+ aspectRatio: string;
7
+ sizes?: string;
8
+ fill?: boolean;
9
+ icon?: ReactNode;
10
+ className?: string;
11
+ playButtonAriaLabel?: string;
12
+ }
13
+ export declare const VideoPreviewImage: ({ onPlay, image, aspectRatio, sizes, fill, playButtonAriaLabel, icon, className, renderImage, }: VideoPreviewImageProps & {
14
+ renderImage: (props: {
15
+ data: PixelImageBlockData;
16
+ aspectRatio: string;
17
+ sizes?: string;
18
+ fill?: boolean;
19
+ }) => ReactElement;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=VideoPreviewImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPreviewImage.d.ts","sourceRoot":"","sources":["../../../src/blocks/helpers/VideoPreviewImage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,iBAAiB,GAAI,iGAU/B,sBAAsB,GAAG;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,mBAAmB,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,YAAY,CAAC;CAC5H,4CASA,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import styles from "./VideoPreviewImage.module.scss.js";
4
+ const VideoPreviewImage = ({
5
+ onPlay,
6
+ image,
7
+ aspectRatio,
8
+ sizes = "100vw",
9
+ fill,
10
+ playButtonAriaLabel = "Play video",
11
+ icon = /* @__PURE__ */ jsx(PlayIcon, { playButtonAriaLabel }),
12
+ className,
13
+ renderImage
14
+ }) => {
15
+ return /* @__PURE__ */ jsxs("div", { className: clsx(styles.root, fill && styles.fill, className), children: [
16
+ renderImage({ data: image, aspectRatio, sizes, fill }),
17
+ /* @__PURE__ */ jsx("button", { className: styles.iconWrapper, onClick: onPlay, children: icon })
18
+ ] });
19
+ };
20
+ const PlayIcon = ({ playButtonAriaLabel }) => /* @__PURE__ */ jsx("span", { className: styles.playIcon, "aria-label": playButtonAriaLabel });
21
+ export {
22
+ VideoPreviewImage
23
+ };
@@ -0,0 +1,17 @@
1
+ const root = "_root_1k5a5_1";
2
+ const fill = "_fill_1k5a5_6";
3
+ const iconWrapper = "_iconWrapper_1k5a5_10";
4
+ const playIcon = "_playIcon_1k5a5_26";
5
+ const styles = {
6
+ root,
7
+ fill,
8
+ iconWrapper,
9
+ playIcon
10
+ };
11
+ export {
12
+ styles as default,
13
+ fill,
14
+ iconWrapper,
15
+ playIcon,
16
+ root
17
+ };
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { type BlockLoader, type BlockLoaderDependencies, recursivelyLoadBlockData } from './blockLoader/blockLoader';
1
+ export { type BlockLoader, type BlockLoaderDependencies, type BlockLoaderOptions, recursivelyLoadBlockData } from './blockLoader/blockLoader';
2
2
  export { DamFileDownloadLinkBlock } from './blocks/DamFileDownloadLinkBlock';
3
+ export { DamVideoBlock } from './blocks/DamVideoBlock';
3
4
  export { EmailLinkBlock } from './blocks/EmailLinkBlock';
4
5
  export { ExternalLinkBlock } from './blocks/ExternalLinkBlock';
5
6
  export { BlocksBlock } from './blocks/factories/BlocksBlock';
@@ -9,9 +10,13 @@ export { OptionalBlock } from './blocks/factories/OptionalBlock';
9
10
  export type { SupportedBlocks } from './blocks/factories/types';
10
11
  export { hasRichTextBlockContent } from './blocks/helpers/RichTextBlockHelper';
11
12
  export { useIsElementInViewport } from './blocks/helpers/useIsElementInViewport';
13
+ export type { VideoPreviewImageProps } from './blocks/helpers/VideoPreviewImage';
14
+ export { VideoPreviewImage } from './blocks/helpers/VideoPreviewImage';
12
15
  export { PhoneLinkBlock } from './blocks/PhoneLinkBlock';
13
16
  export type { PropsWithData } from './blocks/PropsWithData';
14
17
  export { SvgImageBlock } from './blocks/SvgImageBlock';
18
+ export { VimeoVideoBlock } from './blocks/VimeoVideoBlock';
19
+ export { YouTubeVideoBlock } from './blocks/YouTubeVideoBlock';
15
20
  export { type CookieApi, CookieApiProvider, useCookieApi } from './cookies/CookieApiContext';
16
21
  export { CookieSafe } from './cookies/CookieSafe';
17
22
  export { useCookieBotCookieApi } from './cookies/useCookieBotCookieApi';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,sBAAsB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AgC,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC"}
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { recursivelyLoadBlockData } from "./blockLoader/blockLoader.js";
2
2
  import { DamFileDownloadLinkBlock } from "./blocks/DamFileDownloadLinkBlock.js";
3
+ import { DamVideoBlock } from "./blocks/DamVideoBlock.js";
3
4
  import { EmailLinkBlock } from "./blocks/EmailLinkBlock.js";
4
5
  import { ExternalLinkBlock } from "./blocks/ExternalLinkBlock.js";
5
6
  import { BlocksBlock } from "./blocks/factories/BlocksBlock.js";
@@ -8,8 +9,11 @@ import { OneOfBlock } from "./blocks/factories/OneOfBlock.js";
8
9
  import { OptionalBlock } from "./blocks/factories/OptionalBlock.js";
9
10
  import { hasRichTextBlockContent } from "./blocks/helpers/RichTextBlockHelper.js";
10
11
  import { useIsElementInViewport } from "./blocks/helpers/useIsElementInViewport.js";
12
+ import { VideoPreviewImage } from "./blocks/helpers/VideoPreviewImage.js";
11
13
  import { PhoneLinkBlock } from "./blocks/PhoneLinkBlock.js";
12
14
  import { SvgImageBlock } from "./blocks/SvgImageBlock.js";
15
+ import { VimeoVideoBlock } from "./blocks/VimeoVideoBlock.js";
16
+ import { YouTubeVideoBlock } from "./blocks/YouTubeVideoBlock.js";
13
17
  import { CookieApiProvider, useCookieApi } from "./cookies/CookieApiContext.js";
14
18
  import { CookieSafe } from "./cookies/CookieSafe.js";
15
19
  import { useCookieBotCookieApi } from "./cookies/useCookieBotCookieApi.js";
@@ -43,6 +47,7 @@ export {
43
47
  CookieApiProvider,
44
48
  CookieSafe,
45
49
  DamFileDownloadLinkBlock,
50
+ DamVideoBlock,
46
51
  EmailLinkBlock,
47
52
  ErrorHandlerBoundary,
48
53
  ErrorHandlerProvider,
@@ -59,6 +64,9 @@ export {
59
64
  PreviewSkeleton,
60
65
  SitePreviewIFrameMessageType,
61
66
  SvgImageBlock,
67
+ VideoPreviewImage,
68
+ VimeoVideoBlock,
69
+ YouTubeVideoBlock,
62
70
  calculateInheritAspectRatio,
63
71
  convertPreviewDataToHeaders,
64
72
  createFetchInMemoryCache,
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- ._previewElementContainer_nwhl6_1{display:contents}._childrenWrapper_qguhx_1{position:relative;z-index:1}._root_v4248_1{position:absolute;z-index:2;top:0;left:0;right:0;min-height:100vh;height:var(--height)}._root_1ya0k_1{position:absolute;cursor:pointer;outline:1px solid transparent;outline-offset:-1px}._root_1ya0k_1:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:.25}._root_1ya0k_1:hover{outline-color:#29b6f6;outline-style:solid}._root_1ya0k_1:hover:after{background-color:#29b6f6}._isHoveredInBlockList_1ya0k_24{outline-color:#29b6f6;outline-style:solid}._isHoveredInBlockList_1ya0k_24:after{background-color:#29b6f6}._showBlockOutlines_1ya0k_32:not(:hover){outline-color:#d9d9d9;outline-style:dashed}._blockIsSelected_1ya0k_37{outline-color:#29b6f6}._blockIsSelected_1ya0k_37 ._label_1ya0k_40{display:inline-block}._label_1ya0k_40{position:absolute;padding:2px;background-color:#57b0eb;line-height:16px;color:#fff;top:1px;right:1px;font-size:12px;display:none}._barSkeleton_zomv4_1{min-height:20px;margin-bottom:5px;margin-right:5px;background-color:var(--background-color);color:var(--color)}._rowsContainer_zomv4_9{width:100%;min-width:300px}._rowSkeleton_zomv4_14{margin-bottom:10px;min-height:20px;width:var(--width);background-color:var(--background-color);color:var(--color)}._imageContainer_zomv4_22{width:100%;aspect-ratio:var(--aspect-ratio);height:var(--height);background-color:var(--background-color);color:var(--color)}
1
+ ._previewElementContainer_nwhl6_1{display:contents}._childrenWrapper_qguhx_1{position:relative;z-index:1}._root_v4248_1{position:absolute;z-index:2;top:0;left:0;right:0;min-height:100vh;height:var(--height)}._root_1ya0k_1{position:absolute;cursor:pointer;outline:1px solid transparent;outline-offset:-1px}._root_1ya0k_1:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:.25}._root_1ya0k_1:hover{outline-color:#29b6f6;outline-style:solid}._root_1ya0k_1:hover:after{background-color:#29b6f6}._isHoveredInBlockList_1ya0k_24{outline-color:#29b6f6;outline-style:solid}._isHoveredInBlockList_1ya0k_24:after{background-color:#29b6f6}._showBlockOutlines_1ya0k_32:not(:hover){outline-color:#d9d9d9;outline-style:dashed}._blockIsSelected_1ya0k_37{outline-color:#29b6f6}._blockIsSelected_1ya0k_37 ._label_1ya0k_40{display:inline-block}._label_1ya0k_40{position:absolute;padding:2px;background-color:#57b0eb;line-height:16px;color:#fff;top:1px;right:1px;font-size:12px;display:none}._barSkeleton_zomv4_1{min-height:20px;margin-bottom:5px;margin-right:5px;background-color:var(--background-color);color:var(--color)}._rowsContainer_zomv4_9{width:100%;min-width:300px}._rowSkeleton_zomv4_14{margin-bottom:10px;min-height:20px;width:var(--width);background-color:var(--background-color);color:var(--color)}._imageContainer_zomv4_22{width:100%;aspect-ratio:var(--aspect-ratio);height:var(--height);background-color:var(--background-color);color:var(--color)}._video_17b8y_1{width:100%;object-fit:cover;aspect-ratio:var(--aspect-ratio)}._fill_17b8y_7{height:100%}._root_1k5a5_1{position:relative;width:100%}._fill_1k5a5_6{height:100%}._iconWrapper_1k5a5_10{position:absolute;top:0;right:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#000;opacity:.5;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;padding:0;cursor:pointer}._iconWrapper_1k5a5_10:focus ._playIcon_1k5a5_26{outline:4px solid white;outline-offset:10px;border-radius:2px}._playIcon_1k5a5_26{width:64px;height:64px;box-sizing:border-box;border-style:solid;border-width:32px 0 32px 64px;border-color:transparent transparent transparent white}._videoContainer_1flq1_1{overflow:hidden;position:relative;aspect-ratio:var(--aspect-ratio)}._fill_1flq1_7{width:100%;height:100%}._vimeoContainer_1flq1_12{position:absolute;border:0;top:0;left:0;width:100%;height:100%}._videoContainer_bhmhr_1{overflow:hidden;position:relative;aspect-ratio:var(--aspect-ratio)}._fill_bhmhr_7{width:100%;height:100%}._youtubeContainer_bhmhr_12{position:absolute;border:0;top:0;left:0;width:100%;height:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/site-react",
3
- "version": "9.0.0-canary-20251113142723",
3
+ "version": "9.0.0-canary-20251124092450",
4
4
  "description": "Comet Site React package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,12 +51,12 @@
51
51
  "rollup-plugin-preserve-directives": "^0.4.0",
52
52
  "sass": "^1.89.2",
53
53
  "ts-jest": "^29.4.0",
54
- "typescript": "5.8.3",
54
+ "typescript": "5.9.3",
55
55
  "vite": "^5.4.19",
56
56
  "vite-plugin-dts": "^4.5.4",
57
57
  "webpack": "^5.102.1",
58
- "@comet/cli": "9.0.0-canary-20251113142723",
59
- "@comet/eslint-config": "9.0.0-canary-20251113142723"
58
+ "@comet/cli": "9.0.0-canary-20251124092450",
59
+ "@comet/eslint-config": "9.0.0-canary-20251124092450"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": "^18.0.0 || ^19.0.0"