itube-specs 0.0.646 → 0.0.647
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/package.json
CHANGED
|
@@ -14,7 +14,10 @@ export const cleanModelCard = (card: IRawModelCard): IModelCard => ({
|
|
|
14
14
|
thumbUrl: card.video_thumb_urls?.webp?.[ThumbSize.Big] || '',
|
|
15
15
|
primaryImageUrl: card.primary_image_url || '',
|
|
16
16
|
guid: card.guid || '',
|
|
17
|
-
country:
|
|
17
|
+
country: {
|
|
18
|
+
title: card.parameters?.find(item => item.name === 'birthplace_country')?.values[0].title || '',
|
|
19
|
+
name: card.parameters?.find(item => item.name === 'birthplace_country')?.values[0].name || '',
|
|
20
|
+
} ,
|
|
18
21
|
parameters: [
|
|
19
22
|
...(age(card) ? [{
|
|
20
23
|
title: 'age',
|
package/types/card-info.d.ts
CHANGED
package/types/model-card.d.ts
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { IVideoCard } from '../types';
|
|
2
|
-
|
|
3
|
-
export const useSharePopup = () => {
|
|
4
|
-
const isSharePopupOpen = useState('share-popup-open', () => false);
|
|
5
|
-
const sharedVideoCard = useState<IVideoCard>('share-popup-card', () => ({} as IVideoCard));
|
|
6
|
-
|
|
7
|
-
const openSharePopup = (card?: IVideoCard) => {
|
|
8
|
-
isSharePopupOpen.value = true;
|
|
9
|
-
if (card && Object.keys(card).length) {
|
|
10
|
-
sharedVideoCard.value = card;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const closeSharePopup = () => {
|
|
15
|
-
isSharePopupOpen.value = false;
|
|
16
|
-
sharedVideoCard.value = {} as IVideoCard;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
isSharePopupOpen,
|
|
21
|
-
openSharePopup,
|
|
22
|
-
closeSharePopup,
|
|
23
|
-
sharedVideoCard,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
File without changes
|