@meduza/ui-kit-2 0.8.603 → 0.8.604
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 +1 -0
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +1 -0
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +12 -7
- 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 +12 -7
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +5 -1
- package/dist/ui-kit.css +5 -1
- package/package.json +1 -1
- package/src/Meta/Meta.module.css +5 -1
- package/src/Meta/Meta.types.ts +1 -0
- package/src/Meta/MetaContainer.tsx +7 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -0
- package/src/RawHtmlBlock/index.tsx +3 -1
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -0
- package/src/RenderBlocks/index.tsx +3 -1
package/dist/ui-kit-game.css
CHANGED
|
@@ -2338,7 +2338,11 @@
|
|
|
2338
2338
|
.Meta-module_containerInDynamicBlock__YSh66 {
|
|
2339
2339
|
position: absolute;
|
|
2340
2340
|
bottom: 20px;
|
|
2341
|
-
left:
|
|
2341
|
+
left: 57px;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
.Meta-module_containerInDynamicBlockAndMaterial__4v4A9 {
|
|
2345
|
+
left: 65px;
|
|
2342
2346
|
}
|
|
2343
2347
|
|
|
2344
2348
|
.Meta-module_root__H-Q4d {
|
package/dist/ui-kit.css
CHANGED
|
@@ -2338,7 +2338,11 @@
|
|
|
2338
2338
|
.Meta-module_containerInDynamicBlock__YSh66 {
|
|
2339
2339
|
position: absolute;
|
|
2340
2340
|
bottom: 20px;
|
|
2341
|
-
left:
|
|
2341
|
+
left: 57px;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
.Meta-module_containerInDynamicBlockAndMaterial__4v4A9 {
|
|
2345
|
+
left: 65px;
|
|
2342
2346
|
}
|
|
2343
2347
|
|
|
2344
2348
|
.Meta-module_root__H-Q4d {
|
package/package.json
CHANGED
package/src/Meta/Meta.module.css
CHANGED
package/src/Meta/Meta.types.ts
CHANGED
|
@@ -25,7 +25,8 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
25
25
|
block: {
|
|
26
26
|
data: { components, theme }
|
|
27
27
|
},
|
|
28
|
-
styleContext
|
|
28
|
+
styleContext,
|
|
29
|
+
type
|
|
29
30
|
}) => {
|
|
30
31
|
const themeColor =
|
|
31
32
|
styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset'
|
|
@@ -43,7 +44,11 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
43
44
|
const hasSource = !!components.find((item) => item.type === 'source_name')
|
|
44
45
|
|
|
45
46
|
const classNames: ClassNames = [
|
|
46
|
-
[styles.containerInDynamicBlock, styleContext === 'isInDynamicBlock']
|
|
47
|
+
[styles.containerInDynamicBlock, styleContext === 'isInDynamicBlock'],
|
|
48
|
+
[
|
|
49
|
+
styles.containerInDynamicBlockAndMaterial,
|
|
50
|
+
styleContext === 'isInDynamicBlock' && type === 'isInMaterial'
|
|
51
|
+
]
|
|
47
52
|
]
|
|
48
53
|
|
|
49
54
|
return (
|
|
@@ -18,7 +18,8 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
|
|
|
18
18
|
isInBookmarks,
|
|
19
19
|
bookmarkAction,
|
|
20
20
|
lightBox,
|
|
21
|
-
lang
|
|
21
|
+
lang,
|
|
22
|
+
type = 'default'
|
|
22
23
|
}) => {
|
|
23
24
|
const context = {
|
|
24
25
|
lightBox: lightBox || null
|
|
@@ -68,6 +69,7 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
|
|
|
68
69
|
isInBookmarks={isInBookmarks}
|
|
69
70
|
bookmarkAction={bookmarkAction}
|
|
70
71
|
lang={lang}
|
|
72
|
+
type={type}
|
|
71
73
|
/>
|
|
72
74
|
</BlockProvider>
|
|
73
75
|
)
|
|
@@ -27,7 +27,8 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
|
|
|
27
27
|
isRead,
|
|
28
28
|
isListened,
|
|
29
29
|
bookmarkAction,
|
|
30
|
-
isInBookmarks
|
|
30
|
+
isInBookmarks,
|
|
31
|
+
type = 'default'
|
|
31
32
|
}) => {
|
|
32
33
|
switch (block.type) {
|
|
33
34
|
case 'tag': {
|
|
@@ -61,6 +62,7 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
|
|
|
61
62
|
isListened={isListened}
|
|
62
63
|
isInBookmarks={isInBookmarks}
|
|
63
64
|
bookmarkAction={bookmarkAction}
|
|
65
|
+
type={type}
|
|
64
66
|
/>
|
|
65
67
|
)
|
|
66
68
|
}
|