@maycolem/stories 7.0.0 → 8.0.0
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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4962 -6389
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/CloseIcon.d.ts +7 -0
- package/dist/src/components/Draggable.d.ts +8 -0
- package/dist/src/components/ManagmentStoryComponent.d.ts +4 -4
- package/dist/src/components/ProfileStories.d.ts +1 -1
- package/dist/src/components/StoryPlayer.d.ts +1 -0
- package/dist/src/features/betSlip/api/sportBookClient.d.ts +5 -0
- package/dist/src/features/betSlip/api/types.d.ts +79 -0
- package/dist/src/features/betSlip/components/BetSlip.d.ts +8 -0
- package/dist/src/features/betSlip/components/SelectionItem.d.ts +7 -0
- package/dist/src/features/betSlip/hooks/useBetSlip.d.ts +0 -0
- package/dist/src/features/betSlip/mappers/BetSlipMapper.d.ts +5 -0
- package/dist/src/features/betSlip/models/view/BetSlipVM.d.ts +7 -0
- package/dist/src/features/betSlip/models/view/SelectionVM.d.ts +11 -0
- package/dist/src/features/betSlip/models/view/SubSelectionVM.d.ts +5 -0
- package/dist/src/hooks/useScrollLock.d.ts +15 -0
- package/dist/src/services/getStories.d.ts +1 -0
- package/dist/src/services/type.d.ts +29 -0
- package/dist/src/shared/components/buttons/PulseButton.d.ts +5 -0
- package/dist/src/shared/constants/marketTypes.d.ts +1 -0
- package/dist/src/shared/utils/formatDate.d.ts +2 -0
- package/dist/stories.css +1 -1
- package/package.json +2 -1
- package/dist/src/types/types.d.ts +0 -150
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DraggableProps {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
/** Umbral como fracción de la altura del div */
|
|
5
|
+
threshold?: number;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Draggable: React.FC<DraggableProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Story } from '../services/type';
|
|
2
2
|
declare const ManagmentStoryComponent: ({ story }: {
|
|
3
|
-
story:
|
|
3
|
+
story: Story;
|
|
4
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default ManagmentStoryComponent;
|
|
6
6
|
export declare const PromoStory: ({ story }: {
|
|
7
|
-
story:
|
|
7
|
+
story: Story;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const BetCouponStory: ({ story }: {
|
|
10
|
-
story:
|
|
10
|
+
story: Story;
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export interface RawOffer {
|
|
2
|
+
type: number;
|
|
3
|
+
parameter?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface RawOdd {
|
|
6
|
+
id: number;
|
|
7
|
+
price: number;
|
|
8
|
+
specialValue: string;
|
|
9
|
+
name: string;
|
|
10
|
+
oddStatus: number;
|
|
11
|
+
typeId: number;
|
|
12
|
+
offers: RawOffer[];
|
|
13
|
+
isMB: boolean;
|
|
14
|
+
shouldUpdate: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface RawEvent {
|
|
17
|
+
id: number;
|
|
18
|
+
status: number;
|
|
19
|
+
startDate: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RawMarket {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
typeId: number;
|
|
26
|
+
offers: RawOffer[];
|
|
27
|
+
oddIds: number[];
|
|
28
|
+
isMB: boolean;
|
|
29
|
+
sportMarketId: number;
|
|
30
|
+
isBB: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface RawSport {
|
|
33
|
+
typeId: number;
|
|
34
|
+
name: string;
|
|
35
|
+
id: number;
|
|
36
|
+
hasLiveEvents: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface RawWidgetInfo {
|
|
39
|
+
widget: number;
|
|
40
|
+
page: number;
|
|
41
|
+
tabIndex: number | null;
|
|
42
|
+
tipsterId: number | null;
|
|
43
|
+
}
|
|
44
|
+
export interface RawSelection {
|
|
45
|
+
odd: RawOdd;
|
|
46
|
+
event: RawEvent;
|
|
47
|
+
status: number;
|
|
48
|
+
isBanker: boolean;
|
|
49
|
+
isEnabled: boolean;
|
|
50
|
+
market: RawMarket;
|
|
51
|
+
sport: RawSport;
|
|
52
|
+
competitors: unknown[];
|
|
53
|
+
widgetInfo: RawWidgetInfo;
|
|
54
|
+
bbSelections?: RawBBSelection[];
|
|
55
|
+
}
|
|
56
|
+
export interface RawBBSelection {
|
|
57
|
+
odd: RawOdd;
|
|
58
|
+
market: RawMarket;
|
|
59
|
+
}
|
|
60
|
+
export interface RawStake {
|
|
61
|
+
type: number;
|
|
62
|
+
value: number;
|
|
63
|
+
isEnabled: boolean;
|
|
64
|
+
preciseValue: number;
|
|
65
|
+
isHighlighted: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface RawSlip {
|
|
68
|
+
stakes: RawStake[];
|
|
69
|
+
selections: RawSelection[];
|
|
70
|
+
betType: number;
|
|
71
|
+
stakeAdjustment: {
|
|
72
|
+
type: number;
|
|
73
|
+
value: number;
|
|
74
|
+
};
|
|
75
|
+
fullCoverData: {
|
|
76
|
+
type: number;
|
|
77
|
+
label: string | null;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SubSelectionVM } from './SubSelectionVM';
|
|
2
|
+
export interface SelectionVM {
|
|
3
|
+
name: string;
|
|
4
|
+
cuota: number;
|
|
5
|
+
event: string;
|
|
6
|
+
fechaHora: string;
|
|
7
|
+
hasPA: boolean;
|
|
8
|
+
paParam?: number;
|
|
9
|
+
marketName: string;
|
|
10
|
+
subSelections?: SubSelectionVM[] | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ScrollTarget = string | Window | Document;
|
|
2
|
+
/**
|
|
3
|
+
* Hook que provee funciones para desactivar y restaurar el scroll
|
|
4
|
+
* de elementos identificados por IDs o de toda la página.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
interface IProps {
|
|
8
|
+
scroll: "ON" | "OFF";
|
|
9
|
+
targets: ScrollTarget[];
|
|
10
|
+
}
|
|
11
|
+
export declare function useScrollLock({ scroll, targets }: IProps): {
|
|
12
|
+
disableScroll: (targets: ScrollTarget[]) => void;
|
|
13
|
+
enableScroll: () => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getStories(): Promise<any>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface IStoriesProfile {
|
|
2
|
+
id: string;
|
|
3
|
+
stories: Story[];
|
|
4
|
+
is_published: boolean;
|
|
5
|
+
show_red_chip: boolean;
|
|
6
|
+
order_index: number;
|
|
7
|
+
avatar: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
color: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Story {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
type: string;
|
|
16
|
+
image: string;
|
|
17
|
+
btn_text?: string;
|
|
18
|
+
btn_url?: string;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
clicks?: number | null;
|
|
21
|
+
views?: number | null;
|
|
22
|
+
matches?: string[];
|
|
23
|
+
markets?: string[];
|
|
24
|
+
results?: string[];
|
|
25
|
+
coupon_result?: string;
|
|
26
|
+
coupon?: string;
|
|
27
|
+
coupon_title?: string;
|
|
28
|
+
duration?: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MARKET_DISPLAY_NAMES: Record<string, string>;
|
package/dist/stories.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";.App{padding:1rem}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;font-family:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,html{line-height:1;width:100%;height:100%;font-family:Rubik}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}*,*:after,*:before{box-sizing:border-box}._ScrollMenu_hnfum_9{position:relative}._ScrollMenu_hnfum_9 *{box-sizing:border-box}._scrollContainerClassName_hnfum_16{scrollbar-width:none;-ms-overflow-style:none;padding:14px;--stories-gap: calc(14px + .5vw) ;gap:var(--stories-gap)}._scrollContainerClassName_hnfum_16::-webkit-scrollbar{display:none}._itemClassName_hnfum_28{--initial-width: calc( (calc(100% + 14px - calc(var(--stories-gap) * 4)) / 4.7) );flex:0 0 var(--initial-width);width:var(--initial-width)}@media screen and (min-width: 450px){._itemClassName_hnfum_28{max-width:60px}}._ProfileStory_9bnqe_1{display:flex;flex-direction:column;cursor:pointer;width:var(--story-width);user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:transparent}._ProfileStoryWrap_9bnqe_12{aspect-ratio:1;width:100%;height:100%;border-radius:50%;position:relative;padding:calc((var(--story-width) / 60) * 1.85);border:calc((var(--story-width) / 60) * 2) solid var(--story-color);background:#fff;box-shadow:0 0 calc((var(--story-width) / 60) * 2) var(--story-color-alpha),0 0 calc((var(--story-width) / 60) * 10) var(--story-color-alpha)}._ProfileStory__wrapImage_9bnqe_26{inset:calc(calc((var(--story-width) / 60) * 1.85));position:absolute;border-radius:50%;background:linear-gradient(0deg,#0a0a0a -10.48%,#fff 40.32%);z-index:2}._ProfileStory__image_9bnqe_35{position:absolute;top:0;right:0;left:0;bottom:0}._ProfileStory__image_9bnqe_35>img{display:block;position:absolute;bottom:0;width:100%;height:125%;object-fit:cover;-webkit-user-drag:none}._ProfileStory__title_9bnqe_50{color:#222;font-size:calc(calc((var(--story-width) / 60) * 10));width:100%;text-align:center;margin:auto;margin-top:.5rem}._ProfileStory_9bnqe_1._hasSeenAllStories_9bnqe_59 ._ProfileStoryWrap_9bnqe_12{border-color:#d1d1d1;box-shadow:none}._ProfileStory_9bnqe_1._hasSeenAllStories_9bnqe_59 ._ProfileStoryWrap_9bnqe_12 ._ProfileStory__wrapImage_9bnqe_26{background:linear-gradient(0deg,#9e9e9e -10.48%,#fff 40.32%)}.react-horizontal-scrolling-menu--scroll-container{display:flex;height:max-content;overflow-y:hidden;position:relative;width:100%}.react-horizontal-scrolling-menu--scroll-container.rtl{direction:rtl}.react-horizontal-scrolling-menu--inner-wrapper{display:flex;overflow-y:hidden}.react-horizontal-scrolling-menu--wrapper{display:flex;flex-direction:column}.react-horizontal-scrolling-menu--footer,.react-horizontal-scrolling-menu--header{width:100%}.react-horizontal-scrolling-menu--arrow-left,.react-horizontal-scrolling-menu--arrow-right{display:flex}.Actions-styles_left__eky50{left:0}.Actions-styles_left__eky50,.Actions-styles_right__zguoH{bottom:0;height:100%;position:absolute;top:0;width:50%;z-index:1}.Actions-styles_right__zguoH{right:0}.ProgressBar-styles_wrapper__oqUCo{background-color:#6a6a6a;border-radius:2px;height:2px;position:relative}.ProgressBar-styles_bar__x0O50{background-color:#eae8e8;border-radius:2px;bottom:0;height:2px;left:0;position:absolute;right:0;top:0;width:0}.progress-styles_wrapper__qQPyW{grid-gap:4px;display:grid;height:2px;left:0;padding:4px;position:absolute;right:0;top:0}.Story-styles_wrapper__oJP7j{align-content:center;align-items:center;display:flex;height:100%;width:100%}.Story-styles_header__-rnWL{left:0;position:absolute;right:0;top:12px}.Image-styles_image__gnfW1{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Video-styles_video__BykuO{max-height:100%;max-width:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Video-styles_loaderWrapper__TqVWk{align-content:center;align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.Video-styles_loader__FxxSV{animation:Video-styles_spin__ilbIB 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;border-top-color:#a5b0b7;height:40px;width:40px}.Video-styles_soundIcon__ZvYXE{background:transparent;border:none;cursor:pointer;outline:none;padding:16px;position:absolute;right:0;top:0;z-index:2}@keyframes Video-styles_spin__ilbIB{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.CustomComponents-styles_component__w87Wx{height:100%;width:100%}.SeeMore-styles_seeMoreWrapper__kwjif{background-color:inherit;border:none;bottom:24px;cursor:pointer;display:flex;justify-content:center;left:0;outline:none;position:absolute;right:0;width:100%;z-index:2}.SeeMore-styles_defaultSeeMore__-B1QW{align-items:center;color:#fff;display:flex;flex-direction:column;font-size:14px;font-weight:600;justify-content:center;line-height:.8;width:100%}.SeeMore-styles_defaultSeeMore__-B1QW p{margin:0;padding:0}.SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap{animation:SeeMoreComponent-styles_up__sRaEA .2s ease-in-out;animation-fill-mode:forwards;background-color:#fff;bottom:0;left:0;max-height:100%;overflow-y:auto;position:absolute;right:0;top:0;z-index:3}.SeeMoreComponent-styles_closeIcon__LMm3b{background-color:inherit;background:transparent;border:none;cursor:pointer;font-size:16px;outline:none;padding:16px;position:absolute;right:0;top:0}@keyframes SeeMoreComponent-styles_up__sRaEA{0%{transform:translateY(10%)}to{transform:translateY(0)}}.styles_main__-0FEu{-webkit-touch-callout:none;background-color:#000;position:relative;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none}._StoryPlayer_11ik4_1{position:fixed;top:0;left:0;width:100vw;height:100vh;width:100dvw;height:100dvh;display:flex;justify-content:center;align-items:center;z-index:1000}._Overlay_11ik4_15{background:#000000d9;height:100%;width:100%;position:absolute;left:0;top:0;cursor:pointer}._StoryPlayer__Wrap_11ik4_25{position:relative;width:100%;height:100%}@media screen and (min-width: 600px){._StoryPlayer__Wrap_11ik4_25{height:90vh;height:90dvh;width:initial;aspect-ratio:9 / 16}}._progressContainer_11ik4_37{z-index:2}._StoryPlayer_11ik4_1._inline_11ik4_42{position:relative;width:100%;height:auto;max-width:350px;aspect-ratio:9 / 16;z-index:-1}._StoryPlayer_11ik4_1._inline_11ik4_42 ._Overlay_11ik4_15{display:none}@media screen and (min-width: 600px){._StoryPlayer_11ik4_1._inline_11ik4_42 ._StoryPlayer__Wrap_11ik4_25{height:100%;width:100%;aspect-ratio:initial}}._story_yiu96_1{height:100%;width:100%;position:relative}._story_yiu96_1>img{width:100%;height:100%;object-fit:cover}._Button_yiu96_12{position:absolute;bottom:1rem;width:60%;padding:.7rem;background:#fb3333;border:0;outline:0;color:#fff;font-weight:500;font-size:1rem;left:50%;transform:translate(-50%) skew(-10deg);z-index:2;cursor:pointer;text-align:center;text-decoration:none}._StoryHeaderPlayer_1oqtd_1{padding:5px 10px;display:flex;align-items:center;gap:.5rem;position:relative}._StoryHeaderPlayer_1oqtd_1:before{content:"";position:absolute;height:calc(100% + 1rem);width:100%;top:-12px;background:linear-gradient(to top,transparent,#000000df);left:0}._StoryHeaderPlayer__ProfileStory_1oqtd_18{width:30px;height:30px;z-index:2}._StoryHeaderPlayer__title_1oqtd_24{color:#fff;font-size:13px;font-weight:500;z-index:2;text-shadow:2px 2px 4px rgba(0,0,0,.5)}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";.App{padding:1rem}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;font-family:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,html{line-height:1;width:100%;height:100%;font-family:Rubik}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}*,*:after,*:before{box-sizing:border-box}._ScrollMenu_hnfum_9{position:relative}._ScrollMenu_hnfum_9 *{box-sizing:border-box}._scrollContainerClassName_hnfum_16{scrollbar-width:none;-ms-overflow-style:none;padding:14px;--stories-gap: calc(14px + .5vw) ;gap:var(--stories-gap)}._scrollContainerClassName_hnfum_16::-webkit-scrollbar{display:none}._itemClassName_hnfum_28{--initial-width: calc( (calc(100% + 14px - calc(var(--stories-gap) * 4)) / 4.7) );flex:0 0 var(--initial-width);width:var(--initial-width)}@media screen and (min-width: 450px){._itemClassName_hnfum_28{max-width:60px}}._ProfileStory_bmzly_1{display:flex;flex-direction:column;cursor:pointer;width:var(--story-width);user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:transparent}._ProfileStoryWrap_bmzly_12{aspect-ratio:1;width:100%;height:100%;border-radius:50%;position:relative;padding:calc((var(--story-width) / 60) * 1.85);border:calc((var(--story-width) / 60) * 2) solid var(--story-color);background:#fff;box-shadow:0 0 calc((var(--story-width) / 60) * 2) var(--story-color-alpha),0 0 calc((var(--story-width) / 60) * 10) var(--story-color-alpha)}._ProfileStory__wrapImage_bmzly_26{inset:calc(calc((var(--story-width) / 60) * 1.85));position:absolute;border-radius:50%;background:linear-gradient(0deg,#0a0a0a -10.48%,#fff 40.32%);z-index:2}._ProfileStory__image_bmzly_35{position:absolute;top:0;right:0;left:0;bottom:0}._ProfileStory__image_bmzly_35>img{display:block;position:absolute;bottom:0;width:100%;height:125%;object-fit:cover;-webkit-user-drag:none}._ProfileStory__title_bmzly_50{color:#222;font-size:calc(calc((var(--story-width) / 60) * 10));width:100%;text-align:center;margin:auto;margin-top:.5rem}._ProfileStory_bmzly_1._hasSeenAllStories_bmzly_59 ._ProfileStoryWrap_bmzly_12{border-color:#d1d1d1;box-shadow:none}._ProfileStory_bmzly_1._hasSeenAllStories_bmzly_59 ._ProfileStoryWrap_bmzly_12 ._ProfileStory__wrapImage_bmzly_26{background:linear-gradient(0deg,#9e9e9e -10.48%,#fff 40.32%)}.react-horizontal-scrolling-menu--scroll-container{display:flex;height:max-content;overflow-y:hidden;position:relative;width:100%}.react-horizontal-scrolling-menu--scroll-container.rtl{direction:rtl}.react-horizontal-scrolling-menu--inner-wrapper{display:flex;overflow-y:hidden}.react-horizontal-scrolling-menu--wrapper{display:flex;flex-direction:column}.react-horizontal-scrolling-menu--footer,.react-horizontal-scrolling-menu--header{width:100%}.react-horizontal-scrolling-menu--arrow-left,.react-horizontal-scrolling-menu--arrow-right{display:flex}.Actions-styles_left__eky50{left:0}.Actions-styles_left__eky50,.Actions-styles_right__zguoH{bottom:0;height:100%;position:absolute;top:0;width:50%;z-index:1}.Actions-styles_right__zguoH{right:0}.ProgressBar-styles_wrapper__oqUCo{background-color:#6a6a6a;border-radius:2px;height:2px;position:relative}.ProgressBar-styles_bar__x0O50{background-color:#eae8e8;border-radius:2px;bottom:0;height:2px;left:0;position:absolute;right:0;top:0;width:0}.progress-styles_wrapper__qQPyW{grid-gap:4px;display:grid;height:2px;left:0;padding:4px;position:absolute;right:0;top:0}.Story-styles_wrapper__oJP7j{align-content:center;align-items:center;display:flex;height:100%;width:100%}.Story-styles_header__-rnWL{left:0;position:absolute;right:0;top:12px}.Image-styles_image__gnfW1{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Video-styles_video__BykuO{max-height:100%;max-width:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Video-styles_loaderWrapper__TqVWk{align-content:center;align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.Video-styles_loader__FxxSV{animation:Video-styles_spin__ilbIB 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;border-top-color:#a5b0b7;height:40px;width:40px}.Video-styles_soundIcon__ZvYXE{background:transparent;border:none;cursor:pointer;outline:none;padding:16px;position:absolute;right:0;top:0;z-index:2}@keyframes Video-styles_spin__ilbIB{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.CustomComponents-styles_component__w87Wx{height:100%;width:100%}.SeeMore-styles_seeMoreWrapper__kwjif{background-color:inherit;border:none;bottom:24px;cursor:pointer;display:flex;justify-content:center;left:0;outline:none;position:absolute;right:0;width:100%;z-index:2}.SeeMore-styles_defaultSeeMore__-B1QW{align-items:center;color:#fff;display:flex;flex-direction:column;font-size:14px;font-weight:600;justify-content:center;line-height:.8;width:100%}.SeeMore-styles_defaultSeeMore__-B1QW p{margin:0;padding:0}.SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap{animation:SeeMoreComponent-styles_up__sRaEA .2s ease-in-out;animation-fill-mode:forwards;background-color:#fff;bottom:0;left:0;max-height:100%;overflow-y:auto;position:absolute;right:0;top:0;z-index:3}.SeeMoreComponent-styles_closeIcon__LMm3b{background-color:inherit;background:transparent;border:none;cursor:pointer;font-size:16px;outline:none;padding:16px;position:absolute;right:0;top:0}@keyframes SeeMoreComponent-styles_up__sRaEA{0%{transform:translateY(10%)}to{transform:translateY(0)}}.styles_main__-0FEu{-webkit-touch-callout:none;background-color:#000;position:relative;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none}._StoryPlayer_3s15o_1{position:fixed;top:0;left:0;width:100vw;height:100vh;width:100dvw;height:100dvh;display:flex;justify-content:center;align-items:center;z-index:1000}._Overlay_3s15o_15{background:#000000d9;height:100%;width:100%;position:absolute;left:0;top:0;cursor:pointer}._StoryPlayer__Wrap_3s15o_25{position:relative;width:100%;height:100%}@media screen and (min-width: 600px){._StoryPlayer__Wrap_3s15o_25{height:90vh;height:90dvh;width:initial;aspect-ratio:9 / 16}}._progressContainer_3s15o_37{z-index:2}._CloseIcon_3s15o_41{position:absolute;right:10px;top:16px;width:2rem;z-index:2;padding:.4rem;display:flex;justify-content:center;align-items:center;border-radius:50%;cursor:pointer}._StoryPlayer_3s15o_1._inline_3s15o_57{position:relative;width:100%;height:auto;max-width:350px;aspect-ratio:9 / 16;z-index:1}._StoryPlayer_3s15o_1._inline_3s15o_57 ._Overlay_3s15o_15{display:none}@media screen and (min-width: 600px){._StoryPlayer_3s15o_1._inline_3s15o_57 ._StoryPlayer__Wrap_3s15o_25{height:100%;width:100%;aspect-ratio:initial}}._progressBarContainer_3s15o_75{background:#a4a4a4}._progressBar_3s15o_75{background:red}._story_1c26c_1{height:100%;width:100%;position:relative}._story_1c26c_1 img{width:100%;height:100%;object-fit:cover}._BetSlip_Wrapper_1c26c_12{padding:10px;position:absolute;width:100%;height:100%;left:0;bottom:0;display:flex;align-items:end;overflow:hidden}._BetSlip_ButtonWrap_1c26c_23{flex:1;position:relative;z-index:1}._BetSlip_ButtonWrap_1c26c_23:before{content:"";z-index:0;height:calc(100% + 100px);left:-10px;position:absolute;bottom:-10px;width:calc(100% + 20px);background:linear-gradient(to top,#000000cf,transparent)}._BetSlip_hse67_1{color:#5e5e5e;gap:5px;flex:1;position:relative;display:flex;flex-direction:column;justify-content:flex-end;height:100%}._BetSlip_Title_hse67_12{font-size:13px;padding:.25rem 0;line-height:1;font-weight:600}._SelectionItemWrap_hse67_19{display:grid;gap:5px;padding:10px;background:#f1f1f1;border-radius:8px;position:relative;pointer-events:none;z-index:3;height:auto;max-height:calc(100% - 100px);overflow:auto}._BetSlip_ButtonWrap_hse67_38{position:relative;z-index:2}._BetSlip_ButtonWrap_hse67_38:before{content:"";z-index:-1;height:calc(100% + 100px);left:-10px;position:absolute;bottom:-10px;width:calc(100% + 20px);background:linear-gradient(to top,#000000cf,transparent)}._SelectionItem_1ut02_1{background:#fff;padding:6px;border-radius:6px;font-size:13px;display:grid;gap:3px;position:relative}._SelectionItemGrid_1ut02_11{display:grid;grid-template-columns:1fr auto;gap:1ch}._SelectionItem_name_1ut02_17{font-weight:600}._SelectionItem_marketName_1ut02_21{display:flex;gap:.5ch;align-items:center;color:#a4a4a4}._SelectionItem_hasPA_1ut02_28{border:1px solid rgb(77,177,79);color:#4db14f;padding:1.5px;border-radius:2px;line-height:1;font-size:9px}._SelectionItem_fechahora_1ut02_37{color:#a4a4a4;font-size:11px}._SelectionItem__Wrap_1ut02_42{font-size:12px;display:grid;gap:3px}._SelectionItem__BB_1ut02_47{padding:4px 4px 4px 20px;display:grid;gap:3px;position:relative}._SelectionItem__BB_1ut02_47:before{content:"";position:absolute;left:6px;top:6px;width:6px;height:6px;background:red;border-radius:50%}._SelectionItem__BB_1ut02_47:after{content:"";position:absolute;left:8.5px;top:15px;width:1px;height:calc(100% - 10px);background:red;border-radius:2px}._SelectionItem__BB_1ut02_47:last-child:after{display:none}._SelectionItem__BB__mn_1ut02_80{font-weight:600}._PulseButton_1udbm_1{perspective:1000;backface-visibility:hidden;position:relative;flex:1}._PulseButton_BG_1udbm_8{position:absolute;top:0;right:0;bottom:0;left:0;animation:_pulse_1udbm_1 2s infinite ease;background:#fb3333;transform:scale(1) skew(-10deg)}._PulseButton_BG_1udbm_8:hover{animation:none}@keyframes _pulse_1udbm_1{0%{transform:scale(1) skew(-10deg)}70%{opacity:.3}to{transform:scale(1.25) skew(-10deg);opacity:0}}._Button_1lfmc_1{bottom:1rem;width:100%;padding:.9rem .7rem;background:#fb3333;border:0;outline:0;color:#fff;font-weight:600;font-size:18px;transform:skew(-10deg);z-index:2;cursor:pointer;text-align:center;font-family:Gobold,Rubik,sans-serif;text-decoration:none;display:flex;justify-content:center}._StoryHeaderPlayer_1oqtd_1{padding:5px 10px;display:flex;align-items:center;gap:.5rem;position:relative}._StoryHeaderPlayer_1oqtd_1:before{content:"";position:absolute;height:calc(100% + 1rem);width:100%;top:-12px;background:linear-gradient(to top,transparent,#000000df);left:0}._StoryHeaderPlayer__ProfileStory_1oqtd_18{width:30px;height:30px;z-index:2}._StoryHeaderPlayer__title_1oqtd_24{color:#fff;font-size:13px;font-weight:500;z-index:2;text-shadow:2px 2px 4px rgba(0,0,0,.5)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maycolem/stories",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@faker-js/faker": "^9.8.0",
|
|
34
34
|
"@maycolem/stories": "^4.0.0",
|
|
35
35
|
"classnames": "^2.5.1",
|
|
36
|
+
"framer-motion": "^6.5.1",
|
|
36
37
|
"hex-alpha": "^1.3.0",
|
|
37
38
|
"react": "^17.0.2",
|
|
38
39
|
"react-dom": "^17.0.2",
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
export interface IStoriesProfile {
|
|
2
|
-
id: string;
|
|
3
|
-
stories: IStory[];
|
|
4
|
-
is_published: boolean;
|
|
5
|
-
show_red_chip: boolean;
|
|
6
|
-
order_index: number;
|
|
7
|
-
avatar: string;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
color: string;
|
|
11
|
-
}
|
|
12
|
-
export type IStory = IBettingStory | IPromoStory;
|
|
13
|
-
export interface IBaseStory {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
description: string;
|
|
17
|
-
image: string;
|
|
18
|
-
duration: number;
|
|
19
|
-
clicks: number | null;
|
|
20
|
-
views: number | null;
|
|
21
|
-
type: string;
|
|
22
|
-
}
|
|
23
|
-
export interface IBettingStory extends IBaseStory {
|
|
24
|
-
type: "betting";
|
|
25
|
-
btn_text: string;
|
|
26
|
-
matches: string[];
|
|
27
|
-
markets: string[];
|
|
28
|
-
results: string[];
|
|
29
|
-
coupon: string;
|
|
30
|
-
coupon_title: string;
|
|
31
|
-
coupon_result: CouponResult;
|
|
32
|
-
}
|
|
33
|
-
export interface IPromoStory extends IBaseStory {
|
|
34
|
-
type: "promo";
|
|
35
|
-
btn_text: string;
|
|
36
|
-
btn_url: string;
|
|
37
|
-
}
|
|
38
|
-
export interface CouponResult {
|
|
39
|
-
stakes: Stake[];
|
|
40
|
-
selections: Selection[];
|
|
41
|
-
betType: number;
|
|
42
|
-
stakeAdjustment: StakeAdjustment;
|
|
43
|
-
fullCoverData: FullCoverData;
|
|
44
|
-
}
|
|
45
|
-
export interface Stake {
|
|
46
|
-
value: number;
|
|
47
|
-
preciseValue: number;
|
|
48
|
-
type: number;
|
|
49
|
-
isEnabled: boolean;
|
|
50
|
-
isHighlighted: boolean;
|
|
51
|
-
}
|
|
52
|
-
export interface Selection {
|
|
53
|
-
odd: Odd;
|
|
54
|
-
event: Event;
|
|
55
|
-
status: number;
|
|
56
|
-
isBanker: boolean;
|
|
57
|
-
isEnabled: boolean;
|
|
58
|
-
sport: Sport;
|
|
59
|
-
category: Category;
|
|
60
|
-
competitors: Competitor[];
|
|
61
|
-
championship: Championship;
|
|
62
|
-
market: Market;
|
|
63
|
-
widgetInfo: WidgetInfo;
|
|
64
|
-
}
|
|
65
|
-
export interface Odd {
|
|
66
|
-
typeId: number;
|
|
67
|
-
price: number;
|
|
68
|
-
isMB: boolean;
|
|
69
|
-
oddStatus: number;
|
|
70
|
-
id: number;
|
|
71
|
-
name: string;
|
|
72
|
-
shouldUpdate: boolean;
|
|
73
|
-
lineDir?: number;
|
|
74
|
-
priceDir?: number;
|
|
75
|
-
}
|
|
76
|
-
export interface Event {
|
|
77
|
-
marketIds: number[];
|
|
78
|
-
isBooked: boolean;
|
|
79
|
-
isParlay: boolean;
|
|
80
|
-
offers?: {
|
|
81
|
-
type: number;
|
|
82
|
-
}[];
|
|
83
|
-
code: number;
|
|
84
|
-
hasStream: boolean;
|
|
85
|
-
extId: string;
|
|
86
|
-
sc: number;
|
|
87
|
-
rc: boolean;
|
|
88
|
-
pId: number;
|
|
89
|
-
et: number;
|
|
90
|
-
competitorIds: number[];
|
|
91
|
-
sportId: number;
|
|
92
|
-
catId: number;
|
|
93
|
-
champId: number;
|
|
94
|
-
status: number;
|
|
95
|
-
startDate: string;
|
|
96
|
-
id: number;
|
|
97
|
-
name: string;
|
|
98
|
-
liveTime?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface Sport {
|
|
101
|
-
catIds: number[];
|
|
102
|
-
typeId: number;
|
|
103
|
-
iconName: string;
|
|
104
|
-
hasLiveEvents: boolean;
|
|
105
|
-
id: number;
|
|
106
|
-
name: string;
|
|
107
|
-
}
|
|
108
|
-
export interface Category {
|
|
109
|
-
champIds: number[];
|
|
110
|
-
iso?: string;
|
|
111
|
-
hasLiveEvents: boolean;
|
|
112
|
-
id: number;
|
|
113
|
-
name: string;
|
|
114
|
-
}
|
|
115
|
-
export interface Competitor {
|
|
116
|
-
id: number;
|
|
117
|
-
name: string;
|
|
118
|
-
}
|
|
119
|
-
export interface Championship {
|
|
120
|
-
offers?: {
|
|
121
|
-
type: number;
|
|
122
|
-
}[];
|
|
123
|
-
hasLiveEvents: boolean;
|
|
124
|
-
id: number;
|
|
125
|
-
name: string;
|
|
126
|
-
category: Category;
|
|
127
|
-
sport: Sport;
|
|
128
|
-
}
|
|
129
|
-
export interface Market {
|
|
130
|
-
oddIds: number[];
|
|
131
|
-
typeId: number;
|
|
132
|
-
isMB: boolean;
|
|
133
|
-
sportMarketId: number;
|
|
134
|
-
id: number;
|
|
135
|
-
name: string;
|
|
136
|
-
}
|
|
137
|
-
export interface WidgetInfo {
|
|
138
|
-
widget: number;
|
|
139
|
-
page: number;
|
|
140
|
-
tabIndex: number | null;
|
|
141
|
-
tipsterId: number | null;
|
|
142
|
-
}
|
|
143
|
-
export interface StakeAdjustment {
|
|
144
|
-
type: number;
|
|
145
|
-
value: number;
|
|
146
|
-
}
|
|
147
|
-
export interface FullCoverData {
|
|
148
|
-
type: number;
|
|
149
|
-
label: string | null;
|
|
150
|
-
}
|