be-components 5.1.8 → 5.1.9
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/lib/commonjs/Components/Icons.js +28 -1
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +13 -1
- package/lib/commonjs/Components/Themed.js.map +1 -1
- package/lib/commonjs/SocialComponents/FormattedTextInput/components/TagSelector.js +47 -24
- package/lib/commonjs/SocialComponents/FormattedTextInput/components/TagSelector.js.map +1 -1
- package/lib/commonjs/SocialComponents/FormattedTextInput/index.js +41 -8
- package/lib/commonjs/SocialComponents/FormattedTextInput/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/GifSelector/NativeSelector.js +14 -0
- package/lib/commonjs/SocialComponents/GifSelector/NativeSelector.js.map +1 -0
- package/lib/commonjs/SocialComponents/GifSelector/WebSelector.js +123 -0
- package/lib/commonjs/SocialComponents/GifSelector/WebSelector.js.map +1 -0
- package/lib/commonjs/SocialComponents/GroupChat/components/GroupMessageCard.js +89 -0
- package/lib/commonjs/SocialComponents/GroupChat/components/GroupMessageCard.js.map +1 -0
- package/lib/commonjs/SocialComponents/GroupChat/index.js +426 -0
- package/lib/commonjs/SocialComponents/GroupChat/index.js.map +1 -0
- package/lib/commonjs/SocialComponents/ImageRenderer.js +55 -0
- package/lib/commonjs/SocialComponents/ImageRenderer.js.map +1 -0
- package/lib/commonjs/SocialComponents/InputBar/components/ActionSelector.js +219 -0
- package/lib/commonjs/SocialComponents/InputBar/components/ActionSelector.js.map +1 -0
- package/lib/commonjs/SocialComponents/InputBar/index.js +59 -5
- package/lib/commonjs/SocialComponents/InputBar/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PostCard/components/ArticleCard.js +2 -0
- package/lib/commonjs/SocialComponents/PostCard/components/ArticleCard.js.map +1 -0
- package/lib/commonjs/SocialComponents/PostCard/components/ImageList.js +37 -25
- package/lib/commonjs/SocialComponents/PostCard/components/ImageList.js.map +1 -1
- package/lib/commonjs/SocialComponents/PostCard/index.js +148 -70
- package/lib/commonjs/SocialComponents/PostCard/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/Poster/index.js +325 -0
- package/lib/commonjs/SocialComponents/Poster/index.js.map +1 -0
- package/lib/commonjs/SocialComponents/SocialOrderCard.js +8 -3
- package/lib/commonjs/SocialComponents/SocialOrderCard.js.map +1 -1
- package/lib/commonjs/SocialComponents/SocialOrdersList.js +20 -2
- package/lib/commonjs/SocialComponents/SocialOrdersList.js.map +1 -1
- package/lib/commonjs/SocialComponents/UrlPreviewCard.js +115 -0
- package/lib/commonjs/SocialComponents/UrlPreviewCard.js.map +1 -0
- package/lib/commonjs/SocialComponents/api/index.js +383 -0
- package/lib/commonjs/SocialComponents/api/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/index.js +14 -0
- package/lib/commonjs/SocialComponents/index.js.map +1 -1
- package/lib/module/Components/Icons.js +28 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Themed.js +13 -1
- package/lib/module/Components/Themed.js.map +1 -1
- package/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.js +48 -25
- package/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.js.map +1 -1
- package/lib/module/SocialComponents/FormattedTextInput/index.js +41 -8
- package/lib/module/SocialComponents/FormattedTextInput/index.js.map +1 -1
- package/lib/module/SocialComponents/GifSelector/NativeSelector.js +7 -0
- package/lib/module/SocialComponents/GifSelector/NativeSelector.js.map +1 -0
- package/lib/module/SocialComponents/GifSelector/WebSelector.js +125 -0
- package/lib/module/SocialComponents/GifSelector/WebSelector.js.map +1 -0
- package/lib/module/SocialComponents/GroupChat/components/GroupMessageCard.js +82 -0
- package/lib/module/SocialComponents/GroupChat/components/GroupMessageCard.js.map +1 -0
- package/lib/module/SocialComponents/GroupChat/index.js +418 -0
- package/lib/module/SocialComponents/GroupChat/index.js.map +1 -0
- package/lib/module/SocialComponents/ImageRenderer.js +48 -0
- package/lib/module/SocialComponents/ImageRenderer.js.map +1 -0
- package/lib/module/SocialComponents/InputBar/components/ActionSelector.js +210 -0
- package/lib/module/SocialComponents/InputBar/components/ActionSelector.js.map +1 -0
- package/lib/module/SocialComponents/InputBar/index.js +58 -6
- package/lib/module/SocialComponents/InputBar/index.js.map +1 -1
- package/lib/module/SocialComponents/PostCard/components/ArticleCard.js +2 -0
- package/lib/module/SocialComponents/PostCard/components/ArticleCard.js.map +1 -0
- package/lib/module/SocialComponents/PostCard/components/ImageList.js +37 -25
- package/lib/module/SocialComponents/PostCard/components/ImageList.js.map +1 -1
- package/lib/module/SocialComponents/PostCard/index.js +148 -70
- package/lib/module/SocialComponents/PostCard/index.js.map +1 -1
- package/lib/module/SocialComponents/Poster/index.js +316 -0
- package/lib/module/SocialComponents/Poster/index.js.map +1 -0
- package/lib/module/SocialComponents/SocialOrderCard.js +8 -3
- package/lib/module/SocialComponents/SocialOrderCard.js.map +1 -1
- package/lib/module/SocialComponents/SocialOrdersList.js +21 -3
- package/lib/module/SocialComponents/SocialOrdersList.js.map +1 -1
- package/lib/module/SocialComponents/UrlPreviewCard.js +106 -0
- package/lib/module/SocialComponents/UrlPreviewCard.js.map +1 -0
- package/lib/module/SocialComponents/api/index.js +383 -0
- package/lib/module/SocialComponents/api/index.js.map +1 -1
- package/lib/module/SocialComponents/index.js +3 -1
- package/lib/module/SocialComponents/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/FormattedTextInput/components/TagSelector.d.ts +2 -1
- package/lib/typescript/lib/commonjs/SocialComponents/FormattedTextInput/components/TagSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/FormattedTextInput/index.d.ts +6 -1
- package/lib/typescript/lib/commonjs/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/GifSelector/NativeSelector.d.ts +4 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GifSelector/NativeSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GifSelector/WebSelector.d.ts +4 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GifSelector/WebSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GroupChat/components/GroupMessageCard.d.ts +11 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GroupChat/components/GroupMessageCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GroupChat/index.d.ts +14 -0
- package/lib/typescript/lib/commonjs/SocialComponents/GroupChat/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/ImageRenderer.d.ts +11 -0
- package/lib/typescript/lib/commonjs/SocialComponents/ImageRenderer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/InputBar/components/ActionSelector.d.ts +9 -0
- package/lib/typescript/lib/commonjs/SocialComponents/InputBar/components/ActionSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/InputBar/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/SocialComponents/InputBar/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/components/ArticleCard.d.ts +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/components/ArticleCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/components/ImageList.d.ts +1 -2
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/components/ImageList.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/index.d.ts +4 -1
- package/lib/typescript/lib/commonjs/SocialComponents/PostCard/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/Poster/index.d.ts +9 -0
- package/lib/typescript/lib/commonjs/SocialComponents/Poster/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrderCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrdersList.d.ts +2 -1
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrdersList.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/UrlPreviewCard.d.ts +9 -0
- package/lib/typescript/lib/commonjs/SocialComponents/UrlPreviewCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/SocialComponents/api/index.d.ts +89 -0
- package/lib/typescript/lib/commonjs/SocialComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/index.d.ts +2 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts +3 -2
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/index.d.ts +6 -1
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/GifSelector/NativeSelector.d.ts +4 -0
- package/lib/typescript/lib/module/SocialComponents/GifSelector/NativeSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts +13 -0
- package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/GroupChat/components/GroupMessageCard.d.ts +11 -0
- package/lib/typescript/lib/module/SocialComponents/GroupChat/components/GroupMessageCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/GroupChat/index.d.ts +14 -0
- package/lib/typescript/lib/module/SocialComponents/GroupChat/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/ImageRenderer.d.ts +11 -0
- package/lib/typescript/lib/module/SocialComponents/ImageRenderer.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/InputBar/components/ActionSelector.d.ts +10 -0
- package/lib/typescript/lib/module/SocialComponents/InputBar/components/ActionSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/InputBar/index.d.ts +3 -1
- package/lib/typescript/lib/module/SocialComponents/InputBar/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/ArticleCard.d.ts +1 -0
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/ArticleCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/ImageList.d.ts +1 -2
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/ImageList.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/PostCard/index.d.ts +4 -1
- package/lib/typescript/lib/module/SocialComponents/PostCard/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts +11 -0
- package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/SocialOrderCard.d.ts +3 -2
- package/lib/typescript/lib/module/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/SocialOrdersList.d.ts +2 -1
- package/lib/typescript/lib/module/SocialComponents/SocialOrdersList.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/UrlPreviewCard.d.ts +9 -0
- package/lib/typescript/lib/module/SocialComponents/UrlPreviewCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/SocialComponents/api/index.d.ts +89 -0
- package/lib/typescript/lib/module/SocialComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/index.d.ts +3 -1
- package/lib/typescript/lib/module/SocialComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +1 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/FormattedTextInput/components/TagSelector.d.ts +2 -1
- package/lib/typescript/src/SocialComponents/FormattedTextInput/components/TagSelector.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/FormattedTextInput/index.d.ts +6 -1
- package/lib/typescript/src/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/GifSelector/NativeSelector.d.ts +4 -0
- package/lib/typescript/src/SocialComponents/GifSelector/NativeSelector.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/GifSelector/WebSelector.d.ts +11 -0
- package/lib/typescript/src/SocialComponents/GifSelector/WebSelector.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/GroupChat/components/GroupMessageCard.d.ts +18 -0
- package/lib/typescript/src/SocialComponents/GroupChat/components/GroupMessageCard.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/GroupChat/index.d.ts +25 -0
- package/lib/typescript/src/SocialComponents/GroupChat/index.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/ImageRenderer.d.ts +21 -0
- package/lib/typescript/src/SocialComponents/ImageRenderer.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/InputBar/components/ActionSelector.d.ts +16 -0
- package/lib/typescript/src/SocialComponents/InputBar/components/ActionSelector.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/InputBar/index.d.ts +10 -1
- package/lib/typescript/src/SocialComponents/InputBar/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PostCard/components/ArticleCard.d.ts +1 -0
- package/lib/typescript/src/SocialComponents/PostCard/components/ArticleCard.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/PostCard/components/ImageList.d.ts +1 -1
- package/lib/typescript/src/SocialComponents/PostCard/components/ImageList.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PostCard/index.d.ts +4 -2
- package/lib/typescript/src/SocialComponents/PostCard/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/Poster/index.d.ts +16 -0
- package/lib/typescript/src/SocialComponents/Poster/index.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/SocialOrderCard.d.ts +2 -1
- package/lib/typescript/src/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/SocialOrdersList.d.ts +2 -1
- package/lib/typescript/src/SocialComponents/SocialOrdersList.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/UrlPreviewCard.d.ts +10 -0
- package/lib/typescript/src/SocialComponents/UrlPreviewCard.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/api/index.d.ts +37 -1
- package/lib/typescript/src/SocialComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/index.d.ts +3 -1
- package/lib/typescript/src/SocialComponents/index.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/Components/Icons.tsx +18 -1
- package/src/Components/Themed.tsx +11 -1
- package/src/SocialComponents/FormattedTextInput/components/TagSelector.tsx +24 -17
- package/src/SocialComponents/FormattedTextInput/index.tsx +32 -7
- package/src/SocialComponents/GifSelector/NativeSelector.tsx +13 -0
- package/src/SocialComponents/GifSelector/WebSelector.tsx +91 -0
- package/src/SocialComponents/GroupChat/components/GroupMessageCard.tsx +84 -0
- package/src/SocialComponents/GroupChat/index.tsx +333 -0
- package/src/SocialComponents/ImageRenderer.tsx +42 -0
- package/src/SocialComponents/InputBar/components/ActionSelector.tsx +164 -0
- package/src/SocialComponents/InputBar/index.tsx +40 -6
- package/src/SocialComponents/PostCard/components/ArticleCard.tsx +2 -0
- package/src/SocialComponents/PostCard/components/ImageList.tsx +28 -21
- package/src/SocialComponents/PostCard/index.tsx +122 -56
- package/src/SocialComponents/Poster/index.tsx +264 -0
- package/src/SocialComponents/SocialOrderCard.tsx +4 -6
- package/src/SocialComponents/SocialOrdersList.tsx +14 -8
- package/src/SocialComponents/UrlPreviewCard.tsx +75 -0
- package/src/SocialComponents/api/index.ts +345 -3
- package/src/SocialComponents/index.tsx +4 -0
- package/src/types.d.ts +58 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ImageRendererProps = {
|
|
3
|
+
image: {
|
|
4
|
+
url: string;
|
|
5
|
+
height?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
};
|
|
8
|
+
style?: any;
|
|
9
|
+
width: number;
|
|
10
|
+
max_height?: number;
|
|
11
|
+
allow_aspect_change?: boolean;
|
|
12
|
+
onSelectImage?: (image: {
|
|
13
|
+
url: string;
|
|
14
|
+
height?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
};
|
|
19
|
+
declare const ImageRenderer: ({ image, width, onSelectImage, max_height, style, allow_aspect_change }: ImageRendererProps) => React.JSX.Element;
|
|
20
|
+
export default ImageRenderer;
|
|
21
|
+
//# sourceMappingURL=ImageRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/ImageRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,kBAAkB,GAAG;IACtB,KAAK,EAAE;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,CAAC,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAA;KAAE,CAAC;IACrD,KAAK,CAAC,EAAC,GAAG,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAC,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAC,CAAC,KAAK,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,CAAC,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAA;CACjG,CAAA;AACD,QAAA,MAAM,aAAa,4EAA4E,kBAAkB,sBA2BhH,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OrderProps } from '../../../types';
|
|
3
|
+
type ActionSelectProps = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onTagOrder: (order: OrderProps) => void;
|
|
7
|
+
insets?: {
|
|
8
|
+
top: number;
|
|
9
|
+
left: number;
|
|
10
|
+
right: number;
|
|
11
|
+
bottom: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
declare const ActionSelector: ({ visible, insets, onClose, onTagOrder }: ActionSelectProps) => React.JSX.Element;
|
|
15
|
+
export default ActionSelector;
|
|
16
|
+
//# sourceMappingURL=ActionSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/SocialComponents/InputBar/components/ActionSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAqD,UAAU,EAA8B,MAAM,gBAAgB,CAAC;AAIhI,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAC,OAAO,CAAC;IAChB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,UAAU,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAA;KAAE,CAAA;CACnE,CAAA;AAGD,QAAA,MAAM,cAAc,6CAA6C,iBAAiB,sBAiJjF,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { OrderProps } from '../../types';
|
|
2
3
|
type InputBarProps = {
|
|
3
4
|
actions: string[];
|
|
5
|
+
width: number;
|
|
6
|
+
insets?: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
};
|
|
4
12
|
onImageUpload: (image: {
|
|
5
13
|
url: string;
|
|
6
14
|
[key: string]: any;
|
|
7
15
|
}) => void;
|
|
16
|
+
onTagOrder?: (order: OrderProps) => void;
|
|
8
17
|
};
|
|
9
|
-
declare const InputBar: ({ actions, onImageUpload }: InputBarProps) => React.JSX.Element;
|
|
18
|
+
declare const InputBar: ({ actions, insets, onImageUpload, onTagOrder }: InputBarProps) => React.JSX.Element;
|
|
10
19
|
export default InputBar;
|
|
11
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/InputBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/InputBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,KAAK,aAAa,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAA;KAAE,CAAC;IACjE,aAAa,EAAE,CAAC,KAAK,EAAE;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;IACjE,UAAU,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,QAAA,MAAM,QAAQ,mDAAqD,aAAa,sBA4D/E,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ArticleCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArticleCard.d.ts","sourceRoot":"","sources":["../../../../../../src/SocialComponents/PostCard/components/ArticleCard.tsx"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,6 @@ type ImageListProps = {
|
|
|
4
4
|
images: any[];
|
|
5
5
|
width: number;
|
|
6
6
|
};
|
|
7
|
-
declare const ImageList: ({
|
|
7
|
+
declare const ImageList: ({ width, images }: ImageListProps) => React.JSX.Element;
|
|
8
8
|
export default ImageList;
|
|
9
9
|
//# sourceMappingURL=ImageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageList.d.ts","sourceRoot":"","sources":["../../../../../../src/SocialComponents/PostCard/components/ImageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageList.d.ts","sourceRoot":"","sources":["../../../../../../src/SocialComponents/PostCard/components/ImageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,cAAc,GAAG;IAClB,OAAO,EAAC,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,EAAC,MAAM,CAAC;CAChB,CAAA;AACD,QAAA,MAAM,SAAS,sBAAsB,cAAc,sBAwClD,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ArticleProps, OrderProps, PostProps, PublicPlayerProps } from '../../types';
|
|
2
|
+
import type { ArticleProps, OrderProps, PostProps, PublicPlayerProps, TextTagProps } from '../../types';
|
|
3
3
|
type PostCardProps = {
|
|
4
4
|
post: PostProps;
|
|
5
5
|
player?: PublicPlayerProps;
|
|
6
6
|
articles: ArticleProps[];
|
|
7
7
|
orders: OrderProps[];
|
|
8
8
|
player_id?: string;
|
|
9
|
+
width: number;
|
|
10
|
+
onSelectTag: (tag: TextTagProps) => void;
|
|
9
11
|
onSelectPlayer: (p: PublicPlayerProps) => void;
|
|
10
12
|
onRequestAuthenticate: () => void;
|
|
11
13
|
onCopyOrder?: (order: OrderProps) => void;
|
|
12
14
|
onFadeOrder?: (order: OrderProps) => void;
|
|
13
15
|
onViewComments?: (post_id: string) => void;
|
|
14
16
|
};
|
|
15
|
-
declare const PostCard: ({ player_id, post, player, orders, onRequestAuthenticate, onCopyOrder, onFadeOrder, onViewComments, onSelectPlayer }: PostCardProps) => React.JSX.Element;
|
|
17
|
+
declare const PostCard: ({ player_id, width, articles, post, player, orders, onRequestAuthenticate, onCopyOrder, onFadeOrder, onViewComments, onSelectPlayer, onSelectTag }: PostCardProps) => React.JSX.Element;
|
|
16
18
|
export default PostCard;
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/PostCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAwB,SAAS,EAA6C,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/PostCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAwB,SAAS,EAA6C,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAkBzK,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAC,iBAAiB,CAAC;IAC1B,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,KAAK,EAAC,MAAM,CAAC;IACb,WAAW,EAAC,CAAC,GAAG,EAAC,YAAY,KAAK,IAAI,CAAC;IACvC,cAAc,EAAC,CAAC,CAAC,EAAC,iBAAiB,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAC,MAAM,IAAI,CAAC;IACjC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAC,CAAC,OAAO,EAAC,MAAM,KAAK,IAAI,CAAA;CAC3C,CAAA;AAID,QAAA,MAAM,QAAQ,uJAAuJ,aAAa,sBAoNjL,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PostProps } from '../../types';
|
|
3
|
+
type PosterProps = {
|
|
4
|
+
width: number;
|
|
5
|
+
post_id?: string;
|
|
6
|
+
insets?: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
};
|
|
12
|
+
onCreatePost: (post: PostProps) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const Poster: ({ width, post_id, insets, onCreatePost }: PosterProps) => React.JSX.Element;
|
|
15
|
+
export default Poster;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/Poster/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAc,SAAS,EAAmC,MAAM,aAAa,CAAC;AAQ1F,KAAK,WAAW,GAAG;IACf,KAAK,EAAC,MAAM,CAAC;IACb,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAA;KAAE,CAAC;IACjE,YAAY,EAAC,CAAC,IAAI,EAAC,SAAS,KAAK,IAAI,CAAA;CACxC,CAAA;AAGD,QAAA,MAAM,MAAM,6CAA8C,WAAW,sBAiPpE,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -10,9 +10,10 @@ type SocialOrderCardProps = {
|
|
|
10
10
|
maxWidth?: number;
|
|
11
11
|
team?: TeamProps;
|
|
12
12
|
league?: LeagueProps;
|
|
13
|
+
onTagOrder?: (order: OrderProps) => void;
|
|
13
14
|
onCopyOrder?: (order: OrderProps) => void;
|
|
14
15
|
onFadeOrder?: (order: OrderProps) => void;
|
|
15
16
|
};
|
|
16
|
-
declare const SocialOrderCard: ({ player, show_player, maxWidth, league, team, athlete, order, contest_title, contest_time, onCopyOrder, onFadeOrder }: SocialOrderCardProps) => React.JSX.Element;
|
|
17
|
+
declare const SocialOrderCard: ({ player, show_player, maxWidth, league, team, athlete, order, contest_title, contest_time, onTagOrder, onCopyOrder, onFadeOrder }: SocialOrderCardProps) => React.JSX.Element;
|
|
17
18
|
export default SocialOrderCard;
|
|
18
19
|
//# sourceMappingURL=SocialOrderCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialOrderCard.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAQpG,KAAK,oBAAoB,GAAG;IACxB,MAAM,CAAC,EAAC,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,KAAK,EAAC,UAAU,CAAC;IACjB,OAAO,CAAC,EAAC,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,IAAI,CAAC,EAAC,SAAS,CAAC;IAChB,MAAM,CAAC,EAAC,WAAW,CAAC;IACpB,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC1C,CAAA;AACD,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"SocialOrderCard.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAQpG,KAAK,oBAAoB,GAAG;IACxB,MAAM,CAAC,EAAC,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,KAAK,EAAC,UAAU,CAAC;IACjB,OAAO,CAAC,EAAC,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,IAAI,CAAC,EAAC,SAAS,CAAC;IAChB,MAAM,CAAC,EAAC,WAAW,CAAC;IACpB,UAAU,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC1C,CAAA;AACD,QAAA,MAAM,eAAe,uIAAuI,oBAAoB,sBA6H/K,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -6,9 +6,10 @@ type SocialOrdersListProps = {
|
|
|
6
6
|
orders: OrderProps[];
|
|
7
7
|
maxWidth?: number;
|
|
8
8
|
direction: 'vertical' | 'horizontal';
|
|
9
|
+
onUntagOrder?: (order: OrderProps) => void;
|
|
9
10
|
onCopyOrder?: (order: OrderProps) => void;
|
|
10
11
|
onFadeOrder?: (order: OrderProps) => void;
|
|
11
12
|
};
|
|
12
|
-
declare const SocialOrdersList: ({ maxWidth, players, show_player, orders, direction, onCopyOrder, onFadeOrder }: SocialOrdersListProps) => React.JSX.Element;
|
|
13
|
+
declare const SocialOrdersList: ({ maxWidth, players, show_player, orders, direction, onUntagOrder, onCopyOrder, onFadeOrder }: SocialOrdersListProps) => React.JSX.Element;
|
|
13
14
|
export default SocialOrdersList;
|
|
14
15
|
//# sourceMappingURL=SocialOrdersList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialOrdersList.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrdersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAqD,UAAU,EAAE,iBAAiB,EAA8B,MAAM,UAAU,CAAC;AAK7I,KAAK,qBAAqB,GAAG;IACzB,OAAO,EAAC,iBAAiB,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,SAAS,EAAE,UAAU,GAAC,YAAY,CAAC;IACnC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC1C,CAAA;AACD,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SocialOrdersList.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrdersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAqD,UAAU,EAAE,iBAAiB,EAA8B,MAAM,UAAU,CAAC;AAK7I,KAAK,qBAAqB,GAAG;IACzB,OAAO,EAAC,iBAAiB,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,SAAS,EAAE,UAAU,GAAC,YAAY,CAAC;IACnC,YAAY,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC1C,CAAA;AACD,QAAA,MAAM,gBAAgB,kGAAkG,qBAAqB,sBAwF5I,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type UrlPreviewCardProps = {
|
|
3
|
+
url: string;
|
|
4
|
+
width: number;
|
|
5
|
+
max_height?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const UrlPreviewCard: ({ url, color, width, max_height }: UrlPreviewCardProps) => React.JSX.Element;
|
|
9
|
+
export default UrlPreviewCard;
|
|
10
|
+
//# sourceMappingURL=UrlPreviewCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlPreviewCard.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/UrlPreviewCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,KAAK,mBAAmB,GAAG;IACvB,GAAG,EAAC,MAAM,CAAC;IACX,KAAK,EAAC,MAAM,CAAC;IACb,UAAU,CAAC,EAAC,MAAM,CAAA;IAClB,KAAK,CAAC,EAAC,MAAM,CAAA;CAChB,CAAA;AACD,QAAA,MAAM,cAAc,sCAAsC,mBAAmB,sBA0D5E,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import type { AthleteProps, EventProps, LeagueProps, MatchProps, OrderProps, PlayerFollowerProps, PlayerPodcastEpisodeProps, PlayerPodcastProps, PodcastEpisodesProps, PodcastProps, PostReactionProps, PublicPlayerProps, TextTagProps, TeamProps, TournamentProps } from "../../types";
|
|
1
|
+
import type { AthleteProps, EventProps, LeagueProps, MatchProps, OrderProps, PlayerFollowerProps, PlayerPodcastEpisodeProps, PlayerPodcastProps, PodcastEpisodesProps, PodcastProps, PostReactionProps, PublicPlayerProps, TextTagProps, TeamProps, TournamentProps, GroupProps, GroupMessageProps, GroupPlayerProps, MyPlayerProps, URLMetadataProps, PostProps, ArticleProps } from "../../types";
|
|
2
2
|
export { SocialComponentApi, SocialOrderHelpers, SocialPodcastHelpers, SocialComponentHelpers };
|
|
3
3
|
declare const SocialComponentApi: {
|
|
4
4
|
setEnvironment: () => void;
|
|
5
5
|
getLeagues: () => Promise<LeagueProps[]>;
|
|
6
|
+
getPlayersByIds: (player_ids: string[]) => Promise<PublicPlayerProps[]>;
|
|
6
7
|
reverseOrder: (order: OrderProps) => Promise<OrderProps | undefined>;
|
|
7
8
|
getBulkPlayerfollowers: (player_ids: string[]) => Promise<any>;
|
|
8
9
|
savePlayerFollower: (player_follower: PlayerFollowerProps) => Promise<PlayerFollowerProps>;
|
|
10
|
+
getPostById: (memo_post_id: string) => Promise<PostProps | undefined>;
|
|
11
|
+
getMyAction: () => Promise<OrderProps[]>;
|
|
12
|
+
getBulkOrders: (order_ids: string[]) => Promise<OrderProps[]>;
|
|
13
|
+
createPost: (post: PostProps) => Promise<PostProps | undefined>;
|
|
14
|
+
updatePost: (post: PostProps) => Promise<PostProps | undefined>;
|
|
9
15
|
getEventsByEventIds: (event_ids: string[]) => Promise<EventProps[]>;
|
|
10
16
|
searchPlayerByUsername: (username: string) => Promise<PublicPlayerProps | undefined>;
|
|
11
17
|
searchPlayersByValue: (search_value: string, offset: number) => Promise<PublicPlayerProps[]>;
|
|
18
|
+
getMyDetails: () => Promise<MyPlayerProps | undefined>;
|
|
12
19
|
getMatchesByMatchIds: (match_ids: string[]) => Promise<MatchProps[]>;
|
|
13
20
|
getAthletesByIds: (athlete_ids: string[]) => Promise<AthleteProps[]>;
|
|
14
21
|
getTournamentsByTournamentIds: (tournament_ids: string[]) => Promise<TournamentProps[]>;
|
|
15
22
|
getTeamsByIds: (team_ids: string[]) => Promise<any>;
|
|
16
23
|
createPostReaction: (post_reaction: PostReactionProps) => Promise<PostReactionProps | undefined>;
|
|
24
|
+
getUrlMetadata: (url: string) => Promise<URLMetadataProps | undefined>;
|
|
17
25
|
updatePostReaction: (post_reaction: PostReactionProps) => Promise<PostReactionProps | undefined>;
|
|
18
26
|
getPodcastById: (podcast_id: string) => Promise<PodcastProps | undefined>;
|
|
19
27
|
getPodcastEpisodeById: (podcast_episode_id: string) => Promise<PodcastEpisodesProps | undefined>;
|
|
@@ -26,6 +34,17 @@ declare const SocialComponentApi: {
|
|
|
26
34
|
player_podcast_episode: PlayerPodcastEpisodeProps;
|
|
27
35
|
}>;
|
|
28
36
|
pausePodcastEpisode: (podcast_episode_id: string, pause_timestamp: number) => Promise<undefined | PlayerPodcastEpisodeProps>;
|
|
37
|
+
getChat: (player_id: string) => Promise<{
|
|
38
|
+
group: GroupProps;
|
|
39
|
+
group_messages: GroupMessageProps[];
|
|
40
|
+
group_players: GroupPlayerProps[];
|
|
41
|
+
} | undefined>;
|
|
42
|
+
getGroupById: (group_id: string) => Promise<{
|
|
43
|
+
group: GroupProps;
|
|
44
|
+
group_messages: GroupMessageProps[];
|
|
45
|
+
group_players: GroupPlayerProps[];
|
|
46
|
+
} | undefined>;
|
|
47
|
+
sendChat: (group_message: GroupMessageProps) => Promise<any>;
|
|
29
48
|
};
|
|
30
49
|
declare const SocialOrderHelpers: {
|
|
31
50
|
getIconColor: (order: OrderProps) => string;
|
|
@@ -51,9 +70,26 @@ declare const SocialOrderHelpers: {
|
|
|
51
70
|
getOddsLabel: (odds: number, decimals?: number) => string;
|
|
52
71
|
};
|
|
53
72
|
declare const SocialComponentHelpers: {
|
|
73
|
+
getPostsData: (posts: PostProps[]) => Promise<{
|
|
74
|
+
posts: PostProps[];
|
|
75
|
+
orders: OrderProps[];
|
|
76
|
+
players: PublicPlayerProps[];
|
|
77
|
+
articles: ArticleProps[];
|
|
78
|
+
}>;
|
|
79
|
+
organizeImages: (images: any[], containerWidth: number, maxHeight: number, padding?: number, minWidth?: number) => any[];
|
|
80
|
+
calculateRowFit: (row: any, containerWidth: number, maxHeight: number, padding: number, minWidth: number) => {
|
|
81
|
+
fits: boolean;
|
|
82
|
+
totalWidth: number;
|
|
83
|
+
};
|
|
84
|
+
adjustRow: (row: any, containerWidth: number, maxHeight: number, padding: number, minWidth: number) => any;
|
|
85
|
+
getEmptyPost: () => PostProps;
|
|
86
|
+
isPostValid: (post?: PostProps) => boolean;
|
|
87
|
+
getUrlsFromString: (str: string) => string | undefined;
|
|
88
|
+
getEmptyMessage: () => GroupMessageProps;
|
|
54
89
|
extractTagsFromText: (text: string, cursor?: number) => TextTagProps[];
|
|
55
90
|
replaceText: (originalText: string, startIndex: number, endIndex: number, replacementText: string) => string;
|
|
56
91
|
compareTags: (valid_tags: TextTagProps[], tags: TextTagProps[]) => TextTagProps[];
|
|
92
|
+
addTagsToMessages: (gms: GroupMessageProps[]) => Promise<GroupMessageProps[]>;
|
|
57
93
|
};
|
|
58
94
|
declare const SocialPodcastHelpers: {
|
|
59
95
|
getPodcastImage: (podcast: PodcastProps) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SocialComponents/api/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -9,5 +9,7 @@ import PostCard from './PostCard';
|
|
|
9
9
|
import FormattedTextInput from "./FormattedTextInput";
|
|
10
10
|
import { FormattedText } from "./FormattedTextInput/FormattedText";
|
|
11
11
|
import InputBar from "./InputBar";
|
|
12
|
-
|
|
12
|
+
import GroupChat from "./GroupChat";
|
|
13
|
+
import Poster from "./Poster";
|
|
14
|
+
export { PlayerCard, PlayerList, FormattedTextInput, InputBar, Poster, FormattedText, PlayerProfile, CompanyProfile, PodcastModule, GroupChat, AudioPlayer, useContacts, PostCard };
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,QAAQ,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EACH,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,MAAM,EACN,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACX,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "be-components",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.9",
|
|
4
4
|
"description": "Components for BettorEdge Apps",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -164,6 +164,9 @@
|
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
166
|
"dependencies": {
|
|
167
|
+
"@giphy/js-fetch-api": "^5.6.0",
|
|
168
|
+
"@giphy/react-components": "^10.0.1",
|
|
169
|
+
"@giphy/react-native-sdk": "^4.0.1",
|
|
167
170
|
"@paypal/react-paypal-js": "^8.3.0",
|
|
168
171
|
"@react-native-async-storage/async-storage": "1.23.1",
|
|
169
172
|
"@react-native-community/slider": "4.5.5",
|
|
@@ -202,6 +205,7 @@
|
|
|
202
205
|
"react-native-web-swiper": "^2.2.4",
|
|
203
206
|
"react-native-webview": "13.12.5",
|
|
204
207
|
"react-qr-code": "^2.0.15",
|
|
208
|
+
"styled-components": "^6.1.16",
|
|
205
209
|
"us-bank-account-validator": "^1.0.0",
|
|
206
210
|
"uuid": "^9.0.1"
|
|
207
211
|
},
|
package/src/Components/Icons.tsx
CHANGED
|
@@ -1464,7 +1464,7 @@ const BarstoolIcon = ({ color, size }:IconProps) => {
|
|
|
1464
1464
|
const SendIcon = ({ color, size }:IconProps) => {
|
|
1465
1465
|
return (
|
|
1466
1466
|
<Svg width={`${size ?? 18}`} height={`${size ?? 18}`} viewBox="0 0 34 34">
|
|
1467
|
-
<G id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"
|
|
1467
|
+
<G id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" strokeLinecap="round" strokeLinejoin="round">
|
|
1468
1468
|
<G id="send-svgrepo-com" transform="translate(2.000000, 2.000000)" stroke={color ?? Colors.brand.midnight} strokeWidth="3">
|
|
1469
1469
|
<Path d="M12.0015554,17.9918921 L29.5138227,0.486092927 M12.4993483,18.779141 L16.4702559,26.7211349 C17.4299277,28.6402997 17.9096742,29.5999715 18.514137,29.8572657 C19.0387313,30.0806114 19.6383698,30.0400518 20.1283009,29.7484517 C20.6927401,29.4123611 21.0393726,28.3969423 21.7328163,26.3662833 L29.2356233,4.39360612 C29.8399074,2.62426159 30.1418708,1.73958039 29.935142,1.15434322 C29.7552147,0.645222261 29.3548006,0.244736644 28.8457511,0.0648629619 C28.2604067,-0.141901541 27.3757791,0.160186901 25.6063452,0.764345917 L3.6336502,8.26724223 C1.60300908,8.96063232 0.587679593,9.30733629 0.251571137,9.87179338 C-0.0401183298,10.3616351 -0.0805349652,10.9612736 0.142774986,11.4857429 C0.400104952,12.0902057 1.35972309,12.5701309 3.27895938,13.529624 L11.220864,17.5007103 C11.5371751,17.658839 11.6953038,17.737814 11.8321701,17.8434119 C11.9538488,17.9372171 12.0628415,18.0462098 12.156468,18.1677098 C12.2622445,18.3047547 12.3412195,18.4628835 12.4993483,18.779141 Z" id="Shape"></Path>
|
|
1470
1470
|
</G>
|
|
@@ -1473,6 +1473,22 @@ const SendIcon = ({ color, size }:IconProps) => {
|
|
|
1473
1473
|
)
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
+
|
|
1477
|
+
const GIFIcon = ({ color, size }:IconProps) => {
|
|
1478
|
+
const ratio = 0.866667
|
|
1479
|
+
const width = size ?? 18
|
|
1480
|
+
const height = width * ratio
|
|
1481
|
+
return (
|
|
1482
|
+
<Svg width={`${width}px`} height={`${height}px`} viewBox="0 0 30 26">
|
|
1483
|
+
<G id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
1484
|
+
<G id="gif-svgrepo-com-(1)" fill={color ?? Colors.brand.midnight} fillRule="nonzero">
|
|
1485
|
+
<Path d="M25.125,0 C27.8173881,0 30,2.18261186 30,4.875 L30,20.6288648 C30,23.321253 27.8173881,25.5038648 25.125,25.5038648 L4.875,25.5038648 C2.18261184,25.5038648 0,23.321253 0,20.6288648 L0,4.875 C0,2.18261186 2.18261184,0 4.875,0 L25.125,0 Z M25.125,2.25 L4.875,2.25 C3.42525253,2.25 2.25,3.42525254 2.25,4.875 L2.25,20.6288648 C2.25,22.0786122 3.42525253,23.2538648 4.875,23.2538648 L25.125,23.2538648 C26.5747475,23.2538648 27.75,22.0786122 27.75,20.6288648 L27.75,4.875 C27.75,3.42525254 26.5747475,2.25 25.125,2.25 Z M9.02189958,8.05709054 C9.91724738,8.05709054 10.5502934,8.17907906 11.2751608,8.52717584 C11.7418993,8.75131361 11.9385661,9.31137954 11.7144283,9.77811815 C11.4902906,10.2448566 10.9302246,10.4415234 10.4634861,10.2173856 C10.0137424,10.0014092 9.65402123,9.9320906 9.02189958,9.9320906 C7.72183421,9.9320906 6.76655288,11.1266333 6.76655288,12.7406381 C6.76655288,14.3561372 7.72309557,15.5546039 9.02189958,15.5546039 C9.6648364,15.5546039 10.2091088,15.2848043 10.4922673,14.8034423 L10.5015,14.781 L10.5015,13.68 L9.9378274,13.6809761 C9.46713018,13.6809761 9.07745269,13.3340894 9.0104923,12.8820131 L9.0003274,12.7434761 C9.0003274,12.2727789 9.34721423,11.8831014 9.79929052,11.816141 L9.9378274,11.8059761 L11.4402322,11.8059761 C11.9109294,11.8059761 12.3006069,12.1528629 12.3675672,12.6049392 L12.3777322,12.7434761 L12.3757278,15.0650016 L12.3757278,15.0650016 L12.3661954,15.1479596 L12.3661954,15.1479596 L12.3344476,15.2827758 L12.3344476,15.2827758 L12.3037045,15.3654971 C11.7390981,16.7006903 10.4423467,17.4296039 9.02189958,17.4296039 C6.58286671,17.4296039 4.89155288,15.3105315 4.89155288,12.7406381 C4.89155288,10.1716643 6.58258718,8.05709054 9.02189958,8.05709054 Z M15.9434167,8.240088 C16.414114,8.240088 16.8037914,8.58697482 16.8707518,9.03905112 L16.8809167,9.177588 L16.8809167,16.320783 C16.8809167,16.83855 16.4611837,17.258283 15.9434167,17.258283 C15.4727194,17.258283 15.0830421,16.9113963 15.0160816,16.4593199 L15.0059167,16.320783 L15.0059167,9.177588 C15.0059167,8.65982105 15.4256497,8.240088 15.9434167,8.240088 Z M20.4371346,8.24008788 L23.4332368,8.250438 C23.9510007,8.25222564 24.369282,8.67340536 24.3675115,9.19116923 C24.3658698,9.66186366 24.0176392,10.0503411 23.5653343,10.1157446 L23.4267631,10.1254325 L21.3705,10.1175 L21.3705,12.7485 L23.055,12.7497873 C23.5256973,12.7497873 23.9153746,13.0966742 23.9823351,13.5487505 L23.9925,13.6872873 C23.9925,14.1579845 23.6456131,14.547662 23.1935368,14.6146224 L23.055,14.6247873 L21.3705,14.6235 L21.3713977,16.2966422 C21.3713977,16.7673395 21.0245109,17.157017 20.5724346,17.2239773 L20.4338977,17.2341422 C19.9632004,17.2341422 19.5735231,16.8872555 19.5065626,16.4351792 L19.4963976,16.2966422 L19.4963976,9.17435118 C19.4980279,8.70365676 19.8462585,8.31517928 20.2985634,8.24977584 L20.4371346,8.24008788 Z" id="🎨-Color"></Path>
|
|
1486
|
+
</G>
|
|
1487
|
+
</G>
|
|
1488
|
+
</Svg>
|
|
1489
|
+
)
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1476
1492
|
export default {
|
|
1477
1493
|
SearchIcon,
|
|
1478
1494
|
LiquidityIcon,
|
|
@@ -1480,6 +1496,7 @@ export default {
|
|
|
1480
1496
|
MarketClosedIcon,
|
|
1481
1497
|
//BetScopeSuccessIcon,
|
|
1482
1498
|
AlertIcon,
|
|
1499
|
+
GIFIcon,
|
|
1483
1500
|
QuestionIcon,
|
|
1484
1501
|
BarstoolIcon,
|
|
1485
1502
|
FilterIcon,
|
|
@@ -222,6 +222,7 @@ type BETextInputProps = {
|
|
|
222
222
|
loading?:boolean,
|
|
223
223
|
focus_on_unload?:boolean,
|
|
224
224
|
transparent?:boolean,
|
|
225
|
+
weight?:'bold'|'semibold'|'regular'
|
|
225
226
|
onFocusPosition?: (position:{x:number, y:number, width:number, height:number}) => void
|
|
226
227
|
}
|
|
227
228
|
|
|
@@ -237,6 +238,14 @@ export const TextInput = (props:TextInputProps) => {
|
|
|
237
238
|
}
|
|
238
239
|
},[props.loading])
|
|
239
240
|
|
|
241
|
+
const getFamily = () => {
|
|
242
|
+
switch(props.weight){
|
|
243
|
+
case 'bold': return 'BarlowBold'
|
|
244
|
+
case 'semibold': return 'BarlowSemiBold'
|
|
245
|
+
default: return 'BarlowRegular'
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
240
249
|
const handleFocus = (e:any) => {
|
|
241
250
|
if(props.onFocus){ props.onFocus(e) }
|
|
242
251
|
if(!props.onFocusPosition){ return }
|
|
@@ -256,12 +265,13 @@ export const TextInput = (props:TextInputProps) => {
|
|
|
256
265
|
const color = props.editable == false ? C.text.descriptionLight :C.text.input
|
|
257
266
|
const borderWidth = transparent ? 0 : 1
|
|
258
267
|
const placeholder_color = C.text.placholder
|
|
268
|
+
const font_family = getFamily();
|
|
259
269
|
|
|
260
270
|
return (
|
|
261
271
|
<DefaultTextInput
|
|
262
272
|
ref={inputRef}
|
|
263
273
|
placeholderTextColor={placeholder_color}
|
|
264
|
-
style={[{ padding:15, backgroundColor: background, borderColor: border, borderWidth, color }, style]} { ...otherProps }
|
|
274
|
+
style={[{ padding:15, backgroundColor: background, borderColor: border, borderWidth, color, fontFamily: font_family }, style]} { ...otherProps }
|
|
265
275
|
onFocus={handleFocus}
|
|
266
276
|
/>
|
|
267
277
|
)
|
|
@@ -2,17 +2,18 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { Button, Text, View } from "../../../Components/Themed";
|
|
3
3
|
import type { PublicPlayerProps, TextTagProps } from '../../../types';
|
|
4
4
|
import { SocialComponentApi } from '../../api';
|
|
5
|
-
import {
|
|
5
|
+
import { Image } from 'react-native';
|
|
6
6
|
|
|
7
7
|
type TagSelectorProps = {
|
|
8
8
|
type: 'player',
|
|
9
|
+
width:number,
|
|
9
10
|
visible:boolean,
|
|
10
11
|
working_tag:TextTagProps,
|
|
11
12
|
onCancel: () => void,
|
|
12
13
|
onSelectTag:(tag:TextTagProps) => void
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
const TagSelector = ({ type, visible, working_tag, onSelectTag, onCancel } : TagSelectorProps) => {
|
|
15
|
+
const MIN_TAG_WIDTH = 140
|
|
16
|
+
const TagSelector = ({ width, type, visible, working_tag, onSelectTag, onCancel } : TagSelectorProps) => {
|
|
16
17
|
const [ player_tag, setPlayerTag ] = useState<{
|
|
17
18
|
loading:boolean,
|
|
18
19
|
players:PublicPlayerProps[],
|
|
@@ -20,7 +21,15 @@ const TagSelector = ({ type, visible, working_tag, onSelectTag, onCancel } : Tag
|
|
|
20
21
|
}>({
|
|
21
22
|
loading: false, players:[], offset:0
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
|
|
25
|
+
const getTagWidth = (padding:number) => {
|
|
26
|
+
//How many can fit in the screen
|
|
27
|
+
let num_possible = Math.floor(width / MIN_TAG_WIDTH);
|
|
28
|
+
// then simply divide the width with it!
|
|
29
|
+
let width_per_tag = (width / num_possible) - (padding * 2 * num_possible)
|
|
30
|
+
return width_per_tag
|
|
31
|
+
}
|
|
32
|
+
const tag_width = getTagWidth(3)
|
|
24
33
|
|
|
25
34
|
useEffect(() => {
|
|
26
35
|
if(!visible){ return }
|
|
@@ -59,14 +68,14 @@ const TagSelector = ({ type, visible, working_tag, onSelectTag, onCancel } : Tag
|
|
|
59
68
|
|
|
60
69
|
const renderPlayers = (data:{ item:PublicPlayerProps, index:number }) => {
|
|
61
70
|
return (
|
|
62
|
-
<Button float style={{ margin:
|
|
71
|
+
<Button key={data.item.player_id.toString()} float style={{ flexDirection:'row', alignItems:'center', margin:2, padding:3, width:tag_width, borderRadius:100 }} onPress={() => handleSelectPlayer(data.item)}>
|
|
63
72
|
<Image
|
|
64
73
|
source={{ uri: data.item.profile_pic }}
|
|
65
|
-
style={{ height:
|
|
74
|
+
style={{ height:25, width:25, borderRadius:100 }}
|
|
66
75
|
resizeMode='cover'
|
|
67
76
|
/>
|
|
68
|
-
<View transparent style={{
|
|
69
|
-
<Text theme='
|
|
77
|
+
<View transparent style={{flex:1, marginLeft:5 }}>
|
|
78
|
+
<Text style={{ maxWidth:tag_width - 30 }} theme='description' size={10} textAlign='center'>@{data.item.username}</Text>
|
|
70
79
|
</View>
|
|
71
80
|
</Button>
|
|
72
81
|
)
|
|
@@ -75,7 +84,7 @@ const TagSelector = ({ type, visible, working_tag, onSelectTag, onCancel } : Tag
|
|
|
75
84
|
if(!visible){ return <></> }
|
|
76
85
|
|
|
77
86
|
return (
|
|
78
|
-
<View
|
|
87
|
+
<View>
|
|
79
88
|
{type == 'player' ?
|
|
80
89
|
<View float>
|
|
81
90
|
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
@@ -84,18 +93,16 @@ const TagSelector = ({ type, visible, working_tag, onSelectTag, onCancel } : Tag
|
|
|
84
93
|
</View>
|
|
85
94
|
<Button
|
|
86
95
|
title='X'
|
|
96
|
+
type='close'
|
|
97
|
+
style={{ padding:0, borderRadius:100, height:25, width:25, justifyContent:'center', alignItems:'center' }}
|
|
87
98
|
float
|
|
88
99
|
onPress={() => onCancel()}
|
|
89
100
|
/>
|
|
90
101
|
</View>
|
|
91
|
-
<View style={{ padding:5 }}>
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
horizontal
|
|
96
|
-
keyExtractor={(item) => item.player_id.toString()}
|
|
97
|
-
renderItem={renderPlayers}
|
|
98
|
-
/>
|
|
102
|
+
<View style={{ padding:5, flexDirection:'row', alignItems:'center', justifyContent:'center', flexWrap:'wrap' }}>
|
|
103
|
+
{player_tag.players.map((item, index) => {
|
|
104
|
+
return renderPlayers({ item, index })
|
|
105
|
+
})}
|
|
99
106
|
</View>
|
|
100
107
|
</View>
|
|
101
108
|
:<></>}
|