@meduza/ui-kit-2 0.1.59 → 0.1.60
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 +2 -1
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +3 -2
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +3 -8
- package/dist/types.d.ts +6 -0
- package/dist/ui-kit.css +727 -727
- package/package.json +1 -1
- package/src/Meta/Meta.types.ts +2 -1
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +3 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +3 -8
- package/src/types.ts +17 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CallToActions } from '../types';
|
|
2
3
|
export interface MetaContainerProps {
|
|
3
4
|
block: any;
|
|
4
5
|
styleContext: string[] | string;
|
|
5
6
|
isRead: boolean | undefined;
|
|
6
7
|
isListened: boolean | undefined;
|
|
7
8
|
isInBookmarks: boolean | undefined;
|
|
8
|
-
bookmarkAction?: (service:
|
|
9
|
+
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
9
10
|
lightBox?: () => void;
|
|
10
11
|
lang: 'ru' | 'en';
|
|
11
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from '../Image/Image.types';
|
|
2
|
+
import { CallToActions, LightboxContext } from '../types';
|
|
2
3
|
export declare type lightBox = {
|
|
3
4
|
show: (image?: ImageProps['optimized'], alt?: ImageProps['alt']) => void;
|
|
4
5
|
hide: () => void;
|
|
@@ -10,6 +11,6 @@ export interface RawHtmlBlockProps {
|
|
|
10
11
|
isRead?: boolean | undefined;
|
|
11
12
|
isListened?: boolean | undefined;
|
|
12
13
|
isInBookmarks?: boolean | undefined;
|
|
13
|
-
bookmarkAction?: (service:
|
|
14
|
-
lightBox?:
|
|
14
|
+
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
15
|
+
lightBox?: LightboxContext | null | undefined;
|
|
15
16
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type lightBox = {
|
|
3
|
-
show: (image?: ImageProps['optimized'], alt?: ImageProps['alt']) => void;
|
|
4
|
-
hide: () => void;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
};
|
|
1
|
+
import { CallToActions, LightboxContext } from '../types';
|
|
7
2
|
export interface RenderBlocksProps {
|
|
8
3
|
block: any;
|
|
9
4
|
styleContext?: any;
|
|
10
5
|
isRead?: boolean;
|
|
11
6
|
isListened?: boolean;
|
|
12
7
|
isInBookmarks?: boolean;
|
|
13
|
-
bookmarkAction?: (service:
|
|
14
|
-
lightBox?:
|
|
8
|
+
bookmarkAction?: (service: CallToActions, place: string) => void;
|
|
9
|
+
lightBox?: LightboxContext | null | undefined;
|
|
15
10
|
lang?: 'ru' | 'en';
|
|
16
11
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -4,3 +4,9 @@ export interface OptimizedImageItem {
|
|
|
4
4
|
'1x_webp': string;
|
|
5
5
|
'2x_webp': string;
|
|
6
6
|
}
|
|
7
|
+
export declare type CallToActions = 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'wp' | 'reaction' | 'bookmark' | 'cross';
|
|
8
|
+
export interface LightboxContext {
|
|
9
|
+
show: (image?: OptimizedImageItem, alt?: string) => void;
|
|
10
|
+
hide: () => void;
|
|
11
|
+
visible: boolean;
|
|
12
|
+
}
|