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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.646",
4
+ "version": "0.0.647",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -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: card.parameters?.find(item => item.name === 'birthplace_country')?.values[0].name,
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',
@@ -8,6 +8,7 @@ export interface ICardInfo {
8
8
  img?: string;
9
9
  guid?: string;
10
10
  fullDescription?: string
11
+ miniCardTitle?: string
11
12
 
12
13
  // Fields specific to Channel
13
14
  url?: string;
@@ -5,7 +5,10 @@ export interface IModelCard {
5
5
  primaryImageUrl?: string;
6
6
  guid: string;
7
7
  age?: string;
8
- country?: string;
8
+ country?: {
9
+ name: string
10
+ title: string
11
+ };
9
12
  parameters: {
10
13
  icon?: string
11
14
  title?: string
@@ -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
- };