@meduza/ui-kit-2 0.8.627 → 0.8.629
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/dist/Meta/Meta.types.d.ts +0 -1
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -1
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -1
- package/dist/ui-kit-2.cjs.development.js +8 -28
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +8 -28
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +0 -19
- package/dist/ui-kit.css +0 -19
- package/package.json +1 -1
- package/src/Meta/Meta.module.css +0 -16
- package/src/Meta/Meta.types.ts +0 -1
- package/src/Meta/MetaContainer.tsx +119 -146
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +0 -1
- package/src/RawHtmlBlock/index.tsx +1 -3
- package/src/RenderBlocks/RenderBlocks.types.ts +0 -1
- package/src/RenderBlocks/index.tsx +1 -3
|
@@ -1001,7 +1001,7 @@ const Toolbar = ({
|
|
|
1001
1001
|
}, children));
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
|
-
var styles$s = {"
|
|
1004
|
+
var styles$s = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
|
|
1005
1005
|
|
|
1006
1006
|
const Meta = ({
|
|
1007
1007
|
hasSource,
|
|
@@ -1855,8 +1855,7 @@ const MetaContainer = ({
|
|
|
1855
1855
|
theme
|
|
1856
1856
|
}
|
|
1857
1857
|
},
|
|
1858
|
-
styleContext
|
|
1859
|
-
type
|
|
1858
|
+
styleContext
|
|
1860
1859
|
}) => {
|
|
1861
1860
|
const themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
|
|
1862
1861
|
const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
|
|
@@ -1868,10 +1867,7 @@ const MetaContainer = ({
|
|
|
1868
1867
|
});
|
|
1869
1868
|
}
|
|
1870
1869
|
const hasSource = !!components.find(item => item.type === 'source_name');
|
|
1871
|
-
|
|
1872
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
1873
|
-
className: makeClassName(classNames)
|
|
1874
|
-
}, /*#__PURE__*/React.createElement(Meta, {
|
|
1870
|
+
return /*#__PURE__*/React.createElement(Meta, {
|
|
1875
1871
|
styleContext: context,
|
|
1876
1872
|
theme: theme || themeColor,
|
|
1877
1873
|
onlyOn: block.only_on,
|
|
@@ -1892,13 +1888,6 @@ const MetaContainer = ({
|
|
|
1892
1888
|
}
|
|
1893
1889
|
case 'duration':
|
|
1894
1890
|
{
|
|
1895
|
-
// if (styleContext === 'isInDynamicBlock') {
|
|
1896
|
-
// return (
|
|
1897
|
-
// <MetaItem hasSource={hasSource} bullets key={component.id}>
|
|
1898
|
-
// {component.text}
|
|
1899
|
-
// </MetaItem>
|
|
1900
|
-
// )
|
|
1901
|
-
// }
|
|
1902
1891
|
return /*#__PURE__*/React.createElement(MetaItem, {
|
|
1903
1892
|
hasSource: hasSource,
|
|
1904
1893
|
bullets: true,
|
|
@@ -1918,11 +1907,6 @@ const MetaContainer = ({
|
|
|
1918
1907
|
type: "datetime"
|
|
1919
1908
|
}, /*#__PURE__*/React.createElement(Timestamp, {
|
|
1920
1909
|
publishedAt: component.datetime,
|
|
1921
|
-
// type={
|
|
1922
|
-
// styleContext === 'isInDynamicBlock'
|
|
1923
|
-
// ? 'fromNow'
|
|
1924
|
-
// : format || 'date'
|
|
1925
|
-
// }
|
|
1926
1910
|
type: format || 'date',
|
|
1927
1911
|
locale: lang
|
|
1928
1912
|
}));
|
|
@@ -1983,7 +1967,7 @@ const MetaContainer = ({
|
|
|
1983
1967
|
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1984
1968
|
isInBookmarks: isInBookmarks,
|
|
1985
1969
|
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1986
|
-
}))))
|
|
1970
|
+
}))));
|
|
1987
1971
|
};
|
|
1988
1972
|
|
|
1989
1973
|
var styles$b = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
|
|
@@ -2118,8 +2102,7 @@ const RenderBlocks = ({
|
|
|
2118
2102
|
isRead,
|
|
2119
2103
|
isListened,
|
|
2120
2104
|
bookmarkAction,
|
|
2121
|
-
isInBookmarks
|
|
2122
|
-
type = 'default'
|
|
2105
|
+
isInBookmarks
|
|
2123
2106
|
}) => {
|
|
2124
2107
|
switch (block.type) {
|
|
2125
2108
|
case 'tag':
|
|
@@ -2154,8 +2137,7 @@ const RenderBlocks = ({
|
|
|
2154
2137
|
isRead: isRead,
|
|
2155
2138
|
isListened: isListened,
|
|
2156
2139
|
isInBookmarks: isInBookmarks,
|
|
2157
|
-
bookmarkAction: bookmarkAction
|
|
2158
|
-
type: type
|
|
2140
|
+
bookmarkAction: bookmarkAction
|
|
2159
2141
|
});
|
|
2160
2142
|
}
|
|
2161
2143
|
case 'blockquote':
|
|
@@ -2694,8 +2676,7 @@ const RawHtmlBlock = ({
|
|
|
2694
2676
|
isInBookmarks,
|
|
2695
2677
|
bookmarkAction,
|
|
2696
2678
|
lightBox,
|
|
2697
|
-
lang
|
|
2698
|
-
type = 'default'
|
|
2679
|
+
lang
|
|
2699
2680
|
}) => {
|
|
2700
2681
|
const context = {
|
|
2701
2682
|
lightBox: lightBox || null
|
|
@@ -2763,8 +2744,7 @@ const RawHtmlBlock = ({
|
|
|
2763
2744
|
isListened: isListened,
|
|
2764
2745
|
isInBookmarks: isInBookmarks,
|
|
2765
2746
|
bookmarkAction: bookmarkAction,
|
|
2766
|
-
lang: lang
|
|
2767
|
-
type: type
|
|
2747
|
+
lang: lang
|
|
2768
2748
|
}));
|
|
2769
2749
|
}
|
|
2770
2750
|
}
|