@npm_leadtech/legal-lib-components 7.87.0 → 7.88.0

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- const Video = ({ videoSrcURL, videoMimeType = 'video/webm', title = '', controls = true, autoPlay = false, loop = false, muted = false, track, preload = 'auto', poster = '' }) => {
2
+ const Video = ({ videoSrcURL, videoMimeType = '', title = '', controls = true, autoPlay = false, loop = false, muted = false, track, preload = 'auto', poster = '' }) => {
3
3
  if (!videoSrcURL)
4
4
  return null;
5
5
  return (
@@ -4,7 +4,7 @@ import { type VideoProps } from './VideoProps.types'
4
4
 
5
5
  const Video = ({
6
6
  videoSrcURL,
7
- videoMimeType = 'video/webm',
7
+ videoMimeType = '',
8
8
  title = '',
9
9
  controls = true,
10
10
  autoPlay = false,
@@ -3,11 +3,11 @@ import { StepsRatafiaContent } from '../../organisms';
3
3
  import { StepsRatafiaSectionStyled } from './StepsRatafiaSection.styled';
4
4
  import { Video } from '../../atoms';
5
5
  import classNames from 'classnames';
6
- const StepsRatafiaSection = ({ title, steps, videoUrl, mainImage, description, videoPosterUrl }) => {
6
+ const StepsRatafiaSection = ({ title, steps, videoUrl, mainImage, description, videoPosterUrl, videoMimeType }) => {
7
7
  const isEsignatureLanding = !videoUrl;
8
8
  const classnames = classNames({
9
9
  '--is-esignature': isEsignatureLanding
10
10
  });
11
- return (_jsx(StepsRatafiaSectionStyled, { className: 'steps-ratafia-section', children: _jsxs("div", { className: `steps-ratafia-section__wrapper ${classnames}`, children: [!isEsignatureLanding ? (_jsx("div", { className: 'steps-ratafia-section__wrapper__video', children: _jsx(Video, { videoSrcURL: videoUrl, preload: 'none', poster: videoPosterUrl }) })) : (_jsx("div", { className: 'steps-ratafia-section__wrapper__image', children: mainImage })), _jsx("div", { className: 'steps-ratafia-section__wrapper__content', children: _jsx(StepsRatafiaContent, { title: title, steps: steps, description: description }) })] }) }));
11
+ return (_jsx(StepsRatafiaSectionStyled, { className: 'steps-ratafia-section', children: _jsxs("div", { className: `steps-ratafia-section__wrapper ${classnames}`, children: [!isEsignatureLanding ? (_jsx("div", { className: 'steps-ratafia-section__wrapper__video', children: _jsx(Video, { videoSrcURL: videoUrl, preload: 'none', poster: videoPosterUrl, videoMimeType: videoMimeType }) })) : (_jsx("div", { className: 'steps-ratafia-section__wrapper__image', children: mainImage })), _jsx("div", { className: 'steps-ratafia-section__wrapper__content', children: _jsx(StepsRatafiaContent, { title: title, steps: steps, description: description }) })] }) }));
12
12
  };
13
13
  export default StepsRatafiaSection;
@@ -12,7 +12,8 @@ const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({
12
12
  videoUrl,
13
13
  mainImage,
14
14
  description,
15
- videoPosterUrl
15
+ videoPosterUrl,
16
+ videoMimeType
16
17
  }) => {
17
18
  const isEsignatureLanding = !videoUrl
18
19
  const classnames = classNames({
@@ -24,7 +25,7 @@ const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({
24
25
  <div className={`steps-ratafia-section__wrapper ${classnames}`}>
25
26
  {!isEsignatureLanding ? (
26
27
  <div className='steps-ratafia-section__wrapper__video'>
27
- <Video videoSrcURL={videoUrl} preload='none' poster={videoPosterUrl} />
28
+ <Video videoSrcURL={videoUrl} preload='none' poster={videoPosterUrl} videoMimeType={videoMimeType} />
28
29
  </div>
29
30
  ) : (
30
31
  <div className='steps-ratafia-section__wrapper__image'>{mainImage}</div>
@@ -7,4 +7,5 @@ export interface StepsRatafiaSectionProps {
7
7
  mainImage?: React.ReactNode;
8
8
  description?: React.ReactNode;
9
9
  videoPosterUrl?: string;
10
+ videoMimeType?: string;
10
11
  }
@@ -8,4 +8,5 @@ export interface StepsRatafiaSectionProps {
8
8
  mainImage?: React.ReactNode
9
9
  description?: React.ReactNode
10
10
  videoPosterUrl?: string
11
+ videoMimeType?: string
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.87.0",
3
+ "version": "7.88.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",