@gravity-ui/page-constructor 8.2.0-alpha.0 → 8.2.1-alpha.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.
Files changed (59) hide show
  1. package/build/cjs/blocks/CardLayout/schema.d.ts +156 -0
  2. package/build/cjs/blocks/ContentLayout/schema.d.ts +78 -0
  3. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +78 -0
  4. package/build/cjs/blocks/FilterBlock/schema.d.ts +156 -0
  5. package/build/cjs/blocks/FoldableList/schema.d.ts +78 -0
  6. package/build/cjs/blocks/Form/schema.d.ts +78 -0
  7. package/build/cjs/blocks/Header/Header.css +3 -3
  8. package/build/cjs/blocks/Header/Header.js +4 -1
  9. package/build/cjs/blocks/Header/Header.js.map +1 -1
  10. package/build/cjs/blocks/Info/schema.d.ts +156 -0
  11. package/build/cjs/blocks/Map/schema.d.ts +78 -0
  12. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  13. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  14. package/build/cjs/blocks/Questions/schema.d.ts +78 -0
  15. package/build/cjs/blocks/Slider/schema.d.ts +78 -0
  16. package/build/cjs/blocks/SliderOld/schema.d.ts +78 -0
  17. package/build/cjs/blocks/Tabs/schema.d.ts +156 -0
  18. package/build/cjs/components/Title/TitleItem.js +2 -2
  19. package/build/cjs/components/Title/TitleItem.js.map +1 -1
  20. package/build/cjs/schema/constants.d.ts +234 -0
  21. package/build/cjs/schema/validators/common.d.ts +156 -0
  22. package/build/cjs/schema/validators/common.js +3 -0
  23. package/build/cjs/schema/validators/common.js.map +1 -1
  24. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  25. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +78 -0
  26. package/build/cjs/sub-blocks/Content/schema.d.ts +156 -0
  27. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +78 -0
  28. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  29. package/build/esm/blocks/CardLayout/schema.d.ts +156 -0
  30. package/build/esm/blocks/ContentLayout/schema.d.ts +78 -0
  31. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +78 -0
  32. package/build/esm/blocks/FilterBlock/schema.d.ts +156 -0
  33. package/build/esm/blocks/FoldableList/schema.d.ts +78 -0
  34. package/build/esm/blocks/Form/schema.d.ts +78 -0
  35. package/build/esm/blocks/Header/Header.css +3 -3
  36. package/build/esm/blocks/Header/Header.js +4 -1
  37. package/build/esm/blocks/Header/Header.js.map +1 -1
  38. package/build/esm/blocks/Info/schema.d.ts +156 -0
  39. package/build/esm/blocks/Map/schema.d.ts +78 -0
  40. package/build/esm/blocks/Media/schema.d.ts +156 -0
  41. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  42. package/build/esm/blocks/Questions/schema.d.ts +78 -0
  43. package/build/esm/blocks/Slider/schema.d.ts +78 -0
  44. package/build/esm/blocks/SliderOld/schema.d.ts +78 -0
  45. package/build/esm/blocks/Tabs/schema.d.ts +156 -0
  46. package/build/esm/components/Title/TitleItem.js +2 -2
  47. package/build/esm/components/Title/TitleItem.js.map +1 -1
  48. package/build/esm/schema/constants.d.ts +234 -0
  49. package/build/esm/schema/validators/common.d.ts +156 -0
  50. package/build/esm/schema/validators/common.js +3 -0
  51. package/build/esm/schema/validators/common.js.map +1 -1
  52. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  53. package/build/esm/sub-blocks/BasicCard/schema.d.ts +78 -0
  54. package/build/esm/sub-blocks/Content/schema.d.ts +156 -0
  55. package/build/esm/sub-blocks/ImageCard/schema.d.ts +78 -0
  56. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  57. package/package.json +1 -1
  58. package/schema/index.js +1 -1
  59. package/widget/index.js +1 -1
@@ -23,11 +23,11 @@ unpredictable css rules order in build */
23
23
  .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark {
24
24
  --g-color-line-focus: var(--pc-color-line-focus-dark);
25
25
  }
26
- .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__title,
27
- .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__overtitle {
26
+ .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__title {
28
27
  color: var(--g-color-text-light-primary);
29
28
  }
30
- .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__description .yfm {
29
+ .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__description .yfm,
30
+ .pc-header-block__content_theme_dark.pc-header-block__content_theme_dark .pc-header-block__overtitle .yfm {
31
31
  color: var(--g-color-text-light-primary);
32
32
  }
33
33
 
@@ -51,7 +51,10 @@ const HeaderBlock = (props) => {
51
51
  offset,
52
52
  theme: textTheme,
53
53
  'vertical-offset': curVerticalOffset,
54
- }), children: (0, jsx_runtime_1.jsxs)(grid_1.Col, { sizes: titleSizes, className: b('content-inner', { centered }, contentInnerClassName), children: [overtitle && ((0, jsx_runtime_1.jsx)("div", { className: b('overtitle'), children: typeof overtitle === 'string' ? ((0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { tagName: "div", className: b('overtitle'), content: overtitle, modifiers: { constructor: true } })) : (overtitle) })), (0, jsx_runtime_1.jsxs)(YFMWrapper_1.default, { content: title, contentClassName: b('title'), className: b('title-container'), modifiers: { constructor: true, constructorTheme: textTheme }, tagName: "h1", contentPosition: "end", children: [status, renderTitle ? renderTitle(title) : null] }), description && ((0, jsx_runtime_1.jsx)("div", { className: b('description', { theme: textTheme }), children: (0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { content: description, modifiers: {
54
+ }), children: (0, jsx_runtime_1.jsxs)(grid_1.Col, { sizes: titleSizes, className: b('content-inner', { centered }, contentInnerClassName), children: [overtitle && ((0, jsx_runtime_1.jsx)("div", { className: b('overtitle'), children: typeof overtitle === 'string' ? ((0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { tagName: "div", className: b('overtitle'), content: overtitle, modifiers: {
55
+ constructor: true,
56
+ constructorTheme: textTheme,
57
+ } })) : (overtitle) })), (0, jsx_runtime_1.jsxs)(YFMWrapper_1.default, { content: title, contentClassName: b('title'), className: b('title-container'), modifiers: { constructor: true, constructorTheme: textTheme }, tagName: "h1", contentPosition: "end", children: [status, renderTitle ? renderTitle(title) : null] }), description && ((0, jsx_runtime_1.jsx)("div", { className: b('description', { theme: textTheme }), children: (0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { content: description, modifiers: {
55
58
  constructor: true,
56
59
  constructorTheme: textTheme,
57
60
  } }) })), additionalInfo && ((0, jsx_runtime_1.jsx)("div", { className: b('additional-info', { theme: textTheme }), children: (0, jsx_runtime_1.jsx)(YFMWrapper_1.default, { content: additionalInfo, modifiers: {
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"../../../../src","sources":["blocks/Header/Header.tsx"],"names":[],"mappings":";;;;;AAGA,6CAA4C;AAE5C,0DAA2D;AAC3D,wHAAqF;AACrF,iEAAiE;AACjE,mGAAgE;AAChE,kDAA4C;AAC5C,wDAA6C;AAC7C,kFAAgE;AAChE,8CAA0C;AAE1C,gDAAkD;AAClD,wDAA0D;AAE1D,sCAAyE;AAIzE,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,cAAc,CAAC,CAAC;AAgBhC,MAAM,UAAU,GAAG,CAAC,EAAC,UAAU,EAAE,QAAQ,EAAkB,EAAE,EAAE;IAC3D,MAAM,EAAC,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,UAAU,CAAC;IAC9D,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,IAAA,qBAAa,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,QAAQ,IAAI,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,CAAC;IAElF,O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C,uBAAU,IAAC,IAAI,EAAE,MAAM,CAAC,GAAG,YACxB,uBAAC,mBAAM,IAEH,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,IAAI,EAAC,IAAI,EACT,UAAU,EAAE;gEACR,kBAAkB,EAAE,OAAO;gEAC3B,GAAG,MAAM,CAAC,UAAU;6DACvB,KACG,MAAM,IAPL,KAAK,CAQZ,IAV6B,KAAK,CAW3B,CAChB,CAAC,GACA,CACT,EACA,QAAQ,IACP,GACJ,GACJ,EACL,iBAAiB,IAAI,CAClB,uBAAC,kBAAK,IACF,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAC,EAAE,cAAc,CAAC,EAC7D,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,gBAAgB,EAAE,CAAC,CAAC,cAAc,CAAC,KAC/B,kBAAkB,GACxB,CACL,IACC,GACJ,IACH,IACF,CACZ,CAAC;AACN,CAAC,CAAC;AA9KW,QAAA,WAAW,eA8KtB;AAEF,kBAAe,mBAAW,CAAC","sourcesContent":["/* eslint-disable complexity */\nimport * as React from 'react';\n\nimport {useUniqId} from '@gravity-ui/uikit';\n\nimport {Button, Media, RouterLink} from '../../components';\nimport HeaderBreadcrumbs from '../../components/HeaderBreadcrumbs/HeaderBreadcrumbs';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport YFMWrapper from '../../components/YFMWrapper/YFMWrapper';\nimport {BREAKPOINTS} from '../../constants';\nimport {useTheme} from '../../context/theme';\nimport {useWindowWidth} from '../../context/windowWidthContext';\nimport {Col, Grid, Row} from '../../grid';\nimport {ClassNameProps, HeaderBlockBackground, HeaderBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport {mergeVideoMicrodata} from '../../utils/microdata';\n\nimport {getImageSize, getTitleSizes, titleWithImageSizes} from './utils';\n\nimport './Header.scss';\n\nconst b = block('header-block');\n\ntype ElementsClassName = {\n gridClassName?: string;\n mediaClassName?: string;\n contentWrapperClassName?: string;\n contentInnerClassName?: string;\n};\n\nexport type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps & ElementsClassName;\n\ninterface BackgroundProps {\n background: HeaderBlockBackground;\n isMobile: boolean;\n}\n\nconst Background = ({background, isMobile}: BackgroundProps) => {\n const {url, image, fullWidthMedia, video, color} = background;\n const imageObject = url ? getMediaImage(url) : image;\n const renderMedia = !isMobile || (typeof image === 'object' && 'mobile' in image);\n\n return (\n <div\n className={b('background', {media: true, 'full-width-media': fullWidthMedia})}\n style={{backgroundColor: color}}\n >\n {renderMedia && (\n <Media\n {...background}\n className={b('background-media')}\n imageClassName={b('image')}\n videoClassName={b('video')}\n isBackground={true}\n parallax={false}\n video={isMobile ? undefined : video}\n image={imageObject}\n />\n )}\n </div>\n );\n};\n\ninterface FullWidthBackgroundProps {\n background: HeaderBlockBackground;\n}\n\nconst FullWidthBackground = ({background}: FullWidthBackgroundProps) => (\n <div\n className={b('background', {['full-width']: true})}\n style={{backgroundColor: background?.color}}\n />\n);\n\nexport const HeaderBlock = (props: React.PropsWithChildren<HeaderBlockFullProps>) => {\n const {\n title,\n overtitle,\n description,\n buttons,\n image,\n video,\n videoIframe,\n width = 'm',\n imageSize,\n offset = 'default',\n background,\n theme: textTheme = 'light',\n verticalOffset = 'm',\n className,\n gridClassName,\n breadcrumbs,\n status,\n renderTitle,\n children,\n mediaView = 'full',\n centered,\n additionalInfo,\n mediaClassName,\n contentWrapperClassName,\n contentInnerClassName,\n } = props;\n const windowWidth = useWindowWidth();\n const isMobile = windowWidth <= BREAKPOINTS.sm;\n const theme = useTheme();\n const hasRightSideImage = Boolean((image || video || videoIframe) && !centered);\n const curImageSize = imageSize || getImageSize(width);\n const titleSizes = hasRightSideImage ? titleWithImageSizes(curImageSize) : getTitleSizes(width);\n let curVerticalOffset = verticalOffset;\n\n if (hasRightSideImage && !verticalOffset) {\n curVerticalOffset = 'm';\n }\n\n const backgroundThemed = background && getThemedValue(background, theme);\n const imageThemed = image && getThemedValue(image, theme);\n const videoThemed = video && getThemedValue(video, theme);\n const {src: videoIframeSrc, ...videoIframeProps} = videoIframe ?? {};\n const mediaWithMicrodata = mergeVideoMicrodata(\n {video: videoThemed, image: imageThemed, videoIframe: videoIframeSrc, ...videoIframeProps},\n {name: title, description},\n );\n const fullWidth = backgroundThemed?.fullWidth || backgroundThemed?.fullWidthMedia;\n const titleId = useUniqId();\n\n return (\n <header\n className={b(\n {\n ['has-media']: hasRightSideImage,\n ['full-width']: fullWidth,\n ['media-view']: mediaView,\n ['controls-view']: textTheme,\n },\n className,\n )}\n >\n {backgroundThemed && fullWidth && <FullWidthBackground background={backgroundThemed} />}\n {backgroundThemed && <Background background={backgroundThemed} isMobile={isMobile} />}\n <Grid containerClass={b('container-fluid')} className={b(null, gridClassName)}>\n {breadcrumbs && (\n <Row className={b('breadcrumbs')}>\n <Col>\n <HeaderBreadcrumbs {...breadcrumbs} theme={textTheme} />\n </Col>\n </Row>\n )}\n <Row>\n <Col reset className={b('content-wrapper', contentWrapperClassName)}>\n <Row>\n <Col\n className={b('content', {\n offset,\n theme: textTheme,\n 'vertical-offset': curVerticalOffset,\n })}\n >\n <Col\n sizes={titleSizes}\n className={b(\n 'content-inner',\n {centered},\n contentInnerClassName,\n )}\n >\n {overtitle && (\n <div className={b('overtitle')}>\n {typeof overtitle === 'string' ? (\n <YFMWrapper\n tagName=\"div\"\n className={b('overtitle')}\n content={overtitle}\n modifiers={{constructor: true}}\n />\n ) : (\n overtitle\n )}\n </div>\n )}\n <YFMWrapper\n content={title}\n contentClassName={b('title')}\n className={b('title-container')}\n modifiers={{constructor: true, constructorTheme: textTheme}}\n tagName=\"h1\"\n contentPosition=\"end\"\n >\n {status}\n {renderTitle ? renderTitle(title) : null}\n </YFMWrapper>\n {description && (\n <div className={b('description', {theme: textTheme})}>\n <YFMWrapper\n content={description}\n modifiers={{\n constructor: true,\n constructorTheme: textTheme,\n }}\n />\n </div>\n )}\n {additionalInfo && (\n <div className={b('additional-info', {theme: textTheme})}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n constructorTheme: textTheme,\n }}\n />\n </div>\n )}\n {buttons && (\n <div className={b('buttons')} data-qa=\"header-buttons\">\n {buttons.map((button, index) => (\n <RouterLink href={button.url} key={index}>\n <Button\n key={index}\n className={b('button')}\n size=\"xl\"\n extraProps={{\n 'aria-describedby': titleId,\n ...button.extraProps,\n }}\n {...button}\n />\n </RouterLink>\n ))}\n </div>\n )}\n {children}\n </Col>\n </Col>\n </Row>\n {hasRightSideImage && (\n <Media\n className={b('media', {[curImageSize]: true}, mediaClassName)}\n videoClassName={b('video')}\n imageClassName={b('image')}\n youtubeClassName={b('video-iframe')}\n {...mediaWithMicrodata}\n />\n )}\n </Col>\n </Row>\n </Grid>\n </header>\n );\n};\n\nexport default HeaderBlock;\n"]}
1
+ {"version":3,"file":"Header.js","sourceRoot":"../../../../src","sources":["blocks/Header/Header.tsx"],"names":[],"mappings":";;;;;AAGA,6CAA4C;AAE5C,0DAA2D;AAC3D,wHAAqF;AACrF,iEAAiE;AACjE,mGAAgE;AAChE,kDAA4C;AAC5C,wDAA6C;AAC7C,kFAAgE;AAChE,8CAA0C;AAE1C,gDAAkD;AAClD,wDAA0D;AAE1D,sCAAyE;AAIzE,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,cAAc,CAAC,CAAC;AAgBhC,MAAM,UAAU,GAAG,CAAC,EAAC,UAAU,EAAE,QAAQ,EAAkB,EAAE,EAAE;IAC3D,MAAM,EAAC,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,UAAU,CAAC;IAC9D,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,IAAA,qBAAa,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,QAAQ,IAAI,CA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AC,aAAU,gBAAgB,YACjD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,uBAAC,uBAAU,IAAC,IAAI,EAAE,MAAM,CAAC,GAAG,YACxB,uBAAC,mBAAM,IAEH,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,IAAI,EAAC,IAAI,EACT,UAAU,EAAE;gEACR,kBAAkB,EAAE,OAAO;gEAC3B,GAAG,MAAM,CAAC,UAAU;6DACvB,KACG,MAAM,IAPL,KAAK,CAQZ,IAV6B,KAAK,CAW3B,CAChB,CAAC,GACA,CACT,EACA,QAAQ,IACP,GACJ,GACJ,EACL,iBAAiB,IAAI,CAClB,uBAAC,kBAAK,IACF,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAC,EAAE,cAAc,CAAC,EAC7D,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,gBAAgB,EAAE,CAAC,CAAC,cAAc,CAAC,KAC/B,kBAAkB,GACxB,CACL,IACC,GACJ,IACH,IACF,CACZ,CAAC;AACN,CAAC,CAAC;AAjLW,QAAA,WAAW,eAiLtB;AAEF,kBAAe,mBAAW,CAAC","sourcesContent":["/* eslint-disable complexity */\nimport * as React from 'react';\n\nimport {useUniqId} from '@gravity-ui/uikit';\n\nimport {Button, Media, RouterLink} from '../../components';\nimport HeaderBreadcrumbs from '../../components/HeaderBreadcrumbs/HeaderBreadcrumbs';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport YFMWrapper from '../../components/YFMWrapper/YFMWrapper';\nimport {BREAKPOINTS} from '../../constants';\nimport {useTheme} from '../../context/theme';\nimport {useWindowWidth} from '../../context/windowWidthContext';\nimport {Col, Grid, Row} from '../../grid';\nimport {ClassNameProps, HeaderBlockBackground, HeaderBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport {mergeVideoMicrodata} from '../../utils/microdata';\n\nimport {getImageSize, getTitleSizes, titleWithImageSizes} from './utils';\n\nimport './Header.scss';\n\nconst b = block('header-block');\n\ntype ElementsClassName = {\n gridClassName?: string;\n mediaClassName?: string;\n contentWrapperClassName?: string;\n contentInnerClassName?: string;\n};\n\nexport type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps & ElementsClassName;\n\ninterface BackgroundProps {\n background: HeaderBlockBackground;\n isMobile: boolean;\n}\n\nconst Background = ({background, isMobile}: BackgroundProps) => {\n const {url, image, fullWidthMedia, video, color} = background;\n const imageObject = url ? getMediaImage(url) : image;\n const renderMedia = !isMobile || (typeof image === 'object' && 'mobile' in image);\n\n return (\n <div\n className={b('background', {media: true, 'full-width-media': fullWidthMedia})}\n style={{backgroundColor: color}}\n >\n {renderMedia && (\n <Media\n {...background}\n className={b('background-media')}\n imageClassName={b('image')}\n videoClassName={b('video')}\n isBackground={true}\n parallax={false}\n video={isMobile ? undefined : video}\n image={imageObject}\n />\n )}\n </div>\n );\n};\n\ninterface FullWidthBackgroundProps {\n background: HeaderBlockBackground;\n}\n\nconst FullWidthBackground = ({background}: FullWidthBackgroundProps) => (\n <div\n className={b('background', {['full-width']: true})}\n style={{backgroundColor: background?.color}}\n />\n);\n\nexport const HeaderBlock = (props: React.PropsWithChildren<HeaderBlockFullProps>) => {\n const {\n title,\n overtitle,\n description,\n buttons,\n image,\n video,\n videoIframe,\n width = 'm',\n imageSize,\n offset = 'default',\n background,\n theme: textTheme = 'light',\n verticalOffset = 'm',\n className,\n gridClassName,\n breadcrumbs,\n status,\n renderTitle,\n children,\n mediaView = 'full',\n centered,\n additionalInfo,\n mediaClassName,\n contentWrapperClassName,\n contentInnerClassName,\n } = props;\n const windowWidth = useWindowWidth();\n const isMobile = windowWidth <= BREAKPOINTS.sm;\n const theme = useTheme();\n const hasRightSideImage = Boolean((image || video || videoIframe) && !centered);\n const curImageSize = imageSize || getImageSize(width);\n const titleSizes = hasRightSideImage ? titleWithImageSizes(curImageSize) : getTitleSizes(width);\n let curVerticalOffset = verticalOffset;\n\n if (hasRightSideImage && !verticalOffset) {\n curVerticalOffset = 'm';\n }\n\n const backgroundThemed = background && getThemedValue(background, theme);\n const imageThemed = image && getThemedValue(image, theme);\n const videoThemed = video && getThemedValue(video, theme);\n const {src: videoIframeSrc, ...videoIframeProps} = videoIframe ?? {};\n const mediaWithMicrodata = mergeVideoMicrodata(\n {video: videoThemed, image: imageThemed, videoIframe: videoIframeSrc, ...videoIframeProps},\n {name: title, description},\n );\n const fullWidth = backgroundThemed?.fullWidth || backgroundThemed?.fullWidthMedia;\n const titleId = useUniqId();\n\n return (\n <header\n className={b(\n {\n ['has-media']: hasRightSideImage,\n ['full-width']: fullWidth,\n ['media-view']: mediaView,\n ['controls-view']: textTheme,\n },\n className,\n )}\n >\n {backgroundThemed && fullWidth && <FullWidthBackground background={backgroundThemed} />}\n {backgroundThemed && <Background background={backgroundThemed} isMobile={isMobile} />}\n <Grid containerClass={b('container-fluid')} className={b(null, gridClassName)}>\n {breadcrumbs && (\n <Row className={b('breadcrumbs')}>\n <Col>\n <HeaderBreadcrumbs {...breadcrumbs} theme={textTheme} />\n </Col>\n </Row>\n )}\n <Row>\n <Col reset className={b('content-wrapper', contentWrapperClassName)}>\n <Row>\n <Col\n className={b('content', {\n offset,\n theme: textTheme,\n 'vertical-offset': curVerticalOffset,\n })}\n >\n <Col\n sizes={titleSizes}\n className={b(\n 'content-inner',\n {centered},\n contentInnerClassName,\n )}\n >\n {overtitle && (\n <div className={b('overtitle')}>\n {typeof overtitle === 'string' ? (\n <YFMWrapper\n tagName=\"div\"\n className={b('overtitle')}\n content={overtitle}\n modifiers={{\n constructor: true,\n constructorTheme: textTheme,\n }}\n />\n ) : (\n overtitle\n )}\n </div>\n )}\n <YFMWrapper\n content={title}\n contentClassName={b('title')}\n className={b('title-container')}\n modifiers={{constructor: true, constructorTheme: textTheme}}\n tagName=\"h1\"\n contentPosition=\"end\"\n >\n {status}\n {renderTitle ? renderTitle(title) : null}\n </YFMWrapper>\n {description && (\n <div className={b('description', {theme: textTheme})}>\n <YFMWrapper\n content={description}\n modifiers={{\n constructor: true,\n constructorTheme: textTheme,\n }}\n />\n </div>\n )}\n {additionalInfo && (\n <div className={b('additional-info', {theme: textTheme})}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n constructorTheme: textTheme,\n }}\n />\n </div>\n )}\n {buttons && (\n <div className={b('buttons')} data-qa=\"header-buttons\">\n {buttons.map((button, index) => (\n <RouterLink href={button.url} key={index}>\n <Button\n key={index}\n className={b('button')}\n size=\"xl\"\n extraProps={{\n 'aria-describedby': titleId,\n ...button.extraProps,\n }}\n {...button}\n />\n </RouterLink>\n ))}\n </div>\n )}\n {children}\n </Col>\n </Col>\n </Row>\n {hasRightSideImage && (\n <Media\n className={b('media', {[curImageSize]: true}, mediaClassName)}\n videoClassName={b('video')}\n imageClassName={b('image')}\n youtubeClassName={b('video-iframe')}\n {...mediaWithMicrodata}\n />\n )}\n </Col>\n </Row>\n </Grid>\n </header>\n );\n};\n\nexport default HeaderBlock;\n"]}
@@ -81,6 +81,84 @@ export declare const InfoBlock: {
81
81
  resetMargin: {
82
82
  type: string;
83
83
  };
84
+ analyticsEvents: {
85
+ anyOf: ({
86
+ type: string;
87
+ additionalProperties: {
88
+ type: string;
89
+ };
90
+ required: string[];
91
+ properties: {
92
+ name: {
93
+ type: string;
94
+ };
95
+ type: {
96
+ type: string;
97
+ };
98
+ counters: {
99
+ type: string;
100
+ additionalProperties: boolean;
101
+ required: never[];
102
+ properties: {
103
+ include: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ };
108
+ };
109
+ exclude: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ };
115
+ };
116
+ };
117
+ context: {
118
+ type: string;
119
+ };
120
+ };
121
+ } | {
122
+ type: string;
123
+ items: {
124
+ type: string;
125
+ additionalProperties: {
126
+ type: string;
127
+ };
128
+ required: string[];
129
+ properties: {
130
+ name: {
131
+ type: string;
132
+ };
133
+ type: {
134
+ type: string;
135
+ };
136
+ counters: {
137
+ type: string;
138
+ additionalProperties: boolean;
139
+ required: never[];
140
+ properties: {
141
+ include: {
142
+ type: string;
143
+ items: {
144
+ type: string;
145
+ };
146
+ };
147
+ exclude: {
148
+ type: string;
149
+ items: {
150
+ type: string;
151
+ };
152
+ };
153
+ };
154
+ };
155
+ context: {
156
+ type: string;
157
+ };
158
+ };
159
+ };
160
+ })[];
161
+ };
84
162
  };
85
163
  contentType?: undefined;
86
164
  })[];
@@ -183,6 +261,84 @@ export declare const InfoBlock: {
183
261
  resetMargin: {
184
262
  type: string;
185
263
  };
264
+ analyticsEvents: {
265
+ anyOf: ({
266
+ type: string;
267
+ additionalProperties: {
268
+ type: string;
269
+ };
270
+ required: string[];
271
+ properties: {
272
+ name: {
273
+ type: string;
274
+ };
275
+ type: {
276
+ type: string;
277
+ };
278
+ counters: {
279
+ type: string;
280
+ additionalProperties: boolean;
281
+ required: never[];
282
+ properties: {
283
+ include: {
284
+ type: string;
285
+ items: {
286
+ type: string;
287
+ };
288
+ };
289
+ exclude: {
290
+ type: string;
291
+ items: {
292
+ type: string;
293
+ };
294
+ };
295
+ };
296
+ };
297
+ context: {
298
+ type: string;
299
+ };
300
+ };
301
+ } | {
302
+ type: string;
303
+ items: {
304
+ type: string;
305
+ additionalProperties: {
306
+ type: string;
307
+ };
308
+ required: string[];
309
+ properties: {
310
+ name: {
311
+ type: string;
312
+ };
313
+ type: {
314
+ type: string;
315
+ };
316
+ counters: {
317
+ type: string;
318
+ additionalProperties: boolean;
319
+ required: never[];
320
+ properties: {
321
+ include: {
322
+ type: string;
323
+ items: {
324
+ type: string;
325
+ };
326
+ };
327
+ exclude: {
328
+ type: string;
329
+ items: {
330
+ type: string;
331
+ };
332
+ };
333
+ };
334
+ };
335
+ context: {
336
+ type: string;
337
+ };
338
+ };
339
+ };
340
+ })[];
341
+ };
186
342
  };
187
343
  contentType?: undefined;
188
344
  })[];
@@ -413,6 +413,84 @@ export declare const MapBlock: {
413
413
  resetMargin: {
414
414
  type: string;
415
415
  };
416
+ analyticsEvents: {
417
+ anyOf: ({
418
+ type: string;
419
+ additionalProperties: {
420
+ type: string;
421
+ };
422
+ required: string[];
423
+ properties: {
424
+ name: {
425
+ type: string;
426
+ };
427
+ type: {
428
+ type: string;
429
+ };
430
+ counters: {
431
+ type: string;
432
+ additionalProperties: boolean;
433
+ required: never[];
434
+ properties: {
435
+ include: {
436
+ type: string;
437
+ items: {
438
+ type: string;
439
+ };
440
+ };
441
+ exclude: {
442
+ type: string;
443
+ items: {
444
+ type: string;
445
+ };
446
+ };
447
+ };
448
+ };
449
+ context: {
450
+ type: string;
451
+ };
452
+ };
453
+ } | {
454
+ type: string;
455
+ items: {
456
+ type: string;
457
+ additionalProperties: {
458
+ type: string;
459
+ };
460
+ required: string[];
461
+ properties: {
462
+ name: {
463
+ type: string;
464
+ };
465
+ type: {
466
+ type: string;
467
+ };
468
+ counters: {
469
+ type: string;
470
+ additionalProperties: boolean;
471
+ required: never[];
472
+ properties: {
473
+ include: {
474
+ type: string;
475
+ items: {
476
+ type: string;
477
+ };
478
+ };
479
+ exclude: {
480
+ type: string;
481
+ items: {
482
+ type: string;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ context: {
488
+ type: string;
489
+ };
490
+ };
491
+ };
492
+ })[];
493
+ };
416
494
  };
417
495
  contentType?: undefined;
418
496
  })[];
@@ -529,6 +529,84 @@ export declare const MediaBlockBaseProps: {
529
529
  resetMargin: {
530
530
  type: string;
531
531
  };
532
+ analyticsEvents: {
533
+ anyOf: ({
534
+ type: string;
535
+ additionalProperties: {
536
+ type: string;
537
+ };
538
+ required: string[];
539
+ properties: {
540
+ name: {
541
+ type: string;
542
+ };
543
+ type: {
544
+ type: string;
545
+ };
546
+ counters: {
547
+ type: string;
548
+ additionalProperties: boolean;
549
+ required: never[];
550
+ properties: {
551
+ include: {
552
+ type: string;
553
+ items: {
554
+ type: string;
555
+ };
556
+ };
557
+ exclude: {
558
+ type: string;
559
+ items: {
560
+ type: string;
561
+ };
562
+ };
563
+ };
564
+ };
565
+ context: {
566
+ type: string;
567
+ };
568
+ };
569
+ } | {
570
+ type: string;
571
+ items: {
572
+ type: string;
573
+ additionalProperties: {
574
+ type: string;
575
+ };
576
+ required: string[];
577
+ properties: {
578
+ name: {
579
+ type: string;
580
+ };
581
+ type: {
582
+ type: string;
583
+ };
584
+ counters: {
585
+ type: string;
586
+ additionalProperties: boolean;
587
+ required: never[];
588
+ properties: {
589
+ include: {
590
+ type: string;
591
+ items: {
592
+ type: string;
593
+ };
594
+ };
595
+ exclude: {
596
+ type: string;
597
+ items: {
598
+ type: string;
599
+ };
600
+ };
601
+ };
602
+ };
603
+ context: {
604
+ type: string;
605
+ };
606
+ };
607
+ };
608
+ })[];
609
+ };
532
610
  };
533
611
  contentType?: undefined;
534
612
  })[];
@@ -1181,6 +1259,84 @@ export declare const MediaBlock: {
1181
1259
  resetMargin: {
1182
1260
  type: string;
1183
1261
  };
1262
+ analyticsEvents: {
1263
+ anyOf: ({
1264
+ type: string;
1265
+ additionalProperties: {
1266
+ type: string;
1267
+ };
1268
+ required: string[];
1269
+ properties: {
1270
+ name: {
1271
+ type: string;
1272
+ };
1273
+ type: {
1274
+ type: string;
1275
+ };
1276
+ counters: {
1277
+ type: string;
1278
+ additionalProperties: boolean;
1279
+ required: never[];
1280
+ properties: {
1281
+ include: {
1282
+ type: string;
1283
+ items: {
1284
+ type: string;
1285
+ };
1286
+ };
1287
+ exclude: {
1288
+ type: string;
1289
+ items: {
1290
+ type: string;
1291
+ };
1292
+ };
1293
+ };
1294
+ };
1295
+ context: {
1296
+ type: string;
1297
+ };
1298
+ };
1299
+ } | {
1300
+ type: string;
1301
+ items: {
1302
+ type: string;
1303
+ additionalProperties: {
1304
+ type: string;
1305
+ };
1306
+ required: string[];
1307
+ properties: {
1308
+ name: {
1309
+ type: string;
1310
+ };
1311
+ type: {
1312
+ type: string;
1313
+ };
1314
+ counters: {
1315
+ type: string;
1316
+ additionalProperties: boolean;
1317
+ required: never[];
1318
+ properties: {
1319
+ include: {
1320
+ type: string;
1321
+ items: {
1322
+ type: string;
1323
+ };
1324
+ };
1325
+ exclude: {
1326
+ type: string;
1327
+ items: {
1328
+ type: string;
1329
+ };
1330
+ };
1331
+ };
1332
+ };
1333
+ context: {
1334
+ type: string;
1335
+ };
1336
+ };
1337
+ };
1338
+ })[];
1339
+ };
1184
1340
  };
1185
1341
  contentType?: undefined;
1186
1342
  })[];
@@ -375,6 +375,84 @@ export declare const PromoFeaturesBlock: {
375
375
  resetMargin: {
376
376
  type: string;
377
377
  };
378
+ analyticsEvents: {
379
+ anyOf: ({
380
+ type: string;
381
+ additionalProperties: {
382
+ type: string;
383
+ };
384
+ required: string[];
385
+ properties: {
386
+ name: {
387
+ type: string;
388
+ };
389
+ type: {
390
+ type: string;
391
+ };
392
+ counters: {
393
+ type: string;
394
+ additionalProperties: boolean;
395
+ required: never[];
396
+ properties: {
397
+ include: {
398
+ type: string;
399
+ items: {
400
+ type: string;
401
+ };
402
+ };
403
+ exclude: {
404
+ type: string;
405
+ items: {
406
+ type: string;
407
+ };
408
+ };
409
+ };
410
+ };
411
+ context: {
412
+ type: string;
413
+ };
414
+ };
415
+ } | {
416
+ type: string;
417
+ items: {
418
+ type: string;
419
+ additionalProperties: {
420
+ type: string;
421
+ };
422
+ required: string[];
423
+ properties: {
424
+ name: {
425
+ type: string;
426
+ };
427
+ type: {
428
+ type: string;
429
+ };
430
+ counters: {
431
+ type: string;
432
+ additionalProperties: boolean;
433
+ required: never[];
434
+ properties: {
435
+ include: {
436
+ type: string;
437
+ items: {
438
+ type: string;
439
+ };
440
+ };
441
+ exclude: {
442
+ type: string;
443
+ items: {
444
+ type: string;
445
+ };
446
+ };
447
+ };
448
+ };
449
+ context: {
450
+ type: string;
451
+ };
452
+ };
453
+ };
454
+ })[];
455
+ };
378
456
  };
379
457
  })[];
380
458
  };