@gravity-ui/page-constructor 6.6.2 → 7.0.0-alpha.1
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/README.md +10 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -5
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/cjs/blocks/Header/Header.css +15 -10
- package/build/cjs/blocks/Header/Header.js +6 -1
- package/build/cjs/blocks/Header/Header.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.css +0 -10
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -2
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +9 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +3 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/cjs/blocks/Share/Share.css +3 -2
- package/build/cjs/blocks/Share/Share.js +5 -1
- package/build/cjs/blocks/Share/Share.js.map +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.css +22 -21
- package/build/cjs/blocks/Slider/Arrow/Arrow.d.ts +4 -2
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/cjs/blocks/Slider/Slider.css +549 -329
- package/build/cjs/blocks/Slider/Slider.d.ts +6 -5
- package/build/cjs/blocks/Slider/Slider.js +32 -275
- package/build/cjs/blocks/Slider/Slider.js.map +1 -1
- package/build/cjs/blocks/Slider/i18n/en.json +1 -1
- package/build/cjs/blocks/Slider/i18n/ru.json +1 -1
- package/build/cjs/blocks/Slider/models.d.ts +2 -2
- package/build/cjs/blocks/Slider/models.js +1 -1
- package/build/cjs/blocks/Slider/models.js.map +1 -1
- package/build/cjs/blocks/Slider/schema.d.ts +18 -1
- package/build/cjs/blocks/Slider/schema.js +9 -0
- package/build/cjs/blocks/Slider/schema.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → Slider}/useSlider.d.ts +1 -0
- package/build/cjs/blocks/{SliderNew → Slider}/useSlider.js +4 -0
- package/build/cjs/blocks/Slider/useSlider.js.map +1 -0
- package/build/cjs/blocks/Slider/useSliderPagination.js.map +1 -0
- package/build/cjs/blocks/Slider/utils.d.ts +7 -28
- package/build/cjs/blocks/Slider/utils.js +28 -109
- package/build/cjs/blocks/Slider/utils.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +14 -11
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.d.ts +9 -0
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.js +11 -0
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
- package/build/cjs/blocks/SliderOld/SliderOld.css +703 -0
- package/build/cjs/blocks/SliderOld/SliderOld.d.ts +17 -0
- package/build/cjs/blocks/SliderOld/SliderOld.js +293 -0
- package/build/cjs/blocks/SliderOld/SliderOld.js.map +1 -0
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.js +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/schema.d.ts +5 -21
- package/build/cjs/blocks/{SliderNew → SliderOld}/schema.js +6 -14
- package/build/cjs/blocks/SliderOld/schema.js.map +1 -0
- package/build/cjs/blocks/SliderOld/utils.d.ts +37 -0
- package/build/cjs/blocks/SliderOld/utils.js +129 -0
- package/build/cjs/blocks/SliderOld/utils.js.map +1 -0
- package/build/cjs/blocks/Table/Table.css +4 -3
- package/build/cjs/blocks/Table/Table.js +3 -1
- package/build/cjs/blocks/Table/Table.js.map +1 -1
- package/build/cjs/blocks/index.d.ts +2 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/index.js.map +1 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- package/build/cjs/blocks/validators.js.map +1 -1
- package/build/cjs/components/ContentList/ContentList.css +10 -6
- package/build/cjs/components/ContentList/ContentList.js +1 -1
- package/build/cjs/components/ContentList/ContentList.js.map +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +99 -18
- package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +5 -0
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +14 -2
- package/build/cjs/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -3
- package/build/cjs/components/HTML/HTML.d.ts +15 -8
- package/build/cjs/components/HTML/HTML.js +19 -10
- package/build/cjs/components/HTML/HTML.js.map +1 -1
- package/build/cjs/components/Media/Image/Image.d.ts +1 -0
- package/build/cjs/components/Media/Image/Image.js +7 -5
- package/build/cjs/components/Media/Image/Image.js.map +1 -1
- package/build/cjs/components/Media/Media.css +4 -0
- package/build/cjs/components/Media/Media.d.ts +1 -0
- package/build/cjs/components/Media/Media.js +3 -2
- package/build/cjs/components/Media/Media.js.map +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.css +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.js +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.js.map +1 -1
- package/build/cjs/components/Table/Table.css +2 -1
- package/build/cjs/components/Table/Table.js +4 -2
- package/build/cjs/components/Table/Table.js.map +1 -1
- package/build/cjs/components/Title/TitleItem.css +7 -4
- package/build/cjs/components/Title/TitleItem.js +3 -1
- package/build/cjs/components/Title/TitleItem.js.map +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/cjs/components/YFMWrapper/YFMWrapper.d.ts +4 -2
- package/build/cjs/components/YFMWrapper/YFMWrapper.js +3 -3
- package/build/cjs/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js.map +1 -1
- package/build/cjs/constructor-items.d.ts +2 -2
- package/build/cjs/constructor-items.js +2 -4
- package/build/cjs/constructor-items.js.map +1 -1
- package/build/cjs/containers/Loadable/Loadable.js +1 -1
- package/build/cjs/containers/Loadable/Loadable.js.map +1 -1
- package/build/cjs/editor/data/index.js +1 -1
- package/build/cjs/editor/data/index.js.map +1 -1
- package/build/cjs/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
- package/build/cjs/editor/widget/utils.js +1 -1
- package/build/cjs/editor/widget/utils.js.map +1 -1
- package/build/cjs/models/common.d.ts +1 -0
- package/build/cjs/models/common.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +17 -15
- package/build/cjs/models/constructor-items/blocks.js +3 -2
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
- package/build/cjs/schema/constants.js +4 -2
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/validators/blocks.d.ts +2 -1
- package/build/cjs/schema/validators/blocks.js +2 -1
- package/build/cjs/schema/validators/blocks.js.map +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +14 -8
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/cjs/sub-blocks/Content/Content.css +27 -25
- package/build/cjs/sub-blocks/Content/Content.js +1 -1
- package/build/cjs/sub-blocks/Content/Content.js.map +1 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.css +2 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js +1 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.css +8 -4
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -1
- package/build/cjs/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/cjs/text-transform/common.d.ts +4 -3
- package/build/cjs/text-transform/common.js +50 -21
- package/build/cjs/text-transform/common.js.map +1 -1
- package/build/cjs/text-transform/config.d.ts +5 -2
- package/build/cjs/text-transform/config.js +87 -58
- package/build/cjs/text-transform/config.js.map +1 -1
- package/build/cjs/text-transform/transformers.js +2 -2
- package/build/cjs/text-transform/transformers.js.map +1 -1
- package/build/cjs/utils/blocks.d.ts +10 -2
- package/build/cjs/utils/blocks.js +9 -3
- package/build/cjs/utils/blocks.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +4 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/esm/blocks/Header/Header.css +15 -10
- package/build/esm/blocks/Header/Header.js +7 -2
- package/build/esm/blocks/Header/Header.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.css +0 -10
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +1 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +9 -1
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +4 -2
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/esm/blocks/Share/Share.css +3 -2
- package/build/esm/blocks/Share/Share.js +5 -1
- package/build/esm/blocks/Share/Share.js.map +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.css +22 -21
- package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +4 -2
- package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/esm/blocks/Slider/Slider.css +549 -329
- package/build/esm/blocks/Slider/Slider.d.ts +6 -5
- package/build/esm/blocks/Slider/Slider.js +33 -276
- package/build/esm/blocks/Slider/Slider.js.map +1 -1
- package/build/esm/blocks/Slider/i18n/en.json +1 -1
- package/build/esm/blocks/Slider/i18n/ru.json +1 -1
- package/build/esm/blocks/Slider/models.d.ts +2 -2
- package/build/esm/blocks/Slider/models.js +1 -1
- package/build/esm/blocks/Slider/models.js.map +1 -1
- package/build/esm/blocks/Slider/schema.d.ts +18 -1
- package/build/esm/blocks/Slider/schema.js +9 -0
- package/build/esm/blocks/Slider/schema.js.map +1 -1
- package/build/esm/blocks/{SliderNew → Slider}/useSlider.d.ts +1 -0
- package/build/esm/blocks/{SliderNew → Slider}/useSlider.js +4 -0
- package/build/esm/blocks/Slider/useSlider.js.map +1 -0
- package/build/esm/blocks/Slider/useSliderPagination.js.map +1 -0
- package/build/esm/blocks/Slider/utils.d.ts +7 -28
- package/build/esm/blocks/Slider/utils.js +25 -103
- package/build/esm/blocks/Slider/utils.js.map +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +14 -11
- package/build/esm/blocks/SliderOld/Arrow/Arrow.d.ts +10 -0
- package/build/esm/blocks/SliderOld/Arrow/Arrow.js +9 -0
- package/build/esm/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
- package/build/esm/blocks/SliderOld/SliderOld.css +703 -0
- package/build/esm/blocks/SliderOld/SliderOld.d.ts +18 -0
- package/build/esm/blocks/SliderOld/SliderOld.js +289 -0
- package/build/esm/blocks/SliderOld/SliderOld.js.map +1 -0
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
- package/build/esm/blocks/{SliderNew → SliderOld}/models.js +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/schema.d.ts +5 -21
- package/build/esm/blocks/{SliderNew → SliderOld}/schema.js +5 -13
- package/build/esm/blocks/SliderOld/schema.js.map +1 -0
- package/build/esm/blocks/SliderOld/utils.d.ts +37 -0
- package/build/esm/blocks/SliderOld/utils.js +119 -0
- package/build/esm/blocks/SliderOld/utils.js.map +1 -0
- package/build/esm/blocks/Table/Table.css +4 -3
- package/build/esm/blocks/Table/Table.js +4 -2
- package/build/esm/blocks/Table/Table.js.map +1 -1
- package/build/esm/blocks/index.d.ts +2 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/index.js.map +1 -1
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- package/build/esm/blocks/validators.js.map +1 -1
- package/build/esm/components/ContentList/ContentList.css +10 -6
- package/build/esm/components/ContentList/ContentList.js +1 -1
- package/build/esm/components/ContentList/ContentList.js.map +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.css +99 -18
- package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +5 -0
- package/build/esm/components/FullscreenImage/FullscreenImage.js +14 -2
- package/build/esm/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -3
- package/build/esm/components/HTML/HTML.d.ts +15 -8
- package/build/esm/components/HTML/HTML.js +20 -11
- package/build/esm/components/HTML/HTML.js.map +1 -1
- package/build/esm/components/Media/Image/Image.d.ts +1 -0
- package/build/esm/components/Media/Image/Image.js +7 -5
- package/build/esm/components/Media/Image/Image.js.map +1 -1
- package/build/esm/components/Media/Media.css +4 -0
- package/build/esm/components/Media/Media.d.ts +1 -0
- package/build/esm/components/Media/Media.js +3 -2
- package/build/esm/components/Media/Media.js.map +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.css +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.js.map +1 -1
- package/build/esm/components/Table/Table.css +2 -1
- package/build/esm/components/Table/Table.js +5 -3
- package/build/esm/components/Table/Table.js.map +1 -1
- package/build/esm/components/Title/TitleItem.css +7 -4
- package/build/esm/components/Title/TitleItem.js +4 -2
- package/build/esm/components/Title/TitleItem.js.map +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/esm/components/YFMWrapper/YFMWrapper.d.ts +4 -2
- package/build/esm/components/YFMWrapper/YFMWrapper.js +3 -3
- package/build/esm/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +1 -1
- package/build/esm/components/YandexForm/YandexForm.js.map +1 -1
- package/build/esm/constructor-items.d.ts +2 -2
- package/build/esm/constructor-items.js +3 -5
- package/build/esm/constructor-items.js.map +1 -1
- package/build/esm/containers/Loadable/Loadable.js +1 -1
- package/build/esm/containers/Loadable/Loadable.js.map +1 -1
- package/build/esm/editor/data/index.js +1 -1
- package/build/esm/editor/data/index.js.map +1 -1
- package/build/esm/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
- package/build/esm/editor/widget/utils.js +1 -1
- package/build/esm/editor/widget/utils.js.map +1 -1
- package/build/esm/models/common.d.ts +1 -0
- package/build/esm/models/common.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +17 -15
- package/build/esm/models/constructor-items/blocks.js +3 -2
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
- package/build/esm/schema/constants.js +5 -3
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/validators/blocks.d.ts +2 -1
- package/build/esm/schema/validators/blocks.js +2 -1
- package/build/esm/schema/validators/blocks.js.map +1 -1
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +14 -8
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +4 -2
- package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/esm/sub-blocks/Content/Content.css +27 -25
- package/build/esm/sub-blocks/Content/Content.js +1 -1
- package/build/esm/sub-blocks/Content/Content.js.map +1 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.css +2 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.js +2 -2
- package/build/esm/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/esm/sub-blocks/Quote/Quote.css +8 -4
- package/build/esm/sub-blocks/Quote/Quote.js +3 -2
- package/build/esm/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/esm/text-transform/common.d.ts +4 -3
- package/build/esm/text-transform/common.js +50 -21
- package/build/esm/text-transform/common.js.map +1 -1
- package/build/esm/text-transform/config.d.ts +5 -2
- package/build/esm/text-transform/config.js +88 -59
- package/build/esm/text-transform/config.js.map +1 -1
- package/build/esm/text-transform/transformers.js +2 -2
- package/build/esm/text-transform/transformers.js.map +1 -1
- package/build/esm/utils/blocks.d.ts +10 -2
- package/build/esm/utils/blocks.js +8 -2
- package/build/esm/utils/blocks.js.map +1 -1
- package/package.json +2 -2
- package/schema/index.js +1 -1
- package/server/models/common.d.ts +1 -0
- package/server/models/constructor-items/blocks.d.ts +17 -15
- package/server/models/constructor-items/blocks.js +3 -2
- package/server/text-transform/common.d.ts +4 -3
- package/server/text-transform/common.js +41 -18
- package/server/text-transform/config.d.ts +5 -2
- package/server/text-transform/config.js +84 -58
- package/server/text-transform/transformers.js +2 -2
- package/server/utils/blocks.d.ts +10 -2
- package/server/utils/blocks.js +9 -3
- package/styles/fonts.scss +1 -0
- package/styles/styles.css +0 -1
- package/styles/styles.scss +0 -1
- package/styles/variables.scss +1 -0
- package/widget/2042.index.js +1 -0
- package/widget/2723.index.js +1 -0
- package/widget/3392.index.js +1 -0
- package/widget/6173.index.js +1 -0
- package/widget/6328.index.js +1 -0
- package/widget/6353.index.js +1 -0
- package/widget/6463.index.js +1 -0
- package/widget/6887.index.js +1 -0
- package/widget/7458.index.js +1 -0
- package/widget/7570.index.js +1 -0
- package/widget/7627.index.js +1 -0
- package/widget/8446.index.js +1 -0
- package/widget/9340.index.js +1 -0
- package/widget/9979.index.js +1 -0
- package/widget/index.js +1 -1
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.d.ts +0 -11
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js +0 -11
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
- package/build/cjs/blocks/SliderNew/Slider.css +0 -834
- package/build/cjs/blocks/SliderNew/Slider.d.ts +0 -13
- package/build/cjs/blocks/SliderNew/Slider.js +0 -60
- package/build/cjs/blocks/SliderNew/Slider.js.map +0 -1
- package/build/cjs/blocks/SliderNew/schema.js.map +0 -1
- package/build/cjs/blocks/SliderNew/useSlider.js.map +0 -1
- package/build/cjs/blocks/SliderNew/useSliderPagination.js.map +0 -1
- package/build/cjs/blocks/SliderNew/utils.d.ts +0 -16
- package/build/cjs/blocks/SliderNew/utils.js +0 -48
- package/build/cjs/blocks/SliderNew/utils.js.map +0 -1
- package/build/cjs/blocks/unstable.d.ts +0 -1
- package/build/cjs/blocks/unstable.js +0 -7
- package/build/cjs/blocks/unstable.js.map +0 -1
- package/build/esm/blocks/SliderNew/Arrow/Arrow.d.ts +0 -12
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js +0 -9
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
- package/build/esm/blocks/SliderNew/Slider.css +0 -834
- package/build/esm/blocks/SliderNew/Slider.d.ts +0 -14
- package/build/esm/blocks/SliderNew/Slider.js +0 -56
- package/build/esm/blocks/SliderNew/Slider.js.map +0 -1
- package/build/esm/blocks/SliderNew/schema.js.map +0 -1
- package/build/esm/blocks/SliderNew/useSlider.js.map +0 -1
- package/build/esm/blocks/SliderNew/useSliderPagination.js.map +0 -1
- package/build/esm/blocks/SliderNew/utils.d.ts +0 -16
- package/build/esm/blocks/SliderNew/utils.js +0 -41
- package/build/esm/blocks/SliderNew/utils.js.map +0 -1
- package/build/esm/blocks/unstable.d.ts +0 -1
- package/build/esm/blocks/unstable.js +0 -2
- package/build/esm/blocks/unstable.js.map +0 -1
- /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
- /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
- /package/build/cjs/blocks/{Slider → SliderOld}/slick.css +0 -0
- /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
- /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
- /package/build/esm/blocks/{Slider → SliderOld}/slick.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.pc-banner-card__subtitle p, .pc-banner-card__subtitle, .pc-banner-card__title {
|
|
1
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle p, .pc-banner-card__subtitle.pc-banner-card__subtitle, .pc-banner-card__title.pc-banner-card__title {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -16,31 +16,35 @@ unpredictable css rules order in build */
|
|
|
16
16
|
color: var(--g-color-text-light-primary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-banner-
|
|
19
|
+
.pc-banner-card__text {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
}
|
|
22
|
+
.pc-banner-card__title.pc-banner-card__title {
|
|
20
23
|
font-size: var(--g-text-display-2-font-size);
|
|
21
24
|
line-height: var(--g-text-display-2-line-height);
|
|
22
25
|
color: var(--pc-text-header-color);
|
|
23
26
|
font-weight: var(--g-text-accent-font-weight);
|
|
24
27
|
}
|
|
25
28
|
@media (max-width: 576px) {
|
|
26
|
-
.pc-banner-card__title {
|
|
29
|
+
.pc-banner-card__title.pc-banner-card__title {
|
|
27
30
|
font-size: var(--g-text-display-1-font-size);
|
|
28
31
|
line-height: var(--g-text-display-1-line-height);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
.pc-banner-card__title a {
|
|
34
|
+
.pc-banner-card__title.pc-banner-card__title a {
|
|
32
35
|
outline: none;
|
|
33
36
|
color: var(--g-color-text-link);
|
|
34
37
|
text-decoration: none;
|
|
35
38
|
cursor: pointer;
|
|
36
39
|
}
|
|
37
|
-
.utilityfocus .pc-banner-card__title a:focus {
|
|
40
|
+
.utilityfocus .pc-banner-card__title.pc-banner-card__title a:focus {
|
|
38
41
|
outline: 2px solid #ffdb4d;
|
|
39
42
|
}
|
|
40
|
-
.pc-banner-card__title a:hover, .pc-banner-card__title a:active {
|
|
43
|
+
.pc-banner-card__title.pc-banner-card__title a:hover, .pc-banner-card__title.pc-banner-card__title a:active {
|
|
41
44
|
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
42
45
|
color: var(--g-color-text-link-hover);
|
|
43
46
|
}
|
|
47
|
+
|
|
44
48
|
.pc-banner-card__content {
|
|
45
49
|
width: 100%;
|
|
46
50
|
border-radius: var(--pc-border-radius);
|
|
@@ -56,8 +60,9 @@ unpredictable css rules order in build */
|
|
|
56
60
|
justify-content: space-between;
|
|
57
61
|
flex-direction: column;
|
|
58
62
|
align-items: baseline;
|
|
63
|
+
max-width: 100%;
|
|
59
64
|
}
|
|
60
|
-
.pc-banner-card__subtitle {
|
|
65
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle {
|
|
61
66
|
display: inline-block;
|
|
62
67
|
margin-top: 8px;
|
|
63
68
|
font-size: var(--g-text-body-3-font-size);
|
|
@@ -66,13 +71,14 @@ unpredictable css rules order in build */
|
|
|
66
71
|
font-weight: var(--g-text-accent-font-weight);
|
|
67
72
|
font-weight: normal;
|
|
68
73
|
}
|
|
69
|
-
.pc-banner-card__subtitle p {
|
|
74
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle p {
|
|
70
75
|
font-size: var(--g-text-body-3-font-size);
|
|
71
76
|
line-height: var(--g-text-body-3-line-height);
|
|
72
77
|
color: var(--pc-text-header-color);
|
|
73
78
|
font-weight: var(--g-text-accent-font-weight);
|
|
74
79
|
font-weight: normal;
|
|
75
80
|
}
|
|
81
|
+
|
|
76
82
|
.pc-banner-card__button.pc-banner-card__button {
|
|
77
83
|
margin-top: 28px;
|
|
78
84
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BackgroundImage, Button,
|
|
2
|
+
import { BackgroundImage, Button, RouterLink, YFMWrapper } from "../../components/index.js";
|
|
3
3
|
import { useTheme } from "../../context/theme/index.js";
|
|
4
4
|
import { block, getThemedValue } from "../../utils/index.js";
|
|
5
5
|
import './BannerCard.css';
|
|
@@ -11,7 +11,9 @@ export const BannerCard = (props) => {
|
|
|
11
11
|
if (color) {
|
|
12
12
|
contentStyle.backgroundColor = getThemedValue(color, theme);
|
|
13
13
|
}
|
|
14
|
-
return (_jsx("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: _jsxs("div", { className: b('content'), style: contentStyle, children: [_jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('text'), children: [_jsx(
|
|
14
|
+
return (_jsx("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: _jsxs("div", { className: b('content'), style: contentStyle, children: [_jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('text'), children: [_jsx(YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
|
|
15
|
+
constructor: true,
|
|
16
|
+
} }), subtitle && (_jsx(YFMWrapper, { contentClassName: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && (_jsx(RouterLink, { href: url, children: _jsx(Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text ?? '', url: url, target: target }) }))] }), _jsx(BackgroundImage, { className: b('image'), src: getThemedValue(image, theme), disableCompress: disableCompress })] }) }));
|
|
15
17
|
};
|
|
16
18
|
export default BannerCard;
|
|
17
19
|
//# sourceMappingURL=BannerCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAC,kCAAyB;AACjF,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,QAAQ,EAAC,GAAG,EAAE,EAC/D,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,CAAC,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACjC,eAAe,EAAE,eAAe,GAClC,IACA,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import {BackgroundImage, Button, RouterLink, YFMWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BannerCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './BannerCard.scss';\n\nconst b = block('banner-card');\n\nexport const BannerCard = (props: BannerCardProps) => {\n const {\n title,\n subtitle,\n button: {url, text, target, theme: buttonTheme = 'raised'} = {},\n color,\n theme: textTheme = 'light',\n image,\n disableCompress,\n mediaView = 'full',\n } = props;\n const theme = useTheme();\n const contentStyle: Record<string, string> = {};\n\n if (color) {\n contentStyle.backgroundColor = getThemedValue(color, theme);\n }\n\n return (\n <div className={b({theme: textTheme, ['media-view']: mediaView})}>\n <div className={b('content')} style={contentStyle}>\n <div className={b('info')}>\n <div className={b('text')}>\n <YFMWrapper\n tagName=\"h2\"\n contentClassName={b('title')}\n content={title}\n modifiers={{\n constructor: true,\n }}\n />\n {subtitle && (\n <YFMWrapper\n contentClassName={b('subtitle')}\n content={subtitle}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n\n {url && (\n <RouterLink href={url}>\n <Button\n className={b('button')}\n theme={buttonTheme}\n size=\"xl\"\n text={text ?? ''}\n url={url}\n target={target}\n />\n </RouterLink>\n )}\n </div>\n <BackgroundImage\n className={b('image')}\n src={getThemedValue(image, theme)}\n disableCompress={disableCompress}\n />\n </div>\n </div>\n );\n};\n\nexport default BannerCard;\n"]}
|
|
@@ -128,73 +128,75 @@ unpredictable css rules order in build */
|
|
|
128
128
|
.pc-content_size_l .pc-content__buttons {
|
|
129
129
|
margin-top: 24px;
|
|
130
130
|
}
|
|
131
|
-
.pc-content_theme_dark {
|
|
131
|
+
.pc-content_theme_dark.pc-content_theme_dark {
|
|
132
132
|
--g-color-line-focus: var(--pc-color-line-focus-dark);
|
|
133
133
|
}
|
|
134
|
-
.pc-content_theme_dark .pc-content__title *,
|
|
135
|
-
.pc-content_theme_dark .pc-content__text .yfm,
|
|
136
|
-
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
137
|
-
.pc-content_theme_dark .pc-content__links a {
|
|
134
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title *,
|
|
135
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm,
|
|
136
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm *,
|
|
137
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__links a {
|
|
138
138
|
color: var(--g-color-text-light-primary);
|
|
139
139
|
}
|
|
140
|
-
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
141
|
-
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
140
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm,
|
|
141
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
142
142
|
color: var(--g-color-text-light-secondary);
|
|
143
143
|
}
|
|
144
|
-
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
144
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
145
145
|
color: var(--g-color-text-light-secondary);
|
|
146
146
|
text-decoration: underline;
|
|
147
147
|
}
|
|
148
|
-
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
148
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
149
149
|
color: var(--g-color-text-light-primary);
|
|
150
150
|
}
|
|
151
|
-
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
151
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a {
|
|
152
152
|
color: var(--g-color-text-light-primary);
|
|
153
153
|
text-decoration: underline;
|
|
154
154
|
}
|
|
155
|
-
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
155
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
156
156
|
color: var(--g-color-text-light-secondary);
|
|
157
157
|
}
|
|
158
|
-
.pc-content_theme_dark .pc-content__title a {
|
|
158
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a {
|
|
159
159
|
color: var(--g-color-text-light-primary);
|
|
160
160
|
text-decoration: underline;
|
|
161
161
|
text-decoration: none;
|
|
162
162
|
}
|
|
163
|
-
.pc-content_theme_dark .pc-content__title a:hover {
|
|
163
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a:hover {
|
|
164
164
|
color: var(--g-color-text-light-secondary);
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
.pc-content_theme_light .pc-
|
|
168
|
-
.pc-content_theme_light .pc-content__text .yfm
|
|
169
|
-
.pc-content_theme_light .pc-
|
|
166
|
+
|
|
167
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title *,
|
|
168
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm,
|
|
169
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm *,
|
|
170
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__links a {
|
|
170
171
|
color: var(--g-color-text-dark-primary);
|
|
171
172
|
}
|
|
172
|
-
.pc-content_theme_light .pc-content__notice .yfm,
|
|
173
|
-
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
173
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm,
|
|
174
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm * {
|
|
174
175
|
color: var(--g-color-text-dark-secondary);
|
|
175
176
|
}
|
|
176
|
-
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
177
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a {
|
|
177
178
|
color: var(--g-color-text-dark-secondary);
|
|
178
179
|
text-decoration: underline;
|
|
179
180
|
}
|
|
180
|
-
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
181
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
181
182
|
color: var(--g-color-text-dark-primary);
|
|
182
183
|
}
|
|
183
|
-
.pc-content_theme_light .pc-content__text .yfm a {
|
|
184
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a {
|
|
184
185
|
color: var(--g-color-text-dark-primary);
|
|
185
186
|
text-decoration: underline;
|
|
186
187
|
}
|
|
187
|
-
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
188
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
188
189
|
color: var(--g-color-text-dark-secondary);
|
|
189
190
|
}
|
|
190
|
-
.pc-content_theme_light .pc-content__title a {
|
|
191
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a {
|
|
191
192
|
color: var(--g-color-text-dark-primary);
|
|
192
193
|
text-decoration: underline;
|
|
193
194
|
text-decoration: none;
|
|
194
195
|
}
|
|
195
|
-
.pc-content_theme_light .pc-content__title a:hover {
|
|
196
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a:hover {
|
|
196
197
|
color: var(--g-color-text-dark-secondary);
|
|
197
198
|
}
|
|
199
|
+
|
|
198
200
|
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
|
|
199
201
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
|
|
200
202
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
|
|
@@ -26,7 +26,7 @@ const Content = (props) => {
|
|
|
26
26
|
const hasTitle = Boolean(title);
|
|
27
27
|
const defaultTitleId = useUniqId();
|
|
28
28
|
const titleId = titleIdFromProps || defaultTitleId;
|
|
29
|
-
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId }) })), list?.length ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && (_jsx("div", { className: b('notice'), children: _jsx(YFMWrapper, { content: additionalInfo, modifiers: {
|
|
29
|
+
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId, qa: qaAttributes.list }) })), list?.length ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && (_jsx("div", { className: b('notice'), children: _jsx(YFMWrapper, { content: additionalInfo, modifiers: {
|
|
30
30
|
constructor: true,
|
|
31
31
|
'constructor-notice': true,
|
|
32
32
|
[`constructor-size-${size}`]: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,kCAAyB;AAChF,OAAO,EAAC,GAAG,EAAC,4BAAmB;AAS/B,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,eAAe,EAAC,8BAA2B;AAEnD,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GA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Y,CAAC,MAAM,GAC/B,CACL,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {Buttons, ContentList, Links, Title, YFMWrapper} from '../../components';\nimport {Col} from '../../grid';\nimport {\n ClassNameProps,\n ContentBlockProps,\n ContentSize,\n TextSize,\n TitleItemProps,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block} from '../../utils';\nimport {getQaAttrubutes} from '../../utils/blocks';\n\nimport './Content.scss';\n\nconst b = block('content');\n\nfunction getTextSize(size: ContentSize): TextSize {\n switch (size) {\n case 's':\n return 's';\n case 'm':\n return 'sm';\n case 'l':\n default:\n return 'm';\n }\n}\n\nexport type ContentProps = ContentBlockProps & ClassNameProps & QAProps;\n\nconst Content = (props: ContentProps) => {\n const {\n title,\n titleId: titleIdFromProps,\n text,\n textId,\n additionalInfo,\n size = 'l',\n links,\n buttons,\n colSizes = {all: 12, sm: 8},\n centered,\n theme,\n className,\n list,\n qa,\n controlPosition,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['links', 'link', 'buttons', 'button', 'list']);\n\n const titleProps =\n !title || typeof title === 'string'\n ? ({text: title, textSize: getTextSize(size)} as TitleItemProps)\n : title;\n\n const hasTitle = Boolean(title);\n const defaultTitleId = useUniqId();\n const titleId = titleIdFromProps || defaultTitleId;\n\n return (\n <Col\n className={b({size, centered, theme, 'control-position': controlPosition}, className)}\n reset\n sizes={colSizes}\n qa={qaAttributes.container}\n >\n {title && (\n <Title\n className={b('title')}\n title={titleProps}\n colSizes={{all: 12}}\n id={titleId}\n />\n )}\n {text && (\n <div className={b('text', {['without-title']: !hasTitle})}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true, [`constructor-size-${size}`]: true}}\n id={textId}\n qa={qaAttributes.list}\n />\n </div>\n )}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList list={list} size={size} qa={qaAttributes.list} theme={theme} />\n </div>\n ) : null}\n {additionalInfo && (\n <div className={b('notice')}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n 'constructor-notice': true,\n [`constructor-size-${size}`]: true,\n }}\n />\n </div>\n )}\n {links && (\n <Links\n className={b('links', {size})}\n size={size}\n links={links}\n titleId={titleId}\n qa={qaAttributes.links}\n linkQa={qaAttributes.link}\n />\n )}\n {buttons && (\n <Buttons\n className={b('buttons', {size})}\n size={size}\n buttons={buttons}\n titleId={titleId}\n qa={qaAttributes.buttons}\n buttonQa={qaAttributes.button}\n />\n )}\n </Col>\n );\n};\n\nexport default Content;\n"]}
|
|
@@ -47,11 +47,12 @@ unpredictable css rules order in build */
|
|
|
47
47
|
.pc-price-card__content_theme_light .pc-price-card__info a:hover {
|
|
48
48
|
color: var(--g-color-text-dark-secondary);
|
|
49
49
|
}
|
|
50
|
-
.pc-price-card__title {
|
|
50
|
+
.pc-price-card__title.pc-price-card__title {
|
|
51
51
|
font-size: var(--g-text-subheader-3-font-size);
|
|
52
52
|
line-height: var(--g-text-subheader-3-line-height);
|
|
53
53
|
margin-bottom: 24px;
|
|
54
54
|
}
|
|
55
|
+
|
|
55
56
|
.pc-price-card__price {
|
|
56
57
|
margin-bottom: 24px;
|
|
57
58
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Check } from '@gravity-ui/icons';
|
|
3
|
-
import { BackgroundImage, Buttons, CardBase, ContentList,
|
|
3
|
+
import { BackgroundImage, Buttons, CardBase, ContentList, Links, YFMWrapper } from "../../components/index.js";
|
|
4
4
|
import { block } from "../../utils/index.js";
|
|
5
5
|
import './PriceCard.css';
|
|
6
6
|
const b = block('price-card');
|
|
7
7
|
const PriceCard = (props) => {
|
|
8
8
|
const { border, title, price, pricePeriod, priceDetails, theme, description, list, buttons, links, backgroundColor, } = props;
|
|
9
|
-
return (_jsx(CardBase, { className: b({ theme }), border: border, children: _jsxs(CardBase.Content, { children: [_jsx(BackgroundImage, { className: b('background'), style: { backgroundColor } }), _jsxs("div", { className: b('content', { theme }), children: [_jsxs("div", { className: b('info'), children: [_jsx(
|
|
9
|
+
return (_jsx(CardBase, { className: b({ theme }), border: border, children: _jsxs(CardBase.Content, { children: [_jsx(BackgroundImage, { className: b('background'), style: { backgroundColor } }), _jsxs("div", { className: b('content', { theme }), children: [_jsxs("div", { className: b('info'), children: [_jsx(YFMWrapper, { content: title, contentClassName: b('title'), onlyContent: true, modifiers: { constructor: true } }), _jsxs("div", { className: b('price'), children: [_jsxs("div", { children: [_jsx("span", { className: b('price-value'), children: price }), pricePeriod && (_jsxs("span", { className: b('price-period'), children: ["/ ", pricePeriod] }))] }), priceDetails && (_jsx("div", { className: b('price-details'), children: priceDetails }))] }), description && _jsx("div", { className: b('description'), children: description }), list?.length ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list.map((item) => ({
|
|
10
10
|
icon: Check,
|
|
11
11
|
text: item,
|
|
12
12
|
})), size: "s" }) })) : null] }), _jsx(Buttons, { className: b('buttons'), buttons: buttons, size: "s" }), _jsx(Links, { className: b('links'), links: links, size: "s" })] })] }, "content") }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/PriceCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"PriceCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/PriceCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAC,kCAAyB;AAEpG,OAAO,E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AE,MAAM,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACrB,KAAC,WAAW,IACR,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;4CACtB,IAAI,EAAE,KAAK;4CACX,IAAI,EAAE,IAAI;yCACb,CAAC,CAAC,EACH,IAAI,EAAC,GAAG,GACV,GACA,CACT,CAAC,CAAC,CAAC,IAAI,IACN,EACN,KAAC,OAAO,IAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,GAAG,GAAG,EAC/D,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,GAAG,IACrD,KApCY,SAAS,CAqCZ,GACZ,CACd,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import {Check} from '@gravity-ui/icons';\n\nimport {BackgroundImage, Buttons, CardBase, ContentList, Links, YFMWrapper} from '../../components';\nimport {PriceCardProps} from '../../models';\nimport {block} from '../../utils';\n\nimport './PriceCard.scss';\n\nconst b = block('price-card');\n\nconst PriceCard = (props: PriceCardProps) => {\n const {\n border,\n title,\n price,\n pricePeriod,\n priceDetails,\n theme,\n description,\n list,\n buttons,\n links,\n backgroundColor,\n } = props;\n return (\n <CardBase className={b({theme})} border={border}>\n <CardBase.Content key=\"content\">\n <BackgroundImage className={b('background')} style={{backgroundColor}} />\n <div className={b('content', {theme})}>\n <div className={b('info')}>\n <YFMWrapper\n content={title}\n contentClassName={b('title')}\n onlyContent\n modifiers={{constructor: true}}\n />\n <div className={b('price')}>\n <div>\n <span className={b('price-value')}>{price}</span>\n {pricePeriod && (\n <span className={b('price-period')}>/ {pricePeriod}</span>\n )}\n </div>\n {priceDetails && (\n <div className={b('price-details')}>{priceDetails}</div>\n )}\n </div>\n {description && <div className={b('description')}>{description}</div>}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList\n list={list.map((item) => ({\n icon: Check,\n text: item,\n }))}\n size=\"s\"\n />\n </div>\n ) : null}\n </div>\n <Buttons className={b('buttons')} buttons={buttons} size=\"s\" />\n <Links className={b('links')} links={links} size=\"s\" />\n </div>\n </CardBase.Content>\n </CardBase>\n );\n};\n\nexport default PriceCard;\n"]}
|
|
@@ -63,22 +63,26 @@ unpredictable css rules order in build */
|
|
|
63
63
|
font-size: var(--g-text-body-3-font-size);
|
|
64
64
|
line-height: var(--g-text-body-3-line-height);
|
|
65
65
|
}
|
|
66
|
-
.pc-quote__content_quote-type_chevron::before {
|
|
66
|
+
.pc-quote__content_quote-type_chevron.pc-quote__content_quote-type_chevron::before {
|
|
67
67
|
position: absolute;
|
|
68
68
|
left: -10px;
|
|
69
69
|
content: "«";
|
|
70
70
|
}
|
|
71
|
-
.pc-quote__content_quote-type_chevron .pc-quote__text::after {
|
|
71
|
+
.pc-quote__content_quote-type_chevron.pc-quote__content_quote-type_chevron .pc-quote__text::after {
|
|
72
72
|
content: "»";
|
|
73
|
+
left: auto;
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
+
|
|
76
|
+
.pc-quote__content_quote-type_english-double.pc-quote__content_quote-type_english-double::before {
|
|
75
77
|
position: absolute;
|
|
76
78
|
left: -8px;
|
|
77
79
|
content: "“";
|
|
78
80
|
}
|
|
79
|
-
.pc-quote__content_quote-type_english-double .pc-quote__text::after {
|
|
81
|
+
.pc-quote__content_quote-type_english-double.pc-quote__content_quote-type_english-double .pc-quote__text::after {
|
|
80
82
|
content: "”";
|
|
83
|
+
left: auto;
|
|
81
84
|
}
|
|
85
|
+
|
|
82
86
|
.pc-quote__content .yfm {
|
|
83
87
|
font-size: var(--g-text-body-3-font-size);
|
|
84
88
|
line-height: var(--g-text-body-3-line-height);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Author, Button,
|
|
3
|
+
import { Author, Button, Image, YFMWrapper } from "../../components/index.js";
|
|
4
4
|
import { getMediaImage } from "../../components/Media/Image/utils.js";
|
|
5
5
|
import { useTheme } from "../../context/theme/index.js";
|
|
6
6
|
import { useAnalytics } from "../../hooks/index.js";
|
|
@@ -24,7 +24,8 @@ const Quote = (props) => {
|
|
|
24
24
|
const renderFooter = Boolean(author || url) && (_jsxs("div", { className: b('author-wrapper'), children: [themedAuthor && (_jsx(Author, { className: b('author', { theme: textTheme }), author: themedAuthor, type: AuthorType.Line, theme: textTheme })), url && buttonText && !button && (_jsx(Button, { theme: "outlined", size: "xl", url: url, className: b('link-button', { theme: textTheme }), onClick: handleButtonClick, urlTitle: urlTitle, text: buttonText })), button && _jsx(Button, { size: "xl", ...button })] }));
|
|
25
25
|
const themedLogoProps = getThemedValue(logo, theme);
|
|
26
26
|
const logoProps = getMediaImage(themedLogoProps);
|
|
27
|
-
|
|
27
|
+
const textLocal = yfmText || text;
|
|
28
|
+
return (_jsxs("div", { className: b({ theme: textTheme, border }), style: color ? { backgroundColor: color } : {}, children: [_jsxs("div", { className: b('content-wrapper'), children: [_jsxs("div", { children: [_jsx(Image, { className: b('logo'), ...logoProps }), _jsx("div", { className: b('content', { 'quote-type': quoteType }), children: textLocal && (_jsx(YFMWrapper, { tagName: "span", contentClassName: b('text'), content: textLocal, modifiers: { constructor: true } })) })] }), renderFooter] }, text), _jsx("div", { className: b('image-wrapper'), children: _jsx(Image, { ...imageData, className: b('image') }) })] }));
|
|
28
29
|
};
|
|
29
30
|
export default Quote;
|
|
30
31
|
//# sourceMappingURL=Quote.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quote.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/Quote.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,M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SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,aAC3C,0BACI,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,KAAM,SAAS,GAAI,EAC9C,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,YAAY,EAAE,SAAS,EAAC,CAAC,YAClD,SAAS,IAAI,CACV,KAAC,UAAU,IACP,OAAO,EAAC,MAAM,EACd,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,EAC3B,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,GAChC,CACL,GACC,IACJ,EACL,YAAY,KAdP,IAAI,CAeR,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAC9B,KAAC,KAAK,OAAK,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,GAC7C,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Author, Button, Image, YFMWrapper} from '../../components';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport {useTheme} from '../../context/theme';\nimport {useAnalytics} from '../../hooks';\nimport {AuthorItem, AuthorType, DefaultEventNames, QuoteProps, QuoteType} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './Quote.scss';\n\nconst b = block('quote');\n\nconst Quote = (props: QuoteProps) => {\n const {\n theme: textTheme = 'light',\n color,\n image,\n border = 'shadow',\n text,\n yfmText,\n logo,\n author,\n url,\n urlTitle,\n buttonText,\n quoteType = QuoteType.Chevron,\n button,\n } = props;\n const theme = useTheme();\n const imageThemed = getThemedValue(image, theme);\n const imageData = getMediaImage(imageThemed);\n const handleAnalytics = useAnalytics(DefaultEventNames.QuoteButton, url);\n\n const handleButtonClick = React.useCallback(() => handleAnalytics(), [handleAnalytics]);\n const themedAuthor = author\n ? ({\n ...author,\n avatar: getThemedValue(author.avatar, theme),\n } as AuthorItem)\n : author;\n\n const renderFooter = Boolean(author || url) && (\n <div className={b('author-wrapper')}>\n {themedAuthor && (\n <Author\n className={b('author', {theme: textTheme})}\n author={themedAuthor}\n type={AuthorType.Line}\n theme={textTheme}\n />\n )}\n {url && buttonText && !button && (\n <Button\n theme=\"outlined\"\n size=\"xl\"\n url={url}\n className={b('link-button', {theme: textTheme})}\n onClick={handleButtonClick}\n urlTitle={urlTitle}\n text={buttonText}\n />\n )}\n {button && <Button size=\"xl\" {...button} />}\n </div>\n );\n\n const themedLogoProps = getThemedValue(logo, theme);\n const logoProps = getMediaImage(themedLogoProps);\n\n const textLocal = yfmText || text;\n\n return (\n <div\n className={b({theme: textTheme, border})}\n style={color ? {backgroundColor: color} : {}}\n >\n <div key={text} className={b('content-wrapper')}>\n <div>\n <Image className={b('logo')} {...logoProps} />\n <div className={b('content', {'quote-type': quoteType})}>\n {textLocal && (\n <YFMWrapper\n tagName=\"span\"\n contentClassName={b('text')}\n content={textLocal}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n </div>\n {renderFooter}\n </div>\n <div className={b('image-wrapper')}>\n <Image {...imageData} className={b('image')} />\n </div>\n </div>\n );\n};\n\nexport default Quote;\n"]}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { MarkdownItPluginCb } from '@diplodoc/transform/lib/plugins/typings';
|
|
2
2
|
import { Lang } from "./types.js";
|
|
3
3
|
export type ComplexItem = {
|
|
4
|
-
[key: string]: string;
|
|
4
|
+
[key: string]: string | object;
|
|
5
5
|
};
|
|
6
6
|
export type Item = string | null | ComplexItem;
|
|
7
7
|
export type Transformer = (text: string) => string;
|
|
8
8
|
export type TransformerRaw = (lang: Lang, content: string, options: {
|
|
9
9
|
plugins: MarkdownItPluginCb[];
|
|
10
|
+
renderInline?: boolean;
|
|
10
11
|
}) => string;
|
|
11
12
|
export type Parser<T = any> = (transformer: Transformer, block: T) => T;
|
|
12
13
|
export declare const createItemsParser: (fields: string[]) => (transformer: Transformer, items: Item[]) => (string | {
|
|
13
|
-
[x: string]: string;
|
|
14
|
+
[x: string]: string | object;
|
|
14
15
|
} | null)[];
|
|
15
16
|
export declare function yfmTransformer(lang: Lang, content: string, options?: {
|
|
16
17
|
plugins?: MarkdownItPluginCb[];
|
|
17
|
-
}): string;
|
|
18
|
+
}, renderInline?: boolean): string;
|
|
18
19
|
export declare function typografTransformer(lang: Lang, content: string): string;
|
|
@@ -1,30 +1,59 @@
|
|
|
1
1
|
import defaultPlugins from '@diplodoc/transform/lib/plugins';
|
|
2
2
|
import { fullTransform, typografToHTML } from "./utils.js";
|
|
3
|
-
export const createItemsParser = (fields) => (transformer, items) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
export const createItemsParser = (fields) => (transformer, items) => {
|
|
4
|
+
const applyTransform = (itemLocal) => typeof itemLocal === 'string' ? transformer(itemLocal) : itemLocal;
|
|
5
|
+
return items.map((item) => {
|
|
6
|
+
if (!item) {
|
|
7
|
+
return item;
|
|
8
|
+
}
|
|
9
|
+
else if (typeof item === 'string') {
|
|
10
|
+
return transformer(item);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return {
|
|
14
|
+
...item,
|
|
15
|
+
...fields.reduce((acc, fieldName) => {
|
|
16
|
+
if (fieldName.includes('.')) {
|
|
17
|
+
const [firstProperty, secondProperty] = fieldName.split('.');
|
|
18
|
+
const root = item[firstProperty];
|
|
19
|
+
if (!root || typeof root !== 'object') {
|
|
20
|
+
return acc;
|
|
21
|
+
}
|
|
22
|
+
if (Array.isArray(root)) {
|
|
23
|
+
if (!acc[firstProperty]) {
|
|
24
|
+
// eslint-disable-next-line no-param-reassign
|
|
25
|
+
acc[firstProperty] = [];
|
|
26
|
+
}
|
|
27
|
+
// eslint-disable-next-line no-param-reassign
|
|
28
|
+
acc[firstProperty] = root.map((subItem) => ({
|
|
29
|
+
...subItem,
|
|
30
|
+
[secondProperty]: applyTransform(subItem[secondProperty]),
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
// eslint-disable-next-line no-param-reassign
|
|
35
|
+
acc[firstProperty] = {
|
|
36
|
+
...root,
|
|
37
|
+
[secondProperty]: applyTransform(root[secondProperty]),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else if (item[fieldName]) {
|
|
42
|
+
// eslint-disable-next-line no-param-reassign
|
|
43
|
+
acc[fieldName] = applyTransform(item[fieldName]);
|
|
44
|
+
}
|
|
45
|
+
return acc;
|
|
46
|
+
}, {}),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export function yfmTransformer(lang, content, options = {}, renderInline = false) {
|
|
24
52
|
const { plugins = [] } = options;
|
|
25
53
|
const { html } = fullTransform(content, {
|
|
26
54
|
lang,
|
|
27
55
|
plugins: [...defaultPlugins, ...plugins],
|
|
56
|
+
renderInline,
|
|
28
57
|
});
|
|
29
58
|
return html;
|
|
30
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"../../../src","sources":["text-transform/common.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAI7D,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAatD,MAAM,CAAC,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"../../../src","sources":["text-transform/common.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAI7D,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAatD,MA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AAC;gCACrD,GAAG,OAAO;gCACV,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;6BAC5D,CAAC,CAAC,CAAC;wBACR,CAAC;6BAAM,CAAC;4BACJ,6CAA6C;4BAC7C,GAAG,CAAC,aAAa,CAAC,GAAG;gCACjB,GAAG,IAAI;gCACP,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;6BACzD,CAAC;wBACN,CAAC;oBACL,CAAC;yBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;wBACzB,6CAA6C;wBAC7C,GAAG,CAAC,SAAS,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;oBACrD,CAAC;oBAED,OAAO,GAAG,CAAC;gBACf,CAAC,EAAE,EAAiB,CAAC;aACxB,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEN,MAAM,UAAU,cAAc,CAC1B,IAAU,EACV,OAAe,EACf,UAA4C,EAAE,EAC9C,YAAY,GAAG,KAAK;IAEpB,MAAM,EAAC,OAAO,GAAG,EAAE,EAAC,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAC,IAAI,EAAC,GAAG,aAAa,CAAC,OAAO,EAAE;QAClC,IAAI;QACJ,OAAO,EAAE,CAAC,GAAG,cAAc,EAAE,GAAG,OAAO,CAAC;QACxC,YAAY;KACf,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAU,EAAE,OAAe;IAC3D,OAAO,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC","sourcesContent":["import defaultPlugins from '@diplodoc/transform/lib/plugins';\nimport {MarkdownItPluginCb} from '@diplodoc/transform/lib/plugins/typings';\n\nimport {Lang} from './types';\nimport {fullTransform, typografToHTML} from './utils';\n\nexport type ComplexItem = {[key: string]: string | object};\nexport type Item = string | null | ComplexItem;\nexport type Transformer = (text: string) => string;\nexport type TransformerRaw = (\n lang: Lang,\n content: string,\n options: {plugins: MarkdownItPluginCb[]; renderInline?: boolean},\n) => string;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Parser<T = any> = (transformer: Transformer, block: T) => T;\n\nexport const createItemsParser =\n (fields: string[]) => (transformer: Transformer, items: Item[]) => {\n const applyTransform = (itemLocal: string | object) =>\n typeof itemLocal === 'string' ? transformer(itemLocal as string) : itemLocal;\n\n return items.map((item) => {\n if (!item) {\n return item;\n } else if (typeof item === 'string') {\n return transformer(item);\n } else {\n return {\n ...item,\n ...fields.reduce<ComplexItem>((acc, fieldName) => {\n if (fieldName.includes('.')) {\n const [firstProperty, secondProperty] = fieldName.split('.');\n const root = item[firstProperty] as unknown as Record<string, string>;\n if (!root || typeof root !== 'object') {\n return acc;\n }\n\n if (Array.isArray(root)) {\n if (!acc[firstProperty]) {\n // eslint-disable-next-line no-param-reassign\n acc[firstProperty] = [];\n }\n\n // eslint-disable-next-line no-param-reassign\n acc[firstProperty] = root.map((subItem: ComplexItem) => ({\n ...subItem,\n [secondProperty]: applyTransform(subItem[secondProperty]),\n }));\n } else {\n // eslint-disable-next-line no-param-reassign\n acc[firstProperty] = {\n ...root,\n [secondProperty]: applyTransform(root[secondProperty]),\n };\n }\n } else if (item[fieldName]) {\n // eslint-disable-next-line no-param-reassign\n acc[fieldName] = applyTransform(item[fieldName]);\n }\n\n return acc;\n }, {} as ComplexItem),\n };\n }\n });\n };\n\nexport function yfmTransformer(\n lang: Lang,\n content: string,\n options: {plugins?: MarkdownItPluginCb[]} = {},\n renderInline = false,\n) {\n const {plugins = []} = options;\n const {html} = fullTransform(content, {\n lang,\n plugins: [...defaultPlugins, ...plugins],\n renderInline,\n });\n\n return html;\n}\n\nexport function typografTransformer(lang: Lang, content: string) {\n return typografToHTML(content, lang);\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TitleItemProps } from "../models/index.js";
|
|
2
|
-
import { Parser, Transformer, TransformerRaw,
|
|
2
|
+
import { Parser, Transformer, TransformerRaw, yfmTransformer } from "./common.js";
|
|
3
3
|
export declare const blockHeaderTransformer: ({
|
|
4
4
|
fields: string[];
|
|
5
|
-
transformer: typeof
|
|
5
|
+
transformer: typeof yfmTransformer;
|
|
6
6
|
parser: (transformer: Transformer, title: TitleItemProps | string) => string | {
|
|
7
7
|
text: string;
|
|
8
8
|
navTitle?: string;
|
|
@@ -14,15 +14,18 @@ export declare const blockHeaderTransformer: ({
|
|
|
14
14
|
custom?: string | React.ReactNode;
|
|
15
15
|
onClick?: () => void;
|
|
16
16
|
};
|
|
17
|
+
renderInline: boolean;
|
|
17
18
|
} | {
|
|
18
19
|
fields: string[];
|
|
19
20
|
transformer: typeof yfmTransformer;
|
|
20
21
|
parser?: undefined;
|
|
22
|
+
renderInline?: undefined;
|
|
21
23
|
})[];
|
|
22
24
|
interface BlockConfig {
|
|
23
25
|
transformer: TransformerRaw;
|
|
24
26
|
fields?: string[];
|
|
25
27
|
parser?: Parser;
|
|
28
|
+
renderInline?: boolean;
|
|
26
29
|
}
|
|
27
30
|
export type BlocksConfig = Record<string, BlockConfig | BlockConfig[]>;
|
|
28
31
|
export declare const config: BlocksConfig;
|