@tripian/react 9.3.24 → 9.3.26

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@tripian/react",
3
- "version": "9.3.24",
3
+ "version": "9.3.26",
4
4
  "description": "Tripian Inc React Components",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {
8
8
  "@react-google-maps/api": "^2.12.0",
9
- "@tripian/model": "9.3.11",
9
+ "@tripian/model": "9.3.12",
10
10
  "external-svg-loader": "^1.6.1",
11
11
  "moment": "^2.24.0",
12
12
  "react": "^18.1.0",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IKiwiBookingModal {
4
4
  hotelName: string;
5
5
  roomTitle: string;
@@ -16,6 +16,7 @@ interface IKiwiBookingModal {
16
16
  onClose: () => void;
17
17
  onCreateReservation: (req: Providers.Kiwi.KiwiCreateReservationRequest) => Promise<Providers.Kiwi.KiwiCreateReservationResponse>;
18
18
  onReservationFailed?: (errorMessage: string) => void;
19
+ t: (value: Model.TranslationKey) => string;
19
20
  }
20
21
  declare const KiwiBookingModal: React.FC<IKiwiBookingModal>;
21
22
  export default KiwiBookingModal;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IKiwiHotelCard {
4
4
  hotel: Providers.Kiwi.KiwiSearchHotel;
5
5
  isFavorite?: boolean;
@@ -8,6 +8,7 @@ interface IKiwiHotelCard {
8
8
  onHover?: (hotelCode: string | null) => void;
9
9
  onSpecialOffersClick?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
10
10
  onCardClick?: (hotel: Providers.Kiwi.KiwiSearchHotel) => void;
11
+ t: (value: Model.TranslationKey) => string;
11
12
  }
12
13
  declare const KiwiHotelCard: React.FC<IKiwiHotelCard>;
13
14
  export default KiwiHotelCard;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  import { KiwiCitySuggestion } from '../../KiwiHotelSearchBar/KiwiHotelSearchBar';
4
4
  interface IKiwiHotelInfoModal {
5
5
  hotel: Providers.Kiwi.KiwiSearchHotel;
@@ -37,6 +37,7 @@ interface IKiwiHotelInfoModal {
37
37
  onSeeMoreDetails?: (hotel: Providers.Kiwi.KiwiSearchHotel, room: Providers.Kiwi.KiwiRoom, rate: Providers.Kiwi.KiwiRate) => void;
38
38
  onBookNowClick?: (hotel: Providers.Kiwi.KiwiSearchHotel, room: Providers.Kiwi.KiwiRoom, rate: Providers.Kiwi.KiwiRate) => void;
39
39
  onReservationFailed?: (hotel: Providers.Kiwi.KiwiSearchHotel, room: Providers.Kiwi.KiwiRoom, rate: Providers.Kiwi.KiwiRate, errorMessage: string) => void;
40
+ t: (value: Model.TranslationKey) => string;
40
41
  }
41
42
  declare const KiwiHotelInfoModal: React.FC<IKiwiHotelInfoModal>;
42
43
  export default KiwiHotelInfoModal;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IKiwiRateDetailModal {
4
4
  rate: Providers.Kiwi.KiwiRate;
5
5
  currency: string;
6
6
  nightCount: number;
7
7
  onClose: () => void;
8
+ t: (value: Model.TranslationKey) => string;
8
9
  }
9
10
  declare const KiwiRateDetailModal: React.FC<IKiwiRateDetailModal>;
10
11
  export default KiwiRateDetailModal;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IKiwiRoomRateModal {
4
4
  roomTitle: string;
5
5
  rate: Providers.Kiwi.KiwiRate;
@@ -7,6 +7,7 @@ interface IKiwiRoomRateModal {
7
7
  nightCount: number;
8
8
  onClose: () => void;
9
9
  onBookNow?: () => void;
10
+ t: (value: Model.TranslationKey) => string;
10
11
  }
11
12
  declare const KiwiRoomRateModal: React.FC<IKiwiRoomRateModal>;
12
13
  export default KiwiRoomRateModal;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IKiwiSpecialOffersModal {
4
4
  hotelName: string;
5
5
  specialOffers?: Providers.Kiwi.KiwiSpecialOffer[];
6
6
  onClose: () => void;
7
+ t: (value: Model.TranslationKey) => string;
7
8
  }
8
9
  declare const KiwiSpecialOffersModal: React.FC<IKiwiSpecialOffersModal>;
9
10
  export default KiwiSpecialOffersModal;
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
+ import Model from '@tripian/model';
2
3
  interface IKiwiVisaBenefitsModal {
3
4
  onClose: () => void;
5
+ t: (value: Model.TranslationKey) => string;
4
6
  }
5
7
  declare const KiwiVisaBenefitsModal: React.FC<IKiwiVisaBenefitsModal>;
6
8
  export default KiwiVisaBenefitsModal;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  export interface KiwiHotelFilters {
4
4
  locations: string[];
5
5
  specialOffers: boolean;
@@ -15,6 +15,7 @@ interface IKiwiHotelFilterModal {
15
15
  filters: KiwiHotelFilters;
16
16
  onApply: (filters: KiwiHotelFilters) => void;
17
17
  onClose: () => void;
18
+ t: (value: Model.TranslationKey) => string;
18
19
  }
19
20
  declare const KiwiHotelFilterModal: React.FC<IKiwiHotelFilterModal>;
20
21
  export default KiwiHotelFilterModal;